msvcp90: Return on error (Coverity).
[wine/multimedia.git] / configure
blob4603d9553e196bc96035282ee8272b5394f7c6cf
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.10.
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.7.10'
584 PACKAGE_STRING='Wine 1.7.10'
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 LDAPLIBS
630 LIBRT
631 LIBPOLL
632 LIBDL
633 TOOLSEXT
634 UNWINDFLAGS
635 BUILTINFLAG
636 EXTRACFLAGS
637 LIBPROCSTAT
638 LIBKSTAT
639 LIBOPENAL
640 MPG123_LIBS
641 MPG123_CFLAGS
642 TIFF_LIBS
643 TIFF_CFLAGS
644 PNG_LIBS
645 PNG_CFLAGS
646 JPEG_LIBS
647 JPEG_CFLAGS
648 FONTCONFIGINCL
649 CUPSINCL
650 CAPI20_LIBS
651 CAPI20_CFLAGS
652 OSS4INCL
653 ALSALIBS
654 GSTREAMER_LIBS
655 GSTREAMER_CFLAGS
656 LIBGETTEXTPO
657 ZLIB
658 FREETYPE_LIBS
659 FREETYPE_CFLAGS
660 LCMS2_LIBS
661 LCMS2_CFLAGS
662 RESOLVLIBS
663 GPHOTO2_PORT_LIBS
664 GPHOTO2_PORT_CFLAGS
665 GPHOTO2_LIBS
666 GPHOTO2_CFLAGS
667 SANE_LIBS
668 SANE_CFLAGS
669 GNUTLS_LIBS
670 GNUTLS_CFLAGS
671 HAL_LIBS
672 HAL_CFLAGS
673 DBUS_LIBS
674 DBUS_CFLAGS
675 XSLT_LIBS
676 XSLT_CFLAGS
677 XML2_LIBS
678 XML2_CFLAGS
679 X_EXTRA_LIBS
680 X_LIBS
681 X_PRE_LIBS
682 X_CFLAGS
683 XMKMF
684 LIBPTHREAD
685 CROSSCC
686 CROSSTARGET
687 PRELINK
688 CARBONLIB
689 QUICKTIMELIB
690 LIBOPENCL
691 FRAMEWORK_OPENAL
692 COREAUDIO
693 SECURITYLIB
694 DISKARBITRATIONLIB
695 APPKITLIB
696 CORESERVICESLIB
697 APPLICATIONSERVICESLIB
698 FORCEFEEDBACKLIB
699 IOKITLIB
700 COREFOUNDATIONLIB
701 LIBWINE_RULES
702 SOCKETLIBS
703 DLLTOOL
704 LOADER_RULES
705 ALL_TEST_RESOURCES
706 READELF
708 LDRPATH_LOCAL
709 LDRPATH_INSTALL
710 DLLFLAGS
711 DLLPREFIX
712 dlldir
714 OPENGL_LIBS
715 XLIB
716 ICOTOOL
717 CONVERT
718 RSVG
719 FONTFORGE
720 PKG_CONFIG
721 MSGFMT
722 LDCONFIG
723 MKDIR_P
724 EGREP
725 GREP
726 LN_S
727 RANLIB
728 ARFLAGS
729 STRIP
730 ac_ct_AR
732 BISON
733 FLEX
734 TOOLSDIR
735 TARGETFLAGS
736 CPPBIN
737 ac_ct_CXX
738 CXXFLAGS
740 OBJEXT
741 EXEEXT
742 ac_ct_CC
743 CPPFLAGS
744 LDFLAGS
745 CFLAGS
747 SET_MAKE
748 host_os
749 host_vendor
750 host_cpu
751 host
752 build_os
753 build_vendor
754 build_cpu
755 build
756 target_alias
757 host_alias
758 build_alias
759 LIBS
760 ECHO_T
761 ECHO_N
762 ECHO_C
763 DEFS
764 mandir
765 localedir
766 libdir
767 psdir
768 pdfdir
769 dvidir
770 htmldir
771 infodir
772 docdir
773 oldincludedir
774 includedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files='MAKE_RULES'
795 ac_user_opts='
796 enable_option_checking
797 enable_win16
798 enable_win64
799 enable_tests
800 enable_maintainer_mode
801 with_alsa
802 with_capi
803 with_cms
804 with_coreaudio
805 with_cups
806 with_curses
807 with_dbus
808 with_fontconfig
809 with_freetype
810 with_gettext
811 with_gettextpo
812 with_gphoto
813 with_glu
814 with_gnutls
815 with_gsm
816 with_gstreamer
817 with_hal
818 with_jpeg
819 with_ldap
820 with_mpg123
821 with_netapi
822 with_openal
823 with_opencl
824 with_opengl
825 with_osmesa
826 with_oss
827 with_png
828 with_pthread
829 with_sane
830 with_tiff
831 with_v4l
832 with_xcomposite
833 with_xcursor
834 with_xinerama
835 with_xinput
836 with_xinput2
837 with_xml
838 with_xrandr
839 with_xrender
840 with_xshape
841 with_xshm
842 with_xslt
843 with_xxf86vm
844 with_zlib
845 with_wine_tools
846 with_wine64
847 enable_largefile
848 with_x
849 enable_acledit
850 enable_aclui
851 enable_activeds
852 enable_actxprxy
853 enable_advapi32
854 enable_advpack
855 enable_amstream
856 enable_api_ms_win_core_localregistry_l1_1_0
857 enable_api_ms_win_core_processthreads_l1_1_0
858 enable_api_ms_win_core_winrt_error_l1_1_0
859 enable_api_ms_win_core_winrt_string_l1_1_0
860 enable_api_ms_win_downlevel_advapi32_l1_1_0
861 enable_api_ms_win_downlevel_advapi32_l2_1_0
862 enable_api_ms_win_downlevel_normaliz_l1_1_0
863 enable_api_ms_win_downlevel_ole32_l1_1_0
864 enable_api_ms_win_downlevel_shell32_l1_1_0
865 enable_api_ms_win_downlevel_shlwapi_l1_1_0
866 enable_api_ms_win_downlevel_shlwapi_l2_1_0
867 enable_api_ms_win_downlevel_user32_l1_1_0
868 enable_api_ms_win_downlevel_version_l1_1_0
869 enable_api_ms_win_security_base_l1_1_0
870 enable_apphelp
871 enable_appwiz_cpl
872 enable_atl
873 enable_atl100
874 enable_atl110
875 enable_atl80
876 enable_atl90
877 enable_authz
878 enable_avicap32
879 enable_avifil32
880 enable_avrt
881 enable_bcrypt
882 enable_browseui
883 enable_cabinet
884 enable_capi2032
885 enable_cards
886 enable_cfgmgr32
887 enable_clusapi
888 enable_comcat
889 enable_comctl32
890 enable_comdlg32
891 enable_compstui
892 enable_comsvcs
893 enable_credui
894 enable_crtdll
895 enable_crypt32
896 enable_cryptdlg
897 enable_cryptdll
898 enable_cryptnet
899 enable_cryptui
900 enable_ctapi32
901 enable_ctl3d32
902 enable_d3d10
903 enable_d3d10core
904 enable_d3d11
905 enable_d3d8
906 enable_d3d9
907 enable_d3dcompiler_33
908 enable_d3dcompiler_34
909 enable_d3dcompiler_35
910 enable_d3dcompiler_36
911 enable_d3dcompiler_37
912 enable_d3dcompiler_38
913 enable_d3dcompiler_39
914 enable_d3dcompiler_40
915 enable_d3dcompiler_41
916 enable_d3dcompiler_42
917 enable_d3dcompiler_43
918 enable_d3dim
919 enable_d3drm
920 enable_d3dx10_33
921 enable_d3dx10_34
922 enable_d3dx10_35
923 enable_d3dx10_36
924 enable_d3dx10_37
925 enable_d3dx10_38
926 enable_d3dx10_39
927 enable_d3dx10_40
928 enable_d3dx10_41
929 enable_d3dx10_42
930 enable_d3dx10_43
931 enable_d3dx11_42
932 enable_d3dx11_43
933 enable_d3dx9_24
934 enable_d3dx9_25
935 enable_d3dx9_26
936 enable_d3dx9_27
937 enable_d3dx9_28
938 enable_d3dx9_29
939 enable_d3dx9_30
940 enable_d3dx9_31
941 enable_d3dx9_32
942 enable_d3dx9_33
943 enable_d3dx9_34
944 enable_d3dx9_35
945 enable_d3dx9_36
946 enable_d3dx9_37
947 enable_d3dx9_38
948 enable_d3dx9_39
949 enable_d3dx9_40
950 enable_d3dx9_41
951 enable_d3dx9_42
952 enable_d3dx9_43
953 enable_d3dxof
954 enable_dbgeng
955 enable_dbghelp
956 enable_dciman32
957 enable_ddraw
958 enable_ddrawex
959 enable_devenum
960 enable_dhcpcsvc
961 enable_difxapi
962 enable_dinput
963 enable_dinput8
964 enable_dispex
965 enable_dmband
966 enable_dmcompos
967 enable_dmime
968 enable_dmloader
969 enable_dmscript
970 enable_dmstyle
971 enable_dmsynth
972 enable_dmusic
973 enable_dmusic32
974 enable_dnsapi
975 enable_dplay
976 enable_dplayx
977 enable_dpnaddr
978 enable_dpnet
979 enable_dpnhpast
980 enable_dpnlobby
981 enable_dpwsockx
982 enable_drmclien
983 enable_dsound
984 enable_dssenh
985 enable_dswave
986 enable_dwmapi
987 enable_dwrite
988 enable_dxdiagn
989 enable_dxgi
990 enable_explorerframe
991 enable_faultrep
992 enable_fltlib
993 enable_fusion
994 enable_fwpuclnt
995 enable_gameux
996 enable_gdi32
997 enable_gdiplus
998 enable_glu32
999 enable_gphoto2_ds
1000 enable_gpkcsp
1001 enable_hal
1002 enable_hhctrl_ocx
1003 enable_hid
1004 enable_hlink
1005 enable_hnetcfg
1006 enable_httpapi
1007 enable_iccvid
1008 enable_icmp
1009 enable_ieframe
1010 enable_imaadp32_acm
1011 enable_imagehlp
1012 enable_imm32
1013 enable_inetcomm
1014 enable_inetcpl_cpl
1015 enable_inetmib1
1016 enable_infosoft
1017 enable_initpki
1018 enable_inkobj
1019 enable_inseng
1020 enable_iphlpapi
1021 enable_itircl
1022 enable_itss
1023 enable_joy_cpl
1024 enable_jscript
1025 enable_kernel32
1026 enable_ktmw32
1027 enable_loadperf
1028 enable_localspl
1029 enable_localui
1030 enable_lz32
1031 enable_mapi32
1032 enable_mapistub
1033 enable_mciavi32
1034 enable_mcicda
1035 enable_mciqtz32
1036 enable_mciseq
1037 enable_mciwave
1038 enable_mgmtapi
1039 enable_midimap
1040 enable_mlang
1041 enable_mmcndmgr
1042 enable_mmdevapi
1043 enable_mountmgr_sys
1044 enable_mpr
1045 enable_mprapi
1046 enable_msacm32_drv
1047 enable_msacm32
1048 enable_msadp32_acm
1049 enable_mscat32
1050 enable_mscms
1051 enable_mscoree
1052 enable_msctf
1053 enable_msdaps
1054 enable_msdmo
1055 enable_msftedit
1056 enable_msg711_acm
1057 enable_msgsm32_acm
1058 enable_mshtml_tlb
1059 enable_mshtml
1060 enable_msi
1061 enable_msident
1062 enable_msimg32
1063 enable_msimsg
1064 enable_msimtf
1065 enable_msisip
1066 enable_msisys_ocx
1067 enable_msls31
1068 enable_msnet32
1069 enable_mspatcha
1070 enable_msrle32
1071 enable_mssign32
1072 enable_mssip32
1073 enable_mstask
1074 enable_msvcirt
1075 enable_msvcm80
1076 enable_msvcm90
1077 enable_msvcp100
1078 enable_msvcp110
1079 enable_msvcp60
1080 enable_msvcp70
1081 enable_msvcp71
1082 enable_msvcp80
1083 enable_msvcp90
1084 enable_msvcr100
1085 enable_msvcr110
1086 enable_msvcr70
1087 enable_msvcr71
1088 enable_msvcr80
1089 enable_msvcr90
1090 enable_msvcrt
1091 enable_msvcrt20
1092 enable_msvcrt40
1093 enable_msvcrtd
1094 enable_msvfw32
1095 enable_msvidc32
1096 enable_mswsock
1097 enable_msxml
1098 enable_msxml2
1099 enable_msxml3
1100 enable_msxml4
1101 enable_msxml6
1102 enable_nddeapi
1103 enable_netapi32
1104 enable_netcfgx
1105 enable_newdev
1106 enable_normaliz
1107 enable_npmshtml
1108 enable_ntdll
1109 enable_ntdsapi
1110 enable_ntoskrnl_exe
1111 enable_ntprint
1112 enable_objsel
1113 enable_odbc32
1114 enable_odbccp32
1115 enable_odbccu32
1116 enable_ole32
1117 enable_oleacc
1118 enable_oleaut32
1119 enable_olecli32
1120 enable_oledb32
1121 enable_oledlg
1122 enable_olepro32
1123 enable_olesvr32
1124 enable_olethk32
1125 enable_openal32
1126 enable_opencl
1127 enable_opengl32
1128 enable_pdh
1129 enable_photometadatahandler
1130 enable_pidgen
1131 enable_powrprof
1132 enable_printui
1133 enable_propsys
1134 enable_psapi
1135 enable_pstorec
1136 enable_qcap
1137 enable_qedit
1138 enable_qmgr
1139 enable_qmgrprxy
1140 enable_quartz
1141 enable_query
1142 enable_rasapi32
1143 enable_rasdlg
1144 enable_regapi
1145 enable_resutils
1146 enable_riched20
1147 enable_riched32
1148 enable_rpcrt4
1149 enable_rsabase
1150 enable_rsaenh
1151 enable_rstrtmgr
1152 enable_rtutils
1153 enable_samlib
1154 enable_sane_ds
1155 enable_scarddlg
1156 enable_sccbase
1157 enable_schannel
1158 enable_scrrun
1159 enable_scsiport_sys
1160 enable_secur32
1161 enable_security
1162 enable_sensapi
1163 enable_serialui
1164 enable_setupapi
1165 enable_sfc
1166 enable_sfc_os
1167 enable_shdoclc
1168 enable_shdocvw
1169 enable_shell32
1170 enable_shfolder
1171 enable_shlwapi
1172 enable_slbcsp
1173 enable_slc
1174 enable_snmpapi
1175 enable_softpub
1176 enable_spoolss
1177 enable_stdole2_tlb
1178 enable_stdole32_tlb
1179 enable_sti
1180 enable_svrapi
1181 enable_sxs
1182 enable_t2embed
1183 enable_tapi32
1184 enable_taskschd
1185 enable_traffic
1186 enable_twain_32
1187 enable_unicows
1188 enable_updspapi
1189 enable_url
1190 enable_urlmon
1191 enable_usbd_sys
1192 enable_user32
1193 enable_userenv
1194 enable_usp10
1195 enable_uxtheme
1196 enable_vbscript
1197 enable_vcomp
1198 enable_vcomp100
1199 enable_vcomp90
1200 enable_vdmdbg
1201 enable_version
1202 enable_wbemdisp
1203 enable_wbemprox
1204 enable_webservices
1205 enable_wer
1206 enable_wevtapi
1207 enable_wiaservc
1208 enable_windowscodecs
1209 enable_windowscodecsext
1210 enable_winealsa_drv
1211 enable_winecoreaudio_drv
1212 enable_wined3d
1213 enable_winegstreamer
1214 enable_winejoystick_drv
1215 enable_winemac_drv
1216 enable_winemapi
1217 enable_winemp3_acm
1218 enable_wineoss_drv
1219 enable_wineps_drv
1220 enable_wineqtdecoder
1221 enable_winex11_drv
1222 enable_wing32
1223 enable_winhttp
1224 enable_wininet
1225 enable_winmm
1226 enable_winnls32
1227 enable_winscard
1228 enable_winspool_drv
1229 enable_winsta
1230 enable_wintab32
1231 enable_wintrust
1232 enable_wlanapi
1233 enable_wldap32
1234 enable_wmi
1235 enable_wmiutils
1236 enable_wmvcore
1237 enable_wnaspi32
1238 enable_ws2_32
1239 enable_wshom_ocx
1240 enable_wsnmp32
1241 enable_wsock32
1242 enable_wtsapi32
1243 enable_wuapi
1244 enable_wuaueng
1245 enable_xapofx1_1
1246 enable_xinput1_1
1247 enable_xinput1_2
1248 enable_xinput1_3
1249 enable_xinput1_4
1250 enable_xinput9_1_0
1251 enable_xmllite
1252 enable_xolehlp
1253 enable_xpsprint
1254 enable_xpssvcs
1255 enable_documentation
1256 enable_fonts
1257 enable_include
1258 enable_libs_port
1259 enable_libs_wine
1260 enable_libs_wpp
1261 enable_loader
1262 enable_arp
1263 enable_aspnet_regiis
1264 enable_attrib
1265 enable_cabarc
1266 enable_cacls
1267 enable_clock
1268 enable_cmd
1269 enable_conhost
1270 enable_control
1271 enable_cscript
1272 enable_dxdiag
1273 enable_eject
1274 enable_expand
1275 enable_explorer
1276 enable_extrac32
1277 enable_findstr
1278 enable_hh
1279 enable_hostname
1280 enable_icinfo
1281 enable_iexplore
1282 enable_ipconfig
1283 enable_lodctr
1284 enable_mofcomp
1285 enable_mshta
1286 enable_msiexec
1287 enable_net
1288 enable_netsh
1289 enable_netstat
1290 enable_ngen
1291 enable_notepad
1292 enable_oleview
1293 enable_ping
1294 enable_plugplay
1295 enable_presentationfontcache
1296 enable_progman
1297 enable_reg
1298 enable_regasm
1299 enable_regedit
1300 enable_regsvcs
1301 enable_regsvr32
1302 enable_rpcss
1303 enable_rundll32
1304 enable_sc
1305 enable_schtasks
1306 enable_secedit
1307 enable_servicemodelreg
1308 enable_services
1309 enable_spoolsv
1310 enable_start
1311 enable_svchost
1312 enable_taskkill
1313 enable_tasklist
1314 enable_taskmgr
1315 enable_termsv
1316 enable_uninstaller
1317 enable_unlodctr
1318 enable_view
1319 enable_wineboot
1320 enable_winebrowser
1321 enable_winecfg
1322 enable_wineconsole
1323 enable_winedbg
1324 enable_winedevice
1325 enable_winefile
1326 enable_winemenubuilder
1327 enable_winemine
1328 enable_winemsibuilder
1329 enable_winepath
1330 enable_winetest
1331 enable_winhlp32
1332 enable_winver
1333 enable_wmic
1334 enable_wordpad
1335 enable_write
1336 enable_wscript
1337 enable_wusa
1338 enable_xcopy
1339 enable_server
1340 enable_tools
1342 ac_precious_vars='build_alias
1343 host_alias
1344 target_alias
1346 CFLAGS
1347 LDFLAGS
1348 LIBS
1349 CPPFLAGS
1351 CXXFLAGS
1354 XMKMF
1355 XML2_CFLAGS
1356 XML2_LIBS
1357 XSLT_CFLAGS
1358 XSLT_LIBS
1359 DBUS_CFLAGS
1360 DBUS_LIBS
1361 HAL_CFLAGS
1362 HAL_LIBS
1363 GNUTLS_CFLAGS
1364 GNUTLS_LIBS
1365 SANE_CFLAGS
1366 SANE_LIBS
1367 GPHOTO2_CFLAGS
1368 GPHOTO2_LIBS
1369 GPHOTO2_PORT_CFLAGS
1370 GPHOTO2_PORT_LIBS
1371 LCMS2_CFLAGS
1372 LCMS2_LIBS
1373 FREETYPE_CFLAGS
1374 FREETYPE_LIBS
1375 GSTREAMER_CFLAGS
1376 GSTREAMER_LIBS
1377 CAPI20_CFLAGS
1378 CAPI20_LIBS
1379 JPEG_CFLAGS
1380 JPEG_LIBS
1381 PNG_CFLAGS
1382 PNG_LIBS
1383 TIFF_CFLAGS
1384 TIFF_LIBS
1385 MPG123_CFLAGS
1386 MPG123_LIBS'
1389 # Initialize some variables set by options.
1390 ac_init_help=
1391 ac_init_version=false
1392 ac_unrecognized_opts=
1393 ac_unrecognized_sep=
1394 # The variables have the same names as the options, with
1395 # dashes changed to underlines.
1396 cache_file=/dev/null
1397 exec_prefix=NONE
1398 no_create=
1399 no_recursion=
1400 prefix=NONE
1401 program_prefix=NONE
1402 program_suffix=NONE
1403 program_transform_name=s,x,x,
1404 silent=
1405 site=
1406 srcdir=
1407 verbose=
1408 x_includes=NONE
1409 x_libraries=NONE
1411 # Installation directory options.
1412 # These are left unexpanded so users can "make install exec_prefix=/foo"
1413 # and all the variables that are supposed to be based on exec_prefix
1414 # by default will actually change.
1415 # Use braces instead of parens because sh, perl, etc. also accept them.
1416 # (The list follows the same order as the GNU Coding Standards.)
1417 bindir='${exec_prefix}/bin'
1418 sbindir='${exec_prefix}/sbin'
1419 libexecdir='${exec_prefix}/libexec'
1420 datarootdir='${prefix}/share'
1421 datadir='${datarootdir}'
1422 sysconfdir='${prefix}/etc'
1423 sharedstatedir='${prefix}/com'
1424 localstatedir='${prefix}/var'
1425 includedir='${prefix}/include'
1426 oldincludedir='/usr/include'
1427 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1428 infodir='${datarootdir}/info'
1429 htmldir='${docdir}'
1430 dvidir='${docdir}'
1431 pdfdir='${docdir}'
1432 psdir='${docdir}'
1433 libdir='${exec_prefix}/lib'
1434 localedir='${datarootdir}/locale'
1435 mandir='${datarootdir}/man'
1437 ac_prev=
1438 ac_dashdash=
1439 for ac_option
1441 # If the previous option needs an argument, assign it.
1442 if test -n "$ac_prev"; then
1443 eval $ac_prev=\$ac_option
1444 ac_prev=
1445 continue
1448 case $ac_option in
1449 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1450 *=) ac_optarg= ;;
1451 *) ac_optarg=yes ;;
1452 esac
1454 # Accept the important Cygnus configure options, so we can diagnose typos.
1456 case $ac_dashdash$ac_option in
1458 ac_dashdash=yes ;;
1460 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1461 ac_prev=bindir ;;
1462 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1463 bindir=$ac_optarg ;;
1465 -build | --build | --buil | --bui | --bu)
1466 ac_prev=build_alias ;;
1467 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1468 build_alias=$ac_optarg ;;
1470 -cache-file | --cache-file | --cache-fil | --cache-fi \
1471 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1472 ac_prev=cache_file ;;
1473 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1474 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1475 cache_file=$ac_optarg ;;
1477 --config-cache | -C)
1478 cache_file=config.cache ;;
1480 -datadir | --datadir | --datadi | --datad)
1481 ac_prev=datadir ;;
1482 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1483 datadir=$ac_optarg ;;
1485 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1486 | --dataroo | --dataro | --datar)
1487 ac_prev=datarootdir ;;
1488 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1489 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1490 datarootdir=$ac_optarg ;;
1492 -disable-* | --disable-*)
1493 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1494 # Reject names that are not valid shell variable names.
1495 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1496 as_fn_error $? "invalid feature name: $ac_useropt"
1497 ac_useropt_orig=$ac_useropt
1498 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1499 case $ac_user_opts in
1501 "enable_$ac_useropt"
1502 "*) ;;
1503 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1504 ac_unrecognized_sep=', ';;
1505 esac
1506 eval enable_$ac_useropt=no ;;
1508 -docdir | --docdir | --docdi | --doc | --do)
1509 ac_prev=docdir ;;
1510 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1511 docdir=$ac_optarg ;;
1513 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1514 ac_prev=dvidir ;;
1515 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1516 dvidir=$ac_optarg ;;
1518 -enable-* | --enable-*)
1519 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1520 # Reject names that are not valid shell variable names.
1521 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1522 as_fn_error $? "invalid feature name: $ac_useropt"
1523 ac_useropt_orig=$ac_useropt
1524 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1525 case $ac_user_opts in
1527 "enable_$ac_useropt"
1528 "*) ;;
1529 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1530 ac_unrecognized_sep=', ';;
1531 esac
1532 eval enable_$ac_useropt=\$ac_optarg ;;
1534 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1535 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1536 | --exec | --exe | --ex)
1537 ac_prev=exec_prefix ;;
1538 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1539 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1540 | --exec=* | --exe=* | --ex=*)
1541 exec_prefix=$ac_optarg ;;
1543 -gas | --gas | --ga | --g)
1544 # Obsolete; use --with-gas.
1545 with_gas=yes ;;
1547 -help | --help | --hel | --he | -h)
1548 ac_init_help=long ;;
1549 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1550 ac_init_help=recursive ;;
1551 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1552 ac_init_help=short ;;
1554 -host | --host | --hos | --ho)
1555 ac_prev=host_alias ;;
1556 -host=* | --host=* | --hos=* | --ho=*)
1557 host_alias=$ac_optarg ;;
1559 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1560 ac_prev=htmldir ;;
1561 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1562 | --ht=*)
1563 htmldir=$ac_optarg ;;
1565 -includedir | --includedir | --includedi | --included | --include \
1566 | --includ | --inclu | --incl | --inc)
1567 ac_prev=includedir ;;
1568 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1569 | --includ=* | --inclu=* | --incl=* | --inc=*)
1570 includedir=$ac_optarg ;;
1572 -infodir | --infodir | --infodi | --infod | --info | --inf)
1573 ac_prev=infodir ;;
1574 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1575 infodir=$ac_optarg ;;
1577 -libdir | --libdir | --libdi | --libd)
1578 ac_prev=libdir ;;
1579 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1580 libdir=$ac_optarg ;;
1582 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1583 | --libexe | --libex | --libe)
1584 ac_prev=libexecdir ;;
1585 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1586 | --libexe=* | --libex=* | --libe=*)
1587 libexecdir=$ac_optarg ;;
1589 -localedir | --localedir | --localedi | --localed | --locale)
1590 ac_prev=localedir ;;
1591 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1592 localedir=$ac_optarg ;;
1594 -localstatedir | --localstatedir | --localstatedi | --localstated \
1595 | --localstate | --localstat | --localsta | --localst | --locals)
1596 ac_prev=localstatedir ;;
1597 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1598 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1599 localstatedir=$ac_optarg ;;
1601 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1602 ac_prev=mandir ;;
1603 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1604 mandir=$ac_optarg ;;
1606 -nfp | --nfp | --nf)
1607 # Obsolete; use --without-fp.
1608 with_fp=no ;;
1610 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1611 | --no-cr | --no-c | -n)
1612 no_create=yes ;;
1614 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1615 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1616 no_recursion=yes ;;
1618 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1619 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1620 | --oldin | --oldi | --old | --ol | --o)
1621 ac_prev=oldincludedir ;;
1622 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1623 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1624 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1625 oldincludedir=$ac_optarg ;;
1627 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1628 ac_prev=prefix ;;
1629 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1630 prefix=$ac_optarg ;;
1632 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1633 | --program-pre | --program-pr | --program-p)
1634 ac_prev=program_prefix ;;
1635 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1636 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1637 program_prefix=$ac_optarg ;;
1639 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1640 | --program-suf | --program-su | --program-s)
1641 ac_prev=program_suffix ;;
1642 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1643 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1644 program_suffix=$ac_optarg ;;
1646 -program-transform-name | --program-transform-name \
1647 | --program-transform-nam | --program-transform-na \
1648 | --program-transform-n | --program-transform- \
1649 | --program-transform | --program-transfor \
1650 | --program-transfo | --program-transf \
1651 | --program-trans | --program-tran \
1652 | --progr-tra | --program-tr | --program-t)
1653 ac_prev=program_transform_name ;;
1654 -program-transform-name=* | --program-transform-name=* \
1655 | --program-transform-nam=* | --program-transform-na=* \
1656 | --program-transform-n=* | --program-transform-=* \
1657 | --program-transform=* | --program-transfor=* \
1658 | --program-transfo=* | --program-transf=* \
1659 | --program-trans=* | --program-tran=* \
1660 | --progr-tra=* | --program-tr=* | --program-t=*)
1661 program_transform_name=$ac_optarg ;;
1663 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1664 ac_prev=pdfdir ;;
1665 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1666 pdfdir=$ac_optarg ;;
1668 -psdir | --psdir | --psdi | --psd | --ps)
1669 ac_prev=psdir ;;
1670 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1671 psdir=$ac_optarg ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1675 silent=yes ;;
1677 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1678 ac_prev=sbindir ;;
1679 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1680 | --sbi=* | --sb=*)
1681 sbindir=$ac_optarg ;;
1683 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1684 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1685 | --sharedst | --shareds | --shared | --share | --shar \
1686 | --sha | --sh)
1687 ac_prev=sharedstatedir ;;
1688 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1689 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1690 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1691 | --sha=* | --sh=*)
1692 sharedstatedir=$ac_optarg ;;
1694 -site | --site | --sit)
1695 ac_prev=site ;;
1696 -site=* | --site=* | --sit=*)
1697 site=$ac_optarg ;;
1699 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1700 ac_prev=srcdir ;;
1701 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1702 srcdir=$ac_optarg ;;
1704 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1705 | --syscon | --sysco | --sysc | --sys | --sy)
1706 ac_prev=sysconfdir ;;
1707 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1708 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1709 sysconfdir=$ac_optarg ;;
1711 -target | --target | --targe | --targ | --tar | --ta | --t)
1712 ac_prev=target_alias ;;
1713 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1714 target_alias=$ac_optarg ;;
1716 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1717 verbose=yes ;;
1719 -version | --version | --versio | --versi | --vers | -V)
1720 ac_init_version=: ;;
1722 -with-* | --with-*)
1723 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1724 # Reject names that are not valid shell variable names.
1725 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1726 as_fn_error $? "invalid package name: $ac_useropt"
1727 ac_useropt_orig=$ac_useropt
1728 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1729 case $ac_user_opts in
1731 "with_$ac_useropt"
1732 "*) ;;
1733 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1734 ac_unrecognized_sep=', ';;
1735 esac
1736 eval with_$ac_useropt=\$ac_optarg ;;
1738 -without-* | --without-*)
1739 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1740 # Reject names that are not valid shell variable names.
1741 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1742 as_fn_error $? "invalid package name: $ac_useropt"
1743 ac_useropt_orig=$ac_useropt
1744 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1745 case $ac_user_opts in
1747 "with_$ac_useropt"
1748 "*) ;;
1749 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1750 ac_unrecognized_sep=', ';;
1751 esac
1752 eval with_$ac_useropt=no ;;
1754 --x)
1755 # Obsolete; use --with-x.
1756 with_x=yes ;;
1758 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1759 | --x-incl | --x-inc | --x-in | --x-i)
1760 ac_prev=x_includes ;;
1761 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1762 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1763 x_includes=$ac_optarg ;;
1765 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1766 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1767 ac_prev=x_libraries ;;
1768 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1769 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1770 x_libraries=$ac_optarg ;;
1772 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1773 Try \`$0 --help' for more information"
1776 *=*)
1777 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1778 # Reject names that are not valid shell variable names.
1779 case $ac_envvar in #(
1780 '' | [0-9]* | *[!_$as_cr_alnum]* )
1781 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1782 esac
1783 eval $ac_envvar=\$ac_optarg
1784 export $ac_envvar ;;
1787 # FIXME: should be removed in autoconf 3.0.
1788 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1789 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1790 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1791 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1794 esac
1795 done
1797 if test -n "$ac_prev"; then
1798 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1799 as_fn_error $? "missing argument to $ac_option"
1802 if test -n "$ac_unrecognized_opts"; then
1803 case $enable_option_checking in
1804 no) ;;
1805 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1806 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1807 esac
1810 # Check all directory arguments for consistency.
1811 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1812 datadir sysconfdir sharedstatedir localstatedir includedir \
1813 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1814 libdir localedir mandir
1816 eval ac_val=\$$ac_var
1817 # Remove trailing slashes.
1818 case $ac_val in
1819 */ )
1820 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1821 eval $ac_var=\$ac_val;;
1822 esac
1823 # Be sure to have absolute directory names.
1824 case $ac_val in
1825 [\\/$]* | ?:[\\/]* ) continue;;
1826 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1827 esac
1828 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1829 done
1831 # There might be people who depend on the old broken behavior: `$host'
1832 # used to hold the argument of --host etc.
1833 # FIXME: To remove some day.
1834 build=$build_alias
1835 host=$host_alias
1836 target=$target_alias
1838 # FIXME: To remove some day.
1839 if test "x$host_alias" != x; then
1840 if test "x$build_alias" = x; then
1841 cross_compiling=maybe
1842 elif test "x$build_alias" != "x$host_alias"; then
1843 cross_compiling=yes
1847 ac_tool_prefix=
1848 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1850 test "$silent" = yes && exec 6>/dev/null
1853 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1854 ac_ls_di=`ls -di .` &&
1855 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1856 as_fn_error $? "working directory cannot be determined"
1857 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1858 as_fn_error $? "pwd does not report name of working directory"
1861 # Find the source files, if location was not specified.
1862 if test -z "$srcdir"; then
1863 ac_srcdir_defaulted=yes
1864 # Try the directory containing this script, then the parent directory.
1865 ac_confdir=`$as_dirname -- "$as_myself" ||
1866 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1867 X"$as_myself" : 'X\(//\)[^/]' \| \
1868 X"$as_myself" : 'X\(//\)$' \| \
1869 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1870 $as_echo X"$as_myself" |
1871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1872 s//\1/
1875 /^X\(\/\/\)[^/].*/{
1876 s//\1/
1879 /^X\(\/\/\)$/{
1880 s//\1/
1883 /^X\(\/\).*/{
1884 s//\1/
1887 s/.*/./; q'`
1888 srcdir=$ac_confdir
1889 if test ! -r "$srcdir/$ac_unique_file"; then
1890 srcdir=..
1892 else
1893 ac_srcdir_defaulted=no
1895 if test ! -r "$srcdir/$ac_unique_file"; then
1896 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1897 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1899 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1900 ac_abs_confdir=`(
1901 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1902 pwd)`
1903 # When building in place, set srcdir=.
1904 if test "$ac_abs_confdir" = "$ac_pwd"; then
1905 srcdir=.
1907 # Remove unnecessary trailing slashes from srcdir.
1908 # Double slashes in file names in object file debugging info
1909 # mess up M-x gdb in Emacs.
1910 case $srcdir in
1911 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1912 esac
1913 for ac_var in $ac_precious_vars; do
1914 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1915 eval ac_env_${ac_var}_value=\$${ac_var}
1916 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1917 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1918 done
1921 # Report the --help message.
1923 if test "$ac_init_help" = "long"; then
1924 # Omit some internal or obsolete options to make the list less imposing.
1925 # This message is too long to be a string in the A/UX 3.1 sh.
1926 cat <<_ACEOF
1927 \`configure' configures Wine 1.7.10 to adapt to many kinds of systems.
1929 Usage: $0 [OPTION]... [VAR=VALUE]...
1931 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1932 VAR=VALUE. See below for descriptions of some of the useful variables.
1934 Defaults for the options are specified in brackets.
1936 Configuration:
1937 -h, --help display this help and exit
1938 --help=short display options specific to this package
1939 --help=recursive display the short help of all the included packages
1940 -V, --version display version information and exit
1941 -q, --quiet, --silent do not print \`checking ...' messages
1942 --cache-file=FILE cache test results in FILE [disabled]
1943 -C, --config-cache alias for \`--cache-file=config.cache'
1944 -n, --no-create do not create output files
1945 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1947 Installation directories:
1948 --prefix=PREFIX install architecture-independent files in PREFIX
1949 [$ac_default_prefix]
1950 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1951 [PREFIX]
1953 By default, \`make install' will install all the files in
1954 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1955 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1956 for instance \`--prefix=\$HOME'.
1958 For better control, use the options below.
1960 Fine tuning of the installation directories:
1961 --bindir=DIR user executables [EPREFIX/bin]
1962 --sbindir=DIR system admin executables [EPREFIX/sbin]
1963 --libexecdir=DIR program executables [EPREFIX/libexec]
1964 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1965 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1966 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1967 --libdir=DIR object code libraries [EPREFIX/lib]
1968 --includedir=DIR C header files [PREFIX/include]
1969 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1970 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1971 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1972 --infodir=DIR info documentation [DATAROOTDIR/info]
1973 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1974 --mandir=DIR man documentation [DATAROOTDIR/man]
1975 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1976 --htmldir=DIR html documentation [DOCDIR]
1977 --dvidir=DIR dvi documentation [DOCDIR]
1978 --pdfdir=DIR pdf documentation [DOCDIR]
1979 --psdir=DIR ps documentation [DOCDIR]
1980 _ACEOF
1982 cat <<\_ACEOF
1984 X features:
1985 --x-includes=DIR X include files are in DIR
1986 --x-libraries=DIR X library files are in DIR
1988 System types:
1989 --build=BUILD configure for building on BUILD [guessed]
1990 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1991 _ACEOF
1994 if test -n "$ac_init_help"; then
1995 case $ac_init_help in
1996 short | recursive ) echo "Configuration of Wine 1.7.10:";;
1997 esac
1998 cat <<\_ACEOF
2000 Optional Features:
2001 --disable-option-checking ignore unrecognized --enable/--with options
2002 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2003 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2004 --disable-win16 do not include Win16 support
2005 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2006 binaries)
2007 --disable-tests do not build the regression tests
2008 --enable-maintainer-mode
2009 enable maintainer-specific build rules
2010 --disable-largefile omit support for large files
2012 Optional Packages:
2013 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2014 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2015 --without-alsa do not use the Alsa sound support
2016 --without-capi do not use CAPI (ISDN support)
2017 --without-cms do not use CMS (color management support)
2018 --without-coreaudio do not use the CoreAudio sound support
2019 --without-cups do not use CUPS
2020 --without-curses do not use (n)curses
2021 --without-dbus do not use DBus (dynamic device support)
2022 --without-fontconfig do not use fontconfig
2023 --without-freetype do not use the FreeType library
2024 --without-gettext do not use gettext
2025 --with-gettextpo use the GetTextPO library to rebuild po files
2026 --without-gphoto do not use gphoto (Digital Camera support)
2027 --without-glu do not use the GLU library
2028 --without-gnutls do not use GnuTLS (schannel support)
2029 --without-gsm do not use libgsm (GSM 06.10 codec support)
2030 --without-gstreamer do not use GStreamer (codecs support)
2031 --without-hal do not use HAL (dynamic device support)
2032 --without-jpeg do not use JPEG
2033 --without-ldap do not use LDAP
2034 --without-mpg123 do not use the mpg123 library
2035 --without-netapi do not use the Samba NetAPI library
2036 --without-openal do not use OpenAL
2037 --without-opencl do not use OpenCL
2038 --without-opengl do not use OpenGL
2039 --without-osmesa do not use the OSMesa library
2040 --without-oss do not use the OSS sound support
2041 --without-png do not use PNG
2042 --without-pthread do not use the pthread library
2043 --without-sane do not use SANE (scanner support)
2044 --without-tiff do not use TIFF
2045 --without-v4l do not use v4l1 (v4l support)
2046 --without-xcomposite do not use the Xcomposite extension
2047 --without-xcursor do not use the Xcursor extension
2048 --without-xinerama do not use Xinerama (multi-monitor support)
2049 --without-xinput do not use the Xinput extension
2050 --without-xinput2 do not use the Xinput 2 extension
2051 --without-xml do not use XML
2052 --without-xrandr do not use Xrandr (resolution changes)
2053 --without-xrender do not use the Xrender extension
2054 --without-xshape do not use the Xshape extension
2055 --without-xshm do not use XShm (shared memory extension)
2056 --without-xslt do not use XSLT
2057 --without-xxf86vm do not use XFree video mode extension
2058 --without-zlib do not use Zlib (data compression)
2059 --with-wine-tools=DIR use Wine tools from directory DIR
2060 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2061 --with-x use the X Window System
2063 Some influential environment variables:
2064 CC C compiler command
2065 CFLAGS C compiler flags
2066 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2067 nonstandard directory <lib dir>
2068 LIBS libraries to pass to the linker, e.g. -l<library>
2069 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2070 you have headers in a nonstandard directory <include dir>
2071 CXX C++ compiler command
2072 CXXFLAGS C++ compiler flags
2073 CPP C preprocessor
2074 XMKMF Path to xmkmf, Makefile generator for X Window System
2075 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2076 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2077 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2078 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2079 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2080 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2081 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2082 HAL_LIBS Linker flags for hal, overriding pkg-config
2083 GNUTLS_CFLAGS
2084 C compiler flags for gnutls, overriding pkg-config
2085 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2086 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2087 SANE_LIBS Linker flags for libsane, overriding pkg-config
2088 GPHOTO2_CFLAGS
2089 C compiler flags for libgphoto2, overriding pkg-config
2090 GPHOTO2_LIBS
2091 Linker flags for libgphoto2, overriding pkg-config
2092 GPHOTO2_PORT_CFLAGS
2093 C compiler flags for libgphoto2_port, overriding pkg-config
2094 GPHOTO2_PORT_LIBS
2095 Linker flags for libgphoto2_port, overriding pkg-config
2096 LCMS2_CFLAGS
2097 C compiler flags for lcms2, overriding pkg-config
2098 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2099 FREETYPE_CFLAGS
2100 C compiler flags for freetype2, overriding pkg-config
2101 FREETYPE_LIBS
2102 Linker flags for freetype2, overriding pkg-config
2103 GSTREAMER_CFLAGS
2104 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2105 GSTREAMER_LIBS
2106 Linker flags for gstreamer-app-0.10, overriding pkg-config
2107 CAPI20_CFLAGS
2108 C compiler flags for capi20, overriding pkg-config
2109 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2110 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2111 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2112 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2113 PNG_LIBS Linker flags for libpng, overriding pkg-config
2114 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2115 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2116 MPG123_CFLAGS
2117 C compiler flags for libmpg123, overriding pkg-config
2118 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2120 Use these variables to override the choices made by `configure' or to help
2121 it to find libraries and programs with nonstandard names/locations.
2123 Report bugs to <wine-devel@winehq.org>.
2124 Wine home page: <http://www.winehq.org>.
2125 _ACEOF
2126 ac_status=$?
2129 if test "$ac_init_help" = "recursive"; then
2130 # If there are subdirs, report their specific --help.
2131 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2132 test -d "$ac_dir" ||
2133 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2134 continue
2135 ac_builddir=.
2137 case "$ac_dir" in
2138 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2140 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2141 # A ".." for each directory in $ac_dir_suffix.
2142 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2143 case $ac_top_builddir_sub in
2144 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2145 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2146 esac ;;
2147 esac
2148 ac_abs_top_builddir=$ac_pwd
2149 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2150 # for backward compatibility:
2151 ac_top_builddir=$ac_top_build_prefix
2153 case $srcdir in
2154 .) # We are building in place.
2155 ac_srcdir=.
2156 ac_top_srcdir=$ac_top_builddir_sub
2157 ac_abs_top_srcdir=$ac_pwd ;;
2158 [\\/]* | ?:[\\/]* ) # Absolute name.
2159 ac_srcdir=$srcdir$ac_dir_suffix;
2160 ac_top_srcdir=$srcdir
2161 ac_abs_top_srcdir=$srcdir ;;
2162 *) # Relative name.
2163 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2164 ac_top_srcdir=$ac_top_build_prefix$srcdir
2165 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2166 esac
2167 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2169 cd "$ac_dir" || { ac_status=$?; continue; }
2170 # Check for guested configure.
2171 if test -f "$ac_srcdir/configure.gnu"; then
2172 echo &&
2173 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2174 elif test -f "$ac_srcdir/configure"; then
2175 echo &&
2176 $SHELL "$ac_srcdir/configure" --help=recursive
2177 else
2178 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2179 fi || ac_status=$?
2180 cd "$ac_pwd" || { ac_status=$?; break; }
2181 done
2184 test -n "$ac_init_help" && exit $ac_status
2185 if $ac_init_version; then
2186 cat <<\_ACEOF
2187 Wine configure 1.7.10
2188 generated by GNU Autoconf 2.69
2190 Copyright (C) 2012 Free Software Foundation, Inc.
2191 This configure script is free software; the Free Software Foundation
2192 gives unlimited permission to copy, distribute and modify it.
2193 _ACEOF
2194 exit
2197 ## ------------------------ ##
2198 ## Autoconf initialization. ##
2199 ## ------------------------ ##
2201 # ac_fn_c_try_compile LINENO
2202 # --------------------------
2203 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2204 ac_fn_c_try_compile ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 rm -f conftest.$ac_objext
2208 if { { ac_try="$ac_compile"
2209 case "(($ac_try" in
2210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211 *) ac_try_echo=$ac_try;;
2212 esac
2213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214 $as_echo "$ac_try_echo"; } >&5
2215 (eval "$ac_compile") 2>conftest.err
2216 ac_status=$?
2217 if test -s conftest.err; then
2218 grep -v '^ *+' conftest.err >conftest.er1
2219 cat conftest.er1 >&5
2220 mv -f conftest.er1 conftest.err
2222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2223 test $ac_status = 0; } && {
2224 test -z "$ac_c_werror_flag" ||
2225 test ! -s conftest.err
2226 } && test -s conftest.$ac_objext; then :
2227 ac_retval=0
2228 else
2229 $as_echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2232 ac_retval=1
2234 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2235 as_fn_set_status $ac_retval
2237 } # ac_fn_c_try_compile
2239 # ac_fn_cxx_try_compile LINENO
2240 # ----------------------------
2241 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2242 ac_fn_cxx_try_compile ()
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 rm -f conftest.$ac_objext
2246 if { { ac_try="$ac_compile"
2247 case "(($ac_try" in
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2250 esac
2251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2252 $as_echo "$ac_try_echo"; } >&5
2253 (eval "$ac_compile") 2>conftest.err
2254 ac_status=$?
2255 if test -s conftest.err; then
2256 grep -v '^ *+' conftest.err >conftest.er1
2257 cat conftest.er1 >&5
2258 mv -f conftest.er1 conftest.err
2260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2261 test $ac_status = 0; } && {
2262 test -z "$ac_cxx_werror_flag" ||
2263 test ! -s conftest.err
2264 } && test -s conftest.$ac_objext; then :
2265 ac_retval=0
2266 else
2267 $as_echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2270 ac_retval=1
2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273 as_fn_set_status $ac_retval
2275 } # ac_fn_cxx_try_compile
2277 # ac_fn_c_try_link LINENO
2278 # -----------------------
2279 # Try to link conftest.$ac_ext, and return whether this succeeded.
2280 ac_fn_c_try_link ()
2282 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283 rm -f conftest.$ac_objext conftest$ac_exeext
2284 if { { ac_try="$ac_link"
2285 case "(($ac_try" in
2286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287 *) ac_try_echo=$ac_try;;
2288 esac
2289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2290 $as_echo "$ac_try_echo"; } >&5
2291 (eval "$ac_link") 2>conftest.err
2292 ac_status=$?
2293 if test -s conftest.err; then
2294 grep -v '^ *+' conftest.err >conftest.er1
2295 cat conftest.er1 >&5
2296 mv -f conftest.er1 conftest.err
2298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2299 test $ac_status = 0; } && {
2300 test -z "$ac_c_werror_flag" ||
2301 test ! -s conftest.err
2302 } && test -s conftest$ac_exeext && {
2303 test "$cross_compiling" = yes ||
2304 test -x conftest$ac_exeext
2305 }; then :
2306 ac_retval=0
2307 else
2308 $as_echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2311 ac_retval=1
2313 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2314 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2315 # interfere with the next link command; also delete a directory that is
2316 # left behind by Apple's compiler. We do this before executing the actions.
2317 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 as_fn_set_status $ac_retval
2321 } # ac_fn_c_try_link
2323 # ac_fn_c_try_cpp LINENO
2324 # ----------------------
2325 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2326 ac_fn_c_try_cpp ()
2328 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2329 if { { ac_try="$ac_cpp conftest.$ac_ext"
2330 case "(($ac_try" in
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2333 esac
2334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2335 $as_echo "$ac_try_echo"; } >&5
2336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2337 ac_status=$?
2338 if test -s conftest.err; then
2339 grep -v '^ *+' conftest.err >conftest.er1
2340 cat conftest.er1 >&5
2341 mv -f conftest.er1 conftest.err
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } > conftest.i && {
2345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2346 test ! -s conftest.err
2347 }; then :
2348 ac_retval=0
2349 else
2350 $as_echo "$as_me: failed program was:" >&5
2351 sed 's/^/| /' conftest.$ac_ext >&5
2353 ac_retval=1
2355 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2356 as_fn_set_status $ac_retval
2358 } # ac_fn_c_try_cpp
2360 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2361 # -------------------------------------------------------
2362 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2363 # the include files in INCLUDES and setting the cache variable VAR
2364 # accordingly.
2365 ac_fn_c_check_header_mongrel ()
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 if eval \${$3+:} false; then :
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2370 $as_echo_n "checking for $2... " >&6; }
2371 if eval \${$3+:} false; then :
2372 $as_echo_n "(cached) " >&6
2374 eval ac_res=\$$3
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2377 else
2378 # Is the header compilable?
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2380 $as_echo_n "checking $2 usability... " >&6; }
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2384 #include <$2>
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387 ac_header_compiler=yes
2388 else
2389 ac_header_compiler=no
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2393 $as_echo "$ac_header_compiler" >&6; }
2395 # Is the header present?
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2397 $as_echo_n "checking $2 presence... " >&6; }
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h. */
2400 #include <$2>
2401 _ACEOF
2402 if ac_fn_c_try_cpp "$LINENO"; then :
2403 ac_header_preproc=yes
2404 else
2405 ac_header_preproc=no
2407 rm -f conftest.err conftest.i conftest.$ac_ext
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2409 $as_echo "$ac_header_preproc" >&6; }
2411 # So? What about this header?
2412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2413 yes:no: )
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2415 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2417 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2419 no:yes:* )
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2421 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2423 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2425 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2427 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2429 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2430 ( $as_echo "## ------------------------------------ ##
2431 ## Report this to wine-devel@winehq.org ##
2432 ## ------------------------------------ ##"
2433 ) | sed "s/^/$as_me: WARNING: /" >&2
2435 esac
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2437 $as_echo_n "checking for $2... " >&6; }
2438 if eval \${$3+:} false; then :
2439 $as_echo_n "(cached) " >&6
2440 else
2441 eval "$3=\$ac_header_compiler"
2443 eval ac_res=\$$3
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2447 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2449 } # ac_fn_c_check_header_mongrel
2451 # ac_fn_c_try_run LINENO
2452 # ----------------------
2453 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2454 # that executables *can* be run.
2455 ac_fn_c_try_run ()
2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2458 if { { ac_try="$ac_link"
2459 case "(($ac_try" in
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2462 esac
2463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2464 $as_echo "$ac_try_echo"; } >&5
2465 (eval "$ac_link") 2>&5
2466 ac_status=$?
2467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2468 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2469 { { case "(($ac_try" in
2470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471 *) ac_try_echo=$ac_try;;
2472 esac
2473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2474 $as_echo "$ac_try_echo"; } >&5
2475 (eval "$ac_try") 2>&5
2476 ac_status=$?
2477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2478 test $ac_status = 0; }; }; then :
2479 ac_retval=0
2480 else
2481 $as_echo "$as_me: program exited with status $ac_status" >&5
2482 $as_echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2485 ac_retval=$ac_status
2487 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2489 as_fn_set_status $ac_retval
2491 } # ac_fn_c_try_run
2493 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2494 # -------------------------------------------------------
2495 # Tests whether HEADER exists and can be compiled using the include files in
2496 # INCLUDES, setting the cache variable VAR accordingly.
2497 ac_fn_c_check_header_compile ()
2499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2501 $as_echo_n "checking for $2... " >&6; }
2502 if eval \${$3+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506 /* end confdefs.h. */
2508 #include <$2>
2509 _ACEOF
2510 if ac_fn_c_try_compile "$LINENO"; then :
2511 eval "$3=yes"
2512 else
2513 eval "$3=no"
2515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 eval ac_res=\$$3
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2519 $as_echo "$ac_res" >&6; }
2520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2522 } # ac_fn_c_check_header_compile
2524 # ac_fn_c_check_func LINENO FUNC VAR
2525 # ----------------------------------
2526 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2527 ac_fn_c_check_func ()
2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2531 $as_echo_n "checking for $2... " >&6; }
2532 if eval \${$3+:} false; then :
2533 $as_echo_n "(cached) " >&6
2534 else
2535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2536 /* end confdefs.h. */
2537 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2539 #define $2 innocuous_$2
2541 /* System header to define __stub macros and hopefully few prototypes,
2542 which can conflict with char $2 (); below.
2543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2544 <limits.h> exists even on freestanding compilers. */
2546 #ifdef __STDC__
2547 # include <limits.h>
2548 #else
2549 # include <assert.h>
2550 #endif
2552 #undef $2
2554 /* Override any GCC internal prototype to avoid an error.
2555 Use char because int might match the return type of a GCC
2556 builtin and then its argument prototype would still apply. */
2557 #ifdef __cplusplus
2558 extern "C"
2559 #endif
2560 char $2 ();
2561 /* The GNU C library defines this for functions which it implements
2562 to always fail with ENOSYS. Some functions are actually named
2563 something starting with __ and the normal name is an alias. */
2564 #if defined __stub_$2 || defined __stub___$2
2565 choke me
2566 #endif
2569 main ()
2571 return $2 ();
2573 return 0;
2575 _ACEOF
2576 if ac_fn_c_try_link "$LINENO"; then :
2577 eval "$3=yes"
2578 else
2579 eval "$3=no"
2581 rm -f core conftest.err conftest.$ac_objext \
2582 conftest$ac_exeext conftest.$ac_ext
2584 eval ac_res=\$$3
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2586 $as_echo "$ac_res" >&6; }
2587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2589 } # ac_fn_c_check_func
2591 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2592 # ----------------------------------------------------
2593 # Tries to find if the field MEMBER exists in type AGGR, after including
2594 # INCLUDES, setting cache variable VAR accordingly.
2595 ac_fn_c_check_member ()
2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2599 $as_echo_n "checking for $2.$3... " >&6; }
2600 if eval \${$4+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602 else
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2607 main ()
2609 static $2 ac_aggr;
2610 if (ac_aggr.$3)
2611 return 0;
2613 return 0;
2615 _ACEOF
2616 if ac_fn_c_try_compile "$LINENO"; then :
2617 eval "$4=yes"
2618 else
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h. */
2623 main ()
2625 static $2 ac_aggr;
2626 if (sizeof ac_aggr.$3)
2627 return 0;
2629 return 0;
2631 _ACEOF
2632 if ac_fn_c_try_compile "$LINENO"; then :
2633 eval "$4=yes"
2634 else
2635 eval "$4=no"
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 eval ac_res=\$$4
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643 $as_echo "$ac_res" >&6; }
2644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2646 } # ac_fn_c_check_member
2648 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2649 # -------------------------------------------
2650 # Tests whether TYPE exists after having included INCLUDES, setting cache
2651 # variable VAR accordingly.
2652 ac_fn_c_check_type ()
2654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2656 $as_echo_n "checking for $2... " >&6; }
2657 if eval \${$3+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 eval "$3=no"
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2665 main ()
2667 if (sizeof ($2))
2668 return 0;
2670 return 0;
2672 _ACEOF
2673 if ac_fn_c_try_compile "$LINENO"; then :
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2678 main ()
2680 if (sizeof (($2)))
2681 return 0;
2683 return 0;
2685 _ACEOF
2686 if ac_fn_c_try_compile "$LINENO"; then :
2688 else
2689 eval "$3=yes"
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695 eval ac_res=\$$3
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697 $as_echo "$ac_res" >&6; }
2698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2700 } # ac_fn_c_check_type
2701 cat >config.log <<_ACEOF
2702 This file contains any messages produced by compilers while
2703 running configure, to aid debugging if configure makes a mistake.
2705 It was created by Wine $as_me 1.7.10, which was
2706 generated by GNU Autoconf 2.69. Invocation command line was
2708 $ $0 $@
2710 _ACEOF
2711 exec 5>>config.log
2713 cat <<_ASUNAME
2714 ## --------- ##
2715 ## Platform. ##
2716 ## --------- ##
2718 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2719 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2720 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2721 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2722 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2724 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2725 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2727 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2728 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2729 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2730 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2731 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2732 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2733 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2735 _ASUNAME
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 $as_echo "PATH: $as_dir"
2743 done
2744 IFS=$as_save_IFS
2746 } >&5
2748 cat >&5 <<_ACEOF
2751 ## ----------- ##
2752 ## Core tests. ##
2753 ## ----------- ##
2755 _ACEOF
2758 # Keep a trace of the command line.
2759 # Strip out --no-create and --no-recursion so they do not pile up.
2760 # Strip out --silent because we don't want to record it for future runs.
2761 # Also quote any args containing shell meta-characters.
2762 # Make two passes to allow for proper duplicate-argument suppression.
2763 ac_configure_args=
2764 ac_configure_args0=
2765 ac_configure_args1=
2766 ac_must_keep_next=false
2767 for ac_pass in 1 2
2769 for ac_arg
2771 case $ac_arg in
2772 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2773 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2774 | -silent | --silent | --silen | --sile | --sil)
2775 continue ;;
2776 *\'*)
2777 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2778 esac
2779 case $ac_pass in
2780 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2782 as_fn_append ac_configure_args1 " '$ac_arg'"
2783 if test $ac_must_keep_next = true; then
2784 ac_must_keep_next=false # Got value, back to normal.
2785 else
2786 case $ac_arg in
2787 *=* | --config-cache | -C | -disable-* | --disable-* \
2788 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2789 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2790 | -with-* | --with-* | -without-* | --without-* | --x)
2791 case "$ac_configure_args0 " in
2792 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2793 esac
2795 -* ) ac_must_keep_next=true ;;
2796 esac
2798 as_fn_append ac_configure_args " '$ac_arg'"
2800 esac
2801 done
2802 done
2803 { ac_configure_args0=; unset ac_configure_args0;}
2804 { ac_configure_args1=; unset ac_configure_args1;}
2806 # When interrupted or exit'd, cleanup temporary files, and complete
2807 # config.log. We remove comments because anyway the quotes in there
2808 # would cause problems or look ugly.
2809 # WARNING: Use '\'' to represent an apostrophe within the trap.
2810 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2811 trap 'exit_status=$?
2812 # Save into config.log some information that might help in debugging.
2814 echo
2816 $as_echo "## ---------------- ##
2817 ## Cache variables. ##
2818 ## ---------------- ##"
2819 echo
2820 # The following way of writing the cache mishandles newlines in values,
2822 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2823 eval ac_val=\$$ac_var
2824 case $ac_val in #(
2825 *${as_nl}*)
2826 case $ac_var in #(
2827 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2828 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2829 esac
2830 case $ac_var in #(
2831 _ | IFS | as_nl) ;; #(
2832 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2833 *) { eval $ac_var=; unset $ac_var;} ;;
2834 esac ;;
2835 esac
2836 done
2837 (set) 2>&1 |
2838 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2839 *${as_nl}ac_space=\ *)
2840 sed -n \
2841 "s/'\''/'\''\\\\'\'''\''/g;
2842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2843 ;; #(
2845 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2847 esac |
2848 sort
2850 echo
2852 $as_echo "## ----------------- ##
2853 ## Output variables. ##
2854 ## ----------------- ##"
2855 echo
2856 for ac_var in $ac_subst_vars
2858 eval ac_val=\$$ac_var
2859 case $ac_val in
2860 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2861 esac
2862 $as_echo "$ac_var='\''$ac_val'\''"
2863 done | sort
2864 echo
2866 if test -n "$ac_subst_files"; then
2867 $as_echo "## ------------------- ##
2868 ## File substitutions. ##
2869 ## ------------------- ##"
2870 echo
2871 for ac_var in $ac_subst_files
2873 eval ac_val=\$$ac_var
2874 case $ac_val in
2875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2876 esac
2877 $as_echo "$ac_var='\''$ac_val'\''"
2878 done | sort
2879 echo
2882 if test -s confdefs.h; then
2883 $as_echo "## ----------- ##
2884 ## confdefs.h. ##
2885 ## ----------- ##"
2886 echo
2887 cat confdefs.h
2888 echo
2890 test "$ac_signal" != 0 &&
2891 $as_echo "$as_me: caught signal $ac_signal"
2892 $as_echo "$as_me: exit $exit_status"
2893 } >&5
2894 rm -f core *.core core.conftest.* &&
2895 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2896 exit $exit_status
2898 for ac_signal in 1 2 13 15; do
2899 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2900 done
2901 ac_signal=0
2903 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2904 rm -f -r conftest* confdefs.h
2906 $as_echo "/* confdefs.h */" > confdefs.h
2908 # Predefined preprocessor variables.
2910 cat >>confdefs.h <<_ACEOF
2911 #define PACKAGE_NAME "$PACKAGE_NAME"
2912 _ACEOF
2914 cat >>confdefs.h <<_ACEOF
2915 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2916 _ACEOF
2918 cat >>confdefs.h <<_ACEOF
2919 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2920 _ACEOF
2922 cat >>confdefs.h <<_ACEOF
2923 #define PACKAGE_STRING "$PACKAGE_STRING"
2924 _ACEOF
2926 cat >>confdefs.h <<_ACEOF
2927 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2928 _ACEOF
2930 cat >>confdefs.h <<_ACEOF
2931 #define PACKAGE_URL "$PACKAGE_URL"
2932 _ACEOF
2935 # Let the site file select an alternate cache file if it wants to.
2936 # Prefer an explicitly selected file to automatically selected ones.
2937 ac_site_file1=NONE
2938 ac_site_file2=NONE
2939 if test -n "$CONFIG_SITE"; then
2940 # We do not want a PATH search for config.site.
2941 case $CONFIG_SITE in #((
2942 -*) ac_site_file1=./$CONFIG_SITE;;
2943 */*) ac_site_file1=$CONFIG_SITE;;
2944 *) ac_site_file1=./$CONFIG_SITE;;
2945 esac
2946 elif test "x$prefix" != xNONE; then
2947 ac_site_file1=$prefix/share/config.site
2948 ac_site_file2=$prefix/etc/config.site
2949 else
2950 ac_site_file1=$ac_default_prefix/share/config.site
2951 ac_site_file2=$ac_default_prefix/etc/config.site
2953 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2955 test "x$ac_site_file" = xNONE && continue
2956 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2958 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2959 sed 's/^/| /' "$ac_site_file" >&5
2960 . "$ac_site_file" \
2961 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2963 as_fn_error $? "failed to load site script $ac_site_file
2964 See \`config.log' for more details" "$LINENO" 5; }
2966 done
2968 if test -r "$cache_file"; then
2969 # Some versions of bash will fail to source /dev/null (special files
2970 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2971 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2973 $as_echo "$as_me: loading cache $cache_file" >&6;}
2974 case $cache_file in
2975 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2976 *) . "./$cache_file";;
2977 esac
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2981 $as_echo "$as_me: creating cache $cache_file" >&6;}
2982 >$cache_file
2985 # Check that the precious variables saved in the cache have kept the same
2986 # value.
2987 ac_cache_corrupted=false
2988 for ac_var in $ac_precious_vars; do
2989 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2990 eval ac_new_set=\$ac_env_${ac_var}_set
2991 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2992 eval ac_new_val=\$ac_env_${ac_var}_value
2993 case $ac_old_set,$ac_new_set in
2994 set,)
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2996 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2997 ac_cache_corrupted=: ;;
2998 ,set)
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3000 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3001 ac_cache_corrupted=: ;;
3002 ,);;
3004 if test "x$ac_old_val" != "x$ac_new_val"; then
3005 # differences in whitespace do not lead to failure.
3006 ac_old_val_w=`echo x $ac_old_val`
3007 ac_new_val_w=`echo x $ac_new_val`
3008 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3010 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3011 ac_cache_corrupted=:
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3014 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3015 eval $ac_var=\$ac_old_val
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3018 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3020 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3021 fi;;
3022 esac
3023 # Pass precious variables to config.status.
3024 if test "$ac_new_set" = set; then
3025 case $ac_new_val in
3026 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3027 *) ac_arg=$ac_var=$ac_new_val ;;
3028 esac
3029 case " $ac_configure_args " in
3030 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3031 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3032 esac
3034 done
3035 if $ac_cache_corrupted; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3039 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3040 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3042 ## -------------------- ##
3043 ## Main body of script. ##
3044 ## -------------------- ##
3046 ac_ext=c
3047 ac_cpp='$CPP $CPPFLAGS'
3048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054 ac_config_headers="$ac_config_headers include/config.h"
3056 ac_aux_dir=
3057 for ac_dir in tools "$srcdir"/tools; do
3058 if test -f "$ac_dir/install-sh"; then
3059 ac_aux_dir=$ac_dir
3060 ac_install_sh="$ac_aux_dir/install-sh -c"
3061 break
3062 elif test -f "$ac_dir/install.sh"; then
3063 ac_aux_dir=$ac_dir
3064 ac_install_sh="$ac_aux_dir/install.sh -c"
3065 break
3066 elif test -f "$ac_dir/shtool"; then
3067 ac_aux_dir=$ac_dir
3068 ac_install_sh="$ac_aux_dir/shtool install -c"
3069 break
3071 done
3072 if test -z "$ac_aux_dir"; then
3073 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3076 # These three variables are undocumented and unsupported,
3077 # and are intended to be withdrawn in a future Autoconf release.
3078 # They can cause serious problems if a builder's source tree is in a directory
3079 # whose full name contains unusual characters.
3080 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3081 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3082 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3086 libwine_version="1.0"
3090 # Check whether --enable-win16 was given.
3091 if test "${enable_win16+set}" = set; then :
3092 enableval=$enable_win16;
3095 # Check whether --enable-win64 was given.
3096 if test "${enable_win64+set}" = set; then :
3097 enableval=$enable_win64;
3100 # Check whether --enable-tests was given.
3101 if test "${enable_tests+set}" = set; then :
3102 enableval=$enable_tests;
3105 # Check whether --enable-maintainer-mode was given.
3106 if test "${enable_maintainer_mode+set}" = set; then :
3107 enableval=$enable_maintainer_mode;
3112 # Check whether --with-alsa was given.
3113 if test "${with_alsa+set}" = set; then :
3114 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
3118 # Check whether --with-capi was given.
3119 if test "${with_capi+set}" = set; then :
3120 withval=$with_capi;
3124 # Check whether --with-cms was given.
3125 if test "${with_cms+set}" = set; then :
3126 withval=$with_cms;
3130 # Check whether --with-coreaudio was given.
3131 if test "${with_coreaudio+set}" = set; then :
3132 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
3136 # Check whether --with-cups was given.
3137 if test "${with_cups+set}" = set; then :
3138 withval=$with_cups;
3142 # Check whether --with-curses was given.
3143 if test "${with_curses+set}" = set; then :
3144 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
3148 # Check whether --with-dbus was given.
3149 if test "${with_dbus+set}" = set; then :
3150 withval=$with_dbus;
3154 # Check whether --with-fontconfig was given.
3155 if test "${with_fontconfig+set}" = set; then :
3156 withval=$with_fontconfig;
3160 # Check whether --with-freetype was given.
3161 if test "${with_freetype+set}" = set; then :
3162 withval=$with_freetype;
3166 # Check whether --with-gettext was given.
3167 if test "${with_gettext+set}" = set; then :
3168 withval=$with_gettext;
3172 # Check whether --with-gettextpo was given.
3173 if test "${with_gettextpo+set}" = set; then :
3174 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
3178 # Check whether --with-gphoto was given.
3179 if test "${with_gphoto+set}" = set; then :
3180 withval=$with_gphoto;
3184 # Check whether --with-glu was given.
3185 if test "${with_glu+set}" = set; then :
3186 withval=$with_glu;
3190 # Check whether --with-gnutls was given.
3191 if test "${with_gnutls+set}" = set; then :
3192 withval=$with_gnutls;
3196 # Check whether --with-gsm was given.
3197 if test "${with_gsm+set}" = set; then :
3198 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
3202 # Check whether --with-gstreamer was given.
3203 if test "${with_gstreamer+set}" = set; then :
3204 withval=$with_gstreamer;
3208 # Check whether --with-hal was given.
3209 if test "${with_hal+set}" = set; then :
3210 withval=$with_hal;
3214 # Check whether --with-jpeg was given.
3215 if test "${with_jpeg+set}" = set; then :
3216 withval=$with_jpeg;
3220 # Check whether --with-ldap was given.
3221 if test "${with_ldap+set}" = set; then :
3222 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
3226 # Check whether --with-mpg123 was given.
3227 if test "${with_mpg123+set}" = set; then :
3228 withval=$with_mpg123;
3232 # Check whether --with-netapi was given.
3233 if test "${with_netapi+set}" = set; then :
3234 withval=$with_netapi;
3238 # Check whether --with-openal was given.
3239 if test "${with_openal+set}" = set; then :
3240 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
3244 # Check whether --with-opencl was given.
3245 if test "${with_opencl+set}" = set; then :
3246 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
3250 # Check whether --with-opengl was given.
3251 if test "${with_opengl+set}" = set; then :
3252 withval=$with_opengl;
3256 # Check whether --with-osmesa was given.
3257 if test "${with_osmesa+set}" = set; then :
3258 withval=$with_osmesa;
3262 # Check whether --with-oss was given.
3263 if test "${with_oss+set}" = set; then :
3264 withval=$with_oss;
3268 # Check whether --with-png was given.
3269 if test "${with_png+set}" = set; then :
3270 withval=$with_png;
3274 # Check whether --with-pthread was given.
3275 if test "${with_pthread+set}" = set; then :
3276 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
3280 # Check whether --with-sane was given.
3281 if test "${with_sane+set}" = set; then :
3282 withval=$with_sane;
3286 # Check whether --with-tiff was given.
3287 if test "${with_tiff+set}" = set; then :
3288 withval=$with_tiff;
3292 # Check whether --with-v4l was given.
3293 if test "${with_v4l+set}" = set; then :
3294 withval=$with_v4l;
3298 # Check whether --with-xcomposite was given.
3299 if test "${with_xcomposite+set}" = set; then :
3300 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
3304 # Check whether --with-xcursor was given.
3305 if test "${with_xcursor+set}" = set; then :
3306 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
3310 # Check whether --with-xinerama was given.
3311 if test "${with_xinerama+set}" = set; then :
3312 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
3316 # Check whether --with-xinput was given.
3317 if test "${with_xinput+set}" = set; then :
3318 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
3322 # Check whether --with-xinput2 was given.
3323 if test "${with_xinput2+set}" = set; then :
3324 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
3328 # Check whether --with-xml was given.
3329 if test "${with_xml+set}" = set; then :
3330 withval=$with_xml;
3334 # Check whether --with-xrandr was given.
3335 if test "${with_xrandr+set}" = set; then :
3336 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
3340 # Check whether --with-xrender was given.
3341 if test "${with_xrender+set}" = set; then :
3342 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
3346 # Check whether --with-xshape was given.
3347 if test "${with_xshape+set}" = set; then :
3348 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
3352 # Check whether --with-xshm was given.
3353 if test "${with_xshm+set}" = set; then :
3354 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
3358 # Check whether --with-xslt was given.
3359 if test "${with_xslt+set}" = set; then :
3360 withval=$with_xslt;
3364 # Check whether --with-xxf86vm was given.
3365 if test "${with_xxf86vm+set}" = set; then :
3366 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
3370 # Check whether --with-zlib was given.
3371 if test "${with_zlib+set}" = set; then :
3372 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
3377 # Check whether --with-wine-tools was given.
3378 if test "${with_wine_tools+set}" = set; then :
3379 withval=$with_wine_tools;
3383 # Check whether --with-wine64 was given.
3384 if test "${with_wine64+set}" = set; then :
3385 withval=$with_wine64;
3389 # Make sure we can run config.sub.
3390 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3391 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3394 $as_echo_n "checking build system type... " >&6; }
3395 if ${ac_cv_build+:} false; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 ac_build_alias=$build_alias
3399 test "x$ac_build_alias" = x &&
3400 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3401 test "x$ac_build_alias" = x &&
3402 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3403 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3408 $as_echo "$ac_cv_build" >&6; }
3409 case $ac_cv_build in
3410 *-*-*) ;;
3411 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3412 esac
3413 build=$ac_cv_build
3414 ac_save_IFS=$IFS; IFS='-'
3415 set x $ac_cv_build
3416 shift
3417 build_cpu=$1
3418 build_vendor=$2
3419 shift; shift
3420 # Remember, the first character of IFS is used to create $*,
3421 # except with old shells:
3422 build_os=$*
3423 IFS=$ac_save_IFS
3424 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3428 $as_echo_n "checking host system type... " >&6; }
3429 if ${ac_cv_host+:} false; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 if test "x$host_alias" = x; then
3433 ac_cv_host=$ac_cv_build
3434 else
3435 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3436 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3441 $as_echo "$ac_cv_host" >&6; }
3442 case $ac_cv_host in
3443 *-*-*) ;;
3444 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3445 esac
3446 host=$ac_cv_host
3447 ac_save_IFS=$IFS; IFS='-'
3448 set x $ac_cv_host
3449 shift
3450 host_cpu=$1
3451 host_vendor=$2
3452 shift; shift
3453 # Remember, the first character of IFS is used to create $*,
3454 # except with old shells:
3455 host_os=$*
3456 IFS=$ac_save_IFS
3457 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3461 case "$srcdir" in
3462 .) ;;
3463 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
3464 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
3465 You need to run 'make distclean' in the source tree first." "$LINENO" 5
3466 fi ;;
3467 esac
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3471 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3472 set x ${MAKE-make}
3473 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3474 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 cat >conftest.make <<\_ACEOF
3478 SHELL = /bin/sh
3479 all:
3480 @echo '@@@%%%=$(MAKE)=@@@%%%'
3481 _ACEOF
3482 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3483 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3484 *@@@%%%=?*=@@@%%%*)
3485 eval ac_cv_prog_make_${ac_make}_set=yes;;
3487 eval ac_cv_prog_make_${ac_make}_set=no;;
3488 esac
3489 rm -f conftest.make
3491 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3493 $as_echo "yes" >&6; }
3494 SET_MAKE=
3495 else
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3498 SET_MAKE="MAKE=${MAKE-make}"
3501 ac_ext=c
3502 ac_cpp='$CPP $CPPFLAGS'
3503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506 if test -n "$ac_tool_prefix"; then
3507 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3508 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if ${ac_cv_prog_CC+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 break 2
3528 done
3529 done
3530 IFS=$as_save_IFS
3534 CC=$ac_cv_prog_CC
3535 if test -n "$CC"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537 $as_echo "$CC" >&6; }
3538 else
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3545 if test -z "$ac_cv_prog_CC"; then
3546 ac_ct_CC=$CC
3547 # Extract the first word of "gcc", so it can be a program name with args.
3548 set dummy gcc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -n "$ac_ct_CC"; then
3555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_ac_ct_CC="gcc"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3568 done
3569 done
3570 IFS=$as_save_IFS
3574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575 if test -n "$ac_ct_CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577 $as_echo "$ac_ct_CC" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3583 if test "x$ac_ct_CC" = x; then
3584 CC=""
3585 else
3586 case $cross_compiling:$ac_tool_warned in
3587 yes:)
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3590 ac_tool_warned=yes ;;
3591 esac
3592 CC=$ac_ct_CC
3594 else
3595 CC="$ac_cv_prog_CC"
3598 if test -z "$CC"; then
3599 if test -n "$ac_tool_prefix"; then
3600 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3601 set dummy ${ac_tool_prefix}cc; ac_word=$2
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 $as_echo_n "checking for $ac_word... " >&6; }
3604 if ${ac_cv_prog_CC+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 if test -n "$CC"; then
3608 ac_cv_prog_CC="$CC" # Let the user override the test.
3609 else
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3613 IFS=$as_save_IFS
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3617 ac_cv_prog_CC="${ac_tool_prefix}cc"
3618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 break 2
3621 done
3622 done
3623 IFS=$as_save_IFS
3627 CC=$ac_cv_prog_CC
3628 if test -n "$CC"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 $as_echo "$CC" >&6; }
3631 else
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3639 if test -z "$CC"; then
3640 # Extract the first word of "cc", so it can be a program name with args.
3641 set dummy cc; ac_word=$2
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if ${ac_cv_prog_CC+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 if test -n "$CC"; then
3648 ac_cv_prog_CC="$CC" # Let the user override the test.
3649 else
3650 ac_prog_rejected=no
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 for as_dir in $PATH
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3659 ac_prog_rejected=yes
3660 continue
3662 ac_cv_prog_CC="cc"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3666 done
3667 done
3668 IFS=$as_save_IFS
3670 if test $ac_prog_rejected = yes; then
3671 # We found a bogon in the path, so make sure we never use it.
3672 set dummy $ac_cv_prog_CC
3673 shift
3674 if test $# != 0; then
3675 # We chose a different compiler from the bogus one.
3676 # However, it has the same basename, so the bogon will be chosen
3677 # first if we set CC to just the basename; use the full file name.
3678 shift
3679 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3684 CC=$ac_cv_prog_CC
3685 if test -n "$CC"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687 $as_echo "$CC" >&6; }
3688 else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3695 if test -z "$CC"; then
3696 if test -n "$ac_tool_prefix"; then
3697 for ac_prog in cl.exe
3699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if ${ac_cv_prog_CC+:} false; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 if test -n "$CC"; then
3707 ac_cv_prog_CC="$CC" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3716 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3720 done
3721 done
3722 IFS=$as_save_IFS
3726 CC=$ac_cv_prog_CC
3727 if test -n "$CC"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729 $as_echo "$CC" >&6; }
3730 else
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3736 test -n "$CC" && break
3737 done
3739 if test -z "$CC"; then
3740 ac_ct_CC=$CC
3741 for ac_prog in cl.exe
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$ac_ct_CC"; then
3751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_ac_ct_CC="$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3771 if test -n "$ac_ct_CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3773 $as_echo "$ac_ct_CC" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3780 test -n "$ac_ct_CC" && break
3781 done
3783 if test "x$ac_ct_CC" = x; then
3784 CC=""
3785 else
3786 case $cross_compiling:$ac_tool_warned in
3787 yes:)
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned=yes ;;
3791 esac
3792 CC=$ac_ct_CC
3799 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error $? "no acceptable C compiler found in \$PATH
3802 See \`config.log' for more details" "$LINENO" 5; }
3804 # Provide some information about the compiler.
3805 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3806 set X $ac_compile
3807 ac_compiler=$2
3808 for ac_option in --version -v -V -qversion; do
3809 { { ac_try="$ac_compiler $ac_option >&5"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3817 ac_status=$?
3818 if test -s conftest.err; then
3819 sed '10a\
3820 ... rest of stderr output deleted ...
3821 10q' conftest.err >conftest.er1
3822 cat conftest.er1 >&5
3824 rm -f conftest.er1 conftest.err
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }
3827 done
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3833 main ()
3837 return 0;
3839 _ACEOF
3840 ac_clean_files_save=$ac_clean_files
3841 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3842 # Try to create an executable without -o first, disregard a.out.
3843 # It will help us diagnose broken compilers, and finding out an intuition
3844 # of exeext.
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3846 $as_echo_n "checking whether the C compiler works... " >&6; }
3847 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3849 # The possible output files:
3850 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3852 ac_rmfiles=
3853 for ac_file in $ac_files
3855 case $ac_file in
3856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3857 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3858 esac
3859 done
3860 rm -f $ac_rmfiles
3862 if { { ac_try="$ac_link_default"
3863 case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866 esac
3867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868 $as_echo "$ac_try_echo"; } >&5
3869 (eval "$ac_link_default") 2>&5
3870 ac_status=$?
3871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872 test $ac_status = 0; }; then :
3873 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3874 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3875 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3876 # so that the user can short-circuit this test for compilers unknown to
3877 # Autoconf.
3878 for ac_file in $ac_files ''
3880 test -f "$ac_file" || continue
3881 case $ac_file in
3882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3884 [ab].out )
3885 # We found the default executable, but exeext='' is most
3886 # certainly right.
3887 break;;
3888 *.* )
3889 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3890 then :; else
3891 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3893 # We set ac_cv_exeext here because the later test for it is not
3894 # safe: cross compilers may not add the suffix if given an `-o'
3895 # argument, so we may need to know it at that point already.
3896 # Even if this section looks crufty: it has the advantage of
3897 # actually working.
3898 break;;
3900 break;;
3901 esac
3902 done
3903 test "$ac_cv_exeext" = no && ac_cv_exeext=
3905 else
3906 ac_file=''
3908 if test -z "$ac_file"; then :
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910 $as_echo "no" >&6; }
3911 $as_echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3916 as_fn_error 77 "C compiler cannot create executables
3917 See \`config.log' for more details" "$LINENO" 5; }
3918 else
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920 $as_echo "yes" >&6; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3923 $as_echo_n "checking for C compiler default output file name... " >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3925 $as_echo "$ac_file" >&6; }
3926 ac_exeext=$ac_cv_exeext
3928 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3929 ac_clean_files=$ac_clean_files_save
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3931 $as_echo_n "checking for suffix of executables... " >&6; }
3932 if { { ac_try="$ac_link"
3933 case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936 esac
3937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3938 $as_echo "$ac_try_echo"; } >&5
3939 (eval "$ac_link") 2>&5
3940 ac_status=$?
3941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3942 test $ac_status = 0; }; then :
3943 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3944 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3945 # work properly (i.e., refer to `conftest.exe'), while it won't with
3946 # `rm'.
3947 for ac_file in conftest.exe conftest conftest.*; do
3948 test -f "$ac_file" || continue
3949 case $ac_file in
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3951 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3952 break;;
3953 * ) break;;
3954 esac
3955 done
3956 else
3957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3960 See \`config.log' for more details" "$LINENO" 5; }
3962 rm -f conftest conftest$ac_cv_exeext
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3964 $as_echo "$ac_cv_exeext" >&6; }
3966 rm -f conftest.$ac_ext
3967 EXEEXT=$ac_cv_exeext
3968 ac_exeext=$EXEEXT
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3971 #include <stdio.h>
3973 main ()
3975 FILE *f = fopen ("conftest.out", "w");
3976 return ferror (f) || fclose (f) != 0;
3979 return 0;
3981 _ACEOF
3982 ac_clean_files="$ac_clean_files conftest.out"
3983 # Check that the compiler produces executables we can run. If not, either
3984 # the compiler is broken, or we cross compile.
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3986 $as_echo_n "checking whether we are cross compiling... " >&6; }
3987 if test "$cross_compiling" != yes; then
3988 { { ac_try="$ac_link"
3989 case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994 $as_echo "$ac_try_echo"; } >&5
3995 (eval "$ac_link") 2>&5
3996 ac_status=$?
3997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }
3999 if { ac_try='./conftest$ac_cv_exeext'
4000 { { case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_try") 2>&5
4007 ac_status=$?
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; }; then
4010 cross_compiling=no
4011 else
4012 if test "$cross_compiling" = maybe; then
4013 cross_compiling=yes
4014 else
4015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4017 as_fn_error $? "cannot run C compiled programs.
4018 If you meant to cross compile, use \`--host'.
4019 See \`config.log' for more details" "$LINENO" 5; }
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4024 $as_echo "$cross_compiling" >&6; }
4026 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4027 ac_clean_files=$ac_clean_files_save
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4029 $as_echo_n "checking for suffix of object files... " >&6; }
4030 if ${ac_cv_objext+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4037 main ()
4041 return 0;
4043 _ACEOF
4044 rm -f conftest.o conftest.obj
4045 if { { ac_try="$ac_compile"
4046 case "(($ac_try" in
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4049 esac
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_compile") 2>&5
4053 ac_status=$?
4054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4055 test $ac_status = 0; }; then :
4056 for ac_file in conftest.o conftest.obj conftest.*; do
4057 test -f "$ac_file" || continue;
4058 case $ac_file in
4059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4060 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4061 break;;
4062 esac
4063 done
4064 else
4065 $as_echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.$ac_ext >&5
4068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4070 as_fn_error $? "cannot compute suffix of object files: cannot compile
4071 See \`config.log' for more details" "$LINENO" 5; }
4073 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4076 $as_echo "$ac_cv_objext" >&6; }
4077 OBJEXT=$ac_cv_objext
4078 ac_objext=$OBJEXT
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4080 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4081 if ${ac_cv_c_compiler_gnu+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4088 main ()
4090 #ifndef __GNUC__
4091 choke me
4092 #endif
4095 return 0;
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_compiler_gnu=yes
4100 else
4101 ac_compiler_gnu=no
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4108 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4109 if test $ac_compiler_gnu = yes; then
4110 GCC=yes
4111 else
4112 GCC=
4114 ac_test_CFLAGS=${CFLAGS+set}
4115 ac_save_CFLAGS=$CFLAGS
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4117 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4118 if ${ac_cv_prog_cc_g+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 ac_save_c_werror_flag=$ac_c_werror_flag
4122 ac_c_werror_flag=yes
4123 ac_cv_prog_cc_g=no
4124 CFLAGS="-g"
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4129 main ()
4133 return 0;
4135 _ACEOF
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_cv_prog_cc_g=yes
4138 else
4139 CFLAGS=""
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4144 main ()
4148 return 0;
4150 _ACEOF
4151 if ac_fn_c_try_compile "$LINENO"; then :
4153 else
4154 ac_c_werror_flag=$ac_save_c_werror_flag
4155 CFLAGS="-g"
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4160 main ()
4164 return 0;
4166 _ACEOF
4167 if ac_fn_c_try_compile "$LINENO"; then :
4168 ac_cv_prog_cc_g=yes
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 ac_c_werror_flag=$ac_save_c_werror_flag
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4178 $as_echo "$ac_cv_prog_cc_g" >&6; }
4179 if test "$ac_test_CFLAGS" = set; then
4180 CFLAGS=$ac_save_CFLAGS
4181 elif test $ac_cv_prog_cc_g = yes; then
4182 if test "$GCC" = yes; then
4183 CFLAGS="-g -O2"
4184 else
4185 CFLAGS="-g"
4187 else
4188 if test "$GCC" = yes; then
4189 CFLAGS="-O2"
4190 else
4191 CFLAGS=
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4195 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4196 if ${ac_cv_prog_cc_c89+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 ac_cv_prog_cc_c89=no
4200 ac_save_CC=$CC
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4203 #include <stdarg.h>
4204 #include <stdio.h>
4205 struct stat;
4206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4207 struct buf { int x; };
4208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4209 static char *e (p, i)
4210 char **p;
4211 int i;
4213 return p[i];
4215 static char *f (char * (*g) (char **, int), char **p, ...)
4217 char *s;
4218 va_list v;
4219 va_start (v,p);
4220 s = g (p, va_arg (v,int));
4221 va_end (v);
4222 return s;
4225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4226 function prototypes and stuff, but not '\xHH' hex character constants.
4227 These don't provoke an error unfortunately, instead are silently treated
4228 as 'x'. The following induces an error, until -std is added to get
4229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4230 array size at least. It's necessary to write '\x00'==0 to get something
4231 that's true only with -std. */
4232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4234 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4235 inside strings and character constants. */
4236 #define FOO(x) 'x'
4237 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4239 int test (int i, double x);
4240 struct s1 {int (*f) (int a);};
4241 struct s2 {int (*f) (double a);};
4242 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4243 int argc;
4244 char **argv;
4246 main ()
4248 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4250 return 0;
4252 _ACEOF
4253 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4254 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4256 CC="$ac_save_CC $ac_arg"
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 ac_cv_prog_cc_c89=$ac_arg
4260 rm -f core conftest.err conftest.$ac_objext
4261 test "x$ac_cv_prog_cc_c89" != "xno" && break
4262 done
4263 rm -f conftest.$ac_ext
4264 CC=$ac_save_CC
4267 # AC_CACHE_VAL
4268 case "x$ac_cv_prog_cc_c89" in
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4271 $as_echo "none needed" >&6; } ;;
4272 xno)
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4274 $as_echo "unsupported" >&6; } ;;
4276 CC="$CC $ac_cv_prog_cc_c89"
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4278 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4279 esac
4280 if test "x$ac_cv_prog_cc_c89" != xno; then :
4284 ac_ext=c
4285 ac_cpp='$CPP $CPPFLAGS'
4286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290 ac_ext=cpp
4291 ac_cpp='$CXXCPP $CPPFLAGS'
4292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4295 if test -z "$CXX"; then
4296 if test -n "$CCC"; then
4297 CXX=$CCC
4298 else
4299 if test -n "$ac_tool_prefix"; then
4300 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305 $as_echo_n "checking for $ac_word... " >&6; }
4306 if ${ac_cv_prog_CXX+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test -n "$CXX"; then
4310 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4319 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4323 done
4324 done
4325 IFS=$as_save_IFS
4329 CXX=$ac_cv_prog_CXX
4330 if test -n "$CXX"; then
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4332 $as_echo "$CXX" >&6; }
4333 else
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 $as_echo "no" >&6; }
4339 test -n "$CXX" && break
4340 done
4342 if test -z "$CXX"; then
4343 ac_ct_CXX=$CXX
4344 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4346 # Extract the first word of "$ac_prog", so it can be a program name with args.
4347 set dummy $ac_prog; ac_word=$2
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349 $as_echo_n "checking for $ac_word... " >&6; }
4350 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 if test -n "$ac_ct_CXX"; then
4354 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4355 else
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4363 ac_cv_prog_ac_ct_CXX="$ac_prog"
4364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4367 done
4368 done
4369 IFS=$as_save_IFS
4373 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4374 if test -n "$ac_ct_CXX"; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4376 $as_echo "$ac_ct_CXX" >&6; }
4377 else
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379 $as_echo "no" >&6; }
4383 test -n "$ac_ct_CXX" && break
4384 done
4386 if test "x$ac_ct_CXX" = x; then
4387 CXX="g++"
4388 else
4389 case $cross_compiling:$ac_tool_warned in
4390 yes:)
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4393 ac_tool_warned=yes ;;
4394 esac
4395 CXX=$ac_ct_CXX
4401 # Provide some information about the compiler.
4402 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4403 set X $ac_compile
4404 ac_compiler=$2
4405 for ac_option in --version -v -V -qversion; do
4406 { { ac_try="$ac_compiler $ac_option >&5"
4407 case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4410 esac
4411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4412 $as_echo "$ac_try_echo"; } >&5
4413 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4414 ac_status=$?
4415 if test -s conftest.err; then
4416 sed '10a\
4417 ... rest of stderr output deleted ...
4418 10q' conftest.err >conftest.er1
4419 cat conftest.er1 >&5
4421 rm -f conftest.er1 conftest.err
4422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4423 test $ac_status = 0; }
4424 done
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4427 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4428 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4435 main ()
4437 #ifndef __GNUC__
4438 choke me
4439 #endif
4442 return 0;
4444 _ACEOF
4445 if ac_fn_cxx_try_compile "$LINENO"; then :
4446 ac_compiler_gnu=yes
4447 else
4448 ac_compiler_gnu=no
4450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4451 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4455 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4456 if test $ac_compiler_gnu = yes; then
4457 GXX=yes
4458 else
4459 GXX=
4461 ac_test_CXXFLAGS=${CXXFLAGS+set}
4462 ac_save_CXXFLAGS=$CXXFLAGS
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4464 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4465 if ${ac_cv_prog_cxx_g+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4469 ac_cxx_werror_flag=yes
4470 ac_cv_prog_cxx_g=no
4471 CXXFLAGS="-g"
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4476 main ()
4480 return 0;
4482 _ACEOF
4483 if ac_fn_cxx_try_compile "$LINENO"; then :
4484 ac_cv_prog_cxx_g=yes
4485 else
4486 CXXFLAGS=""
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4491 main ()
4495 return 0;
4497 _ACEOF
4498 if ac_fn_cxx_try_compile "$LINENO"; then :
4500 else
4501 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4502 CXXFLAGS="-g"
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4507 main ()
4511 return 0;
4513 _ACEOF
4514 if ac_fn_cxx_try_compile "$LINENO"; then :
4515 ac_cv_prog_cxx_g=yes
4517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4525 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4526 if test "$ac_test_CXXFLAGS" = set; then
4527 CXXFLAGS=$ac_save_CXXFLAGS
4528 elif test $ac_cv_prog_cxx_g = yes; then
4529 if test "$GXX" = yes; then
4530 CXXFLAGS="-g -O2"
4531 else
4532 CXXFLAGS="-g"
4534 else
4535 if test "$GXX" = yes; then
4536 CXXFLAGS="-O2"
4537 else
4538 CXXFLAGS=
4541 ac_ext=c
4542 ac_cpp='$CPP $CPPFLAGS'
4543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4547 if test -n "$ac_tool_prefix"; then
4548 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4549 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4551 $as_echo_n "checking for $ac_word... " >&6; }
4552 if ${ac_cv_prog_CPPBIN+:} false; then :
4553 $as_echo_n "(cached) " >&6
4554 else
4555 if test -n "$CPPBIN"; then
4556 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4557 else
4558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4561 IFS=$as_save_IFS
4562 test -z "$as_dir" && as_dir=.
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4565 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4567 break 2
4569 done
4570 done
4571 IFS=$as_save_IFS
4575 CPPBIN=$ac_cv_prog_CPPBIN
4576 if test -n "$CPPBIN"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4578 $as_echo "$CPPBIN" >&6; }
4579 else
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4586 if test -z "$ac_cv_prog_CPPBIN"; then
4587 ac_ct_CPPBIN=$CPPBIN
4588 # Extract the first word of "cpp", so it can be a program name with args.
4589 set dummy cpp; ac_word=$2
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 if test -n "$ac_ct_CPPBIN"; then
4596 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605 ac_cv_prog_ac_ct_CPPBIN="cpp"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4609 done
4610 done
4611 IFS=$as_save_IFS
4615 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4616 if test -n "$ac_ct_CPPBIN"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4618 $as_echo "$ac_ct_CPPBIN" >&6; }
4619 else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4624 if test "x$ac_ct_CPPBIN" = x; then
4625 CPPBIN="cpp"
4626 else
4627 case $cross_compiling:$ac_tool_warned in
4628 yes:)
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4631 ac_tool_warned=yes ;;
4632 esac
4633 CPPBIN=$ac_ct_CPPBIN
4635 else
4636 CPPBIN="$ac_cv_prog_CPPBIN"
4640 cat >>confdefs.h <<_ACEOF
4641 #define EXEEXT "$ac_exeext"
4642 _ACEOF
4645 case $host in
4646 *-darwin*)
4647 if test "x$enable_win64" = "xyes"
4648 then
4649 CC="$CC -m64"
4650 CXX="$CXX -m64"
4651 host_cpu="x86_64"
4652 notice_platform="64-bit "
4653 TARGETFLAGS="-m64"
4655 else
4656 CC="$CC -m32"
4657 CXX="$CXX -m32"
4658 host_cpu="i386"
4659 notice_platform="32-bit "
4660 TARGETFLAGS="-m32"
4662 enable_win16=${enable_win16:-yes}
4664 with_fontconfig=${with_fontconfig:-no}
4666 x86_64*)
4667 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4668 then
4669 CC="$CC -m32"
4670 CXX="$CXX -m32"
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4672 $as_echo_n "checking whether $CC works... " >&6; }
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4678 main ()
4682 return 0;
4684 _ACEOF
4685 if ac_fn_c_try_link "$LINENO"; then :
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4687 $as_echo "yes" >&6; }
4688 else
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4691 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4693 rm -f core conftest.err conftest.$ac_objext \
4694 conftest$ac_exeext conftest.$ac_ext
4695 host_cpu="i386"
4696 notice_platform="32-bit "
4697 TARGETFLAGS="-m32"
4699 enable_win16=${enable_win16:-yes}
4700 else
4701 if test "x${GCC}" = "xyes"
4702 then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4704 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707 #include <stdarg.h>
4709 main ()
4711 void func(__builtin_ms_va_list *args);
4713 return 0;
4715 _ACEOF
4716 if ac_fn_c_try_compile "$LINENO"; then :
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4718 $as_echo "yes" >&6; }
4719 else
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4722 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 TARGETFLAGS="-m64"
4730 arm*)
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4732 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4735 int ac_test(int i) { return i; }
4737 main ()
4739 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4741 return 0;
4743 _ACEOF
4744 if ac_fn_c_try_link "$LINENO"; then :
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4746 $as_echo "yes" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4750 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4752 rm -f core conftest.err conftest.$ac_objext \
4753 conftest$ac_exeext conftest.$ac_ext
4754 CFLAGS="$CFLAGS -marm"
4756 *-mingw32*|*-cygwin*)
4757 enable_win16=${enable_win16:-no}
4758 CFLAGS="$CFLAGS -D_WIN32"
4760 i[3456789]86*)
4761 enable_win16=${enable_win16:-yes}
4763 esac
4765 enable_win16=${enable_win16:-no}
4766 enable_win64=${enable_win64:-no}
4768 enable_winetest=${enable_winetest:-$enable_tests}
4770 if test -n "$with_wine64"
4771 then
4772 if test "x$enable_win64" = "xyes"
4773 then
4774 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4775 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4777 enable_fonts=${enable_fonts:-no}
4778 enable_server=${enable_server:-no}
4779 elif test "x$enable_win64" = "xyes"
4780 then
4781 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4785 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4786 if ${wine_cv_toolsdir+:} false; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 wine_cv_toolsdir="$with_wine_tools"
4790 if test -z "$with_wine_tools"; then
4791 if test "$cross_compiling" = "yes"; then
4792 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4793 elif test -n "$with_wine64"; then
4794 wine_cv_toolsdir="$with_wine64"
4797 if test -z "$wine_cv_toolsdir"; then
4798 wine_cv_toolsdir="\$(top_builddir)"
4799 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4800 case "$wine_cv_toolsdir" in
4801 /*) ;;
4802 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4803 esac
4804 enable_tools=${enable_tools:-no}
4805 else
4806 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4810 $as_echo "$wine_cv_toolsdir" >&6; }
4811 TOOLSDIR=$wine_cv_toolsdir
4813 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4814 then
4815 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4819 for ac_prog in flex
4821 # Extract the first word of "$ac_prog", so it can be a program name with args.
4822 set dummy $ac_prog; ac_word=$2
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4824 $as_echo_n "checking for $ac_word... " >&6; }
4825 if ${ac_cv_prog_FLEX+:} false; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 if test -n "$FLEX"; then
4829 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4830 else
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH
4834 IFS=$as_save_IFS
4835 test -z "$as_dir" && as_dir=.
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838 ac_cv_prog_FLEX="$ac_prog"
4839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 break 2
4842 done
4843 done
4844 IFS=$as_save_IFS
4848 FLEX=$ac_cv_prog_FLEX
4849 if test -n "$FLEX"; then
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4851 $as_echo "$FLEX" >&6; }
4852 else
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 $as_echo "no" >&6; }
4858 test -n "$FLEX" && break
4859 done
4860 test -n "$FLEX" || FLEX="none"
4862 if test "$FLEX" = "none"
4863 then
4864 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4867 $as_echo_n "checking whether flex is recent enough... " >&6; }
4868 cat >conftest.l <<EOF
4869 %top{
4870 #include "prediluvian.h"
4874 if $FLEX -t conftest.l >/dev/null 2>&5
4875 then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4877 $as_echo "yes" >&6; }
4878 else
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4881 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4884 for ac_prog in bison
4886 # Extract the first word of "$ac_prog", so it can be a program name with args.
4887 set dummy $ac_prog; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if ${ac_cv_prog_BISON+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 if test -n "$BISON"; then
4894 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903 ac_cv_prog_BISON="$ac_prog"
4904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 break 2
4907 done
4908 done
4909 IFS=$as_save_IFS
4913 BISON=$ac_cv_prog_BISON
4914 if test -n "$BISON"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4916 $as_echo "$BISON" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4923 test -n "$BISON" && break
4924 done
4925 test -n "$BISON" || BISON="none"
4927 if test "$BISON" = "none"
4928 then
4929 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4932 if test -n "$ac_tool_prefix"; then
4933 for ac_prog in ar gar
4935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if ${ac_cv_prog_AR+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 if test -n "$AR"; then
4943 ac_cv_prog_AR="$AR" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4956 done
4957 done
4958 IFS=$as_save_IFS
4962 AR=$ac_cv_prog_AR
4963 if test -n "$AR"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4965 $as_echo "$AR" >&6; }
4966 else
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4972 test -n "$AR" && break
4973 done
4975 if test -z "$AR"; then
4976 ac_ct_AR=$AR
4977 for ac_prog in ar gar
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_ac_ct_AR+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -n "$ac_ct_AR"; then
4987 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="$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 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5007 if test -n "$ac_ct_AR"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5009 $as_echo "$ac_ct_AR" >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5016 test -n "$ac_ct_AR" && break
5017 done
5019 if test "x$ac_ct_AR" = x; then
5020 AR="ar"
5021 else
5022 case $cross_compiling:$ac_tool_warned in
5023 yes:)
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5026 ac_tool_warned=yes ;;
5027 esac
5028 AR=$ac_ct_AR
5032 if test -n "$ac_tool_prefix"; then
5033 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5034 set dummy ${ac_tool_prefix}strip; ac_word=$2
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if ${ac_cv_prog_STRIP+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if test -n "$STRIP"; then
5041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5054 done
5055 done
5056 IFS=$as_save_IFS
5060 STRIP=$ac_cv_prog_STRIP
5061 if test -n "$STRIP"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5063 $as_echo "$STRIP" >&6; }
5064 else
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5071 if test -z "$ac_cv_prog_STRIP"; then
5072 ac_ct_STRIP=$STRIP
5073 # Extract the first word of "strip", so it can be a program name with args.
5074 set dummy strip; ac_word=$2
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5076 $as_echo_n "checking for $ac_word... " >&6; }
5077 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 if test -n "$ac_ct_STRIP"; then
5081 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5082 else
5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5086 IFS=$as_save_IFS
5087 test -z "$as_dir" && as_dir=.
5088 for ac_exec_ext in '' $ac_executable_extensions; do
5089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5090 ac_cv_prog_ac_ct_STRIP="strip"
5091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5092 break 2
5094 done
5095 done
5096 IFS=$as_save_IFS
5100 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5101 if test -n "$ac_ct_STRIP"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5103 $as_echo "$ac_ct_STRIP" >&6; }
5104 else
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5109 if test "x$ac_ct_STRIP" = x; then
5110 STRIP="strip"
5111 else
5112 case $cross_compiling:$ac_tool_warned in
5113 yes:)
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5116 ac_tool_warned=yes ;;
5117 esac
5118 STRIP=$ac_ct_STRIP
5120 else
5121 STRIP="$ac_cv_prog_STRIP"
5124 ARFLAGS=rc
5126 if test -n "$ac_tool_prefix"; then
5127 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_RANLIB+:} false; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -n "$RANLIB"; then
5135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5148 done
5149 done
5150 IFS=$as_save_IFS
5154 RANLIB=$ac_cv_prog_RANLIB
5155 if test -n "$RANLIB"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5157 $as_echo "$RANLIB" >&6; }
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5165 if test -z "$ac_cv_prog_RANLIB"; then
5166 ac_ct_RANLIB=$RANLIB
5167 # Extract the first word of "ranlib", so it can be a program name with args.
5168 set dummy ranlib; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 if test -n "$ac_ct_RANLIB"; then
5175 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_ac_ct_RANLIB="ranlib"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5188 done
5189 done
5190 IFS=$as_save_IFS
5194 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5195 if test -n "$ac_ct_RANLIB"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5197 $as_echo "$ac_ct_RANLIB" >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5203 if test "x$ac_ct_RANLIB" = x; then
5204 RANLIB=":"
5205 else
5206 case $cross_compiling:$ac_tool_warned in
5207 yes:)
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5210 ac_tool_warned=yes ;;
5211 esac
5212 RANLIB=$ac_ct_RANLIB
5214 else
5215 RANLIB="$ac_cv_prog_RANLIB"
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5219 $as_echo_n "checking whether ln -s works... " >&6; }
5220 LN_S=$as_ln_s
5221 if test "$LN_S" = "ln -s"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223 $as_echo "yes" >&6; }
5224 else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5226 $as_echo "no, using $LN_S" >&6; }
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5231 if ${ac_cv_path_GREP+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 if test -z "$GREP"; then
5235 ac_path_GREP_found=false
5236 # Loop through the user's path and test for each of PROGNAME-LIST
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5240 IFS=$as_save_IFS
5241 test -z "$as_dir" && as_dir=.
5242 for ac_prog in grep ggrep; do
5243 for ac_exec_ext in '' $ac_executable_extensions; do
5244 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5245 as_fn_executable_p "$ac_path_GREP" || continue
5246 # Check for GNU ac_path_GREP and select it if it is found.
5247 # Check for GNU $ac_path_GREP
5248 case `"$ac_path_GREP" --version 2>&1` in
5249 *GNU*)
5250 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5252 ac_count=0
5253 $as_echo_n 0123456789 >"conftest.in"
5254 while :
5256 cat "conftest.in" "conftest.in" >"conftest.tmp"
5257 mv "conftest.tmp" "conftest.in"
5258 cp "conftest.in" "conftest.nl"
5259 $as_echo 'GREP' >> "conftest.nl"
5260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5262 as_fn_arith $ac_count + 1 && ac_count=$as_val
5263 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5264 # Best one so far, save it but keep looking for a better one
5265 ac_cv_path_GREP="$ac_path_GREP"
5266 ac_path_GREP_max=$ac_count
5268 # 10*(2^10) chars as input seems more than enough
5269 test $ac_count -gt 10 && break
5270 done
5271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5272 esac
5274 $ac_path_GREP_found && break 3
5275 done
5276 done
5277 done
5278 IFS=$as_save_IFS
5279 if test -z "$ac_cv_path_GREP"; then
5280 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5282 else
5283 ac_cv_path_GREP=$GREP
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5288 $as_echo "$ac_cv_path_GREP" >&6; }
5289 GREP="$ac_cv_path_GREP"
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5293 $as_echo_n "checking for egrep... " >&6; }
5294 if ${ac_cv_path_EGREP+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5298 then ac_cv_path_EGREP="$GREP -E"
5299 else
5300 if test -z "$EGREP"; then
5301 ac_path_EGREP_found=false
5302 # Loop through the user's path and test for each of PROGNAME-LIST
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_prog in egrep; do
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5311 as_fn_executable_p "$ac_path_EGREP" || continue
5312 # Check for GNU ac_path_EGREP and select it if it is found.
5313 # Check for GNU $ac_path_EGREP
5314 case `"$ac_path_EGREP" --version 2>&1` in
5315 *GNU*)
5316 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5318 ac_count=0
5319 $as_echo_n 0123456789 >"conftest.in"
5320 while :
5322 cat "conftest.in" "conftest.in" >"conftest.tmp"
5323 mv "conftest.tmp" "conftest.in"
5324 cp "conftest.in" "conftest.nl"
5325 $as_echo 'EGREP' >> "conftest.nl"
5326 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5328 as_fn_arith $ac_count + 1 && ac_count=$as_val
5329 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5330 # Best one so far, save it but keep looking for a better one
5331 ac_cv_path_EGREP="$ac_path_EGREP"
5332 ac_path_EGREP_max=$ac_count
5334 # 10*(2^10) chars as input seems more than enough
5335 test $ac_count -gt 10 && break
5336 done
5337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5338 esac
5340 $ac_path_EGREP_found && break 3
5341 done
5342 done
5343 done
5344 IFS=$as_save_IFS
5345 if test -z "$ac_cv_path_EGREP"; then
5346 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5348 else
5349 ac_cv_path_EGREP=$EGREP
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5355 $as_echo "$ac_cv_path_EGREP" >&6; }
5356 EGREP="$ac_cv_path_EGREP"
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5360 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5361 if test -z "$MKDIR_P"; then
5362 if ${ac_cv_path_mkdir+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_prog in mkdir gmkdir; do
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5373 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5374 'mkdir (GNU coreutils) '* | \
5375 'mkdir (coreutils) '* | \
5376 'mkdir (fileutils) '4.1*)
5377 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5378 break 3;;
5379 esac
5380 done
5381 done
5382 done
5383 IFS=$as_save_IFS
5387 test -d ./--version && rmdir ./--version
5388 if test "${ac_cv_path_mkdir+set}" = set; then
5389 MKDIR_P="$ac_cv_path_mkdir -p"
5390 else
5391 # As a last resort, use the slow shell script. Don't cache a
5392 # value for MKDIR_P within a source directory, because that will
5393 # break other packages using the cache if that directory is
5394 # removed, or if the value is a relative name.
5395 MKDIR_P="$ac_install_sh -d"
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5399 $as_echo "$MKDIR_P" >&6; }
5401 # Extract the first word of "ldconfig", so it can be a program name with args.
5402 set dummy ldconfig; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if ${ac_cv_path_LDCONFIG+:} false; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 case $LDCONFIG in
5409 [\\/]* | ?:[\\/]*)
5410 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in /sbin /usr/sbin $PATH
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 break 2
5424 done
5425 done
5426 IFS=$as_save_IFS
5428 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5430 esac
5432 LDCONFIG=$ac_cv_path_LDCONFIG
5433 if test -n "$LDCONFIG"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
5435 $as_echo "$LDCONFIG" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5442 for ac_prog in msgfmt
5444 # Extract the first word of "$ac_prog", so it can be a program name with args.
5445 set dummy $ac_prog; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if ${ac_cv_prog_MSGFMT+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 if test -n "$MSGFMT"; then
5452 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5453 else
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5461 ac_cv_prog_MSGFMT="$ac_prog"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5465 done
5466 done
5467 IFS=$as_save_IFS
5471 MSGFMT=$ac_cv_prog_MSGFMT
5472 if test -n "$MSGFMT"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5474 $as_echo "$MSGFMT" >&6; }
5475 else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5481 test -n "$MSGFMT" && break
5482 done
5483 test -n "$MSGFMT" || MSGFMT="false"
5485 if test -n "$ac_tool_prefix"; then
5486 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5487 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 if test -n "$PKG_CONFIG"; then
5494 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5503 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5507 done
5508 done
5509 IFS=$as_save_IFS
5513 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5514 if test -n "$PKG_CONFIG"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5516 $as_echo "$PKG_CONFIG" >&6; }
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5524 if test -n "$ac_cv_prog_PKG_CONFIG"; then
5525 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
5526 elif test "$cross_compiling" != yes; then
5527 unset ac_cv_prog_PKG_CONFIG
5528 # Extract the first word of "pkg-config", so it can be a program name with args.
5529 set dummy pkg-config; ac_word=$2
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5531 $as_echo_n "checking for $ac_word... " >&6; }
5532 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -n "$PKG_CONFIG"; then
5536 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_prog_PKG_CONFIG="pkg-config"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5549 done
5550 done
5551 IFS=$as_save_IFS
5555 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5556 if test -n "$PKG_CONFIG"; then
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5558 $as_echo "$PKG_CONFIG" >&6; }
5559 else
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5561 $as_echo "no" >&6; }
5567 if test "x$enable_maintainer_mode" != "xyes"
5568 then
5569 FONTFORGE=""
5570 RSVG=""
5571 CONVERT=""
5572 ICOTOOL=""
5573 else
5574 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5575 for ac_prog in fontforge
5577 # Extract the first word of "$ac_prog", so it can be a program name with args.
5578 set dummy $ac_prog; ac_word=$2
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if ${ac_cv_prog_FONTFORGE+:} false; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5584 if test -n "$FONTFORGE"; then
5585 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5586 else
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 for as_dir in $PATH
5590 IFS=$as_save_IFS
5591 test -z "$as_dir" && as_dir=.
5592 for ac_exec_ext in '' $ac_executable_extensions; do
5593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594 ac_cv_prog_FONTFORGE="$ac_prog"
5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 break 2
5598 done
5599 done
5600 IFS=$as_save_IFS
5604 FONTFORGE=$ac_cv_prog_FONTFORGE
5605 if test -n "$FONTFORGE"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5607 $as_echo "$FONTFORGE" >&6; }
5608 else
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5614 test -n "$FONTFORGE" && break
5615 done
5616 test -n "$FONTFORGE" || FONTFORGE="false"
5618 for ac_prog in rsvg
5620 # Extract the first word of "$ac_prog", so it can be a program name with args.
5621 set dummy $ac_prog; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_RSVG+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 if test -n "$RSVG"; then
5628 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_RSVG="$ac_prog"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5641 done
5642 done
5643 IFS=$as_save_IFS
5647 RSVG=$ac_cv_prog_RSVG
5648 if test -n "$RSVG"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5650 $as_echo "$RSVG" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5657 test -n "$RSVG" && break
5658 done
5659 test -n "$RSVG" || RSVG="false"
5661 for ac_prog in convert
5663 # Extract the first word of "$ac_prog", so it can be a program name with args.
5664 set dummy $ac_prog; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if ${ac_cv_prog_CONVERT+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 if test -n "$CONVERT"; then
5671 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5672 else
5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 for as_dir in $PATH
5676 IFS=$as_save_IFS
5677 test -z "$as_dir" && as_dir=.
5678 for ac_exec_ext in '' $ac_executable_extensions; do
5679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5680 ac_cv_prog_CONVERT="$ac_prog"
5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682 break 2
5684 done
5685 done
5686 IFS=$as_save_IFS
5690 CONVERT=$ac_cv_prog_CONVERT
5691 if test -n "$CONVERT"; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5693 $as_echo "$CONVERT" >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696 $as_echo "no" >&6; }
5700 test -n "$CONVERT" && break
5701 done
5702 test -n "$CONVERT" || CONVERT="false"
5704 for ac_prog in icotool
5706 # Extract the first word of "$ac_prog", so it can be a program name with args.
5707 set dummy $ac_prog; ac_word=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_ICOTOOL+:} false; then :
5711 $as_echo_n "(cached) " >&6
5712 else
5713 if test -n "$ICOTOOL"; then
5714 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5715 else
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_ICOTOOL="$ac_prog"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5727 done
5728 done
5729 IFS=$as_save_IFS
5733 ICOTOOL=$ac_cv_prog_ICOTOOL
5734 if test -n "$ICOTOOL"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5736 $as_echo "$ICOTOOL" >&6; }
5737 else
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5743 test -n "$ICOTOOL" && break
5744 done
5745 test -n "$ICOTOOL" || ICOTOOL="false"
5747 test "$FONTFORGE" != "false" || as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5
5748 test "$RSVG" != "false" || as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5
5750 if test "$CONVERT" = false
5751 then
5752 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5753 else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5755 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5756 convert_version=`convert --version | head -n1`
5757 if test "x$convert_version" != "x"
5758 then
5759 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5760 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5761 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5762 then
5763 CONVERT=false
5766 if test "$CONVERT" = false
5767 then
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5769 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5770 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5773 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5777 if test "$ICOTOOL" = false
5778 then
5779 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5780 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5782 $as_echo_n "checking for recent enough icotool... " >&6; }
5783 icotool_version=`icotool --version | head -n1`
5784 if test "x$icotool_version" != "x"
5785 then
5786 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5787 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5788 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5789 then
5790 ICOTOOL=false
5791 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5794 if test "$ICOTOOL" = false
5795 then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5797 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5798 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5799 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5801 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5805 with_gettext=yes
5806 with_gettextpo=yes
5807 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5810 test "x$with_gettext" != xno || MSGFMT=false
5811 if test "$MSGFMT" != "false"
5812 then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5814 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5815 cat >conftest.po <<EOF
5816 # comment
5817 msgctxt "ctxt"
5818 msgid "id"
5819 msgstr "str"
5821 if $MSGFMT -o /dev/null conftest.po 2>&5
5822 then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5824 $as_echo "yes" >&6; }
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 MSGFMT=false
5831 if test "$MSGFMT" = false; then :
5832 case "x$with_gettext" in
5833 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5834 xno) ;;
5835 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5836 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5837 esac
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5842 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5843 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 ac_check_lib_save_LIBS=$LIBS
5847 LIBS="-li386 $LIBS"
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5851 /* Override any GCC internal prototype to avoid an error.
5852 Use char because int might match the return type of a GCC
5853 builtin and then its argument prototype would still apply. */
5854 #ifdef __cplusplus
5855 extern "C"
5856 #endif
5857 char i386_set_ldt ();
5859 main ()
5861 return i386_set_ldt ();
5863 return 0;
5865 _ACEOF
5866 if ac_fn_c_try_link "$LINENO"; then :
5867 ac_cv_lib_i386_i386_set_ldt=yes
5868 else
5869 ac_cv_lib_i386_i386_set_ldt=no
5871 rm -f core conftest.err conftest.$ac_objext \
5872 conftest$ac_exeext conftest.$ac_ext
5873 LIBS=$ac_check_lib_save_LIBS
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5876 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5877 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5878 cat >>confdefs.h <<_ACEOF
5879 #define HAVE_LIBI386 1
5880 _ACEOF
5882 LIBS="-li386 $LIBS"
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5887 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5888 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 ac_check_lib_save_LIBS=$LIBS
5892 LIBS="-lossaudio $LIBS"
5893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894 /* end confdefs.h. */
5896 /* Override any GCC internal prototype to avoid an error.
5897 Use char because int might match the return type of a GCC
5898 builtin and then its argument prototype would still apply. */
5899 #ifdef __cplusplus
5900 extern "C"
5901 #endif
5902 char _oss_ioctl ();
5904 main ()
5906 return _oss_ioctl ();
5908 return 0;
5910 _ACEOF
5911 if ac_fn_c_try_link "$LINENO"; then :
5912 ac_cv_lib_ossaudio__oss_ioctl=yes
5913 else
5914 ac_cv_lib_ossaudio__oss_ioctl=no
5916 rm -f core conftest.err conftest.$ac_objext \
5917 conftest$ac_exeext conftest.$ac_ext
5918 LIBS=$ac_check_lib_save_LIBS
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5921 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5922 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5923 cat >>confdefs.h <<_ACEOF
5924 #define HAVE_LIBOSSAUDIO 1
5925 _ACEOF
5927 LIBS="-lossaudio $LIBS"
5932 XLIB=""
5934 OPENGL_LIBS=""
5938 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5940 # Check whether --enable-largefile was given.
5941 if test "${enable_largefile+set}" = set; then :
5942 enableval=$enable_largefile;
5945 if test "$enable_largefile" != no; then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5948 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5949 if ${ac_cv_sys_largefile_CC+:} false; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 ac_cv_sys_largefile_CC=no
5953 if test "$GCC" != yes; then
5954 ac_save_CC=$CC
5955 while :; do
5956 # IRIX 6.2 and later do not support large files by default,
5957 # so use the C compiler's -n32 option if that helps.
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 #include <sys/types.h>
5961 /* Check that off_t can represent 2**63 - 1 correctly.
5962 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5963 since some C++ compilers masquerading as C compilers
5964 incorrectly reject 9223372036854775807. */
5965 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5966 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5967 && LARGE_OFF_T % 2147483647 == 1)
5968 ? 1 : -1];
5970 main ()
5974 return 0;
5976 _ACEOF
5977 if ac_fn_c_try_compile "$LINENO"; then :
5978 break
5980 rm -f core conftest.err conftest.$ac_objext
5981 CC="$CC -n32"
5982 if ac_fn_c_try_compile "$LINENO"; then :
5983 ac_cv_sys_largefile_CC=' -n32'; break
5985 rm -f core conftest.err conftest.$ac_objext
5986 break
5987 done
5988 CC=$ac_save_CC
5989 rm -f conftest.$ac_ext
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5993 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5994 if test "$ac_cv_sys_largefile_CC" != no; then
5995 CC=$CC$ac_cv_sys_largefile_CC
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5999 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6000 if ${ac_cv_sys_file_offset_bits+:} false; then :
6001 $as_echo_n "(cached) " >&6
6002 else
6003 while :; do
6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6006 #include <sys/types.h>
6007 /* Check that off_t can represent 2**63 - 1 correctly.
6008 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6009 since some C++ compilers masquerading as C compilers
6010 incorrectly reject 9223372036854775807. */
6011 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6012 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6013 && LARGE_OFF_T % 2147483647 == 1)
6014 ? 1 : -1];
6016 main ()
6020 return 0;
6022 _ACEOF
6023 if ac_fn_c_try_compile "$LINENO"; then :
6024 ac_cv_sys_file_offset_bits=no; break
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 #define _FILE_OFFSET_BITS 64
6030 #include <sys/types.h>
6031 /* Check that off_t can represent 2**63 - 1 correctly.
6032 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6033 since some C++ compilers masquerading as C compilers
6034 incorrectly reject 9223372036854775807. */
6035 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6036 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6037 && LARGE_OFF_T % 2147483647 == 1)
6038 ? 1 : -1];
6040 main ()
6044 return 0;
6046 _ACEOF
6047 if ac_fn_c_try_compile "$LINENO"; then :
6048 ac_cv_sys_file_offset_bits=64; break
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 ac_cv_sys_file_offset_bits=unknown
6052 break
6053 done
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6056 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6057 case $ac_cv_sys_file_offset_bits in #(
6058 no | unknown) ;;
6060 cat >>confdefs.h <<_ACEOF
6061 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6062 _ACEOF
6064 esac
6065 rm -rf conftest*
6066 if test $ac_cv_sys_file_offset_bits = unknown; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6068 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6069 if ${ac_cv_sys_large_files+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 while :; do
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6075 #include <sys/types.h>
6076 /* Check that off_t can represent 2**63 - 1 correctly.
6077 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6078 since some C++ compilers masquerading as C compilers
6079 incorrectly reject 9223372036854775807. */
6080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6081 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6082 && LARGE_OFF_T % 2147483647 == 1)
6083 ? 1 : -1];
6085 main ()
6089 return 0;
6091 _ACEOF
6092 if ac_fn_c_try_compile "$LINENO"; then :
6093 ac_cv_sys_large_files=no; break
6095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6098 #define _LARGE_FILES 1
6099 #include <sys/types.h>
6100 /* Check that off_t can represent 2**63 - 1 correctly.
6101 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6102 since some C++ compilers masquerading as C compilers
6103 incorrectly reject 9223372036854775807. */
6104 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6105 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6106 && LARGE_OFF_T % 2147483647 == 1)
6107 ? 1 : -1];
6109 main ()
6113 return 0;
6115 _ACEOF
6116 if ac_fn_c_try_compile "$LINENO"; then :
6117 ac_cv_sys_large_files=1; break
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 ac_cv_sys_large_files=unknown
6121 break
6122 done
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6125 $as_echo "$ac_cv_sys_large_files" >&6; }
6126 case $ac_cv_sys_large_files in #(
6127 no | unknown) ;;
6129 cat >>confdefs.h <<_ACEOF
6130 #define _LARGE_FILES $ac_cv_sys_large_files
6131 _ACEOF
6133 esac
6134 rm -rf conftest*
6141 ac_ext=c
6142 ac_cpp='$CPP $CPPFLAGS'
6143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6147 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6148 # On Suns, sometimes $CPP names a directory.
6149 if test -n "$CPP" && test -d "$CPP"; then
6150 CPP=
6152 if test -z "$CPP"; then
6153 if ${ac_cv_prog_CPP+:} false; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 # Double quotes because CPP needs to be expanded
6157 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6159 ac_preproc_ok=false
6160 for ac_c_preproc_warn_flag in '' yes
6162 # Use a header file that comes with gcc, so configuring glibc
6163 # with a fresh cross-compiler works.
6164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6165 # <limits.h> exists even on freestanding compilers.
6166 # On the NeXT, cc -E runs the code through the compiler's parser,
6167 # not just through cpp. "Syntax error" is here to catch this case.
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6170 #ifdef __STDC__
6171 # include <limits.h>
6172 #else
6173 # include <assert.h>
6174 #endif
6175 Syntax error
6176 _ACEOF
6177 if ac_fn_c_try_cpp "$LINENO"; then :
6179 else
6180 # Broken: fails on valid input.
6181 continue
6183 rm -f conftest.err conftest.i conftest.$ac_ext
6185 # OK, works on sane cases. Now check whether nonexistent headers
6186 # can be detected and how.
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6189 #include <ac_nonexistent.h>
6190 _ACEOF
6191 if ac_fn_c_try_cpp "$LINENO"; then :
6192 # Broken: success on invalid input.
6193 continue
6194 else
6195 # Passes both tests.
6196 ac_preproc_ok=:
6197 break
6199 rm -f conftest.err conftest.i conftest.$ac_ext
6201 done
6202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6203 rm -f conftest.i conftest.err conftest.$ac_ext
6204 if $ac_preproc_ok; then :
6205 break
6208 done
6209 ac_cv_prog_CPP=$CPP
6212 CPP=$ac_cv_prog_CPP
6213 else
6214 ac_cv_prog_CPP=$CPP
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6217 $as_echo "$CPP" >&6; }
6218 ac_preproc_ok=false
6219 for ac_c_preproc_warn_flag in '' yes
6221 # Use a header file that comes with gcc, so configuring glibc
6222 # with a fresh cross-compiler works.
6223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6224 # <limits.h> exists even on freestanding compilers.
6225 # On the NeXT, cc -E runs the code through the compiler's parser,
6226 # not just through cpp. "Syntax error" is here to catch this case.
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229 #ifdef __STDC__
6230 # include <limits.h>
6231 #else
6232 # include <assert.h>
6233 #endif
6234 Syntax error
6235 _ACEOF
6236 if ac_fn_c_try_cpp "$LINENO"; then :
6238 else
6239 # Broken: fails on valid input.
6240 continue
6242 rm -f conftest.err conftest.i conftest.$ac_ext
6244 # OK, works on sane cases. Now check whether nonexistent headers
6245 # can be detected and how.
6246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6248 #include <ac_nonexistent.h>
6249 _ACEOF
6250 if ac_fn_c_try_cpp "$LINENO"; then :
6251 # Broken: success on invalid input.
6252 continue
6253 else
6254 # Passes both tests.
6255 ac_preproc_ok=:
6256 break
6258 rm -f conftest.err conftest.i conftest.$ac_ext
6260 done
6261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6262 rm -f conftest.i conftest.err conftest.$ac_ext
6263 if $ac_preproc_ok; then :
6265 else
6266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6268 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6269 See \`config.log' for more details" "$LINENO" 5; }
6272 ac_ext=c
6273 ac_cpp='$CPP $CPPFLAGS'
6274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6280 $as_echo_n "checking for ANSI C header files... " >&6; }
6281 if ${ac_cv_header_stdc+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6286 #include <stdlib.h>
6287 #include <stdarg.h>
6288 #include <string.h>
6289 #include <float.h>
6292 main ()
6296 return 0;
6298 _ACEOF
6299 if ac_fn_c_try_compile "$LINENO"; then :
6300 ac_cv_header_stdc=yes
6301 else
6302 ac_cv_header_stdc=no
6304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 if test $ac_cv_header_stdc = yes; then
6307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 #include <string.h>
6312 _ACEOF
6313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6314 $EGREP "memchr" >/dev/null 2>&1; then :
6316 else
6317 ac_cv_header_stdc=no
6319 rm -f conftest*
6323 if test $ac_cv_header_stdc = yes; then
6324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327 #include <stdlib.h>
6329 _ACEOF
6330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6331 $EGREP "free" >/dev/null 2>&1; then :
6333 else
6334 ac_cv_header_stdc=no
6336 rm -f conftest*
6340 if test $ac_cv_header_stdc = yes; then
6341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6342 if test "$cross_compiling" = yes; then :
6344 else
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347 #include <ctype.h>
6348 #include <stdlib.h>
6349 #if ((' ' & 0x0FF) == 0x020)
6350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6352 #else
6353 # define ISLOWER(c) \
6354 (('a' <= (c) && (c) <= 'i') \
6355 || ('j' <= (c) && (c) <= 'r') \
6356 || ('s' <= (c) && (c) <= 'z'))
6357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6358 #endif
6360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6362 main ()
6364 int i;
6365 for (i = 0; i < 256; i++)
6366 if (XOR (islower (i), ISLOWER (i))
6367 || toupper (i) != TOUPPER (i))
6368 return 2;
6369 return 0;
6371 _ACEOF
6372 if ac_fn_c_try_run "$LINENO"; then :
6374 else
6375 ac_cv_header_stdc=no
6377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6378 conftest.$ac_objext conftest.beam conftest.$ac_ext
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6384 $as_echo "$ac_cv_header_stdc" >&6; }
6385 if test $ac_cv_header_stdc = yes; then
6387 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6393 inttypes.h stdint.h unistd.h
6394 do :
6395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6396 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6399 cat >>confdefs.h <<_ACEOF
6400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6401 _ACEOF
6405 done
6408 for ac_header in \
6409 AL/al.h \
6410 ApplicationServices/ApplicationServices.h \
6411 AudioToolbox/AudioConverter.h \
6412 AudioUnit/AudioUnit.h \
6413 AudioUnit/AudioComponent.h \
6414 CL/cl.h \
6415 Carbon/Carbon.h \
6416 CoreAudio/CoreAudio.h \
6417 CoreServices/CoreServices.h \
6418 DiskArbitration/DiskArbitration.h \
6419 IOKit/IOKitLib.h \
6420 IOKit/hid/IOHIDLib.h \
6421 OpenAL/al.h \
6422 OpenCL/opencl.h \
6423 QuickTime/ImageCompression.h \
6424 Security/Security.h \
6425 alias.h \
6426 alsa/asoundlib.h \
6427 arpa/inet.h \
6428 arpa/nameser.h \
6429 asm/types.h \
6430 asm/user.h \
6431 curses.h \
6432 direct.h \
6433 dirent.h \
6434 dlfcn.h \
6435 elf.h \
6436 float.h \
6437 fnmatch.h \
6438 fontconfig/fontconfig.h \
6439 getopt.h \
6440 gettext-po.h \
6441 grp.h \
6442 gsm.h \
6443 gsm/gsm.h \
6444 ieeefp.h \
6445 inet/mib2.h \
6446 io.h \
6447 kstat.h \
6448 lber.h \
6449 ldap.h \
6450 libproc.h \
6451 link.h \
6452 linux/cdrom.h \
6453 linux/compiler.h \
6454 linux/filter.h \
6455 linux/hdreg.h \
6456 linux/input.h \
6457 linux/ioctl.h \
6458 linux/joystick.h \
6459 linux/major.h \
6460 linux/param.h \
6461 linux/serial.h \
6462 linux/types.h \
6463 linux/ucdrom.h \
6464 lwp.h \
6465 mach-o/nlist.h \
6466 mach-o/loader.h \
6467 mach/mach.h \
6468 mach/machine.h \
6469 machine/cpu.h \
6470 machine/limits.h \
6471 machine/sysarch.h \
6472 mntent.h \
6473 ncurses.h \
6474 netdb.h \
6475 netinet/in.h \
6476 netinet/in_systm.h \
6477 netinet/tcp.h \
6478 netinet/tcp_fsm.h \
6479 poll.h \
6480 port.h \
6481 process.h \
6482 pthread.h \
6483 pwd.h \
6484 sched.h \
6485 scsi/scsi.h \
6486 scsi/scsi_ioctl.h \
6487 scsi/sg.h \
6488 stdbool.h \
6489 stdint.h \
6490 stropts.h \
6491 sys/asoundlib.h \
6492 sys/attr.h \
6493 sys/cdio.h \
6494 sys/elf32.h \
6495 sys/epoll.h \
6496 sys/event.h \
6497 sys/exec_elf.h \
6498 sys/filio.h \
6499 sys/inotify.h \
6500 sys/ioctl.h \
6501 sys/ipc.h \
6502 sys/limits.h \
6503 sys/link.h \
6504 sys/mman.h \
6505 sys/modem.h \
6506 sys/msg.h \
6507 sys/mtio.h \
6508 sys/param.h \
6509 sys/poll.h \
6510 sys/prctl.h \
6511 sys/protosw.h \
6512 sys/ptrace.h \
6513 sys/queue.h \
6514 sys/resource.h \
6515 sys/scsiio.h \
6516 sys/shm.h \
6517 sys/signal.h \
6518 sys/socket.h \
6519 sys/socketvar.h \
6520 sys/sockio.h \
6521 sys/statvfs.h \
6522 sys/strtio.h \
6523 sys/syscall.h \
6524 sys/tihdr.h \
6525 sys/time.h \
6526 sys/timeout.h \
6527 sys/times.h \
6528 sys/uio.h \
6529 sys/user.h \
6530 sys/utsname.h \
6531 sys/vm86.h \
6532 sys/wait.h \
6533 syscall.h \
6534 termios.h \
6535 unistd.h \
6536 utime.h \
6537 valgrind/memcheck.h \
6538 valgrind/valgrind.h \
6539 zlib.h
6541 do :
6542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6543 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6544 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6545 cat >>confdefs.h <<_ACEOF
6546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6547 _ACEOF
6551 done
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6554 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6555 if ${ac_cv_header_stat_broken+:} false; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6560 #include <sys/types.h>
6561 #include <sys/stat.h>
6563 #if defined S_ISBLK && defined S_IFDIR
6564 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6565 #endif
6567 #if defined S_ISBLK && defined S_IFCHR
6568 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6569 #endif
6571 #if defined S_ISLNK && defined S_IFREG
6572 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6573 #endif
6575 #if defined S_ISSOCK && defined S_IFREG
6576 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6577 #endif
6579 _ACEOF
6580 if ac_fn_c_try_compile "$LINENO"; then :
6581 ac_cv_header_stat_broken=no
6582 else
6583 ac_cv_header_stat_broken=yes
6585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6588 $as_echo "$ac_cv_header_stat_broken" >&6; }
6589 if test $ac_cv_header_stat_broken = yes; then
6591 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6597 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6598 do :
6599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6600 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6601 #ifdef HAVE_SYS_PARAM_H
6602 # include <sys/param.h>
6603 #endif
6605 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6606 cat >>confdefs.h <<_ACEOF
6607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6608 _ACEOF
6612 done
6615 for ac_header in \
6616 netinet/ip.h \
6617 net/if.h \
6618 net/if_arp.h \
6619 net/if_dl.h \
6620 net/if_types.h \
6621 net/route.h \
6622 netinet/if_ether.h \
6623 netinet/if_inarp.h \
6624 netinet/in_pcb.h \
6625 netinet/ip_icmp.h \
6626 netinet/ip_var.h \
6627 netinet/udp.h \
6628 netipx/ipx.h \
6629 sys/un.h \
6631 do :
6632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6633 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6634 #ifdef HAVE_SYS_SOCKET_H
6635 # include <sys/socket.h>
6636 #endif
6637 #ifdef HAVE_SYS_SOCKETVAR_H
6638 # include <sys/socketvar.h>
6639 #endif
6640 #ifdef HAVE_NET_ROUTE_H
6641 # include <net/route.h>
6642 #endif
6643 #ifdef HAVE_NETINET_IN_H
6644 # include <netinet/in.h>
6645 #endif
6646 #ifdef HAVE_NETINET_IN_SYSTM_H
6647 # include <netinet/in_systm.h>
6648 #endif
6649 #ifdef HAVE_NET_IF_H
6650 # include <net/if.h>
6651 #endif
6652 #ifdef HAVE_NETINET_IP_H
6653 # include <netinet/ip.h>
6654 #endif
6656 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6657 cat >>confdefs.h <<_ACEOF
6658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6659 _ACEOF
6663 done
6666 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6667 do :
6668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6669 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6670 #ifdef HAVE_ALIAS_H
6671 # include <alias.h>
6672 #endif
6673 #ifdef HAVE_SYS_SOCKET_H
6674 # include <sys/socket.h>
6675 #endif
6676 #ifdef HAVE_SYS_SOCKETVAR_H
6677 # include <sys/socketvar.h>
6678 #endif
6679 #ifdef HAVE_SYS_TIMEOUT_H
6680 # include <sys/timeout.h>
6681 #endif
6682 #ifdef HAVE_NETINET_IN_H
6683 # include <netinet/in.h>
6684 #endif
6685 #ifdef HAVE_NETINET_IN_SYSTM_H
6686 # include <netinet/in_systm.h>
6687 #endif
6688 #ifdef HAVE_NETINET_IP_H
6689 # include <netinet/ip.h>
6690 #endif
6691 #ifdef HAVE_NETINET_IP_VAR_H
6692 # include <netinet/ip_var.h>
6693 #endif
6694 #ifdef HAVE_NETINET_IP_ICMP_H
6695 # include <netinet/ip_icmp.h>
6696 #endif
6697 #ifdef HAVE_NETINET_UDP_H
6698 # include <netinet/udp.h>
6699 #endif
6700 #ifdef HAVE_NETINET_TCP_H
6701 # include <netinet/tcp.h>
6702 #endif
6703 #ifdef HAVE_NETINET_TCP_TIMER_H
6704 #include <netinet/tcp_timer.h>
6705 #endif
6707 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6708 cat >>confdefs.h <<_ACEOF
6709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6710 _ACEOF
6714 done
6717 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6718 do :
6719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6720 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6721 #ifdef HAVE_ASM_TYPES_H
6722 # include <asm/types.h>
6723 #endif
6724 #ifdef HAVE_SYS_SOCKET_H
6725 # include <sys/socket.h>
6726 #endif
6727 #ifdef HAVE_LINUX_TYPES_H
6728 # include <linux/types.h>
6729 #endif
6731 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6732 cat >>confdefs.h <<_ACEOF
6733 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6734 _ACEOF
6738 done
6741 for ac_header in mach-o/dyld_images.h
6742 do :
6743 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6744 # include <stdbool.h>
6745 #endif
6746 #ifdef HAVE_STDINT_H
6747 # include <stdint.h>
6748 #endif
6750 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6751 cat >>confdefs.h <<_ACEOF
6752 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6753 _ACEOF
6757 done
6760 for ac_header in resolv.h
6761 do :
6762 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6763 #ifdef HAVE_SYS_SOCKET_H
6764 # include <sys/socket.h>
6765 #endif
6766 #ifdef HAVE_NETINET_IN_H
6767 # include <netinet/in.h>
6768 #endif
6769 #ifdef HAVE_ARPA_NAMESER_H
6770 # include <arpa/nameser.h>
6771 #endif
6773 if test "x$ac_cv_header_resolv_h" = xyes; then :
6774 cat >>confdefs.h <<_ACEOF
6775 #define HAVE_RESOLV_H 1
6776 _ACEOF
6780 done
6783 for ac_header in ifaddrs.h
6784 do :
6785 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6787 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6788 cat >>confdefs.h <<_ACEOF
6789 #define HAVE_IFADDRS_H 1
6790 _ACEOF
6794 done
6797 for ac_header in ucontext.h
6798 do :
6799 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6801 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6802 cat >>confdefs.h <<_ACEOF
6803 #define HAVE_UCONTEXT_H 1
6804 _ACEOF
6808 done
6811 for ac_header in sys/thr.h
6812 do :
6813 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6814 #ifdef HAVE_UCONTEXT_H
6815 #include <ucontext.h>
6816 #endif
6818 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6819 cat >>confdefs.h <<_ACEOF
6820 #define HAVE_SYS_THR_H 1
6821 _ACEOF
6825 done
6828 for ac_header in pthread_np.h
6829 do :
6830 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6831 #include <pthread.h>
6832 #endif
6834 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6835 cat >>confdefs.h <<_ACEOF
6836 #define HAVE_PTHREAD_NP_H 1
6837 _ACEOF
6841 done
6844 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6845 do :
6846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6847 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6848 #include <sys/time.h>
6849 #endif
6850 #include <sys/types.h>
6851 #ifdef HAVE_ASM_TYPES_H
6852 #include <asm/types.h>
6853 #endif
6855 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6856 cat >>confdefs.h <<_ACEOF
6857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6858 _ACEOF
6862 done
6865 for ac_header in libprocstat.h
6866 do :
6867 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
6868 #include <sys/param.h>
6869 #endif
6870 #ifdef HAVE_SYS_QUEUE_H
6871 #include <sys/queue.h>
6872 #endif
6873 #ifdef HAVE_SYS_SOCKET_H
6874 #include <sys/socket.h>
6875 #endif
6877 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
6878 cat >>confdefs.h <<_ACEOF
6879 #define HAVE_LIBPROCSTAT_H 1
6880 _ACEOF
6884 done
6888 dlldir="\${libdir}/wine"
6890 DLLPREFIX=""
6892 DLLFLAGS="-D_REENTRANT"
6894 LDRPATH_INSTALL=""
6896 LDRPATH_LOCAL=""
6898 LIBEXT="so"
6899 DLLEXT=".so"
6900 IMPLIBEXT="def"
6901 STATIC_IMPLIBEXT="def.a"
6902 # Extract the first word of "ldd", so it can be a program name with args.
6903 set dummy ldd; ac_word=$2
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6905 $as_echo_n "checking for $ac_word... " >&6; }
6906 if ${ac_cv_path_LDD+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 case $LDD in
6910 [\\/]* | ?:[\\/]*)
6911 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 as_dummy="/sbin:/usr/sbin:$PATH"
6916 for as_dir in $as_dummy
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6922 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6926 done
6927 done
6928 IFS=$as_save_IFS
6930 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6932 esac
6934 LDD=$ac_cv_path_LDD
6935 if test -n "$LDD"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6937 $as_echo "$LDD" >&6; }
6938 else
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6944 if test -n "$ac_tool_prefix"; then
6945 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6946 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if ${ac_cv_prog_READELF+:} false; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 if test -n "$READELF"; then
6953 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6954 else
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6962 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6966 done
6967 done
6968 IFS=$as_save_IFS
6972 READELF=$ac_cv_prog_READELF
6973 if test -n "$READELF"; then
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6975 $as_echo "$READELF" >&6; }
6976 else
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6978 $as_echo "no" >&6; }
6983 if test -z "$ac_cv_prog_READELF"; then
6984 ac_ct_READELF=$READELF
6985 # Extract the first word of "readelf", so it can be a program name with args.
6986 set dummy readelf; ac_word=$2
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6988 $as_echo_n "checking for $ac_word... " >&6; }
6989 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 if test -n "$ac_ct_READELF"; then
6993 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6994 else
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7002 ac_cv_prog_ac_ct_READELF="readelf"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7006 done
7007 done
7008 IFS=$as_save_IFS
7012 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
7013 if test -n "$ac_ct_READELF"; then
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
7015 $as_echo "$ac_ct_READELF" >&6; }
7016 else
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7018 $as_echo "no" >&6; }
7021 if test "x$ac_ct_READELF" = x; then
7022 READELF="true"
7023 else
7024 case $cross_compiling:$ac_tool_warned in
7025 yes:)
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7028 ac_tool_warned=yes ;;
7029 esac
7030 READELF=$ac_ct_READELF
7032 else
7033 READELF="$ac_cv_prog_READELF"
7036 wine_rules_file=conf$$rules.make
7037 rm -f $wine_rules_file
7038 ALL_POT_FILES=""
7039 GITIGNORE="# Automatically generated by configure; DO NOT EDIT!!"
7040 ALL_TEST_RESOURCES=""
7043 wine_fn_append_file ()
7045 as_fn_append $1 " \\$as_nl $2"
7048 wine_fn_ignore_file ()
7050 case "$1" in
7051 */*) as_fn_append GITIGNORE "$as_nl$1" ;;
7052 \**) as_fn_append GITIGNORE "$as_nl$1" ;;
7053 *) as_fn_append GITIGNORE "$as_nl/$1" ;;
7054 esac
7057 wine_fn_append_rule ()
7059 $as_echo "$1" >>$wine_rules_file
7062 wine_fn_has_flag ()
7064 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
7067 wine_fn_depend_rules ()
7069 ac_alldeps=$1
7070 ac_makedep="\$(MAKEDEP)"
7071 ac_input=Make.vars.in:$ac_dir/Makefile.in
7072 case $1 in
7073 *.in)
7074 ac_input=$ac_input:$1
7075 test "$srcdir" = . || ac_alldeps="$srcdir/$ac_alldeps" ;;
7077 ac_makedep="$1 $ac_makedep" ;;
7078 esac
7080 wine_fn_append_rule \
7081 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in $srcdir/Make.vars.in config.status $ac_alldeps \$(MAKEDEP)
7082 @./config.status --file $ac_dir/Makefile:$ac_input && \$(MAKEDEP) -M $ac_dir
7083 depend: $ac_dir/depend
7084 .PHONY: $ac_dir/depend
7085 $ac_dir/depend: $ac_makedep dummy
7086 @./config.status --file $ac_dir/Makefile:$ac_input && \$(MAKEDEP) -M $ac_dir"
7089 wine_fn_pot_rules ()
7091 test "x$with_gettextpo" = xyes || return
7093 if wine_fn_has_flag mc
7094 then
7095 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
7096 wine_fn_append_rule \
7097 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
7098 @cd $ac_dir && \$(MAKE) msg.pot
7099 $ac_dir/msg.pot: tools/wmc include"
7101 if wine_fn_has_flag po
7102 then
7103 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
7104 wine_fn_append_rule \
7105 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
7106 @cd $ac_dir && \$(MAKE) rsrc.pot
7107 $ac_dir/rsrc.pot: tools/wrc include"
7111 wine_fn_all_rules ()
7113 ac_rules=$1
7115 wine_fn_depend_rules ${ac_rules:-Make.rules}
7116 wine_fn_append_rule \
7117 "all: $ac_dir
7118 .PHONY: $ac_dir
7119 $ac_dir: $ac_dir/Makefile dummy
7120 @cd $ac_dir && \$(MAKE)"
7123 wine_fn_install_rules ()
7125 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
7127 wine_fn_append_rule \
7128 ".PHONY: $ac_dir/install $ac_dir/uninstall
7129 $ac_dir/install:: $ac_dir
7130 @cd $ac_dir && \$(MAKE) install
7131 $ac_dir/uninstall:: $ac_dir/Makefile
7132 @cd $ac_dir && \$(MAKE) uninstall
7133 install:: $ac_dir/install
7134 __uninstall__: $ac_dir/uninstall"
7136 if wine_fn_has_flag install-lib
7137 then
7138 wine_fn_append_rule \
7139 ".PHONY: $ac_dir/install-lib
7140 $ac_dir/install-lib:: $ac_dir
7141 @cd $ac_dir && \$(MAKE) install-lib
7142 install-lib:: $ac_dir/install-lib"
7145 if wine_fn_has_flag install-dev
7146 then
7147 wine_fn_append_rule \
7148 ".PHONY: $ac_dir/install-dev
7149 $ac_dir/install-dev:: $ac_dir
7150 @cd $ac_dir && \$(MAKE) install-dev
7151 install-dev:: $ac_dir/install-dev"
7155 wine_fn_clean_rules ()
7157 ac_clean=$@
7158 ac_extraclean="$ac_dir/Makefile"
7159 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7161 if wine_fn_has_flag clean
7162 then
7163 wine_fn_append_rule \
7164 "__clean__: $ac_dir/clean
7165 .PHONY: $ac_dir/clean
7166 $ac_dir/clean: $ac_dir/Makefile
7167 @cd $ac_dir && \$(MAKE) clean
7168 \$(RM) $ac_extraclean"
7169 else
7170 wine_fn_append_rule \
7171 "__clean__: $ac_dir/clean
7172 .PHONY: $ac_dir/clean
7173 $ac_dir/clean: dummy
7174 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7178 wine_fn_disabled_rules ()
7180 ac_clean=$@
7181 ac_extraclean="$ac_dir/Makefile"
7182 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7184 wine_fn_append_rule \
7185 "__clean__: $ac_dir/clean
7186 .PHONY: $ac_dir/clean
7187 $ac_dir/clean: dummy
7188 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7191 wine_fn_config_makefile ()
7193 ac_dir=$1
7194 ac_enable=$2
7195 ac_flags=$3
7197 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7198 wine_fn_disabled_rules; return
7200 wine_fn_all_rules
7201 wine_fn_install_rules
7202 wine_fn_clean_rules
7205 wine_fn_config_lib ()
7207 ac_name=$1
7208 ac_flags=$2
7209 ac_dir=dlls/$ac_name
7210 ac_deps="include"
7212 if test "x$enable_tools" = xno; then :
7214 else
7215 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7217 wine_fn_all_rules Make.rules.in
7218 wine_fn_clean_rules
7220 wine_fn_append_rule \
7221 ".PHONY: $ac_dir/install $ac_dir/uninstall
7222 $ac_dir/install:: $ac_dir
7223 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7224 $ac_dir/uninstall::
7225 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7226 install install-dev:: $ac_dir/install
7227 __uninstall__: $ac_dir/uninstall
7228 __builddeps__: $ac_dir
7229 $ac_dir: $ac_deps"
7232 wine_fn_config_dll ()
7234 ac_name=$1
7235 ac_dir=dlls/$ac_name
7236 ac_enable=$2
7237 ac_flags=$3
7238 ac_implib=${4:-$ac_name}
7239 ac_file=$ac_dir/lib$ac_implib
7240 ac_dll=$ac_name
7241 ac_deps="include"
7242 ac_implibflags=""
7244 if test "x$enable_tools" = xno; then :
7246 else
7247 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7249 case $ac_name in
7250 *16) ac_implibflags=" -m16" ;;
7251 *.*) ;;
7252 *) ac_dll=$ac_dll.dll ;;
7253 esac
7255 ac_clean=
7256 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
7257 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7258 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7259 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
7261 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7262 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
7263 then
7264 wine_fn_depend_rules Make.rules.in
7265 wine_fn_clean_rules $ac_clean
7266 else
7267 wine_fn_disabled_rules $ac_clean
7268 return
7270 else
7271 wine_fn_all_rules Make.rules.in
7272 wine_fn_clean_rules $ac_clean
7273 wine_fn_append_rule \
7274 "$ac_dir: __builddeps__
7275 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
7276 @cd $ac_dir && \$(MAKE) \$@
7277 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
7278 install install-lib:: $ac_dir/install-lib
7279 __uninstall__: $ac_dir/uninstall"
7280 if test -n "$DLLEXT"
7281 then
7282 wine_fn_append_rule \
7283 "$ac_dir/install-lib:: $ac_dir
7284 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
7285 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
7286 $ac_dir/uninstall::
7287 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
7288 else
7289 wine_fn_append_rule \
7290 "$ac_dir/install-lib:: $ac_dir
7291 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
7292 $ac_dir/uninstall::
7293 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
7296 wine_fn_pot_rules
7299 if wine_fn_has_flag staticimplib
7300 then
7301 wine_fn_append_rule \
7302 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
7303 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
7304 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7305 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7306 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
7307 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
7308 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7309 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7310 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7311 $ac_dir/uninstall::
7312 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7313 install install-dev:: $ac_dir/install-dev
7314 __uninstall__: $ac_dir/uninstall"
7316 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
7317 then
7318 wine_fn_append_rule \
7319 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT __builddeps__
7320 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
7321 $ac_dir/uninstall::
7322 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
7325 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7326 then
7327 wine_fn_append_rule \
7328 "__builddeps__: $ac_file.cross.a
7329 $ac_file.cross.a: $ac_dir/Makefile dummy
7330 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
7333 elif wine_fn_has_flag implib
7334 then
7335 wine_fn_append_rule \
7336 "__builddeps__: $ac_file.$IMPLIBEXT
7337 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7338 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7339 $ac_file.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7340 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7341 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7342 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7343 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7344 $ac_dir/uninstall::
7345 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7346 install install-dev:: $ac_dir/install-dev
7347 __uninstall__: $ac_dir/uninstall"
7348 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7349 then
7350 wine_fn_append_rule \
7351 "__builddeps__: $ac_file.cross.a
7352 $ac_file.cross.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7353 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
7356 if test "$ac_name" != "$ac_implib"
7357 then
7358 wine_fn_append_rule \
7359 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
7360 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
7361 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
7362 clean::
7363 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
7364 wine_fn_ignore_file "dlls/lib$ac_implib.$IMPLIBEXT"
7365 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7366 then
7367 wine_fn_append_rule \
7368 "__builddeps__: dlls/lib$ac_implib.cross.a
7369 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
7370 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
7371 clean::
7372 \$(RM) dlls/lib$ac_implib.cross.a"
7373 wine_fn_ignore_file "dlls/lib$ac_implib.cross.a"
7379 wine_fn_config_program ()
7381 ac_name=$1
7382 ac_dir=programs/$ac_name
7383 ac_enable=$2
7384 ac_flags=$3
7385 ac_program=$ac_name
7387 case $ac_name in
7388 *.*) ;;
7389 *) ac_program=$ac_program.exe ;;
7390 esac
7392 ac_clean=
7393 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7394 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7395 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
7396 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
7398 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7399 wine_fn_disabled_rules $ac_clean; return
7402 wine_fn_all_rules Make.rules.in
7403 wine_fn_clean_rules $ac_clean
7404 wine_fn_append_rule "$ac_dir: __builddeps__"
7405 wine_fn_pot_rules
7407 wine_fn_has_flag install || return
7408 wine_fn_append_rule \
7409 ".PHONY: $ac_dir/install $ac_dir/uninstall
7410 install install-lib:: $ac_dir/install
7411 __uninstall__: $ac_dir/uninstall"
7413 if test -n "$DLLEXT"
7414 then
7415 wine_fn_append_rule \
7416 "$ac_dir/install:: $ac_dir
7417 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
7418 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
7419 $ac_dir/uninstall::
7420 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
7422 if test -z "$with_wine64" && wine_fn_has_flag installbin
7423 then
7424 wine_fn_append_rule \
7425 "$ac_dir/install:: __tooldeps__
7426 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
7427 $ac_dir/uninstall::
7428 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
7430 else
7431 wine_fn_append_rule \
7432 "$ac_dir/install:: $ac_dir
7433 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
7434 $ac_dir/uninstall::
7435 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
7438 if test -z "$with_wine64" && wine_fn_has_flag manpage
7439 then
7440 wine_fn_append_rule \
7441 "$ac_dir/install:: $ac_dir
7442 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
7443 $ac_dir/uninstall::
7444 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
7448 wine_fn_config_test ()
7450 ac_dir=$1
7451 ac_name=$2
7452 ac_flags=$3
7454 ac_clean=
7455 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
7456 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
7457 ac_clean="$ac_clean $ac_dir/testlist.c"
7459 if test "x$enable_tests" = xno; then :
7460 wine_fn_disabled_rules $ac_clean; return
7463 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
7464 wine_fn_all_rules Make.rules.in
7465 wine_fn_clean_rules $ac_clean
7467 wine_fn_append_rule \
7468 "$ac_dir: programs/winetest/Makefile __builddeps__
7469 programs/winetest: $ac_dir
7470 check test: $ac_dir/test
7471 .PHONY: $ac_dir/test
7472 $ac_dir/test: dummy
7473 @cd $ac_dir && \$(MAKE) test
7474 testclean::
7475 \$(RM) $ac_dir/*.ok"
7477 if test -n "$CROSSTARGET"
7478 then
7479 wine_fn_append_rule \
7480 "crosstest: $ac_dir/crosstest
7481 .PHONY: $ac_dir/crosstest
7482 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
7483 @cd $ac_dir && \$(MAKE) crosstest"
7487 wine_fn_config_tool ()
7489 ac_dir=$1
7490 ac_flags=$2
7491 if test "x$enable_tools" = xno; then :
7492 return
7495 wine_fn_all_rules
7496 wine_fn_install_rules
7497 wine_fn_clean_rules
7499 wine_fn_append_rule "__tooldeps__: $ac_dir"
7500 wine_fn_append_rule "$ac_dir: libs/port"
7501 case $ac_dir in
7502 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
7503 esac
7506 wine_fn_config_makerules ()
7508 ac_rules=$1
7509 ac_deps=$2
7510 wine_fn_append_rule \
7511 "$ac_rules: $srcdir/$ac_rules.in $ac_deps config.status
7512 @./config.status $ac_rules
7513 distclean::
7514 \$(RM) $ac_rules"
7515 wine_fn_ignore_file $ac_rules
7518 wine_fn_config_symlink ()
7520 ac_linkdir=
7521 if test "x$1" = "x-d"
7522 then
7523 ac_linkdir=$2
7524 shift; shift
7526 ac_links=$@
7527 wine_fn_append_rule \
7528 "$ac_links:
7529 @./config.status \$@
7530 distclean::
7531 \$(RM) $ac_links"
7532 for f in $ac_links; do wine_fn_ignore_file $f; done
7533 test -n "$ac_linkdir" || return
7534 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
7537 wine_binary="wine"
7538 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7539 loader_programs="$wine_binary wine-installed"
7540 libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'`
7542 LOADER_RULES="
7543 install install-lib:: wine-installed
7544 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7546 uninstall::
7547 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7551 case $host_os in
7552 cygwin*|mingw32*)
7553 if test -n "$ac_tool_prefix"; then
7554 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7555 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if ${ac_cv_prog_DLLTOOL+:} false; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$DLLTOOL"; then
7562 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7575 done
7576 done
7577 IFS=$as_save_IFS
7581 DLLTOOL=$ac_cv_prog_DLLTOOL
7582 if test -n "$DLLTOOL"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7584 $as_echo "$DLLTOOL" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7592 if test -z "$ac_cv_prog_DLLTOOL"; then
7593 ac_ct_DLLTOOL=$DLLTOOL
7594 # Extract the first word of "dlltool", so it can be a program name with args.
7595 set dummy dlltool; ac_word=$2
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597 $as_echo_n "checking for $ac_word... " >&6; }
7598 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 if test -n "$ac_ct_DLLTOOL"; then
7602 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7603 else
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7611 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7615 done
7616 done
7617 IFS=$as_save_IFS
7621 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7622 if test -n "$ac_ct_DLLTOOL"; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7624 $as_echo "$ac_ct_DLLTOOL" >&6; }
7625 else
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627 $as_echo "no" >&6; }
7630 if test "x$ac_ct_DLLTOOL" = x; then
7631 DLLTOOL="false"
7632 else
7633 case $cross_compiling:$ac_tool_warned in
7634 yes:)
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7637 ac_tool_warned=yes ;;
7638 esac
7639 DLLTOOL=$ac_ct_DLLTOOL
7641 else
7642 DLLTOOL="$ac_cv_prog_DLLTOOL"
7645 LIBEXT="dll"
7646 DLLEXT=""
7647 IMPLIBEXT="a"
7648 STATIC_IMPLIBEXT="a"
7649 enable_iphlpapi=${enable_iphlpapi:-no}
7650 enable_kernel32=${enable_kernel32:-no}
7651 enable_msvcrt=${enable_msvcrt:-no}
7652 enable_ntdll=${enable_ntdll:-no}
7653 enable_ws2_32=${enable_ws2_32:-no}
7654 enable_loader=${enable_loader:-no}
7655 enable_server=${enable_server:-no}
7656 with_x=${with_x:-no}
7657 with_pthread=${with_pthread:-no}
7659 crtlibs=""
7660 case $host_os in
7661 mingw32*)
7662 crtlibs="-lmsvcrt"
7663 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7665 esac
7667 libwine_targets="libwine.dll libwine.a"
7668 LIBWINE_RULES="
7669 all: libwine.dll libwine.a
7671 libwine.a: \$(srcdir)/wine.def
7672 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7674 libwine.dll: \$(OBJS) \$(srcdir)/wine.def
7675 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7677 install install-lib:: libwine.dll
7678 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7680 install install-dev:: libwine.a
7681 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7683 uninstall::
7684 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7689 darwin*|macosx*)
7690 LIBEXT="dylib"
7691 DLLFLAGS="$DLLFLAGS -fPIC"
7692 LIBWINE_LDFLAGS="-multiply_defined suppress"
7693 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7694 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7695 COREFOUNDATIONLIB="-framework CoreFoundation"
7697 IOKITLIB="-framework IOKit -framework CoreFoundation"
7699 FORCEFEEDBACKLIB="-framework ForceFeedback -framework CoreFoundation"
7701 APPLICATIONSERVICESLIB="-framework ApplicationServices"
7703 CORESERVICESLIB="-framework CoreServices"
7705 APPKITLIB="-framework AppKit"
7707 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7708 case $host_os in
7709 darwin11*) LDEXECFLAGS="-Wl,-macosx_version_min,10.6 $LDEXECFLAGS" ;;
7710 esac
7711 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7712 then
7713 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
7716 if test "$ac_cv_header_Security_Security_h" = "yes"
7717 then
7718 SECURITYLIB="-framework Security -framework CoreFoundation"
7720 ac_save_LIBS="$LIBS"
7721 LIBS="$LIBS $SECURITYLIB"
7722 for ac_func in SSLCopyPeerCertificates
7723 do :
7724 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7725 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7726 cat >>confdefs.h <<_ACEOF
7727 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7728 _ACEOF
7731 done
7733 LIBS="$ac_save_LIBS"
7734 with_gnutls=${with_gnutls:-no}
7736 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7737 then
7738 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7739 then
7740 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7742 else
7743 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7746 ac_save_LIBS="$LIBS"
7747 LIBS="$LIBS $COREAUDIO"
7748 for ac_func in AUGraphAddNode
7749 do :
7750 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7751 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7752 cat >>confdefs.h <<_ACEOF
7753 #define HAVE_AUGRAPHADDNODE 1
7754 _ACEOF
7757 done
7759 LIBS="$ac_save_LIBS"
7761 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7762 then
7763 FRAMEWORK_OPENAL="-framework OpenAL"
7766 cat >>confdefs.h <<_ACEOF
7767 #define HAVE_OPENAL 1
7768 _ACEOF
7770 ac_cv_lib_openal=yes
7772 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7773 then
7774 LIBOPENCL="-framework OpenCL"
7776 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7778 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7779 then
7780 ac_save_LIBS="$LIBS"
7781 LIBS="$LIBS $IOKITLIB"
7782 for ac_func in IOHIDManagerCreate
7783 do :
7784 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7785 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7786 cat >>confdefs.h <<_ACEOF
7787 #define HAVE_IOHIDMANAGERCREATE 1
7788 _ACEOF
7791 done
7793 LIBS="$ac_save_LIBS"
7795 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7796 then
7797 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
7799 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
7800 else
7801 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
7803 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
7804 then
7805 CARBONLIB="-framework Carbon"
7809 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
7810 then
7811 ac_save_LIBS="$LIBS"
7812 LIBS="$LIBS $APPLICATIONSERVICESLIB"
7813 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
7814 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
7815 enable_winemac_drv=${enable_winemac_drv:-yes}
7818 LIBS="$ac_save_LIBS"
7821 if test "x$enable_win16" = "xyes"
7822 then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
7824 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
7825 if test "$cross_compiling" = yes; then :
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
7827 $as_echo "cross-compiling, assuming yes" >&6; }
7828 else
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7831 asm(".text\n"
7832 "bad:\tnop;nop\n"
7833 "good:\tnop;nop\n\t"
7834 ".globl _testfunc\n"
7835 "_testfunc:\tcallw good");
7836 extern void testfunc();
7838 main ()
7840 unsigned short *p = (unsigned short *)testfunc;
7841 return p[0] != 0xe866 || p[1] != 0xfffa
7843 return 0;
7845 _ACEOF
7846 if ac_fn_c_try_run "$LINENO"; then :
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7848 $as_echo "yes" >&6; }
7849 else
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7851 $as_echo "no" >&6; }
7852 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
7854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7855 conftest.$ac_objext conftest.beam conftest.$ac_ext
7860 libwine_targets="libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib"
7861 LIBWINE_RULES="
7862 all: libwine.dylib
7864 libwine.$libwine_version.dylib: \$(OBJS)
7865 \$(CC) -dynamiclib -install_name @rpath/libwine.$libwine_soversion.dylib -Wl,-rpath,@loader_path/ -compatibility_version $libwine_soversion -current_version $libwine_version \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7867 libwine.$libwine_soversion.dylib: libwine.$libwine_version.dylib
7868 \$(RM) \$@ && \$(LN_S) libwine.$libwine_version.dylib \$@
7870 libwine.dylib: libwine.$libwine_soversion.dylib
7871 \$(RM) \$@ && \$(LN_S) libwine.$libwine_soversion.dylib \$@
7873 install install-lib:: libwine.$libwine_version.dylib
7874 \$(INSTALL_PROGRAM) libwine.$libwine_version.dylib \$(DESTDIR)\$(libdir)/libwine.$libwine_version.dylib
7875 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.$libwine_soversion.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.$libwine_soversion.dylib
7877 install install-dev::
7878 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.dylib
7880 uninstall::
7881 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib
7885 as_fn_append LOADER_RULES "
7886 $wine_binary: main.o wine_info.plist
7887 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
7889 wine-installed: main.o wine_info.plist
7890 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
7894 linux-android*)
7895 DLLFLAGS="$DLLFLAGS -fPIC"
7896 DLLPREFIX="lib"
7897 LDEXECFLAGS=""
7898 dlldir="\${libdir}"
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7900 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7901 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 ac_wine_try_cflags_saved=$CFLAGS
7905 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908 int main(int argc, char **argv) { return 0; }
7909 _ACEOF
7910 if ac_fn_c_try_link "$LINENO"; then :
7911 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7912 else
7913 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7915 rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917 CFLAGS=$ac_wine_try_cflags_saved
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7920 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7921 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7922 LDEXECFLAGS="-Wl,--export-dynamic"
7924 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7926 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7927 if eval \${$as_ac_var+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 ac_wine_try_cflags_saved=$CFLAGS
7931 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7934 int main(int argc, char **argv) { return 0; }
7935 _ACEOF
7936 if ac_fn_c_try_link "$LINENO"; then :
7937 eval "$as_ac_var=yes"
7938 else
7939 eval "$as_ac_var=no"
7941 rm -f core conftest.err conftest.$ac_objext \
7942 conftest$ac_exeext conftest.$ac_ext
7943 CFLAGS=$ac_wine_try_cflags_saved
7945 eval ac_res=\$$as_ac_var
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7947 $as_echo "$ac_res" >&6; }
7948 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7949 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7950 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7951 else
7952 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7954 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7955 if eval \${$as_ac_var+:} false; then :
7956 $as_echo_n "(cached) " >&6
7957 else
7958 ac_wine_try_cflags_saved=$CFLAGS
7959 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7962 int main(int argc, char **argv) { return 0; }
7963 _ACEOF
7964 if ac_fn_c_try_link "$LINENO"; then :
7965 eval "$as_ac_var=yes"
7966 else
7967 eval "$as_ac_var=no"
7969 rm -f core conftest.err conftest.$ac_objext \
7970 conftest$ac_exeext conftest.$ac_ext
7971 CFLAGS=$ac_wine_try_cflags_saved
7973 eval ac_res=\$$as_ac_var
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7975 $as_echo "$ac_res" >&6; }
7976 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7977 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7978 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7983 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7984 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7985 $as_echo_n "(cached) " >&6
7986 else
7987 ac_wine_try_cflags_saved=$CFLAGS
7988 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991 int main(int argc, char **argv) { return 0; }
7992 _ACEOF
7993 if ac_fn_c_try_link "$LINENO"; then :
7994 ac_cv_cflags__Wl___enable_new_dtags=yes
7995 else
7996 ac_cv_cflags__Wl___enable_new_dtags=no
7998 rm -f core conftest.err conftest.$ac_objext \
7999 conftest$ac_exeext conftest.$ac_ext
8000 CFLAGS=$ac_wine_try_cflags_saved
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8003 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8004 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
8005 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8008 case $host_cpu in
8009 *i[3456789]86* | x86_64)
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8011 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8012 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8013 $as_echo_n "(cached) " >&6
8014 else
8015 ac_wine_try_cflags_saved=$CFLAGS
8016 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8019 int main(int argc, char **argv) { return 0; }
8020 _ACEOF
8021 if ac_fn_c_try_link "$LINENO"; then :
8022 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8023 else
8024 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8026 rm -f core conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8028 CFLAGS=$ac_wine_try_cflags_saved
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8031 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8032 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
8033 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
8036 esac
8038 libwine_targets="libwine.so"
8039 LIBWINE_RULES="
8040 all: libwine.so
8042 libwine.so: \$(OBJS)
8043 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8045 install install-lib:: libwine.so
8046 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
8048 uninstall::
8049 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
8053 as_fn_append LOADER_RULES "
8054 $wine_binary: main.o
8055 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8057 wine-installed: main.o
8058 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8063 DLLFLAGS="$DLLFLAGS -fPIC"
8064 LDEXECFLAGS=""
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
8066 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
8067 if ${ac_cv_c_dll_gnuelf+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 ac_wine_try_cflags_saved=$CFLAGS
8071 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8074 void myfunc() {}
8075 _ACEOF
8076 if ac_fn_c_try_link "$LINENO"; then :
8077 ac_cv_c_dll_gnuelf="yes"
8078 else
8079 ac_cv_c_dll_gnuelf="no"
8081 rm -f core conftest.err conftest.$ac_objext \
8082 conftest$ac_exeext conftest.$ac_ext
8083 CFLAGS=$ac_wine_try_cflags_saved
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
8086 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
8087 if test "$ac_cv_c_dll_gnuelf" = "yes"
8088 then
8089 LDSHARED="\$(CC) -shared"
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8091 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
8092 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 ac_wine_try_cflags_saved=$CFLAGS
8096 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8099 int main(int argc, char **argv) { return 0; }
8100 _ACEOF
8101 if ac_fn_c_try_link "$LINENO"; then :
8102 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8103 else
8104 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8106 rm -f core conftest.err conftest.$ac_objext \
8107 conftest$ac_exeext conftest.$ac_ext
8108 CFLAGS=$ac_wine_try_cflags_saved
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8111 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8112 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
8113 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.$libwine_soversion"
8114 else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8116 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
8117 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
8118 $as_echo_n "(cached) " >&6
8119 else
8120 ac_wine_try_cflags_saved=$CFLAGS
8121 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123 /* end confdefs.h. */
8124 int main(int argc, char **argv) { return 0; }
8125 _ACEOF
8126 if ac_fn_c_try_link "$LINENO"; then :
8127 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8128 else
8129 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8131 rm -f core conftest.err conftest.$ac_objext \
8132 conftest$ac_exeext conftest.$ac_ext
8133 CFLAGS=$ac_wine_try_cflags_saved
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8136 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8137 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
8138 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.$libwine_soversion"
8142 echo '{ global: *; };' >conftest.map
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8144 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
8145 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 ac_wine_try_cflags_saved=$CFLAGS
8149 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8152 int main(int argc, char **argv) { return 0; }
8153 _ACEOF
8154 if ac_fn_c_try_link "$LINENO"; then :
8155 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8156 else
8157 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8159 rm -f core conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161 CFLAGS=$ac_wine_try_cflags_saved
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8164 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8165 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
8166 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
8168 rm -f conftest.map
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8171 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8172 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 ac_wine_try_cflags_saved=$CFLAGS
8176 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 int main(int argc, char **argv) { return 0; }
8180 _ACEOF
8181 if ac_fn_c_try_link "$LINENO"; then :
8182 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8183 else
8184 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8186 rm -f core conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
8188 CFLAGS=$ac_wine_try_cflags_saved
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8191 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8192 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
8193 LDEXECFLAGS="-Wl,--export-dynamic"
8196 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8198 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8199 if eval \${$as_ac_var+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 ac_wine_try_cflags_saved=$CFLAGS
8203 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8206 int main(int argc, char **argv) { return 0; }
8207 _ACEOF
8208 if ac_fn_c_try_link "$LINENO"; then :
8209 eval "$as_ac_var=yes"
8210 else
8211 eval "$as_ac_var=no"
8213 rm -f core conftest.err conftest.$ac_objext \
8214 conftest$ac_exeext conftest.$ac_ext
8215 CFLAGS=$ac_wine_try_cflags_saved
8217 eval ac_res=\$$as_ac_var
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8219 $as_echo "$ac_res" >&6; }
8220 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8221 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8222 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8223 else
8224 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8226 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8227 if eval \${$as_ac_var+:} false; then :
8228 $as_echo_n "(cached) " >&6
8229 else
8230 ac_wine_try_cflags_saved=$CFLAGS
8231 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8234 int main(int argc, char **argv) { return 0; }
8235 _ACEOF
8236 if ac_fn_c_try_link "$LINENO"; then :
8237 eval "$as_ac_var=yes"
8238 else
8239 eval "$as_ac_var=no"
8241 rm -f core conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8243 CFLAGS=$ac_wine_try_cflags_saved
8245 eval ac_res=\$$as_ac_var
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8247 $as_echo "$ac_res" >&6; }
8248 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8249 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8250 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8255 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8256 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8257 $as_echo_n "(cached) " >&6
8258 else
8259 ac_wine_try_cflags_saved=$CFLAGS
8260 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263 int main(int argc, char **argv) { return 0; }
8264 _ACEOF
8265 if ac_fn_c_try_link "$LINENO"; then :
8266 ac_cv_cflags__Wl___enable_new_dtags=yes
8267 else
8268 ac_cv_cflags__Wl___enable_new_dtags=no
8270 rm -f core conftest.err conftest.$ac_objext \
8271 conftest$ac_exeext conftest.$ac_ext
8272 CFLAGS=$ac_wine_try_cflags_saved
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8275 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8276 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
8277 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8280 case $host_cpu in
8281 *i[3456789]86* | x86_64)
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8283 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8284 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8285 $as_echo_n "(cached) " >&6
8286 else
8287 ac_wine_try_cflags_saved=$CFLAGS
8288 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290 /* end confdefs.h. */
8291 int main(int argc, char **argv) { return 0; }
8292 _ACEOF
8293 if ac_fn_c_try_link "$LINENO"; then :
8294 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8295 else
8296 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8298 rm -f core conftest.err conftest.$ac_objext \
8299 conftest$ac_exeext conftest.$ac_ext
8300 CFLAGS=$ac_wine_try_cflags_saved
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8303 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8304 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
8305 case $host_os in
8306 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
8307 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
8308 esac
8311 # Extract the first word of "prelink", so it can be a program name with args.
8312 set dummy prelink; ac_word=$2
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 $as_echo_n "checking for $ac_word... " >&6; }
8315 if ${ac_cv_path_PRELINK+:} false; then :
8316 $as_echo_n "(cached) " >&6
8317 else
8318 case $PRELINK in
8319 [\\/]* | ?:[\\/]*)
8320 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
8323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324 for as_dir in /sbin /usr/sbin $PATH
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8330 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 break 2
8334 done
8335 done
8336 IFS=$as_save_IFS
8338 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
8340 esac
8342 PRELINK=$ac_cv_path_PRELINK
8343 if test -n "$PRELINK"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
8345 $as_echo "$PRELINK" >&6; }
8346 else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8352 if test "x$PRELINK" = xfalse
8353 then
8354 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
8357 esac
8359 else
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
8361 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
8362 if ${ac_cv_c_dll_unixware+:} false; then :
8363 $as_echo_n "(cached) " >&6
8364 else
8365 ac_wine_try_cflags_saved=$CFLAGS
8366 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369 void myfunc() {}
8370 _ACEOF
8371 if ac_fn_c_try_link "$LINENO"; then :
8372 ac_cv_c_dll_unixware="yes"
8373 else
8374 ac_cv_c_dll_unixware="no"
8376 rm -f core conftest.err conftest.$ac_objext \
8377 conftest$ac_exeext conftest.$ac_ext
8378 CFLAGS=$ac_wine_try_cflags_saved
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
8381 $as_echo "$ac_cv_c_dll_unixware" >&6; }
8382 if test "$ac_cv_c_dll_unixware" = "yes"
8383 then
8384 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.$libwine_soversion"
8387 libwine_targets="libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version"
8388 LIBWINE_RULES="
8389 all: libwine.so
8391 libwine.so.$libwine_version: \$(OBJS) \$(srcdir)/wine.map
8392 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8394 libwine.so.$libwine_soversion: libwine.so.$libwine_version
8395 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_version \$@
8397 libwine.so: libwine.so.$libwine_soversion
8398 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_soversion \$@
8400 install install-lib:: libwine.so.$libwine_version
8401 \$(INSTALL_PROGRAM) libwine.so.$libwine_version \$(DESTDIR)\$(libdir)/libwine.so.$libwine_version
8402 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.$libwine_soversion && \$(LN_S) libwine.so.$libwine_version libwine.so.$libwine_soversion
8404 install install-dev::
8405 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.$libwine_version libwine.so
8407 uninstall::
8408 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version
8412 as_fn_append LOADER_RULES "
8413 $wine_binary: main.o
8414 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8416 wine-installed: main.o
8417 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8420 esac
8422 as_fn_append LIBWINE_RULES "
8423 EXTRA_TARGETS = $libwine_targets
8426 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8427 enable_winemac_drv=${enable_winemac_drv:-no}
8429 CROSSTARGET=""
8431 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8432 then
8433 case "$host_cpu" in
8434 i[3456789]86*)
8435 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
8436 mingw32-gcc" ;;
8437 x86_64)
8438 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 " ;;
8440 ac_prefix_list="" ;;
8441 esac
8442 for ac_prog in $ac_prefix_list
8444 # Extract the first word of "$ac_prog", so it can be a program name with args.
8445 set dummy $ac_prog; ac_word=$2
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447 $as_echo_n "checking for $ac_word... " >&6; }
8448 if ${ac_cv_prog_CROSSCC+:} false; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 if test -n "$CROSSCC"; then
8452 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8453 else
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 for as_dir in $PATH
8457 IFS=$as_save_IFS
8458 test -z "$as_dir" && as_dir=.
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8461 ac_cv_prog_CROSSCC="$ac_prog"
8462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8463 break 2
8465 done
8466 done
8467 IFS=$as_save_IFS
8471 CROSSCC=$ac_cv_prog_CROSSCC
8472 if test -n "$CROSSCC"; then
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8474 $as_echo "$CROSSCC" >&6; }
8475 else
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8481 test -n "$CROSSCC" && break
8482 done
8483 test -n "$CROSSCC" || CROSSCC="false"
8485 if test "$CROSSCC" != "false"
8486 then
8487 ac_save_CC="$CC"
8488 CC="$CROSSCC"
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8490 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8495 main ()
8499 return 0;
8501 _ACEOF
8502 if ac_fn_c_try_compile "$LINENO"; then :
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8504 $as_echo "yes" >&6; }
8505 set x $CROSSCC
8506 shift
8507 while test $# -ge 1
8509 case "$1" in
8510 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8511 esac
8512 shift
8513 done
8514 else
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519 CC="$ac_save_CC"
8524 if test "$ac_cv_header_pthread_h" = "yes"
8525 then
8526 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8527 if test "x$ac_cv_func_pthread_create" = xyes; then :
8529 else
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8531 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8532 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 ac_check_lib_save_LIBS=$LIBS
8536 LIBS="-lpthread $LIBS"
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8540 /* Override any GCC internal prototype to avoid an error.
8541 Use char because int might match the return type of a GCC
8542 builtin and then its argument prototype would still apply. */
8543 #ifdef __cplusplus
8544 extern "C"
8545 #endif
8546 char pthread_create ();
8548 main ()
8550 return pthread_create ();
8552 return 0;
8554 _ACEOF
8555 if ac_fn_c_try_link "$LINENO"; then :
8556 ac_cv_lib_pthread_pthread_create=yes
8557 else
8558 ac_cv_lib_pthread_pthread_create=no
8560 rm -f core conftest.err conftest.$ac_objext \
8561 conftest$ac_exeext conftest.$ac_ext
8562 LIBS=$ac_check_lib_save_LIBS
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8565 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8566 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8567 LIBPTHREAD="-lpthread"
8574 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
8575 case "x$with_pthread" in
8576 xno) ;;
8577 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8578 Wine cannot support threads without libpthread.
8579 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8580 esac
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8585 $as_echo_n "checking for X... " >&6; }
8588 # Check whether --with-x was given.
8589 if test "${with_x+set}" = set; then :
8590 withval=$with_x;
8593 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8594 if test "x$with_x" = xno; then
8595 # The user explicitly disabled X.
8596 have_x=disabled
8597 else
8598 case $x_includes,$x_libraries in #(
8599 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8600 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 # One or both of the vars are not set, and there is no cached value.
8604 ac_x_includes=no ac_x_libraries=no
8605 rm -f -r conftest.dir
8606 if mkdir conftest.dir; then
8607 cd conftest.dir
8608 cat >Imakefile <<'_ACEOF'
8609 incroot:
8610 @echo incroot='${INCROOT}'
8611 usrlibdir:
8612 @echo usrlibdir='${USRLIBDIR}'
8613 libdir:
8614 @echo libdir='${LIBDIR}'
8615 _ACEOF
8616 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8617 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8618 for ac_var in incroot usrlibdir libdir; do
8619 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8620 done
8621 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8622 for ac_extension in a so sl dylib la dll; do
8623 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8624 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8625 ac_im_usrlibdir=$ac_im_libdir; break
8627 done
8628 # Screen out bogus values from the imake configuration. They are
8629 # bogus both because they are the default anyway, and because
8630 # using them would break gcc on systems where it needs fixed includes.
8631 case $ac_im_incroot in
8632 /usr/include) ac_x_includes= ;;
8633 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8634 esac
8635 case $ac_im_usrlibdir in
8636 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8637 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8638 esac
8640 cd ..
8641 rm -f -r conftest.dir
8644 # Standard set of common directories for X headers.
8645 # Check X11 before X11Rn because it is often a symlink to the current release.
8646 ac_x_header_dirs='
8647 /usr/X11/include
8648 /usr/X11R7/include
8649 /usr/X11R6/include
8650 /usr/X11R5/include
8651 /usr/X11R4/include
8653 /usr/include/X11
8654 /usr/include/X11R7
8655 /usr/include/X11R6
8656 /usr/include/X11R5
8657 /usr/include/X11R4
8659 /usr/local/X11/include
8660 /usr/local/X11R7/include
8661 /usr/local/X11R6/include
8662 /usr/local/X11R5/include
8663 /usr/local/X11R4/include
8665 /usr/local/include/X11
8666 /usr/local/include/X11R7
8667 /usr/local/include/X11R6
8668 /usr/local/include/X11R5
8669 /usr/local/include/X11R4
8671 /usr/X386/include
8672 /usr/x386/include
8673 /usr/XFree86/include/X11
8675 /usr/include
8676 /usr/local/include
8677 /usr/unsupported/include
8678 /usr/athena/include
8679 /usr/local/x11r5/include
8680 /usr/lpp/Xamples/include
8682 /usr/openwin/include
8683 /usr/openwin/share/include'
8685 if test "$ac_x_includes" = no; then
8686 # Guess where to find include files, by looking for Xlib.h.
8687 # First, try using that file with no special directory specified.
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 #include <X11/Xlib.h>
8691 _ACEOF
8692 if ac_fn_c_try_cpp "$LINENO"; then :
8693 # We can compile using X headers with no special include directory.
8694 ac_x_includes=
8695 else
8696 for ac_dir in $ac_x_header_dirs; do
8697 if test -r "$ac_dir/X11/Xlib.h"; then
8698 ac_x_includes=$ac_dir
8699 break
8701 done
8703 rm -f conftest.err conftest.i conftest.$ac_ext
8704 fi # $ac_x_includes = no
8706 if test "$ac_x_libraries" = no; then
8707 # Check for the libraries.
8708 # See if we find them without any special options.
8709 # Don't add to $LIBS permanently.
8710 ac_save_LIBS=$LIBS
8711 LIBS="-lX11 $LIBS"
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #include <X11/Xlib.h>
8716 main ()
8718 XrmInitialize ()
8720 return 0;
8722 _ACEOF
8723 if ac_fn_c_try_link "$LINENO"; then :
8724 LIBS=$ac_save_LIBS
8725 # We can link X programs with no special library path.
8726 ac_x_libraries=
8727 else
8728 LIBS=$ac_save_LIBS
8729 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8731 # Don't even attempt the hair of trying to link an X program!
8732 for ac_extension in a so sl dylib la dll; do
8733 if test -r "$ac_dir/libX11.$ac_extension"; then
8734 ac_x_libraries=$ac_dir
8735 break 2
8737 done
8738 done
8740 rm -f core conftest.err conftest.$ac_objext \
8741 conftest$ac_exeext conftest.$ac_ext
8742 fi # $ac_x_libraries = no
8744 case $ac_x_includes,$ac_x_libraries in #(
8745 no,* | *,no | *\'*)
8746 # Didn't find X, or a directory has "'" in its name.
8747 ac_cv_have_x="have_x=no";; #(
8749 # Record where we found X for the cache.
8750 ac_cv_have_x="have_x=yes\
8751 ac_x_includes='$ac_x_includes'\
8752 ac_x_libraries='$ac_x_libraries'"
8753 esac
8755 ;; #(
8756 *) have_x=yes;;
8757 esac
8758 eval "$ac_cv_have_x"
8759 fi # $with_x != no
8761 if test "$have_x" != yes; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8763 $as_echo "$have_x" >&6; }
8764 no_x=yes
8765 else
8766 # If each of the values was on the command line, it overrides each guess.
8767 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8768 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8769 # Update the cache value to reflect the command line values.
8770 ac_cv_have_x="have_x=yes\
8771 ac_x_includes='$x_includes'\
8772 ac_x_libraries='$x_libraries'"
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8774 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8777 if test "$no_x" = yes; then
8778 # Not all programs may use this symbol, but it does not hurt to define it.
8780 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8782 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8783 else
8784 if test -n "$x_includes"; then
8785 X_CFLAGS="$X_CFLAGS -I$x_includes"
8788 # It would also be nice to do this for all -L options, not just this one.
8789 if test -n "$x_libraries"; then
8790 X_LIBS="$X_LIBS -L$x_libraries"
8791 # For Solaris; some versions of Sun CC require a space after -R and
8792 # others require no space. Words are not sufficient . . . .
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8794 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
8795 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8796 ac_xsave_c_werror_flag=$ac_c_werror_flag
8797 ac_c_werror_flag=yes
8798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h. */
8802 main ()
8806 return 0;
8808 _ACEOF
8809 if ac_fn_c_try_link "$LINENO"; then :
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8812 X_LIBS="$X_LIBS -R$x_libraries"
8813 else
8814 LIBS="$ac_xsave_LIBS -R $x_libraries"
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8819 main ()
8823 return 0;
8825 _ACEOF
8826 if ac_fn_c_try_link "$LINENO"; then :
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8828 $as_echo "yes" >&6; }
8829 X_LIBS="$X_LIBS -R $x_libraries"
8830 else
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8832 $as_echo "neither works" >&6; }
8834 rm -f core conftest.err conftest.$ac_objext \
8835 conftest$ac_exeext conftest.$ac_ext
8837 rm -f core conftest.err conftest.$ac_objext \
8838 conftest$ac_exeext conftest.$ac_ext
8839 ac_c_werror_flag=$ac_xsave_c_werror_flag
8840 LIBS=$ac_xsave_LIBS
8843 # Check for system-dependent libraries X programs must link with.
8844 # Do this before checking for the system-independent R6 libraries
8845 # (-lICE), since we may need -lsocket or whatever for X linking.
8847 if test "$ISC" = yes; then
8848 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8849 else
8850 # Martyn Johnson says this is needed for Ultrix, if the X
8851 # libraries were built with DECnet support. And Karl Berry says
8852 # the Alpha needs dnet_stub (dnet does not exist).
8853 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855 /* end confdefs.h. */
8857 /* Override any GCC internal prototype to avoid an error.
8858 Use char because int might match the return type of a GCC
8859 builtin and then its argument prototype would still apply. */
8860 #ifdef __cplusplus
8861 extern "C"
8862 #endif
8863 char XOpenDisplay ();
8865 main ()
8867 return XOpenDisplay ();
8869 return 0;
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"; then :
8874 else
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8876 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8877 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 ac_check_lib_save_LIBS=$LIBS
8881 LIBS="-ldnet $LIBS"
8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883 /* end confdefs.h. */
8885 /* Override any GCC internal prototype to avoid an error.
8886 Use char because int might match the return type of a GCC
8887 builtin and then its argument prototype would still apply. */
8888 #ifdef __cplusplus
8889 extern "C"
8890 #endif
8891 char dnet_ntoa ();
8893 main ()
8895 return dnet_ntoa ();
8897 return 0;
8899 _ACEOF
8900 if ac_fn_c_try_link "$LINENO"; then :
8901 ac_cv_lib_dnet_dnet_ntoa=yes
8902 else
8903 ac_cv_lib_dnet_dnet_ntoa=no
8905 rm -f core conftest.err conftest.$ac_objext \
8906 conftest$ac_exeext conftest.$ac_ext
8907 LIBS=$ac_check_lib_save_LIBS
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8910 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8911 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8912 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8915 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8917 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8918 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 ac_check_lib_save_LIBS=$LIBS
8922 LIBS="-ldnet_stub $LIBS"
8923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8926 /* Override any GCC internal prototype to avoid an error.
8927 Use char because int might match the return type of a GCC
8928 builtin and then its argument prototype would still apply. */
8929 #ifdef __cplusplus
8930 extern "C"
8931 #endif
8932 char dnet_ntoa ();
8934 main ()
8936 return dnet_ntoa ();
8938 return 0;
8940 _ACEOF
8941 if ac_fn_c_try_link "$LINENO"; then :
8942 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8943 else
8944 ac_cv_lib_dnet_stub_dnet_ntoa=no
8946 rm -f core conftest.err conftest.$ac_objext \
8947 conftest$ac_exeext conftest.$ac_ext
8948 LIBS=$ac_check_lib_save_LIBS
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8951 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8952 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8953 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8958 rm -f core conftest.err conftest.$ac_objext \
8959 conftest$ac_exeext conftest.$ac_ext
8960 LIBS="$ac_xsave_LIBS"
8962 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8963 # to get the SysV transport functions.
8964 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8965 # needs -lnsl.
8966 # The nsl library prevents programs from opening the X display
8967 # on Irix 5.2, according to T.E. Dickey.
8968 # The functions gethostbyname, getservbyname, and inet_addr are
8969 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8970 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8971 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8975 if test $ac_cv_func_gethostbyname = no; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8977 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8978 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 ac_check_lib_save_LIBS=$LIBS
8982 LIBS="-lnsl $LIBS"
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8986 /* Override any GCC internal prototype to avoid an error.
8987 Use char because int might match the return type of a GCC
8988 builtin and then its argument prototype would still apply. */
8989 #ifdef __cplusplus
8990 extern "C"
8991 #endif
8992 char gethostbyname ();
8994 main ()
8996 return gethostbyname ();
8998 return 0;
9000 _ACEOF
9001 if ac_fn_c_try_link "$LINENO"; then :
9002 ac_cv_lib_nsl_gethostbyname=yes
9003 else
9004 ac_cv_lib_nsl_gethostbyname=no
9006 rm -f core conftest.err conftest.$ac_objext \
9007 conftest$ac_exeext conftest.$ac_ext
9008 LIBS=$ac_check_lib_save_LIBS
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9011 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9012 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9016 if test $ac_cv_lib_nsl_gethostbyname = no; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
9018 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
9019 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 ac_check_lib_save_LIBS=$LIBS
9023 LIBS="-lbsd $LIBS"
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9027 /* Override any GCC internal prototype to avoid an error.
9028 Use char because int might match the return type of a GCC
9029 builtin and then its argument prototype would still apply. */
9030 #ifdef __cplusplus
9031 extern "C"
9032 #endif
9033 char gethostbyname ();
9035 main ()
9037 return gethostbyname ();
9039 return 0;
9041 _ACEOF
9042 if ac_fn_c_try_link "$LINENO"; then :
9043 ac_cv_lib_bsd_gethostbyname=yes
9044 else
9045 ac_cv_lib_bsd_gethostbyname=no
9047 rm -f core conftest.err conftest.$ac_objext \
9048 conftest$ac_exeext conftest.$ac_ext
9049 LIBS=$ac_check_lib_save_LIBS
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
9052 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9053 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
9054 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9060 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9061 # socket/setsockopt and other routines are undefined under SCO ODT
9062 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9063 # on later versions), says Simon Leinen: it contains gethostby*
9064 # variants that don't use the name server (or something). -lsocket
9065 # must be given before -lnsl if both are needed. We assume that
9066 # if connect needs -lnsl, so does gethostbyname.
9067 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9068 if test "x$ac_cv_func_connect" = xyes; then :
9072 if test $ac_cv_func_connect = no; then
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9074 $as_echo_n "checking for connect in -lsocket... " >&6; }
9075 if ${ac_cv_lib_socket_connect+:} false; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 ac_check_lib_save_LIBS=$LIBS
9079 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9083 /* Override any GCC internal prototype to avoid an error.
9084 Use char because int might match the return type of a GCC
9085 builtin and then its argument prototype would still apply. */
9086 #ifdef __cplusplus
9087 extern "C"
9088 #endif
9089 char connect ();
9091 main ()
9093 return connect ();
9095 return 0;
9097 _ACEOF
9098 if ac_fn_c_try_link "$LINENO"; then :
9099 ac_cv_lib_socket_connect=yes
9100 else
9101 ac_cv_lib_socket_connect=no
9103 rm -f core conftest.err conftest.$ac_objext \
9104 conftest$ac_exeext conftest.$ac_ext
9105 LIBS=$ac_check_lib_save_LIBS
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9108 $as_echo "$ac_cv_lib_socket_connect" >&6; }
9109 if test "x$ac_cv_lib_socket_connect" = xyes; then :
9110 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9115 # Guillermo Gomez says -lposix is necessary on A/UX.
9116 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9117 if test "x$ac_cv_func_remove" = xyes; then :
9121 if test $ac_cv_func_remove = no; then
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9123 $as_echo_n "checking for remove in -lposix... " >&6; }
9124 if ${ac_cv_lib_posix_remove+:} false; then :
9125 $as_echo_n "(cached) " >&6
9126 else
9127 ac_check_lib_save_LIBS=$LIBS
9128 LIBS="-lposix $LIBS"
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9132 /* Override any GCC internal prototype to avoid an error.
9133 Use char because int might match the return type of a GCC
9134 builtin and then its argument prototype would still apply. */
9135 #ifdef __cplusplus
9136 extern "C"
9137 #endif
9138 char remove ();
9140 main ()
9142 return remove ();
9144 return 0;
9146 _ACEOF
9147 if ac_fn_c_try_link "$LINENO"; then :
9148 ac_cv_lib_posix_remove=yes
9149 else
9150 ac_cv_lib_posix_remove=no
9152 rm -f core conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext conftest.$ac_ext
9154 LIBS=$ac_check_lib_save_LIBS
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9157 $as_echo "$ac_cv_lib_posix_remove" >&6; }
9158 if test "x$ac_cv_lib_posix_remove" = xyes; then :
9159 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9164 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9165 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9166 if test "x$ac_cv_func_shmat" = xyes; then :
9170 if test $ac_cv_func_shmat = no; then
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9172 $as_echo_n "checking for shmat in -lipc... " >&6; }
9173 if ${ac_cv_lib_ipc_shmat+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 ac_check_lib_save_LIBS=$LIBS
9177 LIBS="-lipc $LIBS"
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9181 /* Override any GCC internal prototype to avoid an error.
9182 Use char because int might match the return type of a GCC
9183 builtin and then its argument prototype would still apply. */
9184 #ifdef __cplusplus
9185 extern "C"
9186 #endif
9187 char shmat ();
9189 main ()
9191 return shmat ();
9193 return 0;
9195 _ACEOF
9196 if ac_fn_c_try_link "$LINENO"; then :
9197 ac_cv_lib_ipc_shmat=yes
9198 else
9199 ac_cv_lib_ipc_shmat=no
9201 rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203 LIBS=$ac_check_lib_save_LIBS
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9206 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9207 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9208 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9214 # Check for libraries that X11R6 Xt/Xaw programs need.
9215 ac_save_LDFLAGS=$LDFLAGS
9216 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9217 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9218 # check for ICE first), but we must link in the order -lSM -lICE or
9219 # we get undefined symbols. So assume we have SM if we have ICE.
9220 # These have to be linked with before -lX11, unlike the other
9221 # libraries we check for below, so use a different variable.
9222 # John Interrante, Karl Berry
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9224 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9225 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9226 $as_echo_n "(cached) " >&6
9227 else
9228 ac_check_lib_save_LIBS=$LIBS
9229 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9233 /* Override any GCC internal prototype to avoid an error.
9234 Use char because int might match the return type of a GCC
9235 builtin and then its argument prototype would still apply. */
9236 #ifdef __cplusplus
9237 extern "C"
9238 #endif
9239 char IceConnectionNumber ();
9241 main ()
9243 return IceConnectionNumber ();
9245 return 0;
9247 _ACEOF
9248 if ac_fn_c_try_link "$LINENO"; then :
9249 ac_cv_lib_ICE_IceConnectionNumber=yes
9250 else
9251 ac_cv_lib_ICE_IceConnectionNumber=no
9253 rm -f core conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
9255 LIBS=$ac_check_lib_save_LIBS
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9258 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9259 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9260 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9263 LDFLAGS=$ac_save_LDFLAGS
9268 if test "$have_x" = "yes"
9269 then
9270 XLIB="-lX11"
9271 ac_save_CPPFLAGS="$CPPFLAGS"
9272 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
9275 $as_echo_n "checking for -lX11... " >&6; }
9276 if ${ac_cv_lib_soname_X11+:} false; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279 ac_check_soname_save_LIBS=$LIBS
9280 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9284 /* Override any GCC internal prototype to avoid an error.
9285 Use char because int might match the return type of a GCC
9286 builtin and then its argument prototype would still apply. */
9287 #ifdef __cplusplus
9288 extern "C"
9289 #endif
9290 char XCreateWindow ();
9292 main ()
9294 return XCreateWindow ();
9296 return 0;
9298 _ACEOF
9299 if ac_fn_c_try_link "$LINENO"; then :
9300 case "$LIBEXT" in
9301 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9302 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'` ;;
9303 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9304 if test "x$ac_cv_lib_soname_X11" = x; then :
9305 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9306 fi ;;
9307 esac
9309 rm -f core conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9311 LIBS=$ac_check_soname_save_LIBS
9313 if test "x$ac_cv_lib_soname_X11" = "x"; then :
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9315 $as_echo "not found" >&6; }
9317 else
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
9319 $as_echo "$ac_cv_lib_soname_X11" >&6; }
9321 cat >>confdefs.h <<_ACEOF
9322 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9323 _ACEOF
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
9328 $as_echo_n "checking for -lXext... " >&6; }
9329 if ${ac_cv_lib_soname_Xext+:} false; then :
9330 $as_echo_n "(cached) " >&6
9331 else
9332 ac_check_soname_save_LIBS=$LIBS
9333 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9337 /* Override any GCC internal prototype to avoid an error.
9338 Use char because int might match the return type of a GCC
9339 builtin and then its argument prototype would still apply. */
9340 #ifdef __cplusplus
9341 extern "C"
9342 #endif
9343 char XextCreateExtension ();
9345 main ()
9347 return XextCreateExtension ();
9349 return 0;
9351 _ACEOF
9352 if ac_fn_c_try_link "$LINENO"; then :
9353 case "$LIBEXT" in
9354 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9355 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'` ;;
9356 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9357 if test "x$ac_cv_lib_soname_Xext" = x; then :
9358 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9359 fi ;;
9360 esac
9362 rm -f core conftest.err conftest.$ac_objext \
9363 conftest$ac_exeext conftest.$ac_ext
9364 LIBS=$ac_check_soname_save_LIBS
9366 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9368 $as_echo "not found" >&6; }
9370 else
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
9372 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
9374 cat >>confdefs.h <<_ACEOF
9375 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9376 _ACEOF
9378 XLIB="-lXext $XLIB"
9381 for ac_header in X11/Xlib.h \
9382 X11/XKBlib.h \
9383 X11/Xutil.h \
9384 X11/Xcursor/Xcursor.h \
9385 X11/extensions/shape.h \
9386 X11/extensions/XInput.h \
9387 X11/extensions/XInput2.h \
9388 X11/extensions/XShm.h \
9389 X11/extensions/Xcomposite.h \
9390 X11/extensions/Xinerama.h \
9391 X11/extensions/Xrandr.h \
9392 X11/extensions/Xrender.h \
9393 X11/extensions/xf86vmode.h \
9394 X11/extensions/xf86vmproto.h
9395 do :
9396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9397 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9398 # include <X11/Xlib.h>
9399 #endif
9400 #ifdef HAVE_X11_XUTIL_H
9401 # include <X11/Xutil.h>
9402 #endif
9404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9405 cat >>confdefs.h <<_ACEOF
9406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9407 _ACEOF
9411 done
9414 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9415 then
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9417 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9418 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 ac_check_lib_save_LIBS=$LIBS
9422 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9426 /* Override any GCC internal prototype to avoid an error.
9427 Use char because int might match the return type of a GCC
9428 builtin and then its argument prototype would still apply. */
9429 #ifdef __cplusplus
9430 extern "C"
9431 #endif
9432 char XkbQueryExtension ();
9434 main ()
9436 return XkbQueryExtension ();
9438 return 0;
9440 _ACEOF
9441 if ac_fn_c_try_link "$LINENO"; then :
9442 ac_cv_lib_X11_XkbQueryExtension=yes
9443 else
9444 ac_cv_lib_X11_XkbQueryExtension=no
9446 rm -f core conftest.err conftest.$ac_objext \
9447 conftest$ac_exeext conftest.$ac_ext
9448 LIBS=$ac_check_lib_save_LIBS
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9451 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9452 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9454 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9460 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9461 then
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9463 $as_echo_n "checking for -lXcursor... " >&6; }
9464 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 ac_check_soname_save_LIBS=$LIBS
9468 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9472 /* Override any GCC internal prototype to avoid an error.
9473 Use char because int might match the return type of a GCC
9474 builtin and then its argument prototype would still apply. */
9475 #ifdef __cplusplus
9476 extern "C"
9477 #endif
9478 char XcursorImageLoadCursor ();
9480 main ()
9482 return XcursorImageLoadCursor ();
9484 return 0;
9486 _ACEOF
9487 if ac_fn_c_try_link "$LINENO"; then :
9488 case "$LIBEXT" in
9489 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9490 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'` ;;
9491 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9492 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
9493 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9494 fi ;;
9495 esac
9497 rm -f core conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_check_soname_save_LIBS
9501 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9503 $as_echo "not found" >&6; }
9505 else
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9507 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9509 cat >>confdefs.h <<_ACEOF
9510 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9511 _ACEOF
9516 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9517 case "x$with_xcursor" in
9518 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9519 xno) ;;
9520 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9521 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9522 esac
9525 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9526 then
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9528 $as_echo_n "checking for -lXi... " >&6; }
9529 if ${ac_cv_lib_soname_Xi+:} false; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532 ac_check_soname_save_LIBS=$LIBS
9533 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9537 /* Override any GCC internal prototype to avoid an error.
9538 Use char because int might match the return type of a GCC
9539 builtin and then its argument prototype would still apply. */
9540 #ifdef __cplusplus
9541 extern "C"
9542 #endif
9543 char XOpenDevice ();
9545 main ()
9547 return XOpenDevice ();
9549 return 0;
9551 _ACEOF
9552 if ac_fn_c_try_link "$LINENO"; then :
9553 case "$LIBEXT" in
9554 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9555 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'` ;;
9556 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9557 if test "x$ac_cv_lib_soname_Xi" = x; then :
9558 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9559 fi ;;
9560 esac
9562 rm -f core conftest.err conftest.$ac_objext \
9563 conftest$ac_exeext conftest.$ac_ext
9564 LIBS=$ac_check_soname_save_LIBS
9566 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9568 $as_echo "not found" >&6; }
9570 else
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9572 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9574 cat >>confdefs.h <<_ACEOF
9575 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9576 _ACEOF
9581 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9582 case "x$with_xinput" in
9583 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9584 xno) ;;
9585 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9586 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9587 esac
9590 if test "x$ac_cv_lib_soname_Xi" != x
9591 then
9592 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9593 case "x$with_xinput2" in
9594 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9595 xno) ;;
9596 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9597 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9598 esac
9602 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9603 then
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9605 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9606 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9607 $as_echo_n "(cached) " >&6
9608 else
9609 ac_check_lib_save_LIBS=$LIBS
9610 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9614 /* Override any GCC internal prototype to avoid an error.
9615 Use char because int might match the return type of a GCC
9616 builtin and then its argument prototype would still apply. */
9617 #ifdef __cplusplus
9618 extern "C"
9619 #endif
9620 char XShmQueryExtension ();
9622 main ()
9624 return XShmQueryExtension ();
9626 return 0;
9628 _ACEOF
9629 if ac_fn_c_try_link "$LINENO"; then :
9630 ac_cv_lib_Xext_XShmQueryExtension=yes
9631 else
9632 ac_cv_lib_Xext_XShmQueryExtension=no
9634 rm -f core conftest.err conftest.$ac_objext \
9635 conftest$ac_exeext conftest.$ac_ext
9636 LIBS=$ac_check_lib_save_LIBS
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9639 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9640 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9642 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9647 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9648 case "x$with_xshm" in
9649 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9650 xno) ;;
9651 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9652 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9653 esac
9656 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9657 then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9659 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9660 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 ac_check_lib_save_LIBS=$LIBS
9664 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 char XShapeQueryExtension ();
9676 main ()
9678 return XShapeQueryExtension ();
9680 return 0;
9682 _ACEOF
9683 if ac_fn_c_try_link "$LINENO"; then :
9684 ac_cv_lib_Xext_XShapeQueryExtension=yes
9685 else
9686 ac_cv_lib_Xext_XShapeQueryExtension=no
9688 rm -f core conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9690 LIBS=$ac_check_lib_save_LIBS
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9693 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9694 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9696 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9701 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9702 case "x$with_xshape" in
9703 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9704 xno) ;;
9705 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9706 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9707 esac
9710 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9711 then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9713 $as_echo_n "checking for -lXxf86vm... " >&6; }
9714 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 ac_check_soname_save_LIBS=$LIBS
9718 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9725 #ifdef __cplusplus
9726 extern "C"
9727 #endif
9728 char XF86VidModeQueryExtension ();
9730 main ()
9732 return XF86VidModeQueryExtension ();
9734 return 0;
9736 _ACEOF
9737 if ac_fn_c_try_link "$LINENO"; then :
9738 case "$LIBEXT" in
9739 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9740 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'` ;;
9741 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9742 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
9743 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9744 fi ;;
9745 esac
9747 rm -f core conftest.err conftest.$ac_objext \
9748 conftest$ac_exeext conftest.$ac_ext
9749 LIBS=$ac_check_soname_save_LIBS
9751 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9753 $as_echo "not found" >&6; }
9755 else
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9757 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9759 cat >>confdefs.h <<_ACEOF
9760 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9761 _ACEOF
9766 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9767 case "x$with_xxf86vm" in
9768 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9769 xno) ;;
9770 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9771 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9772 esac
9775 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"
9776 then
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9778 $as_echo_n "checking for -lXrender... " >&6; }
9779 if ${ac_cv_lib_soname_Xrender+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 ac_check_soname_save_LIBS=$LIBS
9783 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9787 /* Override any GCC internal prototype to avoid an error.
9788 Use char because int might match the return type of a GCC
9789 builtin and then its argument prototype would still apply. */
9790 #ifdef __cplusplus
9791 extern "C"
9792 #endif
9793 char XRenderQueryExtension ();
9795 main ()
9797 return XRenderQueryExtension ();
9799 return 0;
9801 _ACEOF
9802 if ac_fn_c_try_link "$LINENO"; then :
9803 case "$LIBEXT" in
9804 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9805 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'` ;;
9806 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9807 if test "x$ac_cv_lib_soname_Xrender" = x; then :
9808 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9809 fi ;;
9810 esac
9812 rm -f core conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
9814 LIBS=$ac_check_soname_save_LIBS
9816 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9818 $as_echo "not found" >&6; }
9820 else
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
9822 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
9824 cat >>confdefs.h <<_ACEOF
9825 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
9826 _ACEOF
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
9829 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
9830 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
9831 $as_echo_n "(cached) " >&6
9832 else
9833 ac_check_lib_save_LIBS=$LIBS
9834 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h. */
9838 /* Override any GCC internal prototype to avoid an error.
9839 Use char because int might match the return type of a GCC
9840 builtin and then its argument prototype would still apply. */
9841 #ifdef __cplusplus
9842 extern "C"
9843 #endif
9844 char XRenderSetPictureTransform ();
9846 main ()
9848 return XRenderSetPictureTransform ();
9850 return 0;
9852 _ACEOF
9853 if ac_fn_c_try_link "$LINENO"; then :
9854 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9855 else
9856 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9858 rm -f core conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860 LIBS=$ac_check_lib_save_LIBS
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9863 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9864 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
9866 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
9871 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
9872 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
9873 $as_echo_n "(cached) " >&6
9874 else
9875 ac_check_lib_save_LIBS=$LIBS
9876 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h. */
9880 /* Override any GCC internal prototype to avoid an error.
9881 Use char because int might match the return type of a GCC
9882 builtin and then its argument prototype would still apply. */
9883 #ifdef __cplusplus
9884 extern "C"
9885 #endif
9886 char XRenderCreateLinearGradient ();
9888 main ()
9890 return XRenderCreateLinearGradient ();
9892 return 0;
9894 _ACEOF
9895 if ac_fn_c_try_link "$LINENO"; then :
9896 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
9897 else
9898 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
9900 rm -f core conftest.err conftest.$ac_objext \
9901 conftest$ac_exeext conftest.$ac_ext
9902 LIBS=$ac_check_lib_save_LIBS
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
9905 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
9906 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
9908 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
9915 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9916 case "x$with_xrender" in
9917 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
9918 xno) ;;
9919 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
9920 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
9921 esac
9924 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9925 then
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9928 #include <X11/Xlib.h>
9929 #include <X11/extensions/Xrandr.h>
9931 main ()
9933 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9935 return 0;
9937 _ACEOF
9938 if ac_fn_c_try_compile "$LINENO"; then :
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9940 $as_echo_n "checking for -lXrandr... " >&6; }
9941 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9942 $as_echo_n "(cached) " >&6
9943 else
9944 ac_check_soname_save_LIBS=$LIBS
9945 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947 /* end confdefs.h. */
9949 /* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9952 #ifdef __cplusplus
9953 extern "C"
9954 #endif
9955 char XRRQueryExtension ();
9957 main ()
9959 return XRRQueryExtension ();
9961 return 0;
9963 _ACEOF
9964 if ac_fn_c_try_link "$LINENO"; then :
9965 case "$LIBEXT" in
9966 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9967 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'` ;;
9968 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9969 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
9970 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9971 fi ;;
9972 esac
9974 rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 LIBS=$ac_check_soname_save_LIBS
9978 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9980 $as_echo "not found" >&6; }
9982 else
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9984 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9986 cat >>confdefs.h <<_ACEOF
9987 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9988 _ACEOF
9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991 /* end confdefs.h. */
9992 #include <X11/Xlib.h>
9993 #include <X11/extensions/Xrandr.h>
9995 main ()
9997 static typeof(XRRGetScreenResources) *f; if (f) return 0;
9999 return 0;
10001 _ACEOF
10002 if ac_fn_c_try_compile "$LINENO"; then :
10004 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
10007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
10013 case "x$with_xrandr" in
10014 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
10015 xno) ;;
10016 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
10017 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
10018 esac
10021 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10022 then
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10025 #include <X11/Xlib.h>
10026 #include <X11/extensions/Xinerama.h>
10028 main ()
10030 static typeof(XineramaQueryScreens) * func; if (func) return 0;
10032 return 0;
10034 _ACEOF
10035 if ac_fn_c_try_compile "$LINENO"; then :
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
10037 $as_echo_n "checking for -lXinerama... " >&6; }
10038 if ${ac_cv_lib_soname_Xinerama+:} false; then :
10039 $as_echo_n "(cached) " >&6
10040 else
10041 ac_check_soname_save_LIBS=$LIBS
10042 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10046 /* Override any GCC internal prototype to avoid an error.
10047 Use char because int might match the return type of a GCC
10048 builtin and then its argument prototype would still apply. */
10049 #ifdef __cplusplus
10050 extern "C"
10051 #endif
10052 char XineramaQueryScreens ();
10054 main ()
10056 return XineramaQueryScreens ();
10058 return 0;
10060 _ACEOF
10061 if ac_fn_c_try_link "$LINENO"; then :
10062 case "$LIBEXT" in
10063 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10064 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'` ;;
10065 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10066 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
10067 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10068 fi ;;
10069 esac
10071 rm -f core conftest.err conftest.$ac_objext \
10072 conftest$ac_exeext conftest.$ac_ext
10073 LIBS=$ac_check_soname_save_LIBS
10075 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10077 $as_echo "not found" >&6; }
10079 else
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
10081 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
10083 cat >>confdefs.h <<_ACEOF
10084 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10085 _ACEOF
10090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10092 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10093 case "x$with_xinerama" in
10094 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
10095 xno) ;;
10096 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
10097 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
10098 esac
10101 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10102 then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
10104 $as_echo_n "checking for -lXcomposite... " >&6; }
10105 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 ac_check_soname_save_LIBS=$LIBS
10109 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10113 /* Override any GCC internal prototype to avoid an error.
10114 Use char because int might match the return type of a GCC
10115 builtin and then its argument prototype would still apply. */
10116 #ifdef __cplusplus
10117 extern "C"
10118 #endif
10119 char XCompositeRedirectWindow ();
10121 main ()
10123 return XCompositeRedirectWindow ();
10125 return 0;
10127 _ACEOF
10128 if ac_fn_c_try_link "$LINENO"; then :
10129 case "$LIBEXT" in
10130 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10131 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'` ;;
10132 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10133 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
10134 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10135 fi ;;
10136 esac
10138 rm -f core conftest.err conftest.$ac_objext \
10139 conftest$ac_exeext conftest.$ac_ext
10140 LIBS=$ac_check_soname_save_LIBS
10142 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10144 $as_echo "not found" >&6; }
10146 else
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
10148 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
10150 cat >>confdefs.h <<_ACEOF
10151 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10152 _ACEOF
10157 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10158 case "x$with_xcomposite" in
10159 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
10160 xno) ;;
10161 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
10162 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
10163 esac
10166 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
10167 #include <X11/Xlib.h>
10168 #endif
10170 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
10172 cat >>confdefs.h <<_ACEOF
10173 #define HAVE_XICCALLBACK_CALLBACK 1
10174 _ACEOF
10178 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
10179 #include <X11/Xlib.h>
10180 #endif
10182 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
10184 cat >>confdefs.h <<_ACEOF
10185 #define HAVE_XEVENT_XCOOKIE 1
10186 _ACEOF
10193 opengl_msg=""
10194 if test "x$with_opengl" != "xno"
10195 then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10197 $as_echo_n "checking for -lGL... " >&6; }
10198 if ${ac_cv_lib_soname_GL+:} false; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10201 ac_check_soname_save_LIBS=$LIBS
10202 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10206 /* Override any GCC internal prototype to avoid an error.
10207 Use char because int might match the return type of a GCC
10208 builtin and then its argument prototype would still apply. */
10209 #ifdef __cplusplus
10210 extern "C"
10211 #endif
10212 char glXCreateContext ();
10214 main ()
10216 return glXCreateContext ();
10218 return 0;
10220 _ACEOF
10221 if ac_fn_c_try_link "$LINENO"; then :
10222 case "$LIBEXT" in
10223 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10224 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'` ;;
10225 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10226 if test "x$ac_cv_lib_soname_GL" = x; then :
10227 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10228 fi ;;
10229 esac
10231 rm -f core conftest.err conftest.$ac_objext \
10232 conftest$ac_exeext conftest.$ac_ext
10233 LIBS=$ac_check_soname_save_LIBS
10235 if test "x$ac_cv_lib_soname_GL" = "x"; then :
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10237 $as_echo "not found" >&6; }
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10239 $as_echo_n "checking for -lGL... " >&6; }
10240 if ${ac_cv_lib_soname_GL+:} false; then :
10241 $as_echo_n "(cached) " >&6
10242 else
10243 ac_check_soname_save_LIBS=$LIBS
10244 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"
10245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246 /* end confdefs.h. */
10248 /* Override any GCC internal prototype to avoid an error.
10249 Use char because int might match the return type of a GCC
10250 builtin and then its argument prototype would still apply. */
10251 #ifdef __cplusplus
10252 extern "C"
10253 #endif
10254 char glXCreateContext ();
10256 main ()
10258 return glXCreateContext ();
10260 return 0;
10262 _ACEOF
10263 if ac_fn_c_try_link "$LINENO"; then :
10264 case "$LIBEXT" in
10265 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10266 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'` ;;
10267 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10268 if test "x$ac_cv_lib_soname_GL" = x; then :
10269 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10270 fi ;;
10271 esac
10273 rm -f core conftest.err conftest.$ac_objext \
10274 conftest$ac_exeext conftest.$ac_ext
10275 LIBS=$ac_check_soname_save_LIBS
10277 if test "x$ac_cv_lib_soname_GL" = "x"; then :
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10279 $as_echo "not found" >&6; }
10280 if test -f /usr/X11R6/lib/libGL.a
10281 then
10282 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
10283 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10284 else
10285 opengl_msg="No OpenGL library found on this system."
10287 else
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10289 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10291 cat >>confdefs.h <<_ACEOF
10292 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10293 _ACEOF
10295 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"
10297 else
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10299 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10301 cat >>confdefs.h <<_ACEOF
10302 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10303 _ACEOF
10305 OPENGL_LIBS="-lGL"
10307 if test "x$with_glu" != "xno"
10308 then
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
10310 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
10311 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 ac_check_lib_save_LIBS=$LIBS
10315 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317 /* end confdefs.h. */
10319 /* Override any GCC internal prototype to avoid an error.
10320 Use char because int might match the return type of a GCC
10321 builtin and then its argument prototype would still apply. */
10322 #ifdef __cplusplus
10323 extern "C"
10324 #endif
10325 char gluLookAt ();
10327 main ()
10329 return gluLookAt ();
10331 return 0;
10333 _ACEOF
10334 if ac_fn_c_try_link "$LINENO"; then :
10335 ac_cv_lib_GLU_gluLookAt=yes
10336 else
10337 ac_cv_lib_GLU_gluLookAt=no
10339 rm -f core conftest.err conftest.$ac_objext \
10340 conftest$ac_exeext conftest.$ac_ext
10341 LIBS=$ac_check_lib_save_LIBS
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
10344 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
10345 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
10349 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
10350 case "x$with_glu" in
10351 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
10352 xno) ;;
10353 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
10354 This is an error since --with-glu was requested." "$LINENO" 5 ;;
10355 esac
10359 if test "x$with_osmesa" != "xno"
10360 then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
10362 $as_echo_n "checking for -lOSMesa... " >&6; }
10363 if ${ac_cv_lib_soname_OSMesa+:} false; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 ac_check_soname_save_LIBS=$LIBS
10367 LIBS="-lOSMesa $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10369 /* end confdefs.h. */
10371 /* Override any GCC internal prototype to avoid an error.
10372 Use char because int might match the return type of a GCC
10373 builtin and then its argument prototype would still apply. */
10374 #ifdef __cplusplus
10375 extern "C"
10376 #endif
10377 char glAccum ();
10379 main ()
10381 return glAccum ();
10383 return 0;
10385 _ACEOF
10386 if ac_fn_c_try_link "$LINENO"; then :
10387 case "$LIBEXT" in
10388 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10389 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'` ;;
10390 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10391 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
10392 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10393 fi ;;
10394 esac
10396 rm -f core conftest.err conftest.$ac_objext \
10397 conftest$ac_exeext conftest.$ac_ext
10398 LIBS=$ac_check_soname_save_LIBS
10400 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10402 $as_echo "not found" >&6; }
10404 else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10406 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10408 cat >>confdefs.h <<_ACEOF
10409 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10410 _ACEOF
10414 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10415 case "x$with_osmesa" in
10416 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10417 xno) ;;
10418 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10419 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10420 esac
10424 if test -n "$opengl_msg"; then :
10425 case "x$with_opengl" in
10426 x) as_fn_append wine_warnings "|$opengl_msg
10427 OpenGL and Direct3D won't be supported." ;;
10428 xno) ;;
10429 *) as_fn_error $? "$opengl_msg
10430 OpenGL and Direct3D won't be supported.
10431 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10432 esac
10435 CPPFLAGS="$ac_save_CPPFLAGS"
10436 else
10437 XLIB=""
10438 X_CFLAGS=""
10439 X_LIBS=""
10440 enable_winex11_drv=${enable_winex11_drv:-no}
10442 if test "x$XLIB" = "x"; then :
10443 case "x$with_x" in
10444 xno) ;;
10445 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10446 without X support, which probably isn't what you want. You will need
10447 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10448 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10449 esac
10452 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10454 if test "$ac_cv_header_CL_cl_h" = "yes"
10455 then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10457 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10458 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10459 $as_echo_n "(cached) " >&6
10460 else
10461 ac_check_lib_save_LIBS=$LIBS
10462 LIBS="-lOpenCL $LIBS"
10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h. */
10466 /* Override any GCC internal prototype to avoid an error.
10467 Use char because int might match the return type of a GCC
10468 builtin and then its argument prototype would still apply. */
10469 #ifdef __cplusplus
10470 extern "C"
10471 #endif
10472 char clGetPlatformInfo ();
10474 main ()
10476 return clGetPlatformInfo ();
10478 return 0;
10480 _ACEOF
10481 if ac_fn_c_try_link "$LINENO"; then :
10482 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10483 else
10484 ac_cv_lib_OpenCL_clGetPlatformInfo=no
10486 rm -f core conftest.err conftest.$ac_objext \
10487 conftest$ac_exeext conftest.$ac_ext
10488 LIBS=$ac_check_lib_save_LIBS
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
10491 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10492 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10493 LIBOPENCL="-lOpenCL"
10498 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10499 case "x$with_opencl" in
10500 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10501 xno) ;;
10502 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10503 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10504 esac
10506 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10509 if test "x$with_xml" != "xno"
10510 then
10511 if test -n "$XML2_CFLAGS"; then :
10513 elif test -n "$PKG_CONFIG"; then :
10514 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10516 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10517 if test -n "$XML2_LIBS"; then :
10519 elif test -n "$PKG_CONFIG"; then :
10520 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10522 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10523 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10524 ac_save_CPPFLAGS=$CPPFLAGS
10525 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10526 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10527 do :
10528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10529 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10530 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10531 cat >>confdefs.h <<_ACEOF
10532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10533 _ACEOF
10537 done
10539 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"
10540 then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10542 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10543 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10544 $as_echo_n "(cached) " >&6
10545 else
10546 ac_check_lib_save_LIBS=$LIBS
10547 LIBS="-lxml2 $XML2_LIBS $LIBS"
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10554 #ifdef __cplusplus
10555 extern "C"
10556 #endif
10557 char xmlParseMemory ();
10559 main ()
10561 return xmlParseMemory ();
10563 return 0;
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"; then :
10567 ac_cv_lib_xml2_xmlParseMemory=yes
10568 else
10569 ac_cv_lib_xml2_xmlParseMemory=no
10571 rm -f core conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10573 LIBS=$ac_check_lib_save_LIBS
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10576 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10577 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10579 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10581 else
10582 XML2_LIBS=""
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10586 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10587 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
10588 $as_echo_n "(cached) " >&6
10589 else
10590 ac_check_lib_save_LIBS=$LIBS
10591 LIBS="-lxml2 $XML2_LIBS $LIBS"
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10595 /* Override any GCC internal prototype to avoid an error.
10596 Use char because int might match the return type of a GCC
10597 builtin and then its argument prototype would still apply. */
10598 #ifdef __cplusplus
10599 extern "C"
10600 #endif
10601 char xmlReadMemory ();
10603 main ()
10605 return xmlReadMemory ();
10607 return 0;
10609 _ACEOF
10610 if ac_fn_c_try_link "$LINENO"; then :
10611 ac_cv_lib_xml2_xmlReadMemory=yes
10612 else
10613 ac_cv_lib_xml2_xmlReadMemory=no
10615 rm -f core conftest.err conftest.$ac_objext \
10616 conftest$ac_exeext conftest.$ac_ext
10617 LIBS=$ac_check_lib_save_LIBS
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10620 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10621 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10623 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10628 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10629 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
10630 $as_echo_n "(cached) " >&6
10631 else
10632 ac_check_lib_save_LIBS=$LIBS
10633 LIBS="-lxml2 $XML2_LIBS $LIBS"
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10637 /* Override any GCC internal prototype to avoid an error.
10638 Use char because int might match the return type of a GCC
10639 builtin and then its argument prototype would still apply. */
10640 #ifdef __cplusplus
10641 extern "C"
10642 #endif
10643 char xmlNewDocPI ();
10645 main ()
10647 return xmlNewDocPI ();
10649 return 0;
10651 _ACEOF
10652 if ac_fn_c_try_link "$LINENO"; then :
10653 ac_cv_lib_xml2_xmlNewDocPI=yes
10654 else
10655 ac_cv_lib_xml2_xmlNewDocPI=no
10657 rm -f core conftest.err conftest.$ac_objext \
10658 conftest$ac_exeext conftest.$ac_ext
10659 LIBS=$ac_check_lib_save_LIBS
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10662 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10663 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10665 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10670 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10671 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
10672 $as_echo_n "(cached) " >&6
10673 else
10674 ac_check_lib_save_LIBS=$LIBS
10675 LIBS="-lxml2 $XML2_LIBS $LIBS"
10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677 /* end confdefs.h. */
10679 /* Override any GCC internal prototype to avoid an error.
10680 Use char because int might match the return type of a GCC
10681 builtin and then its argument prototype would still apply. */
10682 #ifdef __cplusplus
10683 extern "C"
10684 #endif
10685 char xmlSchemaSetParserStructuredErrors ();
10687 main ()
10689 return xmlSchemaSetParserStructuredErrors ();
10691 return 0;
10693 _ACEOF
10694 if ac_fn_c_try_link "$LINENO"; then :
10695 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10696 else
10697 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
10699 rm -f core conftest.err conftest.$ac_objext \
10700 conftest$ac_exeext conftest.$ac_ext
10701 LIBS=$ac_check_lib_save_LIBS
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
10704 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10705 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10707 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10712 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10713 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 ac_check_lib_save_LIBS=$LIBS
10717 LIBS="-lxml2 $XML2_LIBS $LIBS"
10718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10719 /* end confdefs.h. */
10721 /* Override any GCC internal prototype to avoid an error.
10722 Use char because int might match the return type of a GCC
10723 builtin and then its argument prototype would still apply. */
10724 #ifdef __cplusplus
10725 extern "C"
10726 #endif
10727 char xmlSchemaSetValidStructuredErrors ();
10729 main ()
10731 return xmlSchemaSetValidStructuredErrors ();
10733 return 0;
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
10738 else
10739 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
10746 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
10747 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
10749 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
10754 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
10755 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 ac_check_lib_save_LIBS=$LIBS
10759 LIBS="-lxml2 $XML2_LIBS $LIBS"
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 char xmlFirstElementChild ();
10771 main ()
10773 return xmlFirstElementChild ();
10775 return 0;
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10779 ac_cv_lib_xml2_xmlFirstElementChild=yes
10780 else
10781 ac_cv_lib_xml2_xmlFirstElementChild=no
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
10788 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
10789 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
10791 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
10795 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
10797 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
10799 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
10803 else
10804 XML2_CFLAGS=""
10805 XML2_LIBS=""
10807 CPPFLAGS=$ac_save_CPPFLAGS
10808 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10809 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10812 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
10813 case "x$with_xml" in
10814 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
10815 xno) ;;
10816 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
10817 This is an error since --with-xml was requested." "$LINENO" 5 ;;
10818 esac
10821 if test "x$with_xslt" != "xno"
10822 then
10823 if test -n "$XSLT_CFLAGS"; then :
10825 elif test -n "$PKG_CONFIG"; then :
10826 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
10828 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
10829 if test -n "$XSLT_LIBS"; then :
10831 elif test -n "$PKG_CONFIG"; then :
10832 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
10834 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
10835 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
10836 ac_save_CPPFLAGS=$CPPFLAGS
10837 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
10838 for ac_header in libxslt/pattern.h libxslt/transform.h
10839 do :
10840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10841 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
10842 # include <libxslt/pattern.h>
10843 #endif
10845 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10846 cat >>confdefs.h <<_ACEOF
10847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10848 _ACEOF
10852 done
10854 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10855 then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10857 $as_echo_n "checking for -lxslt... " >&6; }
10858 if ${ac_cv_lib_soname_xslt+:} false; then :
10859 $as_echo_n "(cached) " >&6
10860 else
10861 ac_check_soname_save_LIBS=$LIBS
10862 LIBS="-lxslt $XSLT_LIBS $LIBS"
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10866 /* Override any GCC internal prototype to avoid an error.
10867 Use char because int might match the return type of a GCC
10868 builtin and then its argument prototype would still apply. */
10869 #ifdef __cplusplus
10870 extern "C"
10871 #endif
10872 char xsltCompilePattern ();
10874 main ()
10876 return xsltCompilePattern ();
10878 return 0;
10880 _ACEOF
10881 if ac_fn_c_try_link "$LINENO"; then :
10882 case "$LIBEXT" in
10883 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10884 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'` ;;
10885 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10886 if test "x$ac_cv_lib_soname_xslt" = x; then :
10887 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10888 fi ;;
10889 esac
10891 rm -f core conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext conftest.$ac_ext
10893 LIBS=$ac_check_soname_save_LIBS
10895 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10897 $as_echo "not found" >&6; }
10899 else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10901 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10903 cat >>confdefs.h <<_ACEOF
10904 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10905 _ACEOF
10909 else
10910 XSLT_CFLAGS=""
10912 CPPFLAGS=$ac_save_CPPFLAGS
10913 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10914 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10917 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10918 case "x$with_xslt" in
10919 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10920 xno) ;;
10921 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10922 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10923 esac
10926 if test "x$with_dbus" != "xno"
10927 then
10928 if test -n "$DBUS_CFLAGS"; then :
10930 elif test -n "$PKG_CONFIG"; then :
10931 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10934 if test -n "$DBUS_LIBS"; then :
10936 elif test -n "$PKG_CONFIG"; then :
10937 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10941 ac_save_CPPFLAGS=$CPPFLAGS
10942 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10943 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10944 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10946 $as_echo_n "checking for -ldbus-1... " >&6; }
10947 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10948 $as_echo_n "(cached) " >&6
10949 else
10950 ac_check_soname_save_LIBS=$LIBS
10951 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10955 /* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10958 #ifdef __cplusplus
10959 extern "C"
10960 #endif
10961 char dbus_connection_close ();
10963 main ()
10965 return dbus_connection_close ();
10967 return 0;
10969 _ACEOF
10970 if ac_fn_c_try_link "$LINENO"; then :
10971 case "$LIBEXT" in
10972 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10973 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'` ;;
10974 *) 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'`
10975 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10976 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10977 fi ;;
10978 esac
10980 rm -f core conftest.err conftest.$ac_objext \
10981 conftest$ac_exeext conftest.$ac_ext
10982 LIBS=$ac_check_soname_save_LIBS
10984 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10986 $as_echo "not found" >&6; }
10987 DBUS_CFLAGS=""
10988 else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10990 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10992 cat >>confdefs.h <<_ACEOF
10993 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10994 _ACEOF
10998 else
10999 DBUS_CFLAGS=""
11003 CPPFLAGS=$ac_save_CPPFLAGS
11004 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11005 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11008 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
11009 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11010 case "x$with_dbus" in
11011 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
11012 xno) ;;
11013 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
11014 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
11015 esac
11018 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
11019 then
11020 if test -n "$HAL_CFLAGS"; then :
11022 elif test -n "$PKG_CONFIG"; then :
11023 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
11026 if test -n "$HAL_LIBS"; then :
11028 elif test -n "$PKG_CONFIG"; then :
11029 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
11032 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
11033 ac_save_CPPFLAGS=$CPPFLAGS
11034 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
11035 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
11036 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
11038 $as_echo_n "checking for -lhal... " >&6; }
11039 if ${ac_cv_lib_soname_hal+:} false; then :
11040 $as_echo_n "(cached) " >&6
11041 else
11042 ac_check_soname_save_LIBS=$LIBS
11043 LIBS="-lhal $HAL_LIBS $LIBS"
11044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11045 /* end confdefs.h. */
11047 /* Override any GCC internal prototype to avoid an error.
11048 Use char because int might match the return type of a GCC
11049 builtin and then its argument prototype would still apply. */
11050 #ifdef __cplusplus
11051 extern "C"
11052 #endif
11053 char libhal_ctx_new ();
11055 main ()
11057 return libhal_ctx_new ();
11059 return 0;
11061 _ACEOF
11062 if ac_fn_c_try_link "$LINENO"; then :
11063 case "$LIBEXT" in
11064 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11065 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'` ;;
11066 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11067 if test "x$ac_cv_lib_soname_hal" = x; then :
11068 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11069 fi ;;
11070 esac
11072 rm -f core conftest.err conftest.$ac_objext \
11073 conftest$ac_exeext conftest.$ac_ext
11074 LIBS=$ac_check_soname_save_LIBS
11076 if test "x$ac_cv_lib_soname_hal" = "x"; then :
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11078 $as_echo "not found" >&6; }
11079 HAL_CFLAGS=""
11080 else
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
11082 $as_echo "$ac_cv_lib_soname_hal" >&6; }
11084 cat >>confdefs.h <<_ACEOF
11085 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11086 _ACEOF
11090 else
11091 HAL_CFLAGS=""
11095 CPPFLAGS=$ac_save_CPPFLAGS
11096 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11097 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11099 if test "x$ac_cv_lib_soname_hal" = "x" -a \
11100 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11101 case "x$with_hal" in
11102 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
11103 xno) ;;
11104 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
11105 This is an error since --with-hal was requested." "$LINENO" 5 ;;
11106 esac
11110 if test "x$with_gnutls" != "xno"
11111 then
11112 if test -n "$GNUTLS_CFLAGS"; then :
11114 elif test -n "$PKG_CONFIG"; then :
11115 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
11118 if test -n "$GNUTLS_LIBS"; then :
11120 elif test -n "$PKG_CONFIG"; then :
11121 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
11125 ac_save_CPPFLAGS=$CPPFLAGS
11126 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
11127 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
11128 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
11129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h. */
11131 #include <gnutls/gnutls.h>
11132 #include <gnutls/crypto.h>
11134 main ()
11136 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
11138 return 0;
11140 _ACEOF
11141 if ac_fn_c_try_compile "$LINENO"; then :
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
11143 $as_echo_n "checking for -lgnutls... " >&6; }
11144 if ${ac_cv_lib_soname_gnutls+:} false; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 ac_check_soname_save_LIBS=$LIBS
11148 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11155 #ifdef __cplusplus
11156 extern "C"
11157 #endif
11158 char gnutls_global_init ();
11160 main ()
11162 return gnutls_global_init ();
11164 return 0;
11166 _ACEOF
11167 if ac_fn_c_try_link "$LINENO"; then :
11168 case "$LIBEXT" in
11169 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11170 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'` ;;
11171 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11172 if test "x$ac_cv_lib_soname_gnutls" = x; then :
11173 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11174 fi ;;
11175 esac
11177 rm -f core conftest.err conftest.$ac_objext \
11178 conftest$ac_exeext conftest.$ac_ext
11179 LIBS=$ac_check_soname_save_LIBS
11181 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11183 $as_echo "not found" >&6; }
11184 GNUTLS_CFLAGS=""
11185 else
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
11187 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
11189 cat >>confdefs.h <<_ACEOF
11190 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
11191 _ACEOF
11196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197 else
11198 GNUTLS_CFLAGS=""
11202 CPPFLAGS=$ac_save_CPPFLAGS
11203 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11204 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11207 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11208 case "x$with_gnutls" in
11209 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
11210 xno) ;;
11211 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
11212 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
11213 esac
11216 CURSESLIBS=""
11217 if test "$ac_cv_header_ncurses_h" = "yes"
11218 then
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
11220 $as_echo_n "checking for -lncurses... " >&6; }
11221 if ${ac_cv_lib_soname_ncurses+:} false; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 ac_check_soname_save_LIBS=$LIBS
11225 LIBS="-lncurses $LIBS"
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11229 /* Override any GCC internal prototype to avoid an error.
11230 Use char because int might match the return type of a GCC
11231 builtin and then its argument prototype would still apply. */
11232 #ifdef __cplusplus
11233 extern "C"
11234 #endif
11235 char waddch ();
11237 main ()
11239 return waddch ();
11241 return 0;
11243 _ACEOF
11244 if ac_fn_c_try_link "$LINENO"; then :
11245 case "$LIBEXT" in
11246 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11247 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'` ;;
11248 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11249 if test "x$ac_cv_lib_soname_ncurses" = x; then :
11250 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11251 fi ;;
11252 esac
11254 rm -f core conftest.err conftest.$ac_objext \
11255 conftest$ac_exeext conftest.$ac_ext
11256 LIBS=$ac_check_soname_save_LIBS
11258 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11260 $as_echo "not found" >&6; }
11262 else
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
11264 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
11266 cat >>confdefs.h <<_ACEOF
11267 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11268 _ACEOF
11270 CURSESLIBS="-lncurses"
11272 elif test "$ac_cv_header_curses_h" = "yes"
11273 then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
11275 $as_echo_n "checking for -lcurses... " >&6; }
11276 if ${ac_cv_lib_soname_curses+:} false; then :
11277 $as_echo_n "(cached) " >&6
11278 else
11279 ac_check_soname_save_LIBS=$LIBS
11280 LIBS="-lcurses $LIBS"
11281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h. */
11284 /* Override any GCC internal prototype to avoid an error.
11285 Use char because int might match the return type of a GCC
11286 builtin and then its argument prototype would still apply. */
11287 #ifdef __cplusplus
11288 extern "C"
11289 #endif
11290 char waddch ();
11292 main ()
11294 return waddch ();
11296 return 0;
11298 _ACEOF
11299 if ac_fn_c_try_link "$LINENO"; then :
11300 case "$LIBEXT" in
11301 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11302 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'` ;;
11303 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11304 if test "x$ac_cv_lib_soname_curses" = x; then :
11305 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11306 fi ;;
11307 esac
11309 rm -f core conftest.err conftest.$ac_objext \
11310 conftest$ac_exeext conftest.$ac_ext
11311 LIBS=$ac_check_soname_save_LIBS
11313 if test "x$ac_cv_lib_soname_curses" = "x"; then :
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11315 $as_echo "not found" >&6; }
11317 else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
11319 $as_echo "$ac_cv_lib_soname_curses" >&6; }
11321 cat >>confdefs.h <<_ACEOF
11322 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11323 _ACEOF
11325 CURSESLIBS="-lcurses"
11328 ac_save_LIBS="$LIBS"
11329 LIBS="$LIBS $CURSESLIBS"
11330 for ac_func in mousemask
11331 do :
11332 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
11333 if test "x$ac_cv_func_mousemask" = xyes; then :
11334 cat >>confdefs.h <<_ACEOF
11335 #define HAVE_MOUSEMASK 1
11336 _ACEOF
11339 done
11341 LIBS="$ac_save_LIBS"
11342 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
11343 case "x$with_curses" in
11344 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
11345 xno) ;;
11346 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
11347 This is an error since --with-curses was requested." "$LINENO" 5 ;;
11348 esac
11351 if test "x$with_sane" != "xno"
11352 then
11353 if test -n "$SANE_CFLAGS"; then :
11355 elif test -n "$PKG_CONFIG"; then :
11356 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
11358 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
11359 if test -n "$SANE_LIBS"; then :
11361 elif test -n "$PKG_CONFIG"; then :
11362 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
11364 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
11366 ac_save_CPPFLAGS=$CPPFLAGS
11367 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
11368 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
11369 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
11371 $as_echo_n "checking for -lsane... " >&6; }
11372 if ${ac_cv_lib_soname_sane+:} false; then :
11373 $as_echo_n "(cached) " >&6
11374 else
11375 ac_check_soname_save_LIBS=$LIBS
11376 LIBS="-lsane $SANE_LIBS $LIBS"
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11380 /* Override any GCC internal prototype to avoid an error.
11381 Use char because int might match the return type of a GCC
11382 builtin and then its argument prototype would still apply. */
11383 #ifdef __cplusplus
11384 extern "C"
11385 #endif
11386 char sane_init ();
11388 main ()
11390 return sane_init ();
11392 return 0;
11394 _ACEOF
11395 if ac_fn_c_try_link "$LINENO"; then :
11396 case "$LIBEXT" in
11397 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11398 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'` ;;
11399 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11400 if test "x$ac_cv_lib_soname_sane" = x; then :
11401 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11402 fi ;;
11403 esac
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_soname_save_LIBS
11409 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11411 $as_echo "not found" >&6; }
11412 SANE_CFLAGS=""
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11415 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11417 cat >>confdefs.h <<_ACEOF
11418 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11419 _ACEOF
11423 else
11424 SANE_CFLAGS=""
11428 CPPFLAGS=$ac_save_CPPFLAGS
11429 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11430 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11433 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11434 case "x$with_sane" in
11435 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11436 xno) ;;
11437 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11438 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11439 esac
11442 if test "x$with_v4l" != "xno"
11443 then
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11445 $as_echo_n "checking for -lv4l1... " >&6; }
11446 if ${ac_cv_lib_soname_v4l1+:} false; then :
11447 $as_echo_n "(cached) " >&6
11448 else
11449 ac_check_soname_save_LIBS=$LIBS
11450 LIBS="-lv4l1 $LIBS"
11451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11454 /* Override any GCC internal prototype to avoid an error.
11455 Use char because int might match the return type of a GCC
11456 builtin and then its argument prototype would still apply. */
11457 #ifdef __cplusplus
11458 extern "C"
11459 #endif
11460 char v4l1_open ();
11462 main ()
11464 return v4l1_open ();
11466 return 0;
11468 _ACEOF
11469 if ac_fn_c_try_link "$LINENO"; then :
11470 case "$LIBEXT" in
11471 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11472 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'` ;;
11473 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11474 if test "x$ac_cv_lib_soname_v4l1" = x; then :
11475 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11476 fi ;;
11477 esac
11479 rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481 LIBS=$ac_check_soname_save_LIBS
11483 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11485 $as_echo "not found" >&6; }
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11489 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11491 cat >>confdefs.h <<_ACEOF
11492 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11493 _ACEOF
11498 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11499 case "x$with_v4l" in
11500 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11501 xno) ;;
11502 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11503 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11504 esac
11507 if test "x$with_gphoto" != "xno"
11508 then
11509 if test -n "$GPHOTO2_CFLAGS"; then :
11511 elif test -n "$PKG_CONFIG"; then :
11512 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11514 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11515 if test -n "$GPHOTO2_LIBS"; then :
11517 elif test -n "$PKG_CONFIG"; then :
11518 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11520 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11521 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11522 ac_save_CPPFLAGS=$CPPFLAGS
11523 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11524 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11525 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11527 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11528 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 ac_check_lib_save_LIBS=$LIBS
11532 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 /* end confdefs.h. */
11536 /* Override any GCC internal prototype to avoid an error.
11537 Use char because int might match the return type of a GCC
11538 builtin and then its argument prototype would still apply. */
11539 #ifdef __cplusplus
11540 extern "C"
11541 #endif
11542 char gp_camera_new ();
11544 main ()
11546 return gp_camera_new ();
11548 return 0;
11550 _ACEOF
11551 if ac_fn_c_try_link "$LINENO"; then :
11552 ac_cv_lib_gphoto2_gp_camera_new=yes
11553 else
11554 ac_cv_lib_gphoto2_gp_camera_new=no
11556 rm -f core conftest.err conftest.$ac_objext \
11557 conftest$ac_exeext conftest.$ac_ext
11558 LIBS=$ac_check_lib_save_LIBS
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11561 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11562 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11564 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11566 else
11567 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11570 else
11571 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11575 CPPFLAGS=$ac_save_CPPFLAGS
11576 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11577 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11579 if test -n "$GPHOTO2_PORT_CFLAGS"; then :
11581 elif test -n "$PKG_CONFIG"; then :
11582 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11584 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11585 if test -n "$GPHOTO2_PORT_LIBS"; then :
11587 elif test -n "$PKG_CONFIG"; then :
11588 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11590 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11591 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11592 ac_save_CPPFLAGS=$CPPFLAGS
11593 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11594 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11595 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11597 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11598 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 ac_check_lib_save_LIBS=$LIBS
11602 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11604 /* end confdefs.h. */
11606 /* Override any GCC internal prototype to avoid an error.
11607 Use char because int might match the return type of a GCC
11608 builtin and then its argument prototype would still apply. */
11609 #ifdef __cplusplus
11610 extern "C"
11611 #endif
11612 char gp_port_info_list_new ();
11614 main ()
11616 return gp_port_info_list_new ();
11618 return 0;
11620 _ACEOF
11621 if ac_fn_c_try_link "$LINENO"; then :
11622 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11623 else
11624 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11626 rm -f core conftest.err conftest.$ac_objext \
11627 conftest$ac_exeext conftest.$ac_ext
11628 LIBS=$ac_check_lib_save_LIBS
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11631 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11632 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11634 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11636 else
11637 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11640 else
11641 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11645 CPPFLAGS=$ac_save_CPPFLAGS
11646 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11647 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11650 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11651 case "x$with_gphoto" in
11652 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11653 xno) ;;
11654 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11655 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11656 esac
11658 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11659 case "x$with_gphoto" in
11660 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11661 xno) ;;
11662 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11663 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11664 esac
11668 if test "$ac_cv_header_resolv_h" = "yes"
11669 then
11670 ac_save_LIBS="$LIBS"
11671 for lib in '' -lresolv
11673 LIBS="$lib $ac_save_LIBS"
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11676 #ifdef HAVE_NETINET_IN_H
11677 #include <netinet/in.h>
11678 #endif
11679 #include <resolv.h>
11681 main ()
11683 res_query("foo",ns_c_in,0,0,0);
11685 return 0;
11687 _ACEOF
11688 if ac_fn_c_try_link "$LINENO"; then :
11690 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11692 RESOLVLIBS="$lib"
11695 rm -f core conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11697 if test "${RESOLVLIBS+set}" = set; then
11698 break
11700 done
11701 LIBS="$ac_save_LIBS"
11704 if test "x$with_lcms2" != "xno"
11705 then
11706 if test -n "$LCMS2_CFLAGS"; then :
11708 elif test -n "$PKG_CONFIG"; then :
11709 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
11712 if test -n "$LCMS2_LIBS"; then :
11714 elif test -n "$PKG_CONFIG"; then :
11715 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
11718 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
11719 ac_save_CPPFLAGS=$CPPFLAGS
11720 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
11721 for ac_header in lcms2.h
11722 do :
11723 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
11724 if test "x$ac_cv_header_lcms2_h" = xyes; then :
11725 cat >>confdefs.h <<_ACEOF
11726 #define HAVE_LCMS2_H 1
11727 _ACEOF
11731 done
11733 if test "$ac_cv_header_lcms2_h" = "yes"
11734 then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
11736 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
11737 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 ac_check_lib_save_LIBS=$LIBS
11741 LIBS="-llcms2 $LIBS"
11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11745 /* Override any GCC internal prototype to avoid an error.
11746 Use char because int might match the return type of a GCC
11747 builtin and then its argument prototype would still apply. */
11748 #ifdef __cplusplus
11749 extern "C"
11750 #endif
11751 char cmsOpenProfileFromFile ();
11753 main ()
11755 return cmsOpenProfileFromFile ();
11757 return 0;
11759 _ACEOF
11760 if ac_fn_c_try_link "$LINENO"; then :
11761 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
11762 else
11763 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
11765 rm -f core conftest.err conftest.$ac_objext \
11766 conftest$ac_exeext conftest.$ac_ext
11767 LIBS=$ac_check_lib_save_LIBS
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
11770 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
11771 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
11773 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
11775 else
11776 LCMS2_LIBS=""
11779 else
11780 LCMS2_CFLAGS=""
11781 LCMS2_LIBS=""
11783 CPPFLAGS=$ac_save_CPPFLAGS
11784 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11785 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11788 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
11789 case "x$with_cms" in
11790 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
11791 xno) ;;
11792 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
11793 This is an error since --with-cms was requested." "$LINENO" 5 ;;
11794 esac
11797 if test "x$with_freetype" != "xno"
11798 then
11799 if test -n "$FREETYPE_CFLAGS"; then :
11801 elif test -n "$PKG_CONFIG"; then :
11802 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
11804 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
11805 if test -n "$FREETYPE_LIBS"; then :
11807 elif test -n "$PKG_CONFIG"; then :
11808 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
11810 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
11811 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
11812 ac_save_CPPFLAGS=$CPPFLAGS
11813 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
11814 for ac_header in ft2build.h
11815 do :
11816 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
11817 if test "x$ac_cv_header_ft2build_h" = xyes; then :
11818 cat >>confdefs.h <<_ACEOF
11819 #define HAVE_FT2BUILD_H 1
11820 _ACEOF
11824 done
11826 if test "$ac_cv_header_ft2build_h" = "yes"
11827 then
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
11829 $as_echo_n "checking for -lfreetype... " >&6; }
11830 if ${ac_cv_lib_soname_freetype+:} false; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 ac_check_soname_save_LIBS=$LIBS
11834 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
11835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11836 /* end confdefs.h. */
11838 /* Override any GCC internal prototype to avoid an error.
11839 Use char because int might match the return type of a GCC
11840 builtin and then its argument prototype would still apply. */
11841 #ifdef __cplusplus
11842 extern "C"
11843 #endif
11844 char FT_Init_FreeType ();
11846 main ()
11848 return FT_Init_FreeType ();
11850 return 0;
11852 _ACEOF
11853 if ac_fn_c_try_link "$LINENO"; then :
11854 case "$LIBEXT" in
11855 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11856 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'` ;;
11857 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11858 if test "x$ac_cv_lib_soname_freetype" = x; then :
11859 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11860 fi ;;
11861 esac
11863 rm -f core conftest.err conftest.$ac_objext \
11864 conftest$ac_exeext conftest.$ac_ext
11865 LIBS=$ac_check_soname_save_LIBS
11867 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11869 $as_echo "not found" >&6; }
11870 FREETYPE_LIBS=""
11871 else
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
11873 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
11875 cat >>confdefs.h <<_ACEOF
11876 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11877 _ACEOF
11880 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11882 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <ft2build.h>
11883 #include FT_MODULE_H
11885 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
11887 cat >>confdefs.h <<_ACEOF
11888 #define HAVE_FT_TRUETYPEENGINETYPE 1
11889 _ACEOF
11895 else
11896 FREETYPE_CFLAGS=""
11897 FREETYPE_LIBS=""
11899 CPPFLAGS=$ac_save_CPPFLAGS
11900 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11901 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11904 if test "x$ac_cv_lib_soname_freetype" = x; then :
11905 case "x$with_freetype" in
11906 xno) ;;
11907 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
11908 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
11909 esac
11911 test "x$ac_cv_lib_soname_freetype" = x && enable_fonts=${enable_fonts:-no}
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
11914 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
11915 if ${ac_cv_c_ppdev+:} false; then :
11916 $as_echo_n "(cached) " >&6
11917 else
11918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919 /* end confdefs.h. */
11920 #ifdef HAVE_SYS_IOCTL_H
11921 # include <sys/ioctl.h>
11922 #endif
11923 #include <linux/ppdev.h>
11925 main ()
11927 ioctl (1,PPCLAIM,0)
11929 return 0;
11931 _ACEOF
11932 if ac_fn_c_try_compile "$LINENO"; then :
11933 ac_cv_c_ppdev="yes"
11934 else
11935 ac_cv_c_ppdev="no"
11937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11940 $as_echo "$ac_cv_c_ppdev" >&6; }
11941 if test "$ac_cv_c_ppdev" = "yes"
11942 then
11944 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11948 ac_wine_check_funcs_save_LIBS="$LIBS"
11949 LIBS="$LIBS $LIBPTHREAD"
11950 for ac_func in \
11951 pthread_attr_get_np \
11952 pthread_getattr_np \
11953 pthread_getthreadid_np \
11954 pthread_get_stackaddr_np \
11955 pthread_get_stacksize_np
11956 do :
11957 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11958 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11959 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11960 cat >>confdefs.h <<_ACEOF
11961 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11962 _ACEOF
11965 done
11967 LIBS="$ac_wine_check_funcs_save_LIBS"
11969 if test "$ac_cv_header_zlib_h" = "yes"
11970 then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11972 $as_echo_n "checking for inflate in -lz... " >&6; }
11973 if ${ac_cv_lib_z_inflate+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 ac_check_lib_save_LIBS=$LIBS
11977 LIBS="-lz $LIBS"
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11981 /* Override any GCC internal prototype to avoid an error.
11982 Use char because int might match the return type of a GCC
11983 builtin and then its argument prototype would still apply. */
11984 #ifdef __cplusplus
11985 extern "C"
11986 #endif
11987 char inflate ();
11989 main ()
11991 return inflate ();
11993 return 0;
11995 _ACEOF
11996 if ac_fn_c_try_link "$LINENO"; then :
11997 ac_cv_lib_z_inflate=yes
11998 else
11999 ac_cv_lib_z_inflate=no
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12003 LIBS=$ac_check_lib_save_LIBS
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12006 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12007 if test "x$ac_cv_lib_z_inflate" = xyes; then :
12009 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12011 ZLIB="-lz"
12016 if test "x$ZLIB" = "x"; then :
12017 case "x$with_zlib" in
12018 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
12019 xno) ;;
12020 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
12021 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
12022 esac
12025 if test "x$enable_tools" != xno
12026 then
12027 if test "$ac_cv_header_gettext_po_h" = "yes"
12028 then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
12030 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
12031 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 ac_check_lib_save_LIBS=$LIBS
12035 LIBS="-lgettextpo $LIBS"
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12039 /* Override any GCC internal prototype to avoid an error.
12040 Use char because int might match the return type of a GCC
12041 builtin and then its argument prototype would still apply. */
12042 #ifdef __cplusplus
12043 extern "C"
12044 #endif
12045 char po_message_msgctxt ();
12047 main ()
12049 return po_message_msgctxt ();
12051 return 0;
12053 _ACEOF
12054 if ac_fn_c_try_link "$LINENO"; then :
12055 ac_cv_lib_gettextpo_po_message_msgctxt=yes
12056 else
12057 ac_cv_lib_gettextpo_po_message_msgctxt=no
12059 rm -f core conftest.err conftest.$ac_objext \
12060 conftest$ac_exeext conftest.$ac_ext
12061 LIBS=$ac_check_lib_save_LIBS
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
12064 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
12065 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
12067 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
12069 LIBGETTEXTPO="-lgettextpo"
12074 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
12075 case "x$with_gettextpo" in
12076 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
12077 xno) ;;
12078 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
12079 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
12080 esac
12084 if test "x$with_gstreamer" != "xno"
12085 then
12086 if test -n "$GSTREAMER_CFLAGS"; then :
12088 elif test -n "$PKG_CONFIG"; then :
12089 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
12092 if test -n "$GSTREAMER_LIBS"; then :
12094 elif test -n "$PKG_CONFIG"; then :
12095 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
12099 ac_save_CPPFLAGS=$CPPFLAGS
12100 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
12101 ac_gst_incl=""
12102 for i in $GSTREAMER_CFLAGS
12104 case "$i" in
12105 -I*) ac_gst_incl="$ac_gst_incl $i";;
12106 esac
12107 done
12108 GSTREAMER_CFLAGS=$ac_gst_incl
12109 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
12110 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
12111 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
12112 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
12113 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
12115 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
12116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h. */
12118 #include <gst/app/gstappsink.h>
12120 main ()
12122 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
12124 return 0;
12126 _ACEOF
12127 if ac_fn_c_try_compile "$LINENO"; then :
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129 $as_echo "yes" >&6; }
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
12131 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
12132 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
12133 $as_echo_n "(cached) " >&6
12134 else
12135 ac_check_lib_save_LIBS=$LIBS
12136 LIBS="-lgstreamer-0.10 $LIBS"
12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h. */
12140 /* Override any GCC internal prototype to avoid an error.
12141 Use char because int might match the return type of a GCC
12142 builtin and then its argument prototype would still apply. */
12143 #ifdef __cplusplus
12144 extern "C"
12145 #endif
12146 char gst_pad_get_caps_reffed ();
12148 main ()
12150 return gst_pad_get_caps_reffed ();
12152 return 0;
12154 _ACEOF
12155 if ac_fn_c_try_link "$LINENO"; then :
12156 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
12157 else
12158 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
12160 rm -f core conftest.err conftest.$ac_objext \
12161 conftest$ac_exeext conftest.$ac_ext
12162 LIBS=$ac_check_lib_save_LIBS
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
12165 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
12166 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
12168 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
12169 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
12170 $as_echo_n "(cached) " >&6
12171 else
12172 ac_check_lib_save_LIBS=$LIBS
12173 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12177 /* Override any GCC internal prototype to avoid an error.
12178 Use char because int might match the return type of a GCC
12179 builtin and then its argument prototype would still apply. */
12180 #ifdef __cplusplus
12181 extern "C"
12182 #endif
12183 char gst_app_buffer_new ();
12185 main ()
12187 return gst_app_buffer_new ();
12189 return 0;
12191 _ACEOF
12192 if ac_fn_c_try_link "$LINENO"; then :
12193 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
12194 else
12195 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
12197 rm -f core conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
12199 LIBS=$ac_check_lib_save_LIBS
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
12202 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
12203 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
12209 else
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217 else
12218 GSTREAMER_CFLAGS=""
12222 CPPFLAGS=$ac_save_CPPFLAGS
12223 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12224 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12227 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
12228 case "x$with_gstreamer" in
12229 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
12230 xno) ;;
12231 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
12232 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
12233 esac
12235 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
12237 ALSALIBS=""
12239 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12240 then
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
12242 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
12243 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245 else
12246 ac_check_lib_save_LIBS=$LIBS
12247 LIBS="-lasound $LIBS"
12248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h. */
12251 /* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12254 #ifdef __cplusplus
12255 extern "C"
12256 #endif
12257 char snd_pcm_hw_params_get_access_mask ();
12259 main ()
12261 return snd_pcm_hw_params_get_access_mask ();
12263 return 0;
12265 _ACEOF
12266 if ac_fn_c_try_link "$LINENO"; then :
12267 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
12268 else
12269 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
12271 rm -f core conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext conftest.$ac_ext
12273 LIBS=$ac_check_lib_save_LIBS
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
12276 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
12277 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12280 #ifdef HAVE_ALSA_ASOUNDLIB_H
12281 #include <alsa/asoundlib.h>
12282 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12283 #include <sys/asoundlib.h>
12284 #endif
12286 main ()
12288 snd_pcm_hw_params_get_access_mask(NULL, NULL)
12290 return 0;
12292 _ACEOF
12293 if ac_fn_c_try_compile "$LINENO"; then :
12294 ALSALIBS="-lasound"
12296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301 if test "x$with_oss" != xno
12302 then
12303 ac_save_CPPFLAGS="$CPPFLAGS"
12304 if test -f /etc/oss.conf
12305 then
12306 . /etc/oss.conf
12308 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
12309 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
12310 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12311 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12312 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
12314 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
12316 cat >>confdefs.h <<_ACEOF
12317 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
12318 _ACEOF
12320 OSS4INCL="$ac_oss_incl"
12327 CPPFLAGS="$ac_save_CPPFLAGS"
12328 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
12329 then
12330 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
12334 if test "x$with_capi" != "xno"
12335 then
12336 if test -n "$CAPI20_CFLAGS"; then :
12338 elif test -n "$PKG_CONFIG"; then :
12339 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
12342 if test -n "$CAPI20_LIBS"; then :
12344 elif test -n "$PKG_CONFIG"; then :
12345 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
12349 ac_save_CPPFLAGS=$CPPFLAGS
12350 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
12351 for ac_header in capi20.h linux/capi.h
12352 do :
12353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
12356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12357 cat >>confdefs.h <<_ACEOF
12358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12359 _ACEOF
12363 done
12365 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12366 then
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12368 $as_echo_n "checking for -lcapi20... " >&6; }
12369 if ${ac_cv_lib_soname_capi20+:} false; then :
12370 $as_echo_n "(cached) " >&6
12371 else
12372 ac_check_soname_save_LIBS=$LIBS
12373 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12377 /* Override any GCC internal prototype to avoid an error.
12378 Use char because int might match the return type of a GCC
12379 builtin and then its argument prototype would still apply. */
12380 #ifdef __cplusplus
12381 extern "C"
12382 #endif
12383 char capi20_register ();
12385 main ()
12387 return capi20_register ();
12389 return 0;
12391 _ACEOF
12392 if ac_fn_c_try_link "$LINENO"; then :
12393 case "$LIBEXT" in
12394 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12395 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'` ;;
12396 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12397 if test "x$ac_cv_lib_soname_capi20" = x; then :
12398 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12399 fi ;;
12400 esac
12402 rm -f core conftest.err conftest.$ac_objext \
12403 conftest$ac_exeext conftest.$ac_ext
12404 LIBS=$ac_check_soname_save_LIBS
12406 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12408 $as_echo "not found" >&6; }
12410 else
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12412 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12414 cat >>confdefs.h <<_ACEOF
12415 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12416 _ACEOF
12421 CPPFLAGS=$ac_save_CPPFLAGS
12422 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12423 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12426 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12427 case "x$with_capi" in
12428 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12429 xno) ;;
12430 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12431 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12432 esac
12435 CUPSINCL=""
12437 if test "x$with_cups" != "xno"
12438 then
12439 ac_save_CPPFLAGS="$CPPFLAGS"
12440 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12441 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12442 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12443 for ac_header in cups/cups.h
12444 do :
12445 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12446 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12447 cat >>confdefs.h <<_ACEOF
12448 #define HAVE_CUPS_CUPS_H 1
12449 _ACEOF
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12451 $as_echo_n "checking for -lcups... " >&6; }
12452 if ${ac_cv_lib_soname_cups+:} false; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 ac_check_soname_save_LIBS=$LIBS
12456 LIBS="-lcups $ac_cups_libs $LIBS"
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12460 /* Override any GCC internal prototype to avoid an error.
12461 Use char because int might match the return type of a GCC
12462 builtin and then its argument prototype would still apply. */
12463 #ifdef __cplusplus
12464 extern "C"
12465 #endif
12466 char cupsGetDefault ();
12468 main ()
12470 return cupsGetDefault ();
12472 return 0;
12474 _ACEOF
12475 if ac_fn_c_try_link "$LINENO"; then :
12476 case "$LIBEXT" in
12477 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12478 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'` ;;
12479 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12480 if test "x$ac_cv_lib_soname_cups" = x; then :
12481 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12482 fi ;;
12483 esac
12485 rm -f core conftest.err conftest.$ac_objext \
12486 conftest$ac_exeext conftest.$ac_ext
12487 LIBS=$ac_check_soname_save_LIBS
12489 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12491 $as_echo "not found" >&6; }
12493 else
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12495 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12497 cat >>confdefs.h <<_ACEOF
12498 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12499 _ACEOF
12501 CUPSINCL="$ac_cups_cflags"
12505 done
12507 CPPFLAGS="$ac_save_CPPFLAGS"
12509 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12510 case "x$with_cups" in
12511 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12512 xno) ;;
12513 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12514 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12515 esac
12518 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12519 then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12521 $as_echo_n "checking for -lfontconfig... " >&6; }
12522 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12523 $as_echo_n "(cached) " >&6
12524 else
12525 ac_check_soname_save_LIBS=$LIBS
12526 LIBS="-lfontconfig $LIBS"
12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h. */
12530 /* Override any GCC internal prototype to avoid an error.
12531 Use char because int might match the return type of a GCC
12532 builtin and then its argument prototype would still apply. */
12533 #ifdef __cplusplus
12534 extern "C"
12535 #endif
12536 char FcInit ();
12538 main ()
12540 return FcInit ();
12542 return 0;
12544 _ACEOF
12545 if ac_fn_c_try_link "$LINENO"; then :
12546 case "$LIBEXT" in
12547 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12548 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'` ;;
12549 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12550 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12551 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12552 fi ;;
12553 esac
12555 rm -f core conftest.err conftest.$ac_objext \
12556 conftest$ac_exeext conftest.$ac_ext
12557 LIBS=$ac_check_soname_save_LIBS
12559 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12561 $as_echo "not found" >&6; }
12563 else
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12565 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12567 cat >>confdefs.h <<_ACEOF
12568 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12569 _ACEOF
12573 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
12574 then
12575 ac_save_CPPFLAGS="$CPPFLAGS"
12576 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12577 $as_unset ac_cv_header_fontconfig_fontconfig_h
12578 for ac_header in fontconfig/fontconfig.h
12579 do :
12580 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12581 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12582 cat >>confdefs.h <<_ACEOF
12583 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12584 _ACEOF
12588 done
12590 CPPFLAGS="$ac_save_CPPFLAGS"
12591 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12592 then
12593 FONTCONFIGINCL="$X_CFLAGS"
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12596 $as_echo_n "checking for -lfontconfig... " >&6; }
12597 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12598 $as_echo_n "(cached) " >&6
12599 else
12600 ac_check_soname_save_LIBS=$LIBS
12601 LIBS="-lfontconfig $X_LIBS $LIBS"
12602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12603 /* end confdefs.h. */
12605 /* Override any GCC internal prototype to avoid an error.
12606 Use char because int might match the return type of a GCC
12607 builtin and then its argument prototype would still apply. */
12608 #ifdef __cplusplus
12609 extern "C"
12610 #endif
12611 char FcInit ();
12613 main ()
12615 return FcInit ();
12617 return 0;
12619 _ACEOF
12620 if ac_fn_c_try_link "$LINENO"; then :
12621 case "$LIBEXT" in
12622 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12623 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'` ;;
12624 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12625 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12626 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12627 fi ;;
12628 esac
12630 rm -f core conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12632 LIBS=$ac_check_soname_save_LIBS
12634 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12636 $as_echo "not found" >&6; }
12638 else
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12640 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12642 cat >>confdefs.h <<_ACEOF
12643 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12644 _ACEOF
12650 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12651 case "x$with_fontconfig" in
12652 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12653 xno) ;;
12654 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12655 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12656 esac
12659 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12660 then
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12662 $as_echo_n "checking for -lgsm... " >&6; }
12663 if ${ac_cv_lib_soname_gsm+:} false; then :
12664 $as_echo_n "(cached) " >&6
12665 else
12666 ac_check_soname_save_LIBS=$LIBS
12667 LIBS="-lgsm $LIBS"
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12671 /* Override any GCC internal prototype to avoid an error.
12672 Use char because int might match the return type of a GCC
12673 builtin and then its argument prototype would still apply. */
12674 #ifdef __cplusplus
12675 extern "C"
12676 #endif
12677 char gsm_create ();
12679 main ()
12681 return gsm_create ();
12683 return 0;
12685 _ACEOF
12686 if ac_fn_c_try_link "$LINENO"; then :
12687 case "$LIBEXT" in
12688 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12689 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'` ;;
12690 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12691 if test "x$ac_cv_lib_soname_gsm" = x; then :
12692 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12693 fi ;;
12694 esac
12696 rm -f core conftest.err conftest.$ac_objext \
12697 conftest$ac_exeext conftest.$ac_ext
12698 LIBS=$ac_check_soname_save_LIBS
12700 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12702 $as_echo "not found" >&6; }
12704 else
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12706 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12708 cat >>confdefs.h <<_ACEOF
12709 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12710 _ACEOF
12715 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12716 case "x$with_gsm" in
12717 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12718 xno) ;;
12719 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12720 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12721 esac
12724 if test "x$with_jpeg" != "xno"
12725 then
12726 if test -n "$JPEG_CFLAGS"; then :
12728 elif test -n "$PKG_CONFIG"; then :
12729 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
12732 if test -n "$JPEG_LIBS"; then :
12734 elif test -n "$PKG_CONFIG"; then :
12735 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
12739 ac_save_CPPFLAGS=$CPPFLAGS
12740 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
12741 for ac_header in jpeglib.h
12742 do :
12743 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12744 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12745 cat >>confdefs.h <<_ACEOF
12746 #define HAVE_JPEGLIB_H 1
12747 _ACEOF
12751 done
12753 if test "$ac_cv_header_jpeglib_h" = "yes"
12754 then
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
12756 $as_echo_n "checking for -ljpeg... " >&6; }
12757 if ${ac_cv_lib_soname_jpeg+:} false; then :
12758 $as_echo_n "(cached) " >&6
12759 else
12760 ac_check_soname_save_LIBS=$LIBS
12761 LIBS="-ljpeg $JPEG_LIBS $LIBS"
12762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12765 /* Override any GCC internal prototype to avoid an error.
12766 Use char because int might match the return type of a GCC
12767 builtin and then its argument prototype would still apply. */
12768 #ifdef __cplusplus
12769 extern "C"
12770 #endif
12771 char jpeg_start_decompress ();
12773 main ()
12775 return jpeg_start_decompress ();
12777 return 0;
12779 _ACEOF
12780 if ac_fn_c_try_link "$LINENO"; then :
12781 case "$LIBEXT" in
12782 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12783 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'` ;;
12784 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12785 if test "x$ac_cv_lib_soname_jpeg" = x; then :
12786 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12787 fi ;;
12788 esac
12790 rm -f core conftest.err conftest.$ac_objext \
12791 conftest$ac_exeext conftest.$ac_ext
12792 LIBS=$ac_check_soname_save_LIBS
12794 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12796 $as_echo "not found" >&6; }
12797 JPEG_CFLAGS=""
12798 else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
12800 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
12802 cat >>confdefs.h <<_ACEOF
12803 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
12804 _ACEOF
12808 else
12809 JPEG_CFLAGS=""
12811 CPPFLAGS=$ac_save_CPPFLAGS
12812 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12813 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12816 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12817 case "x$with_jpeg" in
12818 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
12819 xno) ;;
12820 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
12821 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
12822 esac
12825 if test "x$with_png" != "xno"
12826 then
12827 if test -n "$PNG_CFLAGS"; then :
12829 elif test -n "$PKG_CONFIG"; then :
12830 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
12832 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
12833 if test -n "$PNG_LIBS"; then :
12835 elif test -n "$PKG_CONFIG"; then :
12836 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
12838 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
12840 ac_save_CPPFLAGS=$CPPFLAGS
12841 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
12842 for ac_header in png.h
12843 do :
12844 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12845 if test "x$ac_cv_header_png_h" = xyes; then :
12846 cat >>confdefs.h <<_ACEOF
12847 #define HAVE_PNG_H 1
12848 _ACEOF
12852 done
12854 if test "$ac_cv_header_png_h" = "yes"
12855 then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
12857 $as_echo_n "checking for -lpng... " >&6; }
12858 if ${ac_cv_lib_soname_png+:} false; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12861 ac_check_soname_save_LIBS=$LIBS
12862 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
12863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864 /* end confdefs.h. */
12866 /* Override any GCC internal prototype to avoid an error.
12867 Use char because int might match the return type of a GCC
12868 builtin and then its argument prototype would still apply. */
12869 #ifdef __cplusplus
12870 extern "C"
12871 #endif
12872 char png_create_read_struct ();
12874 main ()
12876 return png_create_read_struct ();
12878 return 0;
12880 _ACEOF
12881 if ac_fn_c_try_link "$LINENO"; then :
12882 case "$LIBEXT" in
12883 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12884 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'` ;;
12885 *) 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'`
12886 if test "x$ac_cv_lib_soname_png" = x; then :
12887 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12888 fi ;;
12889 esac
12891 rm -f core conftest.err conftest.$ac_objext \
12892 conftest$ac_exeext conftest.$ac_ext
12893 LIBS=$ac_check_soname_save_LIBS
12895 if test "x$ac_cv_lib_soname_png" = "x"; then :
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12897 $as_echo "not found" >&6; }
12898 PNG_CFLAGS=""
12899 else
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
12901 $as_echo "$ac_cv_lib_soname_png" >&6; }
12903 cat >>confdefs.h <<_ACEOF
12904 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
12905 _ACEOF
12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12909 #include <png.h>
12911 main ()
12913 typeof(png_set_expand_gray_1_2_4_to_8) *p
12915 return 0;
12917 _ACEOF
12918 if ac_fn_c_try_compile "$LINENO"; then :
12920 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12925 else
12926 PNG_CFLAGS=""
12928 CPPFLAGS=$ac_save_CPPFLAGS
12929 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12930 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12933 if test "x$ac_cv_lib_soname_png" = "x"; then :
12934 case "x$with_png" in
12935 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12936 xno) ;;
12937 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12938 This is an error since --with-png was requested." "$LINENO" 5 ;;
12939 esac
12942 if test "x$with_tiff" != "xno"
12943 then
12944 if test -n "$TIFF_CFLAGS"; then :
12946 elif test -n "$PKG_CONFIG"; then :
12947 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
12950 if test -n "$TIFF_LIBS"; then :
12952 elif test -n "$PKG_CONFIG"; then :
12953 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
12957 ac_save_CPPFLAGS=$CPPFLAGS
12958 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
12959 for ac_header in tiffio.h
12960 do :
12961 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12962 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12963 cat >>confdefs.h <<_ACEOF
12964 #define HAVE_TIFFIO_H 1
12965 _ACEOF
12969 done
12971 if test "$ac_cv_header_tiffio_h" = "yes"
12972 then
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12974 $as_echo_n "checking for -ltiff... " >&6; }
12975 if ${ac_cv_lib_soname_tiff+:} false; then :
12976 $as_echo_n "(cached) " >&6
12977 else
12978 ac_check_soname_save_LIBS=$LIBS
12979 LIBS="-ltiff $TIFF_LIBS $LIBS"
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12983 /* Override any GCC internal prototype to avoid an error.
12984 Use char because int might match the return type of a GCC
12985 builtin and then its argument prototype would still apply. */
12986 #ifdef __cplusplus
12987 extern "C"
12988 #endif
12989 char TIFFClientOpen ();
12991 main ()
12993 return TIFFClientOpen ();
12995 return 0;
12997 _ACEOF
12998 if ac_fn_c_try_link "$LINENO"; then :
12999 case "$LIBEXT" in
13000 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13001 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'` ;;
13002 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13003 if test "x$ac_cv_lib_soname_tiff" = x; then :
13004 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13005 fi ;;
13006 esac
13008 rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010 LIBS=$ac_check_soname_save_LIBS
13012 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13014 $as_echo "not found" >&6; }
13016 else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
13018 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
13020 cat >>confdefs.h <<_ACEOF
13021 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
13022 _ACEOF
13027 CPPFLAGS=$ac_save_CPPFLAGS
13028 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13029 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13032 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13033 case "x$with_tiff" in
13034 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
13035 xno) ;;
13036 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
13037 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
13038 esac
13041 if test "x$with_mpg123" != "xno"
13042 then
13043 if test -n "$MPG123_CFLAGS"; then :
13045 elif test -n "$PKG_CONFIG"; then :
13046 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
13049 if test -n "$MPG123_LIBS"; then :
13051 elif test -n "$PKG_CONFIG"; then :
13052 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
13055 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
13056 ac_save_CPPFLAGS=$CPPFLAGS
13057 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
13058 for ac_header in mpg123.h
13059 do :
13060 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
13061 if test "x$ac_cv_header_mpg123_h" = xyes; then :
13062 cat >>confdefs.h <<_ACEOF
13063 #define HAVE_MPG123_H 1
13064 _ACEOF
13068 done
13070 if test "$ac_cv_header_mpg123_h" = "yes"
13071 then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
13073 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
13074 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
13075 $as_echo_n "(cached) " >&6
13076 else
13077 ac_check_lib_save_LIBS=$LIBS
13078 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13082 /* Override any GCC internal prototype to avoid an error.
13083 Use char because int might match the return type of a GCC
13084 builtin and then its argument prototype would still apply. */
13085 #ifdef __cplusplus
13086 extern "C"
13087 #endif
13088 char mpg123_feed ();
13090 main ()
13092 return mpg123_feed ();
13094 return 0;
13096 _ACEOF
13097 if ac_fn_c_try_link "$LINENO"; then :
13098 ac_cv_lib_mpg123_mpg123_feed=yes
13099 else
13100 ac_cv_lib_mpg123_mpg123_feed=no
13102 rm -f core conftest.err conftest.$ac_objext \
13103 conftest$ac_exeext conftest.$ac_ext
13104 LIBS=$ac_check_lib_save_LIBS
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
13107 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
13108 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
13110 else
13111 MPG123_LIBS=""
13114 else
13115 MPG123_CFLAGS=""
13116 MPG123_LIBS=""
13118 CPPFLAGS=$ac_save_CPPFLAGS
13119 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13120 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13123 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
13124 case "x$with_mpg123" in
13125 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
13126 xno) ;;
13127 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
13128 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
13129 esac
13131 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}
13133 if test "$ac_cv_header_AL_al_h" = "yes"
13134 then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
13136 $as_echo_n "checking for -lopenal... " >&6; }
13137 if ${ac_cv_lib_soname_openal+:} false; then :
13138 $as_echo_n "(cached) " >&6
13139 else
13140 ac_check_soname_save_LIBS=$LIBS
13141 LIBS="-lopenal $LIBS"
13142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13143 /* end confdefs.h. */
13145 /* Override any GCC internal prototype to avoid an error.
13146 Use char because int might match the return type of a GCC
13147 builtin and then its argument prototype would still apply. */
13148 #ifdef __cplusplus
13149 extern "C"
13150 #endif
13151 char alGetSource3i ();
13153 main ()
13155 return alGetSource3i ();
13157 return 0;
13159 _ACEOF
13160 if ac_fn_c_try_link "$LINENO"; then :
13161 case "$LIBEXT" in
13162 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13163 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'` ;;
13164 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13165 if test "x$ac_cv_lib_soname_openal" = x; then :
13166 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13167 fi ;;
13168 esac
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172 LIBS=$ac_check_soname_save_LIBS
13174 if test "x$ac_cv_lib_soname_openal" = "x"; then :
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13176 $as_echo "not found" >&6; }
13178 else
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
13180 $as_echo "$ac_cv_lib_soname_openal" >&6; }
13182 cat >>confdefs.h <<_ACEOF
13183 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
13184 _ACEOF
13186 LIBOPENAL="-lopenal"
13188 ac_cv_lib_openal=yes
13190 cat >>confdefs.h <<_ACEOF
13191 #define HAVE_OPENAL 1
13192 _ACEOF
13196 if test "x$ac_cv_lib_openal" != xyes; then :
13197 case "x$with_openal" in
13198 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
13199 xno) ;;
13200 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
13201 This is an error since --with-openal was requested." "$LINENO" 5 ;;
13202 esac
13204 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
13206 if test "$ac_cv_header_kstat_h" = "yes"
13207 then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13209 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13210 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13211 $as_echo_n "(cached) " >&6
13212 else
13213 ac_check_lib_save_LIBS=$LIBS
13214 LIBS="-lkstat $LIBS"
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13218 /* Override any GCC internal prototype to avoid an error.
13219 Use char because int might match the return type of a GCC
13220 builtin and then its argument prototype would still apply. */
13221 #ifdef __cplusplus
13222 extern "C"
13223 #endif
13224 char kstat_open ();
13226 main ()
13228 return kstat_open ();
13230 return 0;
13232 _ACEOF
13233 if ac_fn_c_try_link "$LINENO"; then :
13234 ac_cv_lib_kstat_kstat_open=yes
13235 else
13236 ac_cv_lib_kstat_kstat_open=no
13238 rm -f core conftest.err conftest.$ac_objext \
13239 conftest$ac_exeext conftest.$ac_ext
13240 LIBS=$ac_check_lib_save_LIBS
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13243 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13244 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13246 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
13248 LIBKSTAT="-lkstat"
13254 if test "$ac_cv_header_libprocstat_h" = "yes"
13255 then
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
13257 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
13258 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
13259 $as_echo_n "(cached) " >&6
13260 else
13261 ac_check_lib_save_LIBS=$LIBS
13262 LIBS="-lprocstat $LIBS"
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13266 /* Override any GCC internal prototype to avoid an error.
13267 Use char because int might match the return type of a GCC
13268 builtin and then its argument prototype would still apply. */
13269 #ifdef __cplusplus
13270 extern "C"
13271 #endif
13272 char procstat_open_sysctl ();
13274 main ()
13276 return procstat_open_sysctl ();
13278 return 0;
13280 _ACEOF
13281 if ac_fn_c_try_link "$LINENO"; then :
13282 ac_cv_lib_procstat_procstat_open_sysctl=yes
13283 else
13284 ac_cv_lib_procstat_procstat_open_sysctl=no
13286 rm -f core conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext conftest.$ac_ext
13288 LIBS=$ac_check_lib_save_LIBS
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
13291 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
13292 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
13294 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
13296 LIBPROCSTAT="-lprocstat"
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
13303 $as_echo_n "checking for -lodbc... " >&6; }
13304 if ${ac_cv_lib_soname_odbc+:} false; then :
13305 $as_echo_n "(cached) " >&6
13306 else
13307 ac_check_soname_save_LIBS=$LIBS
13308 LIBS="-lodbc $LIBS"
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310 /* end confdefs.h. */
13312 /* Override any GCC internal prototype to avoid an error.
13313 Use char because int might match the return type of a GCC
13314 builtin and then its argument prototype would still apply. */
13315 #ifdef __cplusplus
13316 extern "C"
13317 #endif
13318 char SQLConnect ();
13320 main ()
13322 return SQLConnect ();
13324 return 0;
13326 _ACEOF
13327 if ac_fn_c_try_link "$LINENO"; then :
13328 case "$LIBEXT" in
13329 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13330 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'` ;;
13331 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13332 if test "x$ac_cv_lib_soname_odbc" = x; then :
13333 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13334 fi ;;
13335 esac
13337 rm -f core conftest.err conftest.$ac_objext \
13338 conftest$ac_exeext conftest.$ac_ext
13339 LIBS=$ac_check_soname_save_LIBS
13341 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13343 $as_echo "not found" >&6; }
13344 cat >>confdefs.h <<_ACEOF
13345 #define SONAME_LIBODBC "libodbc.$LIBEXT"
13346 _ACEOF
13348 else
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
13350 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
13352 cat >>confdefs.h <<_ACEOF
13353 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
13354 _ACEOF
13359 if test "x$with_netapi" != "xno"
13360 then
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13362 $as_echo_n "checking for -lnetapi... " >&6; }
13363 if ${ac_cv_lib_soname_netapi+:} false; then :
13364 $as_echo_n "(cached) " >&6
13365 else
13366 ac_check_soname_save_LIBS=$LIBS
13367 LIBS="-lnetapi $LIBS"
13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h. */
13371 /* Override any GCC internal prototype to avoid an error.
13372 Use char because int might match the return type of a GCC
13373 builtin and then its argument prototype would still apply. */
13374 #ifdef __cplusplus
13375 extern "C"
13376 #endif
13377 char libnetapi_init ();
13379 main ()
13381 return libnetapi_init ();
13383 return 0;
13385 _ACEOF
13386 if ac_fn_c_try_link "$LINENO"; then :
13387 case "$LIBEXT" in
13388 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13389 dylib) ac_cv_lib_soname_netapi=`otool -L conftest$ac_exeext | grep "libnetapi\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libnetapi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
13390 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13391 if test "x$ac_cv_lib_soname_netapi" = x; then :
13392 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13393 fi ;;
13394 esac
13396 rm -f core conftest.err conftest.$ac_objext \
13397 conftest$ac_exeext conftest.$ac_ext
13398 LIBS=$ac_check_soname_save_LIBS
13400 if test "x$ac_cv_lib_soname_netapi" = "x"; then :
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13402 $as_echo "not found" >&6; }
13403 cat >>confdefs.h <<_ACEOF
13404 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13405 _ACEOF
13407 else
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13409 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13411 cat >>confdefs.h <<_ACEOF
13412 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13413 _ACEOF
13419 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13420 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13421 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13422 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13424 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
13425 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13426 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13427 then
13428 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13432 EXTRACFLAGS=""
13434 if test "x${GCC}" = "xyes"
13435 then
13436 EXTRACFLAGS="-Wall -pipe"
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13439 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13440 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13441 $as_echo_n "(cached) " >&6
13442 else
13443 if test "$cross_compiling" = yes; then :
13444 ac_cv_c_gcc_strength_bug="yes"
13445 else
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448 int L[4] = {0,1,2,3};
13450 main ()
13452 static int Array[3];
13453 unsigned int B = 3;
13454 int i;
13455 for(i=0; i<B; i++) Array[i] = i - 3;
13456 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13457 L[i] = 4;
13458 return (Array[1] != -2 || L[2] != 3)
13460 return 0;
13462 _ACEOF
13463 if ac_fn_c_try_run "$LINENO"; then :
13464 ac_cv_c_gcc_strength_bug="no"
13465 else
13466 ac_cv_c_gcc_strength_bug="yes"
13468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13469 conftest.$ac_objext conftest.beam conftest.$ac_ext
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13474 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13475 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13476 then
13477 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13481 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13482 if ${ac_cv_cflags__fno_builtin+:} false; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 ac_wine_try_cflags_saved=$CFLAGS
13486 CFLAGS="$CFLAGS -fno-builtin"
13487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13489 int main(int argc, char **argv) { return 0; }
13490 _ACEOF
13491 if ac_fn_c_try_link "$LINENO"; then :
13492 ac_cv_cflags__fno_builtin=yes
13493 else
13494 ac_cv_cflags__fno_builtin=no
13496 rm -f core conftest.err conftest.$ac_objext \
13497 conftest$ac_exeext conftest.$ac_ext
13498 CFLAGS=$ac_wine_try_cflags_saved
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13501 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13502 if test $ac_cv_cflags__fno_builtin = yes; then :
13503 BUILTINFLAG="-fno-builtin"
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13507 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13508 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13509 $as_echo_n "(cached) " >&6
13510 else
13511 ac_wine_try_cflags_saved=$CFLAGS
13512 CFLAGS="$CFLAGS -fno-strict-aliasing"
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13515 int main(int argc, char **argv) { return 0; }
13516 _ACEOF
13517 if ac_fn_c_try_link "$LINENO"; then :
13518 ac_cv_cflags__fno_strict_aliasing=yes
13519 else
13520 ac_cv_cflags__fno_strict_aliasing=no
13522 rm -f core conftest.err conftest.$ac_objext \
13523 conftest$ac_exeext conftest.$ac_ext
13524 CFLAGS=$ac_wine_try_cflags_saved
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13527 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13528 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
13529 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13531 saved_CFLAGS=$CFLAGS
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13533 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13534 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13535 $as_echo_n "(cached) " >&6
13536 else
13537 ac_wine_try_cflags_saved=$CFLAGS
13538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13541 int main(int argc, char **argv) { return 0; }
13542 _ACEOF
13543 if ac_fn_c_try_link "$LINENO"; then :
13544 ac_cv_cflags__Werror_unknown_warning_option=yes
13545 else
13546 ac_cv_cflags__Werror_unknown_warning_option=no
13548 rm -f core conftest.err conftest.$ac_objext \
13549 conftest$ac_exeext conftest.$ac_ext
13550 CFLAGS=$ac_wine_try_cflags_saved
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
13553 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13554 if test $ac_cv_cflags__Werror_unknown_warning_option = yes; then :
13555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13558 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13559 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13560 $as_echo_n "(cached) " >&6
13561 else
13562 ac_wine_try_cflags_saved=$CFLAGS
13563 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13566 int main(int argc, char **argv) { return 0; }
13567 _ACEOF
13568 if ac_fn_c_try_link "$LINENO"; then :
13569 ac_cv_cflags__Wdeclaration_after_statement=yes
13570 else
13571 ac_cv_cflags__Wdeclaration_after_statement=no
13573 rm -f core conftest.err conftest.$ac_objext \
13574 conftest$ac_exeext conftest.$ac_ext
13575 CFLAGS=$ac_wine_try_cflags_saved
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13578 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13579 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
13580 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13583 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13584 if ${ac_cv_cflags__Wempty_body+:} false; then :
13585 $as_echo_n "(cached) " >&6
13586 else
13587 ac_wine_try_cflags_saved=$CFLAGS
13588 CFLAGS="$CFLAGS -Wempty-body"
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13591 int main(int argc, char **argv) { return 0; }
13592 _ACEOF
13593 if ac_fn_c_try_link "$LINENO"; then :
13594 ac_cv_cflags__Wempty_body=yes
13595 else
13596 ac_cv_cflags__Wempty_body=no
13598 rm -f core conftest.err conftest.$ac_objext \
13599 conftest$ac_exeext conftest.$ac_ext
13600 CFLAGS=$ac_wine_try_cflags_saved
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13603 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13604 if test $ac_cv_cflags__Wempty_body = yes; then :
13605 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13608 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13609 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 ac_wine_try_cflags_saved=$CFLAGS
13613 CFLAGS="$CFLAGS -Wignored-qualifiers"
13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h. */
13616 int main(int argc, char **argv) { return 0; }
13617 _ACEOF
13618 if ac_fn_c_try_link "$LINENO"; then :
13619 ac_cv_cflags__Wignored_qualifiers=yes
13620 else
13621 ac_cv_cflags__Wignored_qualifiers=no
13623 rm -f core conftest.err conftest.$ac_objext \
13624 conftest$ac_exeext conftest.$ac_ext
13625 CFLAGS=$ac_wine_try_cflags_saved
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13628 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13629 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
13630 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13633 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13634 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13635 $as_echo_n "(cached) " >&6
13636 else
13637 ac_wine_try_cflags_saved=$CFLAGS
13638 CFLAGS="$CFLAGS -Wstrict-prototypes"
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13641 int main(int argc, char **argv) { return 0; }
13642 _ACEOF
13643 if ac_fn_c_try_link "$LINENO"; then :
13644 ac_cv_cflags__Wstrict_prototypes=yes
13645 else
13646 ac_cv_cflags__Wstrict_prototypes=no
13648 rm -f core conftest.err conftest.$ac_objext \
13649 conftest$ac_exeext conftest.$ac_ext
13650 CFLAGS=$ac_wine_try_cflags_saved
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13653 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13654 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
13655 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13658 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13659 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13660 $as_echo_n "(cached) " >&6
13661 else
13662 ac_wine_try_cflags_saved=$CFLAGS
13663 CFLAGS="$CFLAGS -Wtype-limits"
13664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h. */
13666 int main(int argc, char **argv) { return 0; }
13667 _ACEOF
13668 if ac_fn_c_try_link "$LINENO"; then :
13669 ac_cv_cflags__Wtype_limits=yes
13670 else
13671 ac_cv_cflags__Wtype_limits=no
13673 rm -f core conftest.err conftest.$ac_objext \
13674 conftest$ac_exeext conftest.$ac_ext
13675 CFLAGS=$ac_wine_try_cflags_saved
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13678 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13679 if test $ac_cv_cflags__Wtype_limits = yes; then :
13680 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13683 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13684 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13685 $as_echo_n "(cached) " >&6
13686 else
13687 ac_wine_try_cflags_saved=$CFLAGS
13688 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691 int main(int argc, char **argv) { return 0; }
13692 _ACEOF
13693 if ac_fn_c_try_link "$LINENO"; then :
13694 ac_cv_cflags__Wunused_but_set_parameter=yes
13695 else
13696 ac_cv_cflags__Wunused_but_set_parameter=no
13698 rm -f core conftest.err conftest.$ac_objext \
13699 conftest$ac_exeext conftest.$ac_ext
13700 CFLAGS=$ac_wine_try_cflags_saved
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13703 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13704 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
13705 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
13708 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
13709 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
13710 $as_echo_n "(cached) " >&6
13711 else
13712 ac_wine_try_cflags_saved=$CFLAGS
13713 CFLAGS="$CFLAGS -Wwrite-strings"
13714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h. */
13716 int main(int argc, char **argv) { return 0; }
13717 _ACEOF
13718 if ac_fn_c_try_link "$LINENO"; then :
13719 ac_cv_cflags__Wwrite_strings=yes
13720 else
13721 ac_cv_cflags__Wwrite_strings=no
13723 rm -f core conftest.err conftest.$ac_objext \
13724 conftest$ac_exeext conftest.$ac_ext
13725 CFLAGS=$ac_wine_try_cflags_saved
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
13728 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
13729 if test $ac_cv_cflags__Wwrite_strings = yes; then :
13730 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
13734 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
13735 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
13736 $as_echo_n "(cached) " >&6
13737 else
13738 ac_wine_try_cflags_saved=$CFLAGS
13739 CFLAGS="$CFLAGS -Wpointer-arith"
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13742 int main(int argc, char **argv) { return 0; }
13743 _ACEOF
13744 if ac_fn_c_try_link "$LINENO"; then :
13745 ac_cv_cflags__Wpointer_arith=yes
13746 else
13747 ac_cv_cflags__Wpointer_arith=no
13749 rm -f core conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
13751 CFLAGS=$ac_wine_try_cflags_saved
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
13754 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
13755 if test $ac_cv_cflags__Wpointer_arith = yes; then :
13756 saved_string_h_CFLAGS=$CFLAGS
13757 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
13759 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
13760 if ${ac_cv_c_string_h_warnings+:} false; then :
13761 $as_echo_n "(cached) " >&6
13762 else
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13765 #include <string.h>
13767 main ()
13771 return 0;
13773 _ACEOF
13774 if ac_fn_c_try_compile "$LINENO"; then :
13775 ac_cv_c_string_h_warnings=no
13776 else
13777 ac_cv_c_string_h_warnings=yes
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
13782 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
13783 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
13784 CFLAGS=$saved_string_h_CFLAGS
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
13788 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
13789 if ${ac_cv_cflags__Wlogical_op+:} false; then :
13790 $as_echo_n "(cached) " >&6
13791 else
13792 ac_wine_try_cflags_saved=$CFLAGS
13793 CFLAGS="$CFLAGS -Wlogical-op"
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13796 int main(int argc, char **argv) { return 0; }
13797 _ACEOF
13798 if ac_fn_c_try_link "$LINENO"; then :
13799 ac_cv_cflags__Wlogical_op=yes
13800 else
13801 ac_cv_cflags__Wlogical_op=no
13803 rm -f core conftest.err conftest.$ac_objext \
13804 conftest$ac_exeext conftest.$ac_ext
13805 CFLAGS=$ac_wine_try_cflags_saved
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
13808 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
13809 if test $ac_cv_cflags__Wlogical_op = yes; then :
13810 saved_string_h_CFLAGS=$CFLAGS
13811 CFLAGS="$CFLAGS -Wlogical-op -Werror"
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
13813 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
13814 if ${ac_cv_c_logicalop_noisy+:} false; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13819 #include <string.h>
13820 char*f(const char *h,char n) {return strchr(h,n);}
13822 main ()
13826 return 0;
13828 _ACEOF
13829 if ac_fn_c_try_compile "$LINENO"; then :
13830 ac_cv_c_logicalop_noisy=no
13831 else
13832 ac_cv_c_logicalop_noisy=yes
13834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
13837 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
13838 CFLAGS=$saved_string_h_CFLAGS
13839 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
13842 CFLAGS=$saved_CFLAGS
13844 for ac_flag in $CFLAGS; do
13845 case $ac_flag in
13846 -g) case $host_os in
13847 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
13848 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
13849 if ${ac_cv_cflags__gstabsp+:} false; then :
13850 $as_echo_n "(cached) " >&6
13851 else
13852 ac_wine_try_cflags_saved=$CFLAGS
13853 CFLAGS="$CFLAGS -gstabs+"
13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13856 int main(int argc, char **argv) { return 0; }
13857 _ACEOF
13858 if ac_fn_c_try_link "$LINENO"; then :
13859 ac_cv_cflags__gstabsp=yes
13860 else
13861 ac_cv_cflags__gstabsp=no
13863 rm -f core conftest.err conftest.$ac_objext \
13864 conftest$ac_exeext conftest.$ac_ext
13865 CFLAGS=$ac_wine_try_cflags_saved
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
13868 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
13869 if test $ac_cv_cflags__gstabsp = yes; then :
13870 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
13871 fi ;;
13872 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
13873 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
13874 if ${ac_cv_cflags__gdwarf_2+:} false; then :
13875 $as_echo_n "(cached) " >&6
13876 else
13877 ac_wine_try_cflags_saved=$CFLAGS
13878 CFLAGS="$CFLAGS -gdwarf-2"
13879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h. */
13881 int main(int argc, char **argv) { return 0; }
13882 _ACEOF
13883 if ac_fn_c_try_link "$LINENO"; then :
13884 ac_cv_cflags__gdwarf_2=yes
13885 else
13886 ac_cv_cflags__gdwarf_2=no
13888 rm -f core conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext conftest.$ac_ext
13890 CFLAGS=$ac_wine_try_cflags_saved
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
13893 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
13894 if test $ac_cv_cflags__gdwarf_2 = yes; then :
13895 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
13898 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
13899 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
13900 $as_echo_n "(cached) " >&6
13901 else
13902 ac_wine_try_cflags_saved=$CFLAGS
13903 CFLAGS="$CFLAGS -gstrict-dwarf"
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13906 int main(int argc, char **argv) { return 0; }
13907 _ACEOF
13908 if ac_fn_c_try_link "$LINENO"; then :
13909 ac_cv_cflags__gstrict_dwarf=yes
13910 else
13911 ac_cv_cflags__gstrict_dwarf=no
13913 rm -f core conftest.err conftest.$ac_objext \
13914 conftest$ac_exeext conftest.$ac_ext
13915 CFLAGS=$ac_wine_try_cflags_saved
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
13918 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
13919 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
13920 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
13921 fi ;;
13922 esac ;;
13923 esac
13924 done
13926 case $host_cpu in
13927 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
13928 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
13929 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 ac_wine_try_cflags_saved=$CFLAGS
13933 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
13934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13935 /* end confdefs.h. */
13936 int main(int argc, char **argv) { return 0; }
13937 _ACEOF
13938 if ac_fn_c_try_link "$LINENO"; then :
13939 ac_cv_cflags__fno_omit_frame_pointer=yes
13940 else
13941 ac_cv_cflags__fno_omit_frame_pointer=no
13943 rm -f core conftest.err conftest.$ac_objext \
13944 conftest$ac_exeext conftest.$ac_ext
13945 CFLAGS=$ac_wine_try_cflags_saved
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
13948 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
13949 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
13950 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
13951 fi ;;
13952 esac
13954 case $host in
13955 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
13956 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
13957 if ${ac_cv_cflags__Wno_format+:} false; then :
13958 $as_echo_n "(cached) " >&6
13959 else
13960 ac_wine_try_cflags_saved=$CFLAGS
13961 CFLAGS="$CFLAGS -Wno-format"
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13964 int main(int argc, char **argv) { return 0; }
13965 _ACEOF
13966 if ac_fn_c_try_link "$LINENO"; then :
13967 ac_cv_cflags__Wno_format=yes
13968 else
13969 ac_cv_cflags__Wno_format=no
13971 rm -f core conftest.err conftest.$ac_objext \
13972 conftest$ac_exeext conftest.$ac_ext
13973 CFLAGS=$ac_wine_try_cflags_saved
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
13976 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
13977 if test $ac_cv_cflags__Wno_format = yes; then :
13978 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
13979 fi ;;
13980 esac
13982 if test "x$enable_maintainer_mode" = "xyes"
13983 then
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
13985 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
13986 if ${ac_cv_cflags__Werror+:} false; then :
13987 $as_echo_n "(cached) " >&6
13988 else
13989 ac_wine_try_cflags_saved=$CFLAGS
13990 CFLAGS="$CFLAGS -Werror"
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13993 int main(int argc, char **argv) { return 0; }
13994 _ACEOF
13995 if ac_fn_c_try_link "$LINENO"; then :
13996 ac_cv_cflags__Werror=yes
13997 else
13998 ac_cv_cflags__Werror=no
14000 rm -f core conftest.err conftest.$ac_objext \
14001 conftest$ac_exeext conftest.$ac_ext
14002 CFLAGS=$ac_wine_try_cflags_saved
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
14005 $as_echo "$ac_cv_cflags__Werror" >&6; }
14006 if test $ac_cv_cflags__Werror = yes; then :
14007 EXTRACFLAGS="$EXTRACFLAGS -Werror"
14011 saved_CFLAGS="$CFLAGS"
14012 CFLAGS="$CFLAGS -Werror"
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
14014 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
14015 if ${ac_cv_have_ms_hook_prologue+:} false; then :
14016 $as_echo_n "(cached) " >&6
14017 else
14018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019 /* end confdefs.h. */
14020 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
14022 main ()
14026 return 0;
14028 _ACEOF
14029 if ac_fn_c_try_compile "$LINENO"; then :
14030 ac_cv_have_ms_hook_prologue="yes"
14031 else
14032 ac_cv_have_ms_hook_prologue="no"
14034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
14037 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
14038 CFLAGS="$saved_CFLAGS"
14039 if test "$ac_cv_have_ms_hook_prologue" = "yes"
14040 then
14042 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
14044 else
14045 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
14052 $as_echo_n "checking for the need to disable Fortify... " >&6; }
14053 if ${ac_cv_c_fortify_enabled+:} false; then :
14054 $as_echo_n "(cached) " >&6
14055 else
14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057 /* end confdefs.h. */
14058 #include <string.h>
14060 main ()
14062 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
14063 #error Fortify enabled
14064 #endif
14066 return 0;
14068 _ACEOF
14069 if ac_fn_c_try_compile "$LINENO"; then :
14070 ac_cv_c_fortify_enabled=no
14071 else
14072 ac_cv_c_fortify_enabled=yes
14074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
14077 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
14078 if test "$ac_cv_c_fortify_enabled" = yes
14079 then
14080 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
14085 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
14086 if ${ac_cv_c_extern_prefix+:} false; then :
14087 $as_echo_n "(cached) " >&6
14088 else
14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14090 /* end confdefs.h. */
14091 extern int ac_test;
14093 main ()
14095 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14097 return 0;
14099 _ACEOF
14100 if ac_fn_c_try_link "$LINENO"; then :
14101 ac_cv_c_extern_prefix="yes"
14102 else
14103 ac_cv_c_extern_prefix="no"
14105 rm -f core conftest.err conftest.$ac_objext \
14106 conftest$ac_exeext conftest.$ac_ext
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
14109 $as_echo "$ac_cv_c_extern_prefix" >&6; }
14111 case $host_cpu in
14112 *i[3456789]86*)
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
14114 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
14115 if ${ac_cv_c_stdcall_suffix+:} false; then :
14116 $as_echo_n "(cached) " >&6
14117 else
14118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119 /* end confdefs.h. */
14120 #ifndef _MSC_VER
14121 #define __stdcall __attribute__((__stdcall__))
14122 #endif
14123 int __stdcall ac_test(int i) { return i; }
14125 main ()
14127 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
14129 return 0;
14131 _ACEOF
14132 if ac_fn_c_try_link "$LINENO"; then :
14133 ac_cv_c_stdcall_suffix="yes"
14134 else
14135 ac_cv_c_stdcall_suffix="no"
14137 rm -f core conftest.err conftest.$ac_objext \
14138 conftest$ac_exeext conftest.$ac_ext
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
14141 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
14142 *) ac_cv_c_stdcall_suffix="no" ;;
14143 esac
14146 if test "$ac_cv_c_extern_prefix" = "yes"
14147 then
14148 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
14150 asm_name_prefix="_"
14151 else
14152 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
14154 asm_name_prefix=""
14158 if test "$ac_cv_c_stdcall_suffix" = "yes"
14159 then
14160 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
14162 else
14163 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
14169 $as_echo_n "checking how to define a function in assembly code... " >&6; }
14170 if ${ac_cv_asm_func_def+:} false; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h. */
14177 main ()
14179 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14181 return 0;
14183 _ACEOF
14184 if ac_fn_c_try_link "$LINENO"; then :
14185 ac_cv_asm_func_def=".def"
14186 else
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14191 main ()
14193 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14195 return 0;
14197 _ACEOF
14198 if ac_fn_c_try_link "$LINENO"; then :
14199 ac_cv_asm_func_def=".type @function"
14200 else
14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14205 main ()
14207 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14209 return 0;
14211 _ACEOF
14212 if ac_fn_c_try_link "$LINENO"; then :
14213 ac_cv_asm_func_def=".type 2"
14214 else
14215 ac_cv_asm_func_def="unknown"
14217 rm -f core conftest.err conftest.$ac_objext \
14218 conftest$ac_exeext conftest.$ac_ext
14220 rm -f core conftest.err conftest.$ac_objext \
14221 conftest$ac_exeext conftest.$ac_ext
14223 rm -f core conftest.err conftest.$ac_objext \
14224 conftest$ac_exeext conftest.$ac_ext
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
14227 $as_echo "$ac_cv_asm_func_def" >&6; }
14230 case "$ac_cv_asm_func_def" in
14231 ".def")
14232 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
14234 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
14235 ".type @function")
14236 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
14238 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
14239 ".type 2")
14240 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
14242 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
14244 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
14246 asm_func_header="" ;;
14247 esac
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
14250 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
14251 if ${ac_cv_c_asm_outside_funcs+:} false; then :
14252 $as_echo_n "(cached) " >&6
14253 else
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 asm(".text\n\t.long 0");
14258 main ()
14262 return 0;
14264 _ACEOF
14265 if ac_fn_c_try_compile "$LINENO"; then :
14266 ac_cv_c_asm_outside_funcs="yes"
14267 else
14268 ac_cv_c_asm_outside_funcs="no"
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
14273 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
14276 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
14277 if ${ac_cv_c_dot_previous+:} false; then :
14278 $as_echo_n "(cached) " >&6
14279 else
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14284 main ()
14286 asm(".text\nac_test:\t.long 0\n\t.previous");
14288 return 0;
14290 _ACEOF
14291 if ac_fn_c_try_link "$LINENO"; then :
14292 ac_cv_c_dot_previous="yes"
14293 else
14294 ac_cv_c_dot_previous="no"
14296 rm -f core conftest.err conftest.$ac_objext \
14297 conftest$ac_exeext conftest.$ac_ext
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
14300 $as_echo "$ac_cv_c_dot_previous" >&6; }
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
14303 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
14304 if ${ac_cv_c_cfi_support+:} false; then :
14305 $as_echo_n "(cached) " >&6
14306 else
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14309 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
14311 main ()
14315 return 0;
14317 _ACEOF
14318 if ac_fn_c_try_compile "$LINENO"; then :
14319 ac_cv_c_cfi_support="yes"
14320 else
14321 ac_cv_c_cfi_support="no"
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
14326 $as_echo "$ac_cv_c_cfi_support" >&6; }
14328 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
14329 asm_func_trailer=""
14330 if test "$ac_cv_c_dot_previous" = "yes"
14331 then
14332 asm_func_trailer="\\n\\t.previous"
14334 if test "$ac_cv_c_cfi_support" = "yes"
14335 then
14336 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
14337 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
14339 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
14341 UNWINDFLAGS=-fasynchronous-unwind-tables
14343 else
14344 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
14348 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
14351 if test "$ac_cv_c_asm_outside_funcs" = "yes"
14352 then
14353 cat >>confdefs.h <<_ACEOF
14354 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
14355 _ACEOF
14357 else
14358 cat >>confdefs.h <<_ACEOF
14359 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
14360 _ACEOF
14364 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14367 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14371 case $build_os in
14372 cygwin*|mingw32*) TOOLSEXT=".exe"
14374 esac
14376 case $host_os in
14377 linux*)
14378 case $host_cpu in
14379 *i[3456789]86*|x86_64*)
14380 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine-preloader"
14381 loader_programs="$loader_programs $wine_binary-preloader"
14382 as_fn_append LOADER_RULES "
14383 $wine_binary-preloader: preloader.o
14384 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14386 install install-lib:: $wine_binary-preloader
14387 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14389 uninstall::
14390 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14391 " ;;
14392 esac
14394 esac
14395 as_fn_append LOADER_RULES "
14396 PROGRAMS = $loader_programs
14400 ac_save_CFLAGS="$CFLAGS"
14401 CFLAGS="$CFLAGS $BUILTINFLAG"
14402 for ac_func in \
14403 __res_get_state \
14404 __res_getservers \
14405 _finite \
14406 _isnan \
14407 _pclose \
14408 _popen \
14409 _snprintf \
14410 _spawnvp \
14411 _strdup \
14412 _stricmp \
14413 _strnicmp \
14414 _strtoi64 \
14415 _strtoui64 \
14416 _vsnprintf \
14417 asctime_r \
14418 chsize \
14419 dlopen \
14420 epoll_create \
14421 ffs \
14422 fnmatch \
14423 fork \
14424 fpclass \
14425 fstatfs \
14426 fstatvfs \
14427 ftruncate \
14428 futimens \
14429 futimes \
14430 futimesat \
14431 getattrlist \
14432 getdirentries \
14433 getopt_long_only \
14434 getpwuid \
14435 gettimeofday \
14436 getuid \
14437 if_nameindex \
14438 kqueue \
14439 lstat \
14440 memmove \
14441 mmap \
14442 pclose \
14443 pipe2 \
14444 poll \
14445 popen \
14446 port_create \
14447 prctl \
14448 pread \
14449 proc_pidinfo \
14450 pwrite \
14451 readdir \
14452 readlink \
14453 sched_yield \
14454 select \
14455 setproctitle \
14456 setrlimit \
14457 settimeofday \
14458 sigaltstack \
14459 sigprocmask \
14460 snprintf \
14461 statfs \
14462 statvfs \
14463 strcasecmp \
14464 strdup \
14465 strerror \
14466 strncasecmp \
14467 strtold \
14468 strtoll \
14469 strtoull \
14470 symlink \
14471 tcdrain \
14472 thr_kill2 \
14473 timegm \
14474 usleep \
14475 vsnprintf
14477 do :
14478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14479 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14480 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14481 cat >>confdefs.h <<_ACEOF
14482 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14483 _ACEOF
14486 done
14488 CFLAGS="$ac_save_CFLAGS"
14490 if test "$ac_cv_func_dlopen" = no
14491 then
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14493 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14494 if ${ac_cv_lib_dl_dlopen+:} false; then :
14495 $as_echo_n "(cached) " >&6
14496 else
14497 ac_check_lib_save_LIBS=$LIBS
14498 LIBS="-ldl $LIBS"
14499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h. */
14502 /* Override any GCC internal prototype to avoid an error.
14503 Use char because int might match the return type of a GCC
14504 builtin and then its argument prototype would still apply. */
14505 #ifdef __cplusplus
14506 extern "C"
14507 #endif
14508 char dlopen ();
14510 main ()
14512 return dlopen ();
14514 return 0;
14516 _ACEOF
14517 if ac_fn_c_try_link "$LINENO"; then :
14518 ac_cv_lib_dl_dlopen=yes
14519 else
14520 ac_cv_lib_dl_dlopen=no
14522 rm -f core conftest.err conftest.$ac_objext \
14523 conftest$ac_exeext conftest.$ac_ext
14524 LIBS=$ac_check_lib_save_LIBS
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14527 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14528 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14529 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14530 LIBDL="-ldl"
14535 ac_wine_check_funcs_save_LIBS="$LIBS"
14536 LIBS="$LIBS $LIBDL"
14537 for ac_func in dladdr
14538 do :
14539 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14540 if test "x$ac_cv_func_dladdr" = xyes; then :
14541 cat >>confdefs.h <<_ACEOF
14542 #define HAVE_DLADDR 1
14543 _ACEOF
14546 done
14548 LIBS="$ac_wine_check_funcs_save_LIBS"
14550 if test "$ac_cv_func_poll" = no
14551 then
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14553 $as_echo_n "checking for poll in -lpoll... " >&6; }
14554 if ${ac_cv_lib_poll_poll+:} false; then :
14555 $as_echo_n "(cached) " >&6
14556 else
14557 ac_check_lib_save_LIBS=$LIBS
14558 LIBS="-lpoll $LIBS"
14559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14560 /* end confdefs.h. */
14562 /* Override any GCC internal prototype to avoid an error.
14563 Use char because int might match the return type of a GCC
14564 builtin and then its argument prototype would still apply. */
14565 #ifdef __cplusplus
14566 extern "C"
14567 #endif
14568 char poll ();
14570 main ()
14572 return poll ();
14574 return 0;
14576 _ACEOF
14577 if ac_fn_c_try_link "$LINENO"; then :
14578 ac_cv_lib_poll_poll=yes
14579 else
14580 ac_cv_lib_poll_poll=no
14582 rm -f core conftest.err conftest.$ac_objext \
14583 conftest$ac_exeext conftest.$ac_ext
14584 LIBS=$ac_check_lib_save_LIBS
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14587 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14588 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14589 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14590 LIBPOLL="-lpoll"
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14597 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14598 if ${ac_cv_search_gethostbyname+:} false; then :
14599 $as_echo_n "(cached) " >&6
14600 else
14601 ac_func_search_save_LIBS=$LIBS
14602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h. */
14605 /* Override any GCC internal prototype to avoid an error.
14606 Use char because int might match the return type of a GCC
14607 builtin and then its argument prototype would still apply. */
14608 #ifdef __cplusplus
14609 extern "C"
14610 #endif
14611 char gethostbyname ();
14613 main ()
14615 return gethostbyname ();
14617 return 0;
14619 _ACEOF
14620 for ac_lib in '' nsl; do
14621 if test -z "$ac_lib"; then
14622 ac_res="none required"
14623 else
14624 ac_res=-l$ac_lib
14625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14627 if ac_fn_c_try_link "$LINENO"; then :
14628 ac_cv_search_gethostbyname=$ac_res
14630 rm -f core conftest.err conftest.$ac_objext \
14631 conftest$ac_exeext
14632 if ${ac_cv_search_gethostbyname+:} false; then :
14633 break
14635 done
14636 if ${ac_cv_search_gethostbyname+:} false; then :
14638 else
14639 ac_cv_search_gethostbyname=no
14641 rm conftest.$ac_ext
14642 LIBS=$ac_func_search_save_LIBS
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14645 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14646 ac_res=$ac_cv_search_gethostbyname
14647 if test "$ac_res" != no; then :
14648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14654 $as_echo_n "checking for library containing connect... " >&6; }
14655 if ${ac_cv_search_connect+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 ac_func_search_save_LIBS=$LIBS
14659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h. */
14662 /* Override any GCC internal prototype to avoid an error.
14663 Use char because int might match the return type of a GCC
14664 builtin and then its argument prototype would still apply. */
14665 #ifdef __cplusplus
14666 extern "C"
14667 #endif
14668 char connect ();
14670 main ()
14672 return connect ();
14674 return 0;
14676 _ACEOF
14677 for ac_lib in '' socket; do
14678 if test -z "$ac_lib"; then
14679 ac_res="none required"
14680 else
14681 ac_res=-l$ac_lib
14682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14684 if ac_fn_c_try_link "$LINENO"; then :
14685 ac_cv_search_connect=$ac_res
14687 rm -f core conftest.err conftest.$ac_objext \
14688 conftest$ac_exeext
14689 if ${ac_cv_search_connect+:} false; then :
14690 break
14692 done
14693 if ${ac_cv_search_connect+:} false; then :
14695 else
14696 ac_cv_search_connect=no
14698 rm conftest.$ac_ext
14699 LIBS=$ac_func_search_save_LIBS
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14702 $as_echo "$ac_cv_search_connect" >&6; }
14703 ac_res=$ac_cv_search_connect
14704 if test "$ac_res" != no; then :
14705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
14711 $as_echo_n "checking for library containing inet_aton... " >&6; }
14712 if ${ac_cv_search_inet_aton+:} false; then :
14713 $as_echo_n "(cached) " >&6
14714 else
14715 ac_func_search_save_LIBS=$LIBS
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14719 /* Override any GCC internal prototype to avoid an error.
14720 Use char because int might match the return type of a GCC
14721 builtin and then its argument prototype would still apply. */
14722 #ifdef __cplusplus
14723 extern "C"
14724 #endif
14725 char inet_aton ();
14727 main ()
14729 return inet_aton ();
14731 return 0;
14733 _ACEOF
14734 for ac_lib in '' resolv; do
14735 if test -z "$ac_lib"; then
14736 ac_res="none required"
14737 else
14738 ac_res=-l$ac_lib
14739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14741 if ac_fn_c_try_link "$LINENO"; then :
14742 ac_cv_search_inet_aton=$ac_res
14744 rm -f core conftest.err conftest.$ac_objext \
14745 conftest$ac_exeext
14746 if ${ac_cv_search_inet_aton+:} false; then :
14747 break
14749 done
14750 if ${ac_cv_search_inet_aton+:} false; then :
14752 else
14753 ac_cv_search_inet_aton=no
14755 rm conftest.$ac_ext
14756 LIBS=$ac_func_search_save_LIBS
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
14759 $as_echo "$ac_cv_search_inet_aton" >&6; }
14760 ac_res=$ac_cv_search_inet_aton
14761 if test "$ac_res" != no; then :
14762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14767 for ac_func in \
14768 getaddrinfo \
14769 getnameinfo \
14770 getnetbyname \
14771 getprotobyname \
14772 getprotobynumber \
14773 getservbyport \
14774 inet_addr \
14775 inet_network \
14776 inet_ntop \
14777 inet_pton \
14778 sendmsg \
14779 socketpair \
14781 do :
14782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14783 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14784 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14785 cat >>confdefs.h <<_ACEOF
14786 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14787 _ACEOF
14790 done
14793 ac_save_LIBS=$LIBS
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14795 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14796 if ${ac_cv_search_clock_gettime+:} false; then :
14797 $as_echo_n "(cached) " >&6
14798 else
14799 ac_func_search_save_LIBS=$LIBS
14800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h. */
14803 /* Override any GCC internal prototype to avoid an error.
14804 Use char because int might match the return type of a GCC
14805 builtin and then its argument prototype would still apply. */
14806 #ifdef __cplusplus
14807 extern "C"
14808 #endif
14809 char clock_gettime ();
14811 main ()
14813 return clock_gettime ();
14815 return 0;
14817 _ACEOF
14818 for ac_lib in '' rt; do
14819 if test -z "$ac_lib"; then
14820 ac_res="none required"
14821 else
14822 ac_res=-l$ac_lib
14823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14825 if ac_fn_c_try_link "$LINENO"; then :
14826 ac_cv_search_clock_gettime=$ac_res
14828 rm -f core conftest.err conftest.$ac_objext \
14829 conftest$ac_exeext
14830 if ${ac_cv_search_clock_gettime+:} false; then :
14831 break
14833 done
14834 if ${ac_cv_search_clock_gettime+:} false; then :
14836 else
14837 ac_cv_search_clock_gettime=no
14839 rm conftest.$ac_ext
14840 LIBS=$ac_func_search_save_LIBS
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14843 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14844 ac_res=$ac_cv_search_clock_gettime
14845 if test "$ac_res" != no; then :
14846 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14848 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14850 test "$ac_res" = "none required" || LIBRT="$ac_res"
14854 LIBS=$ac_save_LIBS
14856 LDAPLIBS=""
14858 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
14859 then
14860 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
14862 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
14864 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
14865 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
14866 $as_echo_n "(cached) " >&6
14867 else
14868 ac_check_lib_save_LIBS=$LIBS
14869 LIBS="-lldap_r $LIBPTHREAD $LIBS"
14870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871 /* end confdefs.h. */
14873 /* Override any GCC internal prototype to avoid an error.
14874 Use char because int might match the return type of a GCC
14875 builtin and then its argument prototype would still apply. */
14876 #ifdef __cplusplus
14877 extern "C"
14878 #endif
14879 char ldap_initialize ();
14881 main ()
14883 return ldap_initialize ();
14885 return 0;
14887 _ACEOF
14888 if ac_fn_c_try_link "$LINENO"; then :
14889 ac_cv_lib_ldap_r_ldap_initialize=yes
14890 else
14891 ac_cv_lib_ldap_r_ldap_initialize=no
14893 rm -f core conftest.err conftest.$ac_objext \
14894 conftest$ac_exeext conftest.$ac_ext
14895 LIBS=$ac_check_lib_save_LIBS
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
14898 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
14899 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
14901 $as_echo_n "checking for ber_init in -llber... " >&6; }
14902 if ${ac_cv_lib_lber_ber_init+:} false; then :
14903 $as_echo_n "(cached) " >&6
14904 else
14905 ac_check_lib_save_LIBS=$LIBS
14906 LIBS="-llber $LIBPTHREAD $LIBS"
14907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908 /* end confdefs.h. */
14910 /* Override any GCC internal prototype to avoid an error.
14911 Use char because int might match the return type of a GCC
14912 builtin and then its argument prototype would still apply. */
14913 #ifdef __cplusplus
14914 extern "C"
14915 #endif
14916 char ber_init ();
14918 main ()
14920 return ber_init ();
14922 return 0;
14924 _ACEOF
14925 if ac_fn_c_try_link "$LINENO"; then :
14926 ac_cv_lib_lber_ber_init=yes
14927 else
14928 ac_cv_lib_lber_ber_init=no
14930 rm -f core conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext conftest.$ac_ext
14932 LIBS=$ac_check_lib_save_LIBS
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
14935 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
14936 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
14938 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
14940 LDAPLIBS="-lldap_r -llber"
14947 ac_wine_check_funcs_save_LIBS="$LIBS"
14948 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
14949 for ac_func in \
14950 ldap_count_references \
14951 ldap_first_reference \
14952 ldap_next_reference \
14953 ldap_parse_reference \
14954 ldap_parse_sort_control \
14955 ldap_parse_sortresponse_control \
14956 ldap_parse_vlv_control \
14957 ldap_parse_vlvresponse_control
14958 do :
14959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14960 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14961 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14962 cat >>confdefs.h <<_ACEOF
14963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14964 _ACEOF
14967 done
14969 LIBS="$ac_wine_check_funcs_save_LIBS"
14971 if test "x$LDAPLIBS" = "x"; then :
14972 case "x$with_ldap" in
14973 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
14974 xno) ;;
14975 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
14976 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
14977 esac
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
14981 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
14982 if ${wine_cv_one_arg_mkdir+:} false; then :
14983 $as_echo_n "(cached) " >&6
14984 else
14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14986 /* end confdefs.h. */
14987 #include <sys/stat.h>
14989 main ()
14991 mkdir("foo");
14993 return 0;
14995 _ACEOF
14996 if ac_fn_c_try_compile "$LINENO"; then :
14997 wine_cv_one_arg_mkdir=yes
14998 else
14999 wine_cv_one_arg_mkdir=no
15001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
15004 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
15005 if test "$wine_cv_one_arg_mkdir" = "yes"
15006 then
15008 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
15013 $as_echo_n "checking for sched_setaffinity... " >&6; }
15014 if ${wine_cv_have_sched_setaffinity+:} false; then :
15015 $as_echo_n "(cached) " >&6
15016 else
15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15018 /* end confdefs.h. */
15019 #define _GNU_SOURCE
15020 #include <sched.h>
15022 main ()
15024 sched_setaffinity(0, 0, 0);
15026 return 0;
15028 _ACEOF
15029 if ac_fn_c_try_link "$LINENO"; then :
15030 wine_cv_have_sched_setaffinity=yes
15031 else
15032 wine_cv_have_sched_setaffinity=no
15034 rm -f core conftest.err conftest.$ac_objext \
15035 conftest$ac_exeext conftest.$ac_ext
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
15038 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
15039 if test "$wine_cv_have_sched_setaffinity" = "yes"
15040 then
15042 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
15047 $as_echo_n "checking for fallocate... " >&6; }
15048 if ${wine_cv_have_fallocate+:} false; then :
15049 $as_echo_n "(cached) " >&6
15050 else
15051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052 /* end confdefs.h. */
15053 #define _GNU_SOURCE
15054 #include <fcntl.h>
15056 main ()
15058 fallocate(-1, 0, 0, 0);
15060 return 0;
15062 _ACEOF
15063 if ac_fn_c_try_link "$LINENO"; then :
15064 wine_cv_have_fallocate=yes
15065 else
15066 wine_cv_have_fallocate=no
15068 rm -f core conftest.err conftest.$ac_objext \
15069 conftest$ac_exeext conftest.$ac_ext
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
15072 $as_echo "$wine_cv_have_fallocate" >&6; }
15073 if test "$wine_cv_have_fallocate" = "yes"
15074 then
15076 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15082 $as_echo_n "checking for inline... " >&6; }
15083 if ${ac_cv_c_inline+:} false; then :
15084 $as_echo_n "(cached) " >&6
15085 else
15086 ac_cv_c_inline=no
15087 for ac_kw in inline __inline__ __inline; do
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15090 #ifndef __cplusplus
15091 typedef int foo_t;
15092 static $ac_kw foo_t static_foo () {return 0; }
15093 $ac_kw foo_t foo () {return 0; }
15094 #endif
15096 _ACEOF
15097 if ac_fn_c_try_compile "$LINENO"; then :
15098 ac_cv_c_inline=$ac_kw
15100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15101 test "$ac_cv_c_inline" != no && break
15102 done
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15106 $as_echo "$ac_cv_c_inline" >&6; }
15108 case $ac_cv_c_inline in
15109 inline | yes) ;;
15111 case $ac_cv_c_inline in
15112 no) ac_val=;;
15113 *) ac_val=$ac_cv_c_inline;;
15114 esac
15115 cat >>confdefs.h <<_ACEOF
15116 #ifndef __cplusplus
15117 #define inline $ac_val
15118 #endif
15119 _ACEOF
15121 esac
15123 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15124 if test "x$ac_cv_type_mode_t" = xyes; then :
15126 cat >>confdefs.h <<_ACEOF
15127 #define HAVE_MODE_T 1
15128 _ACEOF
15132 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15133 if test "x$ac_cv_type_off_t" = xyes; then :
15135 cat >>confdefs.h <<_ACEOF
15136 #define HAVE_OFF_T 1
15137 _ACEOF
15141 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15142 if test "x$ac_cv_type_pid_t" = xyes; then :
15144 cat >>confdefs.h <<_ACEOF
15145 #define HAVE_PID_T 1
15146 _ACEOF
15150 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15151 if test "x$ac_cv_type_size_t" = xyes; then :
15153 cat >>confdefs.h <<_ACEOF
15154 #define HAVE_SIZE_T 1
15155 _ACEOF
15159 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15160 if test "x$ac_cv_type_ssize_t" = xyes; then :
15162 cat >>confdefs.h <<_ACEOF
15163 #define HAVE_SSIZE_T 1
15164 _ACEOF
15168 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15169 if test "x$ac_cv_type_long_long" = xyes; then :
15171 cat >>confdefs.h <<_ACEOF
15172 #define HAVE_LONG_LONG 1
15173 _ACEOF
15177 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
15178 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15180 cat >>confdefs.h <<_ACEOF
15181 #define HAVE_FSBLKCNT_T 1
15182 _ACEOF
15186 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
15187 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15189 cat >>confdefs.h <<_ACEOF
15190 #define HAVE_FSFILCNT_T 1
15191 _ACEOF
15196 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
15197 #include <signal.h>
15199 if test "x$ac_cv_type_sigset_t" = xyes; then :
15201 cat >>confdefs.h <<_ACEOF
15202 #define HAVE_SIGSET_T 1
15203 _ACEOF
15208 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
15210 if test "x$ac_cv_type_request_sense" = xyes; then :
15212 cat >>confdefs.h <<_ACEOF
15213 #define HAVE_REQUEST_SENSE 1
15214 _ACEOF
15220 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
15221 #ifdef HAVE_SYS_SOCKET_H
15222 #include <sys/socket.h>
15223 #endif
15224 #ifdef HAVE_SYS_SOCKETVAR_H
15225 #include <sys/socketvar.h>
15226 #endif
15227 #ifdef HAVE_NET_ROUTE_H
15228 #include <net/route.h>
15229 #endif
15230 #ifdef HAVE_NETINET_IN_H
15231 #include <netinet/in.h>
15232 #endif
15233 #ifdef HAVE_NETINET_IN_SYSTM_H
15234 #include <netinet/in_systm.h>
15235 #endif
15236 #ifdef HAVE_NETINET_IP_H
15237 #include <netinet/ip.h>
15238 #endif
15239 #ifdef HAVE_NETINET_IN_PCB_H
15240 #include <netinet/in_pcb.h>
15241 #endif
15243 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
15245 cat >>confdefs.h <<_ACEOF
15246 #define HAVE_STRUCT_XINPGEN 1
15247 _ACEOF
15253 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#ifdef HAVE_LINK_H
15254 #include <link.h>
15255 #endif
15256 #ifdef HAVE_SYS_LINK_H
15257 #include <sys/link.h>
15258 #endif
15260 if test "x$ac_cv_type_struct_r_debug" = xyes; then :
15262 cat >>confdefs.h <<_ACEOF
15263 #define HAVE_STRUCT_R_DEBUG 1
15264 _ACEOF
15268 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
15269 #include <link.h>
15270 #endif
15271 #ifdef HAVE_SYS_LINK_H
15272 #include <sys/link.h>
15273 #endif
15275 if test "x$ac_cv_type_struct_link_map" = xyes; then :
15277 cat >>confdefs.h <<_ACEOF
15278 #define HAVE_STRUCT_LINK_MAP 1
15279 _ACEOF
15285 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
15286 #include <linux/input.h>
15287 #endif
15289 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
15291 cat >>confdefs.h <<_ACEOF
15292 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15293 _ACEOF
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
15300 $as_echo_n "checking for sigaddset... " >&6; }
15301 if ${wine_cv_have_sigaddset+:} false; then :
15302 $as_echo_n "(cached) " >&6
15303 else
15304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15305 /* end confdefs.h. */
15306 #include <signal.h>
15308 main ()
15310 sigset_t set; sigaddset(&set,SIGTERM);
15312 return 0;
15314 _ACEOF
15315 if ac_fn_c_try_link "$LINENO"; then :
15316 wine_cv_have_sigaddset=yes
15317 else
15318 wine_cv_have_sigaddset=no
15320 rm -f core conftest.err conftest.$ac_objext \
15321 conftest$ac_exeext conftest.$ac_ext
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
15324 $as_echo "$wine_cv_have_sigaddset" >&6; }
15325 if test "$wine_cv_have_sigaddset" = "yes"
15326 then
15328 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15334 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
15335 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
15336 $as_echo_n "(cached) " >&6
15337 else
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 #include <netdb.h>
15342 main ()
15345 char *name=0;
15346 struct hostent he;
15347 struct hostent *result;
15348 char *buf=0;
15349 int bufsize=0;
15350 int errnr;
15351 char *addr=0;
15352 int addrlen=0;
15353 int addrtype=0;
15354 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15355 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15358 return 0;
15360 _ACEOF
15361 if ac_fn_c_try_link "$LINENO"; then :
15362 wine_cv_linux_gethostbyname_r_6=yes
15363 else
15364 wine_cv_linux_gethostbyname_r_6=no
15367 rm -f core conftest.err conftest.$ac_objext \
15368 conftest$ac_exeext conftest.$ac_ext
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15372 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15373 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15374 then
15376 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15380 if test "$ac_cv_header_linux_joystick_h" = "yes"
15381 then
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15383 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15384 if ${wine_cv_linux_joystick_22_api+:} false; then :
15385 $as_echo_n "(cached) " >&6
15386 else
15387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388 /* end confdefs.h. */
15390 #include <sys/ioctl.h>
15391 #include <sys/types.h>
15392 #include <linux/joystick.h>
15394 struct js_event blub;
15395 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15396 #error "no 2.2 header"
15397 #endif
15400 main ()
15402 /*empty*/
15404 return 0;
15406 _ACEOF
15407 if ac_fn_c_try_compile "$LINENO"; then :
15408 wine_cv_linux_joystick_22_api=yes
15409 else
15410 wine_cv_linux_joystick_22_api=no
15412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15416 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15417 if test "$wine_cv_linux_joystick_22_api" = "yes"
15418 then
15420 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15426 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15427 #ifdef HAVE_SYS_PARAM_H
15428 # include <sys/param.h>
15429 #endif
15430 #ifdef HAVE_SYS_MOUNT_H
15431 # include <sys/mount.h>
15432 #endif
15433 #ifdef HAVE_SYS_VFS_H
15434 # include <sys/vfs.h>
15435 #endif
15436 #ifdef HAVE_SYS_STATFS_H
15437 # include <sys/statfs.h>
15438 #endif
15440 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15442 cat >>confdefs.h <<_ACEOF
15443 #define HAVE_STRUCT_STATFS_F_BFREE 1
15444 _ACEOF
15448 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15449 #ifdef HAVE_SYS_PARAM_H
15450 # include <sys/param.h>
15451 #endif
15452 #ifdef HAVE_SYS_MOUNT_H
15453 # include <sys/mount.h>
15454 #endif
15455 #ifdef HAVE_SYS_VFS_H
15456 # include <sys/vfs.h>
15457 #endif
15458 #ifdef HAVE_SYS_STATFS_H
15459 # include <sys/statfs.h>
15460 #endif
15462 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15464 cat >>confdefs.h <<_ACEOF
15465 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15466 _ACEOF
15470 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15471 #ifdef HAVE_SYS_PARAM_H
15472 # include <sys/param.h>
15473 #endif
15474 #ifdef HAVE_SYS_MOUNT_H
15475 # include <sys/mount.h>
15476 #endif
15477 #ifdef HAVE_SYS_VFS_H
15478 # include <sys/vfs.h>
15479 #endif
15480 #ifdef HAVE_SYS_STATFS_H
15481 # include <sys/statfs.h>
15482 #endif
15484 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15486 cat >>confdefs.h <<_ACEOF
15487 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15488 _ACEOF
15492 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15493 #ifdef HAVE_SYS_PARAM_H
15494 # include <sys/param.h>
15495 #endif
15496 #ifdef HAVE_SYS_MOUNT_H
15497 # include <sys/mount.h>
15498 #endif
15499 #ifdef HAVE_SYS_VFS_H
15500 # include <sys/vfs.h>
15501 #endif
15502 #ifdef HAVE_SYS_STATFS_H
15503 # include <sys/statfs.h>
15504 #endif
15506 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15508 cat >>confdefs.h <<_ACEOF
15509 #define HAVE_STRUCT_STATFS_F_FFREE 1
15510 _ACEOF
15514 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15515 #ifdef HAVE_SYS_PARAM_H
15516 # include <sys/param.h>
15517 #endif
15518 #ifdef HAVE_SYS_MOUNT_H
15519 # include <sys/mount.h>
15520 #endif
15521 #ifdef HAVE_SYS_VFS_H
15522 # include <sys/vfs.h>
15523 #endif
15524 #ifdef HAVE_SYS_STATFS_H
15525 # include <sys/statfs.h>
15526 #endif
15528 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15530 cat >>confdefs.h <<_ACEOF
15531 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15532 _ACEOF
15536 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15537 #ifdef HAVE_SYS_PARAM_H
15538 # include <sys/param.h>
15539 #endif
15540 #ifdef HAVE_SYS_MOUNT_H
15541 # include <sys/mount.h>
15542 #endif
15543 #ifdef HAVE_SYS_VFS_H
15544 # include <sys/vfs.h>
15545 #endif
15546 #ifdef HAVE_SYS_STATFS_H
15547 # include <sys/statfs.h>
15548 #endif
15550 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15552 cat >>confdefs.h <<_ACEOF
15553 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15554 _ACEOF
15560 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15561 #include <sys/statvfs.h>
15562 #endif
15564 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15566 cat >>confdefs.h <<_ACEOF
15567 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15568 _ACEOF
15574 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15575 #include <dirent.h>
15576 #endif
15578 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15580 cat >>confdefs.h <<_ACEOF
15581 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15582 _ACEOF
15588 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15589 #ifdef HAVE_SYS_SOCKET_H
15590 # include <sys/socket.h>
15591 #endif
15592 #ifdef HAVE_SYS_UN_H
15593 # include <sys/un.h>
15594 #endif
15596 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15598 cat >>confdefs.h <<_ACEOF
15599 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15600 _ACEOF
15604 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15605 #ifdef HAVE_SYS_SOCKET_H
15606 # include <sys/socket.h>
15607 #endif
15608 #ifdef HAVE_SYS_UN_H
15609 # include <sys/un.h>
15610 #endif
15612 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15614 cat >>confdefs.h <<_ACEOF
15615 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15616 _ACEOF
15620 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15621 #ifdef HAVE_SYS_SOCKET_H
15622 # include <sys/socket.h>
15623 #endif
15624 #ifdef HAVE_SYS_UN_H
15625 # include <sys/un.h>
15626 #endif
15628 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15630 cat >>confdefs.h <<_ACEOF
15631 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15632 _ACEOF
15638 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15639 #ifdef HAVE_SCSI_SG_H
15640 #include <scsi/sg.h>
15641 #endif
15643 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15645 cat >>confdefs.h <<_ACEOF
15646 #define HAVE_SCSIREQ_T_CMD 1
15647 _ACEOF
15651 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>
15652 #ifdef HAVE_SCSI_SG_H
15653 #include <scsi/sg.h>
15654 #endif
15656 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15658 cat >>confdefs.h <<_ACEOF
15659 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15660 _ACEOF
15666 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15668 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15670 cat >>confdefs.h <<_ACEOF
15671 #define HAVE_SIGINFO_T_SI_FD 1
15672 _ACEOF
15678 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15679 #ifdef HAVE_SYS_MTIO_H
15680 #include <sys/mtio.h>
15681 #endif
15683 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15685 cat >>confdefs.h <<_ACEOF
15686 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15687 _ACEOF
15691 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
15692 #ifdef HAVE_SYS_MTIO_H
15693 #include <sys/mtio.h>
15694 #endif
15696 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
15698 cat >>confdefs.h <<_ACEOF
15699 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
15700 _ACEOF
15704 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
15705 #ifdef HAVE_SYS_MTIO_H
15706 #include <sys/mtio.h>
15707 #endif
15709 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
15711 cat >>confdefs.h <<_ACEOF
15712 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
15713 _ACEOF
15719 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
15720 #include <getopt.h>
15721 #endif
15723 if test "x$ac_cv_member_struct_option_name" = xyes; then :
15725 cat >>confdefs.h <<_ACEOF
15726 #define HAVE_STRUCT_OPTION_NAME 1
15727 _ACEOF
15733 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
15734 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
15736 cat >>confdefs.h <<_ACEOF
15737 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15738 _ACEOF
15742 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15743 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
15745 cat >>confdefs.h <<_ACEOF
15746 #define HAVE_STRUCT_STAT_ST_MTIM 1
15747 _ACEOF
15751 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15752 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
15754 cat >>confdefs.h <<_ACEOF
15755 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
15756 _ACEOF
15760 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
15761 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
15763 cat >>confdefs.h <<_ACEOF
15764 #define HAVE_STRUCT_STAT_ST_CTIM 1
15765 _ACEOF
15769 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
15770 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
15772 cat >>confdefs.h <<_ACEOF
15773 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
15774 _ACEOF
15778 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
15779 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
15781 cat >>confdefs.h <<_ACEOF
15782 #define HAVE_STRUCT_STAT_ST_ATIM 1
15783 _ACEOF
15787 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
15788 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
15790 cat >>confdefs.h <<_ACEOF
15791 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
15792 _ACEOF
15796 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
15797 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
15799 cat >>confdefs.h <<_ACEOF
15800 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
15801 _ACEOF
15805 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
15806 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
15808 cat >>confdefs.h <<_ACEOF
15809 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
15810 _ACEOF
15814 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
15815 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
15817 cat >>confdefs.h <<_ACEOF
15818 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
15819 _ACEOF
15823 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
15824 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
15826 cat >>confdefs.h <<_ACEOF
15827 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
15828 _ACEOF
15832 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
15833 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
15835 cat >>confdefs.h <<_ACEOF
15836 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
15837 _ACEOF
15843 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
15844 #include <sys/types.h>
15845 #endif
15846 #ifdef HAVE_NETINET_IN_H
15847 #include <netinet/in.h>
15848 #endif
15850 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15852 cat >>confdefs.h <<_ACEOF
15853 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15854 _ACEOF
15860 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
15861 #include <resolv.h>
15862 #endif
15864 if test "x$ac_cv_type_struct___res_state" = xyes; then :
15866 cat >>confdefs.h <<_ACEOF
15867 #define HAVE_STRUCT___RES_STATE 1
15868 _ACEOF
15874 ac_fn_c_check_member "$LINENO" "struct __res_state" "_u._ext.nscount6" "ac_cv_member_struct___res_state__u__ext_nscount6" "#ifdef HAVE_RESOLV_H
15875 #include <resolv.h>
15876 #endif
15878 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
15880 cat >>confdefs.h <<_ACEOF
15881 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
15882 _ACEOF
15888 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
15889 #include <sys/types.h>
15890 #endif
15891 #ifdef HAVE_NETINET_IN_H
15892 # include <netinet/in.h>
15893 #endif
15894 #ifdef HAVE_ARPA_NAMESER_H
15895 # include <arpa/nameser.h>
15896 #endif
15898 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
15900 cat >>confdefs.h <<_ACEOF
15901 #define HAVE_NS_MSG__MSG_PTR 1
15902 _ACEOF
15908 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
15909 #include <sys/types.h>
15910 #endif
15911 #ifdef HAVE_NETINET_IP_H
15912 #include <netinet/ip.h>
15913 #endif
15914 #ifdef HAVE_NETINET_IP_ICMP_H
15915 #include <netinet/ip_icmp.h>
15916 #endif
15917 #ifdef HAVE_NETINET_ICMP_VAR_H
15918 #include <netinet/icmp_var.h>
15919 #endif
15921 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
15923 cat >>confdefs.h <<_ACEOF
15924 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
15925 _ACEOF
15931 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
15932 #include <sys/types.h>
15933 #endif
15934 #ifdef HAVE_ALIAS_H
15935 #include <alias.h>
15936 #endif
15937 #ifdef HAVE_SYS_SOCKET_H
15938 #include <sys/socket.h>
15939 #endif
15940 #ifdef HAVE_SYS_SOCKETVAR_H
15941 #include <sys/socketvar.h>
15942 #endif
15943 #ifdef HAVE_SYS_TIMEOUT_H
15944 #include <sys/timeout.h>
15945 #endif
15946 #ifdef HAVE_NETINET_IN_H
15947 #include <netinet/in.h>
15948 #endif
15949 #ifdef HAVE_NETINET_IN_SYSTM_H
15950 #include <netinet/in_systm.h>
15951 #endif
15952 #ifdef HAVE_NETINET_IP_H
15953 #include <netinet/ip.h>
15954 #endif
15955 #ifdef HAVE_NETINET_IP_VAR_H
15956 #include <netinet/ip_var.h>
15957 #endif
15958 #ifdef HAVE_NETINET_IP_ICMP_H
15959 #include <netinet/ip_icmp.h>
15960 #endif
15961 #ifdef HAVE_NETINET_ICMP_VAR_H
15962 #include <netinet/icmp_var.h>
15963 #endif
15965 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
15967 cat >>confdefs.h <<_ACEOF
15968 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
15969 _ACEOF
15975 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
15976 #include <sys/types.h>
15977 #endif
15978 #ifdef HAVE_SYS_SOCKETVAR_H
15979 #include <sys/socketvar.h>
15980 #endif
15981 #ifdef HAVE_NETINET_IN_H
15982 #include <netinet/in.h>
15983 #endif
15984 #ifdef HAVE_NETINET_IP_VAR_H
15985 #include <netinet/ip_var.h>
15986 #endif
15988 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
15990 cat >>confdefs.h <<_ACEOF
15991 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
15992 _ACEOF
15998 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
15999 #include <netinet/ip_var.h>
16000 #endif
16002 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
16004 cat >>confdefs.h <<_ACEOF
16005 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
16006 _ACEOF
16012 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
16013 #include <sys/types.h>
16014 #endif
16015 #ifdef HAVE_SYS_SOCKETVAR_H
16016 #include <sys/socketvar.h>
16017 #endif
16018 #ifdef HAVE_NETINET_IN_H
16019 #include <netinet/in.h>
16020 #endif
16021 #ifdef HAVE_NETINET_TCP_H
16022 #include <netinet/tcp.h>
16023 #endif
16024 #ifdef HAVE_NETINET_TCP_VAR_H
16025 #include <netinet/tcp_var.h>
16026 #endif
16028 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
16030 cat >>confdefs.h <<_ACEOF
16031 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
16032 _ACEOF
16038 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
16039 #include <netinet/tcp_var.h>
16040 #endif
16042 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
16044 cat >>confdefs.h <<_ACEOF
16045 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
16046 _ACEOF
16052 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
16053 #include <sys/types.h>
16054 #endif
16055 #ifdef HAVE_NETINET_IN_H
16056 #include <netinet/in.h>
16057 #endif
16058 #ifdef HAVE_NETINET_IP_VAR_H
16059 #include <netinet/ip_var.h>
16060 #endif
16061 #ifdef HAVE_NETINET_UDP_H
16062 #include <netinet/udp.h>
16063 #endif
16064 #ifdef HAVE_NETINET_UDP_VAR_H
16065 #include <netinet/udp_var.h>
16066 #endif
16068 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
16070 cat >>confdefs.h <<_ACEOF
16071 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
16072 _ACEOF
16078 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
16079 #include <sys/types.h>
16080 #endif
16081 #ifdef HAVE_NET_IF_H
16082 # include <net/if.h>
16083 #endif
16085 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
16087 cat >>confdefs.h <<_ACEOF
16088 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16089 _ACEOF
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16096 $as_echo_n "checking for timezone variable... " >&6; }
16097 if ${ac_cv_have_timezone+:} false; then :
16098 $as_echo_n "(cached) " >&6
16099 else
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16102 #include <time.h>
16104 main ()
16106 timezone = 1
16108 return 0;
16110 _ACEOF
16111 if ac_fn_c_try_link "$LINENO"; then :
16112 ac_cv_have_timezone="yes"
16113 else
16114 ac_cv_have_timezone="no"
16116 rm -f core conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
16120 $as_echo "$ac_cv_have_timezone" >&6; }
16121 if test "$ac_cv_have_timezone" = "yes"
16122 then
16124 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
16128 $as_echo_n "checking for daylight variable... " >&6; }
16129 if ${ac_cv_have_daylight+:} false; then :
16130 $as_echo_n "(cached) " >&6
16131 else
16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h. */
16134 #include <time.h>
16136 main ()
16138 daylight = 1
16140 return 0;
16142 _ACEOF
16143 if ac_fn_c_try_link "$LINENO"; then :
16144 ac_cv_have_daylight="yes"
16145 else
16146 ac_cv_have_daylight="no"
16148 rm -f core conftest.err conftest.$ac_objext \
16149 conftest$ac_exeext conftest.$ac_ext
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
16152 $as_echo "$ac_cv_have_daylight" >&6; }
16153 if test "$ac_cv_have_daylight" = "yes"
16154 then
16156 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16160 ac_save_LIBS="$LIBS"
16161 LIBS="$LIBS -lm"
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
16163 $as_echo_n "checking for isfinite... " >&6; }
16164 if ${ac_cv_have_isfinite+:} false; then :
16165 $as_echo_n "(cached) " >&6
16166 else
16167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16168 /* end confdefs.h. */
16169 #define _GNU_SOURCE
16170 #include <math.h>
16172 main ()
16174 float f = 0.0; return isfinite(f)
16176 return 0;
16178 _ACEOF
16179 if ac_fn_c_try_link "$LINENO"; then :
16180 ac_cv_have_isfinite="yes"
16181 else
16182 ac_cv_have_isfinite="no"
16184 rm -f core conftest.err conftest.$ac_objext \
16185 conftest$ac_exeext conftest.$ac_ext
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isfinite" >&5
16188 $as_echo "$ac_cv_have_isfinite" >&6; }
16189 if test "$ac_cv_have_isfinite" = "yes"
16190 then
16192 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16196 ac_save_LIBS="$LIBS"
16197 LIBS="$LIBS -lm"
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16199 $as_echo_n "checking for isinf... " >&6; }
16200 if ${ac_cv_have_isinf+:} false; then :
16201 $as_echo_n "(cached) " >&6
16202 else
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 #include <math.h>
16207 main ()
16209 float f = 0.0; return isinf(f)
16211 return 0;
16213 _ACEOF
16214 if ac_fn_c_try_link "$LINENO"; then :
16215 ac_cv_have_isinf="yes"
16216 else
16217 ac_cv_have_isinf="no"
16219 rm -f core conftest.err conftest.$ac_objext \
16220 conftest$ac_exeext conftest.$ac_ext
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
16223 $as_echo "$ac_cv_have_isinf" >&6; }
16224 if test "$ac_cv_have_isinf" = "yes"
16225 then
16227 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16232 $as_echo_n "checking for isnan... " >&6; }
16233 if ${ac_cv_have_isnan+:} false; then :
16234 $as_echo_n "(cached) " >&6
16235 else
16236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16237 /* end confdefs.h. */
16238 #include <math.h>
16240 main ()
16242 float f = 0.0; return isnan(f)
16244 return 0;
16246 _ACEOF
16247 if ac_fn_c_try_link "$LINENO"; then :
16248 ac_cv_have_isnan="yes"
16249 else
16250 ac_cv_have_isnan="no"
16252 rm -f core conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
16256 $as_echo "$ac_cv_have_isnan" >&6; }
16257 if test "$ac_cv_have_isnan" = "yes"
16258 then
16260 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16263 LIBS="$ac_save_LIBS"
16266 case $host_cpu in
16267 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
16268 $as_echo_n "checking whether we need to define __i386__... " >&6; }
16269 if ${ac_cv_cpp_def___i386__+:} false; then :
16270 $as_echo_n "(cached) " >&6
16271 else
16272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273 /* end confdefs.h. */
16274 #ifndef __i386__
16276 #endif
16277 _ACEOF
16278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16279 $EGREP "yes" >/dev/null 2>&1; then :
16280 ac_cv_cpp_def___i386__=yes
16281 else
16282 ac_cv_cpp_def___i386__=no
16284 rm -f conftest*
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
16288 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
16289 if test $ac_cv_cpp_def___i386__ = yes; then :
16290 CFLAGS="$CFLAGS -D__i386__"
16291 LINTFLAGS="$LINTFLAGS -D__i386__"
16292 fi ;;
16293 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
16294 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
16295 if ${ac_cv_cpp_def___x86_64__+:} false; then :
16296 $as_echo_n "(cached) " >&6
16297 else
16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h. */
16300 #ifndef __x86_64__
16302 #endif
16303 _ACEOF
16304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16305 $EGREP "yes" >/dev/null 2>&1; then :
16306 ac_cv_cpp_def___x86_64__=yes
16307 else
16308 ac_cv_cpp_def___x86_64__=no
16310 rm -f conftest*
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
16314 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
16315 if test $ac_cv_cpp_def___x86_64__ = yes; then :
16316 CFLAGS="$CFLAGS -D__x86_64__"
16317 LINTFLAGS="$LINTFLAGS -D__x86_64__"
16318 fi ;;
16319 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
16320 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
16321 if ${ac_cv_cpp_def___sparc64__+:} false; then :
16322 $as_echo_n "(cached) " >&6
16323 else
16324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h. */
16326 #ifndef __sparc64__
16328 #endif
16329 _ACEOF
16330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16331 $EGREP "yes" >/dev/null 2>&1; then :
16332 ac_cv_cpp_def___sparc64__=yes
16333 else
16334 ac_cv_cpp_def___sparc64__=no
16336 rm -f conftest*
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
16340 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
16341 if test $ac_cv_cpp_def___sparc64__ = yes; then :
16342 CFLAGS="$CFLAGS -D__sparc64__"
16343 LINTFLAGS="$LINTFLAGS -D__sparc64__"
16344 fi ;;
16345 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
16346 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
16347 if ${ac_cv_cpp_def___sparc__+:} false; then :
16348 $as_echo_n "(cached) " >&6
16349 else
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h. */
16352 #ifndef __sparc__
16354 #endif
16355 _ACEOF
16356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16357 $EGREP "yes" >/dev/null 2>&1; then :
16358 ac_cv_cpp_def___sparc__=yes
16359 else
16360 ac_cv_cpp_def___sparc__=no
16362 rm -f conftest*
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
16366 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
16367 if test $ac_cv_cpp_def___sparc__ = yes; then :
16368 CFLAGS="$CFLAGS -D__sparc__"
16369 LINTFLAGS="$LINTFLAGS -D__sparc__"
16370 fi ;;
16371 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
16372 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
16373 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
16374 $as_echo_n "(cached) " >&6
16375 else
16376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377 /* end confdefs.h. */
16378 #ifndef __powerpc64__
16380 #endif
16381 _ACEOF
16382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16383 $EGREP "yes" >/dev/null 2>&1; then :
16384 ac_cv_cpp_def___powerpc64__=yes
16385 else
16386 ac_cv_cpp_def___powerpc64__=no
16388 rm -f conftest*
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
16392 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
16393 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
16394 CFLAGS="$CFLAGS -D__powerpc64__"
16395 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
16396 fi ;;
16397 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
16398 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16399 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16400 $as_echo_n "(cached) " >&6
16401 else
16402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16403 /* end confdefs.h. */
16404 #ifndef __powerpc__
16406 #endif
16407 _ACEOF
16408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16409 $EGREP "yes" >/dev/null 2>&1; then :
16410 ac_cv_cpp_def___powerpc__=yes
16411 else
16412 ac_cv_cpp_def___powerpc__=no
16414 rm -f conftest*
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16418 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16419 if test $ac_cv_cpp_def___powerpc__ = yes; then :
16420 CFLAGS="$CFLAGS -D__powerpc__"
16421 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16422 fi ;;
16423 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16424 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16425 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16426 $as_echo_n "(cached) " >&6
16427 else
16428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429 /* end confdefs.h. */
16430 #ifndef __aarch64__
16432 #endif
16433 _ACEOF
16434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16435 $EGREP "yes" >/dev/null 2>&1; then :
16436 ac_cv_cpp_def___aarch64__=yes
16437 else
16438 ac_cv_cpp_def___aarch64__=no
16440 rm -f conftest*
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16444 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16445 if test $ac_cv_cpp_def___aarch64__ = yes; then :
16446 CFLAGS="$CFLAGS -D__aarch64__"
16447 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16448 fi ;;
16449 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16450 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16451 if ${ac_cv_cpp_def___arm__+:} false; then :
16452 $as_echo_n "(cached) " >&6
16453 else
16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16456 #ifndef __arm__
16458 #endif
16459 _ACEOF
16460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16461 $EGREP "yes" >/dev/null 2>&1; then :
16462 ac_cv_cpp_def___arm__=yes
16463 else
16464 ac_cv_cpp_def___arm__=no
16466 rm -f conftest*
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16470 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16471 if test $ac_cv_cpp_def___arm__ = yes; then :
16472 CFLAGS="$CFLAGS -D__arm__"
16473 LINTFLAGS="$LINTFLAGS -D__arm__"
16474 fi ;;
16475 esac
16477 case $host_vendor in
16478 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16479 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16480 if ${ac_cv_cpp_def___sun__+:} false; then :
16481 $as_echo_n "(cached) " >&6
16482 else
16483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16484 /* end confdefs.h. */
16485 #ifndef __sun__
16487 #endif
16488 _ACEOF
16489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16490 $EGREP "yes" >/dev/null 2>&1; then :
16491 ac_cv_cpp_def___sun__=yes
16492 else
16493 ac_cv_cpp_def___sun__=no
16495 rm -f conftest*
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16499 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16500 if test $ac_cv_cpp_def___sun__ = yes; then :
16501 CFLAGS="$CFLAGS -D__sun__"
16502 LINTFLAGS="$LINTFLAGS -D__sun__"
16503 fi ;;
16504 esac
16510 ac_config_commands="$ac_config_commands include/stamp-h"
16512 $as_echo_n "creating Makefile rules..." >&6
16515 wine_fn_append_rule "
16516 # Rules automatically generated by configure
16518 .INIT: Makefile
16519 .MAKEFILEDEPS:
16520 all: Makefile
16521 Makefile: $srcdir/Makefile.in $srcdir/Make.vars.in config.status
16522 @./config.status Make.tmp Makefile"
16524 test "$srcdir" = . && wine_fn_append_rule "all: .gitignore
16525 .gitignore: config.status
16526 @./config.status .gitignore"
16528 test -n "$CROSSTARGET" || wine_fn_append_rule "crosstest:
16529 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16531 if test "x$enable_fonts" != xno; then
16532 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16533 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16534 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16535 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16536 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16538 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16539 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16540 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16541 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16542 ac_config_links="$ac_config_links wine:tools/winewrapper"
16543 wine_fn_config_symlink wine
16544 if test "x$enable_win64" != xno; then
16545 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16546 wine_fn_config_symlink wine64
16549 wine_fn_config_makerules Make.rules
16550 MAKE_RULES=Make.rules
16551 ac_config_files="$ac_config_files Make.rules"
16554 wine_fn_config_dll acledit enable_acledit
16555 wine_fn_config_dll aclui enable_aclui implib
16556 wine_fn_config_dll activeds enable_activeds implib
16557 wine_fn_config_dll actxprxy enable_actxprxy clean
16558 wine_fn_config_lib adsiid
16559 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
16560 wine_fn_config_test dlls/advapi32/tests advapi32_test
16561 wine_fn_config_dll advpack enable_advpack implib
16562 wine_fn_config_test dlls/advpack/tests advpack_test
16563 wine_fn_config_dll amstream enable_amstream clean
16564 wine_fn_config_test dlls/amstream/tests amstream_test
16565 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
16566 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
16567 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
16568 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
16569 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
16570 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
16571 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
16572 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
16573 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
16574 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
16575 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
16576 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
16577 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
16578 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
16579 wine_fn_config_dll apphelp enable_apphelp
16580 wine_fn_config_test dlls/apphelp/tests apphelp_test
16581 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
16582 wine_fn_config_dll atl enable_atl clean,implib
16583 wine_fn_config_test dlls/atl/tests atl_test
16584 wine_fn_config_dll atl100 enable_atl100 implib
16585 wine_fn_config_test dlls/atl100/tests atl100_test
16586 wine_fn_config_dll atl110 enable_atl110
16587 wine_fn_config_dll atl80 enable_atl80 implib
16588 wine_fn_config_test dlls/atl80/tests atl80_test
16589 wine_fn_config_dll atl90 enable_atl90
16590 wine_fn_config_dll authz enable_authz
16591 wine_fn_config_dll avicap32 enable_avicap32 implib
16592 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
16593 wine_fn_config_test dlls/avifil32/tests avifil32_test
16594 wine_fn_config_dll avifile.dll16 enable_win16
16595 wine_fn_config_dll avrt enable_avrt implib
16596 wine_fn_config_dll bcrypt enable_bcrypt
16597 wine_fn_config_dll browseui enable_browseui clean,po
16598 wine_fn_config_test dlls/browseui/tests browseui_test
16599 wine_fn_config_dll cabinet enable_cabinet implib
16600 wine_fn_config_test dlls/cabinet/tests cabinet_test
16601 wine_fn_config_dll capi2032 enable_capi2032 implib
16602 wine_fn_config_dll cards enable_cards implib
16603 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
16604 wine_fn_config_dll clusapi enable_clusapi implib
16605 wine_fn_config_dll comcat enable_comcat
16606 wine_fn_config_test dlls/comcat/tests comcat_test
16607 wine_fn_config_dll comctl32 enable_comctl32 implib,po
16608 wine_fn_config_test dlls/comctl32/tests comctl32_test
16609 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
16610 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
16611 wine_fn_config_dll comm.drv16 enable_win16
16612 wine_fn_config_dll commdlg.dll16 enable_win16
16613 wine_fn_config_dll compobj.dll16 enable_win16
16614 wine_fn_config_dll compstui enable_compstui implib
16615 wine_fn_config_dll comsvcs enable_comsvcs implib
16616 wine_fn_config_dll credui enable_credui implib,po
16617 wine_fn_config_test dlls/credui/tests credui_test
16618 wine_fn_config_dll crtdll enable_crtdll implib
16619 wine_fn_config_dll crypt32 enable_crypt32 implib,po
16620 wine_fn_config_test dlls/crypt32/tests crypt32_test
16621 wine_fn_config_dll cryptdlg enable_cryptdlg po
16622 wine_fn_config_dll cryptdll enable_cryptdll implib
16623 wine_fn_config_dll cryptnet enable_cryptnet implib
16624 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
16625 wine_fn_config_dll cryptui enable_cryptui implib,po
16626 wine_fn_config_test dlls/cryptui/tests cryptui_test
16627 wine_fn_config_dll ctapi32 enable_ctapi32
16628 wine_fn_config_dll ctl3d.dll16 enable_win16
16629 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
16630 wine_fn_config_dll ctl3dv2.dll16 enable_win16
16631 wine_fn_config_dll d3d10 enable_d3d10 implib
16632 wine_fn_config_test dlls/d3d10/tests d3d10_test
16633 wine_fn_config_dll d3d10core enable_d3d10core implib
16634 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
16635 wine_fn_config_dll d3d11 enable_d3d11
16636 wine_fn_config_dll d3d8 enable_d3d8 implib
16637 wine_fn_config_test dlls/d3d8/tests d3d8_test
16638 wine_fn_config_dll d3d9 enable_d3d9 implib
16639 wine_fn_config_test dlls/d3d9/tests d3d9_test
16640 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
16641 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
16642 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
16643 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
16644 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
16645 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
16646 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
16647 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
16648 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
16649 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
16650 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
16651 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
16652 wine_fn_config_dll d3dim enable_d3dim implib
16653 wine_fn_config_dll d3drm enable_d3drm implib
16654 wine_fn_config_test dlls/d3drm/tests d3drm_test
16655 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
16656 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
16657 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
16658 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
16659 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
16660 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
16661 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
16662 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
16663 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
16664 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
16665 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
16666 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
16667 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
16668 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
16669 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
16670 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
16671 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
16672 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
16673 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
16674 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
16675 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
16676 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
16677 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
16678 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
16679 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
16680 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
16681 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
16682 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
16683 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
16684 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
16685 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
16686 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
16687 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
16688 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
16689 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
16690 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
16691 wine_fn_config_dll dbgeng enable_dbgeng implib
16692 wine_fn_config_dll dbghelp enable_dbghelp implib
16693 wine_fn_config_dll dciman32 enable_dciman32 implib
16694 wine_fn_config_dll ddeml.dll16 enable_win16
16695 wine_fn_config_dll ddraw enable_ddraw clean,implib
16696 wine_fn_config_test dlls/ddraw/tests ddraw_test
16697 wine_fn_config_dll ddrawex enable_ddrawex clean
16698 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
16699 wine_fn_config_dll devenum enable_devenum clean,po
16700 wine_fn_config_test dlls/devenum/tests devenum_test
16701 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
16702 wine_fn_config_dll difxapi enable_difxapi
16703 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
16704 wine_fn_config_test dlls/dinput/tests dinput_test
16705 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
16706 wine_fn_config_test dlls/dinput8/tests dinput8_test
16707 wine_fn_config_dll dispdib.dll16 enable_win16
16708 wine_fn_config_dll dispex enable_dispex clean
16709 wine_fn_config_test dlls/dispex/tests dispex_test
16710 wine_fn_config_dll display.drv16 enable_win16
16711 wine_fn_config_dll dmband enable_dmband clean
16712 wine_fn_config_test dlls/dmband/tests dmband_test
16713 wine_fn_config_dll dmcompos enable_dmcompos clean
16714 wine_fn_config_dll dmime enable_dmime clean
16715 wine_fn_config_test dlls/dmime/tests dmime_test
16716 wine_fn_config_dll dmloader enable_dmloader clean
16717 wine_fn_config_test dlls/dmloader/tests dmloader_test
16718 wine_fn_config_dll dmscript enable_dmscript clean
16719 wine_fn_config_dll dmstyle enable_dmstyle clean
16720 wine_fn_config_dll dmsynth enable_dmsynth clean
16721 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
16722 wine_fn_config_dll dmusic enable_dmusic clean
16723 wine_fn_config_test dlls/dmusic/tests dmusic_test
16724 wine_fn_config_dll dmusic32 enable_dmusic32 implib
16725 wine_fn_config_dll dnsapi enable_dnsapi implib
16726 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
16727 wine_fn_config_dll dplay enable_dplay implib
16728 wine_fn_config_dll dplayx enable_dplayx clean,implib
16729 wine_fn_config_test dlls/dplayx/tests dplayx_test
16730 wine_fn_config_dll dpnaddr enable_dpnaddr
16731 wine_fn_config_dll dpnet enable_dpnet clean,implib
16732 wine_fn_config_test dlls/dpnet/tests dpnet_test
16733 wine_fn_config_dll dpnhpast enable_dpnhpast
16734 wine_fn_config_dll dpnlobby enable_dpnlobby
16735 wine_fn_config_dll dpwsockx enable_dpwsockx
16736 wine_fn_config_dll drmclien enable_drmclien
16737 wine_fn_config_dll dsound enable_dsound clean,implib
16738 wine_fn_config_test dlls/dsound/tests dsound_test
16739 wine_fn_config_dll dssenh enable_dssenh
16740 wine_fn_config_test dlls/dssenh/tests dssenh_test
16741 wine_fn_config_dll dswave enable_dswave clean
16742 wine_fn_config_dll dwmapi enable_dwmapi implib
16743 wine_fn_config_dll dwrite enable_dwrite implib
16744 wine_fn_config_test dlls/dwrite/tests dwrite_test
16745 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
16746 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
16747 wine_fn_config_lib dxerr8
16748 wine_fn_config_lib dxerr9
16749 wine_fn_config_dll dxgi enable_dxgi implib
16750 wine_fn_config_test dlls/dxgi/tests dxgi_test
16751 wine_fn_config_lib dxguid
16752 wine_fn_config_dll explorerframe enable_explorerframe clean
16753 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
16754 wine_fn_config_dll faultrep enable_faultrep implib
16755 wine_fn_config_test dlls/faultrep/tests faultrep_test
16756 wine_fn_config_dll fltlib enable_fltlib
16757 wine_fn_config_dll fusion enable_fusion
16758 wine_fn_config_test dlls/fusion/tests fusion_test
16759 wine_fn_config_dll fwpuclnt enable_fwpuclnt
16760 wine_fn_config_dll gameux enable_gameux clean
16761 wine_fn_config_test dlls/gameux/tests gameux_test
16762 wine_fn_config_dll gdi.exe16 enable_win16
16763 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
16764 wine_fn_config_test dlls/gdi32/tests gdi32_test
16765 wine_fn_config_dll gdiplus enable_gdiplus implib
16766 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
16767 wine_fn_config_dll glu32 enable_glu32 implib
16768 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
16769 wine_fn_config_dll gpkcsp enable_gpkcsp
16770 wine_fn_config_dll hal enable_hal
16771 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
16772 wine_fn_config_dll hid enable_hid implib
16773 wine_fn_config_dll hlink enable_hlink clean,implib
16774 wine_fn_config_test dlls/hlink/tests hlink_test
16775 wine_fn_config_dll hnetcfg enable_hnetcfg clean
16776 wine_fn_config_dll httpapi enable_httpapi
16777 wine_fn_config_dll iccvid enable_iccvid po
16778 wine_fn_config_dll icmp enable_icmp
16779 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
16780 wine_fn_config_test dlls/ieframe/tests ieframe_test
16781 wine_fn_config_dll ifsmgr.vxd enable_win16
16782 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
16783 wine_fn_config_dll imagehlp enable_imagehlp implib
16784 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
16785 wine_fn_config_dll imm.dll16 enable_win16
16786 wine_fn_config_dll imm32 enable_imm32 implib
16787 wine_fn_config_test dlls/imm32/tests imm32_test
16788 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
16789 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16790 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16791 wine_fn_config_dll inetmib1 enable_inetmib1
16792 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16793 wine_fn_config_dll infosoft enable_infosoft clean
16794 wine_fn_config_test dlls/infosoft/tests infosoft_test
16795 wine_fn_config_dll initpki enable_initpki
16796 wine_fn_config_dll inkobj enable_inkobj
16797 wine_fn_config_dll inseng enable_inseng clean
16798 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16799 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16800 wine_fn_config_dll itircl enable_itircl
16801 wine_fn_config_dll itss enable_itss clean
16802 wine_fn_config_test dlls/itss/tests itss_test
16803 wine_fn_config_dll joy.cpl enable_joy_cpl po
16804 wine_fn_config_dll jscript enable_jscript clean,po
16805 wine_fn_config_test dlls/jscript/tests jscript_test
16806 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
16807 wine_fn_config_test dlls/kernel32/tests kernel32_test
16808 wine_fn_config_dll keyboard.drv16 enable_win16
16809 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16810 wine_fn_config_dll ktmw32 enable_ktmw32
16811 wine_fn_config_dll loadperf enable_loadperf implib
16812 wine_fn_config_dll localspl enable_localspl po
16813 wine_fn_config_test dlls/localspl/tests localspl_test
16814 wine_fn_config_dll localui enable_localui po
16815 wine_fn_config_test dlls/localui/tests localui_test
16816 wine_fn_config_dll lz32 enable_lz32 implib
16817 wine_fn_config_test dlls/lz32/tests lz32_test
16818 wine_fn_config_dll lzexpand.dll16 enable_win16
16819 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16820 wine_fn_config_test dlls/mapi32/tests mapi32_test
16821 wine_fn_config_dll mapistub enable_mapistub
16822 wine_fn_config_dll mciavi32 enable_mciavi32
16823 wine_fn_config_dll mcicda enable_mcicda
16824 wine_fn_config_dll mciqtz32 enable_mciqtz32
16825 wine_fn_config_dll mciseq enable_mciseq
16826 wine_fn_config_dll mciwave enable_mciwave
16827 wine_fn_config_dll mgmtapi enable_mgmtapi
16828 wine_fn_config_dll midimap enable_midimap
16829 wine_fn_config_dll mlang enable_mlang clean,implib
16830 wine_fn_config_test dlls/mlang/tests mlang_test
16831 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
16832 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16833 wine_fn_config_dll mmdevapi enable_mmdevapi clean
16834 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16835 wine_fn_config_dll mmdevldr.vxd enable_win16
16836 wine_fn_config_dll mmsystem.dll16 enable_win16
16837 wine_fn_config_dll monodebg.vxd enable_win16
16838 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16839 wine_fn_config_dll mouse.drv16 enable_win16
16840 wine_fn_config_dll mpr enable_mpr implib,po
16841 wine_fn_config_test dlls/mpr/tests mpr_test
16842 wine_fn_config_dll mprapi enable_mprapi implib
16843 wine_fn_config_dll msacm.dll16 enable_win16
16844 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16845 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16846 wine_fn_config_test dlls/msacm32/tests msacm32_test
16847 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16848 wine_fn_config_dll mscat32 enable_mscat32
16849 wine_fn_config_dll mscms enable_mscms implib
16850 wine_fn_config_test dlls/mscms/tests mscms_test
16851 wine_fn_config_dll mscoree enable_mscoree clean
16852 wine_fn_config_test dlls/mscoree/tests mscoree_test
16853 wine_fn_config_dll msctf enable_msctf clean
16854 wine_fn_config_test dlls/msctf/tests msctf_test
16855 wine_fn_config_dll msdaps enable_msdaps clean
16856 wine_fn_config_dll msdmo enable_msdmo implib
16857 wine_fn_config_dll msftedit enable_msftedit
16858 wine_fn_config_dll msg711.acm enable_msg711_acm
16859 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16860 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
16861 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
16862 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
16863 wine_fn_config_dll msi enable_msi clean,implib,po
16864 wine_fn_config_test dlls/msi/tests msi_test
16865 wine_fn_config_dll msident enable_msident clean
16866 wine_fn_config_dll msimg32 enable_msimg32 implib
16867 wine_fn_config_dll msimsg enable_msimsg
16868 wine_fn_config_dll msimtf enable_msimtf clean
16869 wine_fn_config_dll msisip enable_msisip
16870 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16871 wine_fn_config_dll msls31 enable_msls31
16872 wine_fn_config_dll msnet32 enable_msnet32
16873 wine_fn_config_dll mspatcha enable_mspatcha
16874 wine_fn_config_dll msrle32 enable_msrle32 po
16875 wine_fn_config_test dlls/msrle32/tests msrle32_test
16876 wine_fn_config_dll mssign32 enable_mssign32
16877 wine_fn_config_dll mssip32 enable_mssip32
16878 wine_fn_config_dll mstask enable_mstask clean
16879 wine_fn_config_test dlls/mstask/tests mstask_test
16880 wine_fn_config_dll msvcirt enable_msvcirt
16881 wine_fn_config_dll msvcm80 enable_msvcm80
16882 wine_fn_config_dll msvcm90 enable_msvcm90
16883 wine_fn_config_dll msvcp100 enable_msvcp100
16884 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16885 wine_fn_config_dll msvcp110 enable_msvcp110
16886 wine_fn_config_dll msvcp60 enable_msvcp60
16887 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16888 wine_fn_config_dll msvcp70 enable_msvcp70
16889 wine_fn_config_dll msvcp71 enable_msvcp71
16890 wine_fn_config_dll msvcp80 enable_msvcp80
16891 wine_fn_config_dll msvcp90 enable_msvcp90
16892 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16893 wine_fn_config_dll msvcr100 enable_msvcr100 implib
16894 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16895 wine_fn_config_dll msvcr110 enable_msvcr110 implib
16896 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16897 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16898 wine_fn_config_dll msvcr80 enable_msvcr80 implib
16899 wine_fn_config_dll msvcr90 enable_msvcr90 implib
16900 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16901 wine_fn_config_dll msvcrt enable_msvcrt implib
16902 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16903 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16904 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16905 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16906 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16907 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16908 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16909 wine_fn_config_dll msvidc32 enable_msvidc32 po
16910 wine_fn_config_dll msvideo.dll16 enable_win16
16911 wine_fn_config_dll mswsock enable_mswsock implib
16912 wine_fn_config_dll msxml enable_msxml clean
16913 wine_fn_config_dll msxml2 enable_msxml2 clean
16914 wine_fn_config_dll msxml3 enable_msxml3 clean
16915 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
16916 wine_fn_config_dll msxml4 enable_msxml4 clean
16917 wine_fn_config_dll msxml6 enable_msxml6 clean
16918 wine_fn_config_dll nddeapi enable_nddeapi implib
16919 wine_fn_config_dll netapi32 enable_netapi32 implib
16920 wine_fn_config_test dlls/netapi32/tests netapi32_test
16921 wine_fn_config_dll netcfgx enable_netcfgx
16922 wine_fn_config_dll newdev enable_newdev implib
16923 wine_fn_config_dll normaliz enable_normaliz implib
16924 wine_fn_config_dll npmshtml enable_npmshtml
16925 wine_fn_config_dll ntdll enable_ntdll implib
16926 wine_fn_config_test dlls/ntdll/tests ntdll_test
16927 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16928 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16929 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16930 wine_fn_config_dll ntprint enable_ntprint
16931 wine_fn_config_test dlls/ntprint/tests ntprint_test
16932 wine_fn_config_dll objsel enable_objsel clean
16933 wine_fn_config_dll odbc32 enable_odbc32 implib
16934 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16935 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16936 wine_fn_config_dll odbccu32 enable_odbccu32
16937 wine_fn_config_dll ole2.dll16 enable_win16
16938 wine_fn_config_dll ole2conv.dll16 enable_win16
16939 wine_fn_config_dll ole2disp.dll16 enable_win16
16940 wine_fn_config_dll ole2nls.dll16 enable_win16
16941 wine_fn_config_dll ole2prox.dll16 enable_win16
16942 wine_fn_config_dll ole2thk.dll16 enable_win16
16943 wine_fn_config_dll ole32 enable_ole32 clean,implib
16944 wine_fn_config_test dlls/ole32/tests ole32_test
16945 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
16946 wine_fn_config_test dlls/oleacc/tests oleacc_test
16947 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
16948 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
16949 wine_fn_config_dll olecli.dll16 enable_win16
16950 wine_fn_config_dll olecli32 enable_olecli32 implib
16951 wine_fn_config_dll oledb32 enable_oledb32 clean
16952 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
16953 wine_fn_config_dll oledlg enable_oledlg implib,po
16954 wine_fn_config_dll olepro32 enable_olepro32 implib
16955 wine_fn_config_dll olesvr.dll16 enable_win16
16956 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16957 wine_fn_config_dll olethk32 enable_olethk32
16958 wine_fn_config_dll openal32 enable_openal32
16959 wine_fn_config_dll opencl enable_opencl
16960 wine_fn_config_dll opengl32 enable_opengl32 implib
16961 wine_fn_config_test dlls/opengl32/tests opengl32_test
16962 wine_fn_config_dll pdh enable_pdh implib
16963 wine_fn_config_test dlls/pdh/tests pdh_test
16964 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16965 wine_fn_config_dll pidgen enable_pidgen
16966 wine_fn_config_dll powrprof enable_powrprof implib
16967 wine_fn_config_dll printui enable_printui
16968 wine_fn_config_dll propsys enable_propsys clean,implib
16969 wine_fn_config_test dlls/propsys/tests propsys_test
16970 wine_fn_config_dll psapi enable_psapi implib
16971 wine_fn_config_test dlls/psapi/tests psapi_test
16972 wine_fn_config_dll pstorec enable_pstorec clean
16973 wine_fn_config_dll qcap enable_qcap
16974 wine_fn_config_test dlls/qcap/tests qcap_test
16975 wine_fn_config_dll qedit enable_qedit clean
16976 wine_fn_config_test dlls/qedit/tests qedit_test
16977 wine_fn_config_dll qmgr enable_qmgr clean
16978 wine_fn_config_test dlls/qmgr/tests qmgr_test
16979 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
16980 wine_fn_config_dll quartz enable_quartz clean,implib
16981 wine_fn_config_test dlls/quartz/tests quartz_test clean
16982 wine_fn_config_dll query enable_query
16983 wine_fn_config_dll rasapi16.dll16 enable_win16
16984 wine_fn_config_dll rasapi32 enable_rasapi32 implib
16985 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
16986 wine_fn_config_dll rasdlg enable_rasdlg implib
16987 wine_fn_config_dll regapi enable_regapi
16988 wine_fn_config_dll resutils enable_resutils implib
16989 wine_fn_config_dll riched20 enable_riched20 implib
16990 wine_fn_config_test dlls/riched20/tests riched20_test
16991 wine_fn_config_dll riched32 enable_riched32
16992 wine_fn_config_test dlls/riched32/tests riched32_test
16993 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
16994 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
16995 wine_fn_config_dll rsabase enable_rsabase
16996 wine_fn_config_dll rsaenh enable_rsaenh implib
16997 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
16998 wine_fn_config_dll rstrtmgr enable_rstrtmgr
16999 wine_fn_config_dll rtutils enable_rtutils implib
17000 wine_fn_config_dll samlib enable_samlib
17001 wine_fn_config_dll sane.ds enable_sane_ds po
17002 wine_fn_config_dll scarddlg enable_scarddlg
17003 wine_fn_config_dll sccbase enable_sccbase
17004 wine_fn_config_dll schannel enable_schannel
17005 wine_fn_config_test dlls/schannel/tests schannel_test
17006 wine_fn_config_dll scrrun enable_scrrun clean
17007 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
17008 wine_fn_config_dll scsiport.sys enable_scsiport_sys
17009 wine_fn_config_dll secur32 enable_secur32 implib
17010 wine_fn_config_test dlls/secur32/tests secur32_test
17011 wine_fn_config_dll security enable_security
17012 wine_fn_config_dll sensapi enable_sensapi implib
17013 wine_fn_config_dll serialui enable_serialui implib,po
17014 wine_fn_config_test dlls/serialui/tests serialui_test
17015 wine_fn_config_dll setupapi enable_setupapi implib,po
17016 wine_fn_config_test dlls/setupapi/tests setupapi_test
17017 wine_fn_config_dll setupx.dll16 enable_win16
17018 wine_fn_config_dll sfc enable_sfc implib
17019 wine_fn_config_dll sfc_os enable_sfc_os implib
17020 wine_fn_config_dll shdoclc enable_shdoclc po
17021 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
17022 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
17023 wine_fn_config_dll shell.dll16 enable_win16
17024 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
17025 wine_fn_config_test dlls/shell32/tests shell32_test
17026 wine_fn_config_dll shfolder enable_shfolder implib
17027 wine_fn_config_dll shlwapi enable_shlwapi implib,po
17028 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
17029 wine_fn_config_dll slbcsp enable_slbcsp
17030 wine_fn_config_dll slc enable_slc implib
17031 wine_fn_config_dll snmpapi enable_snmpapi implib
17032 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
17033 wine_fn_config_dll softpub enable_softpub
17034 wine_fn_config_dll sound.drv16 enable_win16
17035 wine_fn_config_dll spoolss enable_spoolss implib
17036 wine_fn_config_test dlls/spoolss/tests spoolss_test
17037 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
17038 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
17039 wine_fn_config_dll sti enable_sti clean,implib
17040 wine_fn_config_test dlls/sti/tests sti_test
17041 wine_fn_config_dll storage.dll16 enable_win16
17042 wine_fn_config_dll stress.dll16 enable_win16
17043 wine_fn_config_lib strmbase
17044 wine_fn_config_lib strmiids
17045 wine_fn_config_dll svrapi enable_svrapi
17046 wine_fn_config_dll sxs enable_sxs implib
17047 wine_fn_config_test dlls/sxs/tests sxs_test
17048 wine_fn_config_dll system.drv16 enable_win16
17049 wine_fn_config_dll t2embed enable_t2embed
17050 wine_fn_config_dll tapi32 enable_tapi32 implib
17051 wine_fn_config_dll taskschd enable_taskschd clean
17052 wine_fn_config_dll toolhelp.dll16 enable_win16
17053 wine_fn_config_dll traffic enable_traffic
17054 wine_fn_config_dll twain.dll16 enable_win16
17055 wine_fn_config_dll twain_32 enable_twain_32
17056 wine_fn_config_test dlls/twain_32/tests twain_32_test
17057 wine_fn_config_dll typelib.dll16 enable_win16
17058 wine_fn_config_dll unicows enable_unicows implib
17059 wine_fn_config_dll updspapi enable_updspapi
17060 wine_fn_config_dll url enable_url implib
17061 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17062 wine_fn_config_test dlls/urlmon/tests urlmon_test
17063 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17064 wine_fn_config_dll user.exe16 enable_win16
17065 wine_fn_config_dll user32 enable_user32 clean,implib,po
17066 wine_fn_config_test dlls/user32/tests user32_test
17067 wine_fn_config_dll userenv enable_userenv implib
17068 wine_fn_config_test dlls/userenv/tests userenv_test
17069 wine_fn_config_dll usp10 enable_usp10 implib
17070 wine_fn_config_test dlls/usp10/tests usp10_test
17071 wine_fn_config_lib uuid
17072 wine_fn_config_dll uxtheme enable_uxtheme implib
17073 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17074 wine_fn_config_dll vbscript enable_vbscript clean
17075 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17076 wine_fn_config_dll vcomp enable_vcomp
17077 wine_fn_config_dll vcomp100 enable_vcomp100
17078 wine_fn_config_dll vcomp90 enable_vcomp90
17079 wine_fn_config_dll vdhcp.vxd enable_win16
17080 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17081 wine_fn_config_dll ver.dll16 enable_win16
17082 wine_fn_config_dll version enable_version implib
17083 wine_fn_config_test dlls/version/tests version_test
17084 wine_fn_config_dll vmm.vxd enable_win16
17085 wine_fn_config_dll vnbt.vxd enable_win16
17086 wine_fn_config_dll vnetbios.vxd enable_win16
17087 wine_fn_config_dll vtdapi.vxd enable_win16
17088 wine_fn_config_dll vwin32.vxd enable_win16
17089 wine_fn_config_dll w32skrnl enable_win16
17090 wine_fn_config_dll w32sys.dll16 enable_win16
17091 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17092 wine_fn_config_dll wbemprox enable_wbemprox clean
17093 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17094 wine_fn_config_dll webservices enable_webservices implib
17095 wine_fn_config_dll wer enable_wer implib
17096 wine_fn_config_test dlls/wer/tests wer_test
17097 wine_fn_config_dll wevtapi enable_wevtapi
17098 wine_fn_config_dll wiaservc enable_wiaservc clean
17099 wine_fn_config_dll win32s16.dll16 enable_win16
17100 wine_fn_config_dll win87em.dll16 enable_win16
17101 wine_fn_config_dll winaspi.dll16 enable_win16
17102 wine_fn_config_dll windebug.dll16 enable_win16
17103 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17104 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17105 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17106 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17107 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17108 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17109 wine_fn_config_lib winecrt0
17110 wine_fn_config_dll wined3d enable_wined3d implib
17111 wine_fn_config_dll winegstreamer enable_winegstreamer
17112 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17113 wine_fn_config_dll winemac.drv enable_winemac_drv
17114 wine_fn_config_dll winemapi enable_winemapi
17115 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17116 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17117 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17118 wine_fn_config_dll wineps16.drv16 enable_win16
17119 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17120 wine_fn_config_dll winex11.drv enable_winex11_drv
17121 wine_fn_config_dll wing.dll16 enable_win16
17122 wine_fn_config_dll wing32 enable_wing32
17123 wine_fn_config_dll winhttp enable_winhttp clean,implib
17124 wine_fn_config_test dlls/winhttp/tests winhttp_test
17125 wine_fn_config_dll wininet enable_wininet implib,po
17126 wine_fn_config_test dlls/wininet/tests wininet_test
17127 wine_fn_config_dll winmm enable_winmm implib,po
17128 wine_fn_config_test dlls/winmm/tests winmm_test
17129 wine_fn_config_dll winnls.dll16 enable_win16
17130 wine_fn_config_dll winnls32 enable_winnls32 implib
17131 wine_fn_config_dll winscard enable_winscard implib
17132 wine_fn_config_dll winsock.dll16 enable_win16
17133 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17134 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17135 wine_fn_config_dll winsta enable_winsta
17136 wine_fn_config_dll wintab.dll16 enable_win16
17137 wine_fn_config_dll wintab32 enable_wintab32 implib
17138 wine_fn_config_test dlls/wintab32/tests wintab32_test
17139 wine_fn_config_dll wintrust enable_wintrust implib
17140 wine_fn_config_test dlls/wintrust/tests wintrust_test
17141 wine_fn_config_dll wlanapi enable_wlanapi
17142 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17143 wine_fn_config_test dlls/wldap32/tests wldap32_test
17144 wine_fn_config_dll wmi enable_wmi
17145 wine_fn_config_dll wmiutils enable_wmiutils clean
17146 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17147 wine_fn_config_dll wmvcore enable_wmvcore
17148 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17149 wine_fn_config_dll wow32 enable_win16 implib
17150 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17151 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17152 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17153 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17154 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17155 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17156 wine_fn_config_dll wsock32 enable_wsock32 implib
17157 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17158 wine_fn_config_dll wuapi enable_wuapi clean
17159 wine_fn_config_dll wuaueng enable_wuaueng
17160 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17161 wine_fn_config_dll xinput1_1 enable_xinput1_1
17162 wine_fn_config_dll xinput1_2 enable_xinput1_2
17163 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17164 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17165 wine_fn_config_dll xinput1_4 enable_xinput1_4
17166 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17167 wine_fn_config_dll xmllite enable_xmllite
17168 wine_fn_config_test dlls/xmllite/tests xmllite_test
17169 wine_fn_config_dll xolehlp enable_xolehlp
17170 wine_fn_config_dll xpsprint enable_xpsprint
17171 wine_fn_config_dll xpssvcs enable_xpssvcs
17172 wine_fn_config_makefile documentation enable_documentation clean
17173 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17174 wine_fn_config_makefile include enable_include clean,install-dev
17175 wine_fn_config_makefile libs/port enable_libs_port
17176 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17177 wine_fn_config_makefile libs/wpp enable_libs_wpp
17178 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17179 wine_fn_config_program arp enable_arp install
17180 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17181 wine_fn_config_program attrib enable_attrib install,po
17182 wine_fn_config_program cabarc enable_cabarc install
17183 wine_fn_config_program cacls enable_cacls install
17184 wine_fn_config_program clock enable_clock install,po
17185 wine_fn_config_program cmd enable_cmd install,po
17186 wine_fn_config_test programs/cmd/tests cmd.exe_test
17187 wine_fn_config_program conhost enable_conhost install
17188 wine_fn_config_program control enable_control install
17189 wine_fn_config_program cscript enable_cscript install
17190 wine_fn_config_program dxdiag enable_dxdiag install,po
17191 wine_fn_config_program eject enable_eject install
17192 wine_fn_config_program expand enable_expand install
17193 wine_fn_config_program explorer enable_explorer install,po
17194 wine_fn_config_program extrac32 enable_extrac32 install
17195 wine_fn_config_program findstr enable_findstr install
17196 wine_fn_config_program hh enable_hh install
17197 wine_fn_config_program hostname enable_hostname install,po
17198 wine_fn_config_program icinfo enable_icinfo install
17199 wine_fn_config_program iexplore enable_iexplore install
17200 wine_fn_config_program ipconfig enable_ipconfig install,po
17201 wine_fn_config_program lodctr enable_lodctr install
17202 wine_fn_config_program mofcomp enable_mofcomp install
17203 wine_fn_config_program mshta enable_mshta install
17204 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17205 wine_fn_config_program net enable_net install,po
17206 wine_fn_config_program netsh enable_netsh install
17207 wine_fn_config_program netstat enable_netstat install,po
17208 wine_fn_config_program ngen enable_ngen install
17209 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17210 wine_fn_config_program oleview enable_oleview install,po
17211 wine_fn_config_program ping enable_ping install
17212 wine_fn_config_program plugplay enable_plugplay install
17213 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17214 wine_fn_config_program progman enable_progman install,po
17215 wine_fn_config_program reg enable_reg install,po
17216 wine_fn_config_program regasm enable_regasm install
17217 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17218 wine_fn_config_test programs/regedit/tests regedit.exe_test
17219 wine_fn_config_program regsvcs enable_regsvcs install
17220 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
17221 wine_fn_config_program rpcss enable_rpcss clean,install
17222 wine_fn_config_program rundll.exe16 enable_win16 install
17223 wine_fn_config_program rundll32 enable_rundll32 install
17224 wine_fn_config_program sc enable_sc install
17225 wine_fn_config_program schtasks enable_schtasks install
17226 wine_fn_config_program secedit enable_secedit install
17227 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17228 wine_fn_config_program services enable_services clean,install
17229 wine_fn_config_test programs/services/tests services.exe_test
17230 wine_fn_config_program spoolsv enable_spoolsv install
17231 wine_fn_config_program start enable_start install,po
17232 wine_fn_config_program svchost enable_svchost install
17233 wine_fn_config_program taskkill enable_taskkill install,po
17234 wine_fn_config_program tasklist enable_tasklist install
17235 wine_fn_config_program taskmgr enable_taskmgr install,po
17236 wine_fn_config_program termsv enable_termsv install
17237 wine_fn_config_program uninstaller enable_uninstaller install,po
17238 wine_fn_config_program unlodctr enable_unlodctr install
17239 wine_fn_config_program view enable_view install,po
17240 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17241 wine_fn_config_program winebrowser enable_winebrowser install
17242 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17243 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17244 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17245 wine_fn_config_program winedevice enable_winedevice install
17246 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17247 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17248 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17249 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17250 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17251 wine_fn_config_program winetest enable_winetest clean
17252 wine_fn_config_program winevdm enable_win16 install
17253 wine_fn_config_program winhelp.exe16 enable_win16 install
17254 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17255 wine_fn_config_program winoldap.mod16 enable_win16 install
17256 wine_fn_config_program winver enable_winver install
17257 wine_fn_config_program wmic enable_wmic install,po
17258 wine_fn_config_program wordpad enable_wordpad install,po
17259 wine_fn_config_program write enable_write install,po
17260 wine_fn_config_program wscript enable_wscript clean,install
17261 wine_fn_config_test programs/wscript/tests wscript.exe_test
17262 wine_fn_config_program wusa enable_wusa install
17263 wine_fn_config_program xcopy enable_xcopy install,po
17264 wine_fn_config_test programs/xcopy/tests xcopy.exe_test
17265 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17266 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17267 wine_fn_config_tool tools/widl clean,install-dev,manpage
17268 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17269 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17270 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17271 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17272 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17274 LINGUAS="\
17275 ar \
17276 bg \
17277 ca \
17278 cs \
17279 da \
17280 de \
17281 el \
17282 en \
17283 en_US \
17284 eo \
17285 es \
17286 fa \
17287 fi \
17288 fr \
17289 he \
17290 hi \
17291 hr \
17292 hu \
17293 it \
17294 ja \
17295 ko \
17296 lt \
17297 ml \
17298 nb_NO \
17299 nl \
17300 or \
17301 pa \
17302 pl \
17303 pt_BR \
17304 pt_PT \
17305 rm \
17306 ro \
17307 ru \
17308 sk \
17309 sl \
17310 sr_RS@cyrillic \
17311 sr_RS@latin \
17312 sv \
17313 te \
17314 th \
17315 tr \
17316 uk \
17317 wa \
17318 zh_CN \
17319 zh_TW"
17324 wine_fn_ignore_file ".gitignore"
17325 wine_fn_ignore_file "Makefile"
17326 wine_fn_ignore_file "TAGS"
17327 wine_fn_ignore_file "tags"
17328 wine_fn_ignore_file "autom4te.cache"
17329 wine_fn_ignore_file "config.cache"
17330 wine_fn_ignore_file "config.log"
17331 wine_fn_ignore_file "config.status"
17332 wine_fn_ignore_file "configure.lineno"
17333 wine_fn_ignore_file "include/config.h"
17334 wine_fn_ignore_file "include/stamp-h"
17335 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine"
17337 ac_config_commands="$ac_config_commands Makefile"
17340 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17344 if test "x$enable_maintainer_mode" = xyes
17345 then
17346 wine_fn_append_rule "configure: configure.ac aclocal.m4
17347 autoconf --warnings=all
17348 include/config.h.in: include/stamp-h.in
17349 include/stamp-h.in: configure.ac aclocal.m4
17350 autoheader --warnings=all
17351 @echo timestamp > \$@"
17354 if test "x$with_gettextpo" = xyes
17355 then
17356 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17357 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17358 \$(LINGUAS:%=po/%.po): po/wine.pot
17359 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17360 po/wine.pot: \$(ALL_POT_FILES)
17361 msgcat -o \$@ \$(ALL_POT_FILES)"
17364 if test "$MSGFMT" != false
17365 then
17366 PORCFLAGS="--po-dir=\$(top_builddir)/po"
17368 wine_fn_append_rule "__builddeps__: \$(ALL_MO_FILES)
17369 clean::
17370 \$(RM) \$(ALL_MO_FILES)"
17372 posrc="po"
17373 test "$srcdir" = . || posrc="$srcdir/po"
17374 for i in $LINGUAS
17376 wine_fn_ignore_file "po/$i.mo"
17377 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17378 \$(MSGFMT) -o \$@ $posrc/$i.po"
17379 done
17380 else
17381 LINGUAS=
17384 if test "x$enable_tools" != xno
17385 then
17386 ac_config_commands="$ac_config_commands tools"
17388 wine_fn_ignore_file "tools/makedep$ac_exeext"
17389 wine_fn_append_rule "tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h
17390 \$(CC) -Iinclude -I$srcdir/include -D__WINESRC__ \$(EXTRACFLAGS) \$(CPPFLAGS) \$(CFLAGS) -o \$@ $srcdir/tools/makedep.c \$(LDFLAGS)
17391 clean:: __clean__
17392 \$(RM) tools/makedep$ac_exeext"
17393 else
17394 wine_fn_append_rule "\$(MAKEDEP):
17395 @echo \"You need to run make in $TOOLSDIR first\" && false"
17398 if test -n "$with_wine64"
17399 then
17400 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17401 fonts server tools:
17402 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17403 $with_wine64/loader/wine:
17404 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17405 $with_wine64/loader/wine-preloader:
17406 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17407 clean::
17408 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17409 else
17410 as_fn_append LOADER_RULES "
17411 all: wine.inf
17413 install install-lib:: wine.inf install-man-pages
17414 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17415 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17417 uninstall::
17418 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17422 if test "$srcdir" = .
17423 then
17424 ac_config_commands="$ac_config_commands .gitignore"
17428 $as_echo " done" >&6
17429 cat >confcache <<\_ACEOF
17430 # This file is a shell script that caches the results of configure
17431 # tests run on this system so they can be shared between configure
17432 # scripts and configure runs, see configure's option --config-cache.
17433 # It is not useful on other systems. If it contains results you don't
17434 # want to keep, you may remove or edit it.
17436 # config.status only pays attention to the cache file if you give it
17437 # the --recheck option to rerun configure.
17439 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17440 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17441 # following values.
17443 _ACEOF
17445 # The following way of writing the cache mishandles newlines in values,
17446 # but we know of no workaround that is simple, portable, and efficient.
17447 # So, we kill variables containing newlines.
17448 # Ultrix sh set writes to stderr and can't be redirected directly,
17449 # and sets the high bit in the cache file unless we assign to the vars.
17451 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17452 eval ac_val=\$$ac_var
17453 case $ac_val in #(
17454 *${as_nl}*)
17455 case $ac_var in #(
17456 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17457 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17458 esac
17459 case $ac_var in #(
17460 _ | IFS | as_nl) ;; #(
17461 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17462 *) { eval $ac_var=; unset $ac_var;} ;;
17463 esac ;;
17464 esac
17465 done
17467 (set) 2>&1 |
17468 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17469 *${as_nl}ac_space=\ *)
17470 # `set' does not quote correctly, so add quotes: double-quote
17471 # substitution turns \\\\ into \\, and sed turns \\ into \.
17472 sed -n \
17473 "s/'/'\\\\''/g;
17474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17475 ;; #(
17477 # `set' quotes correctly as required by POSIX, so do not add quotes.
17478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17480 esac |
17481 sort
17483 sed '
17484 /^ac_cv_env_/b end
17485 t clear
17486 :clear
17487 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17488 t end
17489 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17490 :end' >>confcache
17491 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17492 if test -w "$cache_file"; then
17493 if test "x$cache_file" != "x/dev/null"; then
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17495 $as_echo "$as_me: updating cache $cache_file" >&6;}
17496 if test ! -f "$cache_file" || test -h "$cache_file"; then
17497 cat confcache >"$cache_file"
17498 else
17499 case $cache_file in #(
17500 */* | ?:*)
17501 mv -f confcache "$cache_file"$$ &&
17502 mv -f "$cache_file"$$ "$cache_file" ;; #(
17504 mv -f confcache "$cache_file" ;;
17505 esac
17508 else
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17510 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17513 rm -f confcache
17515 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17516 # Let make expand exec_prefix.
17517 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17519 DEFS=-DHAVE_CONFIG_H
17521 ac_libobjs=
17522 ac_ltlibobjs=
17524 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17525 # 1. Remove the extension, and $U if already installed.
17526 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17527 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17528 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17529 # will be set to the directory where LIBOBJS objects are built.
17530 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17531 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17532 done
17533 LIBOBJS=$ac_libobjs
17535 LTLIBOBJS=$ac_ltlibobjs
17539 : "${CONFIG_STATUS=./config.status}"
17540 ac_write_fail=0
17541 ac_clean_files_save=$ac_clean_files
17542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17544 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17545 as_write_fail=0
17546 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17547 #! $SHELL
17548 # Generated by $as_me.
17549 # Run this file to recreate the current configuration.
17550 # Compiler output produced by configure, useful for debugging
17551 # configure, is in config.log if it exists.
17553 debug=false
17554 ac_cs_recheck=false
17555 ac_cs_silent=false
17557 SHELL=\${CONFIG_SHELL-$SHELL}
17558 export SHELL
17559 _ASEOF
17560 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17561 ## -------------------- ##
17562 ## M4sh Initialization. ##
17563 ## -------------------- ##
17565 # Be more Bourne compatible
17566 DUALCASE=1; export DUALCASE # for MKS sh
17567 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17568 emulate sh
17569 NULLCMD=:
17570 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17571 # is contrary to our usage. Disable this feature.
17572 alias -g '${1+"$@"}'='"$@"'
17573 setopt NO_GLOB_SUBST
17574 else
17575 case `(set -o) 2>/dev/null` in #(
17576 *posix*) :
17577 set -o posix ;; #(
17578 *) :
17580 esac
17584 as_nl='
17586 export as_nl
17587 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17588 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17589 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17590 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17591 # Prefer a ksh shell builtin over an external printf program on Solaris,
17592 # but without wasting forks for bash or zsh.
17593 if test -z "$BASH_VERSION$ZSH_VERSION" \
17594 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17595 as_echo='print -r --'
17596 as_echo_n='print -rn --'
17597 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17598 as_echo='printf %s\n'
17599 as_echo_n='printf %s'
17600 else
17601 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17602 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17603 as_echo_n='/usr/ucb/echo -n'
17604 else
17605 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17606 as_echo_n_body='eval
17607 arg=$1;
17608 case $arg in #(
17609 *"$as_nl"*)
17610 expr "X$arg" : "X\\(.*\\)$as_nl";
17611 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17612 esac;
17613 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17615 export as_echo_n_body
17616 as_echo_n='sh -c $as_echo_n_body as_echo'
17618 export as_echo_body
17619 as_echo='sh -c $as_echo_body as_echo'
17622 # The user is always right.
17623 if test "${PATH_SEPARATOR+set}" != set; then
17624 PATH_SEPARATOR=:
17625 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17626 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17627 PATH_SEPARATOR=';'
17632 # IFS
17633 # We need space, tab and new line, in precisely that order. Quoting is
17634 # there to prevent editors from complaining about space-tab.
17635 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17636 # splitting by setting IFS to empty value.)
17637 IFS=" "" $as_nl"
17639 # Find who we are. Look in the path if we contain no directory separator.
17640 as_myself=
17641 case $0 in #((
17642 *[\\/]* ) as_myself=$0 ;;
17643 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17644 for as_dir in $PATH
17646 IFS=$as_save_IFS
17647 test -z "$as_dir" && as_dir=.
17648 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17649 done
17650 IFS=$as_save_IFS
17653 esac
17654 # We did not find ourselves, most probably we were run as `sh COMMAND'
17655 # in which case we are not to be found in the path.
17656 if test "x$as_myself" = x; then
17657 as_myself=$0
17659 if test ! -f "$as_myself"; then
17660 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17661 exit 1
17664 # Unset variables that we do not need and which cause bugs (e.g. in
17665 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17666 # suppresses any "Segmentation fault" message there. '((' could
17667 # trigger a bug in pdksh 5.2.14.
17668 for as_var in BASH_ENV ENV MAIL MAILPATH
17669 do eval test x\${$as_var+set} = xset \
17670 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17671 done
17672 PS1='$ '
17673 PS2='> '
17674 PS4='+ '
17676 # NLS nuisances.
17677 LC_ALL=C
17678 export LC_ALL
17679 LANGUAGE=C
17680 export LANGUAGE
17682 # CDPATH.
17683 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17686 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17687 # ----------------------------------------
17688 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17689 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17690 # script with STATUS, using 1 if that was 0.
17691 as_fn_error ()
17693 as_status=$1; test $as_status -eq 0 && as_status=1
17694 if test "$4"; then
17695 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17696 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17698 $as_echo "$as_me: error: $2" >&2
17699 as_fn_exit $as_status
17700 } # as_fn_error
17703 # as_fn_set_status STATUS
17704 # -----------------------
17705 # Set $? to STATUS, without forking.
17706 as_fn_set_status ()
17708 return $1
17709 } # as_fn_set_status
17711 # as_fn_exit STATUS
17712 # -----------------
17713 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17714 as_fn_exit ()
17716 set +e
17717 as_fn_set_status $1
17718 exit $1
17719 } # as_fn_exit
17721 # as_fn_unset VAR
17722 # ---------------
17723 # Portably unset VAR.
17724 as_fn_unset ()
17726 { eval $1=; unset $1;}
17728 as_unset=as_fn_unset
17729 # as_fn_append VAR VALUE
17730 # ----------------------
17731 # Append the text in VALUE to the end of the definition contained in VAR. Take
17732 # advantage of any shell optimizations that allow amortized linear growth over
17733 # repeated appends, instead of the typical quadratic growth present in naive
17734 # implementations.
17735 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17736 eval 'as_fn_append ()
17738 eval $1+=\$2
17740 else
17741 as_fn_append ()
17743 eval $1=\$$1\$2
17745 fi # as_fn_append
17747 # as_fn_arith ARG...
17748 # ------------------
17749 # Perform arithmetic evaluation on the ARGs, and store the result in the
17750 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17751 # must be portable across $(()) and expr.
17752 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17753 eval 'as_fn_arith ()
17755 as_val=$(( $* ))
17757 else
17758 as_fn_arith ()
17760 as_val=`expr "$@" || test $? -eq 1`
17762 fi # as_fn_arith
17765 if expr a : '\(a\)' >/dev/null 2>&1 &&
17766 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17767 as_expr=expr
17768 else
17769 as_expr=false
17772 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17773 as_basename=basename
17774 else
17775 as_basename=false
17778 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17779 as_dirname=dirname
17780 else
17781 as_dirname=false
17784 as_me=`$as_basename -- "$0" ||
17785 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17786 X"$0" : 'X\(//\)$' \| \
17787 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17788 $as_echo X/"$0" |
17789 sed '/^.*\/\([^/][^/]*\)\/*$/{
17790 s//\1/
17793 /^X\/\(\/\/\)$/{
17794 s//\1/
17797 /^X\/\(\/\).*/{
17798 s//\1/
17801 s/.*/./; q'`
17803 # Avoid depending upon Character Ranges.
17804 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17805 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17806 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17807 as_cr_digits='0123456789'
17808 as_cr_alnum=$as_cr_Letters$as_cr_digits
17810 ECHO_C= ECHO_N= ECHO_T=
17811 case `echo -n x` in #(((((
17812 -n*)
17813 case `echo 'xy\c'` in
17814 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17815 xy) ECHO_C='\c';;
17816 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17817 ECHO_T=' ';;
17818 esac;;
17820 ECHO_N='-n';;
17821 esac
17823 rm -f conf$$ conf$$.exe conf$$.file
17824 if test -d conf$$.dir; then
17825 rm -f conf$$.dir/conf$$.file
17826 else
17827 rm -f conf$$.dir
17828 mkdir conf$$.dir 2>/dev/null
17830 if (echo >conf$$.file) 2>/dev/null; then
17831 if ln -s conf$$.file conf$$ 2>/dev/null; then
17832 as_ln_s='ln -s'
17833 # ... but there are two gotchas:
17834 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17835 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17836 # In both cases, we have to default to `cp -pR'.
17837 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17838 as_ln_s='cp -pR'
17839 elif ln conf$$.file conf$$ 2>/dev/null; then
17840 as_ln_s=ln
17841 else
17842 as_ln_s='cp -pR'
17844 else
17845 as_ln_s='cp -pR'
17847 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17848 rmdir conf$$.dir 2>/dev/null
17851 # as_fn_mkdir_p
17852 # -------------
17853 # Create "$as_dir" as a directory, including parents if necessary.
17854 as_fn_mkdir_p ()
17857 case $as_dir in #(
17858 -*) as_dir=./$as_dir;;
17859 esac
17860 test -d "$as_dir" || eval $as_mkdir_p || {
17861 as_dirs=
17862 while :; do
17863 case $as_dir in #(
17864 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17865 *) as_qdir=$as_dir;;
17866 esac
17867 as_dirs="'$as_qdir' $as_dirs"
17868 as_dir=`$as_dirname -- "$as_dir" ||
17869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17870 X"$as_dir" : 'X\(//\)[^/]' \| \
17871 X"$as_dir" : 'X\(//\)$' \| \
17872 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17873 $as_echo X"$as_dir" |
17874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17875 s//\1/
17878 /^X\(\/\/\)[^/].*/{
17879 s//\1/
17882 /^X\(\/\/\)$/{
17883 s//\1/
17886 /^X\(\/\).*/{
17887 s//\1/
17890 s/.*/./; q'`
17891 test -d "$as_dir" && break
17892 done
17893 test -z "$as_dirs" || eval "mkdir $as_dirs"
17894 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17897 } # as_fn_mkdir_p
17898 if mkdir -p . 2>/dev/null; then
17899 as_mkdir_p='mkdir -p "$as_dir"'
17900 else
17901 test -d ./-p && rmdir ./-p
17902 as_mkdir_p=false
17906 # as_fn_executable_p FILE
17907 # -----------------------
17908 # Test if FILE is an executable regular file.
17909 as_fn_executable_p ()
17911 test -f "$1" && test -x "$1"
17912 } # as_fn_executable_p
17913 as_test_x='test -x'
17914 as_executable_p=as_fn_executable_p
17916 # Sed expression to map a string onto a valid CPP name.
17917 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17919 # Sed expression to map a string onto a valid variable name.
17920 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17923 exec 6>&1
17924 ## ----------------------------------- ##
17925 ## Main body of $CONFIG_STATUS script. ##
17926 ## ----------------------------------- ##
17927 _ASEOF
17928 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17931 # Save the log message, to keep $0 and so on meaningful, and to
17932 # report actual input values of CONFIG_FILES etc. instead of their
17933 # values after options handling.
17934 ac_log="
17935 This file was extended by Wine $as_me 1.7.10, which was
17936 generated by GNU Autoconf 2.69. Invocation command line was
17938 CONFIG_FILES = $CONFIG_FILES
17939 CONFIG_HEADERS = $CONFIG_HEADERS
17940 CONFIG_LINKS = $CONFIG_LINKS
17941 CONFIG_COMMANDS = $CONFIG_COMMANDS
17942 $ $0 $@
17944 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17947 _ACEOF
17949 case $ac_config_files in *"
17950 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17951 esac
17953 case $ac_config_headers in *"
17954 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17955 esac
17958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17959 # Files that config.status was made for.
17960 config_files="$ac_config_files"
17961 config_headers="$ac_config_headers"
17962 config_links="$ac_config_links"
17963 config_commands="$ac_config_commands"
17965 _ACEOF
17967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17968 ac_cs_usage="\
17969 \`$as_me' instantiates files and other configuration actions
17970 from templates according to the current configuration. Unless the files
17971 and actions are specified as TAGs, all are instantiated by default.
17973 Usage: $0 [OPTION]... [TAG]...
17975 -h, --help print this help, then exit
17976 -V, --version print version number and configuration settings, then exit
17977 --config print configuration, then exit
17978 -q, --quiet, --silent
17979 do not print progress messages
17980 -d, --debug don't remove temporary files
17981 --recheck update $as_me by reconfiguring in the same conditions
17982 --file=FILE[:TEMPLATE]
17983 instantiate the configuration file FILE
17984 --header=FILE[:TEMPLATE]
17985 instantiate the configuration header FILE
17987 Configuration files:
17988 $config_files
17990 Configuration headers:
17991 $config_headers
17993 Configuration links:
17994 $config_links
17996 Configuration commands:
17997 $config_commands
17999 Report bugs to <wine-devel@winehq.org>.
18000 Wine home page: <http://www.winehq.org>."
18002 _ACEOF
18003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18004 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18005 ac_cs_version="\\
18006 Wine config.status 1.7.10
18007 configured by $0, generated by GNU Autoconf 2.69,
18008 with options \\"\$ac_cs_config\\"
18010 Copyright (C) 2012 Free Software Foundation, Inc.
18011 This config.status script is free software; the Free Software Foundation
18012 gives unlimited permission to copy, distribute and modify it."
18014 ac_pwd='$ac_pwd'
18015 srcdir='$srcdir'
18016 MKDIR_P='$MKDIR_P'
18017 test -n "\$AWK" || AWK=awk
18018 _ACEOF
18020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18021 # The default lists apply if the user does not specify any file.
18022 ac_need_defaults=:
18023 while test $# != 0
18025 case $1 in
18026 --*=?*)
18027 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18028 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18029 ac_shift=:
18031 --*=)
18032 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18033 ac_optarg=
18034 ac_shift=:
18037 ac_option=$1
18038 ac_optarg=$2
18039 ac_shift=shift
18041 esac
18043 case $ac_option in
18044 # Handling of the options.
18045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18046 ac_cs_recheck=: ;;
18047 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18048 $as_echo "$ac_cs_version"; exit ;;
18049 --config | --confi | --conf | --con | --co | --c )
18050 $as_echo "$ac_cs_config"; exit ;;
18051 --debug | --debu | --deb | --de | --d | -d )
18052 debug=: ;;
18053 --file | --fil | --fi | --f )
18054 $ac_shift
18055 case $ac_optarg in
18056 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18057 '') as_fn_error $? "missing file argument" ;;
18058 esac
18059 as_fn_append CONFIG_FILES " '$ac_optarg'"
18060 ac_need_defaults=false;;
18061 --header | --heade | --head | --hea )
18062 $ac_shift
18063 case $ac_optarg in
18064 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18065 esac
18066 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18067 ac_need_defaults=false;;
18068 --he | --h)
18069 # Conflict between --help and --header
18070 as_fn_error $? "ambiguous option: \`$1'
18071 Try \`$0 --help' for more information.";;
18072 --help | --hel | -h )
18073 $as_echo "$ac_cs_usage"; exit ;;
18074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18075 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18076 ac_cs_silent=: ;;
18078 # This is an error.
18079 -*) as_fn_error $? "unrecognized option: \`$1'
18080 Try \`$0 --help' for more information." ;;
18082 *) as_fn_append ac_config_targets " $1"
18083 ac_need_defaults=false ;;
18085 esac
18086 shift
18087 done
18089 ac_configure_extra_args=
18091 if $ac_cs_silent; then
18092 exec 6>/dev/null
18093 ac_configure_extra_args="$ac_configure_extra_args --silent"
18096 _ACEOF
18097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18098 if \$ac_cs_recheck; then
18099 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18100 shift
18101 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18102 CONFIG_SHELL='$SHELL'
18103 export CONFIG_SHELL
18104 exec "\$@"
18107 _ACEOF
18108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18109 exec 5>>config.log
18111 echo
18112 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18113 ## Running $as_me. ##
18114 _ASBOX
18115 $as_echo "$ac_log"
18116 } >&5
18118 _ACEOF
18119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18121 # INIT-COMMANDS
18123 wine_fn_output_makefile ()
18125 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
18126 `cat $wine_rules_file`
18127 _WINE_EOF
18128 as_fn_error $? "could not create Makefile" "$LINENO" 5
18130 wine_fn_output_gitignore ()
18132 sort <<\_WINE_EOF >\$tmp/gitignore && mv -f \$tmp/gitignore \$1 && return
18133 $GITIGNORE
18134 _WINE_EOF
18135 as_fn_error $? "could not create .gitignore" "$LINENO" 5
18138 _ACEOF
18140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18142 # Handling of arguments.
18143 for ac_config_target in $ac_config_targets
18145 case $ac_config_target in
18146 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18147 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18148 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18149 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18150 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18151 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18152 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18153 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18154 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18155 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18156 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
18157 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18158 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18159 "tools") CONFIG_COMMANDS="$CONFIG_COMMANDS tools" ;;
18160 ".gitignore") CONFIG_COMMANDS="$CONFIG_COMMANDS .gitignore" ;;
18162 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18163 esac
18164 done
18167 # If the user did not use the arguments to specify the items to instantiate,
18168 # then the envvar interface is used. Set only those that are not.
18169 # We use the long form for the default assignment because of an extremely
18170 # bizarre bug on SunOS 4.1.3.
18171 if $ac_need_defaults; then
18172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18174 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18175 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18178 # Have a temporary directory for convenience. Make it in the build tree
18179 # simply because there is no reason against having it here, and in addition,
18180 # creating and moving files from /tmp can sometimes cause problems.
18181 # Hook for its removal unless debugging.
18182 # Note that there is a small window in which the directory will not be cleaned:
18183 # after its creation but before its name has been assigned to `$tmp'.
18184 $debug ||
18186 tmp= ac_tmp=
18187 trap 'exit_status=$?
18188 : "${ac_tmp:=$tmp}"
18189 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18191 trap 'as_fn_exit 1' 1 2 13 15
18193 # Create a (secure) tmp directory for tmp files.
18196 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18197 test -d "$tmp"
18198 } ||
18200 tmp=./conf$$-$RANDOM
18201 (umask 077 && mkdir "$tmp")
18202 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18203 ac_tmp=$tmp
18205 # Set up the scripts for CONFIG_FILES section.
18206 # No need to generate them if there are no CONFIG_FILES.
18207 # This happens for instance with `./config.status config.h'.
18208 if test -n "$CONFIG_FILES"; then
18210 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18211 ac_cs_awk_getline=:
18212 ac_cs_awk_pipe_init=
18213 ac_cs_awk_read_file='
18214 while ((getline aline < (F[key])) > 0)
18215 print(aline)
18216 close(F[key])'
18217 ac_cs_awk_pipe_fini=
18218 else
18219 ac_cs_awk_getline=false
18220 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18221 ac_cs_awk_read_file='
18222 print "|#_!!_#|"
18223 print "cat " F[key] " &&"
18224 '$ac_cs_awk_pipe_init
18225 # The final `:' finishes the AND list.
18226 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18228 ac_cr=`echo X | tr X '\015'`
18229 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18230 # But we know of no other shell where ac_cr would be empty at this
18231 # point, so we can use a bashism as a fallback.
18232 if test "x$ac_cr" = x; then
18233 eval ac_cr=\$\'\\r\'
18235 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18236 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18237 ac_cs_awk_cr='\\r'
18238 else
18239 ac_cs_awk_cr=$ac_cr
18242 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18243 _ACEOF
18245 # Create commands to substitute file output variables.
18247 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18248 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18249 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18250 echo "_ACAWK" &&
18251 echo "_ACEOF"
18252 } >conf$$files.sh &&
18253 . ./conf$$files.sh ||
18254 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18255 rm -f conf$$files.sh
18258 echo "cat >conf$$subs.awk <<_ACEOF" &&
18259 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18260 echo "_ACEOF"
18261 } >conf$$subs.sh ||
18262 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18263 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18264 ac_delim='%!_!# '
18265 for ac_last_try in false false false false false :; do
18266 . ./conf$$subs.sh ||
18267 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18269 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18270 if test $ac_delim_n = $ac_delim_num; then
18271 break
18272 elif $ac_last_try; then
18273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18274 else
18275 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18277 done
18278 rm -f conf$$subs.sh
18280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18281 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18282 _ACEOF
18283 sed -n '
18285 s/^/S["/; s/!.*/"]=/
18288 s/^[^!]*!//
18289 :repl
18290 t repl
18291 s/'"$ac_delim"'$//
18292 t delim
18295 s/\(.\{148\}\)..*/\1/
18296 t more1
18297 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18300 b repl
18301 :more1
18302 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18305 s/.\{148\}//
18306 t nl
18307 :delim
18309 s/\(.\{148\}\)..*/\1/
18310 t more2
18311 s/["\\]/\\&/g; s/^/"/; s/$/"/
18314 :more2
18315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18318 s/.\{148\}//
18319 t delim
18320 ' <conf$$subs.awk | sed '
18321 /^[^""]/{
18323 s/\n//
18325 ' >>$CONFIG_STATUS || ac_write_fail=1
18326 rm -f conf$$subs.awk
18327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18328 _ACAWK
18329 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18330 for (key in S) S_is_set[key] = 1
18331 FS = "\a"
18332 \$ac_cs_awk_pipe_init
18335 line = $ 0
18336 nfields = split(line, field, "@")
18337 substed = 0
18338 len = length(field[1])
18339 for (i = 2; i < nfields; i++) {
18340 key = field[i]
18341 keylen = length(key)
18342 if (S_is_set[key]) {
18343 value = S[key]
18344 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18345 len += length(value) + length(field[++i])
18346 substed = 1
18347 } else
18348 len += 1 + keylen
18350 if (nfields == 3 && !substed) {
18351 key = field[2]
18352 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18353 \$ac_cs_awk_read_file
18354 next
18357 print line
18359 \$ac_cs_awk_pipe_fini
18360 _ACAWK
18361 _ACEOF
18362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18363 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18364 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18365 else
18367 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18368 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18369 _ACEOF
18371 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18372 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18373 # trailing colons and then remove the whole line if VPATH becomes empty
18374 # (actually we leave an empty line to preserve line numbers).
18375 if test "x$srcdir" = x.; then
18376 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18378 s///
18379 s/^/:/
18380 s/[ ]*$/:/
18381 s/:\$(srcdir):/:/g
18382 s/:\${srcdir}:/:/g
18383 s/:@srcdir@:/:/g
18384 s/^:*//
18385 s/:*$//
18387 s/\(=[ ]*\).*/\1/
18389 s/\n//
18390 s/^[^=]*=[ ]*$//
18394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18395 fi # test -n "$CONFIG_FILES"
18397 # Set up the scripts for CONFIG_HEADERS section.
18398 # No need to generate them if there are no CONFIG_HEADERS.
18399 # This happens for instance with `./config.status Makefile'.
18400 if test -n "$CONFIG_HEADERS"; then
18401 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18402 BEGIN {
18403 _ACEOF
18405 # Transform confdefs.h into an awk script `defines.awk', embedded as
18406 # here-document in config.status, that substitutes the proper values into
18407 # config.h.in to produce config.h.
18409 # Create a delimiter string that does not exist in confdefs.h, to ease
18410 # handling of long lines.
18411 ac_delim='%!_!# '
18412 for ac_last_try in false false :; do
18413 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18414 if test -z "$ac_tt"; then
18415 break
18416 elif $ac_last_try; then
18417 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18418 else
18419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18421 done
18423 # For the awk script, D is an array of macro values keyed by name,
18424 # likewise P contains macro parameters if any. Preserve backslash
18425 # newline sequences.
18427 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18428 sed -n '
18429 s/.\{148\}/&'"$ac_delim"'/g
18430 t rset
18431 :rset
18432 s/^[ ]*#[ ]*define[ ][ ]*/ /
18433 t def
18435 :def
18436 s/\\$//
18437 t bsnl
18438 s/["\\]/\\&/g
18439 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18440 D["\1"]=" \3"/p
18441 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18443 :bsnl
18444 s/["\\]/\\&/g
18445 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18446 D["\1"]=" \3\\\\\\n"\\/p
18447 t cont
18448 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18449 t cont
18451 :cont
18453 s/.\{148\}/&'"$ac_delim"'/g
18454 t clear
18455 :clear
18456 s/\\$//
18457 t bsnlc
18458 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18460 :bsnlc
18461 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18462 b cont
18463 ' <confdefs.h | sed '
18464 s/'"$ac_delim"'/"\\\
18465 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18468 for (key in D) D_is_set[key] = 1
18469 FS = "\a"
18471 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18472 line = \$ 0
18473 split(line, arg, " ")
18474 if (arg[1] == "#") {
18475 defundef = arg[2]
18476 mac1 = arg[3]
18477 } else {
18478 defundef = substr(arg[1], 2)
18479 mac1 = arg[2]
18481 split(mac1, mac2, "(") #)
18482 macro = mac2[1]
18483 prefix = substr(line, 1, index(line, defundef) - 1)
18484 if (D_is_set[macro]) {
18485 # Preserve the white space surrounding the "#".
18486 print prefix "define", macro P[macro] D[macro]
18487 next
18488 } else {
18489 # Replace #undef with comments. This is necessary, for example,
18490 # in the case of _POSIX_SOURCE, which is predefined and required
18491 # on some systems where configure will not decide to define it.
18492 if (defundef == "undef") {
18493 print "/*", prefix defundef, macro, "*/"
18494 next
18498 { print }
18499 _ACAWK
18500 _ACEOF
18501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18502 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18503 fi # test -n "$CONFIG_HEADERS"
18506 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18507 shift
18508 for ac_tag
18510 case $ac_tag in
18511 :[FHLC]) ac_mode=$ac_tag; continue;;
18512 esac
18513 case $ac_mode$ac_tag in
18514 :[FHL]*:*);;
18515 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18516 :[FH]-) ac_tag=-:-;;
18517 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18518 esac
18519 ac_save_IFS=$IFS
18520 IFS=:
18521 set x $ac_tag
18522 IFS=$ac_save_IFS
18523 shift
18524 ac_file=$1
18525 shift
18527 case $ac_mode in
18528 :L) ac_source=$1;;
18529 :[FH])
18530 ac_file_inputs=
18531 for ac_f
18533 case $ac_f in
18534 -) ac_f="$ac_tmp/stdin";;
18535 *) # Look for the file first in the build tree, then in the source tree
18536 # (if the path is not absolute). The absolute path cannot be DOS-style,
18537 # because $ac_f cannot contain `:'.
18538 test -f "$ac_f" ||
18539 case $ac_f in
18540 [\\/$]*) false;;
18541 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18542 esac ||
18543 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18544 esac
18545 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18546 as_fn_append ac_file_inputs " '$ac_f'"
18547 done
18549 # Let's still pretend it is `configure' which instantiates (i.e., don't
18550 # use $as_me), people would be surprised to read:
18551 # /* config.h. Generated by config.status. */
18552 configure_input='Generated from '`
18553 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18554 `' by configure.'
18555 if test x"$ac_file" != x-; then
18556 configure_input="$ac_file. $configure_input"
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18558 $as_echo "$as_me: creating $ac_file" >&6;}
18560 # Neutralize special characters interpreted by sed in replacement strings.
18561 case $configure_input in #(
18562 *\&* | *\|* | *\\* )
18563 ac_sed_conf_input=`$as_echo "$configure_input" |
18564 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18565 *) ac_sed_conf_input=$configure_input;;
18566 esac
18568 case $ac_tag in
18569 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18571 esac
18573 esac
18575 ac_dir=`$as_dirname -- "$ac_file" ||
18576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18577 X"$ac_file" : 'X\(//\)[^/]' \| \
18578 X"$ac_file" : 'X\(//\)$' \| \
18579 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18580 $as_echo X"$ac_file" |
18581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18582 s//\1/
18585 /^X\(\/\/\)[^/].*/{
18586 s//\1/
18589 /^X\(\/\/\)$/{
18590 s//\1/
18593 /^X\(\/\).*/{
18594 s//\1/
18597 s/.*/./; q'`
18598 as_dir="$ac_dir"; as_fn_mkdir_p
18599 ac_builddir=.
18601 case "$ac_dir" in
18602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18605 # A ".." for each directory in $ac_dir_suffix.
18606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18607 case $ac_top_builddir_sub in
18608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18610 esac ;;
18611 esac
18612 ac_abs_top_builddir=$ac_pwd
18613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18614 # for backward compatibility:
18615 ac_top_builddir=$ac_top_build_prefix
18617 case $srcdir in
18618 .) # We are building in place.
18619 ac_srcdir=.
18620 ac_top_srcdir=$ac_top_builddir_sub
18621 ac_abs_top_srcdir=$ac_pwd ;;
18622 [\\/]* | ?:[\\/]* ) # Absolute name.
18623 ac_srcdir=$srcdir$ac_dir_suffix;
18624 ac_top_srcdir=$srcdir
18625 ac_abs_top_srcdir=$srcdir ;;
18626 *) # Relative name.
18627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18628 ac_top_srcdir=$ac_top_build_prefix$srcdir
18629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18630 esac
18631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18634 case $ac_mode in
18637 # CONFIG_FILE
18640 ac_MKDIR_P=$MKDIR_P
18641 case $MKDIR_P in
18642 [\\/$]* | ?:[\\/]* ) ;;
18643 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18644 esac
18645 _ACEOF
18647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18648 # If the template does not know about datarootdir, expand it.
18649 # FIXME: This hack should be removed a few years after 2.60.
18650 ac_datarootdir_hack=; ac_datarootdir_seen=
18651 ac_sed_dataroot='
18652 /datarootdir/ {
18656 /@datadir@/p
18657 /@docdir@/p
18658 /@infodir@/p
18659 /@localedir@/p
18660 /@mandir@/p'
18661 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18662 *datarootdir*) ac_datarootdir_seen=yes;;
18663 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18665 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18666 _ACEOF
18667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18668 ac_datarootdir_hack='
18669 s&@datadir@&$datadir&g
18670 s&@docdir@&$docdir&g
18671 s&@infodir@&$infodir&g
18672 s&@localedir@&$localedir&g
18673 s&@mandir@&$mandir&g
18674 s&\\\${datarootdir}&$datarootdir&g' ;;
18675 esac
18676 _ACEOF
18678 # Neutralize VPATH when `$srcdir' = `.'.
18679 # Shell code in configure.ac might set extrasub.
18680 # FIXME: do we really want to maintain this feature?
18681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18682 ac_sed_extra="$ac_vpsub
18683 $extrasub
18684 _ACEOF
18685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18688 s|@configure_input@|$ac_sed_conf_input|;t t
18689 s&@top_builddir@&$ac_top_builddir_sub&;t t
18690 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18691 s&@srcdir@&$ac_srcdir&;t t
18692 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18693 s&@top_srcdir@&$ac_top_srcdir&;t t
18694 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18695 s&@builddir@&$ac_builddir&;t t
18696 s&@abs_builddir@&$ac_abs_builddir&;t t
18697 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18698 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18699 $ac_datarootdir_hack
18701 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18702 if $ac_cs_awk_getline; then
18703 $AWK -f "$ac_tmp/subs.awk"
18704 else
18705 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18706 fi \
18707 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18709 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18710 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18711 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18712 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18714 which seems to be undefined. Please make sure it is defined" >&5
18715 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18716 which seems to be undefined. Please make sure it is defined" >&2;}
18718 rm -f "$ac_tmp/stdin"
18719 case $ac_file in
18720 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18721 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18722 esac \
18723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18727 # CONFIG_HEADER
18729 if test x"$ac_file" != x-; then
18731 $as_echo "/* $configure_input */" \
18732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18733 } >"$ac_tmp/config.h" \
18734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18735 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18737 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18738 else
18739 rm -f "$ac_file"
18740 mv "$ac_tmp/config.h" "$ac_file" \
18741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18743 else
18744 $as_echo "/* $configure_input */" \
18745 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18746 || as_fn_error $? "could not create -" "$LINENO" 5
18751 # CONFIG_LINK
18754 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18756 else
18757 # Prefer the file from the source tree if names are identical.
18758 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18759 ac_source=$srcdir/$ac_source
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18763 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18765 if test ! -r "$ac_source"; then
18766 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18768 rm -f "$ac_file"
18770 # Try a relative symlink, then a hard link, then a copy.
18771 case $ac_source in
18772 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18773 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18774 esac
18775 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18776 ln "$ac_source" "$ac_file" 2>/dev/null ||
18777 cp -p "$ac_source" "$ac_file" ||
18778 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18781 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18782 $as_echo "$as_me: executing $ac_file commands" >&6;}
18784 esac
18787 case $ac_file$ac_mode in
18788 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
18789 "Makefile":C) wine_fn_output_makefile Makefile ;;
18790 "tools":C) as_dir=tools; as_fn_mkdir_p ;;
18791 ".gitignore":C) wine_fn_output_gitignore .gitignore ;;
18793 esac
18794 done # for ac_tag
18797 as_fn_exit 0
18798 _ACEOF
18799 ac_clean_files=$ac_clean_files_save
18801 test $ac_write_fail = 0 ||
18802 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18805 # configure is writing to config.log, and then calls config.status.
18806 # config.status does its own redirection, appending to config.log.
18807 # Unfortunately, on DOS this fails, as config.log is still kept open
18808 # by configure, so config.status won't be able to write to it; its
18809 # output is simply discarded. So we exec the FD to /dev/null,
18810 # effectively closing config.log, so it can be properly (re)opened and
18811 # appended to by config.status. When coming back to configure, we
18812 # need to make the FD available again.
18813 if test "$no_create" != yes; then
18814 ac_cs_success=:
18815 ac_config_status_args=
18816 test "$silent" = yes &&
18817 ac_config_status_args="$ac_config_status_args --quiet"
18818 exec 5>/dev/null
18819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18820 exec 5>>config.log
18821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18822 # would make configure fail if this is the last instruction.
18823 $ac_cs_success || as_fn_exit 1
18825 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18827 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18831 if test "$no_create" = "yes"
18832 then
18833 exit 0
18836 ac_save_IFS="$IFS"
18837 if test "x$wine_notices != "x; then
18838 echo >&6
18839 IFS="|"
18840 for msg in $wine_notices; do
18841 IFS="$ac_save_IFS"
18842 if test -n "$msg"; then
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18844 $as_echo "$as_me: $msg" >&6;}
18846 done
18848 IFS="|"
18849 for msg in $wine_warnings; do
18850 IFS="$ac_save_IFS"
18851 if test -n "$msg"; then
18852 echo >&2
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18854 $as_echo "$as_me: WARNING: $msg" >&2;}
18856 done
18857 IFS="$ac_save_IFS"
18859 $as_echo "
18860 $as_me: Finished. Do '${ac_make}' to compile Wine.
18861 " >&6