d3dx9_36: Add tests for D3DXGetImageInfoFromFileInMemory with bmp with 1 to 8 bpp.
[wine.git] / configure
blob770fcdeadd9ee573104025a1224ccf316ad22ad6
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 LCMS_LIBS
656 LCMS_CFLAGS
657 RESOLVLIBS
658 GPHOTO2_PORT_LIBS
659 GPHOTO2_PORT_CFLAGS
660 GPHOTO2_LIBS
661 GPHOTO2_CFLAGS
662 SANE_LIBS
663 SANE_CFLAGS
664 GNUTLS_LIBS
665 GNUTLS_CFLAGS
666 HAL_LIBS
667 HAL_CFLAGS
668 DBUS_LIBS
669 DBUS_CFLAGS
670 XSLT_LIBS
671 XSLT_CFLAGS
672 XML2_LIBS
673 XML2_CFLAGS
674 PKG_CONFIG
675 X_EXTRA_LIBS
676 X_LIBS
677 X_PRE_LIBS
678 X_CFLAGS
679 XMKMF
680 LIBPTHREAD
681 CROSSTARGET
682 CROSSCC
683 CROSSTEST_DISABLE
684 PRELINK
685 CARBONLIB
686 QUICKTIMELIB
687 LIBOPENCL
688 FRAMEWORK_OPENAL
689 COREAUDIO
690 SECURITYLIB
691 DISKARBITRATIONLIB
692 LDEXECFLAGS
693 CORESERVICESLIB
694 APPLICATIONSERVICESLIB
695 IOKITLIB
696 COREFOUNDATIONLIB
697 LIBWINE_RULES
698 SOCKETLIBS
699 DLLTOOL
700 READELF
702 LDRPATH_LOCAL
703 LDRPATH_INSTALL
704 IMPLIBEXT
705 LDDLLFLAGS
706 DLLFLAGS
707 DLLEXT
709 OPENGL_LIBS
710 XLIB
711 MAINTAINER_MODE
712 MSGFMT
713 ICOTOOL
714 CONVERT
715 RSVG
716 FONTFORGE
717 LINTFLAGS
718 LINT
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 LDCONFIG
723 EGREP
724 GREP
725 LN_S
726 RANLIB
727 ARFLAGS
728 ac_ct_AR
730 BISON
731 FLEX
732 TOOLSDIR
733 WOW64_DISABLE
734 TARGETFLAGS
735 CPPBIN
736 ac_ct_CXX
737 CXXFLAGS
739 OBJEXT
740 EXEEXT
741 ac_ct_CC
742 CPPFLAGS
743 LDFLAGS
744 CFLAGS
746 SET_MAKE
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files='MAKE_RULES
794 MAKE_TEST_RULES
795 MAKE_DLL_RULES
796 MAKE_IMPLIB_RULES
797 MAKE_PROG_RULES'
798 ac_user_opts='
799 enable_option_checking
800 enable_win16
801 enable_win64
802 enable_tests
803 enable_maintainer_mode
804 with_alsa
805 with_capi
806 with_cms
807 with_coreaudio
808 with_cups
809 with_curses
810 with_dbus
811 with_fontconfig
812 with_freetype
813 with_gettext
814 with_gettextpo
815 with_gphoto
816 with_glu
817 with_gnutls
818 with_gsm
819 with_gstreamer
820 with_hal
821 with_jpeg
822 with_ldap
823 with_mpg123
824 with_openal
825 with_opencl
826 with_opengl
827 with_osmesa
828 with_oss
829 with_png
830 with_pthread
831 with_sane
832 with_tiff
833 with_v4l
834 with_xcomposite
835 with_xcursor
836 with_xinerama
837 with_xinput
838 with_xinput2
839 with_xml
840 with_xrandr
841 with_xrender
842 with_xshape
843 with_xshm
844 with_xslt
845 with_xxf86vm
846 with_zlib
847 with_wine_tools
848 with_wine64
849 enable_largefile
850 with_x
852 ac_precious_vars='build_alias
853 host_alias
854 target_alias
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
861 CXXFLAGS
864 XMKMF
865 XML2_CFLAGS
866 XML2_LIBS
867 XSLT_CFLAGS
868 XSLT_LIBS
869 DBUS_CFLAGS
870 DBUS_LIBS
871 HAL_CFLAGS
872 HAL_LIBS
873 GNUTLS_CFLAGS
874 GNUTLS_LIBS
875 SANE_CFLAGS
876 SANE_LIBS
877 GPHOTO2_CFLAGS
878 GPHOTO2_LIBS
879 GPHOTO2_PORT_CFLAGS
880 GPHOTO2_PORT_LIBS
881 LCMS_CFLAGS
882 LCMS_LIBS
883 FREETYPE_CFLAGS
884 FREETYPE_LIBS
885 GSTREAMER_CFLAGS
886 GSTREAMER_LIBS'
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 ac_unrecognized_opts=
893 ac_unrecognized_sep=
894 # The variables have the same names as the options, with
895 # dashes changed to underlines.
896 cache_file=/dev/null
897 exec_prefix=NONE
898 no_create=
899 no_recursion=
900 prefix=NONE
901 program_prefix=NONE
902 program_suffix=NONE
903 program_transform_name=s,x,x,
904 silent=
905 site=
906 srcdir=
907 verbose=
908 x_includes=NONE
909 x_libraries=NONE
911 # Installation directory options.
912 # These are left unexpanded so users can "make install exec_prefix=/foo"
913 # and all the variables that are supposed to be based on exec_prefix
914 # by default will actually change.
915 # Use braces instead of parens because sh, perl, etc. also accept them.
916 # (The list follows the same order as the GNU Coding Standards.)
917 bindir='${exec_prefix}/bin'
918 sbindir='${exec_prefix}/sbin'
919 libexecdir='${exec_prefix}/libexec'
920 datarootdir='${prefix}/share'
921 datadir='${datarootdir}'
922 sysconfdir='${prefix}/etc'
923 sharedstatedir='${prefix}/com'
924 localstatedir='${prefix}/var'
925 includedir='${prefix}/include'
926 oldincludedir='/usr/include'
927 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
928 infodir='${datarootdir}/info'
929 htmldir='${docdir}'
930 dvidir='${docdir}'
931 pdfdir='${docdir}'
932 psdir='${docdir}'
933 libdir='${exec_prefix}/lib'
934 localedir='${datarootdir}/locale'
935 mandir='${datarootdir}/man'
937 ac_prev=
938 ac_dashdash=
939 for ac_option
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
943 eval $ac_prev=\$ac_option
944 ac_prev=
945 continue
948 case $ac_option in
949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *=) ac_optarg= ;;
951 *) ac_optarg=yes ;;
952 esac
954 # Accept the important Cygnus configure options, so we can diagnose typos.
956 case $ac_dashdash$ac_option in
958 ac_dashdash=yes ;;
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
963 bindir=$ac_optarg ;;
965 -build | --build | --buil | --bui | --bu)
966 ac_prev=build_alias ;;
967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
968 build_alias=$ac_optarg ;;
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
975 cache_file=$ac_optarg ;;
977 --config-cache | -C)
978 cache_file=config.cache ;;
980 -datadir | --datadir | --datadi | --datad)
981 ac_prev=datadir ;;
982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
983 datadir=$ac_optarg ;;
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
992 -disable-* | --disable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1018 -enable-* | --enable-*)
1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1022 as_fn_error $? "invalid feature name: $ac_useropt"
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1027 "enable_$ac_useropt"
1028 "*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
1031 esac
1032 eval enable_$ac_useropt=\$ac_optarg ;;
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
1095 | --localstate | --localstat | --localsta | --localst | --locals)
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1099 localstatedir=$ac_optarg ;;
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1222 -with-* | --with-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=\$ac_optarg ;;
1238 -without-* | --without-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1263 x_includes=$ac_optarg ;;
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1270 x_libraries=$ac_optarg ;;
1272 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273 Try \`$0 --help' for more information"
1276 *=*)
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
1279 case $ac_envvar in #(
1280 '' | [0-9]* | *[!_$as_cr_alnum]* )
1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1282 esac
1283 eval $ac_envvar=\$ac_optarg
1284 export $ac_envvar ;;
1287 # FIXME: should be removed in autoconf 3.0.
1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1294 esac
1295 done
1297 if test -n "$ac_prev"; then
1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1299 as_fn_error $? "missing argument to $ac_option"
1302 if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1304 no) ;;
1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1307 esac
1310 # Check all directory arguments for consistency.
1311 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir
1316 eval ac_val=\$$ac_var
1317 # Remove trailing slashes.
1318 case $ac_val in
1319 */ )
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1322 esac
1323 # Be sure to have absolute directory names.
1324 case $ac_val in
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327 esac
1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1329 done
1331 # There might be people who depend on the old broken behavior: `$host'
1332 # used to hold the argument of --host etc.
1333 # FIXME: To remove some day.
1334 build=$build_alias
1335 host=$host_alias
1336 target=$target_alias
1338 # FIXME: To remove some day.
1339 if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1347 ac_tool_prefix=
1348 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350 test "$silent" = yes && exec 6>/dev/null
1353 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354 ac_ls_di=`ls -di .` &&
1355 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1356 as_fn_error $? "working directory cannot be determined"
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 as_fn_error $? "pwd does not report name of working directory"
1361 # Find the source files, if location was not specified.
1362 if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370 $as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1379 /^X\(\/\/\)$/{
1380 s//\1/
1383 /^X\(\/\).*/{
1384 s//\1/
1387 s/.*/./; q'`
1388 srcdir=$ac_confdir
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390 srcdir=..
1392 else
1393 ac_srcdir_defaulted=no
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400 ac_abs_confdir=`(
1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1402 pwd)`
1403 # When building in place, set srcdir=.
1404 if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1407 # Remove unnecessary trailing slashes from srcdir.
1408 # Double slashes in file names in object file debugging info
1409 # mess up M-x gdb in Emacs.
1410 case $srcdir in
1411 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412 esac
1413 for ac_var in $ac_precious_vars; do
1414 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_env_${ac_var}_value=\$${ac_var}
1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1417 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1418 done
1421 # Report the --help message.
1423 if test "$ac_init_help" = "long"; then
1424 # Omit some internal or obsolete options to make the list less imposing.
1425 # This message is too long to be a string in the A/UX 3.1 sh.
1426 cat <<_ACEOF
1427 \`configure' configures Wine 1.5.29 to adapt to many kinds of systems.
1429 Usage: $0 [OPTION]... [VAR=VALUE]...
1431 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1432 VAR=VALUE. See below for descriptions of some of the useful variables.
1434 Defaults for the options are specified in brackets.
1436 Configuration:
1437 -h, --help display this help and exit
1438 --help=short display options specific to this package
1439 --help=recursive display the short help of all the included packages
1440 -V, --version display version information and exit
1441 -q, --quiet, --silent do not print \`checking ...' messages
1442 --cache-file=FILE cache test results in FILE [disabled]
1443 -C, --config-cache alias for \`--cache-file=config.cache'
1444 -n, --no-create do not create output files
1445 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1447 Installation directories:
1448 --prefix=PREFIX install architecture-independent files in PREFIX
1449 [$ac_default_prefix]
1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1451 [PREFIX]
1453 By default, \`make install' will install all the files in
1454 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1455 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1456 for instance \`--prefix=\$HOME'.
1458 For better control, use the options below.
1460 Fine tuning of the installation directories:
1461 --bindir=DIR user executables [EPREFIX/bin]
1462 --sbindir=DIR system admin executables [EPREFIX/sbin]
1463 --libexecdir=DIR program executables [EPREFIX/libexec]
1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1467 --libdir=DIR object code libraries [EPREFIX/lib]
1468 --includedir=DIR C header files [PREFIX/include]
1469 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1472 --infodir=DIR info documentation [DATAROOTDIR/info]
1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1474 --mandir=DIR man documentation [DATAROOTDIR/man]
1475 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1476 --htmldir=DIR html documentation [DOCDIR]
1477 --dvidir=DIR dvi documentation [DOCDIR]
1478 --pdfdir=DIR pdf documentation [DOCDIR]
1479 --psdir=DIR ps documentation [DOCDIR]
1480 _ACEOF
1482 cat <<\_ACEOF
1484 X features:
1485 --x-includes=DIR X include files are in DIR
1486 --x-libraries=DIR X library files are in DIR
1488 System types:
1489 --build=BUILD configure for building on BUILD [guessed]
1490 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1491 _ACEOF
1494 if test -n "$ac_init_help"; then
1495 case $ac_init_help in
1496 short | recursive ) echo "Configuration of Wine 1.5.29:";;
1497 esac
1498 cat <<\_ACEOF
1500 Optional Features:
1501 --disable-option-checking ignore unrecognized --enable/--with options
1502 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1503 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1504 --disable-win16 do not include Win16 support
1505 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1506 binaries)
1507 --disable-tests do not build the regression tests
1508 --enable-maintainer-mode
1509 enable maintainer-specific build rules
1510 --disable-largefile omit support for large files
1512 Optional Packages:
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --without-alsa do not use the Alsa sound support
1516 --without-capi do not use CAPI (ISDN support)
1517 --without-cms do not use CMS (color management support)
1518 --without-coreaudio do not use the CoreAudio sound support
1519 --without-cups do not use CUPS
1520 --without-curses do not use (n)curses
1521 --without-dbus do not use DBus (dynamic device support)
1522 --without-fontconfig do not use fontconfig
1523 --without-freetype do not use the FreeType library
1524 --without-gettext do not use gettext
1525 --with-gettextpo use the GetTextPO library to rebuild po files
1526 --without-gphoto do not use gphoto (Digital Camera support)
1527 --without-glu do not use the GLU library
1528 --without-gnutls do not use GnuTLS (schannel support)
1529 --without-gsm do not use libgsm (GSM 06.10 codec support)
1530 --without-gstreamer do not use GStreamer (codecs support)
1531 --without-hal do not use HAL (dynamic device support)
1532 --without-jpeg do not use JPEG
1533 --without-ldap do not use LDAP
1534 --without-mpg123 do not use the mpg123 library
1535 --without-openal do not use OpenAL
1536 --without-opencl do not use OpenCL
1537 --without-opengl do not use OpenGL
1538 --without-osmesa do not use the OSMesa library
1539 --without-oss do not use the OSS sound support
1540 --without-png do not use PNG
1541 --without-pthread do not use the pthread library
1542 --without-sane do not use SANE (scanner support)
1543 --without-tiff do not use TIFF
1544 --without-v4l do not use v4l1 (v4l support)
1545 --without-xcomposite do not use the Xcomposite extension
1546 --without-xcursor do not use the Xcursor extension
1547 --without-xinerama do not use Xinerama (multi-monitor support)
1548 --without-xinput do not use the Xinput extension
1549 --without-xinput2 do not use the Xinput 2 extension
1550 --without-xml do not use XML
1551 --without-xrandr do not use Xrandr (resolution changes)
1552 --without-xrender do not use the Xrender extension
1553 --without-xshape do not use the Xshape extension
1554 --without-xshm do not use XShm (shared memory extension)
1555 --without-xslt do not use XSLT
1556 --without-xxf86vm do not use XFree video mode extension
1557 --without-zlib do not use Zlib (data compression)
1558 --with-wine-tools=DIR use Wine tools from directory DIR
1559 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1560 --with-x use the X Window System
1562 Some influential environment variables:
1563 CC C compiler command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1566 nonstandard directory <lib dir>
1567 LIBS libraries to pass to the linker, e.g. -l<library>
1568 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1569 you have headers in a nonstandard directory <include dir>
1570 CXX C++ compiler command
1571 CXXFLAGS C++ compiler flags
1572 CPP C preprocessor
1573 XMKMF Path to xmkmf, Makefile generator for X Window System
1574 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
1575 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
1576 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
1577 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
1578 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
1579 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
1580 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
1581 HAL_LIBS Linker flags for hal, overriding pkg-config
1582 GNUTLS_CFLAGS
1583 C compiler flags for gnutls, overriding pkg-config
1584 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
1585 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
1586 SANE_LIBS Linker flags for libsane, overriding pkg-config
1587 GPHOTO2_CFLAGS
1588 C compiler flags for libgphoto2, overriding pkg-config
1589 GPHOTO2_LIBS
1590 Linker flags for libgphoto2, overriding pkg-config
1591 GPHOTO2_PORT_CFLAGS
1592 C compiler flags for libgphoto2_port, overriding pkg-config
1593 GPHOTO2_PORT_LIBS
1594 Linker flags for libgphoto2_port, overriding pkg-config
1595 LCMS_CFLAGS C compiler flags for lcms, overriding pkg-config
1596 LCMS_LIBS Linker flags for lcms, overriding pkg-config
1597 FREETYPE_CFLAGS
1598 C compiler flags for freetype2, overriding pkg-config
1599 FREETYPE_LIBS
1600 Linker flags for freetype2, overriding pkg-config
1601 GSTREAMER_CFLAGS
1602 C compiler flags for gstreamer-app-0.10, overriding pkg-config
1603 GSTREAMER_LIBS
1604 Linker flags for gstreamer-app-0.10, overriding pkg-config
1606 Use these variables to override the choices made by `configure' or to help
1607 it to find libraries and programs with nonstandard names/locations.
1609 Report bugs to <wine-devel@winehq.org>.
1610 Wine home page: <http://www.winehq.org>.
1611 _ACEOF
1612 ac_status=$?
1615 if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
1617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 continue
1621 ac_builddir=.
1623 case "$ac_dir" in
1624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 esac ;;
1633 esac
1634 ac_abs_top_builddir=$ac_pwd
1635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636 # for backward compatibility:
1637 ac_top_builddir=$ac_top_build_prefix
1639 case $srcdir in
1640 .) # We are building in place.
1641 ac_srcdir=.
1642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
1645 ac_srcdir=$srcdir$ac_dir_suffix;
1646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1648 *) # Relative name.
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652 esac
1653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure" --help=recursive
1663 else
1664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 fi || ac_status=$?
1666 cd "$ac_pwd" || { ac_status=$?; break; }
1667 done
1670 test -n "$ac_init_help" && exit $ac_status
1671 if $ac_init_version; then
1672 cat <<\_ACEOF
1673 Wine configure 1.5.29
1674 generated by GNU Autoconf 2.69
1676 Copyright (C) 2012 Free Software Foundation, Inc.
1677 This configure script is free software; the Free Software Foundation
1678 gives unlimited permission to copy, distribute and modify it.
1679 _ACEOF
1680 exit
1683 ## ------------------------ ##
1684 ## Autoconf initialization. ##
1685 ## ------------------------ ##
1687 # ac_fn_c_try_compile LINENO
1688 # --------------------------
1689 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_compile ()
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1718 ac_retval=1
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1723 } # ac_fn_c_try_compile
1725 # ac_fn_cxx_try_compile LINENO
1726 # ----------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_cxx_try_compile ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_cxx_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1756 ac_retval=1
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1761 } # ac_fn_cxx_try_compile
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_link ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 test -x conftest$ac_exeext
1791 }; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1797 ac_retval=1
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1807 } # ac_fn_c_try_link
1809 # ac_fn_c_try_cpp LINENO
1810 # ----------------------
1811 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_cpp ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_cpp conftest.$ac_ext"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } > conftest.i && {
1831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 }; then :
1834 ac_retval=0
1835 else
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1839 ac_retval=1
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1844 } # ac_fn_c_try_cpp
1846 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1849 # the include files in INCLUDES and setting the cache variable VAR
1850 # accordingly.
1851 ac_fn_c_check_header_mongrel ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if eval \${$3+:} false; then :
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1860 eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 else
1864 # Is the header compilable?
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1866 $as_echo_n "checking $2 usability... " >&6; }
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1870 #include <$2>
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"; then :
1873 ac_header_compiler=yes
1874 else
1875 ac_header_compiler=no
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1879 $as_echo "$ac_header_compiler" >&6; }
1881 # Is the header present?
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1883 $as_echo_n "checking $2 presence... " >&6; }
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 #include <$2>
1887 _ACEOF
1888 if ac_fn_c_try_cpp "$LINENO"; then :
1889 ac_header_preproc=yes
1890 else
1891 ac_header_preproc=no
1893 rm -f conftest.err conftest.i conftest.$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1895 $as_echo "$ac_header_preproc" >&6; }
1897 # So? What about this header?
1898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1899 yes:no: )
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1901 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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;}
1905 no:yes:* )
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1907 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1909 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1911 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1913 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916 ( $as_echo "## ------------------------------------ ##
1917 ## Report this to wine-devel@winehq.org ##
1918 ## ------------------------------------ ##"
1919 ) | sed "s/^/$as_me: WARNING: /" >&2
1921 esac
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if eval \${$3+:} false; then :
1925 $as_echo_n "(cached) " >&6
1926 else
1927 eval "$3=\$ac_header_compiler"
1929 eval ac_res=\$$3
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 } # ac_fn_c_check_header_mongrel
1937 # ac_fn_c_try_run LINENO
1938 # ----------------------
1939 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1940 # that executables *can* be run.
1941 ac_fn_c_try_run ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if { { ac_try="$ac_link"
1945 case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_link") 2>&5
1952 ac_status=$?
1953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1954 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1955 { { case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_try") 2>&5
1962 ac_status=$?
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; }; }; then :
1965 ac_retval=0
1966 else
1967 $as_echo "$as_me: program exited with status $ac_status" >&5
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1971 ac_retval=$ac_status
1973 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 as_fn_set_status $ac_retval
1977 } # ac_fn_c_try_run
1979 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1980 # -------------------------------------------------------
1981 # Tests whether HEADER exists and can be compiled using the include files in
1982 # INCLUDES, setting the cache variable VAR accordingly.
1983 ac_fn_c_check_header_compile ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \${$3+:} false; then :
1989 $as_echo_n "(cached) " >&6
1990 else
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1994 #include <$2>
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997 eval "$3=yes"
1998 else
1999 eval "$3=no"
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 eval ac_res=\$$3
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005 $as_echo "$ac_res" >&6; }
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 } # ac_fn_c_check_header_compile
2010 # ac_fn_c_check_func LINENO FUNC VAR
2011 # ----------------------------------
2012 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2013 ac_fn_c_check_func ()
2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2020 else
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2023 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2025 #define $2 innocuous_$2
2027 /* System header to define __stub macros and hopefully few prototypes,
2028 which can conflict with char $2 (); below.
2029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2030 <limits.h> exists even on freestanding compilers. */
2032 #ifdef __STDC__
2033 # include <limits.h>
2034 #else
2035 # include <assert.h>
2036 #endif
2038 #undef $2
2040 /* Override any GCC internal prototype to avoid an error.
2041 Use char because int might match the return type of a GCC
2042 builtin and then its argument prototype would still apply. */
2043 #ifdef __cplusplus
2044 extern "C"
2045 #endif
2046 char $2 ();
2047 /* The GNU C library defines this for functions which it implements
2048 to always fail with ENOSYS. Some functions are actually named
2049 something starting with __ and the normal name is an alias. */
2050 #if defined __stub_$2 || defined __stub___$2
2051 choke me
2052 #endif
2055 main ()
2057 return $2 ();
2059 return 0;
2061 _ACEOF
2062 if ac_fn_c_try_link "$LINENO"; then :
2063 eval "$3=yes"
2064 else
2065 eval "$3=no"
2067 rm -f core conftest.err conftest.$ac_objext \
2068 conftest$ac_exeext conftest.$ac_ext
2070 eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2075 } # ac_fn_c_check_func
2077 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2078 # ----------------------------------------------------
2079 # Tries to find if the field MEMBER exists in type AGGR, after including
2080 # INCLUDES, setting cache variable VAR accordingly.
2081 ac_fn_c_check_member ()
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2085 $as_echo_n "checking for $2.$3... " >&6; }
2086 if eval \${$4+:} false; then :
2087 $as_echo_n "(cached) " >&6
2088 else
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 main ()
2095 static $2 ac_aggr;
2096 if (ac_aggr.$3)
2097 return 0;
2099 return 0;
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 eval "$4=yes"
2104 else
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2109 main ()
2111 static $2 ac_aggr;
2112 if (sizeof ac_aggr.$3)
2113 return 0;
2115 return 0;
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119 eval "$4=yes"
2120 else
2121 eval "$4=no"
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 eval ac_res=\$$4
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132 } # ac_fn_c_check_member
2134 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2135 # -------------------------------------------
2136 # Tests whether TYPE exists after having included INCLUDES, setting cache
2137 # variable VAR accordingly.
2138 ac_fn_c_check_type ()
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2142 $as_echo_n "checking for $2... " >&6; }
2143 if eval \${$3+:} false; then :
2144 $as_echo_n "(cached) " >&6
2145 else
2146 eval "$3=no"
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2151 main ()
2153 if (sizeof ($2))
2154 return 0;
2156 return 0;
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2164 main ()
2166 if (sizeof (($2)))
2167 return 0;
2169 return 0;
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2174 else
2175 eval "$3=yes"
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 eval ac_res=\$$3
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186 } # ac_fn_c_check_type
2187 cat >config.log <<_ACEOF
2188 This file contains any messages produced by compilers while
2189 running configure, to aid debugging if configure makes a mistake.
2191 It was created by Wine $as_me 1.5.29, which was
2192 generated by GNU Autoconf 2.69. Invocation command line was
2194 $ $0 $@
2196 _ACEOF
2197 exec 5>>config.log
2199 cat <<_ASUNAME
2200 ## --------- ##
2201 ## Platform. ##
2202 ## --------- ##
2204 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2205 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2206 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2207 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2208 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2210 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2211 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2213 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2214 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2215 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2216 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2217 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2218 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2219 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2221 _ASUNAME
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 $as_echo "PATH: $as_dir"
2229 done
2230 IFS=$as_save_IFS
2232 } >&5
2234 cat >&5 <<_ACEOF
2237 ## ----------- ##
2238 ## Core tests. ##
2239 ## ----------- ##
2241 _ACEOF
2244 # Keep a trace of the command line.
2245 # Strip out --no-create and --no-recursion so they do not pile up.
2246 # Strip out --silent because we don't want to record it for future runs.
2247 # Also quote any args containing shell meta-characters.
2248 # Make two passes to allow for proper duplicate-argument suppression.
2249 ac_configure_args=
2250 ac_configure_args0=
2251 ac_configure_args1=
2252 ac_must_keep_next=false
2253 for ac_pass in 1 2
2255 for ac_arg
2257 case $ac_arg in
2258 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2260 | -silent | --silent | --silen | --sile | --sil)
2261 continue ;;
2262 *\'*)
2263 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2264 esac
2265 case $ac_pass in
2266 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2268 as_fn_append ac_configure_args1 " '$ac_arg'"
2269 if test $ac_must_keep_next = true; then
2270 ac_must_keep_next=false # Got value, back to normal.
2271 else
2272 case $ac_arg in
2273 *=* | --config-cache | -C | -disable-* | --disable-* \
2274 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2275 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2276 | -with-* | --with-* | -without-* | --without-* | --x)
2277 case "$ac_configure_args0 " in
2278 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2279 esac
2281 -* ) ac_must_keep_next=true ;;
2282 esac
2284 as_fn_append ac_configure_args " '$ac_arg'"
2286 esac
2287 done
2288 done
2289 { ac_configure_args0=; unset ac_configure_args0;}
2290 { ac_configure_args1=; unset ac_configure_args1;}
2292 # When interrupted or exit'd, cleanup temporary files, and complete
2293 # config.log. We remove comments because anyway the quotes in there
2294 # would cause problems or look ugly.
2295 # WARNING: Use '\'' to represent an apostrophe within the trap.
2296 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2297 trap 'exit_status=$?
2298 # Save into config.log some information that might help in debugging.
2300 echo
2302 $as_echo "## ---------------- ##
2303 ## Cache variables. ##
2304 ## ---------------- ##"
2305 echo
2306 # The following way of writing the cache mishandles newlines in values,
2308 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2309 eval ac_val=\$$ac_var
2310 case $ac_val in #(
2311 *${as_nl}*)
2312 case $ac_var in #(
2313 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2314 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2315 esac
2316 case $ac_var in #(
2317 _ | IFS | as_nl) ;; #(
2318 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2319 *) { eval $ac_var=; unset $ac_var;} ;;
2320 esac ;;
2321 esac
2322 done
2323 (set) 2>&1 |
2324 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2325 *${as_nl}ac_space=\ *)
2326 sed -n \
2327 "s/'\''/'\''\\\\'\'''\''/g;
2328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2329 ;; #(
2331 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2333 esac |
2334 sort
2336 echo
2338 $as_echo "## ----------------- ##
2339 ## Output variables. ##
2340 ## ----------------- ##"
2341 echo
2342 for ac_var in $ac_subst_vars
2344 eval ac_val=\$$ac_var
2345 case $ac_val in
2346 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2347 esac
2348 $as_echo "$ac_var='\''$ac_val'\''"
2349 done | sort
2350 echo
2352 if test -n "$ac_subst_files"; then
2353 $as_echo "## ------------------- ##
2354 ## File substitutions. ##
2355 ## ------------------- ##"
2356 echo
2357 for ac_var in $ac_subst_files
2359 eval ac_val=\$$ac_var
2360 case $ac_val in
2361 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2362 esac
2363 $as_echo "$ac_var='\''$ac_val'\''"
2364 done | sort
2365 echo
2368 if test -s confdefs.h; then
2369 $as_echo "## ----------- ##
2370 ## confdefs.h. ##
2371 ## ----------- ##"
2372 echo
2373 cat confdefs.h
2374 echo
2376 test "$ac_signal" != 0 &&
2377 $as_echo "$as_me: caught signal $ac_signal"
2378 $as_echo "$as_me: exit $exit_status"
2379 } >&5
2380 rm -f core *.core core.conftest.* &&
2381 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2382 exit $exit_status
2384 for ac_signal in 1 2 13 15; do
2385 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2386 done
2387 ac_signal=0
2389 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2390 rm -f -r conftest* confdefs.h
2392 $as_echo "/* confdefs.h */" > confdefs.h
2394 # Predefined preprocessor variables.
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_NAME "$PACKAGE_NAME"
2398 _ACEOF
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2402 _ACEOF
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2406 _ACEOF
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_STRING "$PACKAGE_STRING"
2410 _ACEOF
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2414 _ACEOF
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_URL "$PACKAGE_URL"
2418 _ACEOF
2421 # Let the site file select an alternate cache file if it wants to.
2422 # Prefer an explicitly selected file to automatically selected ones.
2423 ac_site_file1=NONE
2424 ac_site_file2=NONE
2425 if test -n "$CONFIG_SITE"; then
2426 # We do not want a PATH search for config.site.
2427 case $CONFIG_SITE in #((
2428 -*) ac_site_file1=./$CONFIG_SITE;;
2429 */*) ac_site_file1=$CONFIG_SITE;;
2430 *) ac_site_file1=./$CONFIG_SITE;;
2431 esac
2432 elif test "x$prefix" != xNONE; then
2433 ac_site_file1=$prefix/share/config.site
2434 ac_site_file2=$prefix/etc/config.site
2435 else
2436 ac_site_file1=$ac_default_prefix/share/config.site
2437 ac_site_file2=$ac_default_prefix/etc/config.site
2439 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2441 test "x$ac_site_file" = xNONE && continue
2442 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2444 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2445 sed 's/^/| /' "$ac_site_file" >&5
2446 . "$ac_site_file" \
2447 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2449 as_fn_error $? "failed to load site script $ac_site_file
2450 See \`config.log' for more details" "$LINENO" 5; }
2452 done
2454 if test -r "$cache_file"; then
2455 # Some versions of bash will fail to source /dev/null (special files
2456 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2457 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2459 $as_echo "$as_me: loading cache $cache_file" >&6;}
2460 case $cache_file in
2461 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2462 *) . "./$cache_file";;
2463 esac
2465 else
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2467 $as_echo "$as_me: creating cache $cache_file" >&6;}
2468 >$cache_file
2471 # Check that the precious variables saved in the cache have kept the same
2472 # value.
2473 ac_cache_corrupted=false
2474 for ac_var in $ac_precious_vars; do
2475 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2476 eval ac_new_set=\$ac_env_${ac_var}_set
2477 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2478 eval ac_new_val=\$ac_env_${ac_var}_value
2479 case $ac_old_set,$ac_new_set in
2480 set,)
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2482 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2483 ac_cache_corrupted=: ;;
2484 ,set)
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2486 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2487 ac_cache_corrupted=: ;;
2488 ,);;
2490 if test "x$ac_old_val" != "x$ac_new_val"; then
2491 # differences in whitespace do not lead to failure.
2492 ac_old_val_w=`echo x $ac_old_val`
2493 ac_new_val_w=`echo x $ac_new_val`
2494 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2496 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2497 ac_cache_corrupted=:
2498 else
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2500 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2501 eval $ac_var=\$ac_old_val
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2504 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2506 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2507 fi;;
2508 esac
2509 # Pass precious variables to config.status.
2510 if test "$ac_new_set" = set; then
2511 case $ac_new_val in
2512 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2513 *) ac_arg=$ac_var=$ac_new_val ;;
2514 esac
2515 case " $ac_configure_args " in
2516 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2517 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2518 esac
2520 done
2521 if $ac_cache_corrupted; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2525 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2526 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2528 ## -------------------- ##
2529 ## Main body of script. ##
2530 ## -------------------- ##
2532 ac_ext=c
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540 ac_config_headers="$ac_config_headers include/config.h"
2542 ac_aux_dir=
2543 for ac_dir in tools "$srcdir"/tools; do
2544 if test -f "$ac_dir/install-sh"; then
2545 ac_aux_dir=$ac_dir
2546 ac_install_sh="$ac_aux_dir/install-sh -c"
2547 break
2548 elif test -f "$ac_dir/install.sh"; then
2549 ac_aux_dir=$ac_dir
2550 ac_install_sh="$ac_aux_dir/install.sh -c"
2551 break
2552 elif test -f "$ac_dir/shtool"; then
2553 ac_aux_dir=$ac_dir
2554 ac_install_sh="$ac_aux_dir/shtool install -c"
2555 break
2557 done
2558 if test -z "$ac_aux_dir"; then
2559 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2562 # These three variables are undocumented and unsupported,
2563 # and are intended to be withdrawn in a future Autoconf release.
2564 # They can cause serious problems if a builder's source tree is in a directory
2565 # whose full name contains unusual characters.
2566 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2567 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2568 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2574 # Check whether --enable-win16 was given.
2575 if test "${enable_win16+set}" = set; then :
2576 enableval=$enable_win16;
2579 # Check whether --enable-win64 was given.
2580 if test "${enable_win64+set}" = set; then :
2581 enableval=$enable_win64;
2584 # Check whether --enable-tests was given.
2585 if test "${enable_tests+set}" = set; then :
2586 enableval=$enable_tests;
2589 # Check whether --enable-maintainer-mode was given.
2590 if test "${enable_maintainer_mode+set}" = set; then :
2591 enableval=$enable_maintainer_mode;
2596 # Check whether --with-alsa was given.
2597 if test "${with_alsa+set}" = set; then :
2598 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2602 # Check whether --with-capi was given.
2603 if test "${with_capi+set}" = set; then :
2604 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2608 # Check whether --with-cms was given.
2609 if test "${with_cms+set}" = set; then :
2610 withval=$with_cms;
2614 # Check whether --with-coreaudio was given.
2615 if test "${with_coreaudio+set}" = set; then :
2616 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2620 # Check whether --with-cups was given.
2621 if test "${with_cups+set}" = set; then :
2622 withval=$with_cups;
2626 # Check whether --with-curses was given.
2627 if test "${with_curses+set}" = set; then :
2628 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2632 # Check whether --with-dbus was given.
2633 if test "${with_dbus+set}" = set; then :
2634 withval=$with_dbus;
2638 # Check whether --with-fontconfig was given.
2639 if test "${with_fontconfig+set}" = set; then :
2640 withval=$with_fontconfig;
2644 # Check whether --with-freetype was given.
2645 if test "${with_freetype+set}" = set; then :
2646 withval=$with_freetype;
2650 # Check whether --with-gettext was given.
2651 if test "${with_gettext+set}" = set; then :
2652 withval=$with_gettext;
2656 # Check whether --with-gettextpo was given.
2657 if test "${with_gettextpo+set}" = set; then :
2658 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2662 # Check whether --with-gphoto was given.
2663 if test "${with_gphoto+set}" = set; then :
2664 withval=$with_gphoto;
2668 # Check whether --with-glu was given.
2669 if test "${with_glu+set}" = set; then :
2670 withval=$with_glu;
2674 # Check whether --with-gnutls was given.
2675 if test "${with_gnutls+set}" = set; then :
2676 withval=$with_gnutls;
2680 # Check whether --with-gsm was given.
2681 if test "${with_gsm+set}" = set; then :
2682 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2686 # Check whether --with-gstreamer was given.
2687 if test "${with_gstreamer+set}" = set; then :
2688 withval=$with_gstreamer;
2692 # Check whether --with-hal was given.
2693 if test "${with_hal+set}" = set; then :
2694 withval=$with_hal;
2698 # Check whether --with-jpeg was given.
2699 if test "${with_jpeg+set}" = set; then :
2700 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2704 # Check whether --with-ldap was given.
2705 if test "${with_ldap+set}" = set; then :
2706 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2710 # Check whether --with-mpg123 was given.
2711 if test "${with_mpg123+set}" = set; then :
2712 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2716 # Check whether --with-openal was given.
2717 if test "${with_openal+set}" = set; then :
2718 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2722 # Check whether --with-opencl was given.
2723 if test "${with_opencl+set}" = set; then :
2724 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2728 # Check whether --with-opengl was given.
2729 if test "${with_opengl+set}" = set; then :
2730 withval=$with_opengl;
2734 # Check whether --with-osmesa was given.
2735 if test "${with_osmesa+set}" = set; then :
2736 withval=$with_osmesa;
2740 # Check whether --with-oss was given.
2741 if test "${with_oss+set}" = set; then :
2742 withval=$with_oss;
2746 # Check whether --with-png was given.
2747 if test "${with_png+set}" = set; then :
2748 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2752 # Check whether --with-pthread was given.
2753 if test "${with_pthread+set}" = set; then :
2754 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2758 # Check whether --with-sane was given.
2759 if test "${with_sane+set}" = set; then :
2760 withval=$with_sane;
2764 # Check whether --with-tiff was given.
2765 if test "${with_tiff+set}" = set; then :
2766 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2770 # Check whether --with-v4l was given.
2771 if test "${with_v4l+set}" = set; then :
2772 withval=$with_v4l;
2776 # Check whether --with-xcomposite was given.
2777 if test "${with_xcomposite+set}" = set; then :
2778 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2782 # Check whether --with-xcursor was given.
2783 if test "${with_xcursor+set}" = set; then :
2784 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2788 # Check whether --with-xinerama was given.
2789 if test "${with_xinerama+set}" = set; then :
2790 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2794 # Check whether --with-xinput was given.
2795 if test "${with_xinput+set}" = set; then :
2796 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2800 # Check whether --with-xinput2 was given.
2801 if test "${with_xinput2+set}" = set; then :
2802 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2806 # Check whether --with-xml was given.
2807 if test "${with_xml+set}" = set; then :
2808 withval=$with_xml;
2812 # Check whether --with-xrandr was given.
2813 if test "${with_xrandr+set}" = set; then :
2814 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2818 # Check whether --with-xrender was given.
2819 if test "${with_xrender+set}" = set; then :
2820 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2824 # Check whether --with-xshape was given.
2825 if test "${with_xshape+set}" = set; then :
2826 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2830 # Check whether --with-xshm was given.
2831 if test "${with_xshm+set}" = set; then :
2832 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2836 # Check whether --with-xslt was given.
2837 if test "${with_xslt+set}" = set; then :
2838 withval=$with_xslt;
2842 # Check whether --with-xxf86vm was given.
2843 if test "${with_xxf86vm+set}" = set; then :
2844 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
2848 # Check whether --with-zlib was given.
2849 if test "${with_zlib+set}" = set; then :
2850 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2855 # Check whether --with-wine-tools was given.
2856 if test "${with_wine_tools+set}" = set; then :
2857 withval=$with_wine_tools;
2861 # Check whether --with-wine64 was given.
2862 if test "${with_wine64+set}" = set; then :
2863 withval=$with_wine64;
2867 # Make sure we can run config.sub.
2868 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2869 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2872 $as_echo_n "checking build system type... " >&6; }
2873 if ${ac_cv_build+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 ac_build_alias=$build_alias
2877 test "x$ac_build_alias" = x &&
2878 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2879 test "x$ac_build_alias" = x &&
2880 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2881 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2882 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2886 $as_echo "$ac_cv_build" >&6; }
2887 case $ac_cv_build in
2888 *-*-*) ;;
2889 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2890 esac
2891 build=$ac_cv_build
2892 ac_save_IFS=$IFS; IFS='-'
2893 set x $ac_cv_build
2894 shift
2895 build_cpu=$1
2896 build_vendor=$2
2897 shift; shift
2898 # Remember, the first character of IFS is used to create $*,
2899 # except with old shells:
2900 build_os=$*
2901 IFS=$ac_save_IFS
2902 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2906 $as_echo_n "checking host system type... " >&6; }
2907 if ${ac_cv_host+:} false; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test "x$host_alias" = x; then
2911 ac_cv_host=$ac_cv_build
2912 else
2913 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2914 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2919 $as_echo "$ac_cv_host" >&6; }
2920 case $ac_cv_host in
2921 *-*-*) ;;
2922 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2923 esac
2924 host=$ac_cv_host
2925 ac_save_IFS=$IFS; IFS='-'
2926 set x $ac_cv_host
2927 shift
2928 host_cpu=$1
2929 host_vendor=$2
2930 shift; shift
2931 # Remember, the first character of IFS is used to create $*,
2932 # except with old shells:
2933 host_os=$*
2934 IFS=$ac_save_IFS
2935 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2939 case "$srcdir" in
2940 .) ;;
2941 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2942 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2943 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2944 fi ;;
2945 esac
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2949 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2950 set x ${MAKE-make}
2951 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2952 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 cat >conftest.make <<\_ACEOF
2956 SHELL = /bin/sh
2957 all:
2958 @echo '@@@%%%=$(MAKE)=@@@%%%'
2959 _ACEOF
2960 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2961 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2962 *@@@%%%=?*=@@@%%%*)
2963 eval ac_cv_prog_make_${ac_make}_set=yes;;
2965 eval ac_cv_prog_make_${ac_make}_set=no;;
2966 esac
2967 rm -f conftest.make
2969 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2971 $as_echo "yes" >&6; }
2972 SET_MAKE=
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 SET_MAKE="MAKE=${MAKE-make}"
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984 if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_CC+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3006 done
3007 done
3008 IFS=$as_save_IFS
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3023 if test -z "$ac_cv_prog_CC"; then
3024 ac_ct_CC=$CC
3025 # Extract the first word of "gcc", so it can be a program name with args.
3026 set dummy gcc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$ac_ct_CC"; then
3033 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 ac_cv_prog_ac_ct_CC="gcc"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3046 done
3047 done
3048 IFS=$as_save_IFS
3052 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3053 if test -n "$ac_ct_CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3055 $as_echo "$ac_ct_CC" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3061 if test "x$ac_ct_CC" = x; then
3062 CC=""
3063 else
3064 case $cross_compiling:$ac_tool_warned in
3065 yes:)
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3067 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3068 ac_tool_warned=yes ;;
3069 esac
3070 CC=$ac_ct_CC
3072 else
3073 CC="$ac_cv_prog_CC"
3076 if test -z "$CC"; then
3077 if test -n "$ac_tool_prefix"; then
3078 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3079 set dummy ${ac_tool_prefix}cc; ac_word=$2
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if ${ac_cv_prog_CC+:} false; then :
3083 $as_echo_n "(cached) " >&6
3084 else
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3095 ac_cv_prog_CC="${ac_tool_prefix}cc"
3096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 break 2
3099 done
3100 done
3101 IFS=$as_save_IFS
3105 CC=$ac_cv_prog_CC
3106 if test -n "$CC"; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3109 else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3117 if test -z "$CC"; then
3118 # Extract the first word of "cc", so it can be a program name with args.
3119 set dummy cc; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_CC+:} false; then :
3123 $as_echo_n "(cached) " >&6
3124 else
3125 if test -n "$CC"; then
3126 ac_cv_prog_CC="$CC" # Let the user override the test.
3127 else
3128 ac_prog_rejected=no
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3137 ac_prog_rejected=yes
3138 continue
3140 ac_cv_prog_CC="cc"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3144 done
3145 done
3146 IFS=$as_save_IFS
3148 if test $ac_prog_rejected = yes; then
3149 # We found a bogon in the path, so make sure we never use it.
3150 set dummy $ac_cv_prog_CC
3151 shift
3152 if test $# != 0; then
3153 # We chose a different compiler from the bogus one.
3154 # However, it has the same basename, so the bogon will be chosen
3155 # first if we set CC to just the basename; use the full file name.
3156 shift
3157 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3162 CC=$ac_cv_prog_CC
3163 if test -n "$CC"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3165 $as_echo "$CC" >&6; }
3166 else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3173 if test -z "$CC"; then
3174 if test -n "$ac_tool_prefix"; then
3175 for ac_prog in cl.exe
3177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_prog_CC+:} false; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC="$CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3198 done
3199 done
3200 IFS=$as_save_IFS
3204 CC=$ac_cv_prog_CC
3205 if test -n "$CC"; then
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3207 $as_echo "$CC" >&6; }
3208 else
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210 $as_echo "no" >&6; }
3214 test -n "$CC" && break
3215 done
3217 if test -z "$CC"; then
3218 ac_ct_CC=$CC
3219 for ac_prog in cl.exe
3221 # Extract the first word of "$ac_prog", so it can be a program name with args.
3222 set dummy $ac_prog; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3226 $as_echo_n "(cached) " >&6
3227 else
3228 if test -n "$ac_ct_CC"; then
3229 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3234 IFS=$as_save_IFS
3235 test -z "$as_dir" && as_dir=.
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238 ac_cv_prog_ac_ct_CC="$ac_prog"
3239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240 break 2
3242 done
3243 done
3244 IFS=$as_save_IFS
3248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3249 if test -n "$ac_ct_CC"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3251 $as_echo "$ac_ct_CC" >&6; }
3252 else
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3258 test -n "$ac_ct_CC" && break
3259 done
3261 if test "x$ac_ct_CC" = x; then
3262 CC=""
3263 else
3264 case $cross_compiling:$ac_tool_warned in
3265 yes:)
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3268 ac_tool_warned=yes ;;
3269 esac
3270 CC=$ac_ct_CC
3277 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error $? "no acceptable C compiler found in \$PATH
3280 See \`config.log' for more details" "$LINENO" 5; }
3282 # Provide some information about the compiler.
3283 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3284 set X $ac_compile
3285 ac_compiler=$2
3286 for ac_option in --version -v -V -qversion; do
3287 { { ac_try="$ac_compiler $ac_option >&5"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3295 ac_status=$?
3296 if test -s conftest.err; then
3297 sed '10a\
3298 ... rest of stderr output deleted ...
3299 10q' conftest.err >conftest.er1
3300 cat conftest.er1 >&5
3302 rm -f conftest.er1 conftest.err
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }
3305 done
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3311 main ()
3315 return 0;
3317 _ACEOF
3318 ac_clean_files_save=$ac_clean_files
3319 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3320 # Try to create an executable without -o first, disregard a.out.
3321 # It will help us diagnose broken compilers, and finding out an intuition
3322 # of exeext.
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3324 $as_echo_n "checking whether the C compiler works... " >&6; }
3325 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3327 # The possible output files:
3328 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3330 ac_rmfiles=
3331 for ac_file in $ac_files
3333 case $ac_file in
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3335 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3336 esac
3337 done
3338 rm -f $ac_rmfiles
3340 if { { ac_try="$ac_link_default"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347 (eval "$ac_link_default") 2>&5
3348 ac_status=$?
3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }; then :
3351 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3352 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3353 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3354 # so that the user can short-circuit this test for compilers unknown to
3355 # Autoconf.
3356 for ac_file in $ac_files ''
3358 test -f "$ac_file" || continue
3359 case $ac_file in
3360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3362 [ab].out )
3363 # We found the default executable, but exeext='' is most
3364 # certainly right.
3365 break;;
3366 *.* )
3367 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3368 then :; else
3369 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3371 # We set ac_cv_exeext here because the later test for it is not
3372 # safe: cross compilers may not add the suffix if given an `-o'
3373 # argument, so we may need to know it at that point already.
3374 # Even if this section looks crufty: it has the advantage of
3375 # actually working.
3376 break;;
3378 break;;
3379 esac
3380 done
3381 test "$ac_cv_exeext" = no && ac_cv_exeext=
3383 else
3384 ac_file=''
3386 if test -z "$ac_file"; then :
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 $as_echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error 77 "C compiler cannot create executables
3395 See \`config.log' for more details" "$LINENO" 5; }
3396 else
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3398 $as_echo "yes" >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3401 $as_echo_n "checking for C compiler default output file name... " >&6; }
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3403 $as_echo "$ac_file" >&6; }
3404 ac_exeext=$ac_cv_exeext
3406 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3407 ac_clean_files=$ac_clean_files_save
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3409 $as_echo_n "checking for suffix of executables... " >&6; }
3410 if { { ac_try="$ac_link"
3411 case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414 esac
3415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416 $as_echo "$ac_try_echo"; } >&5
3417 (eval "$ac_link") 2>&5
3418 ac_status=$?
3419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }; then :
3421 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3422 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3423 # work properly (i.e., refer to `conftest.exe'), while it won't with
3424 # `rm'.
3425 for ac_file in conftest.exe conftest conftest.*; do
3426 test -f "$ac_file" || continue
3427 case $ac_file in
3428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3429 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3430 break;;
3431 * ) break;;
3432 esac
3433 done
3434 else
3435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3438 See \`config.log' for more details" "$LINENO" 5; }
3440 rm -f conftest conftest$ac_cv_exeext
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3442 $as_echo "$ac_cv_exeext" >&6; }
3444 rm -f conftest.$ac_ext
3445 EXEEXT=$ac_cv_exeext
3446 ac_exeext=$EXEEXT
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3449 #include <stdio.h>
3451 main ()
3453 FILE *f = fopen ("conftest.out", "w");
3454 return ferror (f) || fclose (f) != 0;
3457 return 0;
3459 _ACEOF
3460 ac_clean_files="$ac_clean_files conftest.out"
3461 # Check that the compiler produces executables we can run. If not, either
3462 # the compiler is broken, or we cross compile.
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3464 $as_echo_n "checking whether we are cross compiling... " >&6; }
3465 if test "$cross_compiling" != yes; then
3466 { { ac_try="$ac_link"
3467 case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3470 esac
3471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472 $as_echo "$ac_try_echo"; } >&5
3473 (eval "$ac_link") 2>&5
3474 ac_status=$?
3475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476 test $ac_status = 0; }
3477 if { ac_try='./conftest$ac_cv_exeext'
3478 { { case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484 (eval "$ac_try") 2>&5
3485 ac_status=$?
3486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487 test $ac_status = 0; }; }; then
3488 cross_compiling=no
3489 else
3490 if test "$cross_compiling" = maybe; then
3491 cross_compiling=yes
3492 else
3493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error $? "cannot run C compiled programs.
3496 If you meant to cross compile, use \`--host'.
3497 See \`config.log' for more details" "$LINENO" 5; }
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3502 $as_echo "$cross_compiling" >&6; }
3504 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3505 ac_clean_files=$ac_clean_files_save
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3507 $as_echo_n "checking for suffix of object files... " >&6; }
3508 if ${ac_cv_objext+:} false; then :
3509 $as_echo_n "(cached) " >&6
3510 else
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3515 main ()
3519 return 0;
3521 _ACEOF
3522 rm -f conftest.o conftest.obj
3523 if { { ac_try="$ac_compile"
3524 case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3529 $as_echo "$ac_try_echo"; } >&5
3530 (eval "$ac_compile") 2>&5
3531 ac_status=$?
3532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3533 test $ac_status = 0; }; then :
3534 for ac_file in conftest.o conftest.obj conftest.*; do
3535 test -f "$ac_file" || continue;
3536 case $ac_file in
3537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3538 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3539 break;;
3540 esac
3541 done
3542 else
3543 $as_echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548 as_fn_error $? "cannot compute suffix of object files: cannot compile
3549 See \`config.log' for more details" "$LINENO" 5; }
3551 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3554 $as_echo "$ac_cv_objext" >&6; }
3555 OBJEXT=$ac_cv_objext
3556 ac_objext=$OBJEXT
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3558 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3559 if ${ac_cv_c_compiler_gnu+:} false; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3566 main ()
3568 #ifndef __GNUC__
3569 choke me
3570 #endif
3573 return 0;
3575 _ACEOF
3576 if ac_fn_c_try_compile "$LINENO"; then :
3577 ac_compiler_gnu=yes
3578 else
3579 ac_compiler_gnu=no
3581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3586 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3587 if test $ac_compiler_gnu = yes; then
3588 GCC=yes
3589 else
3590 GCC=
3592 ac_test_CFLAGS=${CFLAGS+set}
3593 ac_save_CFLAGS=$CFLAGS
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3595 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3596 if ${ac_cv_prog_cc_g+:} false; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 ac_save_c_werror_flag=$ac_c_werror_flag
3600 ac_c_werror_flag=yes
3601 ac_cv_prog_cc_g=no
3602 CFLAGS="-g"
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3607 main ()
3611 return 0;
3613 _ACEOF
3614 if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_cv_prog_cc_g=yes
3616 else
3617 CFLAGS=""
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3622 main ()
3626 return 0;
3628 _ACEOF
3629 if ac_fn_c_try_compile "$LINENO"; then :
3631 else
3632 ac_c_werror_flag=$ac_save_c_werror_flag
3633 CFLAGS="-g"
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3638 main ()
3642 return 0;
3644 _ACEOF
3645 if ac_fn_c_try_compile "$LINENO"; then :
3646 ac_cv_prog_cc_g=yes
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 ac_c_werror_flag=$ac_save_c_werror_flag
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3656 $as_echo "$ac_cv_prog_cc_g" >&6; }
3657 if test "$ac_test_CFLAGS" = set; then
3658 CFLAGS=$ac_save_CFLAGS
3659 elif test $ac_cv_prog_cc_g = yes; then
3660 if test "$GCC" = yes; then
3661 CFLAGS="-g -O2"
3662 else
3663 CFLAGS="-g"
3665 else
3666 if test "$GCC" = yes; then
3667 CFLAGS="-O2"
3668 else
3669 CFLAGS=
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3673 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3674 if ${ac_cv_prog_cc_c89+:} false; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 ac_cv_prog_cc_c89=no
3678 ac_save_CC=$CC
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3681 #include <stdarg.h>
3682 #include <stdio.h>
3683 struct stat;
3684 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3685 struct buf { int x; };
3686 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3687 static char *e (p, i)
3688 char **p;
3689 int i;
3691 return p[i];
3693 static char *f (char * (*g) (char **, int), char **p, ...)
3695 char *s;
3696 va_list v;
3697 va_start (v,p);
3698 s = g (p, va_arg (v,int));
3699 va_end (v);
3700 return s;
3703 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3704 function prototypes and stuff, but not '\xHH' hex character constants.
3705 These don't provoke an error unfortunately, instead are silently treated
3706 as 'x'. The following induces an error, until -std is added to get
3707 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3708 array size at least. It's necessary to write '\x00'==0 to get something
3709 that's true only with -std. */
3710 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3712 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3713 inside strings and character constants. */
3714 #define FOO(x) 'x'
3715 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3717 int test (int i, double x);
3718 struct s1 {int (*f) (int a);};
3719 struct s2 {int (*f) (double a);};
3720 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3721 int argc;
3722 char **argv;
3724 main ()
3726 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3728 return 0;
3730 _ACEOF
3731 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3732 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3734 CC="$ac_save_CC $ac_arg"
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_cv_prog_cc_c89=$ac_arg
3738 rm -f core conftest.err conftest.$ac_objext
3739 test "x$ac_cv_prog_cc_c89" != "xno" && break
3740 done
3741 rm -f conftest.$ac_ext
3742 CC=$ac_save_CC
3745 # AC_CACHE_VAL
3746 case "x$ac_cv_prog_cc_c89" in
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3749 $as_echo "none needed" >&6; } ;;
3750 xno)
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3752 $as_echo "unsupported" >&6; } ;;
3754 CC="$CC $ac_cv_prog_cc_c89"
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3756 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3757 esac
3758 if test "x$ac_cv_prog_cc_c89" != xno; then :
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 ac_ext=cpp
3769 ac_cpp='$CXXCPP $CPPFLAGS'
3770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3773 if test -z "$CXX"; then
3774 if test -n "$CCC"; then
3775 CXX=$CCC
3776 else
3777 if test -n "$ac_tool_prefix"; then
3778 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if ${ac_cv_prog_CXX+:} false; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 if test -n "$CXX"; then
3788 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3801 done
3802 done
3803 IFS=$as_save_IFS
3807 CXX=$ac_cv_prog_CXX
3808 if test -n "$CXX"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3810 $as_echo "$CXX" >&6; }
3811 else
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3817 test -n "$CXX" && break
3818 done
3820 if test -z "$CXX"; then
3821 ac_ct_CXX=$CXX
3822 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3824 # Extract the first word of "$ac_prog", so it can be a program name with args.
3825 set dummy $ac_prog; ac_word=$2
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827 $as_echo_n "checking for $ac_word... " >&6; }
3828 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3829 $as_echo_n "(cached) " >&6
3830 else
3831 if test -n "$ac_ct_CXX"; then
3832 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3833 else
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 for as_dir in $PATH
3837 IFS=$as_save_IFS
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841 ac_cv_prog_ac_ct_CXX="$ac_prog"
3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 break 2
3845 done
3846 done
3847 IFS=$as_save_IFS
3851 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3852 if test -n "$ac_ct_CXX"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3854 $as_echo "$ac_ct_CXX" >&6; }
3855 else
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 $as_echo "no" >&6; }
3861 test -n "$ac_ct_CXX" && break
3862 done
3864 if test "x$ac_ct_CXX" = x; then
3865 CXX="g++"
3866 else
3867 case $cross_compiling:$ac_tool_warned in
3868 yes:)
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3871 ac_tool_warned=yes ;;
3872 esac
3873 CXX=$ac_ct_CXX
3879 # Provide some information about the compiler.
3880 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3881 set X $ac_compile
3882 ac_compiler=$2
3883 for ac_option in --version -v -V -qversion; do
3884 { { ac_try="$ac_compiler $ac_option >&5"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3892 ac_status=$?
3893 if test -s conftest.err; then
3894 sed '10a\
3895 ... rest of stderr output deleted ...
3896 10q' conftest.err >conftest.er1
3897 cat conftest.er1 >&5
3899 rm -f conftest.er1 conftest.err
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }
3902 done
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3905 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3906 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3913 main ()
3915 #ifndef __GNUC__
3916 choke me
3917 #endif
3920 return 0;
3922 _ACEOF
3923 if ac_fn_cxx_try_compile "$LINENO"; then :
3924 ac_compiler_gnu=yes
3925 else
3926 ac_compiler_gnu=no
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3933 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3934 if test $ac_compiler_gnu = yes; then
3935 GXX=yes
3936 else
3937 GXX=
3939 ac_test_CXXFLAGS=${CXXFLAGS+set}
3940 ac_save_CXXFLAGS=$CXXFLAGS
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3942 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3943 if ${ac_cv_prog_cxx_g+:} false; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3947 ac_cxx_werror_flag=yes
3948 ac_cv_prog_cxx_g=no
3949 CXXFLAGS="-g"
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3954 main ()
3958 return 0;
3960 _ACEOF
3961 if ac_fn_cxx_try_compile "$LINENO"; then :
3962 ac_cv_prog_cxx_g=yes
3963 else
3964 CXXFLAGS=""
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3969 main ()
3973 return 0;
3975 _ACEOF
3976 if ac_fn_cxx_try_compile "$LINENO"; then :
3978 else
3979 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3980 CXXFLAGS="-g"
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3985 main ()
3989 return 0;
3991 _ACEOF
3992 if ac_fn_cxx_try_compile "$LINENO"; then :
3993 ac_cv_prog_cxx_g=yes
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4000 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4003 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4004 if test "$ac_test_CXXFLAGS" = set; then
4005 CXXFLAGS=$ac_save_CXXFLAGS
4006 elif test $ac_cv_prog_cxx_g = yes; then
4007 if test "$GXX" = yes; then
4008 CXXFLAGS="-g -O2"
4009 else
4010 CXXFLAGS="-g"
4012 else
4013 if test "$GXX" = yes; then
4014 CXXFLAGS="-O2"
4015 else
4016 CXXFLAGS=
4019 ac_ext=c
4020 ac_cpp='$CPP $CPPFLAGS'
4021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025 if test -n "$ac_tool_prefix"; then
4026 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4027 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if ${ac_cv_prog_CPPBIN+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 if test -n "$CPPBIN"; then
4034 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4047 done
4048 done
4049 IFS=$as_save_IFS
4053 CPPBIN=$ac_cv_prog_CPPBIN
4054 if test -n "$CPPBIN"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4056 $as_echo "$CPPBIN" >&6; }
4057 else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4064 if test -z "$ac_cv_prog_CPPBIN"; then
4065 ac_ct_CPPBIN=$CPPBIN
4066 # Extract the first word of "cpp", so it can be a program name with args.
4067 set dummy cpp; ac_word=$2
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069 $as_echo_n "checking for $ac_word... " >&6; }
4070 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4071 $as_echo_n "(cached) " >&6
4072 else
4073 if test -n "$ac_ct_CPPBIN"; then
4074 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4083 ac_cv_prog_ac_ct_CPPBIN="cpp"
4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4085 break 2
4087 done
4088 done
4089 IFS=$as_save_IFS
4093 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4094 if test -n "$ac_ct_CPPBIN"; then
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4096 $as_echo "$ac_ct_CPPBIN" >&6; }
4097 else
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4102 if test "x$ac_ct_CPPBIN" = x; then
4103 CPPBIN="cpp"
4104 else
4105 case $cross_compiling:$ac_tool_warned in
4106 yes:)
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109 ac_tool_warned=yes ;;
4110 esac
4111 CPPBIN=$ac_ct_CPPBIN
4113 else
4114 CPPBIN="$ac_cv_prog_CPPBIN"
4118 cat >>confdefs.h <<_ACEOF
4119 #define EXEEXT "$ac_exeext"
4120 _ACEOF
4123 case $host in
4124 *-darwin*)
4125 if test "x$enable_win64" = "xyes"
4126 then
4127 CC="$CC -m64"
4128 CXX="$CXX -m64"
4129 host_cpu="x86_64"
4130 notice_platform="64-bit "
4131 TARGETFLAGS="-m64"
4133 else
4134 CC="$CC -m32"
4135 CXX="$CXX -m32"
4136 host_cpu="i386"
4137 notice_platform="32-bit "
4138 TARGETFLAGS="-m32"
4140 enable_win16=${enable_win16:-yes}
4142 with_fontconfig=${with_fontconfig:-no}
4144 x86_64*)
4145 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4146 then
4147 CC="$CC -m32"
4148 CXX="$CXX -m32"
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4150 $as_echo_n "checking whether $CC works... " >&6; }
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4156 main ()
4160 return 0;
4162 _ACEOF
4163 if ac_fn_c_try_link "$LINENO"; then :
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4165 $as_echo "yes" >&6; }
4166 else
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4169 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4171 rm -f core conftest.err conftest.$ac_objext \
4172 conftest$ac_exeext conftest.$ac_ext
4173 host_cpu="i386"
4174 notice_platform="32-bit "
4175 TARGETFLAGS="-m32"
4177 enable_win16=${enable_win16:-yes}
4178 else
4179 if test "x${GCC}" = "xyes"
4180 then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4182 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #include <stdarg.h>
4187 main ()
4189 void func(__builtin_ms_va_list *args);
4191 return 0;
4193 _ACEOF
4194 if ac_fn_c_try_compile "$LINENO"; then :
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4196 $as_echo "yes" >&6; }
4197 else
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4200 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 TARGETFLAGS="-m64"
4208 arm*)
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4210 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212 /* end confdefs.h. */
4213 int ac_test(int i) { return i; }
4215 main ()
4217 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4219 return 0;
4221 _ACEOF
4222 if ac_fn_c_try_link "$LINENO"; then :
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4224 $as_echo "yes" >&6; }
4225 else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4228 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4230 rm -f core conftest.err conftest.$ac_objext \
4231 conftest$ac_exeext conftest.$ac_ext
4232 CFLAGS="$CFLAGS -marm"
4234 *-mingw32*|*-cygwin*)
4235 enable_win16=${enable_win16:-no}
4236 CFLAGS="$CFLAGS -D_WIN32"
4238 i[3456789]86*)
4239 enable_win16=${enable_win16:-yes}
4241 esac
4243 enable_win16=${enable_win16:-no}
4244 enable_win64=${enable_win64:-no}
4246 enable_winetest=${enable_winetest:-$enable_tests}
4248 if test -n "$with_wine64"
4249 then
4250 if test "x$enable_win64" = "xyes"
4251 then
4252 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4253 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4255 WOW64_DISABLE=\#
4257 enable_fonts=${enable_fonts:-no}
4258 enable_server=${enable_server:-no}
4259 enable_tools=${enable_tools:-no}
4260 elif test "x$enable_win64" = "xyes"
4261 then
4262 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4266 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4267 if ${wine_cv_toolsdir+:} false; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 wine_cv_toolsdir="$with_wine_tools"
4271 if test -z "$with_wine_tools"; then
4272 if test "$cross_compiling" = "yes"; then
4273 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4274 elif test -n "$with_wine64"; then
4275 wine_cv_toolsdir="$with_wine64"
4278 if test -z "$wine_cv_toolsdir"; then
4279 wine_cv_toolsdir="\$(top_builddir)"
4280 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4281 case "$wine_cv_toolsdir" in
4282 /*) ;;
4283 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4284 esac
4285 else
4286 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4290 $as_echo "$wine_cv_toolsdir" >&6; }
4291 TOOLSDIR=$wine_cv_toolsdir
4293 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4294 then
4295 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4299 for ac_prog in flex
4301 # Extract the first word of "$ac_prog", so it can be a program name with args.
4302 set dummy $ac_prog; ac_word=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if ${ac_cv_prog_FLEX+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -n "$FLEX"; then
4309 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318 ac_cv_prog_FLEX="$ac_prog"
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4322 done
4323 done
4324 IFS=$as_save_IFS
4328 FLEX=$ac_cv_prog_FLEX
4329 if test -n "$FLEX"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4331 $as_echo "$FLEX" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4338 test -n "$FLEX" && break
4339 done
4340 test -n "$FLEX" || FLEX="none"
4342 if test "$FLEX" = "none"
4343 then
4344 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4347 $as_echo_n "checking whether flex is recent enough... " >&6; }
4348 cat >conftest.l <<EOF
4349 %top{
4350 #include "prediluvian.h"
4354 if $FLEX -t conftest.l >/dev/null 2>&5
4355 then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4357 $as_echo "yes" >&6; }
4358 else
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4361 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4364 for ac_prog in bison
4366 # Extract the first word of "$ac_prog", so it can be a program name with args.
4367 set dummy $ac_prog; ac_word=$2
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if ${ac_cv_prog_BISON+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 if test -n "$BISON"; then
4374 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4383 ac_cv_prog_BISON="$ac_prog"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4387 done
4388 done
4389 IFS=$as_save_IFS
4393 BISON=$ac_cv_prog_BISON
4394 if test -n "$BISON"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4396 $as_echo "$BISON" >&6; }
4397 else
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4403 test -n "$BISON" && break
4404 done
4405 test -n "$BISON" || BISON="none"
4407 if test "$BISON" = "none"
4408 then
4409 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4412 if test -n "$ac_tool_prefix"; then
4413 for ac_prog in ar gar
4415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 $as_echo_n "checking for $ac_word... " >&6; }
4419 if ${ac_cv_prog_AR+:} false; then :
4420 $as_echo_n "(cached) " >&6
4421 else
4422 if test -n "$AR"; then
4423 ac_cv_prog_AR="$AR" # Let the user override the test.
4424 else
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
4430 for ac_exec_ext in '' $ac_executable_extensions; do
4431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4432 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434 break 2
4436 done
4437 done
4438 IFS=$as_save_IFS
4442 AR=$ac_cv_prog_AR
4443 if test -n "$AR"; then
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4445 $as_echo "$AR" >&6; }
4446 else
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448 $as_echo "no" >&6; }
4452 test -n "$AR" && break
4453 done
4455 if test -z "$AR"; then
4456 ac_ct_AR=$AR
4457 for ac_prog in ar gar
4459 # Extract the first word of "$ac_prog", so it can be a program name with args.
4460 set dummy $ac_prog; ac_word=$2
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4462 $as_echo_n "checking for $ac_word... " >&6; }
4463 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 if test -n "$ac_ct_AR"; then
4467 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4468 else
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470 for as_dir in $PATH
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4476 ac_cv_prog_ac_ct_AR="$ac_prog"
4477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 break 2
4480 done
4481 done
4482 IFS=$as_save_IFS
4486 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4487 if test -n "$ac_ct_AR"; then
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4489 $as_echo "$ac_ct_AR" >&6; }
4490 else
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 $as_echo "no" >&6; }
4496 test -n "$ac_ct_AR" && break
4497 done
4499 if test "x$ac_ct_AR" = x; then
4500 AR="ar"
4501 else
4502 case $cross_compiling:$ac_tool_warned in
4503 yes:)
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4506 ac_tool_warned=yes ;;
4507 esac
4508 AR=$ac_ct_AR
4512 ARFLAGS=rc
4514 if test -n "$ac_tool_prefix"; then
4515 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4516 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4518 $as_echo_n "checking for $ac_word... " >&6; }
4519 if ${ac_cv_prog_RANLIB+:} false; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 if test -n "$RANLIB"; then
4523 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4536 done
4537 done
4538 IFS=$as_save_IFS
4542 RANLIB=$ac_cv_prog_RANLIB
4543 if test -n "$RANLIB"; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4545 $as_echo "$RANLIB" >&6; }
4546 else
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4553 if test -z "$ac_cv_prog_RANLIB"; then
4554 ac_ct_RANLIB=$RANLIB
4555 # Extract the first word of "ranlib", so it can be a program name with args.
4556 set dummy ranlib; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$ac_ct_RANLIB"; then
4563 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_prog_ac_ct_RANLIB="ranlib"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4578 IFS=$as_save_IFS
4582 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4583 if test -n "$ac_ct_RANLIB"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4585 $as_echo "$ac_ct_RANLIB" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4591 if test "x$ac_ct_RANLIB" = x; then
4592 RANLIB=":"
4593 else
4594 case $cross_compiling:$ac_tool_warned in
4595 yes:)
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598 ac_tool_warned=yes ;;
4599 esac
4600 RANLIB=$ac_ct_RANLIB
4602 else
4603 RANLIB="$ac_cv_prog_RANLIB"
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4607 $as_echo_n "checking whether ln -s works... " >&6; }
4608 LN_S=$as_ln_s
4609 if test "$LN_S" = "ln -s"; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4611 $as_echo "yes" >&6; }
4612 else
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4614 $as_echo "no, using $LN_S" >&6; }
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4618 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4619 if ${ac_cv_path_GREP+:} false; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 if test -z "$GREP"; then
4623 ac_path_GREP_found=false
4624 # Loop through the user's path and test for each of PROGNAME-LIST
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_prog in grep ggrep; do
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4633 as_fn_executable_p "$ac_path_GREP" || continue
4634 # Check for GNU ac_path_GREP and select it if it is found.
4635 # Check for GNU $ac_path_GREP
4636 case `"$ac_path_GREP" --version 2>&1` in
4637 *GNU*)
4638 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4640 ac_count=0
4641 $as_echo_n 0123456789 >"conftest.in"
4642 while :
4644 cat "conftest.in" "conftest.in" >"conftest.tmp"
4645 mv "conftest.tmp" "conftest.in"
4646 cp "conftest.in" "conftest.nl"
4647 $as_echo 'GREP' >> "conftest.nl"
4648 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4650 as_fn_arith $ac_count + 1 && ac_count=$as_val
4651 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4652 # Best one so far, save it but keep looking for a better one
4653 ac_cv_path_GREP="$ac_path_GREP"
4654 ac_path_GREP_max=$ac_count
4656 # 10*(2^10) chars as input seems more than enough
4657 test $ac_count -gt 10 && break
4658 done
4659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4660 esac
4662 $ac_path_GREP_found && break 3
4663 done
4664 done
4665 done
4666 IFS=$as_save_IFS
4667 if test -z "$ac_cv_path_GREP"; then
4668 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4670 else
4671 ac_cv_path_GREP=$GREP
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4676 $as_echo "$ac_cv_path_GREP" >&6; }
4677 GREP="$ac_cv_path_GREP"
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4681 $as_echo_n "checking for egrep... " >&6; }
4682 if ${ac_cv_path_EGREP+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4686 then ac_cv_path_EGREP="$GREP -E"
4687 else
4688 if test -z "$EGREP"; then
4689 ac_path_EGREP_found=false
4690 # Loop through the user's path and test for each of PROGNAME-LIST
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_prog in egrep; do
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4699 as_fn_executable_p "$ac_path_EGREP" || continue
4700 # Check for GNU ac_path_EGREP and select it if it is found.
4701 # Check for GNU $ac_path_EGREP
4702 case `"$ac_path_EGREP" --version 2>&1` in
4703 *GNU*)
4704 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4706 ac_count=0
4707 $as_echo_n 0123456789 >"conftest.in"
4708 while :
4710 cat "conftest.in" "conftest.in" >"conftest.tmp"
4711 mv "conftest.tmp" "conftest.in"
4712 cp "conftest.in" "conftest.nl"
4713 $as_echo 'EGREP' >> "conftest.nl"
4714 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4716 as_fn_arith $ac_count + 1 && ac_count=$as_val
4717 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4718 # Best one so far, save it but keep looking for a better one
4719 ac_cv_path_EGREP="$ac_path_EGREP"
4720 ac_path_EGREP_max=$ac_count
4722 # 10*(2^10) chars as input seems more than enough
4723 test $ac_count -gt 10 && break
4724 done
4725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4726 esac
4728 $ac_path_EGREP_found && break 3
4729 done
4730 done
4731 done
4732 IFS=$as_save_IFS
4733 if test -z "$ac_cv_path_EGREP"; then
4734 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4736 else
4737 ac_cv_path_EGREP=$EGREP
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4743 $as_echo "$ac_cv_path_EGREP" >&6; }
4744 EGREP="$ac_cv_path_EGREP"
4747 # Extract the first word of "ldconfig", so it can be a program name with args.
4748 set dummy ldconfig; ac_word=$2
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750 $as_echo_n "checking for $ac_word... " >&6; }
4751 if ${ac_cv_path_LDCONFIG+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 case $LDCONFIG in
4755 [\\/]* | ?:[\\/]*)
4756 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 for as_dir in /sbin /usr/sbin $PATH
4762 IFS=$as_save_IFS
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 break 2
4770 done
4771 done
4772 IFS=$as_save_IFS
4774 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4776 esac
4778 LDCONFIG=$ac_cv_path_LDCONFIG
4779 if test -n "$LDCONFIG"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4781 $as_echo "$LDCONFIG" >&6; }
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4788 # Find a good install program. We prefer a C program (faster),
4789 # so one script is as good as another. But avoid the broken or
4790 # incompatible versions:
4791 # SysV /etc/install, /usr/sbin/install
4792 # SunOS /usr/etc/install
4793 # IRIX /sbin/install
4794 # AIX /bin/install
4795 # AmigaOS /C/install, which installs bootblocks on floppy discs
4796 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4797 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4798 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4799 # OS/2's system install, which has a completely different semantic
4800 # ./install, which can be erroneously created by make from ./install.sh.
4801 # Reject install programs that cannot install multiple files.
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4803 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4804 if test -z "$INSTALL"; then
4805 if ${ac_cv_path_install+:} false; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 # Account for people who put trailing slashes in PATH elements.
4814 case $as_dir/ in #((
4815 ./ | .// | /[cC]/* | \
4816 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4817 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4818 /usr/ucb/* ) ;;
4820 # OSF1 and SCO ODT 3.0 have their own names for install.
4821 # Don't use installbsd from OSF since it installs stuff as root
4822 # by default.
4823 for ac_prog in ginstall scoinst install; do
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4826 if test $ac_prog = install &&
4827 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4828 # AIX install. It has an incompatible calling convention.
4830 elif test $ac_prog = install &&
4831 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4832 # program-specific install script used by HP pwplus--don't use.
4834 else
4835 rm -rf conftest.one conftest.two conftest.dir
4836 echo one > conftest.one
4837 echo two > conftest.two
4838 mkdir conftest.dir
4839 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4840 test -s conftest.one && test -s conftest.two &&
4841 test -s conftest.dir/conftest.one &&
4842 test -s conftest.dir/conftest.two
4843 then
4844 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4845 break 3
4849 done
4850 done
4852 esac
4854 done
4855 IFS=$as_save_IFS
4857 rm -rf conftest.one conftest.two conftest.dir
4860 if test "${ac_cv_path_install+set}" = set; then
4861 INSTALL=$ac_cv_path_install
4862 else
4863 # As a last resort, use the slow shell script. Don't cache a
4864 # value for INSTALL within a source directory, because that will
4865 # break other packages using the cache if that directory is
4866 # removed, or if the value is a relative name.
4867 INSTALL=$ac_install_sh
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4871 $as_echo "$INSTALL" >&6; }
4873 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4874 # It thinks the first close brace ends the variable substitution.
4875 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4877 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4879 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4881 case "$INSTALL" in
4882 [\\/$]* | ?:[\\/]* ) ;;
4883 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4884 esac
4886 for ac_prog in lclint lint
4888 # Extract the first word of "$ac_prog", so it can be a program name with args.
4889 set dummy $ac_prog; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if ${ac_cv_prog_LINT+:} false; then :
4893 $as_echo_n "(cached) " >&6
4894 else
4895 if test -n "$LINT"; then
4896 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_prog_LINT="$ac_prog"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4909 done
4910 done
4911 IFS=$as_save_IFS
4915 LINT=$ac_cv_prog_LINT
4916 if test -n "$LINT"; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4918 $as_echo "$LINT" >&6; }
4919 else
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921 $as_echo "no" >&6; }
4925 test -n "$LINT" && break
4926 done
4928 if test "$LINT" = "lint"
4929 then
4930 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4934 for ac_prog in fontforge
4936 # Extract the first word of "$ac_prog", so it can be a program name with args.
4937 set dummy $ac_prog; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_prog_FONTFORGE+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$FONTFORGE"; then
4944 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_FONTFORGE="$ac_prog"
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4957 done
4958 done
4959 IFS=$as_save_IFS
4963 FONTFORGE=$ac_cv_prog_FONTFORGE
4964 if test -n "$FONTFORGE"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4966 $as_echo "$FONTFORGE" >&6; }
4967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4973 test -n "$FONTFORGE" && break
4974 done
4975 test -n "$FONTFORGE" || FONTFORGE="false"
4977 for ac_prog in rsvg
4979 # Extract the first word of "$ac_prog", so it can be a program name with args.
4980 set dummy $ac_prog; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_RSVG+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -n "$RSVG"; then
4987 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_RSVG="$ac_prog"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
5000 done
5001 done
5002 IFS=$as_save_IFS
5006 RSVG=$ac_cv_prog_RSVG
5007 if test -n "$RSVG"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5009 $as_echo "$RSVG" >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5016 test -n "$RSVG" && break
5017 done
5018 test -n "$RSVG" || RSVG="false"
5020 for ac_prog in convert
5022 # Extract the first word of "$ac_prog", so it can be a program name with args.
5023 set dummy $ac_prog; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if ${ac_cv_prog_CONVERT+:} false; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 if test -n "$CONVERT"; then
5030 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_prog_CONVERT="$ac_prog"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5043 done
5044 done
5045 IFS=$as_save_IFS
5049 CONVERT=$ac_cv_prog_CONVERT
5050 if test -n "$CONVERT"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5052 $as_echo "$CONVERT" >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5059 test -n "$CONVERT" && break
5060 done
5061 test -n "$CONVERT" || CONVERT="false"
5063 for ac_prog in icotool
5065 # Extract the first word of "$ac_prog", so it can be a program name with args.
5066 set dummy $ac_prog; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if ${ac_cv_prog_ICOTOOL+:} false; then :
5070 $as_echo_n "(cached) " >&6
5071 else
5072 if test -n "$ICOTOOL"; then
5073 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5074 else
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_prog_ICOTOOL="$ac_prog"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5086 done
5087 done
5088 IFS=$as_save_IFS
5092 ICOTOOL=$ac_cv_prog_ICOTOOL
5093 if test -n "$ICOTOOL"; then
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5095 $as_echo "$ICOTOOL" >&6; }
5096 else
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098 $as_echo "no" >&6; }
5102 test -n "$ICOTOOL" && break
5103 done
5104 test -n "$ICOTOOL" || ICOTOOL="false"
5106 for ac_prog in msgfmt
5108 # Extract the first word of "$ac_prog", so it can be a program name with args.
5109 set dummy $ac_prog; ac_word=$2
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if ${ac_cv_prog_MSGFMT+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 if test -n "$MSGFMT"; then
5116 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125 ac_cv_prog_MSGFMT="$ac_prog"
5126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5129 done
5130 done
5131 IFS=$as_save_IFS
5135 MSGFMT=$ac_cv_prog_MSGFMT
5136 if test -n "$MSGFMT"; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5138 $as_echo "$MSGFMT" >&6; }
5139 else
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5145 test -n "$MSGFMT" && break
5146 done
5147 test -n "$MSGFMT" || MSGFMT="false"
5150 if test "x$enable_maintainer_mode" != "xyes"
5151 then
5152 MAINTAINER_MODE=\#
5154 else
5155 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5156 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5158 if test "$CONVERT" = false
5159 then
5160 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5161 else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5163 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5164 convert_version=`convert --version | head -n1`
5165 if test "x$convert_version" != "x"
5166 then
5167 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5168 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5169 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5170 then
5171 CONVERT=false
5174 if test "$CONVERT" = false
5175 then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5177 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5178 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5181 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5185 if test "$ICOTOOL" = false
5186 then
5187 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5188 else
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5190 $as_echo_n "checking for recent enough icotool... " >&6; }
5191 icotool_version=`icotool --version | head -n1`
5192 if test "x$icotool_version" != "x"
5193 then
5194 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5195 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5196 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5197 then
5198 ICOTOOL=false
5199 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5202 if test "$ICOTOOL" = false
5203 then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5205 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5206 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5207 else
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5209 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5213 with_gettext=yes
5214 with_gettextpo=yes
5215 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5218 test "x$with_gettext" != xno || MSGFMT=false
5219 if test "$MSGFMT" != "false"
5220 then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5222 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5223 cat >conftest.po <<EOF
5224 # comment
5225 msgctxt "ctxt"
5226 msgid "id"
5227 msgstr "str"
5229 if $MSGFMT -o /dev/null conftest.po 2>&5
5230 then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5232 $as_echo "yes" >&6; }
5233 else
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5235 $as_echo "no" >&6; }
5236 MSGFMT=false
5239 if test "$MSGFMT" = false; then :
5240 case "x$with_gettext" in
5241 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5242 xno) ;;
5243 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5244 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5245 esac
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5250 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5251 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 ac_check_lib_save_LIBS=$LIBS
5255 LIBS="-li386 $LIBS"
5256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h. */
5259 /* Override any GCC internal prototype to avoid an error.
5260 Use char because int might match the return type of a GCC
5261 builtin and then its argument prototype would still apply. */
5262 #ifdef __cplusplus
5263 extern "C"
5264 #endif
5265 char i386_set_ldt ();
5267 main ()
5269 return i386_set_ldt ();
5271 return 0;
5273 _ACEOF
5274 if ac_fn_c_try_link "$LINENO"; then :
5275 ac_cv_lib_i386_i386_set_ldt=yes
5276 else
5277 ac_cv_lib_i386_i386_set_ldt=no
5279 rm -f core conftest.err conftest.$ac_objext \
5280 conftest$ac_exeext conftest.$ac_ext
5281 LIBS=$ac_check_lib_save_LIBS
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5284 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5285 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5286 cat >>confdefs.h <<_ACEOF
5287 #define HAVE_LIBI386 1
5288 _ACEOF
5290 LIBS="-li386 $LIBS"
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5295 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5296 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 ac_check_lib_save_LIBS=$LIBS
5300 LIBS="-lossaudio $LIBS"
5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302 /* end confdefs.h. */
5304 /* Override any GCC internal prototype to avoid an error.
5305 Use char because int might match the return type of a GCC
5306 builtin and then its argument prototype would still apply. */
5307 #ifdef __cplusplus
5308 extern "C"
5309 #endif
5310 char _oss_ioctl ();
5312 main ()
5314 return _oss_ioctl ();
5316 return 0;
5318 _ACEOF
5319 if ac_fn_c_try_link "$LINENO"; then :
5320 ac_cv_lib_ossaudio__oss_ioctl=yes
5321 else
5322 ac_cv_lib_ossaudio__oss_ioctl=no
5324 rm -f core conftest.err conftest.$ac_objext \
5325 conftest$ac_exeext conftest.$ac_ext
5326 LIBS=$ac_check_lib_save_LIBS
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5329 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5330 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5331 cat >>confdefs.h <<_ACEOF
5332 #define HAVE_LIBOSSAUDIO 1
5333 _ACEOF
5335 LIBS="-lossaudio $LIBS"
5340 XLIB=""
5342 OPENGL_LIBS=""
5346 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5348 # Check whether --enable-largefile was given.
5349 if test "${enable_largefile+set}" = set; then :
5350 enableval=$enable_largefile;
5353 if test "$enable_largefile" != no; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5356 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5357 if ${ac_cv_sys_largefile_CC+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 ac_cv_sys_largefile_CC=no
5361 if test "$GCC" != yes; then
5362 ac_save_CC=$CC
5363 while :; do
5364 # IRIX 6.2 and later do not support large files by default,
5365 # so use the C compiler's -n32 option if that helps.
5366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5367 /* end confdefs.h. */
5368 #include <sys/types.h>
5369 /* Check that off_t can represent 2**63 - 1 correctly.
5370 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5371 since some C++ compilers masquerading as C compilers
5372 incorrectly reject 9223372036854775807. */
5373 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5374 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5375 && LARGE_OFF_T % 2147483647 == 1)
5376 ? 1 : -1];
5378 main ()
5382 return 0;
5384 _ACEOF
5385 if ac_fn_c_try_compile "$LINENO"; then :
5386 break
5388 rm -f core conftest.err conftest.$ac_objext
5389 CC="$CC -n32"
5390 if ac_fn_c_try_compile "$LINENO"; then :
5391 ac_cv_sys_largefile_CC=' -n32'; break
5393 rm -f core conftest.err conftest.$ac_objext
5394 break
5395 done
5396 CC=$ac_save_CC
5397 rm -f conftest.$ac_ext
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5401 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5402 if test "$ac_cv_sys_largefile_CC" != no; then
5403 CC=$CC$ac_cv_sys_largefile_CC
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5407 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5408 if ${ac_cv_sys_file_offset_bits+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 while :; do
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414 #include <sys/types.h>
5415 /* Check that off_t can represent 2**63 - 1 correctly.
5416 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5417 since some C++ compilers masquerading as C compilers
5418 incorrectly reject 9223372036854775807. */
5419 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5421 && LARGE_OFF_T % 2147483647 == 1)
5422 ? 1 : -1];
5424 main ()
5428 return 0;
5430 _ACEOF
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432 ac_cv_sys_file_offset_bits=no; break
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5437 #define _FILE_OFFSET_BITS 64
5438 #include <sys/types.h>
5439 /* Check that off_t can represent 2**63 - 1 correctly.
5440 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5441 since some C++ compilers masquerading as C compilers
5442 incorrectly reject 9223372036854775807. */
5443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5445 && LARGE_OFF_T % 2147483647 == 1)
5446 ? 1 : -1];
5448 main ()
5452 return 0;
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"; then :
5456 ac_cv_sys_file_offset_bits=64; break
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 ac_cv_sys_file_offset_bits=unknown
5460 break
5461 done
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5464 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5465 case $ac_cv_sys_file_offset_bits in #(
5466 no | unknown) ;;
5468 cat >>confdefs.h <<_ACEOF
5469 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5470 _ACEOF
5472 esac
5473 rm -rf conftest*
5474 if test $ac_cv_sys_file_offset_bits = unknown; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5476 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5477 if ${ac_cv_sys_large_files+:} false; then :
5478 $as_echo_n "(cached) " >&6
5479 else
5480 while :; do
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5483 #include <sys/types.h>
5484 /* Check that off_t can represent 2**63 - 1 correctly.
5485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5486 since some C++ compilers masquerading as C compilers
5487 incorrectly reject 9223372036854775807. */
5488 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5490 && LARGE_OFF_T % 2147483647 == 1)
5491 ? 1 : -1];
5493 main ()
5497 return 0;
5499 _ACEOF
5500 if ac_fn_c_try_compile "$LINENO"; then :
5501 ac_cv_sys_large_files=no; break
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5506 #define _LARGE_FILES 1
5507 #include <sys/types.h>
5508 /* Check that off_t can represent 2**63 - 1 correctly.
5509 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5510 since some C++ compilers masquerading as C compilers
5511 incorrectly reject 9223372036854775807. */
5512 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5513 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5514 && LARGE_OFF_T % 2147483647 == 1)
5515 ? 1 : -1];
5517 main ()
5521 return 0;
5523 _ACEOF
5524 if ac_fn_c_try_compile "$LINENO"; then :
5525 ac_cv_sys_large_files=1; break
5527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5528 ac_cv_sys_large_files=unknown
5529 break
5530 done
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5533 $as_echo "$ac_cv_sys_large_files" >&6; }
5534 case $ac_cv_sys_large_files in #(
5535 no | unknown) ;;
5537 cat >>confdefs.h <<_ACEOF
5538 #define _LARGE_FILES $ac_cv_sys_large_files
5539 _ACEOF
5541 esac
5542 rm -rf conftest*
5549 ac_ext=c
5550 ac_cpp='$CPP $CPPFLAGS'
5551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5555 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5556 # On Suns, sometimes $CPP names a directory.
5557 if test -n "$CPP" && test -d "$CPP"; then
5558 CPP=
5560 if test -z "$CPP"; then
5561 if ${ac_cv_prog_CPP+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 # Double quotes because CPP needs to be expanded
5565 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5567 ac_preproc_ok=false
5568 for ac_c_preproc_warn_flag in '' yes
5570 # Use a header file that comes with gcc, so configuring glibc
5571 # with a fresh cross-compiler works.
5572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5573 # <limits.h> exists even on freestanding compilers.
5574 # On the NeXT, cc -E runs the code through the compiler's parser,
5575 # not just through cpp. "Syntax error" is here to catch this case.
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578 #ifdef __STDC__
5579 # include <limits.h>
5580 #else
5581 # include <assert.h>
5582 #endif
5583 Syntax error
5584 _ACEOF
5585 if ac_fn_c_try_cpp "$LINENO"; then :
5587 else
5588 # Broken: fails on valid input.
5589 continue
5591 rm -f conftest.err conftest.i conftest.$ac_ext
5593 # OK, works on sane cases. Now check whether nonexistent headers
5594 # can be detected and how.
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597 #include <ac_nonexistent.h>
5598 _ACEOF
5599 if ac_fn_c_try_cpp "$LINENO"; then :
5600 # Broken: success on invalid input.
5601 continue
5602 else
5603 # Passes both tests.
5604 ac_preproc_ok=:
5605 break
5607 rm -f conftest.err conftest.i conftest.$ac_ext
5609 done
5610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5611 rm -f conftest.i conftest.err conftest.$ac_ext
5612 if $ac_preproc_ok; then :
5613 break
5616 done
5617 ac_cv_prog_CPP=$CPP
5620 CPP=$ac_cv_prog_CPP
5621 else
5622 ac_cv_prog_CPP=$CPP
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5625 $as_echo "$CPP" >&6; }
5626 ac_preproc_ok=false
5627 for ac_c_preproc_warn_flag in '' yes
5629 # Use a header file that comes with gcc, so configuring glibc
5630 # with a fresh cross-compiler works.
5631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5632 # <limits.h> exists even on freestanding compilers.
5633 # On the NeXT, cc -E runs the code through the compiler's parser,
5634 # not just through cpp. "Syntax error" is here to catch this case.
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #ifdef __STDC__
5638 # include <limits.h>
5639 #else
5640 # include <assert.h>
5641 #endif
5642 Syntax error
5643 _ACEOF
5644 if ac_fn_c_try_cpp "$LINENO"; then :
5646 else
5647 # Broken: fails on valid input.
5648 continue
5650 rm -f conftest.err conftest.i conftest.$ac_ext
5652 # OK, works on sane cases. Now check whether nonexistent headers
5653 # can be detected and how.
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 #include <ac_nonexistent.h>
5657 _ACEOF
5658 if ac_fn_c_try_cpp "$LINENO"; then :
5659 # Broken: success on invalid input.
5660 continue
5661 else
5662 # Passes both tests.
5663 ac_preproc_ok=:
5664 break
5666 rm -f conftest.err conftest.i conftest.$ac_ext
5668 done
5669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5670 rm -f conftest.i conftest.err conftest.$ac_ext
5671 if $ac_preproc_ok; then :
5673 else
5674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5676 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5677 See \`config.log' for more details" "$LINENO" 5; }
5680 ac_ext=c
5681 ac_cpp='$CPP $CPPFLAGS'
5682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5688 $as_echo_n "checking for ANSI C header files... " >&6; }
5689 if ${ac_cv_header_stdc+:} false; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #include <stdlib.h>
5695 #include <stdarg.h>
5696 #include <string.h>
5697 #include <float.h>
5700 main ()
5704 return 0;
5706 _ACEOF
5707 if ac_fn_c_try_compile "$LINENO"; then :
5708 ac_cv_header_stdc=yes
5709 else
5710 ac_cv_header_stdc=no
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 if test $ac_cv_header_stdc = yes; then
5715 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5718 #include <string.h>
5720 _ACEOF
5721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5722 $EGREP "memchr" >/dev/null 2>&1; then :
5724 else
5725 ac_cv_header_stdc=no
5727 rm -f conftest*
5731 if test $ac_cv_header_stdc = yes; then
5732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5735 #include <stdlib.h>
5737 _ACEOF
5738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5739 $EGREP "free" >/dev/null 2>&1; then :
5741 else
5742 ac_cv_header_stdc=no
5744 rm -f conftest*
5748 if test $ac_cv_header_stdc = yes; then
5749 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5750 if test "$cross_compiling" = yes; then :
5752 else
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755 #include <ctype.h>
5756 #include <stdlib.h>
5757 #if ((' ' & 0x0FF) == 0x020)
5758 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5759 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5760 #else
5761 # define ISLOWER(c) \
5762 (('a' <= (c) && (c) <= 'i') \
5763 || ('j' <= (c) && (c) <= 'r') \
5764 || ('s' <= (c) && (c) <= 'z'))
5765 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5766 #endif
5768 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5770 main ()
5772 int i;
5773 for (i = 0; i < 256; i++)
5774 if (XOR (islower (i), ISLOWER (i))
5775 || toupper (i) != TOUPPER (i))
5776 return 2;
5777 return 0;
5779 _ACEOF
5780 if ac_fn_c_try_run "$LINENO"; then :
5782 else
5783 ac_cv_header_stdc=no
5785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5786 conftest.$ac_objext conftest.beam conftest.$ac_ext
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5792 $as_echo "$ac_cv_header_stdc" >&6; }
5793 if test $ac_cv_header_stdc = yes; then
5795 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5799 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5800 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5801 inttypes.h stdint.h unistd.h
5802 do :
5803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5804 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5807 cat >>confdefs.h <<_ACEOF
5808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5809 _ACEOF
5813 done
5816 for ac_header in \
5817 AL/al.h \
5818 ApplicationServices/ApplicationServices.h \
5819 AudioToolbox/AudioConverter.h \
5820 AudioUnit/AudioUnit.h \
5821 AudioUnit/AudioComponent.h \
5822 CL/cl.h \
5823 Carbon/Carbon.h \
5824 CoreAudio/CoreAudio.h \
5825 CoreServices/CoreServices.h \
5826 DiskArbitration/DiskArbitration.h \
5827 IOKit/IOKitLib.h \
5828 IOKit/hid/IOHIDLib.h \
5829 OpenAL/al.h \
5830 OpenCL/opencl.h \
5831 QuickTime/ImageCompression.h \
5832 Security/Security.h \
5833 alias.h \
5834 alsa/asoundlib.h \
5835 arpa/inet.h \
5836 arpa/nameser.h \
5837 asm/types.h \
5838 capi20.h \
5839 curses.h \
5840 direct.h \
5841 dirent.h \
5842 dlfcn.h \
5843 elf.h \
5844 float.h \
5845 fnmatch.h \
5846 fontconfig/fontconfig.h \
5847 getopt.h \
5848 gettext-po.h \
5849 grp.h \
5850 gsm.h \
5851 gsm/gsm.h \
5852 ieeefp.h \
5853 inet/mib2.h \
5854 io.h \
5855 jpeglib.h \
5856 kstat.h \
5857 lber.h \
5858 ldap.h \
5859 link.h \
5860 linux/cdrom.h \
5861 linux/compiler.h \
5862 linux/filter.h \
5863 linux/hdreg.h \
5864 linux/input.h \
5865 linux/ioctl.h \
5866 linux/joystick.h \
5867 linux/major.h \
5868 linux/param.h \
5869 linux/serial.h \
5870 linux/types.h \
5871 linux/ucdrom.h \
5872 lwp.h \
5873 mach-o/nlist.h \
5874 mach-o/loader.h \
5875 mach/mach.h \
5876 mach/machine.h \
5877 machine/cpu.h \
5878 machine/limits.h \
5879 machine/sysarch.h \
5880 mntent.h \
5881 mpg123.h \
5882 ncurses.h \
5883 netdb.h \
5884 netinet/in.h \
5885 netinet/in_systm.h \
5886 netinet/tcp.h \
5887 netinet/tcp_fsm.h \
5888 png.h \
5889 poll.h \
5890 port.h \
5891 process.h \
5892 pthread.h \
5893 pwd.h \
5894 sched.h \
5895 scsi/scsi.h \
5896 scsi/scsi_ioctl.h \
5897 scsi/sg.h \
5898 stdbool.h \
5899 stdint.h \
5900 stropts.h \
5901 sys/asoundlib.h \
5902 sys/attr.h \
5903 sys/cdio.h \
5904 sys/elf32.h \
5905 sys/epoll.h \
5906 sys/event.h \
5907 sys/exec_elf.h \
5908 sys/filio.h \
5909 sys/inotify.h \
5910 sys/ioctl.h \
5911 sys/ipc.h \
5912 sys/limits.h \
5913 sys/link.h \
5914 sys/mman.h \
5915 sys/modem.h \
5916 sys/msg.h \
5917 sys/mtio.h \
5918 sys/param.h \
5919 sys/poll.h \
5920 sys/prctl.h \
5921 sys/protosw.h \
5922 sys/ptrace.h \
5923 sys/resource.h \
5924 sys/scsiio.h \
5925 sys/shm.h \
5926 sys/signal.h \
5927 sys/socket.h \
5928 sys/socketvar.h \
5929 sys/sockio.h \
5930 sys/statvfs.h \
5931 sys/strtio.h \
5932 sys/syscall.h \
5933 sys/tihdr.h \
5934 sys/time.h \
5935 sys/timeout.h \
5936 sys/times.h \
5937 sys/uio.h \
5938 sys/utsname.h \
5939 sys/vm86.h \
5940 sys/wait.h \
5941 syscall.h \
5942 termios.h \
5943 tiffio.h \
5944 unistd.h \
5945 utime.h \
5946 valgrind/memcheck.h \
5947 valgrind/valgrind.h \
5948 zlib.h
5950 do :
5951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5952 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5953 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5954 cat >>confdefs.h <<_ACEOF
5955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5956 _ACEOF
5960 done
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5963 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5964 if ${ac_cv_header_stat_broken+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5969 #include <sys/types.h>
5970 #include <sys/stat.h>
5972 #if defined S_ISBLK && defined S_IFDIR
5973 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5974 #endif
5976 #if defined S_ISBLK && defined S_IFCHR
5977 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5978 #endif
5980 #if defined S_ISLNK && defined S_IFREG
5981 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5982 #endif
5984 #if defined S_ISSOCK && defined S_IFREG
5985 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5986 #endif
5988 _ACEOF
5989 if ac_fn_c_try_compile "$LINENO"; then :
5990 ac_cv_header_stat_broken=no
5991 else
5992 ac_cv_header_stat_broken=yes
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5997 $as_echo "$ac_cv_header_stat_broken" >&6; }
5998 if test $ac_cv_header_stat_broken = yes; then
6000 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6006 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6007 do :
6008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6009 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6010 #ifdef HAVE_SYS_PARAM_H
6011 # include <sys/param.h>
6012 #endif
6014 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6015 cat >>confdefs.h <<_ACEOF
6016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6017 _ACEOF
6021 done
6024 for ac_header in \
6025 netinet/ip.h \
6026 net/if.h \
6027 net/if_arp.h \
6028 net/if_dl.h \
6029 net/if_types.h \
6030 net/route.h \
6031 netinet/if_ether.h \
6032 netinet/if_inarp.h \
6033 netinet/in_pcb.h \
6034 netinet/ip_icmp.h \
6035 netinet/ip_var.h \
6036 netinet/udp.h \
6037 netipx/ipx.h \
6038 sys/un.h \
6040 do :
6041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6042 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6043 #ifdef HAVE_SYS_SOCKET_H
6044 # include <sys/socket.h>
6045 #endif
6046 #ifdef HAVE_SYS_SOCKETVAR_H
6047 # include <sys/socketvar.h>
6048 #endif
6049 #ifdef HAVE_NET_ROUTE_H
6050 # include <net/route.h>
6051 #endif
6052 #ifdef HAVE_NETINET_IN_H
6053 # include <netinet/in.h>
6054 #endif
6055 #ifdef HAVE_NETINET_IN_SYSTM_H
6056 # include <netinet/in_systm.h>
6057 #endif
6058 #ifdef HAVE_NET_IF_H
6059 # include <net/if.h>
6060 #endif
6061 #ifdef HAVE_NETINET_IP_H
6062 # include <netinet/ip.h>
6063 #endif
6065 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6066 cat >>confdefs.h <<_ACEOF
6067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6068 _ACEOF
6072 done
6075 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6076 do :
6077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6078 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6079 #ifdef HAVE_ALIAS_H
6080 # include <alias.h>
6081 #endif
6082 #ifdef HAVE_SYS_SOCKET_H
6083 # include <sys/socket.h>
6084 #endif
6085 #ifdef HAVE_SYS_SOCKETVAR_H
6086 # include <sys/socketvar.h>
6087 #endif
6088 #ifdef HAVE_SYS_TIMEOUT_H
6089 # include <sys/timeout.h>
6090 #endif
6091 #ifdef HAVE_NETINET_IN_H
6092 # include <netinet/in.h>
6093 #endif
6094 #ifdef HAVE_NETINET_IN_SYSTM_H
6095 # include <netinet/in_systm.h>
6096 #endif
6097 #ifdef HAVE_NETINET_IP_H
6098 # include <netinet/ip.h>
6099 #endif
6100 #ifdef HAVE_NETINET_IP_VAR_H
6101 # include <netinet/ip_var.h>
6102 #endif
6103 #ifdef HAVE_NETINET_IP_ICMP_H
6104 # include <netinet/ip_icmp.h>
6105 #endif
6106 #ifdef HAVE_NETINET_UDP_H
6107 # include <netinet/udp.h>
6108 #endif
6109 #ifdef HAVE_NETINET_TCP_H
6110 # include <netinet/tcp.h>
6111 #endif
6112 #ifdef HAVE_NETINET_TCP_TIMER_H
6113 #include <netinet/tcp_timer.h>
6114 #endif
6116 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6117 cat >>confdefs.h <<_ACEOF
6118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6119 _ACEOF
6123 done
6126 for ac_header in linux/ipx.h linux/irda.h
6127 do :
6128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6129 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6130 #ifdef HAVE_ASM_TYPES_H
6131 # include <asm/types.h>
6132 #endif
6133 #ifdef HAVE_SYS_SOCKET_H
6134 # include <sys/socket.h>
6135 #endif
6136 #ifdef HAVE_LINUX_TYPES_H
6137 # include <linux/types.h>
6138 #endif
6140 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6141 cat >>confdefs.h <<_ACEOF
6142 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6143 _ACEOF
6147 done
6150 for ac_header in mach-o/dyld_images.h
6151 do :
6152 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6153 # include <stdbool.h>
6154 #endif
6155 #ifdef HAVE_STDINT_H
6156 # include <stdint.h>
6157 #endif
6159 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6160 cat >>confdefs.h <<_ACEOF
6161 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6162 _ACEOF
6166 done
6169 for ac_header in resolv.h
6170 do :
6171 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6172 #ifdef HAVE_SYS_SOCKET_H
6173 # include <sys/socket.h>
6174 #endif
6175 #ifdef HAVE_NETINET_IN_H
6176 # include <netinet/in.h>
6177 #endif
6178 #ifdef HAVE_ARPA_NAMESER_H
6179 # include <arpa/nameser.h>
6180 #endif
6182 if test "x$ac_cv_header_resolv_h" = xyes; then :
6183 cat >>confdefs.h <<_ACEOF
6184 #define HAVE_RESOLV_H 1
6185 _ACEOF
6189 done
6192 for ac_header in ifaddrs.h
6193 do :
6194 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6196 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6197 cat >>confdefs.h <<_ACEOF
6198 #define HAVE_IFADDRS_H 1
6199 _ACEOF
6203 done
6206 for ac_header in ucontext.h
6207 do :
6208 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6210 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6211 cat >>confdefs.h <<_ACEOF
6212 #define HAVE_UCONTEXT_H 1
6213 _ACEOF
6217 done
6220 for ac_header in sys/thr.h
6221 do :
6222 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6223 #ifdef HAVE_UCONTEXT_H
6224 #include <ucontext.h>
6225 #endif
6227 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6228 cat >>confdefs.h <<_ACEOF
6229 #define HAVE_SYS_THR_H 1
6230 _ACEOF
6234 done
6237 for ac_header in pthread_np.h
6238 do :
6239 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6240 #include <pthread.h>
6241 #endif
6243 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6244 cat >>confdefs.h <<_ACEOF
6245 #define HAVE_PTHREAD_NP_H 1
6246 _ACEOF
6250 done
6253 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6254 do :
6255 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6256 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6257 #include <sys/time.h>
6258 #endif
6259 #include <sys/types.h>
6260 #ifdef HAVE_ASM_TYPES_H
6261 #include <asm/types.h>
6262 #endif
6264 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6265 cat >>confdefs.h <<_ACEOF
6266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267 _ACEOF
6271 done
6274 for ac_header in linux/capi.h
6275 do :
6276 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6278 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6279 cat >>confdefs.h <<_ACEOF
6280 #define HAVE_LINUX_CAPI_H 1
6281 _ACEOF
6285 done
6289 DLLEXT=""
6291 DLLFLAGS="-D_REENTRANT"
6293 LDDLLFLAGS=""
6295 IMPLIBEXT="def"
6297 LDRPATH_INSTALL=""
6299 LDRPATH_LOCAL=""
6301 LIBEXT="so"
6302 STATIC_IMPLIBEXT="def.a"
6303 # Extract the first word of "ldd", so it can be a program name with args.
6304 set dummy ldd; ac_word=$2
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 $as_echo_n "checking for $ac_word... " >&6; }
6307 if ${ac_cv_path_LDD+:} false; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 case $LDD in
6311 [\\/]* | ?:[\\/]*)
6312 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 as_dummy="/sbin:/usr/sbin:$PATH"
6317 for as_dir in $as_dummy
6319 IFS=$as_save_IFS
6320 test -z "$as_dir" && as_dir=.
6321 for ac_exec_ext in '' $ac_executable_extensions; do
6322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6323 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 break 2
6327 done
6328 done
6329 IFS=$as_save_IFS
6331 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6333 esac
6335 LDD=$ac_cv_path_LDD
6336 if test -n "$LDD"; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6338 $as_echo "$LDD" >&6; }
6339 else
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6341 $as_echo "no" >&6; }
6345 if test -n "$ac_tool_prefix"; then
6346 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6347 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if ${ac_cv_prog_READELF+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352 else
6353 if test -n "$READELF"; then
6354 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6359 IFS=$as_save_IFS
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6363 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365 break 2
6367 done
6368 done
6369 IFS=$as_save_IFS
6373 READELF=$ac_cv_prog_READELF
6374 if test -n "$READELF"; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6376 $as_echo "$READELF" >&6; }
6377 else
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6384 if test -z "$ac_cv_prog_READELF"; then
6385 ac_ct_READELF=$READELF
6386 # Extract the first word of "readelf", so it can be a program name with args.
6387 set dummy readelf; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6391 $as_echo_n "(cached) " >&6
6392 else
6393 if test -n "$ac_ct_READELF"; then
6394 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403 ac_cv_prog_ac_ct_READELF="readelf"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6407 done
6408 done
6409 IFS=$as_save_IFS
6413 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6414 if test -n "$ac_ct_READELF"; then
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6416 $as_echo "$ac_ct_READELF" >&6; }
6417 else
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6422 if test "x$ac_ct_READELF" = x; then
6423 READELF="true"
6424 else
6425 case $cross_compiling:$ac_tool_warned in
6426 yes:)
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429 ac_tool_warned=yes ;;
6430 esac
6431 READELF=$ac_ct_READELF
6433 else
6434 READELF="$ac_cv_prog_READELF"
6438 case $host_os in
6439 cygwin*|mingw32*)
6440 if test -n "$ac_tool_prefix"; then
6441 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6442 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if ${ac_cv_prog_DLLTOOL+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if test -n "$DLLTOOL"; then
6449 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6458 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6462 done
6463 done
6464 IFS=$as_save_IFS
6468 DLLTOOL=$ac_cv_prog_DLLTOOL
6469 if test -n "$DLLTOOL"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6471 $as_echo "$DLLTOOL" >&6; }
6472 else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6479 if test -z "$ac_cv_prog_DLLTOOL"; then
6480 ac_ct_DLLTOOL=$DLLTOOL
6481 # Extract the first word of "dlltool", so it can be a program name with args.
6482 set dummy dlltool; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test -n "$ac_ct_DLLTOOL"; then
6489 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6502 done
6503 done
6504 IFS=$as_save_IFS
6508 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6509 if test -n "$ac_ct_DLLTOOL"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6511 $as_echo "$ac_ct_DLLTOOL" >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6517 if test "x$ac_ct_DLLTOOL" = x; then
6518 DLLTOOL="false"
6519 else
6520 case $cross_compiling:$ac_tool_warned in
6521 yes:)
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524 ac_tool_warned=yes ;;
6525 esac
6526 DLLTOOL=$ac_ct_DLLTOOL
6528 else
6529 DLLTOOL="$ac_cv_prog_DLLTOOL"
6532 LIBEXT="dll"
6533 IMPLIBEXT="a"
6534 STATIC_IMPLIBEXT="a"
6535 enable_iphlpapi=${enable_iphlpapi:-no}
6536 enable_kernel32=${enable_kernel32:-no}
6537 enable_msvcrt=${enable_msvcrt:-no}
6538 enable_ntdll=${enable_ntdll:-no}
6539 enable_ws2_32=${enable_ws2_32:-no}
6540 enable_loader=${enable_loader:-no}
6541 enable_server=${enable_server:-no}
6542 with_x=${with_x:-no}
6543 with_pthread=${with_pthread:-no}
6545 crtlibs=""
6546 case $host_os in
6547 mingw32*)
6548 crtlibs="-lmsvcrt"
6549 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
6551 esac
6553 LIBWINE_RULES="
6554 all: libwine.dll libwine.a
6556 libwine.a: wine.def
6557 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
6559 libwine.dll: \$(OBJS) wine.def Makefile.in
6560 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
6562 install install-lib:: libwine.dll \$(DESTDIR)\$(libdir) dummy
6563 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
6565 install install-dev:: libwine.a \$(DESTDIR)\$(libdir) dummy
6566 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
6568 uninstall::
6569 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
6571 clean::
6572 \$(RM) libwine.dll version.c
6577 darwin*|macosx*)
6578 DLLEXT=".so"
6579 LIBEXT="dylib"
6580 DLLFLAGS="$DLLFLAGS -fPIC"
6581 LDDLLFLAGS="-bundle -multiply_defined suppress"
6582 LIBWINE_LDFLAGS="-multiply_defined suppress"
6583 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6584 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
6585 COREFOUNDATIONLIB="-framework CoreFoundation"
6587 IOKITLIB="-framework IOKit -framework CoreFoundation"
6589 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6591 CORESERVICESLIB="-framework CoreServices"
6593 case $host_os in
6594 darwin11*)
6595 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"
6598 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6600 esac
6601 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6602 then
6603 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6606 if test "$ac_cv_header_Security_Security_h" = "yes"
6607 then
6608 SECURITYLIB="-framework Security -framework CoreFoundation"
6610 ac_save_LIBS="$LIBS"
6611 LIBS="$LIBS $SECURITYLIB"
6612 for ac_func in SSLCopyPeerCertificates
6613 do :
6614 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6615 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6616 cat >>confdefs.h <<_ACEOF
6617 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6618 _ACEOF
6621 done
6623 LIBS="$ac_save_LIBS"
6624 with_gnutls=${with_gnutls:-no}
6626 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6627 then
6628 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6629 then
6630 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6632 else
6633 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6636 ac_save_LIBS="$LIBS"
6637 LIBS="$LIBS $COREAUDIO"
6638 for ac_func in AUGraphAddNode
6639 do :
6640 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6641 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6642 cat >>confdefs.h <<_ACEOF
6643 #define HAVE_AUGRAPHADDNODE 1
6644 _ACEOF
6647 done
6649 LIBS="$ac_save_LIBS"
6651 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6652 then
6653 FRAMEWORK_OPENAL="-framework OpenAL"
6656 cat >>confdefs.h <<_ACEOF
6657 #define HAVE_OPENAL 1
6658 _ACEOF
6660 ac_cv_lib_openal=yes
6662 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6663 then
6664 LIBOPENCL="-framework OpenCL"
6666 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6668 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6669 then
6670 ac_save_LIBS="$LIBS"
6671 LIBS="$LIBS $IOKITLIB"
6672 for ac_func in IOHIDManagerCreate
6673 do :
6674 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6675 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6676 cat >>confdefs.h <<_ACEOF
6677 #define HAVE_IOHIDMANAGERCREATE 1
6678 _ACEOF
6681 done
6683 LIBS="$ac_save_LIBS"
6685 case $host_cpu in
6686 *powerpc*)
6687 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6688 esac
6689 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6690 then
6691 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6693 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6694 else
6695 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6697 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6698 then
6699 CARBONLIB="-framework Carbon"
6703 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
6704 then
6705 ac_save_LIBS="$LIBS"
6706 LIBS="$LIBS $APPLICATIONSERVICESLIB"
6707 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
6708 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
6709 enable_winemac_drv=${enable_winemac_drv:-yes}
6712 LIBS="$ac_save_LIBS"
6715 if test "x$enable_win16" = "xyes"
6716 then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6718 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6719 if test "$cross_compiling" = yes; then :
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6721 $as_echo "cross-compiling, assuming yes" >&6; }
6722 else
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6725 asm(".text\n"
6726 "bad:\tnop;nop\n"
6727 "good:\tnop;nop\n\t"
6728 ".globl _testfunc\n"
6729 "_testfunc:\tcallw good");
6730 extern void testfunc();
6732 main ()
6734 unsigned short *p = (unsigned short *)testfunc;
6735 return p[0] != 0xe866 || p[1] != 0xfffa
6737 return 0;
6739 _ACEOF
6740 if ac_fn_c_try_run "$LINENO"; then :
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6742 $as_echo "yes" >&6; }
6743 else
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6746 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
6748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6749 conftest.$ac_objext conftest.beam conftest.$ac_ext
6754 LIBWINE_RULES="
6755 all: libwine.dylib
6757 libwine.\$(VERSION).dylib: \$(OBJS) \$(RELPATH) Makefile.in
6758 \$(CC) -dynamiclib -install_name @rpath/libwine.\$(SOVERSION).dylib -Wl,-rpath,@loader_path/ -compatibility_version \$(SOVERSION) -current_version \$(VERSION) \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
6760 libwine.\$(SOVERSION).dylib: libwine.\$(VERSION).dylib
6761 \$(RM) \$@ && \$(LN_S) libwine.\$(VERSION).dylib \$@
6763 libwine.dylib: libwine.\$(SOVERSION).dylib
6764 \$(RM) \$@ && \$(LN_S) libwine.\$(SOVERSION).dylib \$@
6766 install install-lib:: libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir) dummy
6767 \$(INSTALL_PROGRAM) libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir)/libwine.\$(VERSION).dylib
6768 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.\$(SOVERSION).dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6770 install install-dev:: \$(DESTDIR)\$(libdir) dummy
6771 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.dylib
6773 uninstall::
6774 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6776 clean::
6777 \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib version.c
6782 linux-android*)
6783 DLLFLAGS="$DLLFLAGS -fPIC"
6784 DLLEXT=".so"
6785 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6787 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6788 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 ac_wine_try_cflags_saved=$CFLAGS
6792 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6795 int main(int argc, char **argv) { return 0; }
6796 _ACEOF
6797 if ac_fn_c_try_link "$LINENO"; then :
6798 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6799 else
6800 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6802 rm -f core conftest.err conftest.$ac_objext \
6803 conftest$ac_exeext conftest.$ac_ext
6804 CFLAGS=$ac_wine_try_cflags_saved
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6807 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6808 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6809 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6811 { $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
6812 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6813 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 ac_wine_try_cflags_saved=$CFLAGS
6817 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6820 int main(int argc, char **argv) { return 0; }
6821 _ACEOF
6822 if ac_fn_c_try_link "$LINENO"; then :
6823 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6824 else
6825 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6827 rm -f core conftest.err conftest.$ac_objext \
6828 conftest$ac_exeext conftest.$ac_ext
6829 CFLAGS=$ac_wine_try_cflags_saved
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6832 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6833 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6834 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6837 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6838 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 ac_wine_try_cflags_saved=$CFLAGS
6842 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 int main(int argc, char **argv) { return 0; }
6846 _ACEOF
6847 if ac_fn_c_try_link "$LINENO"; then :
6848 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6849 else
6850 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6852 rm -f core conftest.err conftest.$ac_objext \
6853 conftest$ac_exeext conftest.$ac_ext
6854 CFLAGS=$ac_wine_try_cflags_saved
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6857 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6858 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6859 LDEXECFLAGS="-Wl,--export-dynamic"
6862 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6864 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6865 if eval \${$as_ac_var+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 ac_wine_try_cflags_saved=$CFLAGS
6869 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 int main(int argc, char **argv) { return 0; }
6873 _ACEOF
6874 if ac_fn_c_try_link "$LINENO"; then :
6875 eval "$as_ac_var=yes"
6876 else
6877 eval "$as_ac_var=no"
6879 rm -f core conftest.err conftest.$ac_objext \
6880 conftest$ac_exeext conftest.$ac_ext
6881 CFLAGS=$ac_wine_try_cflags_saved
6883 eval ac_res=\$$as_ac_var
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6885 $as_echo "$ac_res" >&6; }
6886 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6887 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6888 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6889 else
6890 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6892 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6893 if eval \${$as_ac_var+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 ac_wine_try_cflags_saved=$CFLAGS
6897 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6900 int main(int argc, char **argv) { return 0; }
6901 _ACEOF
6902 if ac_fn_c_try_link "$LINENO"; then :
6903 eval "$as_ac_var=yes"
6904 else
6905 eval "$as_ac_var=no"
6907 rm -f core conftest.err conftest.$ac_objext \
6908 conftest$ac_exeext conftest.$ac_ext
6909 CFLAGS=$ac_wine_try_cflags_saved
6911 eval ac_res=\$$as_ac_var
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6913 $as_echo "$ac_res" >&6; }
6914 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6915 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6916 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6921 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6922 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6923 $as_echo_n "(cached) " >&6
6924 else
6925 ac_wine_try_cflags_saved=$CFLAGS
6926 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928 /* end confdefs.h. */
6929 int main(int argc, char **argv) { return 0; }
6930 _ACEOF
6931 if ac_fn_c_try_link "$LINENO"; then :
6932 ac_cv_cflags__Wl___enable_new_dtags=yes
6933 else
6934 ac_cv_cflags__Wl___enable_new_dtags=no
6936 rm -f core conftest.err conftest.$ac_objext \
6937 conftest$ac_exeext conftest.$ac_ext
6938 CFLAGS=$ac_wine_try_cflags_saved
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6941 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6942 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6943 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6946 case $host_cpu in
6947 *i[3456789]86* | x86_64)
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6949 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6950 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 ac_wine_try_cflags_saved=$CFLAGS
6954 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
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 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6961 else
6962 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
6969 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
6970 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
6971 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6974 esac
6976 LIBWINE_RULES="
6977 all: libwine.so
6979 libwine.so: \$(OBJS) Makefile.in
6980 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
6982 install install-lib:: libwine.so \$(DESTDIR)\$(libdir) dummy
6983 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
6985 uninstall::
6986 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
6988 clean::
6989 \$(RM) libwine.so version.c
6995 DLLFLAGS="$DLLFLAGS -fPIC"
6996 DLLEXT=".so"
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6998 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6999 if ${ac_cv_c_dll_gnuelf+:} false; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 ac_wine_try_cflags_saved=$CFLAGS
7003 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7006 void myfunc() {}
7007 _ACEOF
7008 if ac_fn_c_try_link "$LINENO"; then :
7009 ac_cv_c_dll_gnuelf="yes"
7010 else
7011 ac_cv_c_dll_gnuelf="no"
7013 rm -f core conftest.err conftest.$ac_objext \
7014 conftest$ac_exeext conftest.$ac_ext
7015 CFLAGS=$ac_wine_try_cflags_saved
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
7018 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
7019 if test "$ac_cv_c_dll_gnuelf" = "yes"
7020 then
7021 LDSHARED="\$(CC) -shared"
7022 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
7024 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
7025 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 ac_wine_try_cflags_saved=$CFLAGS
7029 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7032 int main(int argc, char **argv) { return 0; }
7033 _ACEOF
7034 if ac_fn_c_try_link "$LINENO"; then :
7035 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
7036 else
7037 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
7039 rm -f core conftest.err conftest.$ac_objext \
7040 conftest$ac_exeext conftest.$ac_ext
7041 CFLAGS=$ac_wine_try_cflags_saved
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
7044 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
7045 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
7046 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.\$(SOVERSION)"
7047 else
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
7049 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
7050 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 ac_wine_try_cflags_saved=$CFLAGS
7054 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7057 int main(int argc, char **argv) { return 0; }
7058 _ACEOF
7059 if ac_fn_c_try_link "$LINENO"; then :
7060 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
7061 else
7062 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
7064 rm -f core conftest.err conftest.$ac_objext \
7065 conftest$ac_exeext conftest.$ac_ext
7066 CFLAGS=$ac_wine_try_cflags_saved
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
7069 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
7070 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
7071 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.\$(SOVERSION)"
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
7076 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
7077 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 ac_wine_try_cflags_saved=$CFLAGS
7081 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7084 int main(int argc, char **argv) { return 0; }
7085 _ACEOF
7086 if ac_fn_c_try_link "$LINENO"; then :
7087 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
7088 else
7089 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
7091 rm -f core conftest.err conftest.$ac_objext \
7092 conftest$ac_exeext conftest.$ac_ext
7093 CFLAGS=$ac_wine_try_cflags_saved
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
7096 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
7097 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
7098 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
7101 { $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
7102 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
7103 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
7104 $as_echo_n "(cached) " >&6
7105 else
7106 ac_wine_try_cflags_saved=$CFLAGS
7107 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h. */
7110 int main(int argc, char **argv) { return 0; }
7111 _ACEOF
7112 if ac_fn_c_try_link "$LINENO"; then :
7113 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
7114 else
7115 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
7117 rm -f core conftest.err conftest.$ac_objext \
7118 conftest$ac_exeext conftest.$ac_ext
7119 CFLAGS=$ac_wine_try_cflags_saved
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
7122 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
7123 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
7124 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
7127 echo '{ global: *; };' >conftest.map
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
7129 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
7130 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 ac_wine_try_cflags_saved=$CFLAGS
7134 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7137 int main(int argc, char **argv) { return 0; }
7138 _ACEOF
7139 if ac_fn_c_try_link "$LINENO"; then :
7140 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
7141 else
7142 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
7144 rm -f core conftest.err conftest.$ac_objext \
7145 conftest$ac_exeext conftest.$ac_ext
7146 CFLAGS=$ac_wine_try_cflags_saved
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
7149 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
7150 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
7151 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
7153 rm -f conftest.map
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7156 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7157 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 ac_wine_try_cflags_saved=$CFLAGS
7161 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163 /* end confdefs.h. */
7164 int main(int argc, char **argv) { return 0; }
7165 _ACEOF
7166 if ac_fn_c_try_link "$LINENO"; then :
7167 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7168 else
7169 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7171 rm -f core conftest.err conftest.$ac_objext \
7172 conftest$ac_exeext conftest.$ac_ext
7173 CFLAGS=$ac_wine_try_cflags_saved
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7176 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7177 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7178 LDEXECFLAGS="-Wl,--export-dynamic"
7182 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7184 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7185 if eval \${$as_ac_var+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7188 ac_wine_try_cflags_saved=$CFLAGS
7189 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 int main(int argc, char **argv) { return 0; }
7193 _ACEOF
7194 if ac_fn_c_try_link "$LINENO"; then :
7195 eval "$as_ac_var=yes"
7196 else
7197 eval "$as_ac_var=no"
7199 rm -f core conftest.err conftest.$ac_objext \
7200 conftest$ac_exeext conftest.$ac_ext
7201 CFLAGS=$ac_wine_try_cflags_saved
7203 eval ac_res=\$$as_ac_var
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7205 $as_echo "$ac_res" >&6; }
7206 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7207 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7208 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7209 else
7210 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7212 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7213 if eval \${$as_ac_var+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 ac_wine_try_cflags_saved=$CFLAGS
7217 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7219 /* end confdefs.h. */
7220 int main(int argc, char **argv) { return 0; }
7221 _ACEOF
7222 if ac_fn_c_try_link "$LINENO"; then :
7223 eval "$as_ac_var=yes"
7224 else
7225 eval "$as_ac_var=no"
7227 rm -f core conftest.err conftest.$ac_objext \
7228 conftest$ac_exeext conftest.$ac_ext
7229 CFLAGS=$ac_wine_try_cflags_saved
7231 eval ac_res=\$$as_ac_var
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7233 $as_echo "$ac_res" >&6; }
7234 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7235 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7236 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7241 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7242 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 ac_wine_try_cflags_saved=$CFLAGS
7246 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
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__Wl___enable_new_dtags=yes
7253 else
7254 ac_cv_cflags__Wl___enable_new_dtags=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__Wl___enable_new_dtags" >&5
7261 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7262 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7263 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7266 case $host_cpu in
7267 *i[3456789]86* | x86_64)
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7269 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7270 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273 ac_wine_try_cflags_saved=$CFLAGS
7274 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
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 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7281 else
7282 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7289 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7290 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7291 case $host_os in
7292 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7293 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7294 esac
7297 # Extract the first word of "prelink", so it can be a program name with args.
7298 set dummy prelink; ac_word=$2
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7300 $as_echo_n "checking for $ac_word... " >&6; }
7301 if ${ac_cv_path_PRELINK+:} false; then :
7302 $as_echo_n "(cached) " >&6
7303 else
7304 case $PRELINK in
7305 [\\/]* | ?:[\\/]*)
7306 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in /sbin /usr/sbin $PATH
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7316 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318 break 2
7320 done
7321 done
7322 IFS=$as_save_IFS
7324 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7326 esac
7328 PRELINK=$ac_cv_path_PRELINK
7329 if test -n "$PRELINK"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7331 $as_echo "$PRELINK" >&6; }
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7338 if test "x$PRELINK" = xfalse
7339 then
7340 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7343 esac
7345 else
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7347 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7348 if ${ac_cv_c_dll_unixware+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 ac_wine_try_cflags_saved=$CFLAGS
7352 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 void myfunc() {}
7356 _ACEOF
7357 if ac_fn_c_try_link "$LINENO"; then :
7358 ac_cv_c_dll_unixware="yes"
7359 else
7360 ac_cv_c_dll_unixware="no"
7362 rm -f core conftest.err conftest.$ac_objext \
7363 conftest$ac_exeext conftest.$ac_ext
7364 CFLAGS=$ac_wine_try_cflags_saved
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7367 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7368 if test "$ac_cv_c_dll_unixware" = "yes"
7369 then
7370 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.\$(SOVERSION)"
7371 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7374 LIBWINE_RULES="
7375 all: libwine.so
7377 libwine.so.\$(VERSION): \$(OBJS) wine.map Makefile.in
7378 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7380 libwine.so.\$(SOVERSION): libwine.so.\$(VERSION)
7381 \$(RM) \$@ && \$(LN_S) libwine.so.\$(VERSION) \$@
7383 libwine.so: libwine.so.\$(SOVERSION)
7384 \$(RM) \$@ && \$(LN_S) libwine.so.\$(SOVERSION) \$@
7386 install install-lib:: libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir) dummy
7387 \$(INSTALL_PROGRAM) libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir)/libwine.so.\$(VERSION)
7388 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.\$(SOVERSION) && \$(LN_S) libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7390 install install-dev:: \$(DESTDIR)\$(libdir) dummy
7391 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.\$(VERSION) libwine.so
7393 uninstall::
7394 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7396 clean::
7397 \$(RM) libwine.so.\$(SOVERSION) libwine.so.\$(VERSION) version.c
7401 esac
7403 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7404 enable_winemac_drv=${enable_winemac_drv:-no}
7406 CROSSTEST_DISABLE=\#
7408 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7409 then
7410 case "$host_cpu" in
7411 i[3456789]86*)
7412 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
7413 mingw32-gcc" ;;
7414 x86_64)
7415 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 " ;;
7417 ac_prefix_list="" ;;
7418 esac
7419 for ac_prog in $ac_prefix_list
7421 # Extract the first word of "$ac_prog", so it can be a program name with args.
7422 set dummy $ac_prog; ac_word=$2
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7424 $as_echo_n "checking for $ac_word... " >&6; }
7425 if ${ac_cv_prog_CROSSCC+:} false; then :
7426 $as_echo_n "(cached) " >&6
7427 else
7428 if test -n "$CROSSCC"; then
7429 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7430 else
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438 ac_cv_prog_CROSSCC="$ac_prog"
7439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 break 2
7442 done
7443 done
7444 IFS=$as_save_IFS
7448 CROSSCC=$ac_cv_prog_CROSSCC
7449 if test -n "$CROSSCC"; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7451 $as_echo "$CROSSCC" >&6; }
7452 else
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 $as_echo "no" >&6; }
7458 test -n "$CROSSCC" && break
7459 done
7460 test -n "$CROSSCC" || CROSSCC="false"
7462 if test "$CROSSCC" != "false"
7463 then
7464 ac_save_CC="$CC"
7465 CC="$CROSSCC"
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7467 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7472 main ()
7476 return 0;
7478 _ACEOF
7479 if ac_fn_c_try_compile "$LINENO"; then :
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7481 $as_echo "yes" >&6; }
7482 set x $CROSSCC
7483 shift
7484 target=""
7485 while test $# -ge 1
7487 case "$1" in
7488 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7489 esac
7490 shift
7491 done
7492 if test -n "$target"
7493 then
7494 CROSSTEST_DISABLE=""
7495 CROSSTARGET="$target"
7498 else
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500 $as_echo "no" >&6; }
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 CC="$ac_save_CC"
7508 if test "$ac_cv_header_pthread_h" = "yes"
7509 then
7510 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
7511 if test "x$ac_cv_func_pthread_create" = xyes; then :
7513 else
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7515 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7516 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 ac_check_lib_save_LIBS=$LIBS
7520 LIBS="-lpthread $LIBS"
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7524 /* Override any GCC internal prototype to avoid an error.
7525 Use char because int might match the return type of a GCC
7526 builtin and then its argument prototype would still apply. */
7527 #ifdef __cplusplus
7528 extern "C"
7529 #endif
7530 char pthread_create ();
7532 main ()
7534 return pthread_create ();
7536 return 0;
7538 _ACEOF
7539 if ac_fn_c_try_link "$LINENO"; then :
7540 ac_cv_lib_pthread_pthread_create=yes
7541 else
7542 ac_cv_lib_pthread_pthread_create=no
7544 rm -f core conftest.err conftest.$ac_objext \
7545 conftest$ac_exeext conftest.$ac_ext
7546 LIBS=$ac_check_lib_save_LIBS
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7549 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7550 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7551 LIBPTHREAD="-lpthread"
7558 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
7559 case "x$with_pthread" in
7560 xno) ;;
7561 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7562 Wine cannot support threads without libpthread.
7563 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7564 esac
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7569 $as_echo_n "checking for X... " >&6; }
7572 # Check whether --with-x was given.
7573 if test "${with_x+set}" = set; then :
7574 withval=$with_x;
7577 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7578 if test "x$with_x" = xno; then
7579 # The user explicitly disabled X.
7580 have_x=disabled
7581 else
7582 case $x_includes,$x_libraries in #(
7583 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7584 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 # One or both of the vars are not set, and there is no cached value.
7588 ac_x_includes=no ac_x_libraries=no
7589 rm -f -r conftest.dir
7590 if mkdir conftest.dir; then
7591 cd conftest.dir
7592 cat >Imakefile <<'_ACEOF'
7593 incroot:
7594 @echo incroot='${INCROOT}'
7595 usrlibdir:
7596 @echo usrlibdir='${USRLIBDIR}'
7597 libdir:
7598 @echo libdir='${LIBDIR}'
7599 _ACEOF
7600 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7601 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7602 for ac_var in incroot usrlibdir libdir; do
7603 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7604 done
7605 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7606 for ac_extension in a so sl dylib la dll; do
7607 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7608 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7609 ac_im_usrlibdir=$ac_im_libdir; break
7611 done
7612 # Screen out bogus values from the imake configuration. They are
7613 # bogus both because they are the default anyway, and because
7614 # using them would break gcc on systems where it needs fixed includes.
7615 case $ac_im_incroot in
7616 /usr/include) ac_x_includes= ;;
7617 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7618 esac
7619 case $ac_im_usrlibdir in
7620 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7621 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7622 esac
7624 cd ..
7625 rm -f -r conftest.dir
7628 # Standard set of common directories for X headers.
7629 # Check X11 before X11Rn because it is often a symlink to the current release.
7630 ac_x_header_dirs='
7631 /usr/X11/include
7632 /usr/X11R7/include
7633 /usr/X11R6/include
7634 /usr/X11R5/include
7635 /usr/X11R4/include
7637 /usr/include/X11
7638 /usr/include/X11R7
7639 /usr/include/X11R6
7640 /usr/include/X11R5
7641 /usr/include/X11R4
7643 /usr/local/X11/include
7644 /usr/local/X11R7/include
7645 /usr/local/X11R6/include
7646 /usr/local/X11R5/include
7647 /usr/local/X11R4/include
7649 /usr/local/include/X11
7650 /usr/local/include/X11R7
7651 /usr/local/include/X11R6
7652 /usr/local/include/X11R5
7653 /usr/local/include/X11R4
7655 /usr/X386/include
7656 /usr/x386/include
7657 /usr/XFree86/include/X11
7659 /usr/include
7660 /usr/local/include
7661 /usr/unsupported/include
7662 /usr/athena/include
7663 /usr/local/x11r5/include
7664 /usr/lpp/Xamples/include
7666 /usr/openwin/include
7667 /usr/openwin/share/include'
7669 if test "$ac_x_includes" = no; then
7670 # Guess where to find include files, by looking for Xlib.h.
7671 # First, try using that file with no special directory specified.
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7674 #include <X11/Xlib.h>
7675 _ACEOF
7676 if ac_fn_c_try_cpp "$LINENO"; then :
7677 # We can compile using X headers with no special include directory.
7678 ac_x_includes=
7679 else
7680 for ac_dir in $ac_x_header_dirs; do
7681 if test -r "$ac_dir/X11/Xlib.h"; then
7682 ac_x_includes=$ac_dir
7683 break
7685 done
7687 rm -f conftest.err conftest.i conftest.$ac_ext
7688 fi # $ac_x_includes = no
7690 if test "$ac_x_libraries" = no; then
7691 # Check for the libraries.
7692 # See if we find them without any special options.
7693 # Don't add to $LIBS permanently.
7694 ac_save_LIBS=$LIBS
7695 LIBS="-lX11 $LIBS"
7696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7697 /* end confdefs.h. */
7698 #include <X11/Xlib.h>
7700 main ()
7702 XrmInitialize ()
7704 return 0;
7706 _ACEOF
7707 if ac_fn_c_try_link "$LINENO"; then :
7708 LIBS=$ac_save_LIBS
7709 # We can link X programs with no special library path.
7710 ac_x_libraries=
7711 else
7712 LIBS=$ac_save_LIBS
7713 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7715 # Don't even attempt the hair of trying to link an X program!
7716 for ac_extension in a so sl dylib la dll; do
7717 if test -r "$ac_dir/libX11.$ac_extension"; then
7718 ac_x_libraries=$ac_dir
7719 break 2
7721 done
7722 done
7724 rm -f core conftest.err conftest.$ac_objext \
7725 conftest$ac_exeext conftest.$ac_ext
7726 fi # $ac_x_libraries = no
7728 case $ac_x_includes,$ac_x_libraries in #(
7729 no,* | *,no | *\'*)
7730 # Didn't find X, or a directory has "'" in its name.
7731 ac_cv_have_x="have_x=no";; #(
7733 # Record where we found X for the cache.
7734 ac_cv_have_x="have_x=yes\
7735 ac_x_includes='$ac_x_includes'\
7736 ac_x_libraries='$ac_x_libraries'"
7737 esac
7739 ;; #(
7740 *) have_x=yes;;
7741 esac
7742 eval "$ac_cv_have_x"
7743 fi # $with_x != no
7745 if test "$have_x" != yes; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7747 $as_echo "$have_x" >&6; }
7748 no_x=yes
7749 else
7750 # If each of the values was on the command line, it overrides each guess.
7751 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7752 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7753 # Update the cache value to reflect the command line values.
7754 ac_cv_have_x="have_x=yes\
7755 ac_x_includes='$x_includes'\
7756 ac_x_libraries='$x_libraries'"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7758 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7761 if test "$no_x" = yes; then
7762 # Not all programs may use this symbol, but it does not hurt to define it.
7764 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7766 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7767 else
7768 if test -n "$x_includes"; then
7769 X_CFLAGS="$X_CFLAGS -I$x_includes"
7772 # It would also be nice to do this for all -L options, not just this one.
7773 if test -n "$x_libraries"; then
7774 X_LIBS="$X_LIBS -L$x_libraries"
7775 # For Solaris; some versions of Sun CC require a space after -R and
7776 # others require no space. Words are not sufficient . . . .
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7778 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7779 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7780 ac_xsave_c_werror_flag=$ac_c_werror_flag
7781 ac_c_werror_flag=yes
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783 /* end confdefs.h. */
7786 main ()
7790 return 0;
7792 _ACEOF
7793 if ac_fn_c_try_link "$LINENO"; then :
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 $as_echo "no" >&6; }
7796 X_LIBS="$X_LIBS -R$x_libraries"
7797 else
7798 LIBS="$ac_xsave_LIBS -R $x_libraries"
7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7803 main ()
7807 return 0;
7809 _ACEOF
7810 if ac_fn_c_try_link "$LINENO"; then :
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7812 $as_echo "yes" >&6; }
7813 X_LIBS="$X_LIBS -R $x_libraries"
7814 else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7816 $as_echo "neither works" >&6; }
7818 rm -f core conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
7821 rm -f core conftest.err conftest.$ac_objext \
7822 conftest$ac_exeext conftest.$ac_ext
7823 ac_c_werror_flag=$ac_xsave_c_werror_flag
7824 LIBS=$ac_xsave_LIBS
7827 # Check for system-dependent libraries X programs must link with.
7828 # Do this before checking for the system-independent R6 libraries
7829 # (-lICE), since we may need -lsocket or whatever for X linking.
7831 if test "$ISC" = yes; then
7832 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7833 else
7834 # Martyn Johnson says this is needed for Ultrix, if the X
7835 # libraries were built with DECnet support. And Karl Berry says
7836 # the Alpha needs dnet_stub (dnet does not exist).
7837 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7841 /* Override any GCC internal prototype to avoid an error.
7842 Use char because int might match the return type of a GCC
7843 builtin and then its argument prototype would still apply. */
7844 #ifdef __cplusplus
7845 extern "C"
7846 #endif
7847 char XOpenDisplay ();
7849 main ()
7851 return XOpenDisplay ();
7853 return 0;
7855 _ACEOF
7856 if ac_fn_c_try_link "$LINENO"; then :
7858 else
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7860 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7861 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 ac_check_lib_save_LIBS=$LIBS
7865 LIBS="-ldnet $LIBS"
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7869 /* Override any GCC internal prototype to avoid an error.
7870 Use char because int might match the return type of a GCC
7871 builtin and then its argument prototype would still apply. */
7872 #ifdef __cplusplus
7873 extern "C"
7874 #endif
7875 char dnet_ntoa ();
7877 main ()
7879 return dnet_ntoa ();
7881 return 0;
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"; then :
7885 ac_cv_lib_dnet_dnet_ntoa=yes
7886 else
7887 ac_cv_lib_dnet_dnet_ntoa=no
7889 rm -f core conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891 LIBS=$ac_check_lib_save_LIBS
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7894 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7895 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7896 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7899 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7901 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7902 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 ac_check_lib_save_LIBS=$LIBS
7906 LIBS="-ldnet_stub $LIBS"
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7910 /* Override any GCC internal prototype to avoid an error.
7911 Use char because int might match the return type of a GCC
7912 builtin and then its argument prototype would still apply. */
7913 #ifdef __cplusplus
7914 extern "C"
7915 #endif
7916 char dnet_ntoa ();
7918 main ()
7920 return dnet_ntoa ();
7922 return 0;
7924 _ACEOF
7925 if ac_fn_c_try_link "$LINENO"; then :
7926 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7927 else
7928 ac_cv_lib_dnet_stub_dnet_ntoa=no
7930 rm -f core conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 LIBS=$ac_check_lib_save_LIBS
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7935 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7936 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7937 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7942 rm -f core conftest.err conftest.$ac_objext \
7943 conftest$ac_exeext conftest.$ac_ext
7944 LIBS="$ac_xsave_LIBS"
7946 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7947 # to get the SysV transport functions.
7948 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7949 # needs -lnsl.
7950 # The nsl library prevents programs from opening the X display
7951 # on Irix 5.2, according to T.E. Dickey.
7952 # The functions gethostbyname, getservbyname, and inet_addr are
7953 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7954 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7955 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7959 if test $ac_cv_func_gethostbyname = no; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7961 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7962 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 ac_check_lib_save_LIBS=$LIBS
7966 LIBS="-lnsl $LIBS"
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7970 /* Override any GCC internal prototype to avoid an error.
7971 Use char because int might match the return type of a GCC
7972 builtin and then its argument prototype would still apply. */
7973 #ifdef __cplusplus
7974 extern "C"
7975 #endif
7976 char gethostbyname ();
7978 main ()
7980 return gethostbyname ();
7982 return 0;
7984 _ACEOF
7985 if ac_fn_c_try_link "$LINENO"; then :
7986 ac_cv_lib_nsl_gethostbyname=yes
7987 else
7988 ac_cv_lib_nsl_gethostbyname=no
7990 rm -f core conftest.err conftest.$ac_objext \
7991 conftest$ac_exeext conftest.$ac_ext
7992 LIBS=$ac_check_lib_save_LIBS
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7995 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7996 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7997 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8000 if test $ac_cv_lib_nsl_gethostbyname = no; then
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8002 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8003 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 ac_check_lib_save_LIBS=$LIBS
8007 LIBS="-lbsd $LIBS"
8008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8009 /* end confdefs.h. */
8011 /* Override any GCC internal prototype to avoid an error.
8012 Use char because int might match the return type of a GCC
8013 builtin and then its argument prototype would still apply. */
8014 #ifdef __cplusplus
8015 extern "C"
8016 #endif
8017 char gethostbyname ();
8019 main ()
8021 return gethostbyname ();
8023 return 0;
8025 _ACEOF
8026 if ac_fn_c_try_link "$LINENO"; then :
8027 ac_cv_lib_bsd_gethostbyname=yes
8028 else
8029 ac_cv_lib_bsd_gethostbyname=no
8031 rm -f core conftest.err conftest.$ac_objext \
8032 conftest$ac_exeext conftest.$ac_ext
8033 LIBS=$ac_check_lib_save_LIBS
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8036 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8037 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8038 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8044 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8045 # socket/setsockopt and other routines are undefined under SCO ODT
8046 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8047 # on later versions), says Simon Leinen: it contains gethostby*
8048 # variants that don't use the name server (or something). -lsocket
8049 # must be given before -lnsl if both are needed. We assume that
8050 # if connect needs -lnsl, so does gethostbyname.
8051 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8052 if test "x$ac_cv_func_connect" = xyes; then :
8056 if test $ac_cv_func_connect = no; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8058 $as_echo_n "checking for connect in -lsocket... " >&6; }
8059 if ${ac_cv_lib_socket_connect+:} false; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 ac_check_lib_save_LIBS=$LIBS
8063 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8067 /* Override any GCC internal prototype to avoid an error.
8068 Use char because int might match the return type of a GCC
8069 builtin and then its argument prototype would still apply. */
8070 #ifdef __cplusplus
8071 extern "C"
8072 #endif
8073 char connect ();
8075 main ()
8077 return connect ();
8079 return 0;
8081 _ACEOF
8082 if ac_fn_c_try_link "$LINENO"; then :
8083 ac_cv_lib_socket_connect=yes
8084 else
8085 ac_cv_lib_socket_connect=no
8087 rm -f core conftest.err conftest.$ac_objext \
8088 conftest$ac_exeext conftest.$ac_ext
8089 LIBS=$ac_check_lib_save_LIBS
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8092 $as_echo "$ac_cv_lib_socket_connect" >&6; }
8093 if test "x$ac_cv_lib_socket_connect" = xyes; then :
8094 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8099 # Guillermo Gomez says -lposix is necessary on A/UX.
8100 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8101 if test "x$ac_cv_func_remove" = xyes; then :
8105 if test $ac_cv_func_remove = no; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8107 $as_echo_n "checking for remove in -lposix... " >&6; }
8108 if ${ac_cv_lib_posix_remove+:} false; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 ac_check_lib_save_LIBS=$LIBS
8112 LIBS="-lposix $LIBS"
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8116 /* Override any GCC internal prototype to avoid an error.
8117 Use char because int might match the return type of a GCC
8118 builtin and then its argument prototype would still apply. */
8119 #ifdef __cplusplus
8120 extern "C"
8121 #endif
8122 char remove ();
8124 main ()
8126 return remove ();
8128 return 0;
8130 _ACEOF
8131 if ac_fn_c_try_link "$LINENO"; then :
8132 ac_cv_lib_posix_remove=yes
8133 else
8134 ac_cv_lib_posix_remove=no
8136 rm -f core conftest.err conftest.$ac_objext \
8137 conftest$ac_exeext conftest.$ac_ext
8138 LIBS=$ac_check_lib_save_LIBS
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8141 $as_echo "$ac_cv_lib_posix_remove" >&6; }
8142 if test "x$ac_cv_lib_posix_remove" = xyes; then :
8143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8148 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8149 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8150 if test "x$ac_cv_func_shmat" = xyes; then :
8154 if test $ac_cv_func_shmat = no; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8156 $as_echo_n "checking for shmat in -lipc... " >&6; }
8157 if ${ac_cv_lib_ipc_shmat+:} false; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 ac_check_lib_save_LIBS=$LIBS
8161 LIBS="-lipc $LIBS"
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8165 /* Override any GCC internal prototype to avoid an error.
8166 Use char because int might match the return type of a GCC
8167 builtin and then its argument prototype would still apply. */
8168 #ifdef __cplusplus
8169 extern "C"
8170 #endif
8171 char shmat ();
8173 main ()
8175 return shmat ();
8177 return 0;
8179 _ACEOF
8180 if ac_fn_c_try_link "$LINENO"; then :
8181 ac_cv_lib_ipc_shmat=yes
8182 else
8183 ac_cv_lib_ipc_shmat=no
8185 rm -f core conftest.err conftest.$ac_objext \
8186 conftest$ac_exeext conftest.$ac_ext
8187 LIBS=$ac_check_lib_save_LIBS
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8190 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8191 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8192 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8198 # Check for libraries that X11R6 Xt/Xaw programs need.
8199 ac_save_LDFLAGS=$LDFLAGS
8200 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8201 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8202 # check for ICE first), but we must link in the order -lSM -lICE or
8203 # we get undefined symbols. So assume we have SM if we have ICE.
8204 # These have to be linked with before -lX11, unlike the other
8205 # libraries we check for below, so use a different variable.
8206 # John Interrante, Karl Berry
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8208 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8209 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8210 $as_echo_n "(cached) " >&6
8211 else
8212 ac_check_lib_save_LIBS=$LIBS
8213 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8217 /* Override any GCC internal prototype to avoid an error.
8218 Use char because int might match the return type of a GCC
8219 builtin and then its argument prototype would still apply. */
8220 #ifdef __cplusplus
8221 extern "C"
8222 #endif
8223 char IceConnectionNumber ();
8225 main ()
8227 return IceConnectionNumber ();
8229 return 0;
8231 _ACEOF
8232 if ac_fn_c_try_link "$LINENO"; then :
8233 ac_cv_lib_ICE_IceConnectionNumber=yes
8234 else
8235 ac_cv_lib_ICE_IceConnectionNumber=no
8237 rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8239 LIBS=$ac_check_lib_save_LIBS
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8242 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8243 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8244 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8247 LDFLAGS=$ac_save_LDFLAGS
8252 if test "$have_x" = "yes"
8253 then
8254 XLIB="-lX11"
8255 ac_save_CPPFLAGS="$CPPFLAGS"
8256 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
8259 $as_echo_n "checking for -lX11... " >&6; }
8260 if ${ac_cv_lib_soname_X11+:} false; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 ac_check_soname_save_LIBS=$LIBS
8264 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8268 /* Override any GCC internal prototype to avoid an error.
8269 Use char because int might match the return type of a GCC
8270 builtin and then its argument prototype would still apply. */
8271 #ifdef __cplusplus
8272 extern "C"
8273 #endif
8274 char XCreateWindow ();
8276 main ()
8278 return XCreateWindow ();
8280 return 0;
8282 _ACEOF
8283 if ac_fn_c_try_link "$LINENO"; then :
8284 case "$LIBEXT" in
8285 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8286 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'` ;;
8287 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8288 if test "x$ac_cv_lib_soname_X11" = x; then :
8289 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8290 fi ;;
8291 esac
8293 rm -f core conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext conftest.$ac_ext
8295 LIBS=$ac_check_soname_save_LIBS
8297 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8299 $as_echo "not found" >&6; }
8301 else
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8303 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8305 cat >>confdefs.h <<_ACEOF
8306 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8307 _ACEOF
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8312 $as_echo_n "checking for -lXext... " >&6; }
8313 if ${ac_cv_lib_soname_Xext+:} false; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 ac_check_soname_save_LIBS=$LIBS
8317 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8321 /* Override any GCC internal prototype to avoid an error.
8322 Use char because int might match the return type of a GCC
8323 builtin and then its argument prototype would still apply. */
8324 #ifdef __cplusplus
8325 extern "C"
8326 #endif
8327 char XextCreateExtension ();
8329 main ()
8331 return XextCreateExtension ();
8333 return 0;
8335 _ACEOF
8336 if ac_fn_c_try_link "$LINENO"; then :
8337 case "$LIBEXT" in
8338 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8339 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'` ;;
8340 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8341 if test "x$ac_cv_lib_soname_Xext" = x; then :
8342 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8343 fi ;;
8344 esac
8346 rm -f core conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 LIBS=$ac_check_soname_save_LIBS
8350 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8352 $as_echo "not found" >&6; }
8354 else
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8356 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8358 cat >>confdefs.h <<_ACEOF
8359 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8360 _ACEOF
8362 XLIB="-lXext $XLIB"
8365 for ac_header in X11/Xlib.h \
8366 X11/XKBlib.h \
8367 X11/Xutil.h \
8368 X11/Xcursor/Xcursor.h \
8369 X11/extensions/shape.h \
8370 X11/extensions/XInput.h \
8371 X11/extensions/XInput2.h \
8372 X11/extensions/XShm.h \
8373 X11/extensions/Xcomposite.h \
8374 X11/extensions/Xinerama.h \
8375 X11/extensions/Xrandr.h \
8376 X11/extensions/Xrender.h \
8377 X11/extensions/xf86vmode.h \
8378 X11/extensions/xf86vmproto.h
8379 do :
8380 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8381 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8382 # include <X11/Xlib.h>
8383 #endif
8384 #ifdef HAVE_X11_XUTIL_H
8385 # include <X11/Xutil.h>
8386 #endif
8388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8389 cat >>confdefs.h <<_ACEOF
8390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8391 _ACEOF
8395 done
8398 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8399 then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8401 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8402 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 ac_check_lib_save_LIBS=$LIBS
8406 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8410 /* Override any GCC internal prototype to avoid an error.
8411 Use char because int might match the return type of a GCC
8412 builtin and then its argument prototype would still apply. */
8413 #ifdef __cplusplus
8414 extern "C"
8415 #endif
8416 char XkbQueryExtension ();
8418 main ()
8420 return XkbQueryExtension ();
8422 return 0;
8424 _ACEOF
8425 if ac_fn_c_try_link "$LINENO"; then :
8426 ac_cv_lib_X11_XkbQueryExtension=yes
8427 else
8428 ac_cv_lib_X11_XkbQueryExtension=no
8430 rm -f core conftest.err conftest.$ac_objext \
8431 conftest$ac_exeext conftest.$ac_ext
8432 LIBS=$ac_check_lib_save_LIBS
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8435 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8436 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8438 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8444 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8445 then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8447 $as_echo_n "checking for -lXcursor... " >&6; }
8448 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 ac_check_soname_save_LIBS=$LIBS
8452 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8456 /* Override any GCC internal prototype to avoid an error.
8457 Use char because int might match the return type of a GCC
8458 builtin and then its argument prototype would still apply. */
8459 #ifdef __cplusplus
8460 extern "C"
8461 #endif
8462 char XcursorImageLoadCursor ();
8464 main ()
8466 return XcursorImageLoadCursor ();
8468 return 0;
8470 _ACEOF
8471 if ac_fn_c_try_link "$LINENO"; then :
8472 case "$LIBEXT" in
8473 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8474 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'` ;;
8475 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8476 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
8477 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8478 fi ;;
8479 esac
8481 rm -f core conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
8483 LIBS=$ac_check_soname_save_LIBS
8485 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8487 $as_echo "not found" >&6; }
8489 else
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8491 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8493 cat >>confdefs.h <<_ACEOF
8494 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8495 _ACEOF
8500 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8501 case "x$with_xcursor" in
8502 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8503 xno) ;;
8504 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8505 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8506 esac
8509 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8510 then
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8512 $as_echo_n "checking for -lXi... " >&6; }
8513 if ${ac_cv_lib_soname_Xi+:} false; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 ac_check_soname_save_LIBS=$LIBS
8517 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8521 /* Override any GCC internal prototype to avoid an error.
8522 Use char because int might match the return type of a GCC
8523 builtin and then its argument prototype would still apply. */
8524 #ifdef __cplusplus
8525 extern "C"
8526 #endif
8527 char XOpenDevice ();
8529 main ()
8531 return XOpenDevice ();
8533 return 0;
8535 _ACEOF
8536 if ac_fn_c_try_link "$LINENO"; then :
8537 case "$LIBEXT" in
8538 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8539 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'` ;;
8540 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8541 if test "x$ac_cv_lib_soname_Xi" = x; then :
8542 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8543 fi ;;
8544 esac
8546 rm -f core conftest.err conftest.$ac_objext \
8547 conftest$ac_exeext conftest.$ac_ext
8548 LIBS=$ac_check_soname_save_LIBS
8550 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8552 $as_echo "not found" >&6; }
8554 else
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8556 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8558 cat >>confdefs.h <<_ACEOF
8559 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8560 _ACEOF
8565 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8566 case "x$with_xinput" in
8567 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8568 xno) ;;
8569 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8570 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8571 esac
8574 if test "x$ac_cv_lib_soname_Xi" != x
8575 then
8576 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8577 case "x$with_xinput2" in
8578 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8579 xno) ;;
8580 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8581 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8582 esac
8586 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8587 then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8589 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8590 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8591 $as_echo_n "(cached) " >&6
8592 else
8593 ac_check_lib_save_LIBS=$LIBS
8594 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8598 /* Override any GCC internal prototype to avoid an error.
8599 Use char because int might match the return type of a GCC
8600 builtin and then its argument prototype would still apply. */
8601 #ifdef __cplusplus
8602 extern "C"
8603 #endif
8604 char XShmQueryExtension ();
8606 main ()
8608 return XShmQueryExtension ();
8610 return 0;
8612 _ACEOF
8613 if ac_fn_c_try_link "$LINENO"; then :
8614 ac_cv_lib_Xext_XShmQueryExtension=yes
8615 else
8616 ac_cv_lib_Xext_XShmQueryExtension=no
8618 rm -f core conftest.err conftest.$ac_objext \
8619 conftest$ac_exeext conftest.$ac_ext
8620 LIBS=$ac_check_lib_save_LIBS
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8623 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8624 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8626 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8631 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8632 case "x$with_xshm" in
8633 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8634 xno) ;;
8635 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8636 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8637 esac
8640 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8641 then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8643 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8644 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 ac_check_lib_save_LIBS=$LIBS
8648 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8652 /* Override any GCC internal prototype to avoid an error.
8653 Use char because int might match the return type of a GCC
8654 builtin and then its argument prototype would still apply. */
8655 #ifdef __cplusplus
8656 extern "C"
8657 #endif
8658 char XShapeQueryExtension ();
8660 main ()
8662 return XShapeQueryExtension ();
8664 return 0;
8666 _ACEOF
8667 if ac_fn_c_try_link "$LINENO"; then :
8668 ac_cv_lib_Xext_XShapeQueryExtension=yes
8669 else
8670 ac_cv_lib_Xext_XShapeQueryExtension=no
8672 rm -f core conftest.err conftest.$ac_objext \
8673 conftest$ac_exeext conftest.$ac_ext
8674 LIBS=$ac_check_lib_save_LIBS
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8677 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8678 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8680 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8685 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8686 case "x$with_xshape" in
8687 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8688 xno) ;;
8689 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8690 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8691 esac
8694 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8695 then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8697 $as_echo_n "checking for -lXxf86vm... " >&6; }
8698 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 ac_check_soname_save_LIBS=$LIBS
8702 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8706 /* Override any GCC internal prototype to avoid an error.
8707 Use char because int might match the return type of a GCC
8708 builtin and then its argument prototype would still apply. */
8709 #ifdef __cplusplus
8710 extern "C"
8711 #endif
8712 char XF86VidModeQueryExtension ();
8714 main ()
8716 return XF86VidModeQueryExtension ();
8718 return 0;
8720 _ACEOF
8721 if ac_fn_c_try_link "$LINENO"; then :
8722 case "$LIBEXT" in
8723 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8724 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'` ;;
8725 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8726 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
8727 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8728 fi ;;
8729 esac
8731 rm -f core conftest.err conftest.$ac_objext \
8732 conftest$ac_exeext conftest.$ac_ext
8733 LIBS=$ac_check_soname_save_LIBS
8735 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8737 $as_echo "not found" >&6; }
8739 else
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8741 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8743 cat >>confdefs.h <<_ACEOF
8744 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8745 _ACEOF
8750 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8751 case "x$with_xxf86vm" in
8752 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8753 xno) ;;
8754 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8755 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8756 esac
8759 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"
8760 then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8762 $as_echo_n "checking for -lXrender... " >&6; }
8763 if ${ac_cv_lib_soname_Xrender+:} false; then :
8764 $as_echo_n "(cached) " >&6
8765 else
8766 ac_check_soname_save_LIBS=$LIBS
8767 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8771 /* Override any GCC internal prototype to avoid an error.
8772 Use char because int might match the return type of a GCC
8773 builtin and then its argument prototype would still apply. */
8774 #ifdef __cplusplus
8775 extern "C"
8776 #endif
8777 char XRenderQueryExtension ();
8779 main ()
8781 return XRenderQueryExtension ();
8783 return 0;
8785 _ACEOF
8786 if ac_fn_c_try_link "$LINENO"; then :
8787 case "$LIBEXT" in
8788 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8789 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'` ;;
8790 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8791 if test "x$ac_cv_lib_soname_Xrender" = x; then :
8792 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8793 fi ;;
8794 esac
8796 rm -f core conftest.err conftest.$ac_objext \
8797 conftest$ac_exeext conftest.$ac_ext
8798 LIBS=$ac_check_soname_save_LIBS
8800 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8802 $as_echo "not found" >&6; }
8804 else
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8806 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8808 cat >>confdefs.h <<_ACEOF
8809 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8810 _ACEOF
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8813 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8814 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8815 $as_echo_n "(cached) " >&6
8816 else
8817 ac_check_lib_save_LIBS=$LIBS
8818 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8822 /* Override any GCC internal prototype to avoid an error.
8823 Use char because int might match the return type of a GCC
8824 builtin and then its argument prototype would still apply. */
8825 #ifdef __cplusplus
8826 extern "C"
8827 #endif
8828 char XRenderSetPictureTransform ();
8830 main ()
8832 return XRenderSetPictureTransform ();
8834 return 0;
8836 _ACEOF
8837 if ac_fn_c_try_link "$LINENO"; then :
8838 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8839 else
8840 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8842 rm -f core conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8844 LIBS=$ac_check_lib_save_LIBS
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8847 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8848 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8850 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8855 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8856 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8859 ac_check_lib_save_LIBS=$LIBS
8860 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8864 /* Override any GCC internal prototype to avoid an error.
8865 Use char because int might match the return type of a GCC
8866 builtin and then its argument prototype would still apply. */
8867 #ifdef __cplusplus
8868 extern "C"
8869 #endif
8870 char XRenderCreateLinearGradient ();
8872 main ()
8874 return XRenderCreateLinearGradient ();
8876 return 0;
8878 _ACEOF
8879 if ac_fn_c_try_link "$LINENO"; then :
8880 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8881 else
8882 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8884 rm -f core conftest.err conftest.$ac_objext \
8885 conftest$ac_exeext conftest.$ac_ext
8886 LIBS=$ac_check_lib_save_LIBS
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8889 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8890 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8892 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8899 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8900 case "x$with_xrender" in
8901 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8902 xno) ;;
8903 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8904 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8905 esac
8908 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8909 then
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8912 #include <X11/Xlib.h>
8913 #include <X11/extensions/Xrandr.h>
8915 main ()
8917 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8919 return 0;
8921 _ACEOF
8922 if ac_fn_c_try_compile "$LINENO"; then :
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8924 $as_echo_n "checking for -lXrandr... " >&6; }
8925 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 ac_check_soname_save_LIBS=$LIBS
8929 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8933 /* Override any GCC internal prototype to avoid an error.
8934 Use char because int might match the return type of a GCC
8935 builtin and then its argument prototype would still apply. */
8936 #ifdef __cplusplus
8937 extern "C"
8938 #endif
8939 char XRRQueryExtension ();
8941 main ()
8943 return XRRQueryExtension ();
8945 return 0;
8947 _ACEOF
8948 if ac_fn_c_try_link "$LINENO"; then :
8949 case "$LIBEXT" in
8950 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8951 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'` ;;
8952 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8953 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
8954 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8955 fi ;;
8956 esac
8958 rm -f core conftest.err conftest.$ac_objext \
8959 conftest$ac_exeext conftest.$ac_ext
8960 LIBS=$ac_check_soname_save_LIBS
8962 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8964 $as_echo "not found" >&6; }
8966 else
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8968 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8970 cat >>confdefs.h <<_ACEOF
8971 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8972 _ACEOF
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8976 #include <X11/Xlib.h>
8977 #include <X11/extensions/Xrandr.h>
8979 main ()
8981 static typeof(XRRGetScreenResources) *f; if (f) return 0;
8983 return 0;
8985 _ACEOF
8986 if ac_fn_c_try_compile "$LINENO"; then :
8988 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
8991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8997 case "x$with_xrandr" in
8998 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8999 xno) ;;
9000 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
9001 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
9002 esac
9005 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9006 then
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9009 #include <X11/Xlib.h>
9010 #include <X11/extensions/Xinerama.h>
9012 main ()
9014 static typeof(XineramaQueryScreens) * func; if (func) return 0;
9016 return 0;
9018 _ACEOF
9019 if ac_fn_c_try_compile "$LINENO"; then :
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
9021 $as_echo_n "checking for -lXinerama... " >&6; }
9022 if ${ac_cv_lib_soname_Xinerama+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 ac_check_soname_save_LIBS=$LIBS
9026 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9030 /* Override any GCC internal prototype to avoid an error.
9031 Use char because int might match the return type of a GCC
9032 builtin and then its argument prototype would still apply. */
9033 #ifdef __cplusplus
9034 extern "C"
9035 #endif
9036 char XineramaQueryScreens ();
9038 main ()
9040 return XineramaQueryScreens ();
9042 return 0;
9044 _ACEOF
9045 if ac_fn_c_try_link "$LINENO"; then :
9046 case "$LIBEXT" in
9047 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9048 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'` ;;
9049 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9050 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
9051 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9052 fi ;;
9053 esac
9055 rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057 LIBS=$ac_check_soname_save_LIBS
9059 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9061 $as_echo "not found" >&6; }
9063 else
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
9065 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
9067 cat >>confdefs.h <<_ACEOF
9068 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
9069 _ACEOF
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9077 case "x$with_xinerama" in
9078 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
9079 xno) ;;
9080 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
9081 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
9082 esac
9085 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
9086 then
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
9088 $as_echo_n "checking for -lXcomposite... " >&6; }
9089 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
9090 $as_echo_n "(cached) " >&6
9091 else
9092 ac_check_soname_save_LIBS=$LIBS
9093 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095 /* end confdefs.h. */
9097 /* Override any GCC internal prototype to avoid an error.
9098 Use char because int might match the return type of a GCC
9099 builtin and then its argument prototype would still apply. */
9100 #ifdef __cplusplus
9101 extern "C"
9102 #endif
9103 char XCompositeRedirectWindow ();
9105 main ()
9107 return XCompositeRedirectWindow ();
9109 return 0;
9111 _ACEOF
9112 if ac_fn_c_try_link "$LINENO"; then :
9113 case "$LIBEXT" in
9114 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9115 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'` ;;
9116 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9117 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
9118 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9119 fi ;;
9120 esac
9122 rm -f core conftest.err conftest.$ac_objext \
9123 conftest$ac_exeext conftest.$ac_ext
9124 LIBS=$ac_check_soname_save_LIBS
9126 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9128 $as_echo "not found" >&6; }
9130 else
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
9132 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
9134 cat >>confdefs.h <<_ACEOF
9135 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
9136 _ACEOF
9141 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9142 case "x$with_xcomposite" in
9143 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
9144 xno) ;;
9145 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
9146 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
9147 esac
9150 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
9151 #include <X11/Xlib.h>
9152 #endif
9154 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
9156 cat >>confdefs.h <<_ACEOF
9157 #define HAVE_XICCALLBACK_CALLBACK 1
9158 _ACEOF
9162 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
9163 #include <X11/Xlib.h>
9164 #endif
9166 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
9168 cat >>confdefs.h <<_ACEOF
9169 #define HAVE_XEVENT_XCOOKIE 1
9170 _ACEOF
9177 opengl_msg=""
9178 if test "x$with_opengl" != "xno"
9179 then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9181 $as_echo_n "checking for -lGL... " >&6; }
9182 if ${ac_cv_lib_soname_GL+:} false; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 ac_check_soname_save_LIBS=$LIBS
9186 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9190 /* Override any GCC internal prototype to avoid an error.
9191 Use char because int might match the return type of a GCC
9192 builtin and then its argument prototype would still apply. */
9193 #ifdef __cplusplus
9194 extern "C"
9195 #endif
9196 char glXCreateContext ();
9198 main ()
9200 return glXCreateContext ();
9202 return 0;
9204 _ACEOF
9205 if ac_fn_c_try_link "$LINENO"; then :
9206 case "$LIBEXT" in
9207 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9208 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'` ;;
9209 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9210 if test "x$ac_cv_lib_soname_GL" = x; then :
9211 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9212 fi ;;
9213 esac
9215 rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217 LIBS=$ac_check_soname_save_LIBS
9219 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9221 $as_echo "not found" >&6; }
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9223 $as_echo_n "checking for -lGL... " >&6; }
9224 if ${ac_cv_lib_soname_GL+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 ac_check_soname_save_LIBS=$LIBS
9228 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"
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9232 /* Override any GCC internal prototype to avoid an error.
9233 Use char because int might match the return type of a GCC
9234 builtin and then its argument prototype would still apply. */
9235 #ifdef __cplusplus
9236 extern "C"
9237 #endif
9238 char glXCreateContext ();
9240 main ()
9242 return glXCreateContext ();
9244 return 0;
9246 _ACEOF
9247 if ac_fn_c_try_link "$LINENO"; then :
9248 case "$LIBEXT" in
9249 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9250 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'` ;;
9251 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9252 if test "x$ac_cv_lib_soname_GL" = x; then :
9253 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9254 fi ;;
9255 esac
9257 rm -f core conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
9259 LIBS=$ac_check_soname_save_LIBS
9261 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9263 $as_echo "not found" >&6; }
9264 if test -f /usr/X11R6/lib/libGL.a
9265 then
9266 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
9267 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
9268 else
9269 opengl_msg="No OpenGL library found on this system."
9271 else
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9273 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9275 cat >>confdefs.h <<_ACEOF
9276 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9277 _ACEOF
9279 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"
9281 else
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9283 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9285 cat >>confdefs.h <<_ACEOF
9286 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9287 _ACEOF
9289 OPENGL_LIBS="-lGL"
9291 if test "x$with_glu" != "xno"
9292 then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
9294 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
9295 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
9296 $as_echo_n "(cached) " >&6
9297 else
9298 ac_check_lib_save_LIBS=$LIBS
9299 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9303 /* Override any GCC internal prototype to avoid an error.
9304 Use char because int might match the return type of a GCC
9305 builtin and then its argument prototype would still apply. */
9306 #ifdef __cplusplus
9307 extern "C"
9308 #endif
9309 char gluLookAt ();
9311 main ()
9313 return gluLookAt ();
9315 return 0;
9317 _ACEOF
9318 if ac_fn_c_try_link "$LINENO"; then :
9319 ac_cv_lib_GLU_gluLookAt=yes
9320 else
9321 ac_cv_lib_GLU_gluLookAt=no
9323 rm -f core conftest.err conftest.$ac_objext \
9324 conftest$ac_exeext conftest.$ac_ext
9325 LIBS=$ac_check_lib_save_LIBS
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9328 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9329 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9333 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9334 case "x$with_glu" in
9335 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9336 xno) ;;
9337 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9338 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9339 esac
9343 if test "x$with_osmesa" != "xno"
9344 then
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9346 $as_echo_n "checking for -lOSMesa... " >&6; }
9347 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 ac_check_soname_save_LIBS=$LIBS
9351 LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9358 #ifdef __cplusplus
9359 extern "C"
9360 #endif
9361 char glAccum ();
9363 main ()
9365 return glAccum ();
9367 return 0;
9369 _ACEOF
9370 if ac_fn_c_try_link "$LINENO"; then :
9371 case "$LIBEXT" in
9372 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9373 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'` ;;
9374 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9375 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
9376 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9377 fi ;;
9378 esac
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9382 LIBS=$ac_check_soname_save_LIBS
9384 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9386 $as_echo "not found" >&6; }
9388 else
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
9390 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
9392 cat >>confdefs.h <<_ACEOF
9393 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
9394 _ACEOF
9398 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9399 case "x$with_osmesa" in
9400 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
9401 xno) ;;
9402 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
9403 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
9404 esac
9408 if test -n "$opengl_msg"; then :
9409 case "x$with_opengl" in
9410 x) as_fn_append wine_warnings "|$opengl_msg
9411 OpenGL and Direct3D won't be supported." ;;
9412 xno) ;;
9413 *) as_fn_error $? "$opengl_msg
9414 OpenGL and Direct3D won't be supported.
9415 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9416 esac
9419 CPPFLAGS="$ac_save_CPPFLAGS"
9420 else
9421 XLIB=""
9422 X_CFLAGS=""
9423 X_LIBS=""
9424 enable_winex11_drv=${enable_winex11_drv:-no}
9426 if test "x$XLIB" = "x"; then :
9427 case "x$with_x" in
9428 xno) ;;
9429 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9430 without X support, which probably isn't what you want. You will need
9431 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9432 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9433 esac
9436 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
9438 if test "$ac_cv_header_CL_cl_h" = "yes"
9439 then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9441 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9442 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 ac_check_lib_save_LIBS=$LIBS
9446 LIBS="-lOpenCL $LIBS"
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9450 /* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
9453 #ifdef __cplusplus
9454 extern "C"
9455 #endif
9456 char clGetPlatformInfo ();
9458 main ()
9460 return clGetPlatformInfo ();
9462 return 0;
9464 _ACEOF
9465 if ac_fn_c_try_link "$LINENO"; then :
9466 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9467 else
9468 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9470 rm -f core conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
9472 LIBS=$ac_check_lib_save_LIBS
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9475 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9476 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9477 LIBOPENCL="-lOpenCL"
9482 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9483 case "x$with_opencl" in
9484 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9485 xno) ;;
9486 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9487 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9488 esac
9490 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9493 if test "x$with_xml" != "xno"
9494 then
9495 ac_save_CPPFLAGS="$CPPFLAGS"
9496 if test -n "$ac_tool_prefix"; then
9497 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9498 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9500 $as_echo_n "checking for $ac_word... " >&6; }
9501 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 if test -n "$PKG_CONFIG"; then
9505 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
9506 else
9507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508 for as_dir in $PATH
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9514 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 break 2
9518 done
9519 done
9520 IFS=$as_save_IFS
9524 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
9525 if test -n "$PKG_CONFIG"; then
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9527 $as_echo "$PKG_CONFIG" >&6; }
9528 else
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9530 $as_echo "no" >&6; }
9535 if test -z "$ac_cv_prog_PKG_CONFIG"; then
9536 ac_ct_PKG_CONFIG=$PKG_CONFIG
9537 # Extract the first word of "pkg-config", so it can be a program name with args.
9538 set dummy pkg-config; ac_word=$2
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9540 $as_echo_n "checking for $ac_word... " >&6; }
9541 if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
9542 $as_echo_n "(cached) " >&6
9543 else
9544 if test -n "$ac_ct_PKG_CONFIG"; then
9545 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
9546 else
9547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548 for as_dir in $PATH
9550 IFS=$as_save_IFS
9551 test -z "$as_dir" && as_dir=.
9552 for ac_exec_ext in '' $ac_executable_extensions; do
9553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9554 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
9555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9556 break 2
9558 done
9559 done
9560 IFS=$as_save_IFS
9564 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
9565 if test -n "$ac_ct_PKG_CONFIG"; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
9567 $as_echo "$ac_ct_PKG_CONFIG" >&6; }
9568 else
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9570 $as_echo "no" >&6; }
9573 if test "x$ac_ct_PKG_CONFIG" = x; then
9574 PKG_CONFIG=""
9575 else
9576 case $cross_compiling:$ac_tool_warned in
9577 yes:)
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9580 ac_tool_warned=yes ;;
9581 esac
9582 PKG_CONFIG=$ac_ct_PKG_CONFIG
9584 else
9585 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
9588 if test -n "$XML2_CFLAGS"; then :
9590 elif test -n "$PKG_CONFIG"; then :
9591 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
9593 XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
9594 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
9595 if test -n "$XML2_LIBS"; then :
9597 elif test -n "$PKG_CONFIG"; then :
9598 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
9600 XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
9601 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
9602 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9603 do :
9604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9605 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9607 cat >>confdefs.h <<_ACEOF
9608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9609 _ACEOF
9613 done
9615 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"
9616 then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9618 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9619 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 ac_check_lib_save_LIBS=$LIBS
9623 LIBS="-lxml2 $XML2_LIBS $LIBS"
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9627 /* Override any GCC internal prototype to avoid an error.
9628 Use char because int might match the return type of a GCC
9629 builtin and then its argument prototype would still apply. */
9630 #ifdef __cplusplus
9631 extern "C"
9632 #endif
9633 char xmlParseMemory ();
9635 main ()
9637 return xmlParseMemory ();
9639 return 0;
9641 _ACEOF
9642 if ac_fn_c_try_link "$LINENO"; then :
9643 ac_cv_lib_xml2_xmlParseMemory=yes
9644 else
9645 ac_cv_lib_xml2_xmlParseMemory=no
9647 rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 LIBS=$ac_check_lib_save_LIBS
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9652 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9653 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9655 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9657 else
9658 XML2_LIBS=""
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9662 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9663 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 ac_check_lib_save_LIBS=$LIBS
9667 LIBS="-lxml2 $XML2_LIBS $LIBS"
9668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669 /* end confdefs.h. */
9671 /* Override any GCC internal prototype to avoid an error.
9672 Use char because int might match the return type of a GCC
9673 builtin and then its argument prototype would still apply. */
9674 #ifdef __cplusplus
9675 extern "C"
9676 #endif
9677 char xmlReadMemory ();
9679 main ()
9681 return xmlReadMemory ();
9683 return 0;
9685 _ACEOF
9686 if ac_fn_c_try_link "$LINENO"; then :
9687 ac_cv_lib_xml2_xmlReadMemory=yes
9688 else
9689 ac_cv_lib_xml2_xmlReadMemory=no
9691 rm -f core conftest.err conftest.$ac_objext \
9692 conftest$ac_exeext conftest.$ac_ext
9693 LIBS=$ac_check_lib_save_LIBS
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9696 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9697 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9699 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9704 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9705 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 ac_check_lib_save_LIBS=$LIBS
9709 LIBS="-lxml2 $XML2_LIBS $LIBS"
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char xmlNewDocPI ();
9721 main ()
9723 return xmlNewDocPI ();
9725 return 0;
9727 _ACEOF
9728 if ac_fn_c_try_link "$LINENO"; then :
9729 ac_cv_lib_xml2_xmlNewDocPI=yes
9730 else
9731 ac_cv_lib_xml2_xmlNewDocPI=no
9733 rm -f core conftest.err conftest.$ac_objext \
9734 conftest$ac_exeext conftest.$ac_ext
9735 LIBS=$ac_check_lib_save_LIBS
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9738 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9739 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9741 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9746 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9747 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9748 $as_echo_n "(cached) " >&6
9749 else
9750 ac_check_lib_save_LIBS=$LIBS
9751 LIBS="-lxml2 $XML2_LIBS $LIBS"
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9755 /* Override any GCC internal prototype to avoid an error.
9756 Use char because int might match the return type of a GCC
9757 builtin and then its argument prototype would still apply. */
9758 #ifdef __cplusplus
9759 extern "C"
9760 #endif
9761 char xmlSchemaSetParserStructuredErrors ();
9763 main ()
9765 return xmlSchemaSetParserStructuredErrors ();
9767 return 0;
9769 _ACEOF
9770 if ac_fn_c_try_link "$LINENO"; then :
9771 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9772 else
9773 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9775 rm -f core conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9777 LIBS=$ac_check_lib_save_LIBS
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9780 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9781 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9783 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9788 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9789 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9790 $as_echo_n "(cached) " >&6
9791 else
9792 ac_check_lib_save_LIBS=$LIBS
9793 LIBS="-lxml2 $XML2_LIBS $LIBS"
9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9797 /* Override any GCC internal prototype to avoid an error.
9798 Use char because int might match the return type of a GCC
9799 builtin and then its argument prototype would still apply. */
9800 #ifdef __cplusplus
9801 extern "C"
9802 #endif
9803 char xmlSchemaSetValidStructuredErrors ();
9805 main ()
9807 return xmlSchemaSetValidStructuredErrors ();
9809 return 0;
9811 _ACEOF
9812 if ac_fn_c_try_link "$LINENO"; then :
9813 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9814 else
9815 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9817 rm -f core conftest.err conftest.$ac_objext \
9818 conftest$ac_exeext conftest.$ac_ext
9819 LIBS=$ac_check_lib_save_LIBS
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9822 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9823 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9825 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9830 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9831 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 ac_check_lib_save_LIBS=$LIBS
9835 LIBS="-lxml2 $XML2_LIBS $LIBS"
9836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837 /* end confdefs.h. */
9839 /* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
9842 #ifdef __cplusplus
9843 extern "C"
9844 #endif
9845 char xmlFirstElementChild ();
9847 main ()
9849 return xmlFirstElementChild ();
9851 return 0;
9853 _ACEOF
9854 if ac_fn_c_try_link "$LINENO"; then :
9855 ac_cv_lib_xml2_xmlFirstElementChild=yes
9856 else
9857 ac_cv_lib_xml2_xmlFirstElementChild=no
9859 rm -f core conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext conftest.$ac_ext
9861 LIBS=$ac_check_lib_save_LIBS
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9864 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9865 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9867 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9871 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9873 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9875 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9879 else
9880 XML2_CFLAGS=""
9881 XML2_LIBS=""
9883 CPPFLAGS="$ac_save_CPPFLAGS"
9885 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9886 case "x$with_xml" in
9887 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9888 xno) ;;
9889 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9890 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9891 esac
9894 if test "x$with_xslt" != "xno"
9895 then
9896 ac_save_CPPFLAGS="$CPPFLAGS"
9897 if test -n "$XSLT_CFLAGS"; then :
9899 elif test -n "$PKG_CONFIG"; then :
9900 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
9902 XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
9903 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
9904 if test -n "$XSLT_LIBS"; then :
9906 elif test -n "$PKG_CONFIG"; then :
9907 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
9909 XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
9910 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
9911 for ac_header in libxslt/pattern.h libxslt/transform.h
9912 do :
9913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9914 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9915 # include <libxslt/pattern.h>
9916 #endif
9918 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9919 cat >>confdefs.h <<_ACEOF
9920 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9921 _ACEOF
9925 done
9927 CPPFLAGS="$ac_save_CPPFLAGS"
9928 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9929 then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9931 $as_echo_n "checking for -lxslt... " >&6; }
9932 if ${ac_cv_lib_soname_xslt+:} false; then :
9933 $as_echo_n "(cached) " >&6
9934 else
9935 ac_check_soname_save_LIBS=$LIBS
9936 LIBS="-lxslt $XSLT_LIBS $LIBS"
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9940 /* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
9943 #ifdef __cplusplus
9944 extern "C"
9945 #endif
9946 char xsltCompilePattern ();
9948 main ()
9950 return xsltCompilePattern ();
9952 return 0;
9954 _ACEOF
9955 if ac_fn_c_try_link "$LINENO"; then :
9956 case "$LIBEXT" in
9957 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9958 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'` ;;
9959 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9960 if test "x$ac_cv_lib_soname_xslt" = x; then :
9961 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9962 fi ;;
9963 esac
9965 rm -f core conftest.err conftest.$ac_objext \
9966 conftest$ac_exeext conftest.$ac_ext
9967 LIBS=$ac_check_soname_save_LIBS
9969 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9971 $as_echo "not found" >&6; }
9973 else
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9975 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9977 cat >>confdefs.h <<_ACEOF
9978 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9979 _ACEOF
9983 else
9984 XSLT_CFLAGS=""
9987 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9988 case "x$with_xslt" in
9989 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9990 xno) ;;
9991 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9992 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9993 esac
9996 if test "x$with_dbus" != "xno"
9997 then
9998 ac_save_CPPFLAGS="$CPPFLAGS"
9999 if test -n "$DBUS_CFLAGS"; then :
10001 elif test -n "$PKG_CONFIG"; then :
10002 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10005 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10006 if test -n "$DBUS_LIBS"; then :
10008 elif test -n "$PKG_CONFIG"; then :
10009 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10013 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10014 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10016 $as_echo_n "checking for -ldbus-1... " >&6; }
10017 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10018 $as_echo_n "(cached) " >&6
10019 else
10020 ac_check_soname_save_LIBS=$LIBS
10021 LIBS="-ldbus-1 $DBUS_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 dbus_connection_close ();
10033 main ()
10035 return dbus_connection_close ();
10037 return 0;
10039 _ACEOF
10040 if ac_fn_c_try_link "$LINENO"; then :
10041 case "$LIBEXT" in
10042 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10043 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'` ;;
10044 *) 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'`
10045 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10046 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$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_dbus_1" = "x"; then :
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10056 $as_echo "not found" >&6; }
10057 DBUS_CFLAGS=""
10058 else
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10060 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10062 cat >>confdefs.h <<_ACEOF
10063 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10064 _ACEOF
10068 else
10069 DBUS_CFLAGS=""
10073 CPPFLAGS="$ac_save_CPPFLAGS"
10075 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
10076 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10077 case "x$with_dbus" in
10078 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
10079 xno) ;;
10080 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
10081 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
10082 esac
10085 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
10086 then
10087 ac_save_CPPFLAGS="$CPPFLAGS"
10088 if test -n "$HAL_CFLAGS"; then :
10090 elif test -n "$PKG_CONFIG"; then :
10091 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
10094 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
10095 if test -n "$HAL_LIBS"; then :
10097 elif test -n "$PKG_CONFIG"; then :
10098 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
10101 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
10102 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
10103 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
10105 $as_echo_n "checking for -lhal... " >&6; }
10106 if ${ac_cv_lib_soname_hal+:} false; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10109 ac_check_soname_save_LIBS=$LIBS
10110 LIBS="-lhal $HAL_LIBS $LIBS"
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10114 /* Override any GCC internal prototype to avoid an error.
10115 Use char because int might match the return type of a GCC
10116 builtin and then its argument prototype would still apply. */
10117 #ifdef __cplusplus
10118 extern "C"
10119 #endif
10120 char libhal_ctx_new ();
10122 main ()
10124 return libhal_ctx_new ();
10126 return 0;
10128 _ACEOF
10129 if ac_fn_c_try_link "$LINENO"; then :
10130 case "$LIBEXT" in
10131 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10132 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'` ;;
10133 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10134 if test "x$ac_cv_lib_soname_hal" = x; then :
10135 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10136 fi ;;
10137 esac
10139 rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_soname_save_LIBS
10143 if test "x$ac_cv_lib_soname_hal" = "x"; then :
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10145 $as_echo "not found" >&6; }
10146 HAL_CFLAGS=""
10147 else
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
10149 $as_echo "$ac_cv_lib_soname_hal" >&6; }
10151 cat >>confdefs.h <<_ACEOF
10152 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
10153 _ACEOF
10157 else
10158 HAL_CFLAGS=""
10162 CPPFLAGS="$ac_save_CPPFLAGS"
10163 if test "x$ac_cv_lib_soname_hal" = "x" -a \
10164 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10165 case "x$with_hal" in
10166 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
10167 xno) ;;
10168 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
10169 This is an error since --with-hal was requested." "$LINENO" 5 ;;
10170 esac
10174 if test "x$with_gnutls" != "xno"
10175 then
10176 ac_save_CPPFLAGS="$CPPFLAGS"
10177 if test -n "$GNUTLS_CFLAGS"; then :
10179 elif test -n "$PKG_CONFIG"; then :
10180 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
10183 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
10184 if test -n "$GNUTLS_LIBS"; then :
10186 elif test -n "$PKG_CONFIG"; then :
10187 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
10191 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
10192 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195 #include <gnutls/gnutls.h>
10197 main ()
10199 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
10201 return 0;
10203 _ACEOF
10204 if ac_fn_c_try_compile "$LINENO"; then :
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
10206 $as_echo_n "checking for -lgnutls... " >&6; }
10207 if ${ac_cv_lib_soname_gnutls+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 ac_check_soname_save_LIBS=$LIBS
10211 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10215 /* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 char gnutls_global_init ();
10223 main ()
10225 return gnutls_global_init ();
10227 return 0;
10229 _ACEOF
10230 if ac_fn_c_try_link "$LINENO"; then :
10231 case "$LIBEXT" in
10232 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10233 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'` ;;
10234 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10235 if test "x$ac_cv_lib_soname_gnutls" = x; then :
10236 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10237 fi ;;
10238 esac
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242 LIBS=$ac_check_soname_save_LIBS
10244 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10246 $as_echo "not found" >&6; }
10247 GNUTLS_CFLAGS=""
10248 else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
10250 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
10252 cat >>confdefs.h <<_ACEOF
10253 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
10254 _ACEOF
10259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10260 else
10261 GNUTLS_CFLAGS=""
10265 CPPFLAGS="$ac_save_CPPFLAGS"
10267 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10268 case "x$with_gnutls" in
10269 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
10270 xno) ;;
10271 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
10272 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
10273 esac
10276 CURSESLIBS=""
10277 if test "$ac_cv_header_ncurses_h" = "yes"
10278 then
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
10280 $as_echo_n "checking for -lncurses... " >&6; }
10281 if ${ac_cv_lib_soname_ncurses+:} false; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 ac_check_soname_save_LIBS=$LIBS
10285 LIBS="-lncurses $LIBS"
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10289 /* Override any GCC internal prototype to avoid an error.
10290 Use char because int might match the return type of a GCC
10291 builtin and then its argument prototype would still apply. */
10292 #ifdef __cplusplus
10293 extern "C"
10294 #endif
10295 char waddch ();
10297 main ()
10299 return waddch ();
10301 return 0;
10303 _ACEOF
10304 if ac_fn_c_try_link "$LINENO"; then :
10305 case "$LIBEXT" in
10306 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10307 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'` ;;
10308 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10309 if test "x$ac_cv_lib_soname_ncurses" = x; then :
10310 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10311 fi ;;
10312 esac
10314 rm -f core conftest.err conftest.$ac_objext \
10315 conftest$ac_exeext conftest.$ac_ext
10316 LIBS=$ac_check_soname_save_LIBS
10318 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10320 $as_echo "not found" >&6; }
10322 else
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
10324 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
10326 cat >>confdefs.h <<_ACEOF
10327 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
10328 _ACEOF
10330 CURSESLIBS="-lncurses"
10332 elif test "$ac_cv_header_curses_h" = "yes"
10333 then
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
10335 $as_echo_n "checking for -lcurses... " >&6; }
10336 if ${ac_cv_lib_soname_curses+:} false; then :
10337 $as_echo_n "(cached) " >&6
10338 else
10339 ac_check_soname_save_LIBS=$LIBS
10340 LIBS="-lcurses $LIBS"
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10344 /* Override any GCC internal prototype to avoid an error.
10345 Use char because int might match the return type of a GCC
10346 builtin and then its argument prototype would still apply. */
10347 #ifdef __cplusplus
10348 extern "C"
10349 #endif
10350 char waddch ();
10352 main ()
10354 return waddch ();
10356 return 0;
10358 _ACEOF
10359 if ac_fn_c_try_link "$LINENO"; then :
10360 case "$LIBEXT" in
10361 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10362 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'` ;;
10363 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10364 if test "x$ac_cv_lib_soname_curses" = x; then :
10365 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10366 fi ;;
10367 esac
10369 rm -f core conftest.err conftest.$ac_objext \
10370 conftest$ac_exeext conftest.$ac_ext
10371 LIBS=$ac_check_soname_save_LIBS
10373 if test "x$ac_cv_lib_soname_curses" = "x"; then :
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10375 $as_echo "not found" >&6; }
10377 else
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
10379 $as_echo "$ac_cv_lib_soname_curses" >&6; }
10381 cat >>confdefs.h <<_ACEOF
10382 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
10383 _ACEOF
10385 CURSESLIBS="-lcurses"
10388 ac_save_LIBS="$LIBS"
10389 LIBS="$LIBS $CURSESLIBS"
10390 for ac_func in mousemask
10391 do :
10392 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
10393 if test "x$ac_cv_func_mousemask" = xyes; then :
10394 cat >>confdefs.h <<_ACEOF
10395 #define HAVE_MOUSEMASK 1
10396 _ACEOF
10399 done
10401 LIBS="$ac_save_LIBS"
10402 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
10403 case "x$with_curses" in
10404 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
10405 xno) ;;
10406 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
10407 This is an error since --with-curses was requested." "$LINENO" 5 ;;
10408 esac
10411 if test "x$with_sane" != "xno"
10412 then
10413 ac_save_CPPFLAGS="$CPPFLAGS"
10414 if test -n "$SANE_CFLAGS"; then :
10416 elif test -n "$PKG_CONFIG"; then :
10417 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
10419 SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
10420 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
10421 if test -n "$SANE_LIBS"; then :
10423 elif test -n "$PKG_CONFIG"; then :
10424 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
10426 SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
10428 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10429 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10431 $as_echo_n "checking for -lsane... " >&6; }
10432 if ${ac_cv_lib_soname_sane+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 ac_check_soname_save_LIBS=$LIBS
10436 LIBS="-lsane $SANE_LIBS $LIBS"
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438 /* end confdefs.h. */
10440 /* Override any GCC internal prototype to avoid an error.
10441 Use char because int might match the return type of a GCC
10442 builtin and then its argument prototype would still apply. */
10443 #ifdef __cplusplus
10444 extern "C"
10445 #endif
10446 char sane_init ();
10448 main ()
10450 return sane_init ();
10452 return 0;
10454 _ACEOF
10455 if ac_fn_c_try_link "$LINENO"; then :
10456 case "$LIBEXT" in
10457 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10458 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'` ;;
10459 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10460 if test "x$ac_cv_lib_soname_sane" = x; then :
10461 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10462 fi ;;
10463 esac
10465 rm -f core conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10467 LIBS=$ac_check_soname_save_LIBS
10469 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10471 $as_echo "not found" >&6; }
10472 SANE_CFLAGS=""
10473 else
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10475 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10477 cat >>confdefs.h <<_ACEOF
10478 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10479 _ACEOF
10483 else
10484 SANE_CFLAGS=""
10488 CPPFLAGS="$ac_save_CPPFLAGS"
10490 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10491 case "x$with_sane" in
10492 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10493 xno) ;;
10494 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10495 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10496 esac
10499 if test "x$with_v4l" != "xno"
10500 then
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10502 $as_echo_n "checking for -lv4l1... " >&6; }
10503 if ${ac_cv_lib_soname_v4l1+:} false; then :
10504 $as_echo_n "(cached) " >&6
10505 else
10506 ac_check_soname_save_LIBS=$LIBS
10507 LIBS="-lv4l1 $LIBS"
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10511 /* Override any GCC internal prototype to avoid an error.
10512 Use char because int might match the return type of a GCC
10513 builtin and then its argument prototype would still apply. */
10514 #ifdef __cplusplus
10515 extern "C"
10516 #endif
10517 char v4l1_open ();
10519 main ()
10521 return v4l1_open ();
10523 return 0;
10525 _ACEOF
10526 if ac_fn_c_try_link "$LINENO"; then :
10527 case "$LIBEXT" in
10528 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10529 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'` ;;
10530 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10531 if test "x$ac_cv_lib_soname_v4l1" = x; then :
10532 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10533 fi ;;
10534 esac
10536 rm -f core conftest.err conftest.$ac_objext \
10537 conftest$ac_exeext conftest.$ac_ext
10538 LIBS=$ac_check_soname_save_LIBS
10540 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10542 $as_echo "not found" >&6; }
10544 else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10546 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10548 cat >>confdefs.h <<_ACEOF
10549 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10550 _ACEOF
10555 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10556 case "x$with_v4l" in
10557 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10558 xno) ;;
10559 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10560 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10561 esac
10564 if test "x$with_gphoto" != "xno"
10565 then
10566 ac_save_CPPFLAGS="$CPPFLAGS"
10567 if test -n "$GPHOTO2_CFLAGS"; then :
10569 elif test -n "$PKG_CONFIG"; then :
10570 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
10572 GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
10573 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
10574 if test -n "$GPHOTO2_LIBS"; then :
10576 elif test -n "$PKG_CONFIG"; then :
10577 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
10579 GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
10580 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
10581 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10582 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10584 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10585 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10586 $as_echo_n "(cached) " >&6
10587 else
10588 ac_check_lib_save_LIBS=$LIBS
10589 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10593 /* Override any GCC internal prototype to avoid an error.
10594 Use char because int might match the return type of a GCC
10595 builtin and then its argument prototype would still apply. */
10596 #ifdef __cplusplus
10597 extern "C"
10598 #endif
10599 char gp_camera_new ();
10601 main ()
10603 return gp_camera_new ();
10605 return 0;
10607 _ACEOF
10608 if ac_fn_c_try_link "$LINENO"; then :
10609 ac_cv_lib_gphoto2_gp_camera_new=yes
10610 else
10611 ac_cv_lib_gphoto2_gp_camera_new=no
10613 rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615 LIBS=$ac_check_lib_save_LIBS
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10618 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10619 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10621 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10623 else
10624 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10627 else
10628 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10632 if test -n "$GPHOTO2_PORT_CFLAGS"; then :
10634 elif test -n "$PKG_CONFIG"; then :
10635 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
10637 GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
10638 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
10639 if test -n "$GPHOTO2_PORT_LIBS"; then :
10641 elif test -n "$PKG_CONFIG"; then :
10642 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
10644 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
10645 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
10646 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
10647 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
10649 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
10650 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
10651 $as_echo_n "(cached) " >&6
10652 else
10653 ac_check_lib_save_LIBS=$LIBS
10654 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10658 /* Override any GCC internal prototype to avoid an error.
10659 Use char because int might match the return type of a GCC
10660 builtin and then its argument prototype would still apply. */
10661 #ifdef __cplusplus
10662 extern "C"
10663 #endif
10664 char gp_port_info_list_new ();
10666 main ()
10668 return gp_port_info_list_new ();
10670 return 0;
10672 _ACEOF
10673 if ac_fn_c_try_link "$LINENO"; then :
10674 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
10675 else
10676 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
10678 rm -f core conftest.err conftest.$ac_objext \
10679 conftest$ac_exeext conftest.$ac_ext
10680 LIBS=$ac_check_lib_save_LIBS
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
10683 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
10684 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
10686 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
10688 else
10689 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
10692 else
10693 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
10697 CPPFLAGS="$ac_save_CPPFLAGS"
10699 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10700 case "x$with_gphoto" in
10701 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10702 xno) ;;
10703 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10704 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10705 esac
10707 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
10708 case "x$with_gphoto" in
10709 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
10710 xno) ;;
10711 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
10712 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10713 esac
10717 if test "$ac_cv_header_resolv_h" = "yes"
10718 then
10719 ac_save_LIBS="$LIBS"
10720 for lib in '' -lresolv
10722 LIBS="$lib $ac_save_LIBS"
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10725 #ifdef HAVE_NETINET_IN_H
10726 #include <netinet/in.h>
10727 #endif
10728 #include <resolv.h>
10730 main ()
10732 res_query("foo",ns_c_in,0,0,0);
10734 return 0;
10736 _ACEOF
10737 if ac_fn_c_try_link "$LINENO"; then :
10739 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10741 RESOLVLIBS="$lib"
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746 if test "${RESOLVLIBS+set}" = set; then
10747 break
10749 done
10750 LIBS="$ac_save_LIBS"
10753 if test "x$with_lcms" != "xno"
10754 then
10755 ac_save_CPPFLAGS="$CPPFLAGS"
10756 if test -n "$LCMS_CFLAGS"; then :
10758 elif test -n "$PKG_CONFIG"; then :
10759 LCMS_CFLAGS=`$PKG_CONFIG --cflags lcms 2>/dev/null`
10762 CPPFLAGS="$CPPFLAGS $LCMS_CFLAGS"
10763 if test -n "$LCMS_LIBS"; then :
10765 elif test -n "$PKG_CONFIG"; then :
10766 LCMS_LIBS=`$PKG_CONFIG --libs lcms 2>/dev/null`
10769 LCMS_LIBS=${LCMS_LIBS:-"-llcms"}
10770 for ac_header in lcms.h lcms/lcms.h
10771 do :
10772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10773 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10774 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10775 cat >>confdefs.h <<_ACEOF
10776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10777 _ACEOF
10781 done
10783 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10784 then
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10786 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10787 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10788 $as_echo_n "(cached) " >&6
10789 else
10790 ac_check_lib_save_LIBS=$LIBS
10791 LIBS="-llcms $LIBS"
10792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h. */
10795 /* Override any GCC internal prototype to avoid an error.
10796 Use char because int might match the return type of a GCC
10797 builtin and then its argument prototype would still apply. */
10798 #ifdef __cplusplus
10799 extern "C"
10800 #endif
10801 char cmsOpenProfileFromFile ();
10803 main ()
10805 return cmsOpenProfileFromFile ();
10807 return 0;
10809 _ACEOF
10810 if ac_fn_c_try_link "$LINENO"; then :
10811 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10812 else
10813 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10815 rm -f core conftest.err conftest.$ac_objext \
10816 conftest$ac_exeext conftest.$ac_ext
10817 LIBS=$ac_check_lib_save_LIBS
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10820 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10821 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10823 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10825 else
10826 LCMS_LIBS=""
10829 else
10830 LCMS_CFLAGS=""
10831 LCMS_LIBS=""
10833 CPPFLAGS="$ac_save_CPPFLAGS"
10835 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10836 case "x$with_cms" in
10837 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10838 xno) ;;
10839 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10840 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10841 esac
10844 if test "x$with_freetype" != "xno"
10845 then
10846 ac_save_CPPFLAGS="$CPPFLAGS"
10847 if test -n "$FREETYPE_CFLAGS"; then :
10849 elif test -n "$PKG_CONFIG"; then :
10850 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
10852 FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
10853 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
10854 if test -n "$FREETYPE_LIBS"; then :
10856 elif test -n "$PKG_CONFIG"; then :
10857 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
10859 FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
10860 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10862 $as_echo_n "checking for -lfreetype... " >&6; }
10863 if ${ac_cv_lib_soname_freetype+:} false; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10866 ac_check_soname_save_LIBS=$LIBS
10867 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10871 /* Override any GCC internal prototype to avoid an error.
10872 Use char because int might match the return type of a GCC
10873 builtin and then its argument prototype would still apply. */
10874 #ifdef __cplusplus
10875 extern "C"
10876 #endif
10877 char FT_Init_FreeType ();
10879 main ()
10881 return FT_Init_FreeType ();
10883 return 0;
10885 _ACEOF
10886 if ac_fn_c_try_link "$LINENO"; then :
10887 case "$LIBEXT" in
10888 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10889 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'` ;;
10890 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10891 if test "x$ac_cv_lib_soname_freetype" = x; then :
10892 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10893 fi ;;
10894 esac
10896 rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
10898 LIBS=$ac_check_soname_save_LIBS
10900 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10902 $as_echo "not found" >&6; }
10903 ft_lib=no
10904 else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10906 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10908 cat >>confdefs.h <<_ACEOF
10909 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10910 _ACEOF
10912 ft_lib=yes
10914 if test "$ft_lib" = "yes"
10915 then
10916 for ac_header in ft2build.h \
10917 freetype/freetype.h \
10918 freetype/ftglyph.h \
10919 freetype/fttypes.h \
10920 freetype/tttables.h \
10921 freetype/ftsnames.h \
10922 freetype/ttnameid.h \
10923 freetype/ftoutln.h \
10924 freetype/ftwinfnt.h \
10925 freetype/ftmodapi.h \
10926 freetype/ftlcdfil.h
10927 do :
10928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10929 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10930 # include <ft2build.h>
10931 #endif
10933 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10934 cat >>confdefs.h <<_ACEOF
10935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10936 _ACEOF
10940 done
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10944 #include <ft2build.h>
10945 #include <freetype/fttrigon.h>
10946 _ACEOF
10947 if ac_fn_c_try_cpp "$LINENO"; then :
10949 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10951 wine_cv_fttrigon=yes
10952 else
10953 wine_cv_fttrigon=no
10955 rm -f conftest.err conftest.i conftest.$ac_ext
10956 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10958 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10960 cat >>confdefs.h <<_ACEOF
10961 #define HAVE_FT_TRUETYPEENGINETYPE 1
10962 _ACEOF
10967 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10968 then
10970 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10972 else
10973 FREETYPE_LIBS=""
10975 else
10976 FREETYPE_LIBS=""
10978 CPPFLAGS="$ac_save_CPPFLAGS"
10980 if test "x$ac_cv_header_freetype_freetype_h" != xyes -o "x$wine_cv_fttrigon" != xyes; then :
10981 case "x$with_freetype" in
10982 xno) ;;
10983 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10984 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10985 esac
10987 test "x$ac_cv_header_freetype_freetype_h" = xyes -a "x$wine_cv_fttrigon" = xyes || enable_fonts=${enable_fonts:-no}
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10990 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10991 if ${ac_cv_c_ppdev+:} false; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10996 #ifdef HAVE_SYS_IOCTL_H
10997 # include <sys/ioctl.h>
10998 #endif
10999 #include <linux/ppdev.h>
11001 main ()
11003 ioctl (1,PPCLAIM,0)
11005 return 0;
11007 _ACEOF
11008 if ac_fn_c_try_compile "$LINENO"; then :
11009 ac_cv_c_ppdev="yes"
11010 else
11011 ac_cv_c_ppdev="no"
11013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11016 $as_echo "$ac_cv_c_ppdev" >&6; }
11017 if test "$ac_cv_c_ppdev" = "yes"
11018 then
11020 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11024 ac_wine_check_funcs_save_LIBS="$LIBS"
11025 LIBS="$LIBS $LIBPTHREAD"
11026 for ac_func in \
11027 pthread_attr_get_np \
11028 pthread_getattr_np \
11029 pthread_getthreadid_np \
11030 pthread_get_stackaddr_np \
11031 pthread_get_stacksize_np
11032 do :
11033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11034 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11035 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11036 cat >>confdefs.h <<_ACEOF
11037 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11038 _ACEOF
11041 done
11043 LIBS="$ac_wine_check_funcs_save_LIBS"
11045 if test "$ac_cv_header_zlib_h" = "yes"
11046 then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11048 $as_echo_n "checking for inflate in -lz... " >&6; }
11049 if ${ac_cv_lib_z_inflate+:} false; then :
11050 $as_echo_n "(cached) " >&6
11051 else
11052 ac_check_lib_save_LIBS=$LIBS
11053 LIBS="-lz $LIBS"
11054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h. */
11057 /* Override any GCC internal prototype to avoid an error.
11058 Use char because int might match the return type of a GCC
11059 builtin and then its argument prototype would still apply. */
11060 #ifdef __cplusplus
11061 extern "C"
11062 #endif
11063 char inflate ();
11065 main ()
11067 return inflate ();
11069 return 0;
11071 _ACEOF
11072 if ac_fn_c_try_link "$LINENO"; then :
11073 ac_cv_lib_z_inflate=yes
11074 else
11075 ac_cv_lib_z_inflate=no
11077 rm -f core conftest.err conftest.$ac_objext \
11078 conftest$ac_exeext conftest.$ac_ext
11079 LIBS=$ac_check_lib_save_LIBS
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11082 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11083 if test "x$ac_cv_lib_z_inflate" = xyes; then :
11085 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11087 ZLIB="-lz"
11092 if test "x$ZLIB" = "x"; then :
11093 case "x$with_zlib" in
11094 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
11095 xno) ;;
11096 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
11097 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
11098 esac
11101 if test "x$enable_tools" != xno
11102 then
11103 if test "$ac_cv_header_gettext_po_h" = "yes"
11104 then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
11106 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
11107 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110 ac_check_lib_save_LIBS=$LIBS
11111 LIBS="-lgettextpo $LIBS"
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11115 /* Override any GCC internal prototype to avoid an error.
11116 Use char because int might match the return type of a GCC
11117 builtin and then its argument prototype would still apply. */
11118 #ifdef __cplusplus
11119 extern "C"
11120 #endif
11121 char po_message_msgctxt ();
11123 main ()
11125 return po_message_msgctxt ();
11127 return 0;
11129 _ACEOF
11130 if ac_fn_c_try_link "$LINENO"; then :
11131 ac_cv_lib_gettextpo_po_message_msgctxt=yes
11132 else
11133 ac_cv_lib_gettextpo_po_message_msgctxt=no
11135 rm -f core conftest.err conftest.$ac_objext \
11136 conftest$ac_exeext conftest.$ac_ext
11137 LIBS=$ac_check_lib_save_LIBS
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
11140 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
11141 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
11143 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
11145 LIBGETTEXTPO="-lgettextpo"
11150 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
11151 case "x$with_gettextpo" in
11152 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
11153 xno) ;;
11154 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
11155 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
11156 esac
11160 if test "x$with_gstreamer" != "xno"
11161 then
11162 ac_save_CPPFLAGS="$CPPFLAGS"
11163 if test -n "$GSTREAMER_CFLAGS"; then :
11165 elif test -n "$PKG_CONFIG"; then :
11166 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
11169 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
11170 if test -n "$GSTREAMER_LIBS"; then :
11172 elif test -n "$PKG_CONFIG"; then :
11173 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
11177 ac_gst_incl=""
11178 for i in $GSTREAMER_CFLAGS
11180 case "$i" in
11181 -I*) ac_gst_incl="$ac_gst_incl $i";;
11182 esac
11183 done
11184 GSTREAMER_CFLAGS=$ac_gst_incl
11185 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
11186 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
11187 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
11188 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
11189 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
11191 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11194 #include <gst/app/gstappsink.h>
11196 main ()
11198 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
11200 return 0;
11202 _ACEOF
11203 if ac_fn_c_try_compile "$LINENO"; then :
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11205 $as_echo "yes" >&6; }
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
11207 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
11208 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 ac_check_lib_save_LIBS=$LIBS
11212 LIBS="-lgstreamer-0.10 $LIBS"
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11216 /* Override any GCC internal prototype to avoid an error.
11217 Use char because int might match the return type of a GCC
11218 builtin and then its argument prototype would still apply. */
11219 #ifdef __cplusplus
11220 extern "C"
11221 #endif
11222 char gst_pad_get_caps_reffed ();
11224 main ()
11226 return gst_pad_get_caps_reffed ();
11228 return 0;
11230 _ACEOF
11231 if ac_fn_c_try_link "$LINENO"; then :
11232 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
11233 else
11234 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
11236 rm -f core conftest.err conftest.$ac_objext \
11237 conftest$ac_exeext conftest.$ac_ext
11238 LIBS=$ac_check_lib_save_LIBS
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
11241 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
11242 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
11244 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
11245 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
11246 $as_echo_n "(cached) " >&6
11247 else
11248 ac_check_lib_save_LIBS=$LIBS
11249 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11253 /* Override any GCC internal prototype to avoid an error.
11254 Use char because int might match the return type of a GCC
11255 builtin and then its argument prototype would still apply. */
11256 #ifdef __cplusplus
11257 extern "C"
11258 #endif
11259 char gst_app_buffer_new ();
11261 main ()
11263 return gst_app_buffer_new ();
11265 return 0;
11267 _ACEOF
11268 if ac_fn_c_try_link "$LINENO"; then :
11269 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
11270 else
11271 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
11273 rm -f core conftest.err conftest.$ac_objext \
11274 conftest$ac_exeext conftest.$ac_ext
11275 LIBS=$ac_check_lib_save_LIBS
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
11278 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
11279 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
11285 else
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287 $as_echo "no" >&6; }
11289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 else
11294 GSTREAMER_CFLAGS=""
11298 CPPFLAGS="$ac_save_CPPFLAGS"
11300 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
11301 case "x$with_gstreamer" in
11302 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
11303 xno) ;;
11304 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
11305 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
11306 esac
11308 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
11310 ALSALIBS=""
11312 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11313 then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
11315 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
11316 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319 ac_check_lib_save_LIBS=$LIBS
11320 LIBS="-lasound $LIBS"
11321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322 /* end confdefs.h. */
11324 /* Override any GCC internal prototype to avoid an error.
11325 Use char because int might match the return type of a GCC
11326 builtin and then its argument prototype would still apply. */
11327 #ifdef __cplusplus
11328 extern "C"
11329 #endif
11330 char snd_pcm_hw_params_get_access_mask ();
11332 main ()
11334 return snd_pcm_hw_params_get_access_mask ();
11336 return 0;
11338 _ACEOF
11339 if ac_fn_c_try_link "$LINENO"; then :
11340 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
11341 else
11342 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
11344 rm -f core conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346 LIBS=$ac_check_lib_save_LIBS
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11349 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11350 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11353 #ifdef HAVE_ALSA_ASOUNDLIB_H
11354 #include <alsa/asoundlib.h>
11355 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11356 #include <sys/asoundlib.h>
11357 #endif
11359 main ()
11361 snd_pcm_hw_params_get_access_mask(NULL, NULL)
11363 return 0;
11365 _ACEOF
11366 if ac_fn_c_try_compile "$LINENO"; then :
11367 ALSALIBS="-lasound"
11369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11374 if test "x$with_oss" != xno
11375 then
11376 ac_save_CPPFLAGS="$CPPFLAGS"
11377 if test -f /etc/oss.conf
11378 then
11379 . /etc/oss.conf
11381 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11382 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11383 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11384 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11385 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11387 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11389 cat >>confdefs.h <<_ACEOF
11390 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11391 _ACEOF
11393 OSS4INCL="$ac_oss_incl"
11400 CPPFLAGS="$ac_save_CPPFLAGS"
11401 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11402 then
11403 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11408 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11409 then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11411 $as_echo_n "checking for -lcapi20... " >&6; }
11412 if ${ac_cv_lib_soname_capi20+:} false; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 ac_check_soname_save_LIBS=$LIBS
11416 LIBS="-lcapi20 $LIBS"
11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11418 /* end confdefs.h. */
11420 /* Override any GCC internal prototype to avoid an error.
11421 Use char because int might match the return type of a GCC
11422 builtin and then its argument prototype would still apply. */
11423 #ifdef __cplusplus
11424 extern "C"
11425 #endif
11426 char capi20_register ();
11428 main ()
11430 return capi20_register ();
11432 return 0;
11434 _ACEOF
11435 if ac_fn_c_try_link "$LINENO"; then :
11436 case "$LIBEXT" in
11437 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11438 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'` ;;
11439 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11440 if test "x$ac_cv_lib_soname_capi20" = x; then :
11441 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11442 fi ;;
11443 esac
11445 rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
11447 LIBS=$ac_check_soname_save_LIBS
11449 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11451 $as_echo "not found" >&6; }
11453 else
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11455 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11457 cat >>confdefs.h <<_ACEOF
11458 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11459 _ACEOF
11464 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11465 case "x$with_capi" in
11466 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11467 xno) ;;
11468 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11469 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11470 esac
11473 CUPSINCL=""
11475 if test "x$with_cups" != "xno"
11476 then
11477 ac_save_CPPFLAGS="$CPPFLAGS"
11478 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11479 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11480 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11481 for ac_header in cups/cups.h
11482 do :
11483 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11484 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11485 cat >>confdefs.h <<_ACEOF
11486 #define HAVE_CUPS_CUPS_H 1
11487 _ACEOF
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11489 $as_echo_n "checking for -lcups... " >&6; }
11490 if ${ac_cv_lib_soname_cups+:} false; then :
11491 $as_echo_n "(cached) " >&6
11492 else
11493 ac_check_soname_save_LIBS=$LIBS
11494 LIBS="-lcups $ac_cups_libs $LIBS"
11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11498 /* Override any GCC internal prototype to avoid an error.
11499 Use char because int might match the return type of a GCC
11500 builtin and then its argument prototype would still apply. */
11501 #ifdef __cplusplus
11502 extern "C"
11503 #endif
11504 char cupsGetDefault ();
11506 main ()
11508 return cupsGetDefault ();
11510 return 0;
11512 _ACEOF
11513 if ac_fn_c_try_link "$LINENO"; then :
11514 case "$LIBEXT" in
11515 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11516 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'` ;;
11517 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11518 if test "x$ac_cv_lib_soname_cups" = x; then :
11519 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11520 fi ;;
11521 esac
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_soname_save_LIBS
11527 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11529 $as_echo "not found" >&6; }
11531 else
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11533 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11535 cat >>confdefs.h <<_ACEOF
11536 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11537 _ACEOF
11539 CUPSINCL="$ac_cups_cflags"
11543 done
11545 CPPFLAGS="$ac_save_CPPFLAGS"
11547 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11548 case "x$with_cups" in
11549 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11550 xno) ;;
11551 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11552 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11553 esac
11556 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11557 then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11559 $as_echo_n "checking for -lfontconfig... " >&6; }
11560 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11561 $as_echo_n "(cached) " >&6
11562 else
11563 ac_check_soname_save_LIBS=$LIBS
11564 LIBS="-lfontconfig $LIBS"
11565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566 /* end confdefs.h. */
11568 /* Override any GCC internal prototype to avoid an error.
11569 Use char because int might match the return type of a GCC
11570 builtin and then its argument prototype would still apply. */
11571 #ifdef __cplusplus
11572 extern "C"
11573 #endif
11574 char FcInit ();
11576 main ()
11578 return FcInit ();
11580 return 0;
11582 _ACEOF
11583 if ac_fn_c_try_link "$LINENO"; then :
11584 case "$LIBEXT" in
11585 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11586 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'` ;;
11587 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11588 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11589 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11590 fi ;;
11591 esac
11593 rm -f core conftest.err conftest.$ac_objext \
11594 conftest$ac_exeext conftest.$ac_ext
11595 LIBS=$ac_check_soname_save_LIBS
11597 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11599 $as_echo "not found" >&6; }
11601 else
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11603 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11605 cat >>confdefs.h <<_ACEOF
11606 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11607 _ACEOF
11611 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11612 then
11613 ac_save_CPPFLAGS="$CPPFLAGS"
11614 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11615 $as_unset ac_cv_header_fontconfig_fontconfig_h
11616 for ac_header in fontconfig/fontconfig.h
11617 do :
11618 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11619 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11620 cat >>confdefs.h <<_ACEOF
11621 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11622 _ACEOF
11626 done
11628 CPPFLAGS="$ac_save_CPPFLAGS"
11629 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11630 then
11631 FONTCONFIGINCL="$X_CFLAGS"
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11634 $as_echo_n "checking for -lfontconfig... " >&6; }
11635 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11636 $as_echo_n "(cached) " >&6
11637 else
11638 ac_check_soname_save_LIBS=$LIBS
11639 LIBS="-lfontconfig $X_LIBS $LIBS"
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11643 /* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
11646 #ifdef __cplusplus
11647 extern "C"
11648 #endif
11649 char FcInit ();
11651 main ()
11653 return FcInit ();
11655 return 0;
11657 _ACEOF
11658 if ac_fn_c_try_link "$LINENO"; then :
11659 case "$LIBEXT" in
11660 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11661 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'` ;;
11662 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11663 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11664 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11665 fi ;;
11666 esac
11668 rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670 LIBS=$ac_check_soname_save_LIBS
11672 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11674 $as_echo "not found" >&6; }
11676 else
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11678 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11680 cat >>confdefs.h <<_ACEOF
11681 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11682 _ACEOF
11688 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11689 case "x$with_fontconfig" in
11690 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11691 xno) ;;
11692 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11693 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11694 esac
11697 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11698 then
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11700 $as_echo_n "checking for -lgsm... " >&6; }
11701 if ${ac_cv_lib_soname_gsm+:} false; then :
11702 $as_echo_n "(cached) " >&6
11703 else
11704 ac_check_soname_save_LIBS=$LIBS
11705 LIBS="-lgsm $LIBS"
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11709 /* Override any GCC internal prototype to avoid an error.
11710 Use char because int might match the return type of a GCC
11711 builtin and then its argument prototype would still apply. */
11712 #ifdef __cplusplus
11713 extern "C"
11714 #endif
11715 char gsm_create ();
11717 main ()
11719 return gsm_create ();
11721 return 0;
11723 _ACEOF
11724 if ac_fn_c_try_link "$LINENO"; then :
11725 case "$LIBEXT" in
11726 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11727 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'` ;;
11728 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11729 if test "x$ac_cv_lib_soname_gsm" = x; then :
11730 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11731 fi ;;
11732 esac
11734 rm -f core conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11736 LIBS=$ac_check_soname_save_LIBS
11738 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11740 $as_echo "not found" >&6; }
11742 else
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11744 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11746 cat >>confdefs.h <<_ACEOF
11747 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11748 _ACEOF
11753 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11754 case "x$with_gsm" in
11755 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11756 xno) ;;
11757 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11758 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11759 esac
11762 if test "$ac_cv_header_jpeglib_h" = "yes"
11763 then
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11765 $as_echo_n "checking for -ljpeg... " >&6; }
11766 if ${ac_cv_lib_soname_jpeg+:} false; then :
11767 $as_echo_n "(cached) " >&6
11768 else
11769 ac_check_soname_save_LIBS=$LIBS
11770 LIBS="-ljpeg $LIBS"
11771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772 /* end confdefs.h. */
11774 /* Override any GCC internal prototype to avoid an error.
11775 Use char because int might match the return type of a GCC
11776 builtin and then its argument prototype would still apply. */
11777 #ifdef __cplusplus
11778 extern "C"
11779 #endif
11780 char jpeg_start_decompress ();
11782 main ()
11784 return jpeg_start_decompress ();
11786 return 0;
11788 _ACEOF
11789 if ac_fn_c_try_link "$LINENO"; then :
11790 case "$LIBEXT" in
11791 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11792 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'` ;;
11793 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11794 if test "x$ac_cv_lib_soname_jpeg" = x; then :
11795 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11796 fi ;;
11797 esac
11799 rm -f core conftest.err conftest.$ac_objext \
11800 conftest$ac_exeext conftest.$ac_ext
11801 LIBS=$ac_check_soname_save_LIBS
11803 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11805 $as_echo "not found" >&6; }
11807 else
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11809 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11811 cat >>confdefs.h <<_ACEOF
11812 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11813 _ACEOF
11818 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11819 case "x$with_jpeg" in
11820 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11821 xno) ;;
11822 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11823 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11824 esac
11827 if test "$ac_cv_header_png_h" = "yes"
11828 then
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11830 $as_echo_n "checking for -lpng... " >&6; }
11831 if ${ac_cv_lib_soname_png+:} false; then :
11832 $as_echo_n "(cached) " >&6
11833 else
11834 ac_check_soname_save_LIBS=$LIBS
11835 LIBS="-lpng -lm -lz $LIBS"
11836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h. */
11839 /* Override any GCC internal prototype to avoid an error.
11840 Use char because int might match the return type of a GCC
11841 builtin and then its argument prototype would still apply. */
11842 #ifdef __cplusplus
11843 extern "C"
11844 #endif
11845 char png_create_read_struct ();
11847 main ()
11849 return png_create_read_struct ();
11851 return 0;
11853 _ACEOF
11854 if ac_fn_c_try_link "$LINENO"; then :
11855 case "$LIBEXT" in
11856 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11857 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'` ;;
11858 *) 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'`
11859 if test "x$ac_cv_lib_soname_png" = x; then :
11860 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11861 fi ;;
11862 esac
11864 rm -f core conftest.err conftest.$ac_objext \
11865 conftest$ac_exeext conftest.$ac_ext
11866 LIBS=$ac_check_soname_save_LIBS
11868 if test "x$ac_cv_lib_soname_png" = "x"; then :
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11870 $as_echo "not found" >&6; }
11872 else
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11874 $as_echo "$ac_cv_lib_soname_png" >&6; }
11876 cat >>confdefs.h <<_ACEOF
11877 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11878 _ACEOF
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11883 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11884 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 ac_check_lib_save_LIBS=$LIBS
11888 LIBS="-lpng -lm -lz $LIBS"
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11892 /* Override any GCC internal prototype to avoid an error.
11893 Use char because int might match the return type of a GCC
11894 builtin and then its argument prototype would still apply. */
11895 #ifdef __cplusplus
11896 extern "C"
11897 #endif
11898 char png_set_expand_gray_1_2_4_to_8 ();
11900 main ()
11902 return png_set_expand_gray_1_2_4_to_8 ();
11904 return 0;
11906 _ACEOF
11907 if ac_fn_c_try_link "$LINENO"; then :
11908 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11909 else
11910 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11912 rm -f core conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11914 LIBS=$ac_check_lib_save_LIBS
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11917 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11918 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11920 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11925 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11926 then
11927 ac_save_CPPFLAGS="$CPPFLAGS"
11928 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11929 $as_unset ac_cv_header_png_h
11930 for ac_header in png.h
11931 do :
11932 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11933 if test "x$ac_cv_header_png_h" = xyes; then :
11934 cat >>confdefs.h <<_ACEOF
11935 #define HAVE_PNG_H 1
11936 _ACEOF
11940 done
11942 CPPFLAGS="$ac_save_CPPFLAGS"
11943 if test "$ac_cv_header_png_h" = "yes"
11944 then
11945 PNGINCL="$X_CFLAGS"
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11948 $as_echo_n "checking for -lpng... " >&6; }
11949 if ${ac_cv_lib_soname_png+:} false; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 ac_check_soname_save_LIBS=$LIBS
11953 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11957 /* Override any GCC internal prototype to avoid an error.
11958 Use char because int might match the return type of a GCC
11959 builtin and then its argument prototype would still apply. */
11960 #ifdef __cplusplus
11961 extern "C"
11962 #endif
11963 char png_create_read_struct ();
11965 main ()
11967 return png_create_read_struct ();
11969 return 0;
11971 _ACEOF
11972 if ac_fn_c_try_link "$LINENO"; then :
11973 case "$LIBEXT" in
11974 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11975 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'` ;;
11976 *) 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'`
11977 if test "x$ac_cv_lib_soname_png" = x; then :
11978 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11979 fi ;;
11980 esac
11982 rm -f core conftest.err conftest.$ac_objext \
11983 conftest$ac_exeext conftest.$ac_ext
11984 LIBS=$ac_check_soname_save_LIBS
11986 if test "x$ac_cv_lib_soname_png" = "x"; then :
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11988 $as_echo "not found" >&6; }
11990 else
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11992 $as_echo "$ac_cv_lib_soname_png" >&6; }
11994 cat >>confdefs.h <<_ACEOF
11995 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11996 _ACEOF
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
12001 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
12002 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 ac_check_lib_save_LIBS=$LIBS
12006 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12010 /* Override any GCC internal prototype to avoid an error.
12011 Use char because int might match the return type of a GCC
12012 builtin and then its argument prototype would still apply. */
12013 #ifdef __cplusplus
12014 extern "C"
12015 #endif
12016 char png_set_expand_gray_1_2_4_to_8 ();
12018 main ()
12020 return png_set_expand_gray_1_2_4_to_8 ();
12022 return 0;
12024 _ACEOF
12025 if ac_fn_c_try_link "$LINENO"; then :
12026 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
12027 else
12028 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
12030 rm -f core conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12032 LIBS=$ac_check_lib_save_LIBS
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
12035 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
12036 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
12037 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12043 if test "x$ac_cv_lib_soname_png" = "x"; then :
12044 case "x$with_png" in
12045 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12046 xno) ;;
12047 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12048 This is an error since --with-png was requested." "$LINENO" 5 ;;
12049 esac
12052 if test "$ac_cv_header_tiffio_h" = "yes"
12053 then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12055 $as_echo_n "checking for -ltiff... " >&6; }
12056 if ${ac_cv_lib_soname_tiff+:} false; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 ac_check_soname_save_LIBS=$LIBS
12060 LIBS="-ltiff $LIBS"
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12064 /* Override any GCC internal prototype to avoid an error.
12065 Use char because int might match the return type of a GCC
12066 builtin and then its argument prototype would still apply. */
12067 #ifdef __cplusplus
12068 extern "C"
12069 #endif
12070 char TIFFClientOpen ();
12072 main ()
12074 return TIFFClientOpen ();
12076 return 0;
12078 _ACEOF
12079 if ac_fn_c_try_link "$LINENO"; then :
12080 case "$LIBEXT" in
12081 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12082 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'` ;;
12083 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12084 if test "x$ac_cv_lib_soname_tiff" = x; then :
12085 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12086 fi ;;
12087 esac
12089 rm -f core conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12091 LIBS=$ac_check_soname_save_LIBS
12093 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12095 $as_echo "not found" >&6; }
12097 else
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
12099 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
12101 cat >>confdefs.h <<_ACEOF
12102 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
12103 _ACEOF
12108 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12109 case "x$with_tiff" in
12110 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
12111 xno) ;;
12112 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
12113 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
12114 esac
12117 if test "$ac_cv_header_mpg123_h" = "yes"
12118 then
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
12120 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
12121 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 ac_check_lib_save_LIBS=$LIBS
12125 LIBS="-lmpg123 $LIBS"
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12129 /* Override any GCC internal prototype to avoid an error.
12130 Use char because int might match the return type of a GCC
12131 builtin and then its argument prototype would still apply. */
12132 #ifdef __cplusplus
12133 extern "C"
12134 #endif
12135 char mpg123_feed ();
12137 main ()
12139 return mpg123_feed ();
12141 return 0;
12143 _ACEOF
12144 if ac_fn_c_try_link "$LINENO"; then :
12145 ac_cv_lib_mpg123_mpg123_feed=yes
12146 else
12147 ac_cv_lib_mpg123_mpg123_feed=no
12149 rm -f core conftest.err conftest.$ac_objext \
12150 conftest$ac_exeext conftest.$ac_ext
12151 LIBS=$ac_check_lib_save_LIBS
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
12154 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
12155 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
12156 LIBMPG123="-lmpg123"
12161 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
12162 case "x$with_mpg123" in
12163 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
12164 xno) ;;
12165 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
12166 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
12167 esac
12169 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}
12171 if test "$ac_cv_header_AL_al_h" = "yes"
12172 then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
12174 $as_echo_n "checking for -lopenal... " >&6; }
12175 if ${ac_cv_lib_soname_openal+:} false; then :
12176 $as_echo_n "(cached) " >&6
12177 else
12178 ac_check_soname_save_LIBS=$LIBS
12179 LIBS="-lopenal $LIBS"
12180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h. */
12183 /* Override any GCC internal prototype to avoid an error.
12184 Use char because int might match the return type of a GCC
12185 builtin and then its argument prototype would still apply. */
12186 #ifdef __cplusplus
12187 extern "C"
12188 #endif
12189 char alGetSource3i ();
12191 main ()
12193 return alGetSource3i ();
12195 return 0;
12197 _ACEOF
12198 if ac_fn_c_try_link "$LINENO"; then :
12199 case "$LIBEXT" in
12200 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12201 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'` ;;
12202 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12203 if test "x$ac_cv_lib_soname_openal" = x; then :
12204 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12205 fi ;;
12206 esac
12208 rm -f core conftest.err conftest.$ac_objext \
12209 conftest$ac_exeext conftest.$ac_ext
12210 LIBS=$ac_check_soname_save_LIBS
12212 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12214 $as_echo "not found" >&6; }
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12218 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12220 cat >>confdefs.h <<_ACEOF
12221 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12222 _ACEOF
12224 LIBOPENAL="-lopenal"
12226 ac_cv_lib_openal=yes
12228 cat >>confdefs.h <<_ACEOF
12229 #define HAVE_OPENAL 1
12230 _ACEOF
12234 if test "x$ac_cv_lib_openal" != xyes; then :
12235 case "x$with_openal" in
12236 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12237 xno) ;;
12238 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12239 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12240 esac
12242 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12244 if test "$ac_cv_header_kstat_h" = "yes"
12245 then
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12247 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12248 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12249 $as_echo_n "(cached) " >&6
12250 else
12251 ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-lkstat $LIBS"
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12256 /* Override any GCC internal prototype to avoid an error.
12257 Use char because int might match the return type of a GCC
12258 builtin and then its argument prototype would still apply. */
12259 #ifdef __cplusplus
12260 extern "C"
12261 #endif
12262 char kstat_open ();
12264 main ()
12266 return kstat_open ();
12268 return 0;
12270 _ACEOF
12271 if ac_fn_c_try_link "$LINENO"; then :
12272 ac_cv_lib_kstat_kstat_open=yes
12273 else
12274 ac_cv_lib_kstat_kstat_open=no
12276 rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278 LIBS=$ac_check_lib_save_LIBS
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12281 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12282 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12284 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12286 LIBKSTAT="-lkstat"
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12293 $as_echo_n "checking for -lodbc... " >&6; }
12294 if ${ac_cv_lib_soname_odbc+:} false; then :
12295 $as_echo_n "(cached) " >&6
12296 else
12297 ac_check_soname_save_LIBS=$LIBS
12298 LIBS="-lodbc $LIBS"
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12302 /* Override any GCC internal prototype to avoid an error.
12303 Use char because int might match the return type of a GCC
12304 builtin and then its argument prototype would still apply. */
12305 #ifdef __cplusplus
12306 extern "C"
12307 #endif
12308 char SQLConnect ();
12310 main ()
12312 return SQLConnect ();
12314 return 0;
12316 _ACEOF
12317 if ac_fn_c_try_link "$LINENO"; then :
12318 case "$LIBEXT" in
12319 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12320 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'` ;;
12321 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12322 if test "x$ac_cv_lib_soname_odbc" = x; then :
12323 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12324 fi ;;
12325 esac
12327 rm -f core conftest.err conftest.$ac_objext \
12328 conftest$ac_exeext conftest.$ac_ext
12329 LIBS=$ac_check_soname_save_LIBS
12331 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12333 $as_echo "not found" >&6; }
12334 cat >>confdefs.h <<_ACEOF
12335 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12336 _ACEOF
12338 else
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12340 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12342 cat >>confdefs.h <<_ACEOF
12343 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12344 _ACEOF
12349 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12350 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12351 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12352 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12354 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
12355 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12356 "x$with_alsa$with_coreaudio$with_oss" != xnonono
12357 then
12358 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12362 EXTRACFLAGS=""
12364 if test "x${GCC}" = "xyes"
12365 then
12366 EXTRACFLAGS="-Wall -pipe"
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12369 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12370 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12371 $as_echo_n "(cached) " >&6
12372 else
12373 if test "$cross_compiling" = yes; then :
12374 ac_cv_c_gcc_strength_bug="yes"
12375 else
12376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377 /* end confdefs.h. */
12378 int L[4] = {0,1,2,3};
12380 main ()
12382 static int Array[3];
12383 unsigned int B = 3;
12384 int i;
12385 for(i=0; i<B; i++) Array[i] = i - 3;
12386 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12387 L[i] = 4;
12388 return (Array[1] != -2 || L[2] != 3)
12390 return 0;
12392 _ACEOF
12393 if ac_fn_c_try_run "$LINENO"; then :
12394 ac_cv_c_gcc_strength_bug="no"
12395 else
12396 ac_cv_c_gcc_strength_bug="yes"
12398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12399 conftest.$ac_objext conftest.beam conftest.$ac_ext
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12404 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12405 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12406 then
12407 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12411 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12412 if ${ac_cv_cflags__fno_builtin+:} false; then :
12413 $as_echo_n "(cached) " >&6
12414 else
12415 ac_wine_try_cflags_saved=$CFLAGS
12416 CFLAGS="$CFLAGS -fno-builtin"
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12419 int main(int argc, char **argv) { return 0; }
12420 _ACEOF
12421 if ac_fn_c_try_link "$LINENO"; then :
12422 ac_cv_cflags__fno_builtin=yes
12423 else
12424 ac_cv_cflags__fno_builtin=no
12426 rm -f core conftest.err conftest.$ac_objext \
12427 conftest$ac_exeext conftest.$ac_ext
12428 CFLAGS=$ac_wine_try_cflags_saved
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12431 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12432 if test $ac_cv_cflags__fno_builtin = yes; then :
12433 BUILTINFLAG="-fno-builtin"
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12437 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12438 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 ac_wine_try_cflags_saved=$CFLAGS
12442 CFLAGS="$CFLAGS -fno-strict-aliasing"
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445 int main(int argc, char **argv) { return 0; }
12446 _ACEOF
12447 if ac_fn_c_try_link "$LINENO"; then :
12448 ac_cv_cflags__fno_strict_aliasing=yes
12449 else
12450 ac_cv_cflags__fno_strict_aliasing=no
12452 rm -f core conftest.err conftest.$ac_objext \
12453 conftest$ac_exeext conftest.$ac_ext
12454 CFLAGS=$ac_wine_try_cflags_saved
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12457 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12458 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12459 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12462 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12463 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12464 $as_echo_n "(cached) " >&6
12465 else
12466 ac_wine_try_cflags_saved=$CFLAGS
12467 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469 /* end confdefs.h. */
12470 int main(int argc, char **argv) { return 0; }
12471 _ACEOF
12472 if ac_fn_c_try_link "$LINENO"; then :
12473 ac_cv_cflags__Wdeclaration_after_statement=yes
12474 else
12475 ac_cv_cflags__Wdeclaration_after_statement=no
12477 rm -f core conftest.err conftest.$ac_objext \
12478 conftest$ac_exeext conftest.$ac_ext
12479 CFLAGS=$ac_wine_try_cflags_saved
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12482 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12483 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12484 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12487 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12488 if ${ac_cv_cflags__Wempty_body+:} false; then :
12489 $as_echo_n "(cached) " >&6
12490 else
12491 ac_wine_try_cflags_saved=$CFLAGS
12492 CFLAGS="$CFLAGS -Wempty-body"
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495 int main(int argc, char **argv) { return 0; }
12496 _ACEOF
12497 if ac_fn_c_try_link "$LINENO"; then :
12498 ac_cv_cflags__Wempty_body=yes
12499 else
12500 ac_cv_cflags__Wempty_body=no
12502 rm -f core conftest.err conftest.$ac_objext \
12503 conftest$ac_exeext conftest.$ac_ext
12504 CFLAGS=$ac_wine_try_cflags_saved
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12507 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12508 if test $ac_cv_cflags__Wempty_body = yes; then :
12509 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12512 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12513 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 ac_wine_try_cflags_saved=$CFLAGS
12517 CFLAGS="$CFLAGS -Wignored-qualifiers"
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12520 int main(int argc, char **argv) { return 0; }
12521 _ACEOF
12522 if ac_fn_c_try_link "$LINENO"; then :
12523 ac_cv_cflags__Wignored_qualifiers=yes
12524 else
12525 ac_cv_cflags__Wignored_qualifiers=no
12527 rm -f core conftest.err conftest.$ac_objext \
12528 conftest$ac_exeext conftest.$ac_ext
12529 CFLAGS=$ac_wine_try_cflags_saved
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12532 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12533 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12534 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12537 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12538 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 ac_wine_try_cflags_saved=$CFLAGS
12542 CFLAGS="$CFLAGS -Wstrict-prototypes"
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12545 int main(int argc, char **argv) { return 0; }
12546 _ACEOF
12547 if ac_fn_c_try_link "$LINENO"; then :
12548 ac_cv_cflags__Wstrict_prototypes=yes
12549 else
12550 ac_cv_cflags__Wstrict_prototypes=no
12552 rm -f core conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12554 CFLAGS=$ac_wine_try_cflags_saved
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12557 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12558 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12559 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12562 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12563 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 ac_wine_try_cflags_saved=$CFLAGS
12567 CFLAGS="$CFLAGS -Wtype-limits"
12568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569 /* end confdefs.h. */
12570 int main(int argc, char **argv) { return 0; }
12571 _ACEOF
12572 if ac_fn_c_try_link "$LINENO"; then :
12573 ac_cv_cflags__Wtype_limits=yes
12574 else
12575 ac_cv_cflags__Wtype_limits=no
12577 rm -f core conftest.err conftest.$ac_objext \
12578 conftest$ac_exeext conftest.$ac_ext
12579 CFLAGS=$ac_wine_try_cflags_saved
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12582 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12583 if test $ac_cv_cflags__Wtype_limits = yes; then :
12584 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12587 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12588 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12589 $as_echo_n "(cached) " >&6
12590 else
12591 ac_wine_try_cflags_saved=$CFLAGS
12592 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12595 int main(int argc, char **argv) { return 0; }
12596 _ACEOF
12597 if ac_fn_c_try_link "$LINENO"; then :
12598 ac_cv_cflags__Wunused_but_set_parameter=yes
12599 else
12600 ac_cv_cflags__Wunused_but_set_parameter=no
12602 rm -f core conftest.err conftest.$ac_objext \
12603 conftest$ac_exeext conftest.$ac_ext
12604 CFLAGS=$ac_wine_try_cflags_saved
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12607 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12608 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12609 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12612 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12613 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12614 $as_echo_n "(cached) " >&6
12615 else
12616 ac_wine_try_cflags_saved=$CFLAGS
12617 CFLAGS="$CFLAGS -Wwrite-strings"
12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12620 int main(int argc, char **argv) { return 0; }
12621 _ACEOF
12622 if ac_fn_c_try_link "$LINENO"; then :
12623 ac_cv_cflags__Wwrite_strings=yes
12624 else
12625 ac_cv_cflags__Wwrite_strings=no
12627 rm -f core conftest.err conftest.$ac_objext \
12628 conftest$ac_exeext conftest.$ac_ext
12629 CFLAGS=$ac_wine_try_cflags_saved
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12632 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12633 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12634 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12637 for ac_flag in $CFLAGS; do
12638 case $ac_flag in
12639 -g) case $host_os in
12640 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
12641 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
12642 if ${ac_cv_cflags__gstabsp+:} false; then :
12643 $as_echo_n "(cached) " >&6
12644 else
12645 ac_wine_try_cflags_saved=$CFLAGS
12646 CFLAGS="$CFLAGS -gstabs+"
12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12649 int main(int argc, char **argv) { return 0; }
12650 _ACEOF
12651 if ac_fn_c_try_link "$LINENO"; then :
12652 ac_cv_cflags__gstabsp=yes
12653 else
12654 ac_cv_cflags__gstabsp=no
12656 rm -f core conftest.err conftest.$ac_objext \
12657 conftest$ac_exeext conftest.$ac_ext
12658 CFLAGS=$ac_wine_try_cflags_saved
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
12661 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
12662 if test $ac_cv_cflags__gstabsp = yes; then :
12663 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12664 fi ;;
12665 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
12666 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
12667 if ${ac_cv_cflags__gdwarf_2+:} false; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12670 ac_wine_try_cflags_saved=$CFLAGS
12671 CFLAGS="$CFLAGS -gdwarf-2"
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12674 int main(int argc, char **argv) { return 0; }
12675 _ACEOF
12676 if ac_fn_c_try_link "$LINENO"; then :
12677 ac_cv_cflags__gdwarf_2=yes
12678 else
12679 ac_cv_cflags__gdwarf_2=no
12681 rm -f core conftest.err conftest.$ac_objext \
12682 conftest$ac_exeext conftest.$ac_ext
12683 CFLAGS=$ac_wine_try_cflags_saved
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
12686 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
12687 if test $ac_cv_cflags__gdwarf_2 = yes; then :
12688 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
12691 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
12692 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
12693 $as_echo_n "(cached) " >&6
12694 else
12695 ac_wine_try_cflags_saved=$CFLAGS
12696 CFLAGS="$CFLAGS -gstrict-dwarf"
12697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h. */
12699 int main(int argc, char **argv) { return 0; }
12700 _ACEOF
12701 if ac_fn_c_try_link "$LINENO"; then :
12702 ac_cv_cflags__gstrict_dwarf=yes
12703 else
12704 ac_cv_cflags__gstrict_dwarf=no
12706 rm -f core conftest.err conftest.$ac_objext \
12707 conftest$ac_exeext conftest.$ac_ext
12708 CFLAGS=$ac_wine_try_cflags_saved
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
12711 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
12712 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
12713 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
12714 fi ;;
12715 esac ;;
12716 esac
12717 done
12719 case $host_cpu in
12720 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12721 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12722 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12723 $as_echo_n "(cached) " >&6
12724 else
12725 ac_wine_try_cflags_saved=$CFLAGS
12726 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12728 /* end confdefs.h. */
12729 int main(int argc, char **argv) { return 0; }
12730 _ACEOF
12731 if ac_fn_c_try_link "$LINENO"; then :
12732 ac_cv_cflags__fno_omit_frame_pointer=yes
12733 else
12734 ac_cv_cflags__fno_omit_frame_pointer=no
12736 rm -f core conftest.err conftest.$ac_objext \
12737 conftest$ac_exeext conftest.$ac_ext
12738 CFLAGS=$ac_wine_try_cflags_saved
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12741 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12742 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12743 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12744 fi ;;
12745 esac
12747 case $host in
12748 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12749 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12750 if ${ac_cv_cflags__Wno_format+:} false; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 ac_wine_try_cflags_saved=$CFLAGS
12754 CFLAGS="$CFLAGS -Wno-format"
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12757 int main(int argc, char **argv) { return 0; }
12758 _ACEOF
12759 if ac_fn_c_try_link "$LINENO"; then :
12760 ac_cv_cflags__Wno_format=yes
12761 else
12762 ac_cv_cflags__Wno_format=no
12764 rm -f core conftest.err conftest.$ac_objext \
12765 conftest$ac_exeext conftest.$ac_ext
12766 CFLAGS=$ac_wine_try_cflags_saved
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12769 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12770 if test $ac_cv_cflags__Wno_format = yes; then :
12771 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12772 fi ;;
12773 esac
12775 saved_CFLAGS="$CFLAGS"
12776 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12778 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12779 if ${ac_cv_c_string_h_warnings+:} false; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 #include <string.h>
12786 main ()
12790 return 0;
12792 _ACEOF
12793 if ac_fn_c_try_compile "$LINENO"; then :
12794 ac_cv_c_string_h_warnings=no
12795 else
12796 ac_cv_c_string_h_warnings=yes
12798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12801 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12802 CFLAGS="$saved_CFLAGS"
12803 if test "$ac_cv_c_string_h_warnings" = "no"
12804 then
12805 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12808 saved_CFLAGS="$CFLAGS"
12809 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12811 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12812 if ${ac_cv_c_logicalop_noisy+:} false; then :
12813 $as_echo_n "(cached) " >&6
12814 else
12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12817 #include <string.h>
12819 main ()
12821 char*f(const char *h,char n) {return strchr(h,n);}
12823 return 0;
12825 _ACEOF
12826 if ac_fn_c_try_compile "$LINENO"; then :
12827 ac_cv_c_logicalop_noisy=no
12828 else
12829 ac_cv_c_logicalop_noisy=yes
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12834 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12835 CFLAGS="$saved_CFLAGS"
12836 if test "$ac_cv_c_logicalop_noisy" = "no"
12837 then
12838 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12841 if test "x$enable_maintainer_mode" = "xyes"
12842 then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12844 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12845 if ${ac_cv_cflags__Werror+:} false; then :
12846 $as_echo_n "(cached) " >&6
12847 else
12848 ac_wine_try_cflags_saved=$CFLAGS
12849 CFLAGS="$CFLAGS -Werror"
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12852 int main(int argc, char **argv) { return 0; }
12853 _ACEOF
12854 if ac_fn_c_try_link "$LINENO"; then :
12855 ac_cv_cflags__Werror=yes
12856 else
12857 ac_cv_cflags__Werror=no
12859 rm -f core conftest.err conftest.$ac_objext \
12860 conftest$ac_exeext conftest.$ac_ext
12861 CFLAGS=$ac_wine_try_cflags_saved
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12864 $as_echo "$ac_cv_cflags__Werror" >&6; }
12865 if test $ac_cv_cflags__Werror = yes; then :
12866 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12870 saved_CFLAGS="$CFLAGS"
12871 CFLAGS="$CFLAGS -Werror"
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12873 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12874 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12875 $as_echo_n "(cached) " >&6
12876 else
12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h. */
12879 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12881 main ()
12885 return 0;
12887 _ACEOF
12888 if ac_fn_c_try_compile "$LINENO"; then :
12889 ac_cv_have_ms_hook_prologue="yes"
12890 else
12891 ac_cv_have_ms_hook_prologue="no"
12893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12896 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12897 CFLAGS="$saved_CFLAGS"
12898 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12899 then
12901 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12903 else
12904 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12911 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12912 if ${ac_cv_c_fortify_enabled+:} false; then :
12913 $as_echo_n "(cached) " >&6
12914 else
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12917 #include <string.h>
12919 main ()
12921 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12922 #error Fortify enabled
12923 #endif
12925 return 0;
12927 _ACEOF
12928 if ac_fn_c_try_compile "$LINENO"; then :
12929 ac_cv_c_fortify_enabled=no
12930 else
12931 ac_cv_c_fortify_enabled=yes
12933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12936 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12937 if test "$ac_cv_c_fortify_enabled" = yes
12938 then
12939 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12944 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12945 if ${ac_cv_c_extern_prefix+:} false; then :
12946 $as_echo_n "(cached) " >&6
12947 else
12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h. */
12950 extern int ac_test;
12952 main ()
12954 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12956 return 0;
12958 _ACEOF
12959 if ac_fn_c_try_link "$LINENO"; then :
12960 ac_cv_c_extern_prefix="yes"
12961 else
12962 ac_cv_c_extern_prefix="no"
12964 rm -f core conftest.err conftest.$ac_objext \
12965 conftest$ac_exeext conftest.$ac_ext
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12968 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12970 case $host_cpu in
12971 *i[3456789]86*)
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12973 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12974 if ${ac_cv_c_stdcall_suffix+:} false; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978 /* end confdefs.h. */
12979 #ifndef _MSC_VER
12980 #define __stdcall __attribute__((__stdcall__))
12981 #endif
12982 int __stdcall ac_test(int i) { return i; }
12984 main ()
12986 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12988 return 0;
12990 _ACEOF
12991 if ac_fn_c_try_link "$LINENO"; then :
12992 ac_cv_c_stdcall_suffix="yes"
12993 else
12994 ac_cv_c_stdcall_suffix="no"
12996 rm -f core conftest.err conftest.$ac_objext \
12997 conftest$ac_exeext conftest.$ac_ext
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
13000 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
13001 *) ac_cv_c_stdcall_suffix="no" ;;
13002 esac
13005 if test "$ac_cv_c_extern_prefix" = "yes"
13006 then
13007 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
13009 asm_name_prefix="_"
13010 else
13011 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
13013 asm_name_prefix=""
13017 if test "$ac_cv_c_stdcall_suffix" = "yes"
13018 then
13019 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
13021 else
13022 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
13028 $as_echo_n "checking how to define a function in assembly code... " >&6; }
13029 if ${ac_cv_asm_func_def+:} false; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13036 main ()
13038 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
13040 return 0;
13042 _ACEOF
13043 if ac_fn_c_try_link "$LINENO"; then :
13044 ac_cv_asm_func_def=".def"
13045 else
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13050 main ()
13052 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
13054 return 0;
13056 _ACEOF
13057 if ac_fn_c_try_link "$LINENO"; then :
13058 ac_cv_asm_func_def=".type @function"
13059 else
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13064 main ()
13066 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
13068 return 0;
13070 _ACEOF
13071 if ac_fn_c_try_link "$LINENO"; then :
13072 ac_cv_asm_func_def=".type 2"
13073 else
13074 ac_cv_asm_func_def="unknown"
13076 rm -f core conftest.err conftest.$ac_objext \
13077 conftest$ac_exeext conftest.$ac_ext
13079 rm -f core conftest.err conftest.$ac_objext \
13080 conftest$ac_exeext conftest.$ac_ext
13082 rm -f core conftest.err conftest.$ac_objext \
13083 conftest$ac_exeext conftest.$ac_ext
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
13086 $as_echo "$ac_cv_asm_func_def" >&6; }
13089 case "$ac_cv_asm_func_def" in
13090 ".def")
13091 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
13093 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
13094 ".type @function")
13095 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
13097 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
13098 ".type 2")
13099 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
13101 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
13103 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
13105 asm_func_header="" ;;
13106 esac
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
13109 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
13110 if ${ac_cv_c_asm_outside_funcs+:} false; then :
13111 $as_echo_n "(cached) " >&6
13112 else
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13115 asm(".text\n\t.long 0");
13117 main ()
13121 return 0;
13123 _ACEOF
13124 if ac_fn_c_try_compile "$LINENO"; then :
13125 ac_cv_c_asm_outside_funcs="yes"
13126 else
13127 ac_cv_c_asm_outside_funcs="no"
13129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
13132 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
13135 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
13136 if ${ac_cv_c_dot_previous+:} false; then :
13137 $as_echo_n "(cached) " >&6
13138 else
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13143 main ()
13145 asm(".text\nac_test:\t.long 0\n\t.previous");
13147 return 0;
13149 _ACEOF
13150 if ac_fn_c_try_link "$LINENO"; then :
13151 ac_cv_c_dot_previous="yes"
13152 else
13153 ac_cv_c_dot_previous="no"
13155 rm -f core conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
13159 $as_echo "$ac_cv_c_dot_previous" >&6; }
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
13162 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
13163 if ${ac_cv_c_cfi_support+:} false; then :
13164 $as_echo_n "(cached) " >&6
13165 else
13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167 /* end confdefs.h. */
13168 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
13170 main ()
13174 return 0;
13176 _ACEOF
13177 if ac_fn_c_try_compile "$LINENO"; then :
13178 ac_cv_c_cfi_support="yes"
13179 else
13180 ac_cv_c_cfi_support="no"
13182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
13185 $as_echo "$ac_cv_c_cfi_support" >&6; }
13187 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
13188 asm_func_trailer=""
13189 if test "$ac_cv_c_dot_previous" = "yes"
13190 then
13191 asm_func_trailer="\\n\\t.previous"
13193 if test "$ac_cv_c_cfi_support" = "yes"
13194 then
13195 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
13196 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
13198 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
13200 UNWINDFLAGS=-fasynchronous-unwind-tables
13202 else
13203 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
13207 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
13210 if test "$ac_cv_c_asm_outside_funcs" = "yes"
13211 then
13212 cat >>confdefs.h <<_ACEOF
13213 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
13214 _ACEOF
13216 else
13217 cat >>confdefs.h <<_ACEOF
13218 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
13219 _ACEOF
13223 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
13226 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
13230 LDPATH=""
13232 case $build_os in
13233 cygwin*|mingw32*)
13234 TOOLSEXT=".exe"
13236 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
13238 darwin*|macosx*)
13241 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
13243 esac
13245 MAIN_BINARY="wine"
13247 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
13249 case $host_os in
13250 linux*)
13251 case $host_cpu in
13252 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
13254 x86_64*) EXTRA_BINARIES="wine64-preloader"
13256 esac
13258 esac
13261 ac_save_CFLAGS="$CFLAGS"
13262 CFLAGS="$CFLAGS $BUILTINFLAG"
13263 for ac_func in \
13264 _finite \
13265 _isnan \
13266 _pclose \
13267 _popen \
13268 _snprintf \
13269 _spawnvp \
13270 _strdup \
13271 _stricmp \
13272 _strnicmp \
13273 _strtoi64 \
13274 _strtoui64 \
13275 _vsnprintf \
13276 asctime_r \
13277 chsize \
13278 dlopen \
13279 epoll_create \
13280 ffs \
13281 finite \
13282 fnmatch \
13283 fork \
13284 fpclass \
13285 fstatfs \
13286 fstatvfs \
13287 ftruncate \
13288 futimens \
13289 futimes \
13290 futimesat \
13291 getattrlist \
13292 getdirentries \
13293 getopt_long_only \
13294 getpwuid \
13295 gettimeofday \
13296 getuid \
13297 kqueue \
13298 lstat \
13299 memmove \
13300 mmap \
13301 pclose \
13302 pipe2 \
13303 poll \
13304 popen \
13305 port_create \
13306 prctl \
13307 pread \
13308 pwrite \
13309 readdir \
13310 readlink \
13311 sched_yield \
13312 select \
13313 setproctitle \
13314 setrlimit \
13315 settimeofday \
13316 sigaltstack \
13317 sigprocmask \
13318 snprintf \
13319 statfs \
13320 statvfs \
13321 strcasecmp \
13322 strdup \
13323 strerror \
13324 strncasecmp \
13325 strtold \
13326 strtoll \
13327 strtoull \
13328 symlink \
13329 tcgetattr \
13330 thr_kill2 \
13331 timegm \
13332 usleep \
13333 vsnprintf
13335 do :
13336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13337 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13338 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13339 cat >>confdefs.h <<_ACEOF
13340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13341 _ACEOF
13344 done
13346 CFLAGS="$ac_save_CFLAGS"
13348 if test "$ac_cv_func_dlopen" = no
13349 then
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13351 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13352 if ${ac_cv_lib_dl_dlopen+:} false; then :
13353 $as_echo_n "(cached) " >&6
13354 else
13355 ac_check_lib_save_LIBS=$LIBS
13356 LIBS="-ldl $LIBS"
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13360 /* Override any GCC internal prototype to avoid an error.
13361 Use char because int might match the return type of a GCC
13362 builtin and then its argument prototype would still apply. */
13363 #ifdef __cplusplus
13364 extern "C"
13365 #endif
13366 char dlopen ();
13368 main ()
13370 return dlopen ();
13372 return 0;
13374 _ACEOF
13375 if ac_fn_c_try_link "$LINENO"; then :
13376 ac_cv_lib_dl_dlopen=yes
13377 else
13378 ac_cv_lib_dl_dlopen=no
13380 rm -f core conftest.err conftest.$ac_objext \
13381 conftest$ac_exeext conftest.$ac_ext
13382 LIBS=$ac_check_lib_save_LIBS
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13385 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13386 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13387 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13388 LIBDL="-ldl"
13393 ac_wine_check_funcs_save_LIBS="$LIBS"
13394 LIBS="$LIBS $LIBDL"
13395 for ac_func in dladdr
13396 do :
13397 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13398 if test "x$ac_cv_func_dladdr" = xyes; then :
13399 cat >>confdefs.h <<_ACEOF
13400 #define HAVE_DLADDR 1
13401 _ACEOF
13404 done
13406 LIBS="$ac_wine_check_funcs_save_LIBS"
13408 if test "$ac_cv_func_poll" = no
13409 then
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13411 $as_echo_n "checking for poll in -lpoll... " >&6; }
13412 if ${ac_cv_lib_poll_poll+:} false; then :
13413 $as_echo_n "(cached) " >&6
13414 else
13415 ac_check_lib_save_LIBS=$LIBS
13416 LIBS="-lpoll $LIBS"
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13420 /* Override any GCC internal prototype to avoid an error.
13421 Use char because int might match the return type of a GCC
13422 builtin and then its argument prototype would still apply. */
13423 #ifdef __cplusplus
13424 extern "C"
13425 #endif
13426 char poll ();
13428 main ()
13430 return poll ();
13432 return 0;
13434 _ACEOF
13435 if ac_fn_c_try_link "$LINENO"; then :
13436 ac_cv_lib_poll_poll=yes
13437 else
13438 ac_cv_lib_poll_poll=no
13440 rm -f core conftest.err conftest.$ac_objext \
13441 conftest$ac_exeext conftest.$ac_ext
13442 LIBS=$ac_check_lib_save_LIBS
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13445 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13446 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13447 $as_echo "#define HAVE_POLL 1" >>confdefs.h
13448 LIBPOLL="-lpoll"
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13455 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13456 if ${ac_cv_search_gethostbyname+:} false; then :
13457 $as_echo_n "(cached) " >&6
13458 else
13459 ac_func_search_save_LIBS=$LIBS
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13463 /* Override any GCC internal prototype to avoid an error.
13464 Use char because int might match the return type of a GCC
13465 builtin and then its argument prototype would still apply. */
13466 #ifdef __cplusplus
13467 extern "C"
13468 #endif
13469 char gethostbyname ();
13471 main ()
13473 return gethostbyname ();
13475 return 0;
13477 _ACEOF
13478 for ac_lib in '' nsl; do
13479 if test -z "$ac_lib"; then
13480 ac_res="none required"
13481 else
13482 ac_res=-l$ac_lib
13483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13485 if ac_fn_c_try_link "$LINENO"; then :
13486 ac_cv_search_gethostbyname=$ac_res
13488 rm -f core conftest.err conftest.$ac_objext \
13489 conftest$ac_exeext
13490 if ${ac_cv_search_gethostbyname+:} false; then :
13491 break
13493 done
13494 if ${ac_cv_search_gethostbyname+:} false; then :
13496 else
13497 ac_cv_search_gethostbyname=no
13499 rm conftest.$ac_ext
13500 LIBS=$ac_func_search_save_LIBS
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13503 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13504 ac_res=$ac_cv_search_gethostbyname
13505 if test "$ac_res" != no; then :
13506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13512 $as_echo_n "checking for library containing connect... " >&6; }
13513 if ${ac_cv_search_connect+:} false; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516 ac_func_search_save_LIBS=$LIBS
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518 /* end confdefs.h. */
13520 /* Override any GCC internal prototype to avoid an error.
13521 Use char because int might match the return type of a GCC
13522 builtin and then its argument prototype would still apply. */
13523 #ifdef __cplusplus
13524 extern "C"
13525 #endif
13526 char connect ();
13528 main ()
13530 return connect ();
13532 return 0;
13534 _ACEOF
13535 for ac_lib in '' socket; do
13536 if test -z "$ac_lib"; then
13537 ac_res="none required"
13538 else
13539 ac_res=-l$ac_lib
13540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13542 if ac_fn_c_try_link "$LINENO"; then :
13543 ac_cv_search_connect=$ac_res
13545 rm -f core conftest.err conftest.$ac_objext \
13546 conftest$ac_exeext
13547 if ${ac_cv_search_connect+:} false; then :
13548 break
13550 done
13551 if ${ac_cv_search_connect+:} false; then :
13553 else
13554 ac_cv_search_connect=no
13556 rm conftest.$ac_ext
13557 LIBS=$ac_func_search_save_LIBS
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13560 $as_echo "$ac_cv_search_connect" >&6; }
13561 ac_res=$ac_cv_search_connect
13562 if test "$ac_res" != no; then :
13563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13569 $as_echo_n "checking for library containing inet_aton... " >&6; }
13570 if ${ac_cv_search_inet_aton+:} false; then :
13571 $as_echo_n "(cached) " >&6
13572 else
13573 ac_func_search_save_LIBS=$LIBS
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13577 /* Override any GCC internal prototype to avoid an error.
13578 Use char because int might match the return type of a GCC
13579 builtin and then its argument prototype would still apply. */
13580 #ifdef __cplusplus
13581 extern "C"
13582 #endif
13583 char inet_aton ();
13585 main ()
13587 return inet_aton ();
13589 return 0;
13591 _ACEOF
13592 for ac_lib in '' resolv; do
13593 if test -z "$ac_lib"; then
13594 ac_res="none required"
13595 else
13596 ac_res=-l$ac_lib
13597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13599 if ac_fn_c_try_link "$LINENO"; then :
13600 ac_cv_search_inet_aton=$ac_res
13602 rm -f core conftest.err conftest.$ac_objext \
13603 conftest$ac_exeext
13604 if ${ac_cv_search_inet_aton+:} false; then :
13605 break
13607 done
13608 if ${ac_cv_search_inet_aton+:} false; then :
13610 else
13611 ac_cv_search_inet_aton=no
13613 rm conftest.$ac_ext
13614 LIBS=$ac_func_search_save_LIBS
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13617 $as_echo "$ac_cv_search_inet_aton" >&6; }
13618 ac_res=$ac_cv_search_inet_aton
13619 if test "$ac_res" != no; then :
13620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13625 for ac_func in \
13626 getaddrinfo \
13627 getnameinfo \
13628 getnetbyname \
13629 getprotobyname \
13630 getprotobynumber \
13631 getservbyport \
13632 inet_network \
13633 inet_ntop \
13634 inet_pton \
13635 sendmsg \
13636 socketpair \
13638 do :
13639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13640 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13641 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13642 cat >>confdefs.h <<_ACEOF
13643 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13644 _ACEOF
13647 done
13650 ac_save_LIBS=$LIBS
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13652 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13653 if ${ac_cv_search_clock_gettime+:} false; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 ac_func_search_save_LIBS=$LIBS
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13660 /* Override any GCC internal prototype to avoid an error.
13661 Use char because int might match the return type of a GCC
13662 builtin and then its argument prototype would still apply. */
13663 #ifdef __cplusplus
13664 extern "C"
13665 #endif
13666 char clock_gettime ();
13668 main ()
13670 return clock_gettime ();
13672 return 0;
13674 _ACEOF
13675 for ac_lib in '' rt; do
13676 if test -z "$ac_lib"; then
13677 ac_res="none required"
13678 else
13679 ac_res=-l$ac_lib
13680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13682 if ac_fn_c_try_link "$LINENO"; then :
13683 ac_cv_search_clock_gettime=$ac_res
13685 rm -f core conftest.err conftest.$ac_objext \
13686 conftest$ac_exeext
13687 if ${ac_cv_search_clock_gettime+:} false; then :
13688 break
13690 done
13691 if ${ac_cv_search_clock_gettime+:} false; then :
13693 else
13694 ac_cv_search_clock_gettime=no
13696 rm conftest.$ac_ext
13697 LIBS=$ac_func_search_save_LIBS
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13700 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13701 ac_res=$ac_cv_search_clock_gettime
13702 if test "$ac_res" != no; then :
13703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13705 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13707 test "$ac_res" = "none required" || LIBRT="$ac_res"
13711 LIBS=$ac_save_LIBS
13713 LDAPLIBS=""
13715 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13716 then
13717 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13719 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13721 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13722 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13723 $as_echo_n "(cached) " >&6
13724 else
13725 ac_check_lib_save_LIBS=$LIBS
13726 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13728 /* end confdefs.h. */
13730 /* Override any GCC internal prototype to avoid an error.
13731 Use char because int might match the return type of a GCC
13732 builtin and then its argument prototype would still apply. */
13733 #ifdef __cplusplus
13734 extern "C"
13735 #endif
13736 char ldap_initialize ();
13738 main ()
13740 return ldap_initialize ();
13742 return 0;
13744 _ACEOF
13745 if ac_fn_c_try_link "$LINENO"; then :
13746 ac_cv_lib_ldap_r_ldap_initialize=yes
13747 else
13748 ac_cv_lib_ldap_r_ldap_initialize=no
13750 rm -f core conftest.err conftest.$ac_objext \
13751 conftest$ac_exeext conftest.$ac_ext
13752 LIBS=$ac_check_lib_save_LIBS
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13755 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13756 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13758 $as_echo_n "checking for ber_init in -llber... " >&6; }
13759 if ${ac_cv_lib_lber_ber_init+:} false; then :
13760 $as_echo_n "(cached) " >&6
13761 else
13762 ac_check_lib_save_LIBS=$LIBS
13763 LIBS="-llber $LIBPTHREAD $LIBS"
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h. */
13767 /* Override any GCC internal prototype to avoid an error.
13768 Use char because int might match the return type of a GCC
13769 builtin and then its argument prototype would still apply. */
13770 #ifdef __cplusplus
13771 extern "C"
13772 #endif
13773 char ber_init ();
13775 main ()
13777 return ber_init ();
13779 return 0;
13781 _ACEOF
13782 if ac_fn_c_try_link "$LINENO"; then :
13783 ac_cv_lib_lber_ber_init=yes
13784 else
13785 ac_cv_lib_lber_ber_init=no
13787 rm -f core conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
13789 LIBS=$ac_check_lib_save_LIBS
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13792 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13793 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13795 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13797 LDAPLIBS="-lldap_r -llber"
13804 ac_wine_check_funcs_save_LIBS="$LIBS"
13805 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13806 for ac_func in \
13807 ldap_count_references \
13808 ldap_first_reference \
13809 ldap_next_reference \
13810 ldap_parse_reference \
13811 ldap_parse_sort_control \
13812 ldap_parse_sortresponse_control \
13813 ldap_parse_vlv_control \
13814 ldap_parse_vlvresponse_control
13815 do :
13816 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13817 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13818 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13819 cat >>confdefs.h <<_ACEOF
13820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13821 _ACEOF
13824 done
13826 LIBS="$ac_wine_check_funcs_save_LIBS"
13828 if test "x$LDAPLIBS" = "x"; then :
13829 case "x$with_ldap" in
13830 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13831 xno) ;;
13832 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13833 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13834 esac
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13838 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13839 if ${wine_cv_one_arg_mkdir+:} false; then :
13840 $as_echo_n "(cached) " >&6
13841 else
13842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13843 /* end confdefs.h. */
13844 #include <sys/stat.h>
13846 main ()
13848 mkdir("foo");
13850 return 0;
13852 _ACEOF
13853 if ac_fn_c_try_compile "$LINENO"; then :
13854 wine_cv_one_arg_mkdir=yes
13855 else
13856 wine_cv_one_arg_mkdir=no
13858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13861 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13862 if test "$wine_cv_one_arg_mkdir" = "yes"
13863 then
13865 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13870 $as_echo_n "checking for sched_setaffinity... " >&6; }
13871 if ${wine_cv_have_sched_setaffinity+:} false; then :
13872 $as_echo_n "(cached) " >&6
13873 else
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13876 #define _GNU_SOURCE
13877 #include <sched.h>
13879 main ()
13881 sched_setaffinity(0, 0, 0);
13883 return 0;
13885 _ACEOF
13886 if ac_fn_c_try_link "$LINENO"; then :
13887 wine_cv_have_sched_setaffinity=yes
13888 else
13889 wine_cv_have_sched_setaffinity=no
13891 rm -f core conftest.err conftest.$ac_objext \
13892 conftest$ac_exeext conftest.$ac_ext
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13895 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13896 if test "$wine_cv_have_sched_setaffinity" = "yes"
13897 then
13899 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
13904 $as_echo_n "checking for fallocate... " >&6; }
13905 if ${wine_cv_have_fallocate+:} false; then :
13906 $as_echo_n "(cached) " >&6
13907 else
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13910 #define _GNU_SOURCE
13911 #include <fcntl.h>
13913 main ()
13915 fallocate(-1, 0, 0, 0);
13917 return 0;
13919 _ACEOF
13920 if ac_fn_c_try_link "$LINENO"; then :
13921 wine_cv_have_fallocate=yes
13922 else
13923 wine_cv_have_fallocate=no
13925 rm -f core conftest.err conftest.$ac_objext \
13926 conftest$ac_exeext conftest.$ac_ext
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
13929 $as_echo "$wine_cv_have_fallocate" >&6; }
13930 if test "$wine_cv_have_fallocate" = "yes"
13931 then
13933 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13939 $as_echo_n "checking for inline... " >&6; }
13940 if ${ac_cv_c_inline+:} false; then :
13941 $as_echo_n "(cached) " >&6
13942 else
13943 ac_cv_c_inline=no
13944 for ac_kw in inline __inline__ __inline; do
13945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13946 /* end confdefs.h. */
13947 #ifndef __cplusplus
13948 typedef int foo_t;
13949 static $ac_kw foo_t static_foo () {return 0; }
13950 $ac_kw foo_t foo () {return 0; }
13951 #endif
13953 _ACEOF
13954 if ac_fn_c_try_compile "$LINENO"; then :
13955 ac_cv_c_inline=$ac_kw
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 test "$ac_cv_c_inline" != no && break
13959 done
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13963 $as_echo "$ac_cv_c_inline" >&6; }
13965 case $ac_cv_c_inline in
13966 inline | yes) ;;
13968 case $ac_cv_c_inline in
13969 no) ac_val=;;
13970 *) ac_val=$ac_cv_c_inline;;
13971 esac
13972 cat >>confdefs.h <<_ACEOF
13973 #ifndef __cplusplus
13974 #define inline $ac_val
13975 #endif
13976 _ACEOF
13978 esac
13980 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13981 if test "x$ac_cv_type_mode_t" = xyes; then :
13983 cat >>confdefs.h <<_ACEOF
13984 #define HAVE_MODE_T 1
13985 _ACEOF
13989 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13990 if test "x$ac_cv_type_off_t" = xyes; then :
13992 cat >>confdefs.h <<_ACEOF
13993 #define HAVE_OFF_T 1
13994 _ACEOF
13998 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13999 if test "x$ac_cv_type_pid_t" = xyes; then :
14001 cat >>confdefs.h <<_ACEOF
14002 #define HAVE_PID_T 1
14003 _ACEOF
14007 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14008 if test "x$ac_cv_type_size_t" = xyes; then :
14010 cat >>confdefs.h <<_ACEOF
14011 #define HAVE_SIZE_T 1
14012 _ACEOF
14016 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14017 if test "x$ac_cv_type_ssize_t" = xyes; then :
14019 cat >>confdefs.h <<_ACEOF
14020 #define HAVE_SSIZE_T 1
14021 _ACEOF
14025 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14026 if test "x$ac_cv_type_long_long" = xyes; then :
14028 cat >>confdefs.h <<_ACEOF
14029 #define HAVE_LONG_LONG 1
14030 _ACEOF
14034 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
14035 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
14037 cat >>confdefs.h <<_ACEOF
14038 #define HAVE_FSBLKCNT_T 1
14039 _ACEOF
14043 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
14044 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
14046 cat >>confdefs.h <<_ACEOF
14047 #define HAVE_FSFILCNT_T 1
14048 _ACEOF
14053 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
14054 #include <signal.h>
14056 if test "x$ac_cv_type_sigset_t" = xyes; then :
14058 cat >>confdefs.h <<_ACEOF
14059 #define HAVE_SIGSET_T 1
14060 _ACEOF
14065 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
14067 if test "x$ac_cv_type_request_sense" = xyes; then :
14069 cat >>confdefs.h <<_ACEOF
14070 #define HAVE_REQUEST_SENSE 1
14071 _ACEOF
14077 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
14078 #ifdef HAVE_SYS_SOCKET_H
14079 #include <sys/socket.h>
14080 #endif
14081 #ifdef HAVE_SYS_SOCKETVAR_H
14082 #include <sys/socketvar.h>
14083 #endif
14084 #ifdef HAVE_NET_ROUTE_H
14085 #include <net/route.h>
14086 #endif
14087 #ifdef HAVE_NETINET_IN_H
14088 #include <netinet/in.h>
14089 #endif
14090 #ifdef HAVE_NETINET_IN_SYSTM_H
14091 #include <netinet/in_systm.h>
14092 #endif
14093 #ifdef HAVE_NETINET_IP_H
14094 #include <netinet/ip.h>
14095 #endif
14096 #ifdef HAVE_NETINET_IN_PCB_H
14097 #include <netinet/in_pcb.h>
14098 #endif
14100 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
14102 cat >>confdefs.h <<_ACEOF
14103 #define HAVE_STRUCT_XINPGEN 1
14104 _ACEOF
14110 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
14111 #include <linux/input.h>
14112 #endif
14114 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
14116 cat >>confdefs.h <<_ACEOF
14117 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
14118 _ACEOF
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
14125 $as_echo_n "checking for sigaddset... " >&6; }
14126 if ${wine_cv_have_sigaddset+:} false; then :
14127 $as_echo_n "(cached) " >&6
14128 else
14129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14130 /* end confdefs.h. */
14131 #include <signal.h>
14133 main ()
14135 sigset_t set; sigaddset(&set,SIGTERM);
14137 return 0;
14139 _ACEOF
14140 if ac_fn_c_try_link "$LINENO"; then :
14141 wine_cv_have_sigaddset=yes
14142 else
14143 wine_cv_have_sigaddset=no
14145 rm -f core conftest.err conftest.$ac_objext \
14146 conftest$ac_exeext conftest.$ac_ext
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
14149 $as_echo "$wine_cv_have_sigaddset" >&6; }
14150 if test "$wine_cv_have_sigaddset" = "yes"
14151 then
14153 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14159 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
14160 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
14161 $as_echo_n "(cached) " >&6
14162 else
14163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14165 #include <netdb.h>
14167 main ()
14170 char *name=0;
14171 struct hostent he;
14172 struct hostent *result;
14173 char *buf=0;
14174 int bufsize=0;
14175 int errnr;
14176 char *addr=0;
14177 int addrlen=0;
14178 int addrtype=0;
14179 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14180 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14183 return 0;
14185 _ACEOF
14186 if ac_fn_c_try_link "$LINENO"; then :
14187 wine_cv_linux_gethostbyname_r_6=yes
14188 else
14189 wine_cv_linux_gethostbyname_r_6=no
14192 rm -f core conftest.err conftest.$ac_objext \
14193 conftest$ac_exeext conftest.$ac_ext
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
14197 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
14198 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14199 then
14201 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
14205 if test "$ac_cv_header_linux_joystick_h" = "yes"
14206 then
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14208 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
14209 if ${wine_cv_linux_joystick_22_api+:} false; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213 /* end confdefs.h. */
14215 #include <sys/ioctl.h>
14216 #include <sys/types.h>
14217 #include <linux/joystick.h>
14219 struct js_event blub;
14220 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14221 #error "no 2.2 header"
14222 #endif
14225 main ()
14227 /*empty*/
14229 return 0;
14231 _ACEOF
14232 if ac_fn_c_try_compile "$LINENO"; then :
14233 wine_cv_linux_joystick_22_api=yes
14234 else
14235 wine_cv_linux_joystick_22_api=no
14237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
14241 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
14242 if test "$wine_cv_linux_joystick_22_api" = "yes"
14243 then
14245 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
14251 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
14252 #ifdef HAVE_SYS_PARAM_H
14253 # include <sys/param.h>
14254 #endif
14255 #ifdef HAVE_SYS_MOUNT_H
14256 # include <sys/mount.h>
14257 #endif
14258 #ifdef HAVE_SYS_VFS_H
14259 # include <sys/vfs.h>
14260 #endif
14261 #ifdef HAVE_SYS_STATFS_H
14262 # include <sys/statfs.h>
14263 #endif
14265 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
14267 cat >>confdefs.h <<_ACEOF
14268 #define HAVE_STRUCT_STATFS_F_BFREE 1
14269 _ACEOF
14273 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
14274 #ifdef HAVE_SYS_PARAM_H
14275 # include <sys/param.h>
14276 #endif
14277 #ifdef HAVE_SYS_MOUNT_H
14278 # include <sys/mount.h>
14279 #endif
14280 #ifdef HAVE_SYS_VFS_H
14281 # include <sys/vfs.h>
14282 #endif
14283 #ifdef HAVE_SYS_STATFS_H
14284 # include <sys/statfs.h>
14285 #endif
14287 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
14289 cat >>confdefs.h <<_ACEOF
14290 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
14291 _ACEOF
14295 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
14296 #ifdef HAVE_SYS_PARAM_H
14297 # include <sys/param.h>
14298 #endif
14299 #ifdef HAVE_SYS_MOUNT_H
14300 # include <sys/mount.h>
14301 #endif
14302 #ifdef HAVE_SYS_VFS_H
14303 # include <sys/vfs.h>
14304 #endif
14305 #ifdef HAVE_SYS_STATFS_H
14306 # include <sys/statfs.h>
14307 #endif
14309 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
14311 cat >>confdefs.h <<_ACEOF
14312 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
14313 _ACEOF
14317 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
14318 #ifdef HAVE_SYS_PARAM_H
14319 # include <sys/param.h>
14320 #endif
14321 #ifdef HAVE_SYS_MOUNT_H
14322 # include <sys/mount.h>
14323 #endif
14324 #ifdef HAVE_SYS_VFS_H
14325 # include <sys/vfs.h>
14326 #endif
14327 #ifdef HAVE_SYS_STATFS_H
14328 # include <sys/statfs.h>
14329 #endif
14331 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
14333 cat >>confdefs.h <<_ACEOF
14334 #define HAVE_STRUCT_STATFS_F_FFREE 1
14335 _ACEOF
14339 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
14340 #ifdef HAVE_SYS_PARAM_H
14341 # include <sys/param.h>
14342 #endif
14343 #ifdef HAVE_SYS_MOUNT_H
14344 # include <sys/mount.h>
14345 #endif
14346 #ifdef HAVE_SYS_VFS_H
14347 # include <sys/vfs.h>
14348 #endif
14349 #ifdef HAVE_SYS_STATFS_H
14350 # include <sys/statfs.h>
14351 #endif
14353 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
14355 cat >>confdefs.h <<_ACEOF
14356 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
14357 _ACEOF
14361 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
14362 #ifdef HAVE_SYS_PARAM_H
14363 # include <sys/param.h>
14364 #endif
14365 #ifdef HAVE_SYS_MOUNT_H
14366 # include <sys/mount.h>
14367 #endif
14368 #ifdef HAVE_SYS_VFS_H
14369 # include <sys/vfs.h>
14370 #endif
14371 #ifdef HAVE_SYS_STATFS_H
14372 # include <sys/statfs.h>
14373 #endif
14375 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
14377 cat >>confdefs.h <<_ACEOF
14378 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
14379 _ACEOF
14385 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
14386 #include <sys/statvfs.h>
14387 #endif
14389 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
14391 cat >>confdefs.h <<_ACEOF
14392 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
14393 _ACEOF
14399 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
14400 #include <dirent.h>
14401 #endif
14403 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
14405 cat >>confdefs.h <<_ACEOF
14406 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
14407 _ACEOF
14413 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
14414 #ifdef HAVE_SYS_SOCKET_H
14415 # include <sys/socket.h>
14416 #endif
14417 #ifdef HAVE_SYS_UN_H
14418 # include <sys/un.h>
14419 #endif
14421 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14423 cat >>confdefs.h <<_ACEOF
14424 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14425 _ACEOF
14429 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14430 #ifdef HAVE_SYS_SOCKET_H
14431 # include <sys/socket.h>
14432 #endif
14433 #ifdef HAVE_SYS_UN_H
14434 # include <sys/un.h>
14435 #endif
14437 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14439 cat >>confdefs.h <<_ACEOF
14440 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14441 _ACEOF
14445 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14446 #ifdef HAVE_SYS_SOCKET_H
14447 # include <sys/socket.h>
14448 #endif
14449 #ifdef HAVE_SYS_UN_H
14450 # include <sys/un.h>
14451 #endif
14453 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14455 cat >>confdefs.h <<_ACEOF
14456 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14457 _ACEOF
14463 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14464 #ifdef HAVE_SCSI_SG_H
14465 #include <scsi/sg.h>
14466 #endif
14468 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14470 cat >>confdefs.h <<_ACEOF
14471 #define HAVE_SCSIREQ_T_CMD 1
14472 _ACEOF
14476 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>
14477 #ifdef HAVE_SCSI_SG_H
14478 #include <scsi/sg.h>
14479 #endif
14481 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14483 cat >>confdefs.h <<_ACEOF
14484 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14485 _ACEOF
14491 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14493 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14495 cat >>confdefs.h <<_ACEOF
14496 #define HAVE_SIGINFO_T_SI_FD 1
14497 _ACEOF
14503 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14504 #ifdef HAVE_SYS_MTIO_H
14505 #include <sys/mtio.h>
14506 #endif
14508 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14510 cat >>confdefs.h <<_ACEOF
14511 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14512 _ACEOF
14516 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14517 #ifdef HAVE_SYS_MTIO_H
14518 #include <sys/mtio.h>
14519 #endif
14521 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14523 cat >>confdefs.h <<_ACEOF
14524 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14525 _ACEOF
14529 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14530 #ifdef HAVE_SYS_MTIO_H
14531 #include <sys/mtio.h>
14532 #endif
14534 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14536 cat >>confdefs.h <<_ACEOF
14537 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14538 _ACEOF
14544 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14545 #include <getopt.h>
14546 #endif
14548 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14550 cat >>confdefs.h <<_ACEOF
14551 #define HAVE_STRUCT_OPTION_NAME 1
14552 _ACEOF
14558 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14559 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14561 cat >>confdefs.h <<_ACEOF
14562 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14563 _ACEOF
14567 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14568 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14570 cat >>confdefs.h <<_ACEOF
14571 #define HAVE_STRUCT_STAT_ST_MTIM 1
14572 _ACEOF
14576 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
14577 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
14579 cat >>confdefs.h <<_ACEOF
14580 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
14581 _ACEOF
14585 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14586 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14588 cat >>confdefs.h <<_ACEOF
14589 #define HAVE_STRUCT_STAT_ST_CTIM 1
14590 _ACEOF
14594 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
14595 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
14597 cat >>confdefs.h <<_ACEOF
14598 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
14599 _ACEOF
14603 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14604 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14606 cat >>confdefs.h <<_ACEOF
14607 #define HAVE_STRUCT_STAT_ST_ATIM 1
14608 _ACEOF
14612 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
14613 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
14615 cat >>confdefs.h <<_ACEOF
14616 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
14617 _ACEOF
14621 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
14622 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
14624 cat >>confdefs.h <<_ACEOF
14625 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
14626 _ACEOF
14630 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
14631 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
14633 cat >>confdefs.h <<_ACEOF
14634 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
14635 _ACEOF
14639 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
14640 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
14642 cat >>confdefs.h <<_ACEOF
14643 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
14644 _ACEOF
14648 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
14649 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
14651 cat >>confdefs.h <<_ACEOF
14652 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
14653 _ACEOF
14657 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
14658 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
14660 cat >>confdefs.h <<_ACEOF
14661 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
14662 _ACEOF
14668 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
14669 #include <sys/types.h>
14670 #endif
14671 #ifdef HAVE_NETINET_IN_H
14672 #include <netinet/in.h>
14673 #endif
14675 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14677 cat >>confdefs.h <<_ACEOF
14678 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14679 _ACEOF
14685 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14686 #include <sys/types.h>
14687 #endif
14688 #ifdef HAVE_NETINET_IN_H
14689 # include <netinet/in.h>
14690 #endif
14691 #ifdef HAVE_ARPA_NAMESER_H
14692 # include <arpa/nameser.h>
14693 #endif
14695 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14697 cat >>confdefs.h <<_ACEOF
14698 #define HAVE_NS_MSG__MSG_PTR 1
14699 _ACEOF
14705 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
14706 #include <sys/types.h>
14707 #endif
14708 #ifdef HAVE_NETINET_IP_H
14709 #include <netinet/ip.h>
14710 #endif
14711 #ifdef HAVE_NETINET_IP_ICMP_H
14712 #include <netinet/ip_icmp.h>
14713 #endif
14714 #ifdef HAVE_NETINET_ICMP_VAR_H
14715 #include <netinet/icmp_var.h>
14716 #endif
14718 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14720 cat >>confdefs.h <<_ACEOF
14721 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14722 _ACEOF
14728 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14729 #include <sys/types.h>
14730 #endif
14731 #ifdef HAVE_ALIAS_H
14732 #include <alias.h>
14733 #endif
14734 #ifdef HAVE_SYS_SOCKET_H
14735 #include <sys/socket.h>
14736 #endif
14737 #ifdef HAVE_SYS_SOCKETVAR_H
14738 #include <sys/socketvar.h>
14739 #endif
14740 #ifdef HAVE_SYS_TIMEOUT_H
14741 #include <sys/timeout.h>
14742 #endif
14743 #ifdef HAVE_NETINET_IN_H
14744 #include <netinet/in.h>
14745 #endif
14746 #ifdef HAVE_NETINET_IN_SYSTM_H
14747 #include <netinet/in_systm.h>
14748 #endif
14749 #ifdef HAVE_NETINET_IP_H
14750 #include <netinet/ip.h>
14751 #endif
14752 #ifdef HAVE_NETINET_IP_VAR_H
14753 #include <netinet/ip_var.h>
14754 #endif
14755 #ifdef HAVE_NETINET_IP_ICMP_H
14756 #include <netinet/ip_icmp.h>
14757 #endif
14758 #ifdef HAVE_NETINET_ICMP_VAR_H
14759 #include <netinet/icmp_var.h>
14760 #endif
14762 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14764 cat >>confdefs.h <<_ACEOF
14765 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14766 _ACEOF
14772 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
14773 #include <sys/types.h>
14774 #endif
14775 #ifdef HAVE_SYS_SOCKETVAR_H
14776 #include <sys/socketvar.h>
14777 #endif
14778 #ifdef HAVE_NETINET_IN_H
14779 #include <netinet/in.h>
14780 #endif
14781 #ifdef HAVE_NETINET_IP_VAR_H
14782 #include <netinet/ip_var.h>
14783 #endif
14785 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14787 cat >>confdefs.h <<_ACEOF
14788 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14789 _ACEOF
14795 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
14796 #include <netinet/ip_var.h>
14797 #endif
14799 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14801 cat >>confdefs.h <<_ACEOF
14802 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14803 _ACEOF
14809 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
14810 #include <sys/types.h>
14811 #endif
14812 #ifdef HAVE_SYS_SOCKETVAR_H
14813 #include <sys/socketvar.h>
14814 #endif
14815 #ifdef HAVE_NETINET_IN_H
14816 #include <netinet/in.h>
14817 #endif
14818 #ifdef HAVE_NETINET_TCP_H
14819 #include <netinet/tcp.h>
14820 #endif
14821 #ifdef HAVE_NETINET_TCP_VAR_H
14822 #include <netinet/tcp_var.h>
14823 #endif
14825 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14827 cat >>confdefs.h <<_ACEOF
14828 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14829 _ACEOF
14835 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
14836 #include <netinet/tcp_var.h>
14837 #endif
14839 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14841 cat >>confdefs.h <<_ACEOF
14842 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14843 _ACEOF
14849 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
14850 #include <sys/types.h>
14851 #endif
14852 #ifdef HAVE_NETINET_IN_H
14853 #include <netinet/in.h>
14854 #endif
14855 #ifdef HAVE_NETINET_IP_VAR_H
14856 #include <netinet/ip_var.h>
14857 #endif
14858 #ifdef HAVE_NETINET_UDP_H
14859 #include <netinet/udp.h>
14860 #endif
14861 #ifdef HAVE_NETINET_UDP_VAR_H
14862 #include <netinet/udp_var.h>
14863 #endif
14865 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
14867 cat >>confdefs.h <<_ACEOF
14868 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
14869 _ACEOF
14875 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14876 #include <sys/types.h>
14877 #endif
14878 #ifdef HAVE_NET_IF_H
14879 # include <net/if.h>
14880 #endif
14882 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14884 cat >>confdefs.h <<_ACEOF
14885 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14886 _ACEOF
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14893 $as_echo_n "checking for timezone variable... " >&6; }
14894 if ${ac_cv_have_timezone+:} false; then :
14895 $as_echo_n "(cached) " >&6
14896 else
14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14899 #include <time.h>
14901 main ()
14903 timezone = 1
14905 return 0;
14907 _ACEOF
14908 if ac_fn_c_try_link "$LINENO"; then :
14909 ac_cv_have_timezone="yes"
14910 else
14911 ac_cv_have_timezone="no"
14913 rm -f core conftest.err conftest.$ac_objext \
14914 conftest$ac_exeext conftest.$ac_ext
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14917 $as_echo "$ac_cv_have_timezone" >&6; }
14918 if test "$ac_cv_have_timezone" = "yes"
14919 then
14921 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14925 $as_echo_n "checking for daylight variable... " >&6; }
14926 if ${ac_cv_have_daylight+:} false; then :
14927 $as_echo_n "(cached) " >&6
14928 else
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14931 #include <time.h>
14933 main ()
14935 daylight = 1
14937 return 0;
14939 _ACEOF
14940 if ac_fn_c_try_link "$LINENO"; then :
14941 ac_cv_have_daylight="yes"
14942 else
14943 ac_cv_have_daylight="no"
14945 rm -f core conftest.err conftest.$ac_objext \
14946 conftest$ac_exeext conftest.$ac_ext
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14949 $as_echo "$ac_cv_have_daylight" >&6; }
14950 if test "$ac_cv_have_daylight" = "yes"
14951 then
14953 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14957 ac_save_LIBS="$LIBS"
14958 LIBS="$LIBS -lm"
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14960 $as_echo_n "checking for isinf... " >&6; }
14961 if ${ac_cv_have_isinf+:} false; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14965 /* end confdefs.h. */
14966 #include <math.h>
14968 main ()
14970 float f = 0.0; return isinf(f)
14972 return 0;
14974 _ACEOF
14975 if ac_fn_c_try_link "$LINENO"; then :
14976 ac_cv_have_isinf="yes"
14977 else
14978 ac_cv_have_isinf="no"
14980 rm -f core conftest.err conftest.$ac_objext \
14981 conftest$ac_exeext conftest.$ac_ext
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14984 $as_echo "$ac_cv_have_isinf" >&6; }
14985 if test "$ac_cv_have_isinf" = "yes"
14986 then
14988 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14993 $as_echo_n "checking for isnan... " >&6; }
14994 if ${ac_cv_have_isnan+:} false; then :
14995 $as_echo_n "(cached) " >&6
14996 else
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999 #include <math.h>
15001 main ()
15003 float f = 0.0; return isnan(f)
15005 return 0;
15007 _ACEOF
15008 if ac_fn_c_try_link "$LINENO"; then :
15009 ac_cv_have_isnan="yes"
15010 else
15011 ac_cv_have_isnan="no"
15013 rm -f core conftest.err conftest.$ac_objext \
15014 conftest$ac_exeext conftest.$ac_ext
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
15017 $as_echo "$ac_cv_have_isnan" >&6; }
15018 if test "$ac_cv_have_isnan" = "yes"
15019 then
15021 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
15024 LIBS="$ac_save_LIBS"
15027 case $host_cpu in
15028 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
15029 $as_echo_n "checking whether we need to define __i386__... " >&6; }
15030 if ${ac_cv_cpp_def___i386__+:} false; then :
15031 $as_echo_n "(cached) " >&6
15032 else
15033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h. */
15035 #ifndef __i386__
15037 #endif
15038 _ACEOF
15039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15040 $EGREP "yes" >/dev/null 2>&1; then :
15041 ac_cv_cpp_def___i386__=yes
15042 else
15043 ac_cv_cpp_def___i386__=no
15045 rm -f conftest*
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
15049 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
15050 if test $ac_cv_cpp_def___i386__ = yes; then :
15051 CFLAGS="$CFLAGS -D__i386__"
15052 LINTFLAGS="$LINTFLAGS -D__i386__"
15053 fi ;;
15054 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
15055 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
15056 if ${ac_cv_cpp_def___x86_64__+:} false; then :
15057 $as_echo_n "(cached) " >&6
15058 else
15059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060 /* end confdefs.h. */
15061 #ifndef __x86_64__
15063 #endif
15064 _ACEOF
15065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15066 $EGREP "yes" >/dev/null 2>&1; then :
15067 ac_cv_cpp_def___x86_64__=yes
15068 else
15069 ac_cv_cpp_def___x86_64__=no
15071 rm -f conftest*
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
15075 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
15076 if test $ac_cv_cpp_def___x86_64__ = yes; then :
15077 CFLAGS="$CFLAGS -D__x86_64__"
15078 LINTFLAGS="$LINTFLAGS -D__x86_64__"
15079 fi ;;
15080 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
15081 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
15082 if ${ac_cv_cpp_def___sparc64__+:} false; then :
15083 $as_echo_n "(cached) " >&6
15084 else
15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15086 /* end confdefs.h. */
15087 #ifndef __sparc64__
15089 #endif
15090 _ACEOF
15091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15092 $EGREP "yes" >/dev/null 2>&1; then :
15093 ac_cv_cpp_def___sparc64__=yes
15094 else
15095 ac_cv_cpp_def___sparc64__=no
15097 rm -f conftest*
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
15101 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
15102 if test $ac_cv_cpp_def___sparc64__ = yes; then :
15103 CFLAGS="$CFLAGS -D__sparc64__"
15104 LINTFLAGS="$LINTFLAGS -D__sparc64__"
15105 fi ;;
15106 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
15107 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
15108 if ${ac_cv_cpp_def___sparc__+:} false; then :
15109 $as_echo_n "(cached) " >&6
15110 else
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15113 #ifndef __sparc__
15115 #endif
15116 _ACEOF
15117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15118 $EGREP "yes" >/dev/null 2>&1; then :
15119 ac_cv_cpp_def___sparc__=yes
15120 else
15121 ac_cv_cpp_def___sparc__=no
15123 rm -f conftest*
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
15127 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
15128 if test $ac_cv_cpp_def___sparc__ = yes; then :
15129 CFLAGS="$CFLAGS -D__sparc__"
15130 LINTFLAGS="$LINTFLAGS -D__sparc__"
15131 fi ;;
15132 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
15133 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
15134 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
15135 $as_echo_n "(cached) " >&6
15136 else
15137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138 /* end confdefs.h. */
15139 #ifndef __powerpc64__
15141 #endif
15142 _ACEOF
15143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15144 $EGREP "yes" >/dev/null 2>&1; then :
15145 ac_cv_cpp_def___powerpc64__=yes
15146 else
15147 ac_cv_cpp_def___powerpc64__=no
15149 rm -f conftest*
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
15153 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
15154 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
15155 CFLAGS="$CFLAGS -D__powerpc64__"
15156 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
15157 fi ;;
15158 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
15159 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
15160 if ${ac_cv_cpp_def___powerpc__+:} false; then :
15161 $as_echo_n "(cached) " >&6
15162 else
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15165 #ifndef __powerpc__
15167 #endif
15168 _ACEOF
15169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15170 $EGREP "yes" >/dev/null 2>&1; then :
15171 ac_cv_cpp_def___powerpc__=yes
15172 else
15173 ac_cv_cpp_def___powerpc__=no
15175 rm -f conftest*
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
15179 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
15180 if test $ac_cv_cpp_def___powerpc__ = yes; then :
15181 CFLAGS="$CFLAGS -D__powerpc__"
15182 LINTFLAGS="$LINTFLAGS -D__powerpc__"
15183 fi ;;
15184 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
15185 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
15186 if ${ac_cv_cpp_def___aarch64__+:} false; then :
15187 $as_echo_n "(cached) " >&6
15188 else
15189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15191 #ifndef __aarch64__
15193 #endif
15194 _ACEOF
15195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15196 $EGREP "yes" >/dev/null 2>&1; then :
15197 ac_cv_cpp_def___aarch64__=yes
15198 else
15199 ac_cv_cpp_def___aarch64__=no
15201 rm -f conftest*
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
15205 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
15206 if test $ac_cv_cpp_def___aarch64__ = yes; then :
15207 CFLAGS="$CFLAGS -D__aarch64__"
15208 LINTFLAGS="$LINTFLAGS -D__aarch64__"
15209 fi ;;
15210 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
15211 $as_echo_n "checking whether we need to define __arm__... " >&6; }
15212 if ${ac_cv_cpp_def___arm__+:} false; then :
15213 $as_echo_n "(cached) " >&6
15214 else
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15217 #ifndef __arm__
15219 #endif
15220 _ACEOF
15221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15222 $EGREP "yes" >/dev/null 2>&1; then :
15223 ac_cv_cpp_def___arm__=yes
15224 else
15225 ac_cv_cpp_def___arm__=no
15227 rm -f conftest*
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
15231 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
15232 if test $ac_cv_cpp_def___arm__ = yes; then :
15233 CFLAGS="$CFLAGS -D__arm__"
15234 LINTFLAGS="$LINTFLAGS -D__arm__"
15235 fi ;;
15236 esac
15238 case $host_vendor in
15239 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
15240 $as_echo_n "checking whether we need to define __sun__... " >&6; }
15241 if ${ac_cv_cpp_def___sun__+:} false; then :
15242 $as_echo_n "(cached) " >&6
15243 else
15244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245 /* end confdefs.h. */
15246 #ifndef __sun__
15248 #endif
15249 _ACEOF
15250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15251 $EGREP "yes" >/dev/null 2>&1; then :
15252 ac_cv_cpp_def___sun__=yes
15253 else
15254 ac_cv_cpp_def___sun__=no
15256 rm -f conftest*
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
15260 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
15261 if test $ac_cv_cpp_def___sun__ = yes; then :
15262 CFLAGS="$CFLAGS -D__sun__"
15263 LINTFLAGS="$LINTFLAGS -D__sun__"
15264 fi ;;
15265 esac
15271 ac_config_commands="$ac_config_commands include/stamp-h"
15274 ALL_MAKEFILE_DEPENDS="
15275 # Rules automatically generated by configure
15277 .INIT: Makefile
15278 .MAKEFILEDEPS:
15279 all: Makefile
15280 Makefile: Makefile.in Make.vars.in Make.rules config.status
15281 @./config.status Make.tmp Makefile"
15283 ALL_POT_FILES=""
15284 ALL_TEST_RESOURCES=""
15287 wine_fn_append_file ()
15289 as_fn_append $1 " \\$as_nl $2"
15292 wine_fn_append_rule ()
15294 as_fn_append $1 "$as_nl$2"
15297 wine_fn_has_flag ()
15299 expr ",$2," : ".*,$1,.*" >/dev/null
15302 wine_fn_all_dir_rules ()
15304 ac_dir=$1
15305 ac_alldeps=$2
15306 ac_makedep="\$(MAKEDEP)"
15307 ac_input=Make.vars.in:$ac_dir/Makefile.in
15308 if test $ac_dir != tools
15309 then
15310 ac_alldeps="$2 $ac_makedep"
15311 else
15312 ac_alldeps="$2 include/config.h"
15314 case $2 in
15315 *.in) ac_input=$ac_input:$2 ;;
15316 *) ac_makedep="$2 $ac_makedep" ;;
15317 esac
15319 wine_fn_append_file ALL_DIRS $ac_dir
15320 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15321 "__clean__: $ac_dir/__clean__
15322 .PHONY: $ac_dir/__clean__
15323 $ac_dir/__clean__: $ac_dir/Makefile
15324 @cd $ac_dir && \$(MAKE) clean
15325 \$(RM) $ac_dir/Makefile
15326 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
15327 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
15328 depend: $ac_dir/__depend__
15329 .PHONY: $ac_dir/__depend__
15330 $ac_dir/__depend__: $ac_makedep dummy
15331 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
15334 wine_fn_pot_rules ()
15336 ac_dir=$1
15337 ac_flags=$2
15339 test "x$with_gettextpo" = xyes || return
15341 if wine_fn_has_flag mc $ac_flags
15342 then
15343 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
15344 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15345 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
15346 @cd $ac_dir && \$(MAKE) msg.pot
15347 $ac_dir/msg.pot: tools/wmc include"
15349 if wine_fn_has_flag po $ac_flags
15350 then
15351 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
15352 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15353 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
15354 @cd $ac_dir && \$(MAKE) rsrc.pot
15355 $ac_dir/rsrc.pot: tools/wrc include"
15359 wine_fn_config_makefile ()
15361 ac_dir=$1
15362 ac_enable=$2
15363 ac_flags=$3
15364 ac_rules=$4
15365 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15366 return 0
15369 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
15370 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15371 "all: $ac_dir
15372 .PHONY: $ac_dir
15373 $ac_dir: $ac_dir/Makefile dummy
15374 @cd $ac_dir && \$(MAKE)"
15376 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
15378 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15379 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15380 $ac_dir/__install__:: $ac_dir
15381 @cd $ac_dir && \$(MAKE) install
15382 $ac_dir/__uninstall__:: $ac_dir/Makefile
15383 @cd $ac_dir && \$(MAKE) uninstall
15384 install:: $ac_dir/__install__
15385 __uninstall__: $ac_dir/__uninstall__"
15387 if wine_fn_has_flag install-lib $ac_flags
15388 then
15389 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15390 ".PHONY: $ac_dir/__install-lib__
15391 $ac_dir/__install-lib__:: $ac_dir
15392 @cd $ac_dir && \$(MAKE) install-lib
15393 install-lib:: $ac_dir/__install-lib__"
15396 if wine_fn_has_flag install-dev $ac_flags
15397 then
15398 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15399 ".PHONY: $ac_dir/__install-dev
15400 $ac_dir/__install-dev__:: $ac_dir
15401 @cd $ac_dir && \$(MAKE) install-dev
15402 install-dev:: $ac_dir/__install-dev__"
15406 wine_fn_config_lib ()
15408 ac_name=$1
15409 ac_flags=$2
15410 ac_dir=dlls/$ac_name
15411 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
15413 if wine_fn_has_flag install-dev $ac_flags
15414 then :
15415 else
15416 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15417 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15418 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
15419 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15420 $ac_dir/__uninstall__::
15421 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15422 install install-dev:: $ac_dir/__install__
15423 __uninstall__: $ac_dir/__uninstall__"
15426 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
15427 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
15430 wine_fn_config_dll ()
15432 ac_name=$1
15433 ac_dir=dlls/$ac_name
15434 ac_enable=$2
15435 ac_flags=$3
15436 ac_implib=${4:-$ac_name}
15437 ac_file=$ac_dir/lib$ac_implib
15438 ac_dll=$ac_name
15439 ac_deps="tools/widl tools/winebuild tools/winegcc include"
15440 ac_implibflags=""
15442 case $ac_name in
15443 *16) ac_implibflags=" -m16" ;;
15444 *.*) ;;
15445 *) ac_dll=$ac_dll.dll ;;
15446 esac
15448 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
15450 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15451 test "$ac_enable" != enable_win16 || return 0
15452 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
15453 else
15454 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15455 "$ac_dir: __builddeps__
15456 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
15457 @cd $ac_dir && \$(MAKE) \$@"
15459 if wine_fn_has_flag install-lib $ac_flags
15460 then :
15461 else
15462 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15463 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
15464 install install-lib:: $ac_dir/__install-lib__
15465 __uninstall__: $ac_dir/__uninstall__"
15466 if test -n "$DLLEXT"
15467 then
15468 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15469 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15470 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
15471 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
15472 $ac_dir/__uninstall__::
15473 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
15474 else
15475 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15476 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15477 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
15478 $ac_dir/__uninstall__::
15479 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
15483 wine_fn_pot_rules $ac_dir $ac_flags
15486 if wine_fn_has_flag staticimplib $ac_flags
15487 then
15488 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15489 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
15490 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
15491 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
15492 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
15493 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
15494 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
15495 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15496 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15497 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15498 $ac_dir/__uninstall__::
15499 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15500 install install-dev:: $ac_dir/__install-dev__
15501 __uninstall__: $ac_dir/__uninstall__"
15503 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
15504 then
15505 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15506 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
15507 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
15508 $ac_dir/__uninstall__::
15509 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
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/Makefile dummy
15517 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
15520 elif wine_fn_has_flag implib $ac_flags
15521 then
15522 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15523 "__builddeps__: $ac_file.$IMPLIBEXT
15524 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15525 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15526 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15527 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15528 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15529 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15530 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15531 $ac_dir/__uninstall__::
15532 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15533 install install-dev:: $ac_dir/__install-dev__
15534 __uninstall__: $ac_dir/__uninstall__"
15535 if test "x$CROSSTEST_DISABLE" = x
15536 then
15537 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15538 "__builddeps__: $ac_file.cross.a
15539 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15540 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
15543 if test "$ac_name" != "$ac_implib"
15544 then
15545 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15546 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
15547 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
15548 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
15549 clean::
15550 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
15551 if test "x$CROSSTEST_DISABLE" = x
15552 then
15553 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15554 "__builddeps__: dlls/lib$ac_implib.cross.a
15555 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
15556 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
15562 wine_fn_config_program ()
15564 ac_name=$1
15565 ac_dir=programs/$ac_name
15566 ac_enable=$2
15567 ac_flags=$3
15568 ac_program=$ac_name
15570 case $ac_name in
15571 *.*) ;;
15572 *) ac_program=$ac_program.exe ;;
15573 esac
15575 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
15577 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15579 else
15580 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15581 "$ac_dir: __builddeps__"
15583 wine_fn_pot_rules $ac_dir $ac_flags
15585 wine_fn_has_flag install $ac_flags || return
15586 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15587 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15588 install install-lib:: $ac_dir/__install__
15589 __uninstall__: $ac_dir/__uninstall__"
15591 if test -n "$DLLEXT"
15592 then
15593 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15594 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15595 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
15596 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
15597 $ac_dir/__uninstall__::
15598 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
15600 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
15601 then
15602 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15603 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
15604 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
15605 $ac_dir/__uninstall__::
15606 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
15608 else
15609 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15610 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15611 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
15612 $ac_dir/__uninstall__::
15613 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
15616 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
15617 then
15618 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15619 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
15620 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
15621 $ac_dir/__uninstall__::
15622 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
15627 wine_fn_config_test ()
15629 ac_dir=$1
15630 ac_name=$2
15631 ac_flags=$3
15632 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
15633 wine_fn_all_dir_rules $ac_dir Maketest.rules
15635 if test "x$enable_tests" = xno; then :
15637 else
15638 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15639 "all: $ac_dir
15640 .PHONY: $ac_dir
15641 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
15642 @cd $ac_dir && \$(MAKE)
15643 programs/winetest: $ac_dir
15644 check test: $ac_dir/__test__
15645 .PHONY: $ac_dir/__test__
15646 $ac_dir/__test__: dummy
15647 @cd $ac_dir && \$(MAKE) test
15648 testclean::
15649 \$(RM) $ac_dir/*.ok"
15651 if test "x$CROSSTEST_DISABLE" = x
15652 then
15653 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15654 "crosstest: $ac_dir/__crosstest__
15655 .PHONY: $ac_dir/__crosstest__
15656 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
15657 @cd $ac_dir && \$(MAKE) crosstest"
15662 wine_fn_config_tool ()
15664 ac_dir=$1
15665 ac_flags=$2
15666 if test "x$enable_tools" = xno; then :
15667 return 0
15670 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
15672 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
15673 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
15674 case $ac_dir in
15675 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
15676 esac
15679 wine_fn_config_makerules ()
15681 ac_rules=$1
15682 ac_deps=$2
15683 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15684 "$ac_rules: $ac_rules.in $ac_deps config.status
15685 @./config.status $ac_rules
15686 distclean::
15687 \$(RM) $ac_rules"
15690 wine_fn_config_symlink ()
15692 ac_link=$1
15693 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15694 "$ac_link:
15695 @./config.status $ac_link
15696 distclean::
15697 \$(RM) $ac_link"
15700 if test "x$CROSSTEST_DISABLE" != x
15701 then
15702 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15703 "crosstest:
15704 @echo \"crosstest is not supported (mingw not installed?)\" && false"
15706 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15707 wine_fn_config_symlink dlls/shell32/AUTHORS
15708 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15709 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15710 if test "x$enable_fonts" != xno; then
15711 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15712 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15714 if test "x$enable_fonts" != xno; then
15715 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15716 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15718 if test "x$enable_fonts" != xno; then
15719 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15720 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15722 if test "x$enable_fonts" != xno; then
15723 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15724 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15726 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15727 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15728 if test "x$enable_tools" != xno; then
15729 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15730 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15732 ac_config_links="$ac_config_links wine:tools/winewrapper"
15733 wine_fn_config_symlink wine
15734 if test "x$enable_win64" != xno; then
15735 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15736 wine_fn_config_symlink wine64
15739 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15741 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15743 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15745 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15747 ac_config_commands="$ac_config_commands dlls/user32/resources"
15749 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15751 ac_config_commands="$ac_config_commands include/wine"
15754 wine_fn_config_makerules Make.rules
15755 MAKE_RULES=Make.rules
15756 ac_config_files="$ac_config_files Make.rules"
15758 wine_fn_config_makerules Maketest.rules Make.rules
15759 MAKE_TEST_RULES=Maketest.rules
15760 ac_config_files="$ac_config_files Maketest.rules"
15762 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15763 MAKE_DLL_RULES=dlls/Makedll.rules
15764 ac_config_files="$ac_config_files dlls/Makedll.rules"
15766 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15767 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15768 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15770 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15771 MAKE_PROG_RULES=programs/Makeprog.rules
15772 ac_config_files="$ac_config_files programs/Makeprog.rules"
15775 wine_fn_config_dll acledit enable_acledit
15776 wine_fn_config_dll aclui enable_aclui implib
15777 wine_fn_config_dll activeds enable_activeds implib
15778 wine_fn_config_dll actxprxy enable_actxprxy
15779 wine_fn_config_lib adsiid
15780 wine_fn_config_dll advapi32 enable_advapi32 implib
15781 wine_fn_config_test dlls/advapi32/tests advapi32_test
15782 wine_fn_config_dll advpack enable_advpack implib
15783 wine_fn_config_test dlls/advpack/tests advpack_test
15784 wine_fn_config_dll amstream enable_amstream
15785 wine_fn_config_test dlls/amstream/tests amstream_test
15786 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
15787 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
15788 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
15789 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
15790 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
15791 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
15792 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
15793 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
15794 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
15795 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
15796 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
15797 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
15798 wine_fn_config_dll apphelp enable_apphelp
15799 wine_fn_config_test dlls/apphelp/tests apphelp_test
15800 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15801 wine_fn_config_dll atl enable_atl implib
15802 wine_fn_config_test dlls/atl/tests atl_test
15803 wine_fn_config_dll atl100 enable_atl100 implib
15804 wine_fn_config_test dlls/atl100/tests atl100_test
15805 wine_fn_config_dll atl80 enable_atl80 implib
15806 wine_fn_config_test dlls/atl80/tests atl80_test
15807 wine_fn_config_dll authz enable_authz
15808 wine_fn_config_dll avicap32 enable_avicap32 implib
15809 wine_fn_config_dll avifil32 enable_avifil32 implib,po
15810 wine_fn_config_test dlls/avifil32/tests avifil32_test
15811 wine_fn_config_dll avifile.dll16 enable_win16
15812 wine_fn_config_dll avrt enable_avrt implib
15813 wine_fn_config_dll bcrypt enable_bcrypt
15814 wine_fn_config_dll browseui enable_browseui po
15815 wine_fn_config_test dlls/browseui/tests browseui_test
15816 wine_fn_config_dll cabinet enable_cabinet implib
15817 wine_fn_config_test dlls/cabinet/tests cabinet_test
15818 wine_fn_config_dll capi2032 enable_capi2032 implib
15819 wine_fn_config_dll cards enable_cards implib
15820 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15821 wine_fn_config_dll clusapi enable_clusapi implib
15822 wine_fn_config_dll comcat enable_comcat
15823 wine_fn_config_test dlls/comcat/tests comcat_test
15824 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15825 wine_fn_config_test dlls/comctl32/tests comctl32_test
15826 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15827 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15828 wine_fn_config_dll comm.drv16 enable_win16
15829 wine_fn_config_dll commdlg.dll16 enable_win16
15830 wine_fn_config_dll compobj.dll16 enable_win16
15831 wine_fn_config_dll compstui enable_compstui implib
15832 wine_fn_config_dll credui enable_credui implib,po
15833 wine_fn_config_test dlls/credui/tests credui_test
15834 wine_fn_config_dll crtdll enable_crtdll implib
15835 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15836 wine_fn_config_test dlls/crypt32/tests crypt32_test
15837 wine_fn_config_dll cryptdlg enable_cryptdlg po
15838 wine_fn_config_dll cryptdll enable_cryptdll implib
15839 wine_fn_config_dll cryptnet enable_cryptnet implib
15840 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15841 wine_fn_config_dll cryptui enable_cryptui implib,po
15842 wine_fn_config_test dlls/cryptui/tests cryptui_test
15843 wine_fn_config_dll ctapi32 enable_ctapi32
15844 wine_fn_config_dll ctl3d.dll16 enable_win16
15845 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15846 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15847 wine_fn_config_dll d3d10 enable_d3d10 implib
15848 wine_fn_config_test dlls/d3d10/tests d3d10_test
15849 wine_fn_config_dll d3d10core enable_d3d10core implib
15850 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15851 wine_fn_config_dll d3d11 enable_d3d11
15852 wine_fn_config_dll d3d8 enable_d3d8 implib
15853 wine_fn_config_test dlls/d3d8/tests d3d8_test
15854 wine_fn_config_dll d3d9 enable_d3d9 implib
15855 wine_fn_config_test dlls/d3d9/tests d3d9_test
15856 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15857 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15858 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15859 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15860 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15861 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15862 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15863 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15864 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15865 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15866 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15867 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15868 wine_fn_config_dll d3dim enable_d3dim implib
15869 wine_fn_config_dll d3drm enable_d3drm implib
15870 wine_fn_config_test dlls/d3drm/tests d3drm_test
15871 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15872 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15873 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15874 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15875 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15876 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15877 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15878 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15879 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15880 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15881 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15882 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15883 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15884 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15885 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15886 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15887 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15888 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15889 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15890 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15891 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15892 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15893 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15894 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15895 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15896 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15897 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15898 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15899 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15900 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15901 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15902 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15903 wine_fn_config_dll d3dxof enable_d3dxof implib
15904 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15905 wine_fn_config_dll dbgeng enable_dbgeng implib
15906 wine_fn_config_dll dbghelp enable_dbghelp implib
15907 wine_fn_config_dll dciman32 enable_dciman32 implib
15908 wine_fn_config_dll ddeml.dll16 enable_win16
15909 wine_fn_config_dll ddraw enable_ddraw implib
15910 wine_fn_config_test dlls/ddraw/tests ddraw_test
15911 wine_fn_config_dll ddrawex enable_ddrawex
15912 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15913 wine_fn_config_dll devenum enable_devenum po
15914 wine_fn_config_test dlls/devenum/tests devenum_test
15915 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15916 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15917 wine_fn_config_test dlls/dinput/tests dinput_test
15918 wine_fn_config_dll dinput8 enable_dinput8 implib
15919 wine_fn_config_test dlls/dinput8/tests dinput8_test
15920 wine_fn_config_dll dispdib.dll16 enable_win16
15921 wine_fn_config_dll dispex enable_dispex
15922 wine_fn_config_test dlls/dispex/tests dispex_test
15923 wine_fn_config_dll display.drv16 enable_win16
15924 wine_fn_config_dll dmband enable_dmband
15925 wine_fn_config_test dlls/dmband/tests dmband_test
15926 wine_fn_config_dll dmcompos enable_dmcompos
15927 wine_fn_config_dll dmime enable_dmime
15928 wine_fn_config_test dlls/dmime/tests dmime_test
15929 wine_fn_config_dll dmloader enable_dmloader
15930 wine_fn_config_test dlls/dmloader/tests dmloader_test
15931 wine_fn_config_dll dmscript enable_dmscript
15932 wine_fn_config_dll dmstyle enable_dmstyle
15933 wine_fn_config_dll dmsynth enable_dmsynth
15934 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15935 wine_fn_config_dll dmusic enable_dmusic
15936 wine_fn_config_test dlls/dmusic/tests dmusic_test
15937 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15938 wine_fn_config_dll dnsapi enable_dnsapi implib
15939 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15940 wine_fn_config_dll dplay enable_dplay implib
15941 wine_fn_config_dll dplayx enable_dplayx implib
15942 wine_fn_config_test dlls/dplayx/tests dplayx_test
15943 wine_fn_config_dll dpnaddr enable_dpnaddr
15944 wine_fn_config_dll dpnet enable_dpnet implib
15945 wine_fn_config_test dlls/dpnet/tests dpnet_test
15946 wine_fn_config_dll dpnhpast enable_dpnhpast
15947 wine_fn_config_dll dpnlobby enable_dpnlobby
15948 wine_fn_config_dll dpwsockx enable_dpwsockx
15949 wine_fn_config_dll drmclien enable_drmclien
15950 wine_fn_config_dll dsound enable_dsound implib
15951 wine_fn_config_test dlls/dsound/tests dsound_test
15952 wine_fn_config_dll dssenh enable_dssenh
15953 wine_fn_config_test dlls/dssenh/tests dssenh_test
15954 wine_fn_config_dll dswave enable_dswave
15955 wine_fn_config_dll dwmapi enable_dwmapi implib
15956 wine_fn_config_dll dwrite enable_dwrite implib
15957 wine_fn_config_test dlls/dwrite/tests dwrite_test
15958 wine_fn_config_dll dxdiagn enable_dxdiagn po
15959 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15960 wine_fn_config_lib dxerr8
15961 wine_fn_config_lib dxerr9
15962 wine_fn_config_dll dxgi enable_dxgi implib
15963 wine_fn_config_test dlls/dxgi/tests dxgi_test
15964 wine_fn_config_lib dxguid
15965 wine_fn_config_dll explorerframe enable_explorerframe
15966 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15967 wine_fn_config_dll faultrep enable_faultrep implib
15968 wine_fn_config_test dlls/faultrep/tests faultrep_test
15969 wine_fn_config_dll fltlib enable_fltlib
15970 wine_fn_config_dll fusion enable_fusion
15971 wine_fn_config_test dlls/fusion/tests fusion_test
15972 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15973 wine_fn_config_dll gameux enable_gameux
15974 wine_fn_config_test dlls/gameux/tests gameux_test
15975 wine_fn_config_dll gdi.exe16 enable_win16
15976 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15977 wine_fn_config_test dlls/gdi32/tests gdi32_test
15978 wine_fn_config_dll gdiplus enable_gdiplus implib
15979 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15980 wine_fn_config_dll glu32 enable_glu32 implib
15981 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15982 wine_fn_config_dll gpkcsp enable_gpkcsp
15983 wine_fn_config_dll hal enable_hal
15984 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx implib,po htmlhelp
15985 wine_fn_config_dll hid enable_hid implib
15986 wine_fn_config_dll hlink enable_hlink implib
15987 wine_fn_config_test dlls/hlink/tests hlink_test
15988 wine_fn_config_dll hnetcfg enable_hnetcfg
15989 wine_fn_config_dll httpapi enable_httpapi
15990 wine_fn_config_dll iccvid enable_iccvid po
15991 wine_fn_config_dll icmp enable_icmp
15992 wine_fn_config_dll ieframe enable_ieframe implib,po
15993 wine_fn_config_test dlls/ieframe/tests ieframe_test
15994 wine_fn_config_dll ifsmgr.vxd enable_win16
15995 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15996 wine_fn_config_dll imagehlp enable_imagehlp implib
15997 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15998 wine_fn_config_dll imm.dll16 enable_win16
15999 wine_fn_config_dll imm32 enable_imm32 implib
16000 wine_fn_config_test dlls/imm32/tests imm32_test
16001 wine_fn_config_dll inetcomm enable_inetcomm implib
16002 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16003 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16004 wine_fn_config_dll inetmib1 enable_inetmib1
16005 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16006 wine_fn_config_dll infosoft enable_infosoft
16007 wine_fn_config_test dlls/infosoft/tests infosoft_test
16008 wine_fn_config_dll initpki enable_initpki
16009 wine_fn_config_dll inkobj enable_inkobj
16010 wine_fn_config_dll inseng enable_inseng
16011 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16012 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16013 wine_fn_config_dll itircl enable_itircl
16014 wine_fn_config_dll itss enable_itss
16015 wine_fn_config_test dlls/itss/tests itss_test
16016 wine_fn_config_dll joy.cpl enable_joy_cpl po
16017 wine_fn_config_dll jscript enable_jscript po
16018 wine_fn_config_test dlls/jscript/tests jscript_test
16019 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
16020 wine_fn_config_test dlls/kernel32/tests kernel32_test
16021 wine_fn_config_dll keyboard.drv16 enable_win16
16022 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16023 wine_fn_config_dll ktmw32 enable_ktmw32
16024 wine_fn_config_dll loadperf enable_loadperf implib
16025 wine_fn_config_dll localspl enable_localspl po
16026 wine_fn_config_test dlls/localspl/tests localspl_test
16027 wine_fn_config_dll localui enable_localui po
16028 wine_fn_config_test dlls/localui/tests localui_test
16029 wine_fn_config_dll lz32 enable_lz32 implib
16030 wine_fn_config_test dlls/lz32/tests lz32_test
16031 wine_fn_config_dll lzexpand.dll16 enable_win16
16032 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16033 wine_fn_config_test dlls/mapi32/tests mapi32_test
16034 wine_fn_config_dll mapistub enable_mapistub
16035 wine_fn_config_dll mciavi32 enable_mciavi32
16036 wine_fn_config_dll mcicda enable_mcicda
16037 wine_fn_config_dll mciqtz32 enable_mciqtz32
16038 wine_fn_config_dll mciseq enable_mciseq
16039 wine_fn_config_dll mciwave enable_mciwave
16040 wine_fn_config_dll mgmtapi enable_mgmtapi
16041 wine_fn_config_dll midimap enable_midimap
16042 wine_fn_config_dll mlang enable_mlang implib
16043 wine_fn_config_test dlls/mlang/tests mlang_test
16044 wine_fn_config_dll mmcndmgr enable_mmcndmgr
16045 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16046 wine_fn_config_dll mmdevapi enable_mmdevapi
16047 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16048 wine_fn_config_dll mmdevldr.vxd enable_win16
16049 wine_fn_config_dll mmsystem.dll16 enable_win16
16050 wine_fn_config_dll monodebg.vxd enable_win16
16051 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16052 wine_fn_config_dll mouse.drv16 enable_win16
16053 wine_fn_config_dll mpr enable_mpr implib,po
16054 wine_fn_config_test dlls/mpr/tests mpr_test
16055 wine_fn_config_dll mprapi enable_mprapi implib
16056 wine_fn_config_dll msacm.dll16 enable_win16
16057 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16058 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16059 wine_fn_config_test dlls/msacm32/tests msacm32_test
16060 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16061 wine_fn_config_dll mscat32 enable_mscat32
16062 wine_fn_config_dll mscms enable_mscms implib
16063 wine_fn_config_test dlls/mscms/tests mscms_test
16064 wine_fn_config_dll mscoree enable_mscoree
16065 wine_fn_config_test dlls/mscoree/tests mscoree_test
16066 wine_fn_config_dll msctf enable_msctf
16067 wine_fn_config_test dlls/msctf/tests msctf_test
16068 wine_fn_config_dll msdaps enable_msdaps
16069 wine_fn_config_dll msdmo enable_msdmo implib
16070 wine_fn_config_dll msftedit enable_msftedit
16071 wine_fn_config_dll msg711.acm enable_msg711_acm
16072 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16073 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
16074 wine_fn_config_dll mshtml enable_mshtml implib,po
16075 wine_fn_config_test dlls/mshtml/tests mshtml_test
16076 wine_fn_config_dll msi enable_msi implib,po
16077 wine_fn_config_test dlls/msi/tests msi_test
16078 wine_fn_config_dll msident enable_msident
16079 wine_fn_config_dll msimg32 enable_msimg32 implib
16080 wine_fn_config_dll msimsg enable_msimsg
16081 wine_fn_config_dll msimtf enable_msimtf
16082 wine_fn_config_dll msisip enable_msisip
16083 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16084 wine_fn_config_dll msls31 enable_msls31
16085 wine_fn_config_dll msnet32 enable_msnet32
16086 wine_fn_config_dll mspatcha enable_mspatcha
16087 wine_fn_config_dll msrle32 enable_msrle32 po
16088 wine_fn_config_dll mssign32 enable_mssign32
16089 wine_fn_config_dll mssip32 enable_mssip32
16090 wine_fn_config_dll mstask enable_mstask
16091 wine_fn_config_test dlls/mstask/tests mstask_test
16092 wine_fn_config_dll msvcirt enable_msvcirt
16093 wine_fn_config_dll msvcm80 enable_msvcm80
16094 wine_fn_config_dll msvcm90 enable_msvcm90
16095 wine_fn_config_dll msvcp100 enable_msvcp100
16096 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16097 wine_fn_config_dll msvcp110 enable_msvcp110
16098 wine_fn_config_dll msvcp60 enable_msvcp60
16099 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16100 wine_fn_config_dll msvcp70 enable_msvcp70
16101 wine_fn_config_dll msvcp71 enable_msvcp71
16102 wine_fn_config_dll msvcp80 enable_msvcp80
16103 wine_fn_config_dll msvcp90 enable_msvcp90
16104 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16105 wine_fn_config_dll msvcr100 enable_msvcr100
16106 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16107 wine_fn_config_dll msvcr110 enable_msvcr110
16108 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16109 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16110 wine_fn_config_dll msvcr80 enable_msvcr80
16111 wine_fn_config_dll msvcr90 enable_msvcr90
16112 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16113 wine_fn_config_dll msvcrt enable_msvcrt implib
16114 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16115 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16116 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16117 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16118 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16119 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16120 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16121 wine_fn_config_dll msvidc32 enable_msvidc32 po
16122 wine_fn_config_dll msvideo.dll16 enable_win16
16123 wine_fn_config_dll mswsock enable_mswsock implib
16124 wine_fn_config_dll msxml enable_msxml
16125 wine_fn_config_dll msxml2 enable_msxml2
16126 wine_fn_config_dll msxml3 enable_msxml3
16127 wine_fn_config_test dlls/msxml3/tests msxml3_test
16128 wine_fn_config_dll msxml4 enable_msxml4
16129 wine_fn_config_dll msxml6 enable_msxml6
16130 wine_fn_config_dll nddeapi enable_nddeapi implib
16131 wine_fn_config_dll netapi32 enable_netapi32 implib
16132 wine_fn_config_test dlls/netapi32/tests netapi32_test
16133 wine_fn_config_dll newdev enable_newdev implib
16134 wine_fn_config_dll normaliz enable_normaliz implib
16135 wine_fn_config_dll npmshtml enable_npmshtml
16136 wine_fn_config_dll ntdll enable_ntdll implib
16137 wine_fn_config_test dlls/ntdll/tests ntdll_test
16138 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16139 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16140 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16141 wine_fn_config_dll ntprint enable_ntprint
16142 wine_fn_config_test dlls/ntprint/tests ntprint_test
16143 wine_fn_config_dll objsel enable_objsel
16144 wine_fn_config_dll odbc32 enable_odbc32 implib
16145 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16146 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16147 wine_fn_config_dll odbccu32 enable_odbccu32
16148 wine_fn_config_dll ole2.dll16 enable_win16
16149 wine_fn_config_dll ole2conv.dll16 enable_win16
16150 wine_fn_config_dll ole2disp.dll16 enable_win16
16151 wine_fn_config_dll ole2nls.dll16 enable_win16
16152 wine_fn_config_dll ole2prox.dll16 enable_win16
16153 wine_fn_config_dll ole2thk.dll16 enable_win16
16154 wine_fn_config_dll ole32 enable_ole32 implib
16155 wine_fn_config_test dlls/ole32/tests ole32_test
16156 wine_fn_config_dll oleacc enable_oleacc implib,po
16157 wine_fn_config_test dlls/oleacc/tests oleacc_test
16158 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
16159 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
16160 wine_fn_config_dll olecli.dll16 enable_win16
16161 wine_fn_config_dll olecli32 enable_olecli32 implib
16162 wine_fn_config_dll oledb32 enable_oledb32
16163 wine_fn_config_test dlls/oledb32/tests oledb32_test
16164 wine_fn_config_dll oledlg enable_oledlg implib,po
16165 wine_fn_config_dll olepro32 enable_olepro32 implib
16166 wine_fn_config_dll olesvr.dll16 enable_win16
16167 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16168 wine_fn_config_dll olethk32 enable_olethk32
16169 wine_fn_config_dll openal32 enable_openal32
16170 wine_fn_config_dll opencl enable_opencl
16171 wine_fn_config_dll opengl32 enable_opengl32 implib
16172 wine_fn_config_test dlls/opengl32/tests opengl32_test
16173 wine_fn_config_dll pdh enable_pdh implib
16174 wine_fn_config_test dlls/pdh/tests pdh_test
16175 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16176 wine_fn_config_dll pidgen enable_pidgen
16177 wine_fn_config_dll powrprof enable_powrprof implib
16178 wine_fn_config_dll printui enable_printui
16179 wine_fn_config_dll propsys enable_propsys implib
16180 wine_fn_config_test dlls/propsys/tests propsys_test
16181 wine_fn_config_dll psapi enable_psapi implib
16182 wine_fn_config_test dlls/psapi/tests psapi_test
16183 wine_fn_config_dll pstorec enable_pstorec
16184 wine_fn_config_dll qcap enable_qcap
16185 wine_fn_config_dll qedit enable_qedit
16186 wine_fn_config_test dlls/qedit/tests qedit_test
16187 wine_fn_config_dll qmgr enable_qmgr
16188 wine_fn_config_test dlls/qmgr/tests qmgr_test
16189 wine_fn_config_dll qmgrprxy enable_qmgrprxy
16190 wine_fn_config_dll quartz enable_quartz implib
16191 wine_fn_config_test dlls/quartz/tests quartz_test
16192 wine_fn_config_dll query enable_query
16193 wine_fn_config_dll rasapi16.dll16 enable_win16
16194 wine_fn_config_dll rasapi32 enable_rasapi32 implib
16195 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
16196 wine_fn_config_dll rasdlg enable_rasdlg implib
16197 wine_fn_config_dll regapi enable_regapi
16198 wine_fn_config_dll resutils enable_resutils implib
16199 wine_fn_config_dll riched20 enable_riched20 implib
16200 wine_fn_config_test dlls/riched20/tests riched20_test
16201 wine_fn_config_dll riched32 enable_riched32
16202 wine_fn_config_test dlls/riched32/tests riched32_test
16203 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
16204 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
16205 wine_fn_config_dll rsabase enable_rsabase
16206 wine_fn_config_dll rsaenh enable_rsaenh implib
16207 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
16208 wine_fn_config_dll rstrtmgr enable_rstrtmgr
16209 wine_fn_config_dll rtutils enable_rtutils implib
16210 wine_fn_config_dll samlib enable_samlib
16211 wine_fn_config_dll sane.ds enable_sane_ds po
16212 wine_fn_config_dll scarddlg enable_scarddlg
16213 wine_fn_config_dll sccbase enable_sccbase
16214 wine_fn_config_dll schannel enable_schannel
16215 wine_fn_config_test dlls/schannel/tests schannel_test
16216 wine_fn_config_dll scrrun enable_scrrun
16217 wine_fn_config_test dlls/scrrun/tests scrrun_test
16218 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16219 wine_fn_config_dll secur32 enable_secur32 implib
16220 wine_fn_config_test dlls/secur32/tests secur32_test
16221 wine_fn_config_dll security enable_security
16222 wine_fn_config_dll sensapi enable_sensapi implib
16223 wine_fn_config_dll serialui enable_serialui implib,po
16224 wine_fn_config_test dlls/serialui/tests serialui_test
16225 wine_fn_config_dll setupapi enable_setupapi implib,po
16226 wine_fn_config_test dlls/setupapi/tests setupapi_test
16227 wine_fn_config_dll setupx.dll16 enable_win16
16228 wine_fn_config_dll sfc enable_sfc implib
16229 wine_fn_config_dll sfc_os enable_sfc_os implib
16230 wine_fn_config_dll shdoclc enable_shdoclc po
16231 wine_fn_config_dll shdocvw enable_shdocvw implib
16232 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16233 wine_fn_config_dll shell.dll16 enable_win16
16234 wine_fn_config_dll shell32 enable_shell32 implib,po
16235 wine_fn_config_test dlls/shell32/tests shell32_test
16236 wine_fn_config_dll shfolder enable_shfolder implib
16237 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16238 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16239 wine_fn_config_dll slbcsp enable_slbcsp
16240 wine_fn_config_dll slc enable_slc implib
16241 wine_fn_config_dll snmpapi enable_snmpapi implib
16242 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16243 wine_fn_config_dll softpub enable_softpub
16244 wine_fn_config_dll sound.drv16 enable_win16
16245 wine_fn_config_dll spoolss enable_spoolss implib
16246 wine_fn_config_test dlls/spoolss/tests spoolss_test
16247 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
16248 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
16249 wine_fn_config_dll sti enable_sti implib
16250 wine_fn_config_test dlls/sti/tests sti_test
16251 wine_fn_config_dll storage.dll16 enable_win16
16252 wine_fn_config_dll stress.dll16 enable_win16
16253 wine_fn_config_lib strmbase
16254 wine_fn_config_lib strmiids
16255 wine_fn_config_dll svrapi enable_svrapi
16256 wine_fn_config_dll sxs enable_sxs implib
16257 wine_fn_config_test dlls/sxs/tests sxs_test
16258 wine_fn_config_dll system.drv16 enable_win16
16259 wine_fn_config_dll t2embed enable_t2embed
16260 wine_fn_config_dll tapi32 enable_tapi32 implib
16261 wine_fn_config_dll toolhelp.dll16 enable_win16
16262 wine_fn_config_dll traffic enable_traffic
16263 wine_fn_config_dll twain.dll16 enable_win16
16264 wine_fn_config_dll twain_32 enable_twain_32
16265 wine_fn_config_test dlls/twain_32/tests twain_32_test
16266 wine_fn_config_dll typelib.dll16 enable_win16
16267 wine_fn_config_dll unicows enable_unicows implib
16268 wine_fn_config_dll updspapi enable_updspapi
16269 wine_fn_config_dll url enable_url implib
16270 wine_fn_config_dll urlmon enable_urlmon implib,po
16271 wine_fn_config_test dlls/urlmon/tests urlmon_test
16272 wine_fn_config_dll usbd.sys enable_usbd_sys implib
16273 wine_fn_config_dll user.exe16 enable_win16
16274 wine_fn_config_dll user32 enable_user32 implib,po
16275 wine_fn_config_test dlls/user32/tests user32_test
16276 wine_fn_config_dll userenv enable_userenv implib
16277 wine_fn_config_test dlls/userenv/tests userenv_test
16278 wine_fn_config_dll usp10 enable_usp10 implib
16279 wine_fn_config_test dlls/usp10/tests usp10_test
16280 wine_fn_config_lib uuid
16281 wine_fn_config_dll uxtheme enable_uxtheme implib
16282 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
16283 wine_fn_config_dll vbscript enable_vbscript
16284 wine_fn_config_test dlls/vbscript/tests vbscript_test
16285 wine_fn_config_dll vcomp enable_vcomp
16286 wine_fn_config_dll vcomp100 enable_vcomp100
16287 wine_fn_config_dll vcomp90 enable_vcomp90
16288 wine_fn_config_dll vdhcp.vxd enable_win16
16289 wine_fn_config_dll vdmdbg enable_vdmdbg implib
16290 wine_fn_config_dll ver.dll16 enable_win16
16291 wine_fn_config_dll version enable_version implib
16292 wine_fn_config_test dlls/version/tests version_test
16293 wine_fn_config_dll vmm.vxd enable_win16
16294 wine_fn_config_dll vnbt.vxd enable_win16
16295 wine_fn_config_dll vnetbios.vxd enable_win16
16296 wine_fn_config_dll vtdapi.vxd enable_win16
16297 wine_fn_config_dll vwin32.vxd enable_win16
16298 wine_fn_config_dll w32skrnl enable_win16
16299 wine_fn_config_dll w32sys.dll16 enable_win16
16300 wine_fn_config_dll wbemprox enable_wbemprox
16301 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
16302 wine_fn_config_dll webservices enable_webservices implib
16303 wine_fn_config_dll wer enable_wer implib
16304 wine_fn_config_test dlls/wer/tests wer_test
16305 wine_fn_config_dll wevtapi enable_wevtapi
16306 wine_fn_config_dll wiaservc enable_wiaservc
16307 wine_fn_config_dll win32s16.dll16 enable_win16
16308 wine_fn_config_dll win87em.dll16 enable_win16
16309 wine_fn_config_dll winaspi.dll16 enable_win16
16310 wine_fn_config_dll windebug.dll16 enable_win16
16311 wine_fn_config_dll windowscodecs enable_windowscodecs implib
16312 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
16313 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
16314 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
16315 wine_fn_config_dll winealsa.drv enable_winealsa_drv
16316 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
16317 wine_fn_config_lib winecrt0
16318 wine_fn_config_dll wined3d enable_wined3d implib
16319 wine_fn_config_dll winegstreamer enable_winegstreamer
16320 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
16321 wine_fn_config_dll winemac.drv enable_winemac_drv
16322 wine_fn_config_dll winemapi enable_winemapi
16323 wine_fn_config_dll winemp3.acm enable_winemp3_acm
16324 wine_fn_config_dll wineoss.drv enable_wineoss_drv
16325 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
16326 wine_fn_config_dll wineps16.drv16 enable_win16
16327 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
16328 wine_fn_config_dll winex11.drv enable_winex11_drv
16329 wine_fn_config_dll wing.dll16 enable_win16
16330 wine_fn_config_dll wing32 enable_wing32
16331 wine_fn_config_dll winhttp enable_winhttp implib
16332 wine_fn_config_test dlls/winhttp/tests winhttp_test
16333 wine_fn_config_dll wininet enable_wininet implib,po
16334 wine_fn_config_test dlls/wininet/tests wininet_test
16335 wine_fn_config_dll winmm enable_winmm implib,po
16336 wine_fn_config_test dlls/winmm/tests winmm_test
16337 wine_fn_config_dll winnls.dll16 enable_win16
16338 wine_fn_config_dll winnls32 enable_winnls32 implib
16339 wine_fn_config_dll winscard enable_winscard implib
16340 wine_fn_config_dll winsock.dll16 enable_win16
16341 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
16342 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
16343 wine_fn_config_dll winsta enable_winsta
16344 wine_fn_config_dll wintab.dll16 enable_win16
16345 wine_fn_config_dll wintab32 enable_wintab32 implib
16346 wine_fn_config_test dlls/wintab32/tests wintab32_test
16347 wine_fn_config_dll wintrust enable_wintrust implib
16348 wine_fn_config_test dlls/wintrust/tests wintrust_test
16349 wine_fn_config_dll wlanapi enable_wlanapi
16350 wine_fn_config_dll wldap32 enable_wldap32 implib,po
16351 wine_fn_config_test dlls/wldap32/tests wldap32_test
16352 wine_fn_config_dll wmi enable_wmi
16353 wine_fn_config_dll wmiutils enable_wmiutils
16354 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
16355 wine_fn_config_dll wmvcore enable_wmvcore
16356 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
16357 wine_fn_config_dll wow32 enable_win16 implib
16358 wine_fn_config_dll ws2_32 enable_ws2_32 implib
16359 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
16360 wine_fn_config_dll wshom.ocx enable_wshom_ocx
16361 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
16362 wine_fn_config_dll wsnmp32 enable_wsnmp32
16363 wine_fn_config_dll wsock32 enable_wsock32 implib
16364 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
16365 wine_fn_config_dll wuapi enable_wuapi
16366 wine_fn_config_dll wuaueng enable_wuaueng
16367 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
16368 wine_fn_config_dll xinput1_1 enable_xinput1_1
16369 wine_fn_config_dll xinput1_2 enable_xinput1_2
16370 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
16371 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
16372 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
16373 wine_fn_config_dll xmllite enable_xmllite
16374 wine_fn_config_test dlls/xmllite/tests xmllite_test
16375 wine_fn_config_dll xolehlp enable_xolehlp
16376 wine_fn_config_dll xpsprint enable_xpsprint
16377 wine_fn_config_dll xpssvcs enable_xpssvcs
16378 wine_fn_config_makefile documentation enable_documentation
16379 wine_fn_config_makefile fonts enable_fonts install-lib
16380 wine_fn_config_makefile include enable_include install-dev
16381 wine_fn_config_makefile libs/port enable_libs_port
16382 wine_fn_config_makefile libs/wine enable_libs_wine
16383 wine_fn_config_makefile libs/wpp enable_libs_wpp
16384 wine_fn_config_makefile loader enable_loader install-lib,manpage
16385 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
16386 wine_fn_config_program attrib enable_attrib install,po
16387 wine_fn_config_program cabarc enable_cabarc install
16388 wine_fn_config_program cacls enable_cacls install
16389 wine_fn_config_program clock enable_clock install,po
16390 wine_fn_config_program cmd enable_cmd install,po
16391 wine_fn_config_test programs/cmd/tests cmd.exe_test
16392 wine_fn_config_program conhost enable_conhost install
16393 wine_fn_config_program control enable_control install
16394 wine_fn_config_program cscript enable_cscript install
16395 wine_fn_config_program dxdiag enable_dxdiag install,po
16396 wine_fn_config_program eject enable_eject install
16397 wine_fn_config_program expand enable_expand install
16398 wine_fn_config_program explorer enable_explorer install,po
16399 wine_fn_config_program extrac32 enable_extrac32 install
16400 wine_fn_config_program findstr enable_findstr install
16401 wine_fn_config_program hh enable_hh install
16402 wine_fn_config_program hostname enable_hostname install,po
16403 wine_fn_config_program icinfo enable_icinfo install
16404 wine_fn_config_program iexplore enable_iexplore install
16405 wine_fn_config_program ipconfig enable_ipconfig install,po
16406 wine_fn_config_program lodctr enable_lodctr install
16407 wine_fn_config_program mofcomp enable_mofcomp install
16408 wine_fn_config_program mshta enable_mshta install
16409 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
16410 wine_fn_config_program net enable_net install,po
16411 wine_fn_config_program netsh enable_netsh install
16412 wine_fn_config_program netstat enable_netstat install,po
16413 wine_fn_config_program ngen enable_ngen install
16414 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
16415 wine_fn_config_program oleview enable_oleview install,po
16416 wine_fn_config_program ping enable_ping install
16417 wine_fn_config_program plugplay enable_plugplay install
16418 wine_fn_config_program presentationfontcache enable_presentationfontcache install
16419 wine_fn_config_program progman enable_progman install,po
16420 wine_fn_config_program reg enable_reg install,po
16421 wine_fn_config_program regasm enable_regasm install
16422 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
16423 wine_fn_config_test programs/regedit/tests regedit.exe_test
16424 wine_fn_config_program regsvcs enable_regsvcs install
16425 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
16426 wine_fn_config_program rpcss enable_rpcss install
16427 wine_fn_config_program rundll.exe16 enable_win16 install
16428 wine_fn_config_program rundll32 enable_rundll32 install
16429 wine_fn_config_program sc enable_sc install
16430 wine_fn_config_program schtasks enable_schtasks install
16431 wine_fn_config_program secedit enable_secedit install
16432 wine_fn_config_program servicemodelreg enable_servicemodelreg install
16433 wine_fn_config_program services enable_services install
16434 wine_fn_config_test programs/services/tests services.exe_test
16435 wine_fn_config_program spoolsv enable_spoolsv install
16436 wine_fn_config_program start enable_start install,po
16437 wine_fn_config_program svchost enable_svchost install
16438 wine_fn_config_program taskkill enable_taskkill install,po
16439 wine_fn_config_program taskmgr enable_taskmgr install,po
16440 wine_fn_config_program termsv enable_termsv install
16441 wine_fn_config_program uninstaller enable_uninstaller install,po
16442 wine_fn_config_program unlodctr enable_unlodctr install
16443 wine_fn_config_program view enable_view install,po
16444 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
16445 wine_fn_config_program winebrowser enable_winebrowser install
16446 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
16447 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
16448 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
16449 wine_fn_config_program winedevice enable_winedevice install
16450 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
16451 wine_fn_config_program winemenubuilder enable_winemenubuilder install
16452 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
16453 wine_fn_config_program winemsibuilder enable_winemsibuilder install
16454 wine_fn_config_program winepath enable_winepath install,installbin,manpage
16455 wine_fn_config_program winetest enable_winetest
16456 wine_fn_config_program winevdm enable_win16 install
16457 wine_fn_config_program winhelp.exe16 enable_win16 install
16458 wine_fn_config_program winhlp32 enable_winhlp32 install,po
16459 wine_fn_config_program winoldap.mod16 enable_win16 install
16460 wine_fn_config_program winver enable_winver install
16461 wine_fn_config_program wmic enable_wmic install,po
16462 wine_fn_config_program wordpad enable_wordpad install,po
16463 wine_fn_config_program write enable_write install,po
16464 wine_fn_config_program wscript enable_wscript install
16465 wine_fn_config_test programs/wscript/tests wscript.exe_test
16466 wine_fn_config_program wusa enable_wusa install
16467 wine_fn_config_program xcopy enable_xcopy install,po
16468 wine_fn_config_makefile server enable_server install-lib,manpage
16469 wine_fn_config_tool tools install-dev,install-lib,manpage
16470 wine_fn_config_tool tools/widl install-dev,manpage
16471 wine_fn_config_tool tools/winebuild install-dev,manpage
16472 wine_fn_config_tool tools/winedump install-dev,manpage
16473 wine_fn_config_tool tools/winegcc install-dev,manpage
16474 wine_fn_config_tool tools/wmc install-dev,manpage
16475 wine_fn_config_tool tools/wrc install-dev,manpage
16477 LINGUAS="\
16478 ar \
16479 bg \
16480 ca \
16481 cs \
16482 da \
16483 de \
16484 el \
16485 en \
16486 en_US \
16487 eo \
16488 es \
16489 fa \
16490 fi \
16491 fr \
16492 he \
16493 hi \
16494 hu \
16495 it \
16496 ja \
16497 ko \
16498 lt \
16499 ml \
16500 nb_NO \
16501 nl \
16502 or \
16503 pa \
16504 pl \
16505 pt_BR \
16506 pt_PT \
16507 rm \
16508 ro \
16509 ru \
16510 sk \
16511 sl \
16512 sr_RS@cyrillic \
16513 sr_RS@latin \
16514 sv \
16515 te \
16516 th \
16517 tr \
16518 uk \
16519 wa \
16520 zh_CN \
16521 zh_TW"
16525 ac_config_commands="$ac_config_commands Makefile"
16528 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
16532 if test "x$enable_maintainer_mode" = xyes
16533 then
16534 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
16535 cd \$(srcdir) && autoconf --warnings=all
16536 \$(srcdir)/include/config.h.in: include/stamp-h.in
16537 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
16538 cd \$(srcdir) && autoheader --warnings=all
16539 @echo timestamp > \$@"
16542 if test "x$with_gettextpo" = xyes
16543 then
16544 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
16545 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
16546 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
16547 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
16548 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
16549 msgcat -o \$@ \$(ALL_POT_FILES)"
16552 if test "$MSGFMT" != false
16553 then
16554 PORCFLAGS="--po-dir=\$(top_builddir)/po"
16556 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
16557 else
16558 LINGUAS=
16561 if test "x$enable_tools" != xno
16562 then
16563 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
16564 clean:: __clean__
16565 \$(RM) tools/makedep\$(EXEEXT)"
16568 if test -n "$with_wine64"
16569 then
16570 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
16571 fonts server tools:
16572 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
16573 $with_wine64/loader/wine:
16574 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
16575 $with_wine64/loader/wine-preloader:
16576 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
16577 clean::
16578 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
16581 cat >confcache <<\_ACEOF
16582 # This file is a shell script that caches the results of configure
16583 # tests run on this system so they can be shared between configure
16584 # scripts and configure runs, see configure's option --config-cache.
16585 # It is not useful on other systems. If it contains results you don't
16586 # want to keep, you may remove or edit it.
16588 # config.status only pays attention to the cache file if you give it
16589 # the --recheck option to rerun configure.
16591 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16592 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16593 # following values.
16595 _ACEOF
16597 # The following way of writing the cache mishandles newlines in values,
16598 # but we know of no workaround that is simple, portable, and efficient.
16599 # So, we kill variables containing newlines.
16600 # Ultrix sh set writes to stderr and can't be redirected directly,
16601 # and sets the high bit in the cache file unless we assign to the vars.
16603 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16604 eval ac_val=\$$ac_var
16605 case $ac_val in #(
16606 *${as_nl}*)
16607 case $ac_var in #(
16608 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16609 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16610 esac
16611 case $ac_var in #(
16612 _ | IFS | as_nl) ;; #(
16613 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16614 *) { eval $ac_var=; unset $ac_var;} ;;
16615 esac ;;
16616 esac
16617 done
16619 (set) 2>&1 |
16620 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16621 *${as_nl}ac_space=\ *)
16622 # `set' does not quote correctly, so add quotes: double-quote
16623 # substitution turns \\\\ into \\, and sed turns \\ into \.
16624 sed -n \
16625 "s/'/'\\\\''/g;
16626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16627 ;; #(
16629 # `set' quotes correctly as required by POSIX, so do not add quotes.
16630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16632 esac |
16633 sort
16635 sed '
16636 /^ac_cv_env_/b end
16637 t clear
16638 :clear
16639 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16640 t end
16641 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16642 :end' >>confcache
16643 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16644 if test -w "$cache_file"; then
16645 if test "x$cache_file" != "x/dev/null"; then
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16647 $as_echo "$as_me: updating cache $cache_file" >&6;}
16648 if test ! -f "$cache_file" || test -h "$cache_file"; then
16649 cat confcache >"$cache_file"
16650 else
16651 case $cache_file in #(
16652 */* | ?:*)
16653 mv -f confcache "$cache_file"$$ &&
16654 mv -f "$cache_file"$$ "$cache_file" ;; #(
16656 mv -f confcache "$cache_file" ;;
16657 esac
16660 else
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16662 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16665 rm -f confcache
16667 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16668 # Let make expand exec_prefix.
16669 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16671 DEFS=-DHAVE_CONFIG_H
16673 ac_libobjs=
16674 ac_ltlibobjs=
16676 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16677 # 1. Remove the extension, and $U if already installed.
16678 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16679 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16680 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16681 # will be set to the directory where LIBOBJS objects are built.
16682 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16683 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16684 done
16685 LIBOBJS=$ac_libobjs
16687 LTLIBOBJS=$ac_ltlibobjs
16691 : "${CONFIG_STATUS=./config.status}"
16692 ac_write_fail=0
16693 ac_clean_files_save=$ac_clean_files
16694 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16696 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16697 as_write_fail=0
16698 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16699 #! $SHELL
16700 # Generated by $as_me.
16701 # Run this file to recreate the current configuration.
16702 # Compiler output produced by configure, useful for debugging
16703 # configure, is in config.log if it exists.
16705 debug=false
16706 ac_cs_recheck=false
16707 ac_cs_silent=false
16709 SHELL=\${CONFIG_SHELL-$SHELL}
16710 export SHELL
16711 _ASEOF
16712 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16713 ## -------------------- ##
16714 ## M4sh Initialization. ##
16715 ## -------------------- ##
16717 # Be more Bourne compatible
16718 DUALCASE=1; export DUALCASE # for MKS sh
16719 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16720 emulate sh
16721 NULLCMD=:
16722 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16723 # is contrary to our usage. Disable this feature.
16724 alias -g '${1+"$@"}'='"$@"'
16725 setopt NO_GLOB_SUBST
16726 else
16727 case `(set -o) 2>/dev/null` in #(
16728 *posix*) :
16729 set -o posix ;; #(
16730 *) :
16732 esac
16736 as_nl='
16738 export as_nl
16739 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16740 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16741 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16742 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16743 # Prefer a ksh shell builtin over an external printf program on Solaris,
16744 # but without wasting forks for bash or zsh.
16745 if test -z "$BASH_VERSION$ZSH_VERSION" \
16746 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16747 as_echo='print -r --'
16748 as_echo_n='print -rn --'
16749 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16750 as_echo='printf %s\n'
16751 as_echo_n='printf %s'
16752 else
16753 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16754 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16755 as_echo_n='/usr/ucb/echo -n'
16756 else
16757 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16758 as_echo_n_body='eval
16759 arg=$1;
16760 case $arg in #(
16761 *"$as_nl"*)
16762 expr "X$arg" : "X\\(.*\\)$as_nl";
16763 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16764 esac;
16765 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16767 export as_echo_n_body
16768 as_echo_n='sh -c $as_echo_n_body as_echo'
16770 export as_echo_body
16771 as_echo='sh -c $as_echo_body as_echo'
16774 # The user is always right.
16775 if test "${PATH_SEPARATOR+set}" != set; then
16776 PATH_SEPARATOR=:
16777 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16778 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16779 PATH_SEPARATOR=';'
16784 # IFS
16785 # We need space, tab and new line, in precisely that order. Quoting is
16786 # there to prevent editors from complaining about space-tab.
16787 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16788 # splitting by setting IFS to empty value.)
16789 IFS=" "" $as_nl"
16791 # Find who we are. Look in the path if we contain no directory separator.
16792 as_myself=
16793 case $0 in #((
16794 *[\\/]* ) as_myself=$0 ;;
16795 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16796 for as_dir in $PATH
16798 IFS=$as_save_IFS
16799 test -z "$as_dir" && as_dir=.
16800 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16801 done
16802 IFS=$as_save_IFS
16805 esac
16806 # We did not find ourselves, most probably we were run as `sh COMMAND'
16807 # in which case we are not to be found in the path.
16808 if test "x$as_myself" = x; then
16809 as_myself=$0
16811 if test ! -f "$as_myself"; then
16812 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16813 exit 1
16816 # Unset variables that we do not need and which cause bugs (e.g. in
16817 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16818 # suppresses any "Segmentation fault" message there. '((' could
16819 # trigger a bug in pdksh 5.2.14.
16820 for as_var in BASH_ENV ENV MAIL MAILPATH
16821 do eval test x\${$as_var+set} = xset \
16822 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16823 done
16824 PS1='$ '
16825 PS2='> '
16826 PS4='+ '
16828 # NLS nuisances.
16829 LC_ALL=C
16830 export LC_ALL
16831 LANGUAGE=C
16832 export LANGUAGE
16834 # CDPATH.
16835 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16838 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16839 # ----------------------------------------
16840 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16841 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16842 # script with STATUS, using 1 if that was 0.
16843 as_fn_error ()
16845 as_status=$1; test $as_status -eq 0 && as_status=1
16846 if test "$4"; then
16847 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16848 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16850 $as_echo "$as_me: error: $2" >&2
16851 as_fn_exit $as_status
16852 } # as_fn_error
16855 # as_fn_set_status STATUS
16856 # -----------------------
16857 # Set $? to STATUS, without forking.
16858 as_fn_set_status ()
16860 return $1
16861 } # as_fn_set_status
16863 # as_fn_exit STATUS
16864 # -----------------
16865 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16866 as_fn_exit ()
16868 set +e
16869 as_fn_set_status $1
16870 exit $1
16871 } # as_fn_exit
16873 # as_fn_unset VAR
16874 # ---------------
16875 # Portably unset VAR.
16876 as_fn_unset ()
16878 { eval $1=; unset $1;}
16880 as_unset=as_fn_unset
16881 # as_fn_append VAR VALUE
16882 # ----------------------
16883 # Append the text in VALUE to the end of the definition contained in VAR. Take
16884 # advantage of any shell optimizations that allow amortized linear growth over
16885 # repeated appends, instead of the typical quadratic growth present in naive
16886 # implementations.
16887 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16888 eval 'as_fn_append ()
16890 eval $1+=\$2
16892 else
16893 as_fn_append ()
16895 eval $1=\$$1\$2
16897 fi # as_fn_append
16899 # as_fn_arith ARG...
16900 # ------------------
16901 # Perform arithmetic evaluation on the ARGs, and store the result in the
16902 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16903 # must be portable across $(()) and expr.
16904 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16905 eval 'as_fn_arith ()
16907 as_val=$(( $* ))
16909 else
16910 as_fn_arith ()
16912 as_val=`expr "$@" || test $? -eq 1`
16914 fi # as_fn_arith
16917 if expr a : '\(a\)' >/dev/null 2>&1 &&
16918 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16919 as_expr=expr
16920 else
16921 as_expr=false
16924 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16925 as_basename=basename
16926 else
16927 as_basename=false
16930 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16931 as_dirname=dirname
16932 else
16933 as_dirname=false
16936 as_me=`$as_basename -- "$0" ||
16937 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16938 X"$0" : 'X\(//\)$' \| \
16939 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16940 $as_echo X/"$0" |
16941 sed '/^.*\/\([^/][^/]*\)\/*$/{
16942 s//\1/
16945 /^X\/\(\/\/\)$/{
16946 s//\1/
16949 /^X\/\(\/\).*/{
16950 s//\1/
16953 s/.*/./; q'`
16955 # Avoid depending upon Character Ranges.
16956 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16957 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16958 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16959 as_cr_digits='0123456789'
16960 as_cr_alnum=$as_cr_Letters$as_cr_digits
16962 ECHO_C= ECHO_N= ECHO_T=
16963 case `echo -n x` in #(((((
16964 -n*)
16965 case `echo 'xy\c'` in
16966 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16967 xy) ECHO_C='\c';;
16968 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16969 ECHO_T=' ';;
16970 esac;;
16972 ECHO_N='-n';;
16973 esac
16975 rm -f conf$$ conf$$.exe conf$$.file
16976 if test -d conf$$.dir; then
16977 rm -f conf$$.dir/conf$$.file
16978 else
16979 rm -f conf$$.dir
16980 mkdir conf$$.dir 2>/dev/null
16982 if (echo >conf$$.file) 2>/dev/null; then
16983 if ln -s conf$$.file conf$$ 2>/dev/null; then
16984 as_ln_s='ln -s'
16985 # ... but there are two gotchas:
16986 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16987 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16988 # In both cases, we have to default to `cp -pR'.
16989 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16990 as_ln_s='cp -pR'
16991 elif ln conf$$.file conf$$ 2>/dev/null; then
16992 as_ln_s=ln
16993 else
16994 as_ln_s='cp -pR'
16996 else
16997 as_ln_s='cp -pR'
16999 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17000 rmdir conf$$.dir 2>/dev/null
17003 # as_fn_mkdir_p
17004 # -------------
17005 # Create "$as_dir" as a directory, including parents if necessary.
17006 as_fn_mkdir_p ()
17009 case $as_dir in #(
17010 -*) as_dir=./$as_dir;;
17011 esac
17012 test -d "$as_dir" || eval $as_mkdir_p || {
17013 as_dirs=
17014 while :; do
17015 case $as_dir in #(
17016 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17017 *) as_qdir=$as_dir;;
17018 esac
17019 as_dirs="'$as_qdir' $as_dirs"
17020 as_dir=`$as_dirname -- "$as_dir" ||
17021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17022 X"$as_dir" : 'X\(//\)[^/]' \| \
17023 X"$as_dir" : 'X\(//\)$' \| \
17024 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17025 $as_echo X"$as_dir" |
17026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17027 s//\1/
17030 /^X\(\/\/\)[^/].*/{
17031 s//\1/
17034 /^X\(\/\/\)$/{
17035 s//\1/
17038 /^X\(\/\).*/{
17039 s//\1/
17042 s/.*/./; q'`
17043 test -d "$as_dir" && break
17044 done
17045 test -z "$as_dirs" || eval "mkdir $as_dirs"
17046 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17049 } # as_fn_mkdir_p
17050 if mkdir -p . 2>/dev/null; then
17051 as_mkdir_p='mkdir -p "$as_dir"'
17052 else
17053 test -d ./-p && rmdir ./-p
17054 as_mkdir_p=false
17058 # as_fn_executable_p FILE
17059 # -----------------------
17060 # Test if FILE is an executable regular file.
17061 as_fn_executable_p ()
17063 test -f "$1" && test -x "$1"
17064 } # as_fn_executable_p
17065 as_test_x='test -x'
17066 as_executable_p=as_fn_executable_p
17068 # Sed expression to map a string onto a valid CPP name.
17069 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17071 # Sed expression to map a string onto a valid variable name.
17072 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17075 exec 6>&1
17076 ## ----------------------------------- ##
17077 ## Main body of $CONFIG_STATUS script. ##
17078 ## ----------------------------------- ##
17079 _ASEOF
17080 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17083 # Save the log message, to keep $0 and so on meaningful, and to
17084 # report actual input values of CONFIG_FILES etc. instead of their
17085 # values after options handling.
17086 ac_log="
17087 This file was extended by Wine $as_me 1.5.29, which was
17088 generated by GNU Autoconf 2.69. Invocation command line was
17090 CONFIG_FILES = $CONFIG_FILES
17091 CONFIG_HEADERS = $CONFIG_HEADERS
17092 CONFIG_LINKS = $CONFIG_LINKS
17093 CONFIG_COMMANDS = $CONFIG_COMMANDS
17094 $ $0 $@
17096 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17099 _ACEOF
17101 case $ac_config_files in *"
17102 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17103 esac
17105 case $ac_config_headers in *"
17106 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17107 esac
17110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17111 # Files that config.status was made for.
17112 config_files="$ac_config_files"
17113 config_headers="$ac_config_headers"
17114 config_links="$ac_config_links"
17115 config_commands="$ac_config_commands"
17117 _ACEOF
17119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17120 ac_cs_usage="\
17121 \`$as_me' instantiates files and other configuration actions
17122 from templates according to the current configuration. Unless the files
17123 and actions are specified as TAGs, all are instantiated by default.
17125 Usage: $0 [OPTION]... [TAG]...
17127 -h, --help print this help, then exit
17128 -V, --version print version number and configuration settings, then exit
17129 --config print configuration, then exit
17130 -q, --quiet, --silent
17131 do not print progress messages
17132 -d, --debug don't remove temporary files
17133 --recheck update $as_me by reconfiguring in the same conditions
17134 --file=FILE[:TEMPLATE]
17135 instantiate the configuration file FILE
17136 --header=FILE[:TEMPLATE]
17137 instantiate the configuration header FILE
17139 Configuration files:
17140 $config_files
17142 Configuration headers:
17143 $config_headers
17145 Configuration links:
17146 $config_links
17148 Configuration commands:
17149 $config_commands
17151 Report bugs to <wine-devel@winehq.org>.
17152 Wine home page: <http://www.winehq.org>."
17154 _ACEOF
17155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17156 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17157 ac_cs_version="\\
17158 Wine config.status 1.5.29
17159 configured by $0, generated by GNU Autoconf 2.69,
17160 with options \\"\$ac_cs_config\\"
17162 Copyright (C) 2012 Free Software Foundation, Inc.
17163 This config.status script is free software; the Free Software Foundation
17164 gives unlimited permission to copy, distribute and modify it."
17166 ac_pwd='$ac_pwd'
17167 srcdir='$srcdir'
17168 INSTALL='$INSTALL'
17169 test -n "\$AWK" || AWK=awk
17170 _ACEOF
17172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17173 # The default lists apply if the user does not specify any file.
17174 ac_need_defaults=:
17175 while test $# != 0
17177 case $1 in
17178 --*=?*)
17179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17180 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17181 ac_shift=:
17183 --*=)
17184 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17185 ac_optarg=
17186 ac_shift=:
17189 ac_option=$1
17190 ac_optarg=$2
17191 ac_shift=shift
17193 esac
17195 case $ac_option in
17196 # Handling of the options.
17197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17198 ac_cs_recheck=: ;;
17199 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17200 $as_echo "$ac_cs_version"; exit ;;
17201 --config | --confi | --conf | --con | --co | --c )
17202 $as_echo "$ac_cs_config"; exit ;;
17203 --debug | --debu | --deb | --de | --d | -d )
17204 debug=: ;;
17205 --file | --fil | --fi | --f )
17206 $ac_shift
17207 case $ac_optarg in
17208 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17209 '') as_fn_error $? "missing file argument" ;;
17210 esac
17211 as_fn_append CONFIG_FILES " '$ac_optarg'"
17212 ac_need_defaults=false;;
17213 --header | --heade | --head | --hea )
17214 $ac_shift
17215 case $ac_optarg in
17216 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17217 esac
17218 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17219 ac_need_defaults=false;;
17220 --he | --h)
17221 # Conflict between --help and --header
17222 as_fn_error $? "ambiguous option: \`$1'
17223 Try \`$0 --help' for more information.";;
17224 --help | --hel | -h )
17225 $as_echo "$ac_cs_usage"; exit ;;
17226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17227 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17228 ac_cs_silent=: ;;
17230 # This is an error.
17231 -*) as_fn_error $? "unrecognized option: \`$1'
17232 Try \`$0 --help' for more information." ;;
17234 *) as_fn_append ac_config_targets " $1"
17235 ac_need_defaults=false ;;
17237 esac
17238 shift
17239 done
17241 ac_configure_extra_args=
17243 if $ac_cs_silent; then
17244 exec 6>/dev/null
17245 ac_configure_extra_args="$ac_configure_extra_args --silent"
17248 _ACEOF
17249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17250 if \$ac_cs_recheck; then
17251 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17252 shift
17253 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17254 CONFIG_SHELL='$SHELL'
17255 export CONFIG_SHELL
17256 exec "\$@"
17259 _ACEOF
17260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17261 exec 5>>config.log
17263 echo
17264 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17265 ## Running $as_me. ##
17266 _ASBOX
17267 $as_echo "$ac_log"
17268 } >&5
17270 _ACEOF
17271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17273 # INIT-COMMANDS
17275 wine_fn_output_makefile ()
17277 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
17278 $ALL_MAKEFILE_DEPENDS
17279 _WINE_EOF
17280 as_fn_error $? "could not create Makefile" "$LINENO" 5
17283 _ACEOF
17285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17287 # Handling of arguments.
17288 for ac_config_target in $ac_config_targets
17290 case $ac_config_target in
17291 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17292 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
17293 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
17294 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
17295 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
17296 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
17297 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
17298 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
17299 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
17300 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
17301 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
17302 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
17303 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
17304 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
17305 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
17306 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
17307 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
17308 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
17309 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17310 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17311 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
17312 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17313 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
17314 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17315 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
17316 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
17318 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17319 esac
17320 done
17323 # If the user did not use the arguments to specify the items to instantiate,
17324 # then the envvar interface is used. Set only those that are not.
17325 # We use the long form for the default assignment because of an extremely
17326 # bizarre bug on SunOS 4.1.3.
17327 if $ac_need_defaults; then
17328 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17329 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17330 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17331 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17334 # Have a temporary directory for convenience. Make it in the build tree
17335 # simply because there is no reason against having it here, and in addition,
17336 # creating and moving files from /tmp can sometimes cause problems.
17337 # Hook for its removal unless debugging.
17338 # Note that there is a small window in which the directory will not be cleaned:
17339 # after its creation but before its name has been assigned to `$tmp'.
17340 $debug ||
17342 tmp= ac_tmp=
17343 trap 'exit_status=$?
17344 : "${ac_tmp:=$tmp}"
17345 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17347 trap 'as_fn_exit 1' 1 2 13 15
17349 # Create a (secure) tmp directory for tmp files.
17352 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17353 test -d "$tmp"
17354 } ||
17356 tmp=./conf$$-$RANDOM
17357 (umask 077 && mkdir "$tmp")
17358 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17359 ac_tmp=$tmp
17361 # Set up the scripts for CONFIG_FILES section.
17362 # No need to generate them if there are no CONFIG_FILES.
17363 # This happens for instance with `./config.status config.h'.
17364 if test -n "$CONFIG_FILES"; then
17366 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17367 ac_cs_awk_getline=:
17368 ac_cs_awk_pipe_init=
17369 ac_cs_awk_read_file='
17370 while ((getline aline < (F[key])) > 0)
17371 print(aline)
17372 close(F[key])'
17373 ac_cs_awk_pipe_fini=
17374 else
17375 ac_cs_awk_getline=false
17376 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17377 ac_cs_awk_read_file='
17378 print "|#_!!_#|"
17379 print "cat " F[key] " &&"
17380 '$ac_cs_awk_pipe_init
17381 # The final `:' finishes the AND list.
17382 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17384 ac_cr=`echo X | tr X '\015'`
17385 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17386 # But we know of no other shell where ac_cr would be empty at this
17387 # point, so we can use a bashism as a fallback.
17388 if test "x$ac_cr" = x; then
17389 eval ac_cr=\$\'\\r\'
17391 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17392 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17393 ac_cs_awk_cr='\\r'
17394 else
17395 ac_cs_awk_cr=$ac_cr
17398 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17399 _ACEOF
17401 # Create commands to substitute file output variables.
17403 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17404 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17405 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17406 echo "_ACAWK" &&
17407 echo "_ACEOF"
17408 } >conf$$files.sh &&
17409 . ./conf$$files.sh ||
17410 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17411 rm -f conf$$files.sh
17414 echo "cat >conf$$subs.awk <<_ACEOF" &&
17415 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17416 echo "_ACEOF"
17417 } >conf$$subs.sh ||
17418 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17419 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17420 ac_delim='%!_!# '
17421 for ac_last_try in false false false false false :; do
17422 . ./conf$$subs.sh ||
17423 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17425 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17426 if test $ac_delim_n = $ac_delim_num; then
17427 break
17428 elif $ac_last_try; then
17429 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17430 else
17431 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17433 done
17434 rm -f conf$$subs.sh
17436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17437 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17438 _ACEOF
17439 sed -n '
17441 s/^/S["/; s/!.*/"]=/
17444 s/^[^!]*!//
17445 :repl
17446 t repl
17447 s/'"$ac_delim"'$//
17448 t delim
17451 s/\(.\{148\}\)..*/\1/
17452 t more1
17453 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17456 b repl
17457 :more1
17458 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17461 s/.\{148\}//
17462 t nl
17463 :delim
17465 s/\(.\{148\}\)..*/\1/
17466 t more2
17467 s/["\\]/\\&/g; s/^/"/; s/$/"/
17470 :more2
17471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17474 s/.\{148\}//
17475 t delim
17476 ' <conf$$subs.awk | sed '
17477 /^[^""]/{
17479 s/\n//
17481 ' >>$CONFIG_STATUS || ac_write_fail=1
17482 rm -f conf$$subs.awk
17483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17484 _ACAWK
17485 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17486 for (key in S) S_is_set[key] = 1
17487 FS = "\a"
17488 \$ac_cs_awk_pipe_init
17491 line = $ 0
17492 nfields = split(line, field, "@")
17493 substed = 0
17494 len = length(field[1])
17495 for (i = 2; i < nfields; i++) {
17496 key = field[i]
17497 keylen = length(key)
17498 if (S_is_set[key]) {
17499 value = S[key]
17500 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17501 len += length(value) + length(field[++i])
17502 substed = 1
17503 } else
17504 len += 1 + keylen
17506 if (nfields == 3 && !substed) {
17507 key = field[2]
17508 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17509 \$ac_cs_awk_read_file
17510 next
17513 print line
17515 \$ac_cs_awk_pipe_fini
17516 _ACAWK
17517 _ACEOF
17518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17519 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17520 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17521 else
17523 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17524 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17525 _ACEOF
17527 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17528 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17529 # trailing colons and then remove the whole line if VPATH becomes empty
17530 # (actually we leave an empty line to preserve line numbers).
17531 if test "x$srcdir" = x.; then
17532 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17534 s///
17535 s/^/:/
17536 s/[ ]*$/:/
17537 s/:\$(srcdir):/:/g
17538 s/:\${srcdir}:/:/g
17539 s/:@srcdir@:/:/g
17540 s/^:*//
17541 s/:*$//
17543 s/\(=[ ]*\).*/\1/
17545 s/\n//
17546 s/^[^=]*=[ ]*$//
17550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17551 fi # test -n "$CONFIG_FILES"
17553 # Set up the scripts for CONFIG_HEADERS section.
17554 # No need to generate them if there are no CONFIG_HEADERS.
17555 # This happens for instance with `./config.status Makefile'.
17556 if test -n "$CONFIG_HEADERS"; then
17557 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17558 BEGIN {
17559 _ACEOF
17561 # Transform confdefs.h into an awk script `defines.awk', embedded as
17562 # here-document in config.status, that substitutes the proper values into
17563 # config.h.in to produce config.h.
17565 # Create a delimiter string that does not exist in confdefs.h, to ease
17566 # handling of long lines.
17567 ac_delim='%!_!# '
17568 for ac_last_try in false false :; do
17569 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17570 if test -z "$ac_tt"; then
17571 break
17572 elif $ac_last_try; then
17573 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17574 else
17575 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17577 done
17579 # For the awk script, D is an array of macro values keyed by name,
17580 # likewise P contains macro parameters if any. Preserve backslash
17581 # newline sequences.
17583 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17584 sed -n '
17585 s/.\{148\}/&'"$ac_delim"'/g
17586 t rset
17587 :rset
17588 s/^[ ]*#[ ]*define[ ][ ]*/ /
17589 t def
17591 :def
17592 s/\\$//
17593 t bsnl
17594 s/["\\]/\\&/g
17595 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17596 D["\1"]=" \3"/p
17597 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17599 :bsnl
17600 s/["\\]/\\&/g
17601 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17602 D["\1"]=" \3\\\\\\n"\\/p
17603 t cont
17604 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17605 t cont
17607 :cont
17609 s/.\{148\}/&'"$ac_delim"'/g
17610 t clear
17611 :clear
17612 s/\\$//
17613 t bsnlc
17614 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17616 :bsnlc
17617 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17618 b cont
17619 ' <confdefs.h | sed '
17620 s/'"$ac_delim"'/"\\\
17621 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17624 for (key in D) D_is_set[key] = 1
17625 FS = "\a"
17627 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17628 line = \$ 0
17629 split(line, arg, " ")
17630 if (arg[1] == "#") {
17631 defundef = arg[2]
17632 mac1 = arg[3]
17633 } else {
17634 defundef = substr(arg[1], 2)
17635 mac1 = arg[2]
17637 split(mac1, mac2, "(") #)
17638 macro = mac2[1]
17639 prefix = substr(line, 1, index(line, defundef) - 1)
17640 if (D_is_set[macro]) {
17641 # Preserve the white space surrounding the "#".
17642 print prefix "define", macro P[macro] D[macro]
17643 next
17644 } else {
17645 # Replace #undef with comments. This is necessary, for example,
17646 # in the case of _POSIX_SOURCE, which is predefined and required
17647 # on some systems where configure will not decide to define it.
17648 if (defundef == "undef") {
17649 print "/*", prefix defundef, macro, "*/"
17650 next
17654 { print }
17655 _ACAWK
17656 _ACEOF
17657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17658 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17659 fi # test -n "$CONFIG_HEADERS"
17662 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17663 shift
17664 for ac_tag
17666 case $ac_tag in
17667 :[FHLC]) ac_mode=$ac_tag; continue;;
17668 esac
17669 case $ac_mode$ac_tag in
17670 :[FHL]*:*);;
17671 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17672 :[FH]-) ac_tag=-:-;;
17673 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17674 esac
17675 ac_save_IFS=$IFS
17676 IFS=:
17677 set x $ac_tag
17678 IFS=$ac_save_IFS
17679 shift
17680 ac_file=$1
17681 shift
17683 case $ac_mode in
17684 :L) ac_source=$1;;
17685 :[FH])
17686 ac_file_inputs=
17687 for ac_f
17689 case $ac_f in
17690 -) ac_f="$ac_tmp/stdin";;
17691 *) # Look for the file first in the build tree, then in the source tree
17692 # (if the path is not absolute). The absolute path cannot be DOS-style,
17693 # because $ac_f cannot contain `:'.
17694 test -f "$ac_f" ||
17695 case $ac_f in
17696 [\\/$]*) false;;
17697 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17698 esac ||
17699 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17700 esac
17701 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17702 as_fn_append ac_file_inputs " '$ac_f'"
17703 done
17705 # Let's still pretend it is `configure' which instantiates (i.e., don't
17706 # use $as_me), people would be surprised to read:
17707 # /* config.h. Generated by config.status. */
17708 configure_input='Generated from '`
17709 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17710 `' by configure.'
17711 if test x"$ac_file" != x-; then
17712 configure_input="$ac_file. $configure_input"
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17714 $as_echo "$as_me: creating $ac_file" >&6;}
17716 # Neutralize special characters interpreted by sed in replacement strings.
17717 case $configure_input in #(
17718 *\&* | *\|* | *\\* )
17719 ac_sed_conf_input=`$as_echo "$configure_input" |
17720 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17721 *) ac_sed_conf_input=$configure_input;;
17722 esac
17724 case $ac_tag in
17725 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17726 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17727 esac
17729 esac
17731 ac_dir=`$as_dirname -- "$ac_file" ||
17732 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17733 X"$ac_file" : 'X\(//\)[^/]' \| \
17734 X"$ac_file" : 'X\(//\)$' \| \
17735 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17736 $as_echo X"$ac_file" |
17737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17738 s//\1/
17741 /^X\(\/\/\)[^/].*/{
17742 s//\1/
17745 /^X\(\/\/\)$/{
17746 s//\1/
17749 /^X\(\/\).*/{
17750 s//\1/
17753 s/.*/./; q'`
17754 as_dir="$ac_dir"; as_fn_mkdir_p
17755 ac_builddir=.
17757 case "$ac_dir" in
17758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17760 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17761 # A ".." for each directory in $ac_dir_suffix.
17762 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17763 case $ac_top_builddir_sub in
17764 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17765 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17766 esac ;;
17767 esac
17768 ac_abs_top_builddir=$ac_pwd
17769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17770 # for backward compatibility:
17771 ac_top_builddir=$ac_top_build_prefix
17773 case $srcdir in
17774 .) # We are building in place.
17775 ac_srcdir=.
17776 ac_top_srcdir=$ac_top_builddir_sub
17777 ac_abs_top_srcdir=$ac_pwd ;;
17778 [\\/]* | ?:[\\/]* ) # Absolute name.
17779 ac_srcdir=$srcdir$ac_dir_suffix;
17780 ac_top_srcdir=$srcdir
17781 ac_abs_top_srcdir=$srcdir ;;
17782 *) # Relative name.
17783 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17784 ac_top_srcdir=$ac_top_build_prefix$srcdir
17785 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17786 esac
17787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17790 case $ac_mode in
17793 # CONFIG_FILE
17796 case $INSTALL in
17797 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17798 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17799 esac
17800 _ACEOF
17802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17803 # If the template does not know about datarootdir, expand it.
17804 # FIXME: This hack should be removed a few years after 2.60.
17805 ac_datarootdir_hack=; ac_datarootdir_seen=
17806 ac_sed_dataroot='
17807 /datarootdir/ {
17811 /@datadir@/p
17812 /@docdir@/p
17813 /@infodir@/p
17814 /@localedir@/p
17815 /@mandir@/p'
17816 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17817 *datarootdir*) ac_datarootdir_seen=yes;;
17818 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17820 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17821 _ACEOF
17822 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17823 ac_datarootdir_hack='
17824 s&@datadir@&$datadir&g
17825 s&@docdir@&$docdir&g
17826 s&@infodir@&$infodir&g
17827 s&@localedir@&$localedir&g
17828 s&@mandir@&$mandir&g
17829 s&\\\${datarootdir}&$datarootdir&g' ;;
17830 esac
17831 _ACEOF
17833 # Neutralize VPATH when `$srcdir' = `.'.
17834 # Shell code in configure.ac might set extrasub.
17835 # FIXME: do we really want to maintain this feature?
17836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17837 ac_sed_extra="$ac_vpsub
17838 $extrasub
17839 _ACEOF
17840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17842 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17843 s|@configure_input@|$ac_sed_conf_input|;t t
17844 s&@top_builddir@&$ac_top_builddir_sub&;t t
17845 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17846 s&@srcdir@&$ac_srcdir&;t t
17847 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17848 s&@top_srcdir@&$ac_top_srcdir&;t t
17849 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17850 s&@builddir@&$ac_builddir&;t t
17851 s&@abs_builddir@&$ac_abs_builddir&;t t
17852 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17853 s&@INSTALL@&$ac_INSTALL&;t t
17854 $ac_datarootdir_hack
17856 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17857 if $ac_cs_awk_getline; then
17858 $AWK -f "$ac_tmp/subs.awk"
17859 else
17860 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17861 fi \
17862 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17864 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17865 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17866 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17867 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17869 which seems to be undefined. Please make sure it is defined" >&5
17870 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17871 which seems to be undefined. Please make sure it is defined" >&2;}
17873 rm -f "$ac_tmp/stdin"
17874 case $ac_file in
17875 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17876 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17877 esac \
17878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17882 # CONFIG_HEADER
17884 if test x"$ac_file" != x-; then
17886 $as_echo "/* $configure_input */" \
17887 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17888 } >"$ac_tmp/config.h" \
17889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17890 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17892 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17893 else
17894 rm -f "$ac_file"
17895 mv "$ac_tmp/config.h" "$ac_file" \
17896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17898 else
17899 $as_echo "/* $configure_input */" \
17900 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17901 || as_fn_error $? "could not create -" "$LINENO" 5
17906 # CONFIG_LINK
17909 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17911 else
17912 # Prefer the file from the source tree if names are identical.
17913 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17914 ac_source=$srcdir/$ac_source
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17918 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17920 if test ! -r "$ac_source"; then
17921 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17923 rm -f "$ac_file"
17925 # Try a relative symlink, then a hard link, then a copy.
17926 case $ac_source in
17927 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17928 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17929 esac
17930 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17931 ln "$ac_source" "$ac_file" 2>/dev/null ||
17932 cp -p "$ac_source" "$ac_file" ||
17933 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17936 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17937 $as_echo "$as_me: executing $ac_file commands" >&6;}
17939 esac
17942 case $ac_file$ac_mode in
17943 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17944 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17945 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17946 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17947 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17948 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17949 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17950 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17951 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17952 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17953 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17954 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17955 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17956 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17957 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17958 "Makefile":C) wine_fn_output_makefile Makefile ;;
17960 esac
17961 done # for ac_tag
17964 as_fn_exit 0
17965 _ACEOF
17966 ac_clean_files=$ac_clean_files_save
17968 test $ac_write_fail = 0 ||
17969 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17972 # configure is writing to config.log, and then calls config.status.
17973 # config.status does its own redirection, appending to config.log.
17974 # Unfortunately, on DOS this fails, as config.log is still kept open
17975 # by configure, so config.status won't be able to write to it; its
17976 # output is simply discarded. So we exec the FD to /dev/null,
17977 # effectively closing config.log, so it can be properly (re)opened and
17978 # appended to by config.status. When coming back to configure, we
17979 # need to make the FD available again.
17980 if test "$no_create" != yes; then
17981 ac_cs_success=:
17982 ac_config_status_args=
17983 test "$silent" = yes &&
17984 ac_config_status_args="$ac_config_status_args --quiet"
17985 exec 5>/dev/null
17986 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17987 exec 5>>config.log
17988 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17989 # would make configure fail if this is the last instruction.
17990 $ac_cs_success || as_fn_exit 1
17992 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17994 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17998 if test "$no_create" = "yes"
17999 then
18000 exit 0
18003 ac_save_IFS="$IFS"
18004 if test "x$wine_notices != "x; then
18005 echo >&6
18006 IFS="|"
18007 for msg in $wine_notices; do
18008 IFS="$ac_save_IFS"
18009 if test -n "$msg"; then
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18011 $as_echo "$as_me: $msg" >&6;}
18013 done
18015 IFS="|"
18016 for msg in $wine_warnings; do
18017 IFS="$ac_save_IFS"
18018 if test -n "$msg"; then
18019 echo >&2
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18021 $as_echo "$as_me: WARNING: $msg" >&2;}
18023 done
18024 IFS="$ac_save_IFS"
18026 echo "
18027 $as_me: Finished. Do '${ac_make}' to compile Wine.
18028 " >&6