riched20: Add UTF8 support for EM_SETTEXTEX.
[wine/multimedia.git] / configure
blob312c19ff45566cb021ab0ca4d3046f5db86d6605
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.11.
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.11'
584 PACKAGE_STRING='Wine 1.7.11'
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 LINGUAS
628 LDAPLIBS
629 LIBRT
630 LIBPOLL
631 LIBDL
632 TOOLSEXT
633 UNWINDFLAGS
634 BUILTINFLAG
635 EXTRACFLAGS
636 LIBPROCSTAT
637 LIBKSTAT
638 LIBOPENAL
639 MPG123_LIBS
640 MPG123_CFLAGS
641 TIFF_LIBS
642 TIFF_CFLAGS
643 PNG_LIBS
644 PNG_CFLAGS
645 JPEG_LIBS
646 JPEG_CFLAGS
647 FONTCONFIGINCL
648 CUPSINCL
649 CAPI20_LIBS
650 CAPI20_CFLAGS
651 OSS4INCL
652 ALSALIBS
653 GSTREAMER_LIBS
654 GSTREAMER_CFLAGS
655 LIBGETTEXTPO
656 ZLIB
657 FREETYPE_LIBS
658 FREETYPE_CFLAGS
659 LCMS2_LIBS
660 LCMS2_CFLAGS
661 RESOLVLIBS
662 GPHOTO2_PORT_LIBS
663 GPHOTO2_PORT_CFLAGS
664 GPHOTO2_LIBS
665 GPHOTO2_CFLAGS
666 SANE_LIBS
667 SANE_CFLAGS
668 GNUTLS_LIBS
669 GNUTLS_CFLAGS
670 HAL_LIBS
671 HAL_CFLAGS
672 DBUS_LIBS
673 DBUS_CFLAGS
674 XSLT_LIBS
675 XSLT_CFLAGS
676 XML2_LIBS
677 XML2_CFLAGS
678 X_EXTRA_LIBS
679 X_LIBS
680 X_PRE_LIBS
681 X_CFLAGS
682 XMKMF
683 LIBPTHREAD
684 CROSSCC
685 CROSSTARGET
686 PRELINK
687 CARBONLIB
688 QUICKTIMELIB
689 LIBOPENCL
690 FRAMEWORK_OPENAL
691 COREAUDIO
692 SECURITYLIB
693 DISKARBITRATIONLIB
694 APPKITLIB
695 CORESERVICESLIB
696 APPLICATIONSERVICESLIB
697 FORCEFEEDBACKLIB
698 IOKITLIB
699 COREFOUNDATIONLIB
700 LIBWINE_RULES
701 SOCKETLIBS
702 DLLTOOL
703 LOADER_RULES
704 ALL_TEST_RESOURCES
705 READELF
707 LDRPATH_LOCAL
708 LDRPATH_INSTALL
709 DLLFLAGS
710 DLLPREFIX
711 dlldir
713 OPENGL_LIBS
714 XLIB
715 ICOTOOL
716 CONVERT
717 RSVG
718 FONTFORGE
719 PKG_CONFIG
720 MSGFMT
721 LDCONFIG
722 EGREP
723 GREP
724 LN_S
725 RANLIB
726 ARFLAGS
727 STRIP
728 ac_ct_AR
730 BISON
731 FLEX
732 TOOLSDIR
733 TARGETFLAGS
734 CPPBIN
735 ac_ct_CXX
736 CXXFLAGS
738 OBJEXT
739 EXEEXT
740 ac_ct_CC
741 CPPFLAGS
742 LDFLAGS
743 CFLAGS
745 SET_MAKE
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_win16
796 enable_win64
797 enable_tests
798 enable_maintainer_mode
799 with_alsa
800 with_capi
801 with_cms
802 with_coreaudio
803 with_cups
804 with_curses
805 with_dbus
806 with_fontconfig
807 with_freetype
808 with_gettext
809 with_gettextpo
810 with_gphoto
811 with_glu
812 with_gnutls
813 with_gsm
814 with_gstreamer
815 with_hal
816 with_jpeg
817 with_ldap
818 with_mpg123
819 with_netapi
820 with_openal
821 with_opencl
822 with_opengl
823 with_osmesa
824 with_oss
825 with_png
826 with_pthread
827 with_sane
828 with_tiff
829 with_v4l
830 with_xcomposite
831 with_xcursor
832 with_xinerama
833 with_xinput
834 with_xinput2
835 with_xml
836 with_xrandr
837 with_xrender
838 with_xshape
839 with_xshm
840 with_xslt
841 with_xxf86vm
842 with_zlib
843 with_wine_tools
844 with_wine64
845 enable_largefile
846 with_x
847 enable_acledit
848 enable_aclui
849 enable_activeds
850 enable_actxprxy
851 enable_advapi32
852 enable_advpack
853 enable_amstream
854 enable_api_ms_win_core_debug_l1_1_1
855 enable_api_ms_win_core_errorhandling_l1_1_1
856 enable_api_ms_win_core_interlocked_l1_2_0
857 enable_api_ms_win_core_localregistry_l1_1_0
858 enable_api_ms_win_core_processthreads_l1_1_0
859 enable_api_ms_win_core_processthreads_l1_1_1
860 enable_api_ms_win_core_profile_l1_1_0
861 enable_api_ms_win_core_string_l1_1_0
862 enable_api_ms_win_core_sysinfo_l1_2_0
863 enable_api_ms_win_core_util_l1_1_0
864 enable_api_ms_win_core_winrt_error_l1_1_0
865 enable_api_ms_win_core_winrt_string_l1_1_0
866 enable_api_ms_win_downlevel_advapi32_l1_1_0
867 enable_api_ms_win_downlevel_advapi32_l2_1_0
868 enable_api_ms_win_downlevel_normaliz_l1_1_0
869 enable_api_ms_win_downlevel_ole32_l1_1_0
870 enable_api_ms_win_downlevel_shell32_l1_1_0
871 enable_api_ms_win_downlevel_shlwapi_l1_1_0
872 enable_api_ms_win_downlevel_shlwapi_l2_1_0
873 enable_api_ms_win_downlevel_user32_l1_1_0
874 enable_api_ms_win_downlevel_version_l1_1_0
875 enable_api_ms_win_security_base_l1_1_0
876 enable_apphelp
877 enable_appwiz_cpl
878 enable_atl
879 enable_atl100
880 enable_atl110
881 enable_atl80
882 enable_atl90
883 enable_authz
884 enable_avicap32
885 enable_avifil32
886 enable_avrt
887 enable_bcrypt
888 enable_browseui
889 enable_cabinet
890 enable_capi2032
891 enable_cards
892 enable_cfgmgr32
893 enable_clusapi
894 enable_comcat
895 enable_comctl32
896 enable_comdlg32
897 enable_compstui
898 enable_comsvcs
899 enable_credui
900 enable_crtdll
901 enable_crypt32
902 enable_cryptdlg
903 enable_cryptdll
904 enable_cryptnet
905 enable_cryptui
906 enable_ctapi32
907 enable_ctl3d32
908 enable_d3d10
909 enable_d3d10core
910 enable_d3d11
911 enable_d3d8
912 enable_d3d9
913 enable_d3dcompiler_33
914 enable_d3dcompiler_34
915 enable_d3dcompiler_35
916 enable_d3dcompiler_36
917 enable_d3dcompiler_37
918 enable_d3dcompiler_38
919 enable_d3dcompiler_39
920 enable_d3dcompiler_40
921 enable_d3dcompiler_41
922 enable_d3dcompiler_42
923 enable_d3dcompiler_43
924 enable_d3dim
925 enable_d3drm
926 enable_d3dx10_33
927 enable_d3dx10_34
928 enable_d3dx10_35
929 enable_d3dx10_36
930 enable_d3dx10_37
931 enable_d3dx10_38
932 enable_d3dx10_39
933 enable_d3dx10_40
934 enable_d3dx10_41
935 enable_d3dx10_42
936 enable_d3dx10_43
937 enable_d3dx11_42
938 enable_d3dx11_43
939 enable_d3dx9_24
940 enable_d3dx9_25
941 enable_d3dx9_26
942 enable_d3dx9_27
943 enable_d3dx9_28
944 enable_d3dx9_29
945 enable_d3dx9_30
946 enable_d3dx9_31
947 enable_d3dx9_32
948 enable_d3dx9_33
949 enable_d3dx9_34
950 enable_d3dx9_35
951 enable_d3dx9_36
952 enable_d3dx9_37
953 enable_d3dx9_38
954 enable_d3dx9_39
955 enable_d3dx9_40
956 enable_d3dx9_41
957 enable_d3dx9_42
958 enable_d3dx9_43
959 enable_d3dxof
960 enable_dbgeng
961 enable_dbghelp
962 enable_dciman32
963 enable_ddraw
964 enable_ddrawex
965 enable_devenum
966 enable_dhcpcsvc
967 enable_difxapi
968 enable_dinput
969 enable_dinput8
970 enable_dispex
971 enable_dmband
972 enable_dmcompos
973 enable_dmime
974 enable_dmloader
975 enable_dmscript
976 enable_dmstyle
977 enable_dmsynth
978 enable_dmusic
979 enable_dmusic32
980 enable_dnsapi
981 enable_dplay
982 enable_dplayx
983 enable_dpnaddr
984 enable_dpnet
985 enable_dpnhpast
986 enable_dpnlobby
987 enable_dpwsockx
988 enable_drmclien
989 enable_dsound
990 enable_dssenh
991 enable_dswave
992 enable_dwmapi
993 enable_dwrite
994 enable_dxdiagn
995 enable_dxgi
996 enable_explorerframe
997 enable_faultrep
998 enable_fltlib
999 enable_fusion
1000 enable_fwpuclnt
1001 enable_gameux
1002 enable_gdi32
1003 enable_gdiplus
1004 enable_glu32
1005 enable_gphoto2_ds
1006 enable_gpkcsp
1007 enable_hal
1008 enable_hhctrl_ocx
1009 enable_hid
1010 enable_hlink
1011 enable_hnetcfg
1012 enable_httpapi
1013 enable_iccvid
1014 enable_icmp
1015 enable_ieframe
1016 enable_imaadp32_acm
1017 enable_imagehlp
1018 enable_imm32
1019 enable_inetcomm
1020 enable_inetcpl_cpl
1021 enable_inetmib1
1022 enable_infosoft
1023 enable_initpki
1024 enable_inkobj
1025 enable_inseng
1026 enable_iphlpapi
1027 enable_itircl
1028 enable_itss
1029 enable_joy_cpl
1030 enable_jscript
1031 enable_kernel32
1032 enable_ktmw32
1033 enable_loadperf
1034 enable_localspl
1035 enable_localui
1036 enable_lz32
1037 enable_mapi32
1038 enable_mapistub
1039 enable_mciavi32
1040 enable_mcicda
1041 enable_mciqtz32
1042 enable_mciseq
1043 enable_mciwave
1044 enable_mgmtapi
1045 enable_midimap
1046 enable_mlang
1047 enable_mmcndmgr
1048 enable_mmdevapi
1049 enable_mountmgr_sys
1050 enable_mpr
1051 enable_mprapi
1052 enable_msacm32_drv
1053 enable_msacm32
1054 enable_msadp32_acm
1055 enable_mscat32
1056 enable_mscms
1057 enable_mscoree
1058 enable_msctf
1059 enable_msdaps
1060 enable_msdmo
1061 enable_msftedit
1062 enable_msg711_acm
1063 enable_msgsm32_acm
1064 enable_mshtml_tlb
1065 enable_mshtml
1066 enable_msi
1067 enable_msident
1068 enable_msimg32
1069 enable_msimsg
1070 enable_msimtf
1071 enable_msisip
1072 enable_msisys_ocx
1073 enable_msls31
1074 enable_msnet32
1075 enable_mspatcha
1076 enable_msrle32
1077 enable_mssign32
1078 enable_mssip32
1079 enable_mstask
1080 enable_msvcirt
1081 enable_msvcm80
1082 enable_msvcm90
1083 enable_msvcp100
1084 enable_msvcp110
1085 enable_msvcp60
1086 enable_msvcp70
1087 enable_msvcp71
1088 enable_msvcp80
1089 enable_msvcp90
1090 enable_msvcr100
1091 enable_msvcr110
1092 enable_msvcr70
1093 enable_msvcr71
1094 enable_msvcr80
1095 enable_msvcr90
1096 enable_msvcrt
1097 enable_msvcrt20
1098 enable_msvcrt40
1099 enable_msvcrtd
1100 enable_msvfw32
1101 enable_msvidc32
1102 enable_mswsock
1103 enable_msxml
1104 enable_msxml2
1105 enable_msxml3
1106 enable_msxml4
1107 enable_msxml6
1108 enable_nddeapi
1109 enable_netapi32
1110 enable_netcfgx
1111 enable_newdev
1112 enable_normaliz
1113 enable_npmshtml
1114 enable_ntdll
1115 enable_ntdsapi
1116 enable_ntoskrnl_exe
1117 enable_ntprint
1118 enable_objsel
1119 enable_odbc32
1120 enable_odbccp32
1121 enable_odbccu32
1122 enable_ole32
1123 enable_oleacc
1124 enable_oleaut32
1125 enable_olecli32
1126 enable_oledb32
1127 enable_oledlg
1128 enable_olepro32
1129 enable_olesvr32
1130 enable_olethk32
1131 enable_openal32
1132 enable_opencl
1133 enable_opengl32
1134 enable_pdh
1135 enable_photometadatahandler
1136 enable_pidgen
1137 enable_powrprof
1138 enable_printui
1139 enable_propsys
1140 enable_psapi
1141 enable_pstorec
1142 enable_qcap
1143 enable_qedit
1144 enable_qmgr
1145 enable_qmgrprxy
1146 enable_quartz
1147 enable_query
1148 enable_rasapi32
1149 enable_rasdlg
1150 enable_regapi
1151 enable_resutils
1152 enable_riched20
1153 enable_riched32
1154 enable_rpcrt4
1155 enable_rsabase
1156 enable_rsaenh
1157 enable_rstrtmgr
1158 enable_rtutils
1159 enable_samlib
1160 enable_sane_ds
1161 enable_scarddlg
1162 enable_sccbase
1163 enable_schannel
1164 enable_scrrun
1165 enable_scsiport_sys
1166 enable_secur32
1167 enable_security
1168 enable_sensapi
1169 enable_serialui
1170 enable_setupapi
1171 enable_sfc
1172 enable_sfc_os
1173 enable_shdoclc
1174 enable_shdocvw
1175 enable_shell32
1176 enable_shfolder
1177 enable_shlwapi
1178 enable_slbcsp
1179 enable_slc
1180 enable_snmpapi
1181 enable_softpub
1182 enable_spoolss
1183 enable_stdole2_tlb
1184 enable_stdole32_tlb
1185 enable_sti
1186 enable_svrapi
1187 enable_sxs
1188 enable_t2embed
1189 enable_tapi32
1190 enable_taskschd
1191 enable_traffic
1192 enable_twain_32
1193 enable_unicows
1194 enable_updspapi
1195 enable_url
1196 enable_urlmon
1197 enable_usbd_sys
1198 enable_user32
1199 enable_userenv
1200 enable_usp10
1201 enable_uxtheme
1202 enable_vbscript
1203 enable_vcomp
1204 enable_vcomp100
1205 enable_vcomp90
1206 enable_vdmdbg
1207 enable_version
1208 enable_wbemdisp
1209 enable_wbemprox
1210 enable_webservices
1211 enable_wer
1212 enable_wevtapi
1213 enable_wiaservc
1214 enable_windowscodecs
1215 enable_windowscodecsext
1216 enable_winealsa_drv
1217 enable_winecoreaudio_drv
1218 enable_wined3d
1219 enable_winegstreamer
1220 enable_winejoystick_drv
1221 enable_winemac_drv
1222 enable_winemapi
1223 enable_winemp3_acm
1224 enable_wineoss_drv
1225 enable_wineps_drv
1226 enable_wineqtdecoder
1227 enable_winex11_drv
1228 enable_wing32
1229 enable_winhttp
1230 enable_wininet
1231 enable_winmm
1232 enable_winnls32
1233 enable_winscard
1234 enable_winspool_drv
1235 enable_winsta
1236 enable_wintab32
1237 enable_wintrust
1238 enable_wlanapi
1239 enable_wldap32
1240 enable_wmi
1241 enable_wmiutils
1242 enable_wmp
1243 enable_wmvcore
1244 enable_wnaspi32
1245 enable_ws2_32
1246 enable_wshom_ocx
1247 enable_wsnmp32
1248 enable_wsock32
1249 enable_wtsapi32
1250 enable_wuapi
1251 enable_wuaueng
1252 enable_xapofx1_1
1253 enable_xinput1_1
1254 enable_xinput1_2
1255 enable_xinput1_3
1256 enable_xinput1_4
1257 enable_xinput9_1_0
1258 enable_xmllite
1259 enable_xolehlp
1260 enable_xpsprint
1261 enable_xpssvcs
1262 enable_documentation
1263 enable_fonts
1264 enable_include
1265 enable_libs_port
1266 enable_libs_wine
1267 enable_libs_wpp
1268 enable_loader
1269 enable_arp
1270 enable_aspnet_regiis
1271 enable_attrib
1272 enable_cabarc
1273 enable_cacls
1274 enable_clock
1275 enable_cmd
1276 enable_conhost
1277 enable_control
1278 enable_cscript
1279 enable_dxdiag
1280 enable_eject
1281 enable_expand
1282 enable_explorer
1283 enable_extrac32
1284 enable_findstr
1285 enable_hh
1286 enable_hostname
1287 enable_icinfo
1288 enable_iexplore
1289 enable_ipconfig
1290 enable_lodctr
1291 enable_mofcomp
1292 enable_mshta
1293 enable_msiexec
1294 enable_net
1295 enable_netsh
1296 enable_netstat
1297 enable_ngen
1298 enable_notepad
1299 enable_oleview
1300 enable_ping
1301 enable_plugplay
1302 enable_presentationfontcache
1303 enable_progman
1304 enable_reg
1305 enable_regasm
1306 enable_regedit
1307 enable_regsvcs
1308 enable_regsvr32
1309 enable_rpcss
1310 enable_rundll32
1311 enable_sc
1312 enable_schtasks
1313 enable_secedit
1314 enable_servicemodelreg
1315 enable_services
1316 enable_spoolsv
1317 enable_start
1318 enable_svchost
1319 enable_taskkill
1320 enable_tasklist
1321 enable_taskmgr
1322 enable_termsv
1323 enable_uninstaller
1324 enable_unlodctr
1325 enable_view
1326 enable_wineboot
1327 enable_winebrowser
1328 enable_winecfg
1329 enable_wineconsole
1330 enable_winedbg
1331 enable_winedevice
1332 enable_winefile
1333 enable_winemenubuilder
1334 enable_winemine
1335 enable_winemsibuilder
1336 enable_winepath
1337 enable_winetest
1338 enable_winhlp32
1339 enable_winver
1340 enable_wmic
1341 enable_wordpad
1342 enable_write
1343 enable_wscript
1344 enable_wusa
1345 enable_xcopy
1346 enable_server
1347 enable_tools
1349 ac_precious_vars='build_alias
1350 host_alias
1351 target_alias
1353 CFLAGS
1354 LDFLAGS
1355 LIBS
1356 CPPFLAGS
1358 CXXFLAGS
1361 XMKMF
1362 XML2_CFLAGS
1363 XML2_LIBS
1364 XSLT_CFLAGS
1365 XSLT_LIBS
1366 DBUS_CFLAGS
1367 DBUS_LIBS
1368 HAL_CFLAGS
1369 HAL_LIBS
1370 GNUTLS_CFLAGS
1371 GNUTLS_LIBS
1372 SANE_CFLAGS
1373 SANE_LIBS
1374 GPHOTO2_CFLAGS
1375 GPHOTO2_LIBS
1376 GPHOTO2_PORT_CFLAGS
1377 GPHOTO2_PORT_LIBS
1378 LCMS2_CFLAGS
1379 LCMS2_LIBS
1380 FREETYPE_CFLAGS
1381 FREETYPE_LIBS
1382 GSTREAMER_CFLAGS
1383 GSTREAMER_LIBS
1384 CAPI20_CFLAGS
1385 CAPI20_LIBS
1386 JPEG_CFLAGS
1387 JPEG_LIBS
1388 PNG_CFLAGS
1389 PNG_LIBS
1390 TIFF_CFLAGS
1391 TIFF_LIBS
1392 MPG123_CFLAGS
1393 MPG123_LIBS'
1396 # Initialize some variables set by options.
1397 ac_init_help=
1398 ac_init_version=false
1399 ac_unrecognized_opts=
1400 ac_unrecognized_sep=
1401 # The variables have the same names as the options, with
1402 # dashes changed to underlines.
1403 cache_file=/dev/null
1404 exec_prefix=NONE
1405 no_create=
1406 no_recursion=
1407 prefix=NONE
1408 program_prefix=NONE
1409 program_suffix=NONE
1410 program_transform_name=s,x,x,
1411 silent=
1412 site=
1413 srcdir=
1414 verbose=
1415 x_includes=NONE
1416 x_libraries=NONE
1418 # Installation directory options.
1419 # These are left unexpanded so users can "make install exec_prefix=/foo"
1420 # and all the variables that are supposed to be based on exec_prefix
1421 # by default will actually change.
1422 # Use braces instead of parens because sh, perl, etc. also accept them.
1423 # (The list follows the same order as the GNU Coding Standards.)
1424 bindir='${exec_prefix}/bin'
1425 sbindir='${exec_prefix}/sbin'
1426 libexecdir='${exec_prefix}/libexec'
1427 datarootdir='${prefix}/share'
1428 datadir='${datarootdir}'
1429 sysconfdir='${prefix}/etc'
1430 sharedstatedir='${prefix}/com'
1431 localstatedir='${prefix}/var'
1432 includedir='${prefix}/include'
1433 oldincludedir='/usr/include'
1434 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1435 infodir='${datarootdir}/info'
1436 htmldir='${docdir}'
1437 dvidir='${docdir}'
1438 pdfdir='${docdir}'
1439 psdir='${docdir}'
1440 libdir='${exec_prefix}/lib'
1441 localedir='${datarootdir}/locale'
1442 mandir='${datarootdir}/man'
1444 ac_prev=
1445 ac_dashdash=
1446 for ac_option
1448 # If the previous option needs an argument, assign it.
1449 if test -n "$ac_prev"; then
1450 eval $ac_prev=\$ac_option
1451 ac_prev=
1452 continue
1455 case $ac_option in
1456 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1457 *=) ac_optarg= ;;
1458 *) ac_optarg=yes ;;
1459 esac
1461 # Accept the important Cygnus configure options, so we can diagnose typos.
1463 case $ac_dashdash$ac_option in
1465 ac_dashdash=yes ;;
1467 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1468 ac_prev=bindir ;;
1469 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1470 bindir=$ac_optarg ;;
1472 -build | --build | --buil | --bui | --bu)
1473 ac_prev=build_alias ;;
1474 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1475 build_alias=$ac_optarg ;;
1477 -cache-file | --cache-file | --cache-fil | --cache-fi \
1478 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1479 ac_prev=cache_file ;;
1480 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1481 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1482 cache_file=$ac_optarg ;;
1484 --config-cache | -C)
1485 cache_file=config.cache ;;
1487 -datadir | --datadir | --datadi | --datad)
1488 ac_prev=datadir ;;
1489 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1490 datadir=$ac_optarg ;;
1492 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1493 | --dataroo | --dataro | --datar)
1494 ac_prev=datarootdir ;;
1495 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1496 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1497 datarootdir=$ac_optarg ;;
1499 -disable-* | --disable-*)
1500 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1501 # Reject names that are not valid shell variable names.
1502 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1503 as_fn_error $? "invalid feature name: $ac_useropt"
1504 ac_useropt_orig=$ac_useropt
1505 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1506 case $ac_user_opts in
1508 "enable_$ac_useropt"
1509 "*) ;;
1510 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1511 ac_unrecognized_sep=', ';;
1512 esac
1513 eval enable_$ac_useropt=no ;;
1515 -docdir | --docdir | --docdi | --doc | --do)
1516 ac_prev=docdir ;;
1517 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1518 docdir=$ac_optarg ;;
1520 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1521 ac_prev=dvidir ;;
1522 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1523 dvidir=$ac_optarg ;;
1525 -enable-* | --enable-*)
1526 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1527 # Reject names that are not valid shell variable names.
1528 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1529 as_fn_error $? "invalid feature name: $ac_useropt"
1530 ac_useropt_orig=$ac_useropt
1531 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1532 case $ac_user_opts in
1534 "enable_$ac_useropt"
1535 "*) ;;
1536 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1537 ac_unrecognized_sep=', ';;
1538 esac
1539 eval enable_$ac_useropt=\$ac_optarg ;;
1541 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1542 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1543 | --exec | --exe | --ex)
1544 ac_prev=exec_prefix ;;
1545 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1546 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1547 | --exec=* | --exe=* | --ex=*)
1548 exec_prefix=$ac_optarg ;;
1550 -gas | --gas | --ga | --g)
1551 # Obsolete; use --with-gas.
1552 with_gas=yes ;;
1554 -help | --help | --hel | --he | -h)
1555 ac_init_help=long ;;
1556 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1557 ac_init_help=recursive ;;
1558 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1559 ac_init_help=short ;;
1561 -host | --host | --hos | --ho)
1562 ac_prev=host_alias ;;
1563 -host=* | --host=* | --hos=* | --ho=*)
1564 host_alias=$ac_optarg ;;
1566 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1567 ac_prev=htmldir ;;
1568 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1569 | --ht=*)
1570 htmldir=$ac_optarg ;;
1572 -includedir | --includedir | --includedi | --included | --include \
1573 | --includ | --inclu | --incl | --inc)
1574 ac_prev=includedir ;;
1575 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1576 | --includ=* | --inclu=* | --incl=* | --inc=*)
1577 includedir=$ac_optarg ;;
1579 -infodir | --infodir | --infodi | --infod | --info | --inf)
1580 ac_prev=infodir ;;
1581 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1582 infodir=$ac_optarg ;;
1584 -libdir | --libdir | --libdi | --libd)
1585 ac_prev=libdir ;;
1586 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1587 libdir=$ac_optarg ;;
1589 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1590 | --libexe | --libex | --libe)
1591 ac_prev=libexecdir ;;
1592 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1593 | --libexe=* | --libex=* | --libe=*)
1594 libexecdir=$ac_optarg ;;
1596 -localedir | --localedir | --localedi | --localed | --locale)
1597 ac_prev=localedir ;;
1598 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1599 localedir=$ac_optarg ;;
1601 -localstatedir | --localstatedir | --localstatedi | --localstated \
1602 | --localstate | --localstat | --localsta | --localst | --locals)
1603 ac_prev=localstatedir ;;
1604 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1605 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1606 localstatedir=$ac_optarg ;;
1608 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1609 ac_prev=mandir ;;
1610 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1611 mandir=$ac_optarg ;;
1613 -nfp | --nfp | --nf)
1614 # Obsolete; use --without-fp.
1615 with_fp=no ;;
1617 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1618 | --no-cr | --no-c | -n)
1619 no_create=yes ;;
1621 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1622 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1623 no_recursion=yes ;;
1625 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1626 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1627 | --oldin | --oldi | --old | --ol | --o)
1628 ac_prev=oldincludedir ;;
1629 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1630 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1631 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1632 oldincludedir=$ac_optarg ;;
1634 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1635 ac_prev=prefix ;;
1636 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1637 prefix=$ac_optarg ;;
1639 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1640 | --program-pre | --program-pr | --program-p)
1641 ac_prev=program_prefix ;;
1642 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1643 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1644 program_prefix=$ac_optarg ;;
1646 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1647 | --program-suf | --program-su | --program-s)
1648 ac_prev=program_suffix ;;
1649 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1650 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1651 program_suffix=$ac_optarg ;;
1653 -program-transform-name | --program-transform-name \
1654 | --program-transform-nam | --program-transform-na \
1655 | --program-transform-n | --program-transform- \
1656 | --program-transform | --program-transfor \
1657 | --program-transfo | --program-transf \
1658 | --program-trans | --program-tran \
1659 | --progr-tra | --program-tr | --program-t)
1660 ac_prev=program_transform_name ;;
1661 -program-transform-name=* | --program-transform-name=* \
1662 | --program-transform-nam=* | --program-transform-na=* \
1663 | --program-transform-n=* | --program-transform-=* \
1664 | --program-transform=* | --program-transfor=* \
1665 | --program-transfo=* | --program-transf=* \
1666 | --program-trans=* | --program-tran=* \
1667 | --progr-tra=* | --program-tr=* | --program-t=*)
1668 program_transform_name=$ac_optarg ;;
1670 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1671 ac_prev=pdfdir ;;
1672 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1673 pdfdir=$ac_optarg ;;
1675 -psdir | --psdir | --psdi | --psd | --ps)
1676 ac_prev=psdir ;;
1677 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1678 psdir=$ac_optarg ;;
1680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1681 | -silent | --silent | --silen | --sile | --sil)
1682 silent=yes ;;
1684 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1685 ac_prev=sbindir ;;
1686 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1687 | --sbi=* | --sb=*)
1688 sbindir=$ac_optarg ;;
1690 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1691 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1692 | --sharedst | --shareds | --shared | --share | --shar \
1693 | --sha | --sh)
1694 ac_prev=sharedstatedir ;;
1695 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1696 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1697 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1698 | --sha=* | --sh=*)
1699 sharedstatedir=$ac_optarg ;;
1701 -site | --site | --sit)
1702 ac_prev=site ;;
1703 -site=* | --site=* | --sit=*)
1704 site=$ac_optarg ;;
1706 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1707 ac_prev=srcdir ;;
1708 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1709 srcdir=$ac_optarg ;;
1711 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1712 | --syscon | --sysco | --sysc | --sys | --sy)
1713 ac_prev=sysconfdir ;;
1714 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1715 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1716 sysconfdir=$ac_optarg ;;
1718 -target | --target | --targe | --targ | --tar | --ta | --t)
1719 ac_prev=target_alias ;;
1720 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1721 target_alias=$ac_optarg ;;
1723 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1724 verbose=yes ;;
1726 -version | --version | --versio | --versi | --vers | -V)
1727 ac_init_version=: ;;
1729 -with-* | --with-*)
1730 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1731 # Reject names that are not valid shell variable names.
1732 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1733 as_fn_error $? "invalid package name: $ac_useropt"
1734 ac_useropt_orig=$ac_useropt
1735 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1736 case $ac_user_opts in
1738 "with_$ac_useropt"
1739 "*) ;;
1740 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1741 ac_unrecognized_sep=', ';;
1742 esac
1743 eval with_$ac_useropt=\$ac_optarg ;;
1745 -without-* | --without-*)
1746 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1747 # Reject names that are not valid shell variable names.
1748 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1749 as_fn_error $? "invalid package name: $ac_useropt"
1750 ac_useropt_orig=$ac_useropt
1751 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1752 case $ac_user_opts in
1754 "with_$ac_useropt"
1755 "*) ;;
1756 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1757 ac_unrecognized_sep=', ';;
1758 esac
1759 eval with_$ac_useropt=no ;;
1761 --x)
1762 # Obsolete; use --with-x.
1763 with_x=yes ;;
1765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1766 | --x-incl | --x-inc | --x-in | --x-i)
1767 ac_prev=x_includes ;;
1768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1770 x_includes=$ac_optarg ;;
1772 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1774 ac_prev=x_libraries ;;
1775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1777 x_libraries=$ac_optarg ;;
1779 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1780 Try \`$0 --help' for more information"
1783 *=*)
1784 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1785 # Reject names that are not valid shell variable names.
1786 case $ac_envvar in #(
1787 '' | [0-9]* | *[!_$as_cr_alnum]* )
1788 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1789 esac
1790 eval $ac_envvar=\$ac_optarg
1791 export $ac_envvar ;;
1794 # FIXME: should be removed in autoconf 3.0.
1795 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1796 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1797 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1798 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1801 esac
1802 done
1804 if test -n "$ac_prev"; then
1805 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1806 as_fn_error $? "missing argument to $ac_option"
1809 if test -n "$ac_unrecognized_opts"; then
1810 case $enable_option_checking in
1811 no) ;;
1812 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1813 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1814 esac
1817 # Check all directory arguments for consistency.
1818 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1819 datadir sysconfdir sharedstatedir localstatedir includedir \
1820 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1821 libdir localedir mandir
1823 eval ac_val=\$$ac_var
1824 # Remove trailing slashes.
1825 case $ac_val in
1826 */ )
1827 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1828 eval $ac_var=\$ac_val;;
1829 esac
1830 # Be sure to have absolute directory names.
1831 case $ac_val in
1832 [\\/$]* | ?:[\\/]* ) continue;;
1833 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1834 esac
1835 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1836 done
1838 # There might be people who depend on the old broken behavior: `$host'
1839 # used to hold the argument of --host etc.
1840 # FIXME: To remove some day.
1841 build=$build_alias
1842 host=$host_alias
1843 target=$target_alias
1845 # FIXME: To remove some day.
1846 if test "x$host_alias" != x; then
1847 if test "x$build_alias" = x; then
1848 cross_compiling=maybe
1849 elif test "x$build_alias" != "x$host_alias"; then
1850 cross_compiling=yes
1854 ac_tool_prefix=
1855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1857 test "$silent" = yes && exec 6>/dev/null
1860 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1861 ac_ls_di=`ls -di .` &&
1862 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1863 as_fn_error $? "working directory cannot be determined"
1864 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1865 as_fn_error $? "pwd does not report name of working directory"
1868 # Find the source files, if location was not specified.
1869 if test -z "$srcdir"; then
1870 ac_srcdir_defaulted=yes
1871 # Try the directory containing this script, then the parent directory.
1872 ac_confdir=`$as_dirname -- "$as_myself" ||
1873 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1874 X"$as_myself" : 'X\(//\)[^/]' \| \
1875 X"$as_myself" : 'X\(//\)$' \| \
1876 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1877 $as_echo X"$as_myself" |
1878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1879 s//\1/
1882 /^X\(\/\/\)[^/].*/{
1883 s//\1/
1886 /^X\(\/\/\)$/{
1887 s//\1/
1890 /^X\(\/\).*/{
1891 s//\1/
1894 s/.*/./; q'`
1895 srcdir=$ac_confdir
1896 if test ! -r "$srcdir/$ac_unique_file"; then
1897 srcdir=..
1899 else
1900 ac_srcdir_defaulted=no
1902 if test ! -r "$srcdir/$ac_unique_file"; then
1903 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1904 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1906 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1907 ac_abs_confdir=`(
1908 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1909 pwd)`
1910 # When building in place, set srcdir=.
1911 if test "$ac_abs_confdir" = "$ac_pwd"; then
1912 srcdir=.
1914 # Remove unnecessary trailing slashes from srcdir.
1915 # Double slashes in file names in object file debugging info
1916 # mess up M-x gdb in Emacs.
1917 case $srcdir in
1918 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1919 esac
1920 for ac_var in $ac_precious_vars; do
1921 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1922 eval ac_env_${ac_var}_value=\$${ac_var}
1923 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1924 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1925 done
1928 # Report the --help message.
1930 if test "$ac_init_help" = "long"; then
1931 # Omit some internal or obsolete options to make the list less imposing.
1932 # This message is too long to be a string in the A/UX 3.1 sh.
1933 cat <<_ACEOF
1934 \`configure' configures Wine 1.7.11 to adapt to many kinds of systems.
1936 Usage: $0 [OPTION]... [VAR=VALUE]...
1938 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1939 VAR=VALUE. See below for descriptions of some of the useful variables.
1941 Defaults for the options are specified in brackets.
1943 Configuration:
1944 -h, --help display this help and exit
1945 --help=short display options specific to this package
1946 --help=recursive display the short help of all the included packages
1947 -V, --version display version information and exit
1948 -q, --quiet, --silent do not print \`checking ...' messages
1949 --cache-file=FILE cache test results in FILE [disabled]
1950 -C, --config-cache alias for \`--cache-file=config.cache'
1951 -n, --no-create do not create output files
1952 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1954 Installation directories:
1955 --prefix=PREFIX install architecture-independent files in PREFIX
1956 [$ac_default_prefix]
1957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1958 [PREFIX]
1960 By default, \`make install' will install all the files in
1961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1963 for instance \`--prefix=\$HOME'.
1965 For better control, use the options below.
1967 Fine tuning of the installation directories:
1968 --bindir=DIR user executables [EPREFIX/bin]
1969 --sbindir=DIR system admin executables [EPREFIX/sbin]
1970 --libexecdir=DIR program executables [EPREFIX/libexec]
1971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1974 --libdir=DIR object code libraries [EPREFIX/lib]
1975 --includedir=DIR C header files [PREFIX/include]
1976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1977 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1978 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1979 --infodir=DIR info documentation [DATAROOTDIR/info]
1980 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1981 --mandir=DIR man documentation [DATAROOTDIR/man]
1982 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1983 --htmldir=DIR html documentation [DOCDIR]
1984 --dvidir=DIR dvi documentation [DOCDIR]
1985 --pdfdir=DIR pdf documentation [DOCDIR]
1986 --psdir=DIR ps documentation [DOCDIR]
1987 _ACEOF
1989 cat <<\_ACEOF
1991 X features:
1992 --x-includes=DIR X include files are in DIR
1993 --x-libraries=DIR X library files are in DIR
1995 System types:
1996 --build=BUILD configure for building on BUILD [guessed]
1997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1998 _ACEOF
2001 if test -n "$ac_init_help"; then
2002 case $ac_init_help in
2003 short | recursive ) echo "Configuration of Wine 1.7.11:";;
2004 esac
2005 cat <<\_ACEOF
2007 Optional Features:
2008 --disable-option-checking ignore unrecognized --enable/--with options
2009 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2010 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2011 --disable-win16 do not include Win16 support
2012 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2013 binaries)
2014 --disable-tests do not build the regression tests
2015 --enable-maintainer-mode
2016 enable maintainer-specific build rules
2017 --disable-largefile omit support for large files
2019 Optional Packages:
2020 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2021 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2022 --without-alsa do not use the Alsa sound support
2023 --without-capi do not use CAPI (ISDN support)
2024 --without-cms do not use CMS (color management support)
2025 --without-coreaudio do not use the CoreAudio sound support
2026 --without-cups do not use CUPS
2027 --without-curses do not use (n)curses
2028 --without-dbus do not use DBus (dynamic device support)
2029 --without-fontconfig do not use fontconfig
2030 --without-freetype do not use the FreeType library
2031 --without-gettext do not use gettext
2032 --with-gettextpo use the GetTextPO library to rebuild po files
2033 --without-gphoto do not use gphoto (Digital Camera support)
2034 --without-glu do not use the GLU library
2035 --without-gnutls do not use GnuTLS (schannel support)
2036 --without-gsm do not use libgsm (GSM 06.10 codec support)
2037 --without-gstreamer do not use GStreamer (codecs support)
2038 --without-hal do not use HAL (dynamic device support)
2039 --without-jpeg do not use JPEG
2040 --without-ldap do not use LDAP
2041 --without-mpg123 do not use the mpg123 library
2042 --without-netapi do not use the Samba NetAPI library
2043 --without-openal do not use OpenAL
2044 --without-opencl do not use OpenCL
2045 --without-opengl do not use OpenGL
2046 --without-osmesa do not use the OSMesa library
2047 --without-oss do not use the OSS sound support
2048 --without-png do not use PNG
2049 --without-pthread do not use the pthread library
2050 --without-sane do not use SANE (scanner support)
2051 --without-tiff do not use TIFF
2052 --without-v4l do not use v4l1 (v4l support)
2053 --without-xcomposite do not use the Xcomposite extension
2054 --without-xcursor do not use the Xcursor extension
2055 --without-xinerama do not use Xinerama (multi-monitor support)
2056 --without-xinput do not use the Xinput extension
2057 --without-xinput2 do not use the Xinput 2 extension
2058 --without-xml do not use XML
2059 --without-xrandr do not use Xrandr (resolution changes)
2060 --without-xrender do not use the Xrender extension
2061 --without-xshape do not use the Xshape extension
2062 --without-xshm do not use XShm (shared memory extension)
2063 --without-xslt do not use XSLT
2064 --without-xxf86vm do not use XFree video mode extension
2065 --without-zlib do not use Zlib (data compression)
2066 --with-wine-tools=DIR use Wine tools from directory DIR
2067 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2068 --with-x use the X Window System
2070 Some influential environment variables:
2071 CC C compiler command
2072 CFLAGS C compiler flags
2073 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2074 nonstandard directory <lib dir>
2075 LIBS libraries to pass to the linker, e.g. -l<library>
2076 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2077 you have headers in a nonstandard directory <include dir>
2078 CXX C++ compiler command
2079 CXXFLAGS C++ compiler flags
2080 CPP C preprocessor
2081 XMKMF Path to xmkmf, Makefile generator for X Window System
2082 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2083 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2084 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2085 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2086 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2087 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2088 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2089 HAL_LIBS Linker flags for hal, overriding pkg-config
2090 GNUTLS_CFLAGS
2091 C compiler flags for gnutls, overriding pkg-config
2092 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2093 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2094 SANE_LIBS Linker flags for libsane, overriding pkg-config
2095 GPHOTO2_CFLAGS
2096 C compiler flags for libgphoto2, overriding pkg-config
2097 GPHOTO2_LIBS
2098 Linker flags for libgphoto2, overriding pkg-config
2099 GPHOTO2_PORT_CFLAGS
2100 C compiler flags for libgphoto2_port, overriding pkg-config
2101 GPHOTO2_PORT_LIBS
2102 Linker flags for libgphoto2_port, overriding pkg-config
2103 LCMS2_CFLAGS
2104 C compiler flags for lcms2, overriding pkg-config
2105 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2106 FREETYPE_CFLAGS
2107 C compiler flags for freetype2, overriding pkg-config
2108 FREETYPE_LIBS
2109 Linker flags for freetype2, overriding pkg-config
2110 GSTREAMER_CFLAGS
2111 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2112 GSTREAMER_LIBS
2113 Linker flags for gstreamer-app-0.10, overriding pkg-config
2114 CAPI20_CFLAGS
2115 C compiler flags for capi20, overriding pkg-config
2116 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2117 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2118 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2119 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2120 PNG_LIBS Linker flags for libpng, overriding pkg-config
2121 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2122 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2123 MPG123_CFLAGS
2124 C compiler flags for libmpg123, overriding pkg-config
2125 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2127 Use these variables to override the choices made by `configure' or to help
2128 it to find libraries and programs with nonstandard names/locations.
2130 Report bugs to <wine-devel@winehq.org>.
2131 Wine home page: <http://www.winehq.org>.
2132 _ACEOF
2133 ac_status=$?
2136 if test "$ac_init_help" = "recursive"; then
2137 # If there are subdirs, report their specific --help.
2138 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2139 test -d "$ac_dir" ||
2140 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2141 continue
2142 ac_builddir=.
2144 case "$ac_dir" in
2145 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2147 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2148 # A ".." for each directory in $ac_dir_suffix.
2149 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2150 case $ac_top_builddir_sub in
2151 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2152 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2153 esac ;;
2154 esac
2155 ac_abs_top_builddir=$ac_pwd
2156 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2157 # for backward compatibility:
2158 ac_top_builddir=$ac_top_build_prefix
2160 case $srcdir in
2161 .) # We are building in place.
2162 ac_srcdir=.
2163 ac_top_srcdir=$ac_top_builddir_sub
2164 ac_abs_top_srcdir=$ac_pwd ;;
2165 [\\/]* | ?:[\\/]* ) # Absolute name.
2166 ac_srcdir=$srcdir$ac_dir_suffix;
2167 ac_top_srcdir=$srcdir
2168 ac_abs_top_srcdir=$srcdir ;;
2169 *) # Relative name.
2170 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2171 ac_top_srcdir=$ac_top_build_prefix$srcdir
2172 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2173 esac
2174 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2176 cd "$ac_dir" || { ac_status=$?; continue; }
2177 # Check for guested configure.
2178 if test -f "$ac_srcdir/configure.gnu"; then
2179 echo &&
2180 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2181 elif test -f "$ac_srcdir/configure"; then
2182 echo &&
2183 $SHELL "$ac_srcdir/configure" --help=recursive
2184 else
2185 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2186 fi || ac_status=$?
2187 cd "$ac_pwd" || { ac_status=$?; break; }
2188 done
2191 test -n "$ac_init_help" && exit $ac_status
2192 if $ac_init_version; then
2193 cat <<\_ACEOF
2194 Wine configure 1.7.11
2195 generated by GNU Autoconf 2.69
2197 Copyright (C) 2012 Free Software Foundation, Inc.
2198 This configure script is free software; the Free Software Foundation
2199 gives unlimited permission to copy, distribute and modify it.
2200 _ACEOF
2201 exit
2204 ## ------------------------ ##
2205 ## Autoconf initialization. ##
2206 ## ------------------------ ##
2208 # ac_fn_c_try_compile LINENO
2209 # --------------------------
2210 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2211 ac_fn_c_try_compile ()
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 rm -f conftest.$ac_objext
2215 if { { ac_try="$ac_compile"
2216 case "(($ac_try" in
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2219 esac
2220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 $as_echo "$ac_try_echo"; } >&5
2222 (eval "$ac_compile") 2>conftest.err
2223 ac_status=$?
2224 if test -s conftest.err; then
2225 grep -v '^ *+' conftest.err >conftest.er1
2226 cat conftest.er1 >&5
2227 mv -f conftest.er1 conftest.err
2229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; } && {
2231 test -z "$ac_c_werror_flag" ||
2232 test ! -s conftest.err
2233 } && test -s conftest.$ac_objext; then :
2234 ac_retval=0
2235 else
2236 $as_echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2239 ac_retval=1
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242 as_fn_set_status $ac_retval
2244 } # ac_fn_c_try_compile
2246 # ac_fn_cxx_try_compile LINENO
2247 # ----------------------------
2248 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2249 ac_fn_cxx_try_compile ()
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 rm -f conftest.$ac_objext
2253 if { { ac_try="$ac_compile"
2254 case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257 esac
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_compile") 2>conftest.err
2261 ac_status=$?
2262 if test -s conftest.err; then
2263 grep -v '^ *+' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 mv -f conftest.er1 conftest.err
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; } && {
2269 test -z "$ac_cxx_werror_flag" ||
2270 test ! -s conftest.err
2271 } && test -s conftest.$ac_objext; then :
2272 ac_retval=0
2273 else
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2277 ac_retval=1
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2282 } # ac_fn_cxx_try_compile
2284 # ac_fn_c_try_link LINENO
2285 # -----------------------
2286 # Try to link conftest.$ac_ext, and return whether this succeeded.
2287 ac_fn_c_try_link ()
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 rm -f conftest.$ac_objext conftest$ac_exeext
2291 if { { ac_try="$ac_link"
2292 case "(($ac_try" in
2293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294 *) ac_try_echo=$ac_try;;
2295 esac
2296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297 $as_echo "$ac_try_echo"; } >&5
2298 (eval "$ac_link") 2>conftest.err
2299 ac_status=$?
2300 if test -s conftest.err; then
2301 grep -v '^ *+' conftest.err >conftest.er1
2302 cat conftest.er1 >&5
2303 mv -f conftest.er1 conftest.err
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; } && {
2307 test -z "$ac_c_werror_flag" ||
2308 test ! -s conftest.err
2309 } && test -s conftest$ac_exeext && {
2310 test "$cross_compiling" = yes ||
2311 test -x conftest$ac_exeext
2312 }; then :
2313 ac_retval=0
2314 else
2315 $as_echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2318 ac_retval=1
2320 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2321 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2322 # interfere with the next link command; also delete a directory that is
2323 # left behind by Apple's compiler. We do this before executing the actions.
2324 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2326 as_fn_set_status $ac_retval
2328 } # ac_fn_c_try_link
2330 # ac_fn_c_try_cpp LINENO
2331 # ----------------------
2332 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2333 ac_fn_c_try_cpp ()
2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336 if { { ac_try="$ac_cpp conftest.$ac_ext"
2337 case "(($ac_try" in
2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339 *) ac_try_echo=$ac_try;;
2340 esac
2341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2342 $as_echo "$ac_try_echo"; } >&5
2343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2344 ac_status=$?
2345 if test -s conftest.err; then
2346 grep -v '^ *+' conftest.err >conftest.er1
2347 cat conftest.er1 >&5
2348 mv -f conftest.er1 conftest.err
2350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2351 test $ac_status = 0; } > conftest.i && {
2352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2353 test ! -s conftest.err
2354 }; then :
2355 ac_retval=0
2356 else
2357 $as_echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2360 ac_retval=1
2362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363 as_fn_set_status $ac_retval
2365 } # ac_fn_c_try_cpp
2367 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2368 # -------------------------------------------------------
2369 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2370 # the include files in INCLUDES and setting the cache variable VAR
2371 # accordingly.
2372 ac_fn_c_check_header_mongrel ()
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 if eval \${$3+:} false; then :
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2377 $as_echo_n "checking for $2... " >&6; }
2378 if eval \${$3+:} false; then :
2379 $as_echo_n "(cached) " >&6
2381 eval ac_res=\$$3
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 else
2385 # Is the header compilable?
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2387 $as_echo_n "checking $2 usability... " >&6; }
2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h. */
2391 #include <$2>
2392 _ACEOF
2393 if ac_fn_c_try_compile "$LINENO"; then :
2394 ac_header_compiler=yes
2395 else
2396 ac_header_compiler=no
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2400 $as_echo "$ac_header_compiler" >&6; }
2402 # Is the header present?
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2404 $as_echo_n "checking $2 presence... " >&6; }
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2407 #include <$2>
2408 _ACEOF
2409 if ac_fn_c_try_cpp "$LINENO"; then :
2410 ac_header_preproc=yes
2411 else
2412 ac_header_preproc=no
2414 rm -f conftest.err conftest.i conftest.$ac_ext
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2416 $as_echo "$ac_header_preproc" >&6; }
2418 # So? What about this header?
2419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2420 yes:no: )
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2422 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2424 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2426 no:yes:* )
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2428 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2430 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2432 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2434 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2436 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2437 ( $as_echo "## ------------------------------------ ##
2438 ## Report this to wine-devel@winehq.org ##
2439 ## ------------------------------------ ##"
2440 ) | sed "s/^/$as_me: WARNING: /" >&2
2442 esac
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2444 $as_echo_n "checking for $2... " >&6; }
2445 if eval \${$3+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 eval "$3=\$ac_header_compiler"
2450 eval ac_res=\$$3
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2454 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2456 } # ac_fn_c_check_header_mongrel
2458 # ac_fn_c_try_run LINENO
2459 # ----------------------
2460 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2461 # that executables *can* be run.
2462 ac_fn_c_try_run ()
2464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2465 if { { ac_try="$ac_link"
2466 case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469 esac
2470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2471 $as_echo "$ac_try_echo"; } >&5
2472 (eval "$ac_link") 2>&5
2473 ac_status=$?
2474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2475 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2476 { { case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479 esac
2480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2481 $as_echo "$ac_try_echo"; } >&5
2482 (eval "$ac_try") 2>&5
2483 ac_status=$?
2484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2485 test $ac_status = 0; }; }; then :
2486 ac_retval=0
2487 else
2488 $as_echo "$as_me: program exited with status $ac_status" >&5
2489 $as_echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2492 ac_retval=$ac_status
2494 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2496 as_fn_set_status $ac_retval
2498 } # ac_fn_c_try_run
2500 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2501 # -------------------------------------------------------
2502 # Tests whether HEADER exists and can be compiled using the include files in
2503 # INCLUDES, setting the cache variable VAR accordingly.
2504 ac_fn_c_check_header_compile ()
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2508 $as_echo_n "checking for $2... " >&6; }
2509 if eval \${$3+:} false; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2515 #include <$2>
2516 _ACEOF
2517 if ac_fn_c_try_compile "$LINENO"; then :
2518 eval "$3=yes"
2519 else
2520 eval "$3=no"
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524 eval ac_res=\$$3
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2526 $as_echo "$ac_res" >&6; }
2527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2529 } # ac_fn_c_check_header_compile
2531 # ac_fn_c_check_func LINENO FUNC VAR
2532 # ----------------------------------
2533 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2534 ac_fn_c_check_func ()
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2538 $as_echo_n "checking for $2... " >&6; }
2539 if eval \${$3+:} false; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2544 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2546 #define $2 innocuous_$2
2548 /* System header to define __stub macros and hopefully few prototypes,
2549 which can conflict with char $2 (); below.
2550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2551 <limits.h> exists even on freestanding compilers. */
2553 #ifdef __STDC__
2554 # include <limits.h>
2555 #else
2556 # include <assert.h>
2557 #endif
2559 #undef $2
2561 /* Override any GCC internal prototype to avoid an error.
2562 Use char because int might match the return type of a GCC
2563 builtin and then its argument prototype would still apply. */
2564 #ifdef __cplusplus
2565 extern "C"
2566 #endif
2567 char $2 ();
2568 /* The GNU C library defines this for functions which it implements
2569 to always fail with ENOSYS. Some functions are actually named
2570 something starting with __ and the normal name is an alias. */
2571 #if defined __stub_$2 || defined __stub___$2
2572 choke me
2573 #endif
2576 main ()
2578 return $2 ();
2580 return 0;
2582 _ACEOF
2583 if ac_fn_c_try_link "$LINENO"; then :
2584 eval "$3=yes"
2585 else
2586 eval "$3=no"
2588 rm -f core conftest.err conftest.$ac_objext \
2589 conftest$ac_exeext conftest.$ac_ext
2591 eval ac_res=\$$3
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2593 $as_echo "$ac_res" >&6; }
2594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2596 } # ac_fn_c_check_func
2598 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2599 # ----------------------------------------------------
2600 # Tries to find if the field MEMBER exists in type AGGR, after including
2601 # INCLUDES, setting cache variable VAR accordingly.
2602 ac_fn_c_check_member ()
2604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2606 $as_echo_n "checking for $2.$3... " >&6; }
2607 if eval \${$4+:} false; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2614 main ()
2616 static $2 ac_aggr;
2617 if (ac_aggr.$3)
2618 return 0;
2620 return 0;
2622 _ACEOF
2623 if ac_fn_c_try_compile "$LINENO"; then :
2624 eval "$4=yes"
2625 else
2626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h. */
2630 main ()
2632 static $2 ac_aggr;
2633 if (sizeof ac_aggr.$3)
2634 return 0;
2636 return 0;
2638 _ACEOF
2639 if ac_fn_c_try_compile "$LINENO"; then :
2640 eval "$4=yes"
2641 else
2642 eval "$4=no"
2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 eval ac_res=\$$4
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2653 } # ac_fn_c_check_member
2655 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2656 # -------------------------------------------
2657 # Tests whether TYPE exists after having included INCLUDES, setting cache
2658 # variable VAR accordingly.
2659 ac_fn_c_check_type ()
2661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2663 $as_echo_n "checking for $2... " >&6; }
2664 if eval \${$3+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 eval "$3=no"
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h. */
2672 main ()
2674 if (sizeof ($2))
2675 return 0;
2677 return 0;
2679 _ACEOF
2680 if ac_fn_c_try_compile "$LINENO"; then :
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h. */
2685 main ()
2687 if (sizeof (($2)))
2688 return 0;
2690 return 0;
2692 _ACEOF
2693 if ac_fn_c_try_compile "$LINENO"; then :
2695 else
2696 eval "$3=yes"
2698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 eval ac_res=\$$3
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2704 $as_echo "$ac_res" >&6; }
2705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2707 } # ac_fn_c_check_type
2708 cat >config.log <<_ACEOF
2709 This file contains any messages produced by compilers while
2710 running configure, to aid debugging if configure makes a mistake.
2712 It was created by Wine $as_me 1.7.11, which was
2713 generated by GNU Autoconf 2.69. Invocation command line was
2715 $ $0 $@
2717 _ACEOF
2718 exec 5>>config.log
2720 cat <<_ASUNAME
2721 ## --------- ##
2722 ## Platform. ##
2723 ## --------- ##
2725 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2726 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2727 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2728 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2729 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2731 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2732 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2734 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2735 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2736 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2737 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2738 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2739 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2740 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2742 _ASUNAME
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 $as_echo "PATH: $as_dir"
2750 done
2751 IFS=$as_save_IFS
2753 } >&5
2755 cat >&5 <<_ACEOF
2758 ## ----------- ##
2759 ## Core tests. ##
2760 ## ----------- ##
2762 _ACEOF
2765 # Keep a trace of the command line.
2766 # Strip out --no-create and --no-recursion so they do not pile up.
2767 # Strip out --silent because we don't want to record it for future runs.
2768 # Also quote any args containing shell meta-characters.
2769 # Make two passes to allow for proper duplicate-argument suppression.
2770 ac_configure_args=
2771 ac_configure_args0=
2772 ac_configure_args1=
2773 ac_must_keep_next=false
2774 for ac_pass in 1 2
2776 for ac_arg
2778 case $ac_arg in
2779 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2781 | -silent | --silent | --silen | --sile | --sil)
2782 continue ;;
2783 *\'*)
2784 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2785 esac
2786 case $ac_pass in
2787 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2789 as_fn_append ac_configure_args1 " '$ac_arg'"
2790 if test $ac_must_keep_next = true; then
2791 ac_must_keep_next=false # Got value, back to normal.
2792 else
2793 case $ac_arg in
2794 *=* | --config-cache | -C | -disable-* | --disable-* \
2795 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2796 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2797 | -with-* | --with-* | -without-* | --without-* | --x)
2798 case "$ac_configure_args0 " in
2799 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2800 esac
2802 -* ) ac_must_keep_next=true ;;
2803 esac
2805 as_fn_append ac_configure_args " '$ac_arg'"
2807 esac
2808 done
2809 done
2810 { ac_configure_args0=; unset ac_configure_args0;}
2811 { ac_configure_args1=; unset ac_configure_args1;}
2813 # When interrupted or exit'd, cleanup temporary files, and complete
2814 # config.log. We remove comments because anyway the quotes in there
2815 # would cause problems or look ugly.
2816 # WARNING: Use '\'' to represent an apostrophe within the trap.
2817 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2818 trap 'exit_status=$?
2819 # Save into config.log some information that might help in debugging.
2821 echo
2823 $as_echo "## ---------------- ##
2824 ## Cache variables. ##
2825 ## ---------------- ##"
2826 echo
2827 # The following way of writing the cache mishandles newlines in values,
2829 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2830 eval ac_val=\$$ac_var
2831 case $ac_val in #(
2832 *${as_nl}*)
2833 case $ac_var in #(
2834 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2835 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2836 esac
2837 case $ac_var in #(
2838 _ | IFS | as_nl) ;; #(
2839 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2840 *) { eval $ac_var=; unset $ac_var;} ;;
2841 esac ;;
2842 esac
2843 done
2844 (set) 2>&1 |
2845 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2846 *${as_nl}ac_space=\ *)
2847 sed -n \
2848 "s/'\''/'\''\\\\'\'''\''/g;
2849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2850 ;; #(
2852 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2854 esac |
2855 sort
2857 echo
2859 $as_echo "## ----------------- ##
2860 ## Output variables. ##
2861 ## ----------------- ##"
2862 echo
2863 for ac_var in $ac_subst_vars
2865 eval ac_val=\$$ac_var
2866 case $ac_val in
2867 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2868 esac
2869 $as_echo "$ac_var='\''$ac_val'\''"
2870 done | sort
2871 echo
2873 if test -n "$ac_subst_files"; then
2874 $as_echo "## ------------------- ##
2875 ## File substitutions. ##
2876 ## ------------------- ##"
2877 echo
2878 for ac_var in $ac_subst_files
2880 eval ac_val=\$$ac_var
2881 case $ac_val in
2882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2883 esac
2884 $as_echo "$ac_var='\''$ac_val'\''"
2885 done | sort
2886 echo
2889 if test -s confdefs.h; then
2890 $as_echo "## ----------- ##
2891 ## confdefs.h. ##
2892 ## ----------- ##"
2893 echo
2894 cat confdefs.h
2895 echo
2897 test "$ac_signal" != 0 &&
2898 $as_echo "$as_me: caught signal $ac_signal"
2899 $as_echo "$as_me: exit $exit_status"
2900 } >&5
2901 rm -f core *.core core.conftest.* &&
2902 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2903 exit $exit_status
2905 for ac_signal in 1 2 13 15; do
2906 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2907 done
2908 ac_signal=0
2910 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2911 rm -f -r conftest* confdefs.h
2913 $as_echo "/* confdefs.h */" > confdefs.h
2915 # Predefined preprocessor variables.
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_NAME "$PACKAGE_NAME"
2919 _ACEOF
2921 cat >>confdefs.h <<_ACEOF
2922 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2923 _ACEOF
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2927 _ACEOF
2929 cat >>confdefs.h <<_ACEOF
2930 #define PACKAGE_STRING "$PACKAGE_STRING"
2931 _ACEOF
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2935 _ACEOF
2937 cat >>confdefs.h <<_ACEOF
2938 #define PACKAGE_URL "$PACKAGE_URL"
2939 _ACEOF
2942 # Let the site file select an alternate cache file if it wants to.
2943 # Prefer an explicitly selected file to automatically selected ones.
2944 ac_site_file1=NONE
2945 ac_site_file2=NONE
2946 if test -n "$CONFIG_SITE"; then
2947 # We do not want a PATH search for config.site.
2948 case $CONFIG_SITE in #((
2949 -*) ac_site_file1=./$CONFIG_SITE;;
2950 */*) ac_site_file1=$CONFIG_SITE;;
2951 *) ac_site_file1=./$CONFIG_SITE;;
2952 esac
2953 elif test "x$prefix" != xNONE; then
2954 ac_site_file1=$prefix/share/config.site
2955 ac_site_file2=$prefix/etc/config.site
2956 else
2957 ac_site_file1=$ac_default_prefix/share/config.site
2958 ac_site_file2=$ac_default_prefix/etc/config.site
2960 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2962 test "x$ac_site_file" = xNONE && continue
2963 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2965 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2966 sed 's/^/| /' "$ac_site_file" >&5
2967 . "$ac_site_file" \
2968 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970 as_fn_error $? "failed to load site script $ac_site_file
2971 See \`config.log' for more details" "$LINENO" 5; }
2973 done
2975 if test -r "$cache_file"; then
2976 # Some versions of bash will fail to source /dev/null (special files
2977 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2978 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2980 $as_echo "$as_me: loading cache $cache_file" >&6;}
2981 case $cache_file in
2982 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2983 *) . "./$cache_file";;
2984 esac
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2988 $as_echo "$as_me: creating cache $cache_file" >&6;}
2989 >$cache_file
2992 # Check that the precious variables saved in the cache have kept the same
2993 # value.
2994 ac_cache_corrupted=false
2995 for ac_var in $ac_precious_vars; do
2996 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2997 eval ac_new_set=\$ac_env_${ac_var}_set
2998 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2999 eval ac_new_val=\$ac_env_${ac_var}_value
3000 case $ac_old_set,$ac_new_set in
3001 set,)
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3003 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3004 ac_cache_corrupted=: ;;
3005 ,set)
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3007 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3008 ac_cache_corrupted=: ;;
3009 ,);;
3011 if test "x$ac_old_val" != "x$ac_new_val"; then
3012 # differences in whitespace do not lead to failure.
3013 ac_old_val_w=`echo x $ac_old_val`
3014 ac_new_val_w=`echo x $ac_new_val`
3015 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3017 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3018 ac_cache_corrupted=:
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3021 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3022 eval $ac_var=\$ac_old_val
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3025 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3027 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3028 fi;;
3029 esac
3030 # Pass precious variables to config.status.
3031 if test "$ac_new_set" = set; then
3032 case $ac_new_val in
3033 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3034 *) ac_arg=$ac_var=$ac_new_val ;;
3035 esac
3036 case " $ac_configure_args " in
3037 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3038 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3039 esac
3041 done
3042 if $ac_cache_corrupted; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3046 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3047 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3049 ## -------------------- ##
3050 ## Main body of script. ##
3051 ## -------------------- ##
3053 ac_ext=c
3054 ac_cpp='$CPP $CPPFLAGS'
3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061 ac_config_headers="$ac_config_headers include/config.h"
3063 ac_aux_dir=
3064 for ac_dir in tools "$srcdir"/tools; do
3065 if test -f "$ac_dir/install-sh"; then
3066 ac_aux_dir=$ac_dir
3067 ac_install_sh="$ac_aux_dir/install-sh -c"
3068 break
3069 elif test -f "$ac_dir/install.sh"; then
3070 ac_aux_dir=$ac_dir
3071 ac_install_sh="$ac_aux_dir/install.sh -c"
3072 break
3073 elif test -f "$ac_dir/shtool"; then
3074 ac_aux_dir=$ac_dir
3075 ac_install_sh="$ac_aux_dir/shtool install -c"
3076 break
3078 done
3079 if test -z "$ac_aux_dir"; then
3080 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3083 # These three variables are undocumented and unsupported,
3084 # and are intended to be withdrawn in a future Autoconf release.
3085 # They can cause serious problems if a builder's source tree is in a directory
3086 # whose full name contains unusual characters.
3087 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3088 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3089 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3093 libwine_version="1.0"
3097 # Check whether --enable-win16 was given.
3098 if test "${enable_win16+set}" = set; then :
3099 enableval=$enable_win16;
3102 # Check whether --enable-win64 was given.
3103 if test "${enable_win64+set}" = set; then :
3104 enableval=$enable_win64;
3107 # Check whether --enable-tests was given.
3108 if test "${enable_tests+set}" = set; then :
3109 enableval=$enable_tests;
3112 # Check whether --enable-maintainer-mode was given.
3113 if test "${enable_maintainer_mode+set}" = set; then :
3114 enableval=$enable_maintainer_mode;
3119 # Check whether --with-alsa was given.
3120 if test "${with_alsa+set}" = set; then :
3121 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
3125 # Check whether --with-capi was given.
3126 if test "${with_capi+set}" = set; then :
3127 withval=$with_capi;
3131 # Check whether --with-cms was given.
3132 if test "${with_cms+set}" = set; then :
3133 withval=$with_cms;
3137 # Check whether --with-coreaudio was given.
3138 if test "${with_coreaudio+set}" = set; then :
3139 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
3143 # Check whether --with-cups was given.
3144 if test "${with_cups+set}" = set; then :
3145 withval=$with_cups;
3149 # Check whether --with-curses was given.
3150 if test "${with_curses+set}" = set; then :
3151 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
3155 # Check whether --with-dbus was given.
3156 if test "${with_dbus+set}" = set; then :
3157 withval=$with_dbus;
3161 # Check whether --with-fontconfig was given.
3162 if test "${with_fontconfig+set}" = set; then :
3163 withval=$with_fontconfig;
3167 # Check whether --with-freetype was given.
3168 if test "${with_freetype+set}" = set; then :
3169 withval=$with_freetype;
3173 # Check whether --with-gettext was given.
3174 if test "${with_gettext+set}" = set; then :
3175 withval=$with_gettext;
3179 # Check whether --with-gettextpo was given.
3180 if test "${with_gettextpo+set}" = set; then :
3181 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
3185 # Check whether --with-gphoto was given.
3186 if test "${with_gphoto+set}" = set; then :
3187 withval=$with_gphoto;
3191 # Check whether --with-glu was given.
3192 if test "${with_glu+set}" = set; then :
3193 withval=$with_glu;
3197 # Check whether --with-gnutls was given.
3198 if test "${with_gnutls+set}" = set; then :
3199 withval=$with_gnutls;
3203 # Check whether --with-gsm was given.
3204 if test "${with_gsm+set}" = set; then :
3205 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
3209 # Check whether --with-gstreamer was given.
3210 if test "${with_gstreamer+set}" = set; then :
3211 withval=$with_gstreamer;
3215 # Check whether --with-hal was given.
3216 if test "${with_hal+set}" = set; then :
3217 withval=$with_hal;
3221 # Check whether --with-jpeg was given.
3222 if test "${with_jpeg+set}" = set; then :
3223 withval=$with_jpeg;
3227 # Check whether --with-ldap was given.
3228 if test "${with_ldap+set}" = set; then :
3229 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
3233 # Check whether --with-mpg123 was given.
3234 if test "${with_mpg123+set}" = set; then :
3235 withval=$with_mpg123;
3239 # Check whether --with-netapi was given.
3240 if test "${with_netapi+set}" = set; then :
3241 withval=$with_netapi;
3245 # Check whether --with-openal was given.
3246 if test "${with_openal+set}" = set; then :
3247 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
3251 # Check whether --with-opencl was given.
3252 if test "${with_opencl+set}" = set; then :
3253 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
3257 # Check whether --with-opengl was given.
3258 if test "${with_opengl+set}" = set; then :
3259 withval=$with_opengl;
3263 # Check whether --with-osmesa was given.
3264 if test "${with_osmesa+set}" = set; then :
3265 withval=$with_osmesa;
3269 # Check whether --with-oss was given.
3270 if test "${with_oss+set}" = set; then :
3271 withval=$with_oss;
3275 # Check whether --with-png was given.
3276 if test "${with_png+set}" = set; then :
3277 withval=$with_png;
3281 # Check whether --with-pthread was given.
3282 if test "${with_pthread+set}" = set; then :
3283 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
3287 # Check whether --with-sane was given.
3288 if test "${with_sane+set}" = set; then :
3289 withval=$with_sane;
3293 # Check whether --with-tiff was given.
3294 if test "${with_tiff+set}" = set; then :
3295 withval=$with_tiff;
3299 # Check whether --with-v4l was given.
3300 if test "${with_v4l+set}" = set; then :
3301 withval=$with_v4l;
3305 # Check whether --with-xcomposite was given.
3306 if test "${with_xcomposite+set}" = set; then :
3307 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
3311 # Check whether --with-xcursor was given.
3312 if test "${with_xcursor+set}" = set; then :
3313 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
3317 # Check whether --with-xinerama was given.
3318 if test "${with_xinerama+set}" = set; then :
3319 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
3323 # Check whether --with-xinput was given.
3324 if test "${with_xinput+set}" = set; then :
3325 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
3329 # Check whether --with-xinput2 was given.
3330 if test "${with_xinput2+set}" = set; then :
3331 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
3335 # Check whether --with-xml was given.
3336 if test "${with_xml+set}" = set; then :
3337 withval=$with_xml;
3341 # Check whether --with-xrandr was given.
3342 if test "${with_xrandr+set}" = set; then :
3343 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
3347 # Check whether --with-xrender was given.
3348 if test "${with_xrender+set}" = set; then :
3349 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
3353 # Check whether --with-xshape was given.
3354 if test "${with_xshape+set}" = set; then :
3355 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
3359 # Check whether --with-xshm was given.
3360 if test "${with_xshm+set}" = set; then :
3361 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
3365 # Check whether --with-xslt was given.
3366 if test "${with_xslt+set}" = set; then :
3367 withval=$with_xslt;
3371 # Check whether --with-xxf86vm was given.
3372 if test "${with_xxf86vm+set}" = set; then :
3373 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
3377 # Check whether --with-zlib was given.
3378 if test "${with_zlib+set}" = set; then :
3379 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
3384 # Check whether --with-wine-tools was given.
3385 if test "${with_wine_tools+set}" = set; then :
3386 withval=$with_wine_tools;
3390 # Check whether --with-wine64 was given.
3391 if test "${with_wine64+set}" = set; then :
3392 withval=$with_wine64;
3396 # Make sure we can run config.sub.
3397 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3398 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3401 $as_echo_n "checking build system type... " >&6; }
3402 if ${ac_cv_build+:} false; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 ac_build_alias=$build_alias
3406 test "x$ac_build_alias" = x &&
3407 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3408 test "x$ac_build_alias" = x &&
3409 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3410 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3415 $as_echo "$ac_cv_build" >&6; }
3416 case $ac_cv_build in
3417 *-*-*) ;;
3418 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3419 esac
3420 build=$ac_cv_build
3421 ac_save_IFS=$IFS; IFS='-'
3422 set x $ac_cv_build
3423 shift
3424 build_cpu=$1
3425 build_vendor=$2
3426 shift; shift
3427 # Remember, the first character of IFS is used to create $*,
3428 # except with old shells:
3429 build_os=$*
3430 IFS=$ac_save_IFS
3431 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3435 $as_echo_n "checking host system type... " >&6; }
3436 if ${ac_cv_host+:} false; then :
3437 $as_echo_n "(cached) " >&6
3438 else
3439 if test "x$host_alias" = x; then
3440 ac_cv_host=$ac_cv_build
3441 else
3442 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3448 $as_echo "$ac_cv_host" >&6; }
3449 case $ac_cv_host in
3450 *-*-*) ;;
3451 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3452 esac
3453 host=$ac_cv_host
3454 ac_save_IFS=$IFS; IFS='-'
3455 set x $ac_cv_host
3456 shift
3457 host_cpu=$1
3458 host_vendor=$2
3459 shift; shift
3460 # Remember, the first character of IFS is used to create $*,
3461 # except with old shells:
3462 host_os=$*
3463 IFS=$ac_save_IFS
3464 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3468 case "$srcdir" in
3469 .) ;;
3470 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
3471 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
3472 You need to run 'make distclean' in the source tree first." "$LINENO" 5
3473 fi ;;
3474 esac
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3478 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3479 set x ${MAKE-make}
3480 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3481 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 cat >conftest.make <<\_ACEOF
3485 SHELL = /bin/sh
3486 all:
3487 @echo '@@@%%%=$(MAKE)=@@@%%%'
3488 _ACEOF
3489 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3490 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3491 *@@@%%%=?*=@@@%%%*)
3492 eval ac_cv_prog_make_${ac_make}_set=yes;;
3494 eval ac_cv_prog_make_${ac_make}_set=no;;
3495 esac
3496 rm -f conftest.make
3498 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3500 $as_echo "yes" >&6; }
3501 SET_MAKE=
3502 else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 SET_MAKE="MAKE=${MAKE-make}"
3508 ac_ext=c
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513 if test -n "$ac_tool_prefix"; then
3514 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3515 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if ${ac_cv_prog_CC+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 if test -n "$CC"; then
3522 ac_cv_prog_CC="$CC" # Let the user override the test.
3523 else
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3531 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 break 2
3535 done
3536 done
3537 IFS=$as_save_IFS
3541 CC=$ac_cv_prog_CC
3542 if test -n "$CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3544 $as_echo "$CC" >&6; }
3545 else
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3552 if test -z "$ac_cv_prog_CC"; then
3553 ac_ct_CC=$CC
3554 # Extract the first word of "gcc", so it can be a program name with args.
3555 set dummy gcc; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 if test -n "$ac_ct_CC"; then
3562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3571 ac_cv_prog_ac_ct_CC="gcc"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3575 done
3576 done
3577 IFS=$as_save_IFS
3581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3582 if test -n "$ac_ct_CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3584 $as_echo "$ac_ct_CC" >&6; }
3585 else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3590 if test "x$ac_ct_CC" = x; then
3591 CC=""
3592 else
3593 case $cross_compiling:$ac_tool_warned in
3594 yes:)
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3597 ac_tool_warned=yes ;;
3598 esac
3599 CC=$ac_ct_CC
3601 else
3602 CC="$ac_cv_prog_CC"
3605 if test -z "$CC"; then
3606 if test -n "$ac_tool_prefix"; then
3607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3608 set dummy ${ac_tool_prefix}cc; ac_word=$2
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 $as_echo_n "checking for $ac_word... " >&6; }
3611 if ${ac_cv_prog_CC+:} false; then :
3612 $as_echo_n "(cached) " >&6
3613 else
3614 if test -n "$CC"; then
3615 ac_cv_prog_CC="$CC" # Let the user override the test.
3616 else
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH
3620 IFS=$as_save_IFS
3621 test -z "$as_dir" && as_dir=.
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3624 ac_cv_prog_CC="${ac_tool_prefix}cc"
3625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3626 break 2
3628 done
3629 done
3630 IFS=$as_save_IFS
3634 CC=$ac_cv_prog_CC
3635 if test -n "$CC"; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3637 $as_echo "$CC" >&6; }
3638 else
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3646 if test -z "$CC"; then
3647 # Extract the first word of "cc", so it can be a program name with args.
3648 set dummy cc; ac_word=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if ${ac_cv_prog_CC+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 if test -n "$CC"; then
3655 ac_cv_prog_CC="$CC" # Let the user override the test.
3656 else
3657 ac_prog_rejected=no
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3666 ac_prog_rejected=yes
3667 continue
3669 ac_cv_prog_CC="cc"
3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 break 2
3673 done
3674 done
3675 IFS=$as_save_IFS
3677 if test $ac_prog_rejected = yes; then
3678 # We found a bogon in the path, so make sure we never use it.
3679 set dummy $ac_cv_prog_CC
3680 shift
3681 if test $# != 0; then
3682 # We chose a different compiler from the bogus one.
3683 # However, it has the same basename, so the bogon will be chosen
3684 # first if we set CC to just the basename; use the full file name.
3685 shift
3686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3691 CC=$ac_cv_prog_CC
3692 if test -n "$CC"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3694 $as_echo "$CC" >&6; }
3695 else
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3702 if test -z "$CC"; then
3703 if test -n "$ac_tool_prefix"; then
3704 for ac_prog in cl.exe
3706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3709 $as_echo_n "checking for $ac_word... " >&6; }
3710 if ${ac_cv_prog_CC+:} false; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 if test -n "$CC"; then
3714 ac_cv_prog_CC="$CC" # Let the user override the test.
3715 else
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 break 2
3727 done
3728 done
3729 IFS=$as_save_IFS
3733 CC=$ac_cv_prog_CC
3734 if test -n "$CC"; then
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3736 $as_echo "$CC" >&6; }
3737 else
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 $as_echo "no" >&6; }
3743 test -n "$CC" && break
3744 done
3746 if test -z "$CC"; then
3747 ac_ct_CC=$CC
3748 for ac_prog in cl.exe
3750 # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy $ac_prog; ac_word=$2
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3753 $as_echo_n "checking for $ac_word... " >&6; }
3754 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 if test -n "$ac_ct_CC"; then
3758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_prog_ac_ct_CC="$ac_prog"
3768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3771 done
3772 done
3773 IFS=$as_save_IFS
3777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3778 if test -n "$ac_ct_CC"; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3780 $as_echo "$ac_ct_CC" >&6; }
3781 else
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 $as_echo "no" >&6; }
3787 test -n "$ac_ct_CC" && break
3788 done
3790 if test "x$ac_ct_CC" = x; then
3791 CC=""
3792 else
3793 case $cross_compiling:$ac_tool_warned in
3794 yes:)
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3797 ac_tool_warned=yes ;;
3798 esac
3799 CC=$ac_ct_CC
3806 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error $? "no acceptable C compiler found in \$PATH
3809 See \`config.log' for more details" "$LINENO" 5; }
3811 # Provide some information about the compiler.
3812 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3813 set X $ac_compile
3814 ac_compiler=$2
3815 for ac_option in --version -v -V -qversion; do
3816 { { ac_try="$ac_compiler $ac_option >&5"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3822 $as_echo "$ac_try_echo"; } >&5
3823 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3824 ac_status=$?
3825 if test -s conftest.err; then
3826 sed '10a\
3827 ... rest of stderr output deleted ...
3828 10q' conftest.err >conftest.er1
3829 cat conftest.er1 >&5
3831 rm -f conftest.er1 conftest.err
3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }
3834 done
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3840 main ()
3844 return 0;
3846 _ACEOF
3847 ac_clean_files_save=$ac_clean_files
3848 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3849 # Try to create an executable without -o first, disregard a.out.
3850 # It will help us diagnose broken compilers, and finding out an intuition
3851 # of exeext.
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3853 $as_echo_n "checking whether the C compiler works... " >&6; }
3854 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3856 # The possible output files:
3857 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3859 ac_rmfiles=
3860 for ac_file in $ac_files
3862 case $ac_file in
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3864 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3865 esac
3866 done
3867 rm -f $ac_rmfiles
3869 if { { ac_try="$ac_link_default"
3870 case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873 esac
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876 (eval "$ac_link_default") 2>&5
3877 ac_status=$?
3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }; then :
3880 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3881 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3882 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3883 # so that the user can short-circuit this test for compilers unknown to
3884 # Autoconf.
3885 for ac_file in $ac_files ''
3887 test -f "$ac_file" || continue
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3891 [ab].out )
3892 # We found the default executable, but exeext='' is most
3893 # certainly right.
3894 break;;
3895 *.* )
3896 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3897 then :; else
3898 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3900 # We set ac_cv_exeext here because the later test for it is not
3901 # safe: cross compilers may not add the suffix if given an `-o'
3902 # argument, so we may need to know it at that point already.
3903 # Even if this section looks crufty: it has the advantage of
3904 # actually working.
3905 break;;
3907 break;;
3908 esac
3909 done
3910 test "$ac_cv_exeext" = no && ac_cv_exeext=
3912 else
3913 ac_file=''
3915 if test -z "$ac_file"; then :
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3918 $as_echo "$as_me: failed program was:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3923 as_fn_error 77 "C compiler cannot create executables
3924 See \`config.log' for more details" "$LINENO" 5; }
3925 else
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3927 $as_echo "yes" >&6; }
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3930 $as_echo_n "checking for C compiler default output file name... " >&6; }
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3932 $as_echo "$ac_file" >&6; }
3933 ac_exeext=$ac_cv_exeext
3935 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3936 ac_clean_files=$ac_clean_files_save
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3938 $as_echo_n "checking for suffix of executables... " >&6; }
3939 if { { ac_try="$ac_link"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_link") 2>&5
3947 ac_status=$?
3948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949 test $ac_status = 0; }; then :
3950 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3951 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3952 # work properly (i.e., refer to `conftest.exe'), while it won't with
3953 # `rm'.
3954 for ac_file in conftest.exe conftest conftest.*; do
3955 test -f "$ac_file" || continue
3956 case $ac_file in
3957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3958 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3959 break;;
3960 * ) break;;
3961 esac
3962 done
3963 else
3964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3967 See \`config.log' for more details" "$LINENO" 5; }
3969 rm -f conftest conftest$ac_cv_exeext
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3971 $as_echo "$ac_cv_exeext" >&6; }
3973 rm -f conftest.$ac_ext
3974 EXEEXT=$ac_cv_exeext
3975 ac_exeext=$EXEEXT
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978 #include <stdio.h>
3980 main ()
3982 FILE *f = fopen ("conftest.out", "w");
3983 return ferror (f) || fclose (f) != 0;
3986 return 0;
3988 _ACEOF
3989 ac_clean_files="$ac_clean_files conftest.out"
3990 # Check that the compiler produces executables we can run. If not, either
3991 # the compiler is broken, or we cross compile.
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3993 $as_echo_n "checking whether we are cross compiling... " >&6; }
3994 if test "$cross_compiling" != yes; then
3995 { { ac_try="$ac_link"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001 $as_echo "$ac_try_echo"; } >&5
4002 (eval "$ac_link") 2>&5
4003 ac_status=$?
4004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005 test $ac_status = 0; }
4006 if { ac_try='./conftest$ac_cv_exeext'
4007 { { case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_try") 2>&5
4014 ac_status=$?
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; }; then
4017 cross_compiling=no
4018 else
4019 if test "$cross_compiling" = maybe; then
4020 cross_compiling=yes
4021 else
4022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024 as_fn_error $? "cannot run C compiled programs.
4025 If you meant to cross compile, use \`--host'.
4026 See \`config.log' for more details" "$LINENO" 5; }
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4031 $as_echo "$cross_compiling" >&6; }
4033 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4034 ac_clean_files=$ac_clean_files_save
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4036 $as_echo_n "checking for suffix of object files... " >&6; }
4037 if ${ac_cv_objext+:} false; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4044 main ()
4048 return 0;
4050 _ACEOF
4051 rm -f conftest.o conftest.obj
4052 if { { ac_try="$ac_compile"
4053 case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056 esac
4057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4058 $as_echo "$ac_try_echo"; } >&5
4059 (eval "$ac_compile") 2>&5
4060 ac_status=$?
4061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }; then :
4063 for ac_file in conftest.o conftest.obj conftest.*; do
4064 test -f "$ac_file" || continue;
4065 case $ac_file in
4066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4067 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4068 break;;
4069 esac
4070 done
4071 else
4072 $as_echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4077 as_fn_error $? "cannot compute suffix of object files: cannot compile
4078 See \`config.log' for more details" "$LINENO" 5; }
4080 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4083 $as_echo "$ac_cv_objext" >&6; }
4084 OBJEXT=$ac_cv_objext
4085 ac_objext=$OBJEXT
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4087 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4088 if ${ac_cv_c_compiler_gnu+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4095 main ()
4097 #ifndef __GNUC__
4098 choke me
4099 #endif
4102 return 0;
4104 _ACEOF
4105 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_compiler_gnu=yes
4107 else
4108 ac_compiler_gnu=no
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4115 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4116 if test $ac_compiler_gnu = yes; then
4117 GCC=yes
4118 else
4119 GCC=
4121 ac_test_CFLAGS=${CFLAGS+set}
4122 ac_save_CFLAGS=$CFLAGS
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4124 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4125 if ${ac_cv_prog_cc_g+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 ac_save_c_werror_flag=$ac_c_werror_flag
4129 ac_c_werror_flag=yes
4130 ac_cv_prog_cc_g=no
4131 CFLAGS="-g"
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4136 main ()
4140 return 0;
4142 _ACEOF
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144 ac_cv_prog_cc_g=yes
4145 else
4146 CFLAGS=""
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4151 main ()
4155 return 0;
4157 _ACEOF
4158 if ac_fn_c_try_compile "$LINENO"; then :
4160 else
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4162 CFLAGS="-g"
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4167 main ()
4171 return 0;
4173 _ACEOF
4174 if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_prog_cc_g=yes
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4185 $as_echo "$ac_cv_prog_cc_g" >&6; }
4186 if test "$ac_test_CFLAGS" = set; then
4187 CFLAGS=$ac_save_CFLAGS
4188 elif test $ac_cv_prog_cc_g = yes; then
4189 if test "$GCC" = yes; then
4190 CFLAGS="-g -O2"
4191 else
4192 CFLAGS="-g"
4194 else
4195 if test "$GCC" = yes; then
4196 CFLAGS="-O2"
4197 else
4198 CFLAGS=
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4202 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4203 if ${ac_cv_prog_cc_c89+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 ac_cv_prog_cc_c89=no
4207 ac_save_CC=$CC
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #include <stdarg.h>
4211 #include <stdio.h>
4212 struct stat;
4213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4214 struct buf { int x; };
4215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4216 static char *e (p, i)
4217 char **p;
4218 int i;
4220 return p[i];
4222 static char *f (char * (*g) (char **, int), char **p, ...)
4224 char *s;
4225 va_list v;
4226 va_start (v,p);
4227 s = g (p, va_arg (v,int));
4228 va_end (v);
4229 return s;
4232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4233 function prototypes and stuff, but not '\xHH' hex character constants.
4234 These don't provoke an error unfortunately, instead are silently treated
4235 as 'x'. The following induces an error, until -std is added to get
4236 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4237 array size at least. It's necessary to write '\x00'==0 to get something
4238 that's true only with -std. */
4239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4241 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4242 inside strings and character constants. */
4243 #define FOO(x) 'x'
4244 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4246 int test (int i, double x);
4247 struct s1 {int (*f) (int a);};
4248 struct s2 {int (*f) (double a);};
4249 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4250 int argc;
4251 char **argv;
4253 main ()
4255 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4257 return 0;
4259 _ACEOF
4260 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4261 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4263 CC="$ac_save_CC $ac_arg"
4264 if ac_fn_c_try_compile "$LINENO"; then :
4265 ac_cv_prog_cc_c89=$ac_arg
4267 rm -f core conftest.err conftest.$ac_objext
4268 test "x$ac_cv_prog_cc_c89" != "xno" && break
4269 done
4270 rm -f conftest.$ac_ext
4271 CC=$ac_save_CC
4274 # AC_CACHE_VAL
4275 case "x$ac_cv_prog_cc_c89" in
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4278 $as_echo "none needed" >&6; } ;;
4279 xno)
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4281 $as_echo "unsupported" >&6; } ;;
4283 CC="$CC $ac_cv_prog_cc_c89"
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4285 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4286 esac
4287 if test "x$ac_cv_prog_cc_c89" != xno; then :
4291 ac_ext=c
4292 ac_cpp='$CPP $CPPFLAGS'
4293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297 ac_ext=cpp
4298 ac_cpp='$CXXCPP $CPPFLAGS'
4299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4302 if test -z "$CXX"; then
4303 if test -n "$CCC"; then
4304 CXX=$CCC
4305 else
4306 if test -n "$ac_tool_prefix"; then
4307 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_prog_CXX+:} false; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316 if test -n "$CXX"; then
4317 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4330 done
4331 done
4332 IFS=$as_save_IFS
4336 CXX=$ac_cv_prog_CXX
4337 if test -n "$CXX"; then
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4339 $as_echo "$CXX" >&6; }
4340 else
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4346 test -n "$CXX" && break
4347 done
4349 if test -z "$CXX"; then
4350 ac_ct_CXX=$CXX
4351 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4353 # Extract the first word of "$ac_prog", so it can be a program name with args.
4354 set dummy $ac_prog; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 if test -n "$ac_ct_CXX"; then
4361 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4366 IFS=$as_save_IFS
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370 ac_cv_prog_ac_ct_CXX="$ac_prog"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372 break 2
4374 done
4375 done
4376 IFS=$as_save_IFS
4380 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4381 if test -n "$ac_ct_CXX"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4383 $as_echo "$ac_ct_CXX" >&6; }
4384 else
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4390 test -n "$ac_ct_CXX" && break
4391 done
4393 if test "x$ac_ct_CXX" = x; then
4394 CXX="g++"
4395 else
4396 case $cross_compiling:$ac_tool_warned in
4397 yes:)
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4400 ac_tool_warned=yes ;;
4401 esac
4402 CXX=$ac_ct_CXX
4408 # Provide some information about the compiler.
4409 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4410 set X $ac_compile
4411 ac_compiler=$2
4412 for ac_option in --version -v -V -qversion; do
4413 { { ac_try="$ac_compiler $ac_option >&5"
4414 case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4417 esac
4418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4419 $as_echo "$ac_try_echo"; } >&5
4420 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4421 ac_status=$?
4422 if test -s conftest.err; then
4423 sed '10a\
4424 ... rest of stderr output deleted ...
4425 10q' conftest.err >conftest.er1
4426 cat conftest.er1 >&5
4428 rm -f conftest.er1 conftest.err
4429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4430 test $ac_status = 0; }
4431 done
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4434 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4435 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4442 main ()
4444 #ifndef __GNUC__
4445 choke me
4446 #endif
4449 return 0;
4451 _ACEOF
4452 if ac_fn_cxx_try_compile "$LINENO"; then :
4453 ac_compiler_gnu=yes
4454 else
4455 ac_compiler_gnu=no
4457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4458 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4462 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4463 if test $ac_compiler_gnu = yes; then
4464 GXX=yes
4465 else
4466 GXX=
4468 ac_test_CXXFLAGS=${CXXFLAGS+set}
4469 ac_save_CXXFLAGS=$CXXFLAGS
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4471 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4472 if ${ac_cv_prog_cxx_g+:} false; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4476 ac_cxx_werror_flag=yes
4477 ac_cv_prog_cxx_g=no
4478 CXXFLAGS="-g"
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4483 main ()
4487 return 0;
4489 _ACEOF
4490 if ac_fn_cxx_try_compile "$LINENO"; then :
4491 ac_cv_prog_cxx_g=yes
4492 else
4493 CXXFLAGS=""
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4498 main ()
4502 return 0;
4504 _ACEOF
4505 if ac_fn_cxx_try_compile "$LINENO"; then :
4507 else
4508 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4509 CXXFLAGS="-g"
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4514 main ()
4518 return 0;
4520 _ACEOF
4521 if ac_fn_cxx_try_compile "$LINENO"; then :
4522 ac_cv_prog_cxx_g=yes
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4532 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4533 if test "$ac_test_CXXFLAGS" = set; then
4534 CXXFLAGS=$ac_save_CXXFLAGS
4535 elif test $ac_cv_prog_cxx_g = yes; then
4536 if test "$GXX" = yes; then
4537 CXXFLAGS="-g -O2"
4538 else
4539 CXXFLAGS="-g"
4541 else
4542 if test "$GXX" = yes; then
4543 CXXFLAGS="-O2"
4544 else
4545 CXXFLAGS=
4548 ac_ext=c
4549 ac_cpp='$CPP $CPPFLAGS'
4550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554 if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4556 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_CPPBIN+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$CPPBIN"; then
4563 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4572 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4578 IFS=$as_save_IFS
4582 CPPBIN=$ac_cv_prog_CPPBIN
4583 if test -n "$CPPBIN"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4585 $as_echo "$CPPBIN" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4593 if test -z "$ac_cv_prog_CPPBIN"; then
4594 ac_ct_CPPBIN=$CPPBIN
4595 # Extract the first word of "cpp", so it can be a program name with args.
4596 set dummy cpp; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -n "$ac_ct_CPPBIN"; then
4603 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_prog_ac_ct_CPPBIN="cpp"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4616 done
4617 done
4618 IFS=$as_save_IFS
4622 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4623 if test -n "$ac_ct_CPPBIN"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4625 $as_echo "$ac_ct_CPPBIN" >&6; }
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4631 if test "x$ac_ct_CPPBIN" = x; then
4632 CPPBIN="cpp"
4633 else
4634 case $cross_compiling:$ac_tool_warned in
4635 yes:)
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned=yes ;;
4639 esac
4640 CPPBIN=$ac_ct_CPPBIN
4642 else
4643 CPPBIN="$ac_cv_prog_CPPBIN"
4647 cat >>confdefs.h <<_ACEOF
4648 #define EXEEXT "$ac_exeext"
4649 _ACEOF
4652 case $host in
4653 *-darwin*)
4654 if test "x$enable_win64" = "xyes"
4655 then
4656 CC="$CC -m64"
4657 CXX="$CXX -m64"
4658 host_cpu="x86_64"
4659 notice_platform="64-bit "
4660 TARGETFLAGS="-m64"
4662 else
4663 CC="$CC -m32"
4664 CXX="$CXX -m32"
4665 host_cpu="i386"
4666 notice_platform="32-bit "
4667 TARGETFLAGS="-m32"
4669 enable_win16=${enable_win16:-yes}
4671 with_fontconfig=${with_fontconfig:-no}
4673 x86_64*)
4674 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4675 then
4676 CC="$CC -m32"
4677 CXX="$CXX -m32"
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4679 $as_echo_n "checking whether $CC works... " >&6; }
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4685 main ()
4689 return 0;
4691 _ACEOF
4692 if ac_fn_c_try_link "$LINENO"; then :
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4694 $as_echo "yes" >&6; }
4695 else
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4698 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4700 rm -f core conftest.err conftest.$ac_objext \
4701 conftest$ac_exeext conftest.$ac_ext
4702 host_cpu="i386"
4703 notice_platform="32-bit "
4704 TARGETFLAGS="-m32"
4706 enable_win16=${enable_win16:-yes}
4707 else
4708 if test "x${GCC}" = "xyes"
4709 then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4711 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714 #include <stdarg.h>
4716 main ()
4718 void func(__builtin_ms_va_list *args);
4720 return 0;
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4725 $as_echo "yes" >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4729 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733 TARGETFLAGS="-m64"
4737 arm*)
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4739 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4742 int ac_test(int i) { return i; }
4744 main ()
4746 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4748 return 0;
4750 _ACEOF
4751 if ac_fn_c_try_link "$LINENO"; then :
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4753 $as_echo "yes" >&6; }
4754 else
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4757 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4759 rm -f core conftest.err conftest.$ac_objext \
4760 conftest$ac_exeext conftest.$ac_ext
4761 CFLAGS="$CFLAGS -marm"
4763 *-mingw32*|*-cygwin*)
4764 enable_win16=${enable_win16:-no}
4765 CFLAGS="$CFLAGS -D_WIN32"
4767 i[3456789]86*)
4768 enable_win16=${enable_win16:-yes}
4770 esac
4772 enable_win16=${enable_win16:-no}
4773 enable_win64=${enable_win64:-no}
4775 enable_winetest=${enable_winetest:-$enable_tests}
4777 if test -n "$with_wine64"
4778 then
4779 if test "x$enable_win64" = "xyes"
4780 then
4781 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4782 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4784 enable_fonts=${enable_fonts:-no}
4785 enable_server=${enable_server:-no}
4786 elif test "x$enable_win64" = "xyes"
4787 then
4788 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4792 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4793 if ${wine_cv_toolsdir+:} false; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 wine_cv_toolsdir="$with_wine_tools"
4797 if test -z "$with_wine_tools"; then
4798 if test "$cross_compiling" = "yes"; then
4799 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4800 elif test -n "$with_wine64"; then
4801 wine_cv_toolsdir="$with_wine64"
4804 if test -z "$wine_cv_toolsdir"; then
4805 wine_cv_toolsdir="\$(top_builddir)"
4806 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4807 case "$wine_cv_toolsdir" in
4808 /*) ;;
4809 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4810 esac
4811 enable_tools=${enable_tools:-no}
4812 else
4813 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4817 $as_echo "$wine_cv_toolsdir" >&6; }
4818 TOOLSDIR=$wine_cv_toolsdir
4820 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4821 then
4822 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4826 for ac_prog in flex
4828 # Extract the first word of "$ac_prog", so it can be a program name with args.
4829 set dummy $ac_prog; ac_word=$2
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831 $as_echo_n "checking for $ac_word... " >&6; }
4832 if ${ac_cv_prog_FLEX+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 if test -n "$FLEX"; then
4836 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4837 else
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845 ac_cv_prog_FLEX="$ac_prog"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4849 done
4850 done
4851 IFS=$as_save_IFS
4855 FLEX=$ac_cv_prog_FLEX
4856 if test -n "$FLEX"; then
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4858 $as_echo "$FLEX" >&6; }
4859 else
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4865 test -n "$FLEX" && break
4866 done
4867 test -n "$FLEX" || FLEX="none"
4869 if test "$FLEX" = "none"
4870 then
4871 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4874 $as_echo_n "checking whether flex is recent enough... " >&6; }
4875 cat >conftest.l <<EOF
4876 %top{
4877 #include "prediluvian.h"
4881 if $FLEX -t conftest.l >/dev/null 2>&5
4882 then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4884 $as_echo "yes" >&6; }
4885 else
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4888 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4891 for ac_prog in bison
4893 # Extract the first word of "$ac_prog", so it can be a program name with args.
4894 set dummy $ac_prog; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if ${ac_cv_prog_BISON+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if test -n "$BISON"; then
4901 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4902 else
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910 ac_cv_prog_BISON="$ac_prog"
4911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4914 done
4915 done
4916 IFS=$as_save_IFS
4920 BISON=$ac_cv_prog_BISON
4921 if test -n "$BISON"; then
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4923 $as_echo "$BISON" >&6; }
4924 else
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4926 $as_echo "no" >&6; }
4930 test -n "$BISON" && break
4931 done
4932 test -n "$BISON" || BISON="none"
4934 if test "$BISON" = "none"
4935 then
4936 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4939 if test -n "$ac_tool_prefix"; then
4940 for ac_prog in ar gar
4942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if ${ac_cv_prog_AR+:} false; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 if test -n "$AR"; then
4950 ac_cv_prog_AR="$AR" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4959 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4963 done
4964 done
4965 IFS=$as_save_IFS
4969 AR=$ac_cv_prog_AR
4970 if test -n "$AR"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4972 $as_echo "$AR" >&6; }
4973 else
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4979 test -n "$AR" && break
4980 done
4982 if test -z "$AR"; then
4983 ac_ct_AR=$AR
4984 for ac_prog in ar gar
4986 # Extract the first word of "$ac_prog", so it can be a program name with args.
4987 set dummy $ac_prog; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 if test -n "$ac_ct_AR"; then
4994 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4995 else
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003 ac_cv_prog_ac_ct_AR="$ac_prog"
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5005 break 2
5007 done
5008 done
5009 IFS=$as_save_IFS
5013 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5014 if test -n "$ac_ct_AR"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5016 $as_echo "$ac_ct_AR" >&6; }
5017 else
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5023 test -n "$ac_ct_AR" && break
5024 done
5026 if test "x$ac_ct_AR" = x; then
5027 AR="ar"
5028 else
5029 case $cross_compiling:$ac_tool_warned in
5030 yes:)
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5033 ac_tool_warned=yes ;;
5034 esac
5035 AR=$ac_ct_AR
5039 if test -n "$ac_tool_prefix"; then
5040 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5041 set dummy ${ac_tool_prefix}strip; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_STRIP+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$STRIP"; then
5048 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5061 done
5062 done
5063 IFS=$as_save_IFS
5067 STRIP=$ac_cv_prog_STRIP
5068 if test -n "$STRIP"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5070 $as_echo "$STRIP" >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5078 if test -z "$ac_cv_prog_STRIP"; then
5079 ac_ct_STRIP=$STRIP
5080 # Extract the first word of "strip", so it can be a program name with args.
5081 set dummy strip; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$ac_ct_STRIP"; then
5088 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_ac_ct_STRIP="strip"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5101 done
5102 done
5103 IFS=$as_save_IFS
5107 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5108 if test -n "$ac_ct_STRIP"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5110 $as_echo "$ac_ct_STRIP" >&6; }
5111 else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5116 if test "x$ac_ct_STRIP" = x; then
5117 STRIP="strip"
5118 else
5119 case $cross_compiling:$ac_tool_warned in
5120 yes:)
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123 ac_tool_warned=yes ;;
5124 esac
5125 STRIP=$ac_ct_STRIP
5127 else
5128 STRIP="$ac_cv_prog_STRIP"
5131 ARFLAGS=rc
5133 if test -n "$ac_tool_prefix"; then
5134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5135 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 $as_echo_n "checking for $ac_word... " >&6; }
5138 if ${ac_cv_prog_RANLIB+:} false; then :
5139 $as_echo_n "(cached) " >&6
5140 else
5141 if test -n "$RANLIB"; then
5142 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5143 else
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 for as_dir in $PATH
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2
5155 done
5156 done
5157 IFS=$as_save_IFS
5161 RANLIB=$ac_cv_prog_RANLIB
5162 if test -n "$RANLIB"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5164 $as_echo "$RANLIB" >&6; }
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5172 if test -z "$ac_cv_prog_RANLIB"; then
5173 ac_ct_RANLIB=$RANLIB
5174 # Extract the first word of "ranlib", so it can be a program name with args.
5175 set dummy ranlib; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -n "$ac_ct_RANLIB"; then
5182 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5183 else
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191 ac_cv_prog_ac_ct_RANLIB="ranlib"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5195 done
5196 done
5197 IFS=$as_save_IFS
5201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5202 if test -n "$ac_ct_RANLIB"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5204 $as_echo "$ac_ct_RANLIB" >&6; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5210 if test "x$ac_ct_RANLIB" = x; then
5211 RANLIB=":"
5212 else
5213 case $cross_compiling:$ac_tool_warned in
5214 yes:)
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5217 ac_tool_warned=yes ;;
5218 esac
5219 RANLIB=$ac_ct_RANLIB
5221 else
5222 RANLIB="$ac_cv_prog_RANLIB"
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5226 $as_echo_n "checking whether ln -s works... " >&6; }
5227 LN_S=$as_ln_s
5228 if test "$LN_S" = "ln -s"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5230 $as_echo "yes" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5233 $as_echo "no, using $LN_S" >&6; }
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5237 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5238 if ${ac_cv_path_GREP+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 if test -z "$GREP"; then
5242 ac_path_GREP_found=false
5243 # Loop through the user's path and test for each of PROGNAME-LIST
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_prog in grep ggrep; do
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5252 as_fn_executable_p "$ac_path_GREP" || continue
5253 # Check for GNU ac_path_GREP and select it if it is found.
5254 # Check for GNU $ac_path_GREP
5255 case `"$ac_path_GREP" --version 2>&1` in
5256 *GNU*)
5257 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5259 ac_count=0
5260 $as_echo_n 0123456789 >"conftest.in"
5261 while :
5263 cat "conftest.in" "conftest.in" >"conftest.tmp"
5264 mv "conftest.tmp" "conftest.in"
5265 cp "conftest.in" "conftest.nl"
5266 $as_echo 'GREP' >> "conftest.nl"
5267 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269 as_fn_arith $ac_count + 1 && ac_count=$as_val
5270 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5271 # Best one so far, save it but keep looking for a better one
5272 ac_cv_path_GREP="$ac_path_GREP"
5273 ac_path_GREP_max=$ac_count
5275 # 10*(2^10) chars as input seems more than enough
5276 test $ac_count -gt 10 && break
5277 done
5278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5279 esac
5281 $ac_path_GREP_found && break 3
5282 done
5283 done
5284 done
5285 IFS=$as_save_IFS
5286 if test -z "$ac_cv_path_GREP"; then
5287 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5289 else
5290 ac_cv_path_GREP=$GREP
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5295 $as_echo "$ac_cv_path_GREP" >&6; }
5296 GREP="$ac_cv_path_GREP"
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5300 $as_echo_n "checking for egrep... " >&6; }
5301 if ${ac_cv_path_EGREP+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5305 then ac_cv_path_EGREP="$GREP -E"
5306 else
5307 if test -z "$EGREP"; then
5308 ac_path_EGREP_found=false
5309 # Loop through the user's path and test for each of PROGNAME-LIST
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_prog in egrep; do
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5318 as_fn_executable_p "$ac_path_EGREP" || continue
5319 # Check for GNU ac_path_EGREP and select it if it is found.
5320 # Check for GNU $ac_path_EGREP
5321 case `"$ac_path_EGREP" --version 2>&1` in
5322 *GNU*)
5323 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5325 ac_count=0
5326 $as_echo_n 0123456789 >"conftest.in"
5327 while :
5329 cat "conftest.in" "conftest.in" >"conftest.tmp"
5330 mv "conftest.tmp" "conftest.in"
5331 cp "conftest.in" "conftest.nl"
5332 $as_echo 'EGREP' >> "conftest.nl"
5333 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5335 as_fn_arith $ac_count + 1 && ac_count=$as_val
5336 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5337 # Best one so far, save it but keep looking for a better one
5338 ac_cv_path_EGREP="$ac_path_EGREP"
5339 ac_path_EGREP_max=$ac_count
5341 # 10*(2^10) chars as input seems more than enough
5342 test $ac_count -gt 10 && break
5343 done
5344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5345 esac
5347 $ac_path_EGREP_found && break 3
5348 done
5349 done
5350 done
5351 IFS=$as_save_IFS
5352 if test -z "$ac_cv_path_EGREP"; then
5353 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5355 else
5356 ac_cv_path_EGREP=$EGREP
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5362 $as_echo "$ac_cv_path_EGREP" >&6; }
5363 EGREP="$ac_cv_path_EGREP"
5366 # Extract the first word of "ldconfig", so it can be a program name with args.
5367 set dummy ldconfig; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if ${ac_cv_path_LDCONFIG+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 case $LDCONFIG in
5374 [\\/]* | ?:[\\/]*)
5375 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in /sbin /usr/sbin $PATH
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5385 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5389 done
5390 done
5391 IFS=$as_save_IFS
5393 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5395 esac
5397 LDCONFIG=$ac_cv_path_LDCONFIG
5398 if test -n "$LDCONFIG"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
5400 $as_echo "$LDCONFIG" >&6; }
5401 else
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5407 for ac_prog in msgfmt
5409 # Extract the first word of "$ac_prog", so it can be a program name with args.
5410 set dummy $ac_prog; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_prog_MSGFMT+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 if test -n "$MSGFMT"; then
5417 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_prog_MSGFMT="$ac_prog"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5430 done
5431 done
5432 IFS=$as_save_IFS
5436 MSGFMT=$ac_cv_prog_MSGFMT
5437 if test -n "$MSGFMT"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5439 $as_echo "$MSGFMT" >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5446 test -n "$MSGFMT" && break
5447 done
5448 test -n "$MSGFMT" || MSGFMT="false"
5450 if test -n "$ac_tool_prefix"; then
5451 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5452 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 if test -n "$PKG_CONFIG"; then
5459 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5472 done
5473 done
5474 IFS=$as_save_IFS
5478 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5479 if test -n "$PKG_CONFIG"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5481 $as_echo "$PKG_CONFIG" >&6; }
5482 else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5489 if test -n "$ac_cv_prog_PKG_CONFIG"; then
5490 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
5491 elif test "$cross_compiling" != yes; then
5492 unset ac_cv_prog_PKG_CONFIG
5493 # Extract the first word of "pkg-config", so it can be a program name with args.
5494 set dummy pkg-config; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 if test -n "$PKG_CONFIG"; then
5501 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5510 ac_cv_prog_PKG_CONFIG="pkg-config"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5514 done
5515 done
5516 IFS=$as_save_IFS
5520 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5521 if test -n "$PKG_CONFIG"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5523 $as_echo "$PKG_CONFIG" >&6; }
5524 else
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5532 if test "x$enable_maintainer_mode" != "xyes"
5533 then
5534 FONTFORGE=""
5535 RSVG=""
5536 CONVERT=""
5537 ICOTOOL=""
5538 else
5539 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5540 for ac_prog in fontforge
5542 # Extract the first word of "$ac_prog", so it can be a program name with args.
5543 set dummy $ac_prog; ac_word=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if ${ac_cv_prog_FONTFORGE+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 if test -n "$FONTFORGE"; then
5550 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559 ac_cv_prog_FONTFORGE="$ac_prog"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 break 2
5563 done
5564 done
5565 IFS=$as_save_IFS
5569 FONTFORGE=$ac_cv_prog_FONTFORGE
5570 if test -n "$FONTFORGE"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5572 $as_echo "$FONTFORGE" >&6; }
5573 else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5579 test -n "$FONTFORGE" && break
5580 done
5581 test -n "$FONTFORGE" || FONTFORGE="false"
5583 for ac_prog in rsvg
5585 # Extract the first word of "$ac_prog", so it can be a program name with args.
5586 set dummy $ac_prog; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if ${ac_cv_prog_RSVG+:} false; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 if test -n "$RSVG"; then
5593 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602 ac_cv_prog_RSVG="$ac_prog"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5606 done
5607 done
5608 IFS=$as_save_IFS
5612 RSVG=$ac_cv_prog_RSVG
5613 if test -n "$RSVG"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5615 $as_echo "$RSVG" >&6; }
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5622 test -n "$RSVG" && break
5623 done
5624 test -n "$RSVG" || RSVG="false"
5626 for ac_prog in convert
5628 # Extract the first word of "$ac_prog", so it can be a program name with args.
5629 set dummy $ac_prog; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_CONVERT+:} false; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if test -n "$CONVERT"; then
5636 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_CONVERT="$ac_prog"
5646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5649 done
5650 done
5651 IFS=$as_save_IFS
5655 CONVERT=$ac_cv_prog_CONVERT
5656 if test -n "$CONVERT"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5658 $as_echo "$CONVERT" >&6; }
5659 else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5665 test -n "$CONVERT" && break
5666 done
5667 test -n "$CONVERT" || CONVERT="false"
5669 for ac_prog in icotool
5671 # Extract the first word of "$ac_prog", so it can be a program name with args.
5672 set dummy $ac_prog; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_prog_ICOTOOL+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 if test -n "$ICOTOOL"; then
5679 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_prog_ICOTOOL="$ac_prog"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5692 done
5693 done
5694 IFS=$as_save_IFS
5698 ICOTOOL=$ac_cv_prog_ICOTOOL
5699 if test -n "$ICOTOOL"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5701 $as_echo "$ICOTOOL" >&6; }
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5708 test -n "$ICOTOOL" && break
5709 done
5710 test -n "$ICOTOOL" || ICOTOOL="false"
5712 test "$FONTFORGE" != "false" || as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5
5713 test "$RSVG" != "false" || as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5
5715 if test "$CONVERT" = false
5716 then
5717 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5718 else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5720 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5721 convert_version=`convert --version | head -n1`
5722 if test "x$convert_version" != "x"
5723 then
5724 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5725 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5726 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5727 then
5728 CONVERT=false
5731 if test "$CONVERT" = false
5732 then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5734 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5735 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5738 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5742 if test "$ICOTOOL" = false
5743 then
5744 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5747 $as_echo_n "checking for recent enough icotool... " >&6; }
5748 icotool_version=`icotool --version | head -n1`
5749 if test "x$icotool_version" != "x"
5750 then
5751 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5752 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5753 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5754 then
5755 ICOTOOL=false
5756 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5759 if test "$ICOTOOL" = false
5760 then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5762 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5763 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5766 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5770 with_gettext=yes
5771 with_gettextpo=yes
5772 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5775 test "x$with_gettext" != xno || MSGFMT=false
5776 if test "$MSGFMT" != "false"
5777 then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5779 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5780 cat >conftest.po <<EOF
5781 # comment
5782 msgctxt "ctxt"
5783 msgid "id"
5784 msgstr "str"
5786 if $MSGFMT -o /dev/null conftest.po 2>&5
5787 then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5789 $as_echo "yes" >&6; }
5790 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 MSGFMT=false
5796 if test "$MSGFMT" = false; then :
5797 case "x$with_gettext" in
5798 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5799 xno) ;;
5800 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5801 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5802 esac
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5807 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5808 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 ac_check_lib_save_LIBS=$LIBS
5812 LIBS="-li386 $LIBS"
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5816 /* Override any GCC internal prototype to avoid an error.
5817 Use char because int might match the return type of a GCC
5818 builtin and then its argument prototype would still apply. */
5819 #ifdef __cplusplus
5820 extern "C"
5821 #endif
5822 char i386_set_ldt ();
5824 main ()
5826 return i386_set_ldt ();
5828 return 0;
5830 _ACEOF
5831 if ac_fn_c_try_link "$LINENO"; then :
5832 ac_cv_lib_i386_i386_set_ldt=yes
5833 else
5834 ac_cv_lib_i386_i386_set_ldt=no
5836 rm -f core conftest.err conftest.$ac_objext \
5837 conftest$ac_exeext conftest.$ac_ext
5838 LIBS=$ac_check_lib_save_LIBS
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5841 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5842 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5843 cat >>confdefs.h <<_ACEOF
5844 #define HAVE_LIBI386 1
5845 _ACEOF
5847 LIBS="-li386 $LIBS"
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5852 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5853 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 ac_check_lib_save_LIBS=$LIBS
5857 LIBS="-lossaudio $LIBS"
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5861 /* Override any GCC internal prototype to avoid an error.
5862 Use char because int might match the return type of a GCC
5863 builtin and then its argument prototype would still apply. */
5864 #ifdef __cplusplus
5865 extern "C"
5866 #endif
5867 char _oss_ioctl ();
5869 main ()
5871 return _oss_ioctl ();
5873 return 0;
5875 _ACEOF
5876 if ac_fn_c_try_link "$LINENO"; then :
5877 ac_cv_lib_ossaudio__oss_ioctl=yes
5878 else
5879 ac_cv_lib_ossaudio__oss_ioctl=no
5881 rm -f core conftest.err conftest.$ac_objext \
5882 conftest$ac_exeext conftest.$ac_ext
5883 LIBS=$ac_check_lib_save_LIBS
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5886 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5887 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5888 cat >>confdefs.h <<_ACEOF
5889 #define HAVE_LIBOSSAUDIO 1
5890 _ACEOF
5892 LIBS="-lossaudio $LIBS"
5897 XLIB=""
5899 OPENGL_LIBS=""
5903 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5905 # Check whether --enable-largefile was given.
5906 if test "${enable_largefile+set}" = set; then :
5907 enableval=$enable_largefile;
5910 if test "$enable_largefile" != no; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5913 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5914 if ${ac_cv_sys_largefile_CC+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 ac_cv_sys_largefile_CC=no
5918 if test "$GCC" != yes; then
5919 ac_save_CC=$CC
5920 while :; do
5921 # IRIX 6.2 and later do not support large files by default,
5922 # so use the C compiler's -n32 option if that helps.
5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924 /* end confdefs.h. */
5925 #include <sys/types.h>
5926 /* Check that off_t can represent 2**63 - 1 correctly.
5927 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5928 since some C++ compilers masquerading as C compilers
5929 incorrectly reject 9223372036854775807. */
5930 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5931 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5932 && LARGE_OFF_T % 2147483647 == 1)
5933 ? 1 : -1];
5935 main ()
5939 return 0;
5941 _ACEOF
5942 if ac_fn_c_try_compile "$LINENO"; then :
5943 break
5945 rm -f core conftest.err conftest.$ac_objext
5946 CC="$CC -n32"
5947 if ac_fn_c_try_compile "$LINENO"; then :
5948 ac_cv_sys_largefile_CC=' -n32'; break
5950 rm -f core conftest.err conftest.$ac_objext
5951 break
5952 done
5953 CC=$ac_save_CC
5954 rm -f conftest.$ac_ext
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5958 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5959 if test "$ac_cv_sys_largefile_CC" != no; then
5960 CC=$CC$ac_cv_sys_largefile_CC
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5964 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5965 if ${ac_cv_sys_file_offset_bits+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 while :; do
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5971 #include <sys/types.h>
5972 /* Check that off_t can represent 2**63 - 1 correctly.
5973 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5974 since some C++ compilers masquerading as C compilers
5975 incorrectly reject 9223372036854775807. */
5976 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5977 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5978 && LARGE_OFF_T % 2147483647 == 1)
5979 ? 1 : -1];
5981 main ()
5985 return 0;
5987 _ACEOF
5988 if ac_fn_c_try_compile "$LINENO"; then :
5989 ac_cv_sys_file_offset_bits=no; break
5991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 #define _FILE_OFFSET_BITS 64
5995 #include <sys/types.h>
5996 /* Check that off_t can represent 2**63 - 1 correctly.
5997 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5998 since some C++ compilers masquerading as C compilers
5999 incorrectly reject 9223372036854775807. */
6000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6001 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6002 && LARGE_OFF_T % 2147483647 == 1)
6003 ? 1 : -1];
6005 main ()
6009 return 0;
6011 _ACEOF
6012 if ac_fn_c_try_compile "$LINENO"; then :
6013 ac_cv_sys_file_offset_bits=64; break
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6016 ac_cv_sys_file_offset_bits=unknown
6017 break
6018 done
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6021 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6022 case $ac_cv_sys_file_offset_bits in #(
6023 no | unknown) ;;
6025 cat >>confdefs.h <<_ACEOF
6026 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6027 _ACEOF
6029 esac
6030 rm -rf conftest*
6031 if test $ac_cv_sys_file_offset_bits = unknown; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6033 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6034 if ${ac_cv_sys_large_files+:} false; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 while :; do
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 #include <sys/types.h>
6041 /* Check that off_t can represent 2**63 - 1 correctly.
6042 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6043 since some C++ compilers masquerading as C compilers
6044 incorrectly reject 9223372036854775807. */
6045 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6046 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6047 && LARGE_OFF_T % 2147483647 == 1)
6048 ? 1 : -1];
6050 main ()
6054 return 0;
6056 _ACEOF
6057 if ac_fn_c_try_compile "$LINENO"; then :
6058 ac_cv_sys_large_files=no; break
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063 #define _LARGE_FILES 1
6064 #include <sys/types.h>
6065 /* Check that off_t can represent 2**63 - 1 correctly.
6066 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6067 since some C++ compilers masquerading as C compilers
6068 incorrectly reject 9223372036854775807. */
6069 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6071 && LARGE_OFF_T % 2147483647 == 1)
6072 ? 1 : -1];
6074 main ()
6078 return 0;
6080 _ACEOF
6081 if ac_fn_c_try_compile "$LINENO"; then :
6082 ac_cv_sys_large_files=1; break
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 ac_cv_sys_large_files=unknown
6086 break
6087 done
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6090 $as_echo "$ac_cv_sys_large_files" >&6; }
6091 case $ac_cv_sys_large_files in #(
6092 no | unknown) ;;
6094 cat >>confdefs.h <<_ACEOF
6095 #define _LARGE_FILES $ac_cv_sys_large_files
6096 _ACEOF
6098 esac
6099 rm -rf conftest*
6106 ac_ext=c
6107 ac_cpp='$CPP $CPPFLAGS'
6108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6112 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6113 # On Suns, sometimes $CPP names a directory.
6114 if test -n "$CPP" && test -d "$CPP"; then
6115 CPP=
6117 if test -z "$CPP"; then
6118 if ${ac_cv_prog_CPP+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 # Double quotes because CPP needs to be expanded
6122 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6124 ac_preproc_ok=false
6125 for ac_c_preproc_warn_flag in '' yes
6127 # Use a header file that comes with gcc, so configuring glibc
6128 # with a fresh cross-compiler works.
6129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6130 # <limits.h> exists even on freestanding compilers.
6131 # On the NeXT, cc -E runs the code through the compiler's parser,
6132 # not just through cpp. "Syntax error" is here to catch this case.
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 #ifdef __STDC__
6136 # include <limits.h>
6137 #else
6138 # include <assert.h>
6139 #endif
6140 Syntax error
6141 _ACEOF
6142 if ac_fn_c_try_cpp "$LINENO"; then :
6144 else
6145 # Broken: fails on valid input.
6146 continue
6148 rm -f conftest.err conftest.i conftest.$ac_ext
6150 # OK, works on sane cases. Now check whether nonexistent headers
6151 # can be detected and how.
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6154 #include <ac_nonexistent.h>
6155 _ACEOF
6156 if ac_fn_c_try_cpp "$LINENO"; then :
6157 # Broken: success on invalid input.
6158 continue
6159 else
6160 # Passes both tests.
6161 ac_preproc_ok=:
6162 break
6164 rm -f conftest.err conftest.i conftest.$ac_ext
6166 done
6167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6168 rm -f conftest.i conftest.err conftest.$ac_ext
6169 if $ac_preproc_ok; then :
6170 break
6173 done
6174 ac_cv_prog_CPP=$CPP
6177 CPP=$ac_cv_prog_CPP
6178 else
6179 ac_cv_prog_CPP=$CPP
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6182 $as_echo "$CPP" >&6; }
6183 ac_preproc_ok=false
6184 for ac_c_preproc_warn_flag in '' yes
6186 # Use a header file that comes with gcc, so configuring glibc
6187 # with a fresh cross-compiler works.
6188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6189 # <limits.h> exists even on freestanding compilers.
6190 # On the NeXT, cc -E runs the code through the compiler's parser,
6191 # not just through cpp. "Syntax error" is here to catch this case.
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 #ifdef __STDC__
6195 # include <limits.h>
6196 #else
6197 # include <assert.h>
6198 #endif
6199 Syntax error
6200 _ACEOF
6201 if ac_fn_c_try_cpp "$LINENO"; then :
6203 else
6204 # Broken: fails on valid input.
6205 continue
6207 rm -f conftest.err conftest.i conftest.$ac_ext
6209 # OK, works on sane cases. Now check whether nonexistent headers
6210 # can be detected and how.
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 #include <ac_nonexistent.h>
6214 _ACEOF
6215 if ac_fn_c_try_cpp "$LINENO"; then :
6216 # Broken: success on invalid input.
6217 continue
6218 else
6219 # Passes both tests.
6220 ac_preproc_ok=:
6221 break
6223 rm -f conftest.err conftest.i conftest.$ac_ext
6225 done
6226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6227 rm -f conftest.i conftest.err conftest.$ac_ext
6228 if $ac_preproc_ok; then :
6230 else
6231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6233 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6234 See \`config.log' for more details" "$LINENO" 5; }
6237 ac_ext=c
6238 ac_cpp='$CPP $CPPFLAGS'
6239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6245 $as_echo_n "checking for ANSI C header files... " >&6; }
6246 if ${ac_cv_header_stdc+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6251 #include <stdlib.h>
6252 #include <stdarg.h>
6253 #include <string.h>
6254 #include <float.h>
6257 main ()
6261 return 0;
6263 _ACEOF
6264 if ac_fn_c_try_compile "$LINENO"; then :
6265 ac_cv_header_stdc=yes
6266 else
6267 ac_cv_header_stdc=no
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6271 if test $ac_cv_header_stdc = yes; then
6272 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275 #include <string.h>
6277 _ACEOF
6278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6279 $EGREP "memchr" >/dev/null 2>&1; then :
6281 else
6282 ac_cv_header_stdc=no
6284 rm -f conftest*
6288 if test $ac_cv_header_stdc = yes; then
6289 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292 #include <stdlib.h>
6294 _ACEOF
6295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6296 $EGREP "free" >/dev/null 2>&1; then :
6298 else
6299 ac_cv_header_stdc=no
6301 rm -f conftest*
6305 if test $ac_cv_header_stdc = yes; then
6306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6307 if test "$cross_compiling" = yes; then :
6309 else
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312 #include <ctype.h>
6313 #include <stdlib.h>
6314 #if ((' ' & 0x0FF) == 0x020)
6315 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6316 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6317 #else
6318 # define ISLOWER(c) \
6319 (('a' <= (c) && (c) <= 'i') \
6320 || ('j' <= (c) && (c) <= 'r') \
6321 || ('s' <= (c) && (c) <= 'z'))
6322 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6323 #endif
6325 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6327 main ()
6329 int i;
6330 for (i = 0; i < 256; i++)
6331 if (XOR (islower (i), ISLOWER (i))
6332 || toupper (i) != TOUPPER (i))
6333 return 2;
6334 return 0;
6336 _ACEOF
6337 if ac_fn_c_try_run "$LINENO"; then :
6339 else
6340 ac_cv_header_stdc=no
6342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6343 conftest.$ac_objext conftest.beam conftest.$ac_ext
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6349 $as_echo "$ac_cv_header_stdc" >&6; }
6350 if test $ac_cv_header_stdc = yes; then
6352 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6356 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6358 inttypes.h stdint.h unistd.h
6359 do :
6360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6361 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6363 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6364 cat >>confdefs.h <<_ACEOF
6365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6366 _ACEOF
6370 done
6373 for ac_header in \
6374 AL/al.h \
6375 ApplicationServices/ApplicationServices.h \
6376 AudioToolbox/AudioConverter.h \
6377 AudioUnit/AudioUnit.h \
6378 AudioUnit/AudioComponent.h \
6379 CL/cl.h \
6380 Carbon/Carbon.h \
6381 CoreAudio/CoreAudio.h \
6382 CoreServices/CoreServices.h \
6383 DiskArbitration/DiskArbitration.h \
6384 IOKit/IOKitLib.h \
6385 IOKit/hid/IOHIDLib.h \
6386 OpenAL/al.h \
6387 OpenCL/opencl.h \
6388 QuickTime/ImageCompression.h \
6389 Security/Security.h \
6390 alias.h \
6391 alsa/asoundlib.h \
6392 arpa/inet.h \
6393 arpa/nameser.h \
6394 asm/types.h \
6395 asm/user.h \
6396 curses.h \
6397 direct.h \
6398 dirent.h \
6399 dlfcn.h \
6400 elf.h \
6401 float.h \
6402 fnmatch.h \
6403 fontconfig/fontconfig.h \
6404 getopt.h \
6405 gettext-po.h \
6406 grp.h \
6407 gsm.h \
6408 gsm/gsm.h \
6409 ieeefp.h \
6410 inet/mib2.h \
6411 io.h \
6412 kstat.h \
6413 lber.h \
6414 ldap.h \
6415 libproc.h \
6416 link.h \
6417 linux/cdrom.h \
6418 linux/compiler.h \
6419 linux/filter.h \
6420 linux/hdreg.h \
6421 linux/input.h \
6422 linux/ioctl.h \
6423 linux/joystick.h \
6424 linux/major.h \
6425 linux/param.h \
6426 linux/serial.h \
6427 linux/types.h \
6428 linux/ucdrom.h \
6429 lwp.h \
6430 mach-o/nlist.h \
6431 mach-o/loader.h \
6432 mach/mach.h \
6433 mach/machine.h \
6434 machine/cpu.h \
6435 machine/limits.h \
6436 machine/sysarch.h \
6437 mntent.h \
6438 ncurses.h \
6439 netdb.h \
6440 netinet/in.h \
6441 netinet/in_systm.h \
6442 netinet/tcp.h \
6443 netinet/tcp_fsm.h \
6444 poll.h \
6445 port.h \
6446 process.h \
6447 pthread.h \
6448 pwd.h \
6449 sched.h \
6450 scsi/scsi.h \
6451 scsi/scsi_ioctl.h \
6452 scsi/sg.h \
6453 stdbool.h \
6454 stdint.h \
6455 stropts.h \
6456 sys/asoundlib.h \
6457 sys/attr.h \
6458 sys/cdio.h \
6459 sys/elf32.h \
6460 sys/epoll.h \
6461 sys/event.h \
6462 sys/exec_elf.h \
6463 sys/filio.h \
6464 sys/inotify.h \
6465 sys/ioctl.h \
6466 sys/ipc.h \
6467 sys/limits.h \
6468 sys/link.h \
6469 sys/mman.h \
6470 sys/modem.h \
6471 sys/msg.h \
6472 sys/mtio.h \
6473 sys/param.h \
6474 sys/poll.h \
6475 sys/prctl.h \
6476 sys/protosw.h \
6477 sys/ptrace.h \
6478 sys/queue.h \
6479 sys/resource.h \
6480 sys/scsiio.h \
6481 sys/shm.h \
6482 sys/signal.h \
6483 sys/socket.h \
6484 sys/socketvar.h \
6485 sys/sockio.h \
6486 sys/statvfs.h \
6487 sys/strtio.h \
6488 sys/syscall.h \
6489 sys/tihdr.h \
6490 sys/time.h \
6491 sys/timeout.h \
6492 sys/times.h \
6493 sys/uio.h \
6494 sys/user.h \
6495 sys/utsname.h \
6496 sys/vm86.h \
6497 sys/wait.h \
6498 syscall.h \
6499 termios.h \
6500 unistd.h \
6501 utime.h \
6502 valgrind/memcheck.h \
6503 valgrind/valgrind.h \
6504 zlib.h
6506 do :
6507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6509 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6510 cat >>confdefs.h <<_ACEOF
6511 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6512 _ACEOF
6516 done
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6519 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6520 if ${ac_cv_header_stat_broken+:} false; then :
6521 $as_echo_n "(cached) " >&6
6522 else
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 #include <sys/types.h>
6526 #include <sys/stat.h>
6528 #if defined S_ISBLK && defined S_IFDIR
6529 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6530 #endif
6532 #if defined S_ISBLK && defined S_IFCHR
6533 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6534 #endif
6536 #if defined S_ISLNK && defined S_IFREG
6537 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6538 #endif
6540 #if defined S_ISSOCK && defined S_IFREG
6541 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6542 #endif
6544 _ACEOF
6545 if ac_fn_c_try_compile "$LINENO"; then :
6546 ac_cv_header_stat_broken=no
6547 else
6548 ac_cv_header_stat_broken=yes
6550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6553 $as_echo "$ac_cv_header_stat_broken" >&6; }
6554 if test $ac_cv_header_stat_broken = yes; then
6556 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6562 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6563 do :
6564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6565 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6566 #ifdef HAVE_SYS_PARAM_H
6567 # include <sys/param.h>
6568 #endif
6570 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6571 cat >>confdefs.h <<_ACEOF
6572 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6573 _ACEOF
6577 done
6580 for ac_header in \
6581 netinet/ip.h \
6582 net/if.h \
6583 net/if_arp.h \
6584 net/if_dl.h \
6585 net/if_types.h \
6586 net/route.h \
6587 netinet/if_ether.h \
6588 netinet/if_inarp.h \
6589 netinet/in_pcb.h \
6590 netinet/ip_icmp.h \
6591 netinet/ip_var.h \
6592 netinet/udp.h \
6593 netipx/ipx.h \
6594 sys/un.h \
6596 do :
6597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6598 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6599 #ifdef HAVE_SYS_SOCKET_H
6600 # include <sys/socket.h>
6601 #endif
6602 #ifdef HAVE_SYS_SOCKETVAR_H
6603 # include <sys/socketvar.h>
6604 #endif
6605 #ifdef HAVE_NET_ROUTE_H
6606 # include <net/route.h>
6607 #endif
6608 #ifdef HAVE_NETINET_IN_H
6609 # include <netinet/in.h>
6610 #endif
6611 #ifdef HAVE_NETINET_IN_SYSTM_H
6612 # include <netinet/in_systm.h>
6613 #endif
6614 #ifdef HAVE_NET_IF_H
6615 # include <net/if.h>
6616 #endif
6617 #ifdef HAVE_NETINET_IP_H
6618 # include <netinet/ip.h>
6619 #endif
6621 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6622 cat >>confdefs.h <<_ACEOF
6623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6624 _ACEOF
6628 done
6631 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6632 do :
6633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6634 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6635 #ifdef HAVE_ALIAS_H
6636 # include <alias.h>
6637 #endif
6638 #ifdef HAVE_SYS_SOCKET_H
6639 # include <sys/socket.h>
6640 #endif
6641 #ifdef HAVE_SYS_SOCKETVAR_H
6642 # include <sys/socketvar.h>
6643 #endif
6644 #ifdef HAVE_SYS_TIMEOUT_H
6645 # include <sys/timeout.h>
6646 #endif
6647 #ifdef HAVE_NETINET_IN_H
6648 # include <netinet/in.h>
6649 #endif
6650 #ifdef HAVE_NETINET_IN_SYSTM_H
6651 # include <netinet/in_systm.h>
6652 #endif
6653 #ifdef HAVE_NETINET_IP_H
6654 # include <netinet/ip.h>
6655 #endif
6656 #ifdef HAVE_NETINET_IP_VAR_H
6657 # include <netinet/ip_var.h>
6658 #endif
6659 #ifdef HAVE_NETINET_IP_ICMP_H
6660 # include <netinet/ip_icmp.h>
6661 #endif
6662 #ifdef HAVE_NETINET_UDP_H
6663 # include <netinet/udp.h>
6664 #endif
6665 #ifdef HAVE_NETINET_TCP_H
6666 # include <netinet/tcp.h>
6667 #endif
6668 #ifdef HAVE_NETINET_TCP_TIMER_H
6669 #include <netinet/tcp_timer.h>
6670 #endif
6672 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6673 cat >>confdefs.h <<_ACEOF
6674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6675 _ACEOF
6679 done
6682 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6683 do :
6684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6685 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6686 #ifdef HAVE_ASM_TYPES_H
6687 # include <asm/types.h>
6688 #endif
6689 #ifdef HAVE_SYS_SOCKET_H
6690 # include <sys/socket.h>
6691 #endif
6692 #ifdef HAVE_LINUX_TYPES_H
6693 # include <linux/types.h>
6694 #endif
6696 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6697 cat >>confdefs.h <<_ACEOF
6698 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6699 _ACEOF
6703 done
6706 for ac_header in mach-o/dyld_images.h
6707 do :
6708 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6709 # include <stdbool.h>
6710 #endif
6711 #ifdef HAVE_STDINT_H
6712 # include <stdint.h>
6713 #endif
6715 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6716 cat >>confdefs.h <<_ACEOF
6717 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6718 _ACEOF
6722 done
6725 for ac_header in resolv.h
6726 do :
6727 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6728 #ifdef HAVE_SYS_SOCKET_H
6729 # include <sys/socket.h>
6730 #endif
6731 #ifdef HAVE_NETINET_IN_H
6732 # include <netinet/in.h>
6733 #endif
6734 #ifdef HAVE_ARPA_NAMESER_H
6735 # include <arpa/nameser.h>
6736 #endif
6738 if test "x$ac_cv_header_resolv_h" = xyes; then :
6739 cat >>confdefs.h <<_ACEOF
6740 #define HAVE_RESOLV_H 1
6741 _ACEOF
6745 done
6748 for ac_header in ifaddrs.h
6749 do :
6750 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6752 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6753 cat >>confdefs.h <<_ACEOF
6754 #define HAVE_IFADDRS_H 1
6755 _ACEOF
6759 done
6762 for ac_header in ucontext.h
6763 do :
6764 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6766 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6767 cat >>confdefs.h <<_ACEOF
6768 #define HAVE_UCONTEXT_H 1
6769 _ACEOF
6773 done
6776 for ac_header in sys/thr.h
6777 do :
6778 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6779 #ifdef HAVE_UCONTEXT_H
6780 #include <ucontext.h>
6781 #endif
6783 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6784 cat >>confdefs.h <<_ACEOF
6785 #define HAVE_SYS_THR_H 1
6786 _ACEOF
6790 done
6793 for ac_header in pthread_np.h
6794 do :
6795 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6796 #include <pthread.h>
6797 #endif
6799 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6800 cat >>confdefs.h <<_ACEOF
6801 #define HAVE_PTHREAD_NP_H 1
6802 _ACEOF
6806 done
6809 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6810 do :
6811 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6812 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6813 #include <sys/time.h>
6814 #endif
6815 #include <sys/types.h>
6816 #ifdef HAVE_ASM_TYPES_H
6817 #include <asm/types.h>
6818 #endif
6820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6821 cat >>confdefs.h <<_ACEOF
6822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6823 _ACEOF
6827 done
6830 for ac_header in libprocstat.h
6831 do :
6832 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
6833 #include <sys/param.h>
6834 #endif
6835 #ifdef HAVE_SYS_QUEUE_H
6836 #include <sys/queue.h>
6837 #endif
6838 #ifdef HAVE_SYS_SOCKET_H
6839 #include <sys/socket.h>
6840 #endif
6842 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
6843 cat >>confdefs.h <<_ACEOF
6844 #define HAVE_LIBPROCSTAT_H 1
6845 _ACEOF
6849 done
6853 dlldir="\${libdir}/wine"
6855 DLLPREFIX=""
6857 DLLFLAGS="-D_REENTRANT"
6859 LDRPATH_INSTALL=""
6861 LDRPATH_LOCAL=""
6863 LIBEXT="so"
6864 DLLEXT=".so"
6865 IMPLIBEXT="def"
6866 STATIC_IMPLIBEXT="def.a"
6867 # Extract the first word of "ldd", so it can be a program name with args.
6868 set dummy ldd; ac_word=$2
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if ${ac_cv_path_LDD+:} false; then :
6872 $as_echo_n "(cached) " >&6
6873 else
6874 case $LDD in
6875 [\\/]* | ?:[\\/]*)
6876 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 as_dummy="/sbin:/usr/sbin:$PATH"
6881 for as_dir in $as_dummy
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6891 done
6892 done
6893 IFS=$as_save_IFS
6895 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6897 esac
6899 LDD=$ac_cv_path_LDD
6900 if test -n "$LDD"; then
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6902 $as_echo "$LDD" >&6; }
6903 else
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6905 $as_echo "no" >&6; }
6909 if test -n "$ac_tool_prefix"; then
6910 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6911 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if ${ac_cv_prog_READELF+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 if test -n "$READELF"; then
6918 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6927 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6931 done
6932 done
6933 IFS=$as_save_IFS
6937 READELF=$ac_cv_prog_READELF
6938 if test -n "$READELF"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6940 $as_echo "$READELF" >&6; }
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6948 if test -z "$ac_cv_prog_READELF"; then
6949 ac_ct_READELF=$READELF
6950 # Extract the first word of "readelf", so it can be a program name with args.
6951 set dummy readelf; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 if test -n "$ac_ct_READELF"; then
6958 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_ac_ct_READELF="readelf"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6971 done
6972 done
6973 IFS=$as_save_IFS
6977 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6978 if test -n "$ac_ct_READELF"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6980 $as_echo "$ac_ct_READELF" >&6; }
6981 else
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6986 if test "x$ac_ct_READELF" = x; then
6987 READELF="true"
6988 else
6989 case $cross_compiling:$ac_tool_warned in
6990 yes:)
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993 ac_tool_warned=yes ;;
6994 esac
6995 READELF=$ac_ct_READELF
6997 else
6998 READELF="$ac_cv_prog_READELF"
7001 wine_rules_file=conf$$rules.make
7002 rm -f $wine_rules_file
7003 ALL_POT_FILES=""
7004 GITIGNORE="# Automatically generated by configure; DO NOT EDIT!!"
7005 ALL_TEST_RESOURCES=""
7008 wine_fn_append_file ()
7010 as_fn_append $1 " \\$as_nl $2"
7013 wine_fn_ignore_file ()
7015 case "$1" in
7016 */*) as_fn_append GITIGNORE "$as_nl$1" ;;
7017 \**) as_fn_append GITIGNORE "$as_nl$1" ;;
7018 *) as_fn_append GITIGNORE "$as_nl/$1" ;;
7019 esac
7022 wine_fn_append_rule ()
7024 $as_echo "$1" >>$wine_rules_file
7027 wine_fn_has_flag ()
7029 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
7032 wine_fn_depend_rules ()
7034 wine_fn_append_rule \
7035 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
7036 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir
7037 depend: $ac_dir/depend
7038 .PHONY: $ac_dir/depend
7039 $ac_dir/depend: \$(MAKEDEP) dummy
7040 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir"
7043 wine_fn_pot_rules ()
7045 test "x$with_gettextpo" = xyes || return
7047 if wine_fn_has_flag mc
7048 then
7049 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
7050 wine_fn_append_rule \
7051 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
7052 @cd $ac_dir && \$(MAKE) msg.pot
7053 $ac_dir/msg.pot: tools/wmc include"
7055 if wine_fn_has_flag po
7056 then
7057 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
7058 wine_fn_append_rule \
7059 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
7060 @cd $ac_dir && \$(MAKE) rsrc.pot
7061 $ac_dir/rsrc.pot: tools/wrc include"
7065 wine_fn_all_rules ()
7067 wine_fn_depend_rules
7068 wine_fn_append_rule \
7069 "all: $ac_dir
7070 .PHONY: $ac_dir
7071 $ac_dir: $ac_dir/Makefile dummy
7072 @cd $ac_dir && \$(MAKE)"
7075 wine_fn_install_rules ()
7077 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
7079 wine_fn_append_rule \
7080 ".PHONY: $ac_dir/install $ac_dir/uninstall
7081 $ac_dir/install:: $ac_dir
7082 @cd $ac_dir && \$(MAKE) install
7083 $ac_dir/uninstall:: $ac_dir/Makefile
7084 @cd $ac_dir && \$(MAKE) uninstall
7085 install:: $ac_dir/install
7086 __uninstall__: $ac_dir/uninstall"
7088 if wine_fn_has_flag install-lib
7089 then
7090 wine_fn_append_rule \
7091 ".PHONY: $ac_dir/install-lib
7092 $ac_dir/install-lib:: $ac_dir
7093 @cd $ac_dir && \$(MAKE) install-lib
7094 install-lib:: $ac_dir/install-lib"
7097 if wine_fn_has_flag install-dev
7098 then
7099 wine_fn_append_rule \
7100 ".PHONY: $ac_dir/install-dev
7101 $ac_dir/install-dev:: $ac_dir
7102 @cd $ac_dir && \$(MAKE) install-dev
7103 install-dev:: $ac_dir/install-dev"
7107 wine_fn_clean_rules ()
7109 ac_clean=$@
7110 ac_extraclean="$ac_dir/Makefile"
7111 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7113 if wine_fn_has_flag clean
7114 then
7115 wine_fn_append_rule \
7116 "__clean__: $ac_dir/clean
7117 .PHONY: $ac_dir/clean
7118 $ac_dir/clean: $ac_dir/Makefile
7119 @cd $ac_dir && \$(MAKE) clean
7120 \$(RM) $ac_extraclean"
7121 else
7122 wine_fn_append_rule \
7123 "__clean__: $ac_dir/clean
7124 .PHONY: $ac_dir/clean
7125 $ac_dir/clean: dummy
7126 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7130 wine_fn_disabled_rules ()
7132 ac_clean=$@
7133 ac_extraclean="$ac_dir/Makefile"
7134 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7136 wine_fn_append_rule \
7137 "__clean__: $ac_dir/clean
7138 .PHONY: $ac_dir/clean
7139 $ac_dir/clean: dummy
7140 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7143 wine_fn_config_makefile ()
7145 ac_dir=$1
7146 ac_enable=$2
7147 ac_flags=$3
7149 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7150 wine_fn_disabled_rules; return
7152 wine_fn_all_rules
7153 wine_fn_install_rules
7154 wine_fn_clean_rules
7157 wine_fn_config_lib ()
7159 ac_name=$1
7160 ac_flags=$2
7161 ac_dir=dlls/$ac_name
7162 ac_deps="include"
7164 if test "x$enable_tools" = xno; then :
7166 else
7167 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7169 wine_fn_all_rules
7170 wine_fn_clean_rules
7172 wine_fn_append_rule \
7173 ".PHONY: $ac_dir/install $ac_dir/uninstall
7174 $ac_dir/install:: $ac_dir
7175 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7176 $ac_dir/uninstall::
7177 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7178 install install-dev:: $ac_dir/install
7179 __uninstall__: $ac_dir/uninstall
7180 __builddeps__: $ac_dir
7181 $ac_dir: $ac_deps"
7184 wine_fn_config_dll ()
7186 ac_name=$1
7187 ac_dir=dlls/$ac_name
7188 ac_enable=$2
7189 ac_flags=$3
7190 ac_implib=${4:-$ac_name}
7191 ac_file=$ac_dir/lib$ac_implib
7192 ac_dll=$ac_name
7193 ac_deps="include"
7194 ac_implibflags=""
7196 if test "x$enable_tools" = xno; then :
7198 else
7199 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7201 case $ac_name in
7202 *16) ac_implibflags=" -m16" ;;
7203 *.*) ;;
7204 *) ac_dll=$ac_dll.dll ;;
7205 esac
7207 ac_clean=
7208 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
7209 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7210 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7211 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
7213 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7214 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
7215 then
7216 wine_fn_depend_rules
7217 wine_fn_clean_rules $ac_clean
7218 else
7219 wine_fn_disabled_rules $ac_clean
7220 return
7222 else
7223 wine_fn_all_rules
7224 wine_fn_clean_rules $ac_clean
7225 wine_fn_append_rule \
7226 "$ac_dir: __builddeps__
7227 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
7228 @cd $ac_dir && \$(MAKE) \$@
7229 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
7230 install install-lib:: $ac_dir/install-lib
7231 __uninstall__: $ac_dir/uninstall"
7232 if test -n "$DLLEXT"
7233 then
7234 wine_fn_append_rule \
7235 "$ac_dir/install-lib:: $ac_dir
7236 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
7237 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
7238 $ac_dir/uninstall::
7239 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
7240 else
7241 wine_fn_append_rule \
7242 "$ac_dir/install-lib:: $ac_dir
7243 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
7244 $ac_dir/uninstall::
7245 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
7248 wine_fn_pot_rules
7251 if wine_fn_has_flag staticimplib
7252 then
7253 wine_fn_append_rule \
7254 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
7255 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
7256 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7257 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7258 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
7259 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
7260 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7261 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7262 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7263 $ac_dir/uninstall::
7264 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7265 install install-dev:: $ac_dir/install-dev
7266 __uninstall__: $ac_dir/uninstall"
7268 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
7269 then
7270 wine_fn_append_rule \
7271 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT __builddeps__
7272 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
7273 $ac_dir/uninstall::
7274 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
7277 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7278 then
7279 wine_fn_append_rule \
7280 "__builddeps__: $ac_file.cross.a
7281 $ac_file.cross.a: $ac_dir/Makefile dummy
7282 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
7285 elif wine_fn_has_flag implib
7286 then
7287 wine_fn_append_rule \
7288 "__builddeps__: $ac_file.$IMPLIBEXT
7289 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7290 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7291 $ac_file.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7292 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7293 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7294 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7295 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7296 $ac_dir/uninstall::
7297 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7298 install install-dev:: $ac_dir/install-dev
7299 __uninstall__: $ac_dir/uninstall"
7300 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7301 then
7302 wine_fn_append_rule \
7303 "__builddeps__: $ac_file.cross.a
7304 $ac_file.cross.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7305 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
7308 if test "$ac_name" != "$ac_implib"
7309 then
7310 wine_fn_append_rule \
7311 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
7312 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
7313 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
7314 clean::
7315 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
7316 wine_fn_ignore_file "dlls/lib$ac_implib.$IMPLIBEXT"
7317 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7318 then
7319 wine_fn_append_rule \
7320 "__builddeps__: dlls/lib$ac_implib.cross.a
7321 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
7322 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
7323 clean::
7324 \$(RM) dlls/lib$ac_implib.cross.a"
7325 wine_fn_ignore_file "dlls/lib$ac_implib.cross.a"
7331 wine_fn_config_program ()
7333 ac_name=$1
7334 ac_dir=programs/$ac_name
7335 ac_enable=$2
7336 ac_flags=$3
7337 ac_program=$ac_name
7339 case $ac_name in
7340 *.*) ;;
7341 *) ac_program=$ac_program.exe ;;
7342 esac
7344 ac_clean=
7345 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7346 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7347 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
7348 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
7350 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7351 wine_fn_disabled_rules $ac_clean; return
7354 wine_fn_all_rules
7355 wine_fn_clean_rules $ac_clean
7356 wine_fn_append_rule "$ac_dir: __builddeps__"
7357 wine_fn_pot_rules
7359 wine_fn_has_flag install || return
7360 wine_fn_append_rule \
7361 ".PHONY: $ac_dir/install $ac_dir/uninstall
7362 install install-lib:: $ac_dir/install
7363 __uninstall__: $ac_dir/uninstall"
7365 if test -n "$DLLEXT"
7366 then
7367 wine_fn_append_rule \
7368 "$ac_dir/install:: $ac_dir
7369 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
7370 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
7371 $ac_dir/uninstall::
7372 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
7374 if test -z "$with_wine64" && wine_fn_has_flag installbin
7375 then
7376 wine_fn_append_rule \
7377 "$ac_dir/install:: __tooldeps__
7378 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
7379 $ac_dir/uninstall::
7380 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
7382 else
7383 wine_fn_append_rule \
7384 "$ac_dir/install:: $ac_dir
7385 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
7386 $ac_dir/uninstall::
7387 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
7390 if test -z "$with_wine64" && wine_fn_has_flag manpage
7391 then
7392 wine_fn_append_rule \
7393 "$ac_dir/install:: $ac_dir
7394 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
7395 $ac_dir/uninstall::
7396 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
7400 wine_fn_config_test ()
7402 ac_dir=$1
7403 ac_name=$2
7404 ac_flags=$3
7406 ac_clean=
7407 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
7408 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
7409 ac_clean="$ac_clean $ac_dir/testlist.c"
7411 if test "x$enable_tests" = xno; then :
7412 wine_fn_disabled_rules $ac_clean; return
7415 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
7416 wine_fn_all_rules
7417 wine_fn_clean_rules $ac_clean
7419 wine_fn_append_rule \
7420 "$ac_dir: programs/winetest/Makefile __builddeps__
7421 programs/winetest: $ac_dir
7422 check test: $ac_dir/test
7423 .PHONY: $ac_dir/test
7424 $ac_dir/test: dummy
7425 @cd $ac_dir && \$(MAKE) test
7426 testclean::
7427 \$(RM) $ac_dir/*.ok"
7429 if test -n "$CROSSTARGET"
7430 then
7431 wine_fn_append_rule \
7432 "crosstest: $ac_dir/crosstest
7433 .PHONY: $ac_dir/crosstest
7434 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
7435 @cd $ac_dir && \$(MAKE) crosstest"
7439 wine_fn_config_tool ()
7441 ac_dir=$1
7442 ac_flags=$2
7443 if test "x$enable_tools" = xno; then :
7444 return
7447 wine_fn_all_rules
7448 wine_fn_install_rules
7449 wine_fn_clean_rules
7451 wine_fn_append_rule "__tooldeps__: $ac_dir"
7452 wine_fn_append_rule "$ac_dir: libs/port"
7453 case $ac_dir in
7454 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
7455 esac
7458 wine_fn_config_symlink ()
7460 ac_linkdir=
7461 if test "x$1" = "x-d"
7462 then
7463 ac_linkdir=$2
7464 shift; shift
7466 ac_links=$@
7467 wine_fn_append_rule \
7468 "$ac_links:
7469 @./config.status \$@
7470 distclean::
7471 \$(RM) $ac_links"
7472 for f in $ac_links; do wine_fn_ignore_file $f; done
7473 test -n "$ac_linkdir" || return
7474 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
7477 wine_binary="wine"
7478 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7479 loader_programs="$wine_binary wine-installed"
7480 libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'`
7482 LOADER_RULES="
7483 install install-lib:: wine-installed
7484 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7486 uninstall::
7487 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7491 case $host_os in
7492 cygwin*|mingw32*)
7493 if test -n "$ac_tool_prefix"; then
7494 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7495 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if ${ac_cv_prog_DLLTOOL+:} false; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 if test -n "$DLLTOOL"; then
7502 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7507 IFS=$as_save_IFS
7508 test -z "$as_dir" && as_dir=.
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7511 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513 break 2
7515 done
7516 done
7517 IFS=$as_save_IFS
7521 DLLTOOL=$ac_cv_prog_DLLTOOL
7522 if test -n "$DLLTOOL"; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7524 $as_echo "$DLLTOOL" >&6; }
7525 else
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7532 if test -z "$ac_cv_prog_DLLTOOL"; then
7533 ac_ct_DLLTOOL=$DLLTOOL
7534 # Extract the first word of "dlltool", so it can be a program name with args.
7535 set dummy dlltool; ac_word=$2
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537 $as_echo_n "checking for $ac_word... " >&6; }
7538 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 if test -n "$ac_ct_DLLTOOL"; then
7542 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7543 else
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 break 2
7555 done
7556 done
7557 IFS=$as_save_IFS
7561 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7562 if test -n "$ac_ct_DLLTOOL"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7564 $as_echo "$ac_ct_DLLTOOL" >&6; }
7565 else
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7570 if test "x$ac_ct_DLLTOOL" = x; then
7571 DLLTOOL="false"
7572 else
7573 case $cross_compiling:$ac_tool_warned in
7574 yes:)
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7577 ac_tool_warned=yes ;;
7578 esac
7579 DLLTOOL=$ac_ct_DLLTOOL
7581 else
7582 DLLTOOL="$ac_cv_prog_DLLTOOL"
7585 LIBEXT="dll"
7586 DLLEXT=""
7587 IMPLIBEXT="a"
7588 STATIC_IMPLIBEXT="a"
7589 enable_iphlpapi=${enable_iphlpapi:-no}
7590 enable_kernel32=${enable_kernel32:-no}
7591 enable_msvcrt=${enable_msvcrt:-no}
7592 enable_ntdll=${enable_ntdll:-no}
7593 enable_ws2_32=${enable_ws2_32:-no}
7594 enable_loader=${enable_loader:-no}
7595 enable_server=${enable_server:-no}
7596 with_x=${with_x:-no}
7597 with_pthread=${with_pthread:-no}
7599 crtlibs=""
7600 case $host_os in
7601 mingw32*)
7602 crtlibs="-lmsvcrt"
7603 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7605 esac
7607 libwine_targets="libwine.dll libwine.a"
7608 LIBWINE_RULES="
7609 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7611 all: libwine.dll libwine.a
7613 libwine.a: \$(srcdir)/wine.def
7614 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7616 libwine.dll: \$(OBJS) \$(srcdir)/wine.def
7617 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7619 install install-lib:: libwine.dll
7620 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7622 install install-dev:: libwine.a
7623 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7625 uninstall::
7626 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7631 darwin*|macosx*)
7632 LIBEXT="dylib"
7633 DLLFLAGS="$DLLFLAGS -fPIC"
7634 LIBWINE_LDFLAGS="-multiply_defined suppress"
7635 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7636 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7637 COREFOUNDATIONLIB="-framework CoreFoundation"
7639 IOKITLIB="-framework IOKit -framework CoreFoundation"
7641 FORCEFEEDBACKLIB="-framework ForceFeedback -framework CoreFoundation"
7643 APPLICATIONSERVICESLIB="-framework ApplicationServices"
7645 CORESERVICESLIB="-framework CoreServices"
7647 APPKITLIB="-framework AppKit"
7649 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7650 case $host_os in
7651 darwin11*) LDEXECFLAGS="-Wl,-macosx_version_min,10.6 $LDEXECFLAGS" ;;
7652 esac
7653 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7654 then
7655 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
7658 if test "$ac_cv_header_Security_Security_h" = "yes"
7659 then
7660 SECURITYLIB="-framework Security -framework CoreFoundation"
7662 ac_save_LIBS="$LIBS"
7663 LIBS="$LIBS $SECURITYLIB"
7664 for ac_func in SSLCopyPeerCertificates
7665 do :
7666 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7667 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7668 cat >>confdefs.h <<_ACEOF
7669 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7670 _ACEOF
7673 done
7675 LIBS="$ac_save_LIBS"
7676 with_gnutls=${with_gnutls:-no}
7678 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7679 then
7680 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7681 then
7682 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7684 else
7685 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7688 ac_save_LIBS="$LIBS"
7689 LIBS="$LIBS $COREAUDIO"
7690 for ac_func in AUGraphAddNode
7691 do :
7692 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7693 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7694 cat >>confdefs.h <<_ACEOF
7695 #define HAVE_AUGRAPHADDNODE 1
7696 _ACEOF
7699 done
7701 LIBS="$ac_save_LIBS"
7703 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7704 then
7705 FRAMEWORK_OPENAL="-framework OpenAL"
7708 cat >>confdefs.h <<_ACEOF
7709 #define HAVE_OPENAL 1
7710 _ACEOF
7712 ac_cv_lib_openal=yes
7714 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7715 then
7716 LIBOPENCL="-framework OpenCL"
7718 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7720 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7721 then
7722 ac_save_LIBS="$LIBS"
7723 LIBS="$LIBS $IOKITLIB"
7724 for ac_func in IOHIDManagerCreate
7725 do :
7726 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7727 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7728 cat >>confdefs.h <<_ACEOF
7729 #define HAVE_IOHIDMANAGERCREATE 1
7730 _ACEOF
7733 done
7735 LIBS="$ac_save_LIBS"
7737 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7738 then
7739 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
7741 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
7742 else
7743 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
7745 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
7746 then
7747 CARBONLIB="-framework Carbon"
7751 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
7752 then
7753 ac_save_LIBS="$LIBS"
7754 LIBS="$LIBS $APPLICATIONSERVICESLIB"
7755 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
7756 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
7757 enable_winemac_drv=${enable_winemac_drv:-yes}
7760 LIBS="$ac_save_LIBS"
7763 if test "x$enable_win16" = "xyes"
7764 then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
7766 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
7767 if test "$cross_compiling" = yes; then :
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
7769 $as_echo "cross-compiling, assuming yes" >&6; }
7770 else
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 asm(".text\n"
7774 "bad:\tnop;nop\n"
7775 "good:\tnop;nop\n\t"
7776 ".globl _testfunc\n"
7777 "_testfunc:\tcallw good");
7778 extern void testfunc();
7780 main ()
7782 unsigned short *p = (unsigned short *)testfunc;
7783 return p[0] != 0xe866 || p[1] != 0xfffa
7785 return 0;
7787 _ACEOF
7788 if ac_fn_c_try_run "$LINENO"; then :
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7790 $as_echo "yes" >&6; }
7791 else
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7794 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
7796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7797 conftest.$ac_objext conftest.beam conftest.$ac_ext
7802 libwine_targets="libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib"
7803 LIBWINE_RULES="
7804 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7806 all: libwine.dylib
7808 libwine.$libwine_version.dylib: \$(OBJS)
7809 \$(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 \$@
7811 libwine.$libwine_soversion.dylib: libwine.$libwine_version.dylib
7812 \$(RM) \$@ && \$(LN_S) libwine.$libwine_version.dylib \$@
7814 libwine.dylib: libwine.$libwine_soversion.dylib
7815 \$(RM) \$@ && \$(LN_S) libwine.$libwine_soversion.dylib \$@
7817 install install-lib:: libwine.$libwine_version.dylib
7818 \$(INSTALL_PROGRAM) libwine.$libwine_version.dylib \$(DESTDIR)\$(libdir)/libwine.$libwine_version.dylib
7819 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.$libwine_soversion.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.$libwine_soversion.dylib
7821 install install-dev::
7822 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.dylib
7824 uninstall::
7825 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib
7829 as_fn_append LOADER_RULES "
7830 $wine_binary: main.o wine_info.plist
7831 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
7833 wine-installed: main.o wine_info.plist
7834 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
7838 linux-android*)
7839 DLLFLAGS="$DLLFLAGS -fPIC"
7840 DLLPREFIX="lib"
7841 LDEXECFLAGS=""
7842 dlldir="\${libdir}"
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7844 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7845 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 ac_wine_try_cflags_saved=$CFLAGS
7849 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851 /* end confdefs.h. */
7852 int main(int argc, char **argv) { return 0; }
7853 _ACEOF
7854 if ac_fn_c_try_link "$LINENO"; then :
7855 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7856 else
7857 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7859 rm -f core conftest.err conftest.$ac_objext \
7860 conftest$ac_exeext conftest.$ac_ext
7861 CFLAGS=$ac_wine_try_cflags_saved
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7864 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7865 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7866 LDEXECFLAGS="-Wl,--export-dynamic"
7868 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7870 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7871 if eval \${$as_ac_var+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 ac_wine_try_cflags_saved=$CFLAGS
7875 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 int main(int argc, char **argv) { return 0; }
7879 _ACEOF
7880 if ac_fn_c_try_link "$LINENO"; then :
7881 eval "$as_ac_var=yes"
7882 else
7883 eval "$as_ac_var=no"
7885 rm -f core conftest.err conftest.$ac_objext \
7886 conftest$ac_exeext conftest.$ac_ext
7887 CFLAGS=$ac_wine_try_cflags_saved
7889 eval ac_res=\$$as_ac_var
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7891 $as_echo "$ac_res" >&6; }
7892 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7893 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7894 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7895 else
7896 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7898 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7899 if eval \${$as_ac_var+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 ac_wine_try_cflags_saved=$CFLAGS
7903 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 int main(int argc, char **argv) { return 0; }
7907 _ACEOF
7908 if ac_fn_c_try_link "$LINENO"; then :
7909 eval "$as_ac_var=yes"
7910 else
7911 eval "$as_ac_var=no"
7913 rm -f core conftest.err conftest.$ac_objext \
7914 conftest$ac_exeext conftest.$ac_ext
7915 CFLAGS=$ac_wine_try_cflags_saved
7917 eval ac_res=\$$as_ac_var
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7919 $as_echo "$ac_res" >&6; }
7920 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7921 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7922 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7927 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7928 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 ac_wine_try_cflags_saved=$CFLAGS
7932 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7935 int main(int argc, char **argv) { return 0; }
7936 _ACEOF
7937 if ac_fn_c_try_link "$LINENO"; then :
7938 ac_cv_cflags__Wl___enable_new_dtags=yes
7939 else
7940 ac_cv_cflags__Wl___enable_new_dtags=no
7942 rm -f core conftest.err conftest.$ac_objext \
7943 conftest$ac_exeext conftest.$ac_ext
7944 CFLAGS=$ac_wine_try_cflags_saved
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7947 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7948 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7949 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7952 case $host_cpu in
7953 *i[3456789]86* | x86_64)
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7955 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7956 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 ac_wine_try_cflags_saved=$CFLAGS
7960 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 int main(int argc, char **argv) { return 0; }
7964 _ACEOF
7965 if ac_fn_c_try_link "$LINENO"; then :
7966 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7967 else
7968 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7970 rm -f core conftest.err conftest.$ac_objext \
7971 conftest$ac_exeext conftest.$ac_ext
7972 CFLAGS=$ac_wine_try_cflags_saved
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7975 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7976 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7977 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
7980 esac
7982 libwine_targets="libwine.so"
7983 LIBWINE_RULES="
7984 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7986 all: libwine.so
7988 libwine.so: \$(OBJS)
7989 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7991 install install-lib:: libwine.so
7992 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
7994 uninstall::
7995 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
7999 as_fn_append LOADER_RULES "
8000 $wine_binary: main.o
8001 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8003 wine-installed: main.o
8004 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8009 DLLFLAGS="$DLLFLAGS -fPIC"
8010 LDEXECFLAGS=""
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
8012 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
8013 if ${ac_cv_c_dll_gnuelf+:} false; then :
8014 $as_echo_n "(cached) " >&6
8015 else
8016 ac_wine_try_cflags_saved=$CFLAGS
8017 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019 /* end confdefs.h. */
8020 void myfunc() {}
8021 _ACEOF
8022 if ac_fn_c_try_link "$LINENO"; then :
8023 ac_cv_c_dll_gnuelf="yes"
8024 else
8025 ac_cv_c_dll_gnuelf="no"
8027 rm -f core conftest.err conftest.$ac_objext \
8028 conftest$ac_exeext conftest.$ac_ext
8029 CFLAGS=$ac_wine_try_cflags_saved
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
8032 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
8033 if test "$ac_cv_c_dll_gnuelf" = "yes"
8034 then
8035 LDSHARED="\$(CC) -shared"
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8037 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
8038 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 ac_wine_try_cflags_saved=$CFLAGS
8042 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8045 int main(int argc, char **argv) { return 0; }
8046 _ACEOF
8047 if ac_fn_c_try_link "$LINENO"; then :
8048 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8049 else
8050 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8052 rm -f core conftest.err conftest.$ac_objext \
8053 conftest$ac_exeext conftest.$ac_ext
8054 CFLAGS=$ac_wine_try_cflags_saved
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8057 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8058 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
8059 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.$libwine_soversion"
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8062 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
8063 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 ac_wine_try_cflags_saved=$CFLAGS
8067 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070 int main(int argc, char **argv) { return 0; }
8071 _ACEOF
8072 if ac_fn_c_try_link "$LINENO"; then :
8073 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8074 else
8075 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8077 rm -f core conftest.err conftest.$ac_objext \
8078 conftest$ac_exeext conftest.$ac_ext
8079 CFLAGS=$ac_wine_try_cflags_saved
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8082 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8083 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
8084 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.$libwine_soversion"
8088 echo '{ global: *; };' >conftest.map
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8090 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
8091 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 ac_wine_try_cflags_saved=$CFLAGS
8095 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8098 int main(int argc, char **argv) { return 0; }
8099 _ACEOF
8100 if ac_fn_c_try_link "$LINENO"; then :
8101 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8102 else
8103 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8105 rm -f core conftest.err conftest.$ac_objext \
8106 conftest$ac_exeext conftest.$ac_ext
8107 CFLAGS=$ac_wine_try_cflags_saved
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8110 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8111 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
8112 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
8114 rm -f conftest.map
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8117 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8118 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 ac_wine_try_cflags_saved=$CFLAGS
8122 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8125 int main(int argc, char **argv) { return 0; }
8126 _ACEOF
8127 if ac_fn_c_try_link "$LINENO"; then :
8128 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8129 else
8130 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8132 rm -f core conftest.err conftest.$ac_objext \
8133 conftest$ac_exeext conftest.$ac_ext
8134 CFLAGS=$ac_wine_try_cflags_saved
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8137 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8138 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
8139 LDEXECFLAGS="-Wl,--export-dynamic"
8142 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8144 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8145 if eval \${$as_ac_var+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 ac_wine_try_cflags_saved=$CFLAGS
8149 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
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 eval "$as_ac_var=yes"
8156 else
8157 eval "$as_ac_var=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 eval ac_res=\$$as_ac_var
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8165 $as_echo "$ac_res" >&6; }
8166 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8167 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8168 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8169 else
8170 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8172 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8173 if eval \${$as_ac_var+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 ac_wine_try_cflags_saved=$CFLAGS
8177 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8180 int main(int argc, char **argv) { return 0; }
8181 _ACEOF
8182 if ac_fn_c_try_link "$LINENO"; then :
8183 eval "$as_ac_var=yes"
8184 else
8185 eval "$as_ac_var=no"
8187 rm -f core conftest.err conftest.$ac_objext \
8188 conftest$ac_exeext conftest.$ac_ext
8189 CFLAGS=$ac_wine_try_cflags_saved
8191 eval ac_res=\$$as_ac_var
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8193 $as_echo "$ac_res" >&6; }
8194 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8195 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8196 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8201 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8202 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 ac_wine_try_cflags_saved=$CFLAGS
8206 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 int main(int argc, char **argv) { return 0; }
8210 _ACEOF
8211 if ac_fn_c_try_link "$LINENO"; then :
8212 ac_cv_cflags__Wl___enable_new_dtags=yes
8213 else
8214 ac_cv_cflags__Wl___enable_new_dtags=no
8216 rm -f core conftest.err conftest.$ac_objext \
8217 conftest$ac_exeext conftest.$ac_ext
8218 CFLAGS=$ac_wine_try_cflags_saved
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8221 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8222 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
8223 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8226 case $host_cpu in
8227 *i[3456789]86* | x86_64)
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8229 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8230 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232 else
8233 ac_wine_try_cflags_saved=$CFLAGS
8234 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8237 int main(int argc, char **argv) { return 0; }
8238 _ACEOF
8239 if ac_fn_c_try_link "$LINENO"; then :
8240 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8241 else
8242 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8244 rm -f core conftest.err conftest.$ac_objext \
8245 conftest$ac_exeext conftest.$ac_ext
8246 CFLAGS=$ac_wine_try_cflags_saved
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8249 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8250 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
8251 case $host_os in
8252 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
8253 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
8254 esac
8257 # Extract the first word of "prelink", so it can be a program name with args.
8258 set dummy prelink; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if ${ac_cv_path_PRELINK+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 case $PRELINK in
8265 [\\/]* | ?:[\\/]*)
8266 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in /sbin /usr/sbin $PATH
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8276 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 break 2
8280 done
8281 done
8282 IFS=$as_save_IFS
8284 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
8286 esac
8288 PRELINK=$ac_cv_path_PRELINK
8289 if test -n "$PRELINK"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
8291 $as_echo "$PRELINK" >&6; }
8292 else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8298 if test "x$PRELINK" = xfalse
8299 then
8300 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
8303 esac
8305 else
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
8307 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
8308 if ${ac_cv_c_dll_unixware+:} false; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 ac_wine_try_cflags_saved=$CFLAGS
8312 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h. */
8315 void myfunc() {}
8316 _ACEOF
8317 if ac_fn_c_try_link "$LINENO"; then :
8318 ac_cv_c_dll_unixware="yes"
8319 else
8320 ac_cv_c_dll_unixware="no"
8322 rm -f core conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext conftest.$ac_ext
8324 CFLAGS=$ac_wine_try_cflags_saved
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
8327 $as_echo "$ac_cv_c_dll_unixware" >&6; }
8328 if test "$ac_cv_c_dll_unixware" = "yes"
8329 then
8330 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.$libwine_soversion"
8333 libwine_targets="libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version"
8334 LIBWINE_RULES="
8335 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8337 all: libwine.so
8339 libwine.so.$libwine_version: \$(OBJS) \$(srcdir)/wine.map
8340 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8342 libwine.so.$libwine_soversion: libwine.so.$libwine_version
8343 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_version \$@
8345 libwine.so: libwine.so.$libwine_soversion
8346 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_soversion \$@
8348 install install-lib:: libwine.so.$libwine_version
8349 \$(INSTALL_PROGRAM) libwine.so.$libwine_version \$(DESTDIR)\$(libdir)/libwine.so.$libwine_version
8350 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.$libwine_soversion && \$(LN_S) libwine.so.$libwine_version libwine.so.$libwine_soversion
8352 install install-dev::
8353 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.$libwine_version libwine.so
8355 uninstall::
8356 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version
8360 as_fn_append LOADER_RULES "
8361 $wine_binary: main.o
8362 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8364 wine-installed: main.o
8365 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8368 esac
8370 as_fn_append LIBWINE_RULES "
8371 EXTRA_TARGETS = $libwine_targets
8374 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8375 enable_winemac_drv=${enable_winemac_drv:-no}
8377 CROSSTARGET=""
8379 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8380 then
8381 case "$host_cpu" in
8382 i[3456789]86*)
8383 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
8384 mingw32-gcc" ;;
8385 x86_64)
8386 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 " ;;
8388 ac_prefix_list="" ;;
8389 esac
8390 for ac_prog in $ac_prefix_list
8392 # Extract the first word of "$ac_prog", so it can be a program name with args.
8393 set dummy $ac_prog; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if ${ac_cv_prog_CROSSCC+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 if test -n "$CROSSCC"; then
8400 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8401 else
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8405 IFS=$as_save_IFS
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8409 ac_cv_prog_CROSSCC="$ac_prog"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 break 2
8413 done
8414 done
8415 IFS=$as_save_IFS
8419 CROSSCC=$ac_cv_prog_CROSSCC
8420 if test -n "$CROSSCC"; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8422 $as_echo "$CROSSCC" >&6; }
8423 else
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8429 test -n "$CROSSCC" && break
8430 done
8431 test -n "$CROSSCC" || CROSSCC="false"
8433 if test "$CROSSCC" != "false"
8434 then
8435 ac_save_CC="$CC"
8436 CC="$CROSSCC"
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8438 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8443 main ()
8447 return 0;
8449 _ACEOF
8450 if ac_fn_c_try_compile "$LINENO"; then :
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8452 $as_echo "yes" >&6; }
8453 set x $CROSSCC
8454 shift
8455 while test $# -ge 1
8457 case "$1" in
8458 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8459 esac
8460 shift
8461 done
8462 else
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 CC="$ac_save_CC"
8472 if test "$ac_cv_header_pthread_h" = "yes"
8473 then
8474 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8475 if test "x$ac_cv_func_pthread_create" = xyes; then :
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8479 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8480 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 ac_check_lib_save_LIBS=$LIBS
8484 LIBS="-lpthread $LIBS"
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8488 /* Override any GCC internal prototype to avoid an error.
8489 Use char because int might match the return type of a GCC
8490 builtin and then its argument prototype would still apply. */
8491 #ifdef __cplusplus
8492 extern "C"
8493 #endif
8494 char pthread_create ();
8496 main ()
8498 return pthread_create ();
8500 return 0;
8502 _ACEOF
8503 if ac_fn_c_try_link "$LINENO"; then :
8504 ac_cv_lib_pthread_pthread_create=yes
8505 else
8506 ac_cv_lib_pthread_pthread_create=no
8508 rm -f core conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 LIBS=$ac_check_lib_save_LIBS
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8513 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8514 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8515 LIBPTHREAD="-lpthread"
8522 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
8523 case "x$with_pthread" in
8524 xno) ;;
8525 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8526 Wine cannot support threads without libpthread.
8527 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8528 esac
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8533 $as_echo_n "checking for X... " >&6; }
8536 # Check whether --with-x was given.
8537 if test "${with_x+set}" = set; then :
8538 withval=$with_x;
8541 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8542 if test "x$with_x" = xno; then
8543 # The user explicitly disabled X.
8544 have_x=disabled
8545 else
8546 case $x_includes,$x_libraries in #(
8547 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8548 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 # One or both of the vars are not set, and there is no cached value.
8552 ac_x_includes=no ac_x_libraries=no
8553 rm -f -r conftest.dir
8554 if mkdir conftest.dir; then
8555 cd conftest.dir
8556 cat >Imakefile <<'_ACEOF'
8557 incroot:
8558 @echo incroot='${INCROOT}'
8559 usrlibdir:
8560 @echo usrlibdir='${USRLIBDIR}'
8561 libdir:
8562 @echo libdir='${LIBDIR}'
8563 _ACEOF
8564 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8565 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8566 for ac_var in incroot usrlibdir libdir; do
8567 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8568 done
8569 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8570 for ac_extension in a so sl dylib la dll; do
8571 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8572 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8573 ac_im_usrlibdir=$ac_im_libdir; break
8575 done
8576 # Screen out bogus values from the imake configuration. They are
8577 # bogus both because they are the default anyway, and because
8578 # using them would break gcc on systems where it needs fixed includes.
8579 case $ac_im_incroot in
8580 /usr/include) ac_x_includes= ;;
8581 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8582 esac
8583 case $ac_im_usrlibdir in
8584 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8585 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8586 esac
8588 cd ..
8589 rm -f -r conftest.dir
8592 # Standard set of common directories for X headers.
8593 # Check X11 before X11Rn because it is often a symlink to the current release.
8594 ac_x_header_dirs='
8595 /usr/X11/include
8596 /usr/X11R7/include
8597 /usr/X11R6/include
8598 /usr/X11R5/include
8599 /usr/X11R4/include
8601 /usr/include/X11
8602 /usr/include/X11R7
8603 /usr/include/X11R6
8604 /usr/include/X11R5
8605 /usr/include/X11R4
8607 /usr/local/X11/include
8608 /usr/local/X11R7/include
8609 /usr/local/X11R6/include
8610 /usr/local/X11R5/include
8611 /usr/local/X11R4/include
8613 /usr/local/include/X11
8614 /usr/local/include/X11R7
8615 /usr/local/include/X11R6
8616 /usr/local/include/X11R5
8617 /usr/local/include/X11R4
8619 /usr/X386/include
8620 /usr/x386/include
8621 /usr/XFree86/include/X11
8623 /usr/include
8624 /usr/local/include
8625 /usr/unsupported/include
8626 /usr/athena/include
8627 /usr/local/x11r5/include
8628 /usr/lpp/Xamples/include
8630 /usr/openwin/include
8631 /usr/openwin/share/include'
8633 if test "$ac_x_includes" = no; then
8634 # Guess where to find include files, by looking for Xlib.h.
8635 # First, try using that file with no special directory specified.
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638 #include <X11/Xlib.h>
8639 _ACEOF
8640 if ac_fn_c_try_cpp "$LINENO"; then :
8641 # We can compile using X headers with no special include directory.
8642 ac_x_includes=
8643 else
8644 for ac_dir in $ac_x_header_dirs; do
8645 if test -r "$ac_dir/X11/Xlib.h"; then
8646 ac_x_includes=$ac_dir
8647 break
8649 done
8651 rm -f conftest.err conftest.i conftest.$ac_ext
8652 fi # $ac_x_includes = no
8654 if test "$ac_x_libraries" = no; then
8655 # Check for the libraries.
8656 # See if we find them without any special options.
8657 # Don't add to $LIBS permanently.
8658 ac_save_LIBS=$LIBS
8659 LIBS="-lX11 $LIBS"
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8662 #include <X11/Xlib.h>
8664 main ()
8666 XrmInitialize ()
8668 return 0;
8670 _ACEOF
8671 if ac_fn_c_try_link "$LINENO"; then :
8672 LIBS=$ac_save_LIBS
8673 # We can link X programs with no special library path.
8674 ac_x_libraries=
8675 else
8676 LIBS=$ac_save_LIBS
8677 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8679 # Don't even attempt the hair of trying to link an X program!
8680 for ac_extension in a so sl dylib la dll; do
8681 if test -r "$ac_dir/libX11.$ac_extension"; then
8682 ac_x_libraries=$ac_dir
8683 break 2
8685 done
8686 done
8688 rm -f core conftest.err conftest.$ac_objext \
8689 conftest$ac_exeext conftest.$ac_ext
8690 fi # $ac_x_libraries = no
8692 case $ac_x_includes,$ac_x_libraries in #(
8693 no,* | *,no | *\'*)
8694 # Didn't find X, or a directory has "'" in its name.
8695 ac_cv_have_x="have_x=no";; #(
8697 # Record where we found X for the cache.
8698 ac_cv_have_x="have_x=yes\
8699 ac_x_includes='$ac_x_includes'\
8700 ac_x_libraries='$ac_x_libraries'"
8701 esac
8703 ;; #(
8704 *) have_x=yes;;
8705 esac
8706 eval "$ac_cv_have_x"
8707 fi # $with_x != no
8709 if test "$have_x" != yes; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8711 $as_echo "$have_x" >&6; }
8712 no_x=yes
8713 else
8714 # If each of the values was on the command line, it overrides each guess.
8715 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8716 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8717 # Update the cache value to reflect the command line values.
8718 ac_cv_have_x="have_x=yes\
8719 ac_x_includes='$x_includes'\
8720 ac_x_libraries='$x_libraries'"
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8722 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8725 if test "$no_x" = yes; then
8726 # Not all programs may use this symbol, but it does not hurt to define it.
8728 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8730 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8731 else
8732 if test -n "$x_includes"; then
8733 X_CFLAGS="$X_CFLAGS -I$x_includes"
8736 # It would also be nice to do this for all -L options, not just this one.
8737 if test -n "$x_libraries"; then
8738 X_LIBS="$X_LIBS -L$x_libraries"
8739 # For Solaris; some versions of Sun CC require a space after -R and
8740 # others require no space. Words are not sufficient . . . .
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8742 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
8743 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8744 ac_xsave_c_werror_flag=$ac_c_werror_flag
8745 ac_c_werror_flag=yes
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8750 main ()
8754 return 0;
8756 _ACEOF
8757 if ac_fn_c_try_link "$LINENO"; then :
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759 $as_echo "no" >&6; }
8760 X_LIBS="$X_LIBS -R$x_libraries"
8761 else
8762 LIBS="$ac_xsave_LIBS -R $x_libraries"
8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h. */
8767 main ()
8771 return 0;
8773 _ACEOF
8774 if ac_fn_c_try_link "$LINENO"; then :
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8776 $as_echo "yes" >&6; }
8777 X_LIBS="$X_LIBS -R $x_libraries"
8778 else
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8780 $as_echo "neither works" >&6; }
8782 rm -f core conftest.err conftest.$ac_objext \
8783 conftest$ac_exeext conftest.$ac_ext
8785 rm -f core conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8787 ac_c_werror_flag=$ac_xsave_c_werror_flag
8788 LIBS=$ac_xsave_LIBS
8791 # Check for system-dependent libraries X programs must link with.
8792 # Do this before checking for the system-independent R6 libraries
8793 # (-lICE), since we may need -lsocket or whatever for X linking.
8795 if test "$ISC" = yes; then
8796 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8797 else
8798 # Martyn Johnson says this is needed for Ultrix, if the X
8799 # libraries were built with DECnet support. And Karl Berry says
8800 # the Alpha needs dnet_stub (dnet does not exist).
8801 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8805 /* Override any GCC internal prototype to avoid an error.
8806 Use char because int might match the return type of a GCC
8807 builtin and then its argument prototype would still apply. */
8808 #ifdef __cplusplus
8809 extern "C"
8810 #endif
8811 char XOpenDisplay ();
8813 main ()
8815 return XOpenDisplay ();
8817 return 0;
8819 _ACEOF
8820 if ac_fn_c_try_link "$LINENO"; then :
8822 else
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8824 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8825 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8826 $as_echo_n "(cached) " >&6
8827 else
8828 ac_check_lib_save_LIBS=$LIBS
8829 LIBS="-ldnet $LIBS"
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8833 /* Override any GCC internal prototype to avoid an error.
8834 Use char because int might match the return type of a GCC
8835 builtin and then its argument prototype would still apply. */
8836 #ifdef __cplusplus
8837 extern "C"
8838 #endif
8839 char dnet_ntoa ();
8841 main ()
8843 return dnet_ntoa ();
8845 return 0;
8847 _ACEOF
8848 if ac_fn_c_try_link "$LINENO"; then :
8849 ac_cv_lib_dnet_dnet_ntoa=yes
8850 else
8851 ac_cv_lib_dnet_dnet_ntoa=no
8853 rm -f core conftest.err conftest.$ac_objext \
8854 conftest$ac_exeext conftest.$ac_ext
8855 LIBS=$ac_check_lib_save_LIBS
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8858 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8859 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8860 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8863 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8865 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8866 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 ac_check_lib_save_LIBS=$LIBS
8870 LIBS="-ldnet_stub $LIBS"
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8874 /* Override any GCC internal prototype to avoid an error.
8875 Use char because int might match the return type of a GCC
8876 builtin and then its argument prototype would still apply. */
8877 #ifdef __cplusplus
8878 extern "C"
8879 #endif
8880 char dnet_ntoa ();
8882 main ()
8884 return dnet_ntoa ();
8886 return 0;
8888 _ACEOF
8889 if ac_fn_c_try_link "$LINENO"; then :
8890 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8891 else
8892 ac_cv_lib_dnet_stub_dnet_ntoa=no
8894 rm -f core conftest.err conftest.$ac_objext \
8895 conftest$ac_exeext conftest.$ac_ext
8896 LIBS=$ac_check_lib_save_LIBS
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8899 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8900 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8901 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8906 rm -f core conftest.err conftest.$ac_objext \
8907 conftest$ac_exeext conftest.$ac_ext
8908 LIBS="$ac_xsave_LIBS"
8910 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8911 # to get the SysV transport functions.
8912 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8913 # needs -lnsl.
8914 # The nsl library prevents programs from opening the X display
8915 # on Irix 5.2, according to T.E. Dickey.
8916 # The functions gethostbyname, getservbyname, and inet_addr are
8917 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8918 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8919 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8923 if test $ac_cv_func_gethostbyname = no; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8925 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8926 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 ac_check_lib_save_LIBS=$LIBS
8930 LIBS="-lnsl $LIBS"
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8934 /* Override any GCC internal prototype to avoid an error.
8935 Use char because int might match the return type of a GCC
8936 builtin and then its argument prototype would still apply. */
8937 #ifdef __cplusplus
8938 extern "C"
8939 #endif
8940 char gethostbyname ();
8942 main ()
8944 return gethostbyname ();
8946 return 0;
8948 _ACEOF
8949 if ac_fn_c_try_link "$LINENO"; then :
8950 ac_cv_lib_nsl_gethostbyname=yes
8951 else
8952 ac_cv_lib_nsl_gethostbyname=no
8954 rm -f core conftest.err conftest.$ac_objext \
8955 conftest$ac_exeext conftest.$ac_ext
8956 LIBS=$ac_check_lib_save_LIBS
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8959 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8960 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8961 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8964 if test $ac_cv_lib_nsl_gethostbyname = no; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8966 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8967 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 ac_check_lib_save_LIBS=$LIBS
8971 LIBS="-lbsd $LIBS"
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8975 /* Override any GCC internal prototype to avoid an error.
8976 Use char because int might match the return type of a GCC
8977 builtin and then its argument prototype would still apply. */
8978 #ifdef __cplusplus
8979 extern "C"
8980 #endif
8981 char gethostbyname ();
8983 main ()
8985 return gethostbyname ();
8987 return 0;
8989 _ACEOF
8990 if ac_fn_c_try_link "$LINENO"; then :
8991 ac_cv_lib_bsd_gethostbyname=yes
8992 else
8993 ac_cv_lib_bsd_gethostbyname=no
8995 rm -f core conftest.err conftest.$ac_objext \
8996 conftest$ac_exeext conftest.$ac_ext
8997 LIBS=$ac_check_lib_save_LIBS
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
9000 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9001 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
9002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9008 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9009 # socket/setsockopt and other routines are undefined under SCO ODT
9010 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9011 # on later versions), says Simon Leinen: it contains gethostby*
9012 # variants that don't use the name server (or something). -lsocket
9013 # must be given before -lnsl if both are needed. We assume that
9014 # if connect needs -lnsl, so does gethostbyname.
9015 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9016 if test "x$ac_cv_func_connect" = xyes; then :
9020 if test $ac_cv_func_connect = no; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9022 $as_echo_n "checking for connect in -lsocket... " >&6; }
9023 if ${ac_cv_lib_socket_connect+:} false; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 ac_check_lib_save_LIBS=$LIBS
9027 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9031 /* Override any GCC internal prototype to avoid an error.
9032 Use char because int might match the return type of a GCC
9033 builtin and then its argument prototype would still apply. */
9034 #ifdef __cplusplus
9035 extern "C"
9036 #endif
9037 char connect ();
9039 main ()
9041 return connect ();
9043 return 0;
9045 _ACEOF
9046 if ac_fn_c_try_link "$LINENO"; then :
9047 ac_cv_lib_socket_connect=yes
9048 else
9049 ac_cv_lib_socket_connect=no
9051 rm -f core conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
9053 LIBS=$ac_check_lib_save_LIBS
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9056 $as_echo "$ac_cv_lib_socket_connect" >&6; }
9057 if test "x$ac_cv_lib_socket_connect" = xyes; then :
9058 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9063 # Guillermo Gomez says -lposix is necessary on A/UX.
9064 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9065 if test "x$ac_cv_func_remove" = xyes; then :
9069 if test $ac_cv_func_remove = no; then
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9071 $as_echo_n "checking for remove in -lposix... " >&6; }
9072 if ${ac_cv_lib_posix_remove+:} false; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 ac_check_lib_save_LIBS=$LIBS
9076 LIBS="-lposix $LIBS"
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9080 /* Override any GCC internal prototype to avoid an error.
9081 Use char because int might match the return type of a GCC
9082 builtin and then its argument prototype would still apply. */
9083 #ifdef __cplusplus
9084 extern "C"
9085 #endif
9086 char remove ();
9088 main ()
9090 return remove ();
9092 return 0;
9094 _ACEOF
9095 if ac_fn_c_try_link "$LINENO"; then :
9096 ac_cv_lib_posix_remove=yes
9097 else
9098 ac_cv_lib_posix_remove=no
9100 rm -f core conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102 LIBS=$ac_check_lib_save_LIBS
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9105 $as_echo "$ac_cv_lib_posix_remove" >&6; }
9106 if test "x$ac_cv_lib_posix_remove" = xyes; then :
9107 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9112 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9113 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9114 if test "x$ac_cv_func_shmat" = xyes; then :
9118 if test $ac_cv_func_shmat = no; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9120 $as_echo_n "checking for shmat in -lipc... " >&6; }
9121 if ${ac_cv_lib_ipc_shmat+:} false; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 ac_check_lib_save_LIBS=$LIBS
9125 LIBS="-lipc $LIBS"
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9129 /* Override any GCC internal prototype to avoid an error.
9130 Use char because int might match the return type of a GCC
9131 builtin and then its argument prototype would still apply. */
9132 #ifdef __cplusplus
9133 extern "C"
9134 #endif
9135 char shmat ();
9137 main ()
9139 return shmat ();
9141 return 0;
9143 _ACEOF
9144 if ac_fn_c_try_link "$LINENO"; then :
9145 ac_cv_lib_ipc_shmat=yes
9146 else
9147 ac_cv_lib_ipc_shmat=no
9149 rm -f core conftest.err conftest.$ac_objext \
9150 conftest$ac_exeext conftest.$ac_ext
9151 LIBS=$ac_check_lib_save_LIBS
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9154 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9155 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9156 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9162 # Check for libraries that X11R6 Xt/Xaw programs need.
9163 ac_save_LDFLAGS=$LDFLAGS
9164 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9165 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9166 # check for ICE first), but we must link in the order -lSM -lICE or
9167 # we get undefined symbols. So assume we have SM if we have ICE.
9168 # These have to be linked with before -lX11, unlike the other
9169 # libraries we check for below, so use a different variable.
9170 # John Interrante, Karl Berry
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9172 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9173 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176 ac_check_lib_save_LIBS=$LIBS
9177 LIBS="-lICE $X_EXTRA_LIBS $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 IceConnectionNumber ();
9189 main ()
9191 return IceConnectionNumber ();
9193 return 0;
9195 _ACEOF
9196 if ac_fn_c_try_link "$LINENO"; then :
9197 ac_cv_lib_ICE_IceConnectionNumber=yes
9198 else
9199 ac_cv_lib_ICE_IceConnectionNumber=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_ICE_IceConnectionNumber" >&5
9206 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9207 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9208 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9211 LDFLAGS=$ac_save_LDFLAGS
9216 if test "$have_x" = "yes"
9217 then
9218 XLIB="-lX11"
9219 ac_save_CPPFLAGS="$CPPFLAGS"
9220 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
9223 $as_echo_n "checking for -lX11... " >&6; }
9224 if ${ac_cv_lib_soname_X11+:} false; then :
9225 $as_echo_n "(cached) " >&6
9226 else
9227 ac_check_soname_save_LIBS=$LIBS
9228 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9232 /* Override any GCC internal prototype to avoid an error.
9233 Use char because int might match the return type of a GCC
9234 builtin and then its argument prototype would still apply. */
9235 #ifdef __cplusplus
9236 extern "C"
9237 #endif
9238 char XCreateWindow ();
9240 main ()
9242 return XCreateWindow ();
9244 return 0;
9246 _ACEOF
9247 if ac_fn_c_try_link "$LINENO"; then :
9248 case "$LIBEXT" in
9249 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9250 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'` ;;
9251 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9252 if test "x$ac_cv_lib_soname_X11" = x; then :
9253 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9254 fi ;;
9255 esac
9257 rm -f core conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
9259 LIBS=$ac_check_soname_save_LIBS
9261 if test "x$ac_cv_lib_soname_X11" = "x"; then :
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9263 $as_echo "not found" >&6; }
9265 else
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
9267 $as_echo "$ac_cv_lib_soname_X11" >&6; }
9269 cat >>confdefs.h <<_ACEOF
9270 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9271 _ACEOF
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
9276 $as_echo_n "checking for -lXext... " >&6; }
9277 if ${ac_cv_lib_soname_Xext+:} false; then :
9278 $as_echo_n "(cached) " >&6
9279 else
9280 ac_check_soname_save_LIBS=$LIBS
9281 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 char XextCreateExtension ();
9293 main ()
9295 return XextCreateExtension ();
9297 return 0;
9299 _ACEOF
9300 if ac_fn_c_try_link "$LINENO"; then :
9301 case "$LIBEXT" in
9302 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9303 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'` ;;
9304 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9305 if test "x$ac_cv_lib_soname_Xext" = x; then :
9306 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9307 fi ;;
9308 esac
9310 rm -f core conftest.err conftest.$ac_objext \
9311 conftest$ac_exeext conftest.$ac_ext
9312 LIBS=$ac_check_soname_save_LIBS
9314 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9316 $as_echo "not found" >&6; }
9318 else
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
9320 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
9322 cat >>confdefs.h <<_ACEOF
9323 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9324 _ACEOF
9326 XLIB="-lXext $XLIB"
9329 for ac_header in X11/Xlib.h \
9330 X11/XKBlib.h \
9331 X11/Xutil.h \
9332 X11/Xcursor/Xcursor.h \
9333 X11/extensions/shape.h \
9334 X11/extensions/XInput.h \
9335 X11/extensions/XInput2.h \
9336 X11/extensions/XShm.h \
9337 X11/extensions/Xcomposite.h \
9338 X11/extensions/Xinerama.h \
9339 X11/extensions/Xrandr.h \
9340 X11/extensions/Xrender.h \
9341 X11/extensions/xf86vmode.h \
9342 X11/extensions/xf86vmproto.h
9343 do :
9344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9345 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9346 # include <X11/Xlib.h>
9347 #endif
9348 #ifdef HAVE_X11_XUTIL_H
9349 # include <X11/Xutil.h>
9350 #endif
9352 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9353 cat >>confdefs.h <<_ACEOF
9354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9355 _ACEOF
9359 done
9362 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9363 then
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9365 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9366 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9367 $as_echo_n "(cached) " >&6
9368 else
9369 ac_check_lib_save_LIBS=$LIBS
9370 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9374 /* Override any GCC internal prototype to avoid an error.
9375 Use char because int might match the return type of a GCC
9376 builtin and then its argument prototype would still apply. */
9377 #ifdef __cplusplus
9378 extern "C"
9379 #endif
9380 char XkbQueryExtension ();
9382 main ()
9384 return XkbQueryExtension ();
9386 return 0;
9388 _ACEOF
9389 if ac_fn_c_try_link "$LINENO"; then :
9390 ac_cv_lib_X11_XkbQueryExtension=yes
9391 else
9392 ac_cv_lib_X11_XkbQueryExtension=no
9394 rm -f core conftest.err conftest.$ac_objext \
9395 conftest$ac_exeext conftest.$ac_ext
9396 LIBS=$ac_check_lib_save_LIBS
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9399 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9400 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9402 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9408 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9409 then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9411 $as_echo_n "checking for -lXcursor... " >&6; }
9412 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 ac_check_soname_save_LIBS=$LIBS
9416 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9420 /* Override any GCC internal prototype to avoid an error.
9421 Use char because int might match the return type of a GCC
9422 builtin and then its argument prototype would still apply. */
9423 #ifdef __cplusplus
9424 extern "C"
9425 #endif
9426 char XcursorImageLoadCursor ();
9428 main ()
9430 return XcursorImageLoadCursor ();
9432 return 0;
9434 _ACEOF
9435 if ac_fn_c_try_link "$LINENO"; then :
9436 case "$LIBEXT" in
9437 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9438 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'` ;;
9439 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9440 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
9441 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9442 fi ;;
9443 esac
9445 rm -f core conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 LIBS=$ac_check_soname_save_LIBS
9449 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9451 $as_echo "not found" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9455 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9457 cat >>confdefs.h <<_ACEOF
9458 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9459 _ACEOF
9464 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9465 case "x$with_xcursor" in
9466 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9467 xno) ;;
9468 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9469 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9470 esac
9473 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9474 then
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9476 $as_echo_n "checking for -lXi... " >&6; }
9477 if ${ac_cv_lib_soname_Xi+:} false; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 ac_check_soname_save_LIBS=$LIBS
9481 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9485 /* Override any GCC internal prototype to avoid an error.
9486 Use char because int might match the return type of a GCC
9487 builtin and then its argument prototype would still apply. */
9488 #ifdef __cplusplus
9489 extern "C"
9490 #endif
9491 char XOpenDevice ();
9493 main ()
9495 return XOpenDevice ();
9497 return 0;
9499 _ACEOF
9500 if ac_fn_c_try_link "$LINENO"; then :
9501 case "$LIBEXT" in
9502 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9503 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'` ;;
9504 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9505 if test "x$ac_cv_lib_soname_Xi" = x; then :
9506 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9507 fi ;;
9508 esac
9510 rm -f core conftest.err conftest.$ac_objext \
9511 conftest$ac_exeext conftest.$ac_ext
9512 LIBS=$ac_check_soname_save_LIBS
9514 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9516 $as_echo "not found" >&6; }
9518 else
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9520 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9522 cat >>confdefs.h <<_ACEOF
9523 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9524 _ACEOF
9529 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9530 case "x$with_xinput" in
9531 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9532 xno) ;;
9533 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9534 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9535 esac
9538 if test "x$ac_cv_lib_soname_Xi" != x
9539 then
9540 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9541 case "x$with_xinput2" in
9542 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9543 xno) ;;
9544 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9545 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9546 esac
9550 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9551 then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9553 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9554 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9555 $as_echo_n "(cached) " >&6
9556 else
9557 ac_check_lib_save_LIBS=$LIBS
9558 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9562 /* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
9565 #ifdef __cplusplus
9566 extern "C"
9567 #endif
9568 char XShmQueryExtension ();
9570 main ()
9572 return XShmQueryExtension ();
9574 return 0;
9576 _ACEOF
9577 if ac_fn_c_try_link "$LINENO"; then :
9578 ac_cv_lib_Xext_XShmQueryExtension=yes
9579 else
9580 ac_cv_lib_Xext_XShmQueryExtension=no
9582 rm -f core conftest.err conftest.$ac_objext \
9583 conftest$ac_exeext conftest.$ac_ext
9584 LIBS=$ac_check_lib_save_LIBS
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9587 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9588 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9590 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9595 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9596 case "x$with_xshm" in
9597 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9598 xno) ;;
9599 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9600 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9601 esac
9604 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9605 then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9607 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9608 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 ac_check_lib_save_LIBS=$LIBS
9612 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9616 /* Override any GCC internal prototype to avoid an error.
9617 Use char because int might match the return type of a GCC
9618 builtin and then its argument prototype would still apply. */
9619 #ifdef __cplusplus
9620 extern "C"
9621 #endif
9622 char XShapeQueryExtension ();
9624 main ()
9626 return XShapeQueryExtension ();
9628 return 0;
9630 _ACEOF
9631 if ac_fn_c_try_link "$LINENO"; then :
9632 ac_cv_lib_Xext_XShapeQueryExtension=yes
9633 else
9634 ac_cv_lib_Xext_XShapeQueryExtension=no
9636 rm -f core conftest.err conftest.$ac_objext \
9637 conftest$ac_exeext conftest.$ac_ext
9638 LIBS=$ac_check_lib_save_LIBS
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9641 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9642 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9644 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9649 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9650 case "x$with_xshape" in
9651 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9652 xno) ;;
9653 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9654 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9655 esac
9658 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9659 then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9661 $as_echo_n "checking for -lXxf86vm... " >&6; }
9662 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9663 $as_echo_n "(cached) " >&6
9664 else
9665 ac_check_soname_save_LIBS=$LIBS
9666 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9670 /* Override any GCC internal prototype to avoid an error.
9671 Use char because int might match the return type of a GCC
9672 builtin and then its argument prototype would still apply. */
9673 #ifdef __cplusplus
9674 extern "C"
9675 #endif
9676 char XF86VidModeQueryExtension ();
9678 main ()
9680 return XF86VidModeQueryExtension ();
9682 return 0;
9684 _ACEOF
9685 if ac_fn_c_try_link "$LINENO"; then :
9686 case "$LIBEXT" in
9687 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9688 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'` ;;
9689 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9690 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
9691 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9692 fi ;;
9693 esac
9695 rm -f core conftest.err conftest.$ac_objext \
9696 conftest$ac_exeext conftest.$ac_ext
9697 LIBS=$ac_check_soname_save_LIBS
9699 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9701 $as_echo "not found" >&6; }
9703 else
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9705 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9707 cat >>confdefs.h <<_ACEOF
9708 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9709 _ACEOF
9714 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9715 case "x$with_xxf86vm" in
9716 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9717 xno) ;;
9718 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9719 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9720 esac
9723 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"
9724 then
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9726 $as_echo_n "checking for -lXrender... " >&6; }
9727 if ${ac_cv_lib_soname_Xrender+:} false; then :
9728 $as_echo_n "(cached) " >&6
9729 else
9730 ac_check_soname_save_LIBS=$LIBS
9731 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9735 /* Override any GCC internal prototype to avoid an error.
9736 Use char because int might match the return type of a GCC
9737 builtin and then its argument prototype would still apply. */
9738 #ifdef __cplusplus
9739 extern "C"
9740 #endif
9741 char XRenderQueryExtension ();
9743 main ()
9745 return XRenderQueryExtension ();
9747 return 0;
9749 _ACEOF
9750 if ac_fn_c_try_link "$LINENO"; then :
9751 case "$LIBEXT" in
9752 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9753 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'` ;;
9754 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9755 if test "x$ac_cv_lib_soname_Xrender" = x; then :
9756 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9757 fi ;;
9758 esac
9760 rm -f core conftest.err conftest.$ac_objext \
9761 conftest$ac_exeext conftest.$ac_ext
9762 LIBS=$ac_check_soname_save_LIBS
9764 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9766 $as_echo "not found" >&6; }
9768 else
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
9770 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
9772 cat >>confdefs.h <<_ACEOF
9773 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
9774 _ACEOF
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
9777 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
9778 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
9779 $as_echo_n "(cached) " >&6
9780 else
9781 ac_check_lib_save_LIBS=$LIBS
9782 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9786 /* Override any GCC internal prototype to avoid an error.
9787 Use char because int might match the return type of a GCC
9788 builtin and then its argument prototype would still apply. */
9789 #ifdef __cplusplus
9790 extern "C"
9791 #endif
9792 char XRenderSetPictureTransform ();
9794 main ()
9796 return XRenderSetPictureTransform ();
9798 return 0;
9800 _ACEOF
9801 if ac_fn_c_try_link "$LINENO"; then :
9802 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9803 else
9804 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9806 rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9808 LIBS=$ac_check_lib_save_LIBS
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9811 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9812 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
9814 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
9819 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
9820 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
9821 $as_echo_n "(cached) " >&6
9822 else
9823 ac_check_lib_save_LIBS=$LIBS
9824 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h. */
9828 /* Override any GCC internal prototype to avoid an error.
9829 Use char because int might match the return type of a GCC
9830 builtin and then its argument prototype would still apply. */
9831 #ifdef __cplusplus
9832 extern "C"
9833 #endif
9834 char XRenderCreateLinearGradient ();
9836 main ()
9838 return XRenderCreateLinearGradient ();
9840 return 0;
9842 _ACEOF
9843 if ac_fn_c_try_link "$LINENO"; then :
9844 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
9845 else
9846 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
9848 rm -f core conftest.err conftest.$ac_objext \
9849 conftest$ac_exeext conftest.$ac_ext
9850 LIBS=$ac_check_lib_save_LIBS
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
9853 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
9854 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
9856 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
9863 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9864 case "x$with_xrender" in
9865 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
9866 xno) ;;
9867 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
9868 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
9869 esac
9872 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9873 then
9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875 /* end confdefs.h. */
9876 #include <X11/Xlib.h>
9877 #include <X11/extensions/Xrandr.h>
9879 main ()
9881 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9883 return 0;
9885 _ACEOF
9886 if ac_fn_c_try_compile "$LINENO"; then :
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9888 $as_echo_n "checking for -lXrandr... " >&6; }
9889 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9890 $as_echo_n "(cached) " >&6
9891 else
9892 ac_check_soname_save_LIBS=$LIBS
9893 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895 /* end confdefs.h. */
9897 /* Override any GCC internal prototype to avoid an error.
9898 Use char because int might match the return type of a GCC
9899 builtin and then its argument prototype would still apply. */
9900 #ifdef __cplusplus
9901 extern "C"
9902 #endif
9903 char XRRQueryExtension ();
9905 main ()
9907 return XRRQueryExtension ();
9909 return 0;
9911 _ACEOF
9912 if ac_fn_c_try_link "$LINENO"; then :
9913 case "$LIBEXT" in
9914 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9915 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'` ;;
9916 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9917 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
9918 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9919 fi ;;
9920 esac
9922 rm -f core conftest.err conftest.$ac_objext \
9923 conftest$ac_exeext conftest.$ac_ext
9924 LIBS=$ac_check_soname_save_LIBS
9926 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9928 $as_echo "not found" >&6; }
9930 else
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9932 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9934 cat >>confdefs.h <<_ACEOF
9935 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9936 _ACEOF
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 #include <X11/Xlib.h>
9941 #include <X11/extensions/Xrandr.h>
9943 main ()
9945 static typeof(XRRGetScreenResources) *f; if (f) return 0;
9947 return 0;
9949 _ACEOF
9950 if ac_fn_c_try_compile "$LINENO"; then :
9952 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
9955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9960 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9961 case "x$with_xrandr" in
9962 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
9963 xno) ;;
9964 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
9965 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
9966 esac
9969 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9970 then
9971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973 #include <X11/Xlib.h>
9974 #include <X11/extensions/Xinerama.h>
9976 main ()
9978 static typeof(XineramaQueryScreens) * func; if (func) return 0;
9980 return 0;
9982 _ACEOF
9983 if ac_fn_c_try_compile "$LINENO"; then :
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
9985 $as_echo_n "checking for -lXinerama... " >&6; }
9986 if ${ac_cv_lib_soname_Xinerama+:} false; then :
9987 $as_echo_n "(cached) " >&6
9988 else
9989 ac_check_soname_save_LIBS=$LIBS
9990 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9994 /* Override any GCC internal prototype to avoid an error.
9995 Use char because int might match the return type of a GCC
9996 builtin and then its argument prototype would still apply. */
9997 #ifdef __cplusplus
9998 extern "C"
9999 #endif
10000 char XineramaQueryScreens ();
10002 main ()
10004 return XineramaQueryScreens ();
10006 return 0;
10008 _ACEOF
10009 if ac_fn_c_try_link "$LINENO"; then :
10010 case "$LIBEXT" in
10011 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10012 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'` ;;
10013 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10014 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
10015 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10016 fi ;;
10017 esac
10019 rm -f core conftest.err conftest.$ac_objext \
10020 conftest$ac_exeext conftest.$ac_ext
10021 LIBS=$ac_check_soname_save_LIBS
10023 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10025 $as_echo "not found" >&6; }
10027 else
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
10029 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
10031 cat >>confdefs.h <<_ACEOF
10032 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10033 _ACEOF
10038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10040 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10041 case "x$with_xinerama" in
10042 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
10043 xno) ;;
10044 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
10045 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
10046 esac
10049 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10050 then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
10052 $as_echo_n "checking for -lXcomposite... " >&6; }
10053 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
10054 $as_echo_n "(cached) " >&6
10055 else
10056 ac_check_soname_save_LIBS=$LIBS
10057 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10061 /* Override any GCC internal prototype to avoid an error.
10062 Use char because int might match the return type of a GCC
10063 builtin and then its argument prototype would still apply. */
10064 #ifdef __cplusplus
10065 extern "C"
10066 #endif
10067 char XCompositeRedirectWindow ();
10069 main ()
10071 return XCompositeRedirectWindow ();
10073 return 0;
10075 _ACEOF
10076 if ac_fn_c_try_link "$LINENO"; then :
10077 case "$LIBEXT" in
10078 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10079 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'` ;;
10080 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10081 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
10082 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10083 fi ;;
10084 esac
10086 rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_check_soname_save_LIBS
10090 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10092 $as_echo "not found" >&6; }
10094 else
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
10096 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
10098 cat >>confdefs.h <<_ACEOF
10099 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10100 _ACEOF
10105 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10106 case "x$with_xcomposite" in
10107 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
10108 xno) ;;
10109 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
10110 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
10111 esac
10114 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
10115 #include <X11/Xlib.h>
10116 #endif
10118 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
10120 cat >>confdefs.h <<_ACEOF
10121 #define HAVE_XICCALLBACK_CALLBACK 1
10122 _ACEOF
10126 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
10127 #include <X11/Xlib.h>
10128 #endif
10130 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
10132 cat >>confdefs.h <<_ACEOF
10133 #define HAVE_XEVENT_XCOOKIE 1
10134 _ACEOF
10141 opengl_msg=""
10142 if test "x$with_opengl" != "xno"
10143 then
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10145 $as_echo_n "checking for -lGL... " >&6; }
10146 if ${ac_cv_lib_soname_GL+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 ac_check_soname_save_LIBS=$LIBS
10150 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152 /* end confdefs.h. */
10154 /* Override any GCC internal prototype to avoid an error.
10155 Use char because int might match the return type of a GCC
10156 builtin and then its argument prototype would still apply. */
10157 #ifdef __cplusplus
10158 extern "C"
10159 #endif
10160 char glXCreateContext ();
10162 main ()
10164 return glXCreateContext ();
10166 return 0;
10168 _ACEOF
10169 if ac_fn_c_try_link "$LINENO"; then :
10170 case "$LIBEXT" in
10171 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10172 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'` ;;
10173 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10174 if test "x$ac_cv_lib_soname_GL" = x; then :
10175 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10176 fi ;;
10177 esac
10179 rm -f core conftest.err conftest.$ac_objext \
10180 conftest$ac_exeext conftest.$ac_ext
10181 LIBS=$ac_check_soname_save_LIBS
10183 if test "x$ac_cv_lib_soname_GL" = "x"; then :
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10185 $as_echo "not found" >&6; }
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10187 $as_echo_n "checking for -lGL... " >&6; }
10188 if ${ac_cv_lib_soname_GL+:} false; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 ac_check_soname_save_LIBS=$LIBS
10192 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"
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10196 /* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10199 #ifdef __cplusplus
10200 extern "C"
10201 #endif
10202 char glXCreateContext ();
10204 main ()
10206 return glXCreateContext ();
10208 return 0;
10210 _ACEOF
10211 if ac_fn_c_try_link "$LINENO"; then :
10212 case "$LIBEXT" in
10213 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10214 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'` ;;
10215 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10216 if test "x$ac_cv_lib_soname_GL" = x; then :
10217 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10218 fi ;;
10219 esac
10221 rm -f core conftest.err conftest.$ac_objext \
10222 conftest$ac_exeext conftest.$ac_ext
10223 LIBS=$ac_check_soname_save_LIBS
10225 if test "x$ac_cv_lib_soname_GL" = "x"; then :
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10227 $as_echo "not found" >&6; }
10228 if test -f /usr/X11R6/lib/libGL.a
10229 then
10230 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
10231 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10232 else
10233 opengl_msg="No OpenGL library found on this system."
10235 else
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10237 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10239 cat >>confdefs.h <<_ACEOF
10240 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10241 _ACEOF
10243 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"
10245 else
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10247 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10249 cat >>confdefs.h <<_ACEOF
10250 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10251 _ACEOF
10253 OPENGL_LIBS="-lGL"
10255 if test "x$with_glu" != "xno"
10256 then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
10258 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
10259 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 ac_check_lib_save_LIBS=$LIBS
10263 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10267 /* Override any GCC internal prototype to avoid an error.
10268 Use char because int might match the return type of a GCC
10269 builtin and then its argument prototype would still apply. */
10270 #ifdef __cplusplus
10271 extern "C"
10272 #endif
10273 char gluLookAt ();
10275 main ()
10277 return gluLookAt ();
10279 return 0;
10281 _ACEOF
10282 if ac_fn_c_try_link "$LINENO"; then :
10283 ac_cv_lib_GLU_gluLookAt=yes
10284 else
10285 ac_cv_lib_GLU_gluLookAt=no
10287 rm -f core conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
10292 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
10293 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
10297 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
10298 case "x$with_glu" in
10299 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
10300 xno) ;;
10301 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
10302 This is an error since --with-glu was requested." "$LINENO" 5 ;;
10303 esac
10307 if test "x$with_osmesa" != "xno"
10308 then
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
10310 $as_echo_n "checking for -lOSMesa... " >&6; }
10311 if ${ac_cv_lib_soname_OSMesa+:} false; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 ac_check_soname_save_LIBS=$LIBS
10315 LIBS="-lOSMesa $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 glAccum ();
10327 main ()
10329 return glAccum ();
10331 return 0;
10333 _ACEOF
10334 if ac_fn_c_try_link "$LINENO"; then :
10335 case "$LIBEXT" in
10336 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10337 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'` ;;
10338 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10339 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
10340 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10341 fi ;;
10342 esac
10344 rm -f core conftest.err conftest.$ac_objext \
10345 conftest$ac_exeext conftest.$ac_ext
10346 LIBS=$ac_check_soname_save_LIBS
10348 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10350 $as_echo "not found" >&6; }
10352 else
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10354 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10356 cat >>confdefs.h <<_ACEOF
10357 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10358 _ACEOF
10362 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10363 case "x$with_osmesa" in
10364 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10365 xno) ;;
10366 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10367 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10368 esac
10372 if test -n "$opengl_msg"; then :
10373 case "x$with_opengl" in
10374 x) as_fn_append wine_warnings "|$opengl_msg
10375 OpenGL and Direct3D won't be supported." ;;
10376 xno) ;;
10377 *) as_fn_error $? "$opengl_msg
10378 OpenGL and Direct3D won't be supported.
10379 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10380 esac
10383 CPPFLAGS="$ac_save_CPPFLAGS"
10384 else
10385 XLIB=""
10386 X_CFLAGS=""
10387 X_LIBS=""
10388 enable_winex11_drv=${enable_winex11_drv:-no}
10390 if test "x$XLIB" = "x"; then :
10391 case "x$with_x" in
10392 xno) ;;
10393 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10394 without X support, which probably isn't what you want. You will need
10395 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10396 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10397 esac
10400 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10402 if test "$ac_cv_header_CL_cl_h" = "yes"
10403 then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10405 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10406 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10407 $as_echo_n "(cached) " >&6
10408 else
10409 ac_check_lib_save_LIBS=$LIBS
10410 LIBS="-lOpenCL $LIBS"
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10414 /* Override any GCC internal prototype to avoid an error.
10415 Use char because int might match the return type of a GCC
10416 builtin and then its argument prototype would still apply. */
10417 #ifdef __cplusplus
10418 extern "C"
10419 #endif
10420 char clGetPlatformInfo ();
10422 main ()
10424 return clGetPlatformInfo ();
10426 return 0;
10428 _ACEOF
10429 if ac_fn_c_try_link "$LINENO"; then :
10430 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10431 else
10432 ac_cv_lib_OpenCL_clGetPlatformInfo=no
10434 rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10436 LIBS=$ac_check_lib_save_LIBS
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
10439 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10440 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10441 LIBOPENCL="-lOpenCL"
10446 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10447 case "x$with_opencl" in
10448 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10449 xno) ;;
10450 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10451 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10452 esac
10454 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10457 if test "x$with_xml" != "xno"
10458 then
10459 if test -n "$XML2_CFLAGS"; then :
10461 elif test -n "$PKG_CONFIG"; then :
10462 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10464 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10465 if test -n "$XML2_LIBS"; then :
10467 elif test -n "$PKG_CONFIG"; then :
10468 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10470 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10471 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10472 ac_save_CPPFLAGS=$CPPFLAGS
10473 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10474 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10475 do :
10476 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10477 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10478 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10479 cat >>confdefs.h <<_ACEOF
10480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10481 _ACEOF
10485 done
10487 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"
10488 then
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10490 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10491 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10492 $as_echo_n "(cached) " >&6
10493 else
10494 ac_check_lib_save_LIBS=$LIBS
10495 LIBS="-lxml2 $XML2_LIBS $LIBS"
10496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10497 /* end confdefs.h. */
10499 /* Override any GCC internal prototype to avoid an error.
10500 Use char because int might match the return type of a GCC
10501 builtin and then its argument prototype would still apply. */
10502 #ifdef __cplusplus
10503 extern "C"
10504 #endif
10505 char xmlParseMemory ();
10507 main ()
10509 return xmlParseMemory ();
10511 return 0;
10513 _ACEOF
10514 if ac_fn_c_try_link "$LINENO"; then :
10515 ac_cv_lib_xml2_xmlParseMemory=yes
10516 else
10517 ac_cv_lib_xml2_xmlParseMemory=no
10519 rm -f core conftest.err conftest.$ac_objext \
10520 conftest$ac_exeext conftest.$ac_ext
10521 LIBS=$ac_check_lib_save_LIBS
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10524 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10525 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10527 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10529 else
10530 XML2_LIBS=""
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10534 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10535 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
10536 $as_echo_n "(cached) " >&6
10537 else
10538 ac_check_lib_save_LIBS=$LIBS
10539 LIBS="-lxml2 $XML2_LIBS $LIBS"
10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10541 /* end confdefs.h. */
10543 /* Override any GCC internal prototype to avoid an error.
10544 Use char because int might match the return type of a GCC
10545 builtin and then its argument prototype would still apply. */
10546 #ifdef __cplusplus
10547 extern "C"
10548 #endif
10549 char xmlReadMemory ();
10551 main ()
10553 return xmlReadMemory ();
10555 return 0;
10557 _ACEOF
10558 if ac_fn_c_try_link "$LINENO"; then :
10559 ac_cv_lib_xml2_xmlReadMemory=yes
10560 else
10561 ac_cv_lib_xml2_xmlReadMemory=no
10563 rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext conftest.$ac_ext
10565 LIBS=$ac_check_lib_save_LIBS
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10568 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10569 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10571 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10576 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10577 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
10578 $as_echo_n "(cached) " >&6
10579 else
10580 ac_check_lib_save_LIBS=$LIBS
10581 LIBS="-lxml2 $XML2_LIBS $LIBS"
10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10583 /* end confdefs.h. */
10585 /* Override any GCC internal prototype to avoid an error.
10586 Use char because int might match the return type of a GCC
10587 builtin and then its argument prototype would still apply. */
10588 #ifdef __cplusplus
10589 extern "C"
10590 #endif
10591 char xmlNewDocPI ();
10593 main ()
10595 return xmlNewDocPI ();
10597 return 0;
10599 _ACEOF
10600 if ac_fn_c_try_link "$LINENO"; then :
10601 ac_cv_lib_xml2_xmlNewDocPI=yes
10602 else
10603 ac_cv_lib_xml2_xmlNewDocPI=no
10605 rm -f core conftest.err conftest.$ac_objext \
10606 conftest$ac_exeext conftest.$ac_ext
10607 LIBS=$ac_check_lib_save_LIBS
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10610 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10611 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10613 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10618 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10619 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
10620 $as_echo_n "(cached) " >&6
10621 else
10622 ac_check_lib_save_LIBS=$LIBS
10623 LIBS="-lxml2 $XML2_LIBS $LIBS"
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10627 /* Override any GCC internal prototype to avoid an error.
10628 Use char because int might match the return type of a GCC
10629 builtin and then its argument prototype would still apply. */
10630 #ifdef __cplusplus
10631 extern "C"
10632 #endif
10633 char xmlSchemaSetParserStructuredErrors ();
10635 main ()
10637 return xmlSchemaSetParserStructuredErrors ();
10639 return 0;
10641 _ACEOF
10642 if ac_fn_c_try_link "$LINENO"; then :
10643 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10644 else
10645 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
10647 rm -f core conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
10649 LIBS=$ac_check_lib_save_LIBS
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
10652 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10653 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10655 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10660 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10661 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 ac_check_lib_save_LIBS=$LIBS
10665 LIBS="-lxml2 $XML2_LIBS $LIBS"
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10669 /* Override any GCC internal prototype to avoid an error.
10670 Use char because int might match the return type of a GCC
10671 builtin and then its argument prototype would still apply. */
10672 #ifdef __cplusplus
10673 extern "C"
10674 #endif
10675 char xmlSchemaSetValidStructuredErrors ();
10677 main ()
10679 return xmlSchemaSetValidStructuredErrors ();
10681 return 0;
10683 _ACEOF
10684 if ac_fn_c_try_link "$LINENO"; then :
10685 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
10686 else
10687 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
10689 rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
10691 LIBS=$ac_check_lib_save_LIBS
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
10694 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
10695 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
10697 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
10702 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
10703 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10706 ac_check_lib_save_LIBS=$LIBS
10707 LIBS="-lxml2 $XML2_LIBS $LIBS"
10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10711 /* Override any GCC internal prototype to avoid an error.
10712 Use char because int might match the return type of a GCC
10713 builtin and then its argument prototype would still apply. */
10714 #ifdef __cplusplus
10715 extern "C"
10716 #endif
10717 char xmlFirstElementChild ();
10719 main ()
10721 return xmlFirstElementChild ();
10723 return 0;
10725 _ACEOF
10726 if ac_fn_c_try_link "$LINENO"; then :
10727 ac_cv_lib_xml2_xmlFirstElementChild=yes
10728 else
10729 ac_cv_lib_xml2_xmlFirstElementChild=no
10731 rm -f core conftest.err conftest.$ac_objext \
10732 conftest$ac_exeext conftest.$ac_ext
10733 LIBS=$ac_check_lib_save_LIBS
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
10736 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
10737 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
10739 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
10743 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
10745 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
10747 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
10751 else
10752 XML2_CFLAGS=""
10753 XML2_LIBS=""
10755 CPPFLAGS=$ac_save_CPPFLAGS
10756 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10757 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10760 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
10761 case "x$with_xml" in
10762 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
10763 xno) ;;
10764 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
10765 This is an error since --with-xml was requested." "$LINENO" 5 ;;
10766 esac
10769 if test "x$with_xslt" != "xno"
10770 then
10771 if test -n "$XSLT_CFLAGS"; then :
10773 elif test -n "$PKG_CONFIG"; then :
10774 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
10776 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
10777 if test -n "$XSLT_LIBS"; then :
10779 elif test -n "$PKG_CONFIG"; then :
10780 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
10782 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
10783 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
10784 ac_save_CPPFLAGS=$CPPFLAGS
10785 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
10786 for ac_header in libxslt/pattern.h libxslt/transform.h
10787 do :
10788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10789 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
10790 # include <libxslt/pattern.h>
10791 #endif
10793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10794 cat >>confdefs.h <<_ACEOF
10795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10796 _ACEOF
10800 done
10802 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10803 then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10805 $as_echo_n "checking for -lxslt... " >&6; }
10806 if ${ac_cv_lib_soname_xslt+:} false; then :
10807 $as_echo_n "(cached) " >&6
10808 else
10809 ac_check_soname_save_LIBS=$LIBS
10810 LIBS="-lxslt $XSLT_LIBS $LIBS"
10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10814 /* Override any GCC internal prototype to avoid an error.
10815 Use char because int might match the return type of a GCC
10816 builtin and then its argument prototype would still apply. */
10817 #ifdef __cplusplus
10818 extern "C"
10819 #endif
10820 char xsltCompilePattern ();
10822 main ()
10824 return xsltCompilePattern ();
10826 return 0;
10828 _ACEOF
10829 if ac_fn_c_try_link "$LINENO"; then :
10830 case "$LIBEXT" in
10831 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10832 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'` ;;
10833 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10834 if test "x$ac_cv_lib_soname_xslt" = x; then :
10835 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10836 fi ;;
10837 esac
10839 rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_soname_save_LIBS
10843 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10845 $as_echo "not found" >&6; }
10847 else
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10849 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10851 cat >>confdefs.h <<_ACEOF
10852 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10853 _ACEOF
10857 else
10858 XSLT_CFLAGS=""
10860 CPPFLAGS=$ac_save_CPPFLAGS
10861 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10862 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10865 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10866 case "x$with_xslt" in
10867 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10868 xno) ;;
10869 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10870 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10871 esac
10874 if test "x$with_dbus" != "xno"
10875 then
10876 if test -n "$DBUS_CFLAGS"; then :
10878 elif test -n "$PKG_CONFIG"; then :
10879 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10882 if test -n "$DBUS_LIBS"; then :
10884 elif test -n "$PKG_CONFIG"; then :
10885 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10889 ac_save_CPPFLAGS=$CPPFLAGS
10890 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10891 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10892 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10894 $as_echo_n "checking for -ldbus-1... " >&6; }
10895 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10896 $as_echo_n "(cached) " >&6
10897 else
10898 ac_check_soname_save_LIBS=$LIBS
10899 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h. */
10903 /* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10906 #ifdef __cplusplus
10907 extern "C"
10908 #endif
10909 char dbus_connection_close ();
10911 main ()
10913 return dbus_connection_close ();
10915 return 0;
10917 _ACEOF
10918 if ac_fn_c_try_link "$LINENO"; then :
10919 case "$LIBEXT" in
10920 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10921 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'` ;;
10922 *) 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'`
10923 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10924 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10925 fi ;;
10926 esac
10928 rm -f core conftest.err conftest.$ac_objext \
10929 conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_soname_save_LIBS
10932 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10934 $as_echo "not found" >&6; }
10935 DBUS_CFLAGS=""
10936 else
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10938 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10940 cat >>confdefs.h <<_ACEOF
10941 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10942 _ACEOF
10946 else
10947 DBUS_CFLAGS=""
10951 CPPFLAGS=$ac_save_CPPFLAGS
10952 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10953 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10956 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
10957 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10958 case "x$with_dbus" in
10959 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
10960 xno) ;;
10961 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
10962 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
10963 esac
10966 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
10967 then
10968 if test -n "$HAL_CFLAGS"; then :
10970 elif test -n "$PKG_CONFIG"; then :
10971 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
10974 if test -n "$HAL_LIBS"; then :
10976 elif test -n "$PKG_CONFIG"; then :
10977 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
10980 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
10981 ac_save_CPPFLAGS=$CPPFLAGS
10982 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
10983 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
10984 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
10986 $as_echo_n "checking for -lhal... " >&6; }
10987 if ${ac_cv_lib_soname_hal+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 ac_check_soname_save_LIBS=$LIBS
10991 LIBS="-lhal $HAL_LIBS $LIBS"
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10995 /* Override any GCC internal prototype to avoid an error.
10996 Use char because int might match the return type of a GCC
10997 builtin and then its argument prototype would still apply. */
10998 #ifdef __cplusplus
10999 extern "C"
11000 #endif
11001 char libhal_ctx_new ();
11003 main ()
11005 return libhal_ctx_new ();
11007 return 0;
11009 _ACEOF
11010 if ac_fn_c_try_link "$LINENO"; then :
11011 case "$LIBEXT" in
11012 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11013 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'` ;;
11014 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11015 if test "x$ac_cv_lib_soname_hal" = x; then :
11016 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11017 fi ;;
11018 esac
11020 rm -f core conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_soname_save_LIBS
11024 if test "x$ac_cv_lib_soname_hal" = "x"; then :
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11026 $as_echo "not found" >&6; }
11027 HAL_CFLAGS=""
11028 else
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
11030 $as_echo "$ac_cv_lib_soname_hal" >&6; }
11032 cat >>confdefs.h <<_ACEOF
11033 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11034 _ACEOF
11038 else
11039 HAL_CFLAGS=""
11043 CPPFLAGS=$ac_save_CPPFLAGS
11044 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11045 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11047 if test "x$ac_cv_lib_soname_hal" = "x" -a \
11048 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11049 case "x$with_hal" in
11050 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
11051 xno) ;;
11052 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
11053 This is an error since --with-hal was requested." "$LINENO" 5 ;;
11054 esac
11058 if test "x$with_gnutls" != "xno"
11059 then
11060 if test -n "$GNUTLS_CFLAGS"; then :
11062 elif test -n "$PKG_CONFIG"; then :
11063 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
11066 if test -n "$GNUTLS_LIBS"; then :
11068 elif test -n "$PKG_CONFIG"; then :
11069 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
11073 ac_save_CPPFLAGS=$CPPFLAGS
11074 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
11075 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
11076 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11079 #include <gnutls/gnutls.h>
11080 #include <gnutls/crypto.h>
11082 main ()
11084 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
11086 return 0;
11088 _ACEOF
11089 if ac_fn_c_try_compile "$LINENO"; then :
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
11091 $as_echo_n "checking for -lgnutls... " >&6; }
11092 if ${ac_cv_lib_soname_gnutls+:} false; then :
11093 $as_echo_n "(cached) " >&6
11094 else
11095 ac_check_soname_save_LIBS=$LIBS
11096 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
11097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11100 /* Override any GCC internal prototype to avoid an error.
11101 Use char because int might match the return type of a GCC
11102 builtin and then its argument prototype would still apply. */
11103 #ifdef __cplusplus
11104 extern "C"
11105 #endif
11106 char gnutls_global_init ();
11108 main ()
11110 return gnutls_global_init ();
11112 return 0;
11114 _ACEOF
11115 if ac_fn_c_try_link "$LINENO"; then :
11116 case "$LIBEXT" in
11117 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11118 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'` ;;
11119 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11120 if test "x$ac_cv_lib_soname_gnutls" = x; then :
11121 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11122 fi ;;
11123 esac
11125 rm -f core conftest.err conftest.$ac_objext \
11126 conftest$ac_exeext conftest.$ac_ext
11127 LIBS=$ac_check_soname_save_LIBS
11129 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11131 $as_echo "not found" >&6; }
11132 GNUTLS_CFLAGS=""
11133 else
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
11135 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
11137 cat >>confdefs.h <<_ACEOF
11138 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
11139 _ACEOF
11144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11145 else
11146 GNUTLS_CFLAGS=""
11150 CPPFLAGS=$ac_save_CPPFLAGS
11151 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11152 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11155 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11156 case "x$with_gnutls" in
11157 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
11158 xno) ;;
11159 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
11160 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
11161 esac
11164 CURSESLIBS=""
11165 if test "$ac_cv_header_ncurses_h" = "yes"
11166 then
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
11168 $as_echo_n "checking for -lncurses... " >&6; }
11169 if ${ac_cv_lib_soname_ncurses+:} false; then :
11170 $as_echo_n "(cached) " >&6
11171 else
11172 ac_check_soname_save_LIBS=$LIBS
11173 LIBS="-lncurses $LIBS"
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11177 /* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
11180 #ifdef __cplusplus
11181 extern "C"
11182 #endif
11183 char waddch ();
11185 main ()
11187 return waddch ();
11189 return 0;
11191 _ACEOF
11192 if ac_fn_c_try_link "$LINENO"; then :
11193 case "$LIBEXT" in
11194 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11195 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'` ;;
11196 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11197 if test "x$ac_cv_lib_soname_ncurses" = x; then :
11198 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11199 fi ;;
11200 esac
11202 rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204 LIBS=$ac_check_soname_save_LIBS
11206 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11208 $as_echo "not found" >&6; }
11210 else
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
11212 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
11214 cat >>confdefs.h <<_ACEOF
11215 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11216 _ACEOF
11218 CURSESLIBS="-lncurses"
11220 elif test "$ac_cv_header_curses_h" = "yes"
11221 then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
11223 $as_echo_n "checking for -lcurses... " >&6; }
11224 if ${ac_cv_lib_soname_curses+:} false; then :
11225 $as_echo_n "(cached) " >&6
11226 else
11227 ac_check_soname_save_LIBS=$LIBS
11228 LIBS="-lcurses $LIBS"
11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11232 /* Override any GCC internal prototype to avoid an error.
11233 Use char because int might match the return type of a GCC
11234 builtin and then its argument prototype would still apply. */
11235 #ifdef __cplusplus
11236 extern "C"
11237 #endif
11238 char waddch ();
11240 main ()
11242 return waddch ();
11244 return 0;
11246 _ACEOF
11247 if ac_fn_c_try_link "$LINENO"; then :
11248 case "$LIBEXT" in
11249 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11250 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'` ;;
11251 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11252 if test "x$ac_cv_lib_soname_curses" = x; then :
11253 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11254 fi ;;
11255 esac
11257 rm -f core conftest.err conftest.$ac_objext \
11258 conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_soname_save_LIBS
11261 if test "x$ac_cv_lib_soname_curses" = "x"; then :
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11263 $as_echo "not found" >&6; }
11265 else
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
11267 $as_echo "$ac_cv_lib_soname_curses" >&6; }
11269 cat >>confdefs.h <<_ACEOF
11270 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11271 _ACEOF
11273 CURSESLIBS="-lcurses"
11276 ac_save_LIBS="$LIBS"
11277 LIBS="$LIBS $CURSESLIBS"
11278 for ac_func in mousemask
11279 do :
11280 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
11281 if test "x$ac_cv_func_mousemask" = xyes; then :
11282 cat >>confdefs.h <<_ACEOF
11283 #define HAVE_MOUSEMASK 1
11284 _ACEOF
11287 done
11289 LIBS="$ac_save_LIBS"
11290 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
11291 case "x$with_curses" in
11292 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
11293 xno) ;;
11294 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
11295 This is an error since --with-curses was requested." "$LINENO" 5 ;;
11296 esac
11299 if test "x$with_sane" != "xno"
11300 then
11301 if test -n "$SANE_CFLAGS"; then :
11303 elif test -n "$PKG_CONFIG"; then :
11304 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
11306 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
11307 if test -n "$SANE_LIBS"; then :
11309 elif test -n "$PKG_CONFIG"; then :
11310 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
11312 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
11314 ac_save_CPPFLAGS=$CPPFLAGS
11315 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
11316 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
11317 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
11319 $as_echo_n "checking for -lsane... " >&6; }
11320 if ${ac_cv_lib_soname_sane+:} false; then :
11321 $as_echo_n "(cached) " >&6
11322 else
11323 ac_check_soname_save_LIBS=$LIBS
11324 LIBS="-lsane $SANE_LIBS $LIBS"
11325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11326 /* end confdefs.h. */
11328 /* Override any GCC internal prototype to avoid an error.
11329 Use char because int might match the return type of a GCC
11330 builtin and then its argument prototype would still apply. */
11331 #ifdef __cplusplus
11332 extern "C"
11333 #endif
11334 char sane_init ();
11336 main ()
11338 return sane_init ();
11340 return 0;
11342 _ACEOF
11343 if ac_fn_c_try_link "$LINENO"; then :
11344 case "$LIBEXT" in
11345 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11346 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'` ;;
11347 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11348 if test "x$ac_cv_lib_soname_sane" = x; then :
11349 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11350 fi ;;
11351 esac
11353 rm -f core conftest.err conftest.$ac_objext \
11354 conftest$ac_exeext conftest.$ac_ext
11355 LIBS=$ac_check_soname_save_LIBS
11357 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11359 $as_echo "not found" >&6; }
11360 SANE_CFLAGS=""
11361 else
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11363 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11365 cat >>confdefs.h <<_ACEOF
11366 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11367 _ACEOF
11371 else
11372 SANE_CFLAGS=""
11376 CPPFLAGS=$ac_save_CPPFLAGS
11377 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11378 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11381 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11382 case "x$with_sane" in
11383 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11384 xno) ;;
11385 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11386 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11387 esac
11390 if test "x$with_v4l" != "xno"
11391 then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11393 $as_echo_n "checking for -lv4l1... " >&6; }
11394 if ${ac_cv_lib_soname_v4l1+:} false; then :
11395 $as_echo_n "(cached) " >&6
11396 else
11397 ac_check_soname_save_LIBS=$LIBS
11398 LIBS="-lv4l1 $LIBS"
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11402 /* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11405 #ifdef __cplusplus
11406 extern "C"
11407 #endif
11408 char v4l1_open ();
11410 main ()
11412 return v4l1_open ();
11414 return 0;
11416 _ACEOF
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 case "$LIBEXT" in
11419 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11420 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'` ;;
11421 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11422 if test "x$ac_cv_lib_soname_v4l1" = x; then :
11423 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11424 fi ;;
11425 esac
11427 rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_soname_save_LIBS
11431 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11433 $as_echo "not found" >&6; }
11435 else
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11437 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11439 cat >>confdefs.h <<_ACEOF
11440 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11441 _ACEOF
11446 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11447 case "x$with_v4l" in
11448 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11449 xno) ;;
11450 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11451 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11452 esac
11455 if test "x$with_gphoto" != "xno"
11456 then
11457 if test -n "$GPHOTO2_CFLAGS"; then :
11459 elif test -n "$PKG_CONFIG"; then :
11460 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11462 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11463 if test -n "$GPHOTO2_LIBS"; then :
11465 elif test -n "$PKG_CONFIG"; then :
11466 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11468 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11469 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11470 ac_save_CPPFLAGS=$CPPFLAGS
11471 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11472 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11473 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11475 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11476 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11477 $as_echo_n "(cached) " >&6
11478 else
11479 ac_check_lib_save_LIBS=$LIBS
11480 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11484 /* Override any GCC internal prototype to avoid an error.
11485 Use char because int might match the return type of a GCC
11486 builtin and then its argument prototype would still apply. */
11487 #ifdef __cplusplus
11488 extern "C"
11489 #endif
11490 char gp_camera_new ();
11492 main ()
11494 return gp_camera_new ();
11496 return 0;
11498 _ACEOF
11499 if ac_fn_c_try_link "$LINENO"; then :
11500 ac_cv_lib_gphoto2_gp_camera_new=yes
11501 else
11502 ac_cv_lib_gphoto2_gp_camera_new=no
11504 rm -f core conftest.err conftest.$ac_objext \
11505 conftest$ac_exeext conftest.$ac_ext
11506 LIBS=$ac_check_lib_save_LIBS
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11509 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11510 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11512 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11514 else
11515 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11518 else
11519 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11523 CPPFLAGS=$ac_save_CPPFLAGS
11524 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11525 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11527 if test -n "$GPHOTO2_PORT_CFLAGS"; then :
11529 elif test -n "$PKG_CONFIG"; then :
11530 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11532 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11533 if test -n "$GPHOTO2_PORT_LIBS"; then :
11535 elif test -n "$PKG_CONFIG"; then :
11536 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11538 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11539 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11540 ac_save_CPPFLAGS=$CPPFLAGS
11541 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11542 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11543 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11545 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11546 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11547 $as_echo_n "(cached) " >&6
11548 else
11549 ac_check_lib_save_LIBS=$LIBS
11550 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11552 /* end confdefs.h. */
11554 /* Override any GCC internal prototype to avoid an error.
11555 Use char because int might match the return type of a GCC
11556 builtin and then its argument prototype would still apply. */
11557 #ifdef __cplusplus
11558 extern "C"
11559 #endif
11560 char gp_port_info_list_new ();
11562 main ()
11564 return gp_port_info_list_new ();
11566 return 0;
11568 _ACEOF
11569 if ac_fn_c_try_link "$LINENO"; then :
11570 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11571 else
11572 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11574 rm -f core conftest.err conftest.$ac_objext \
11575 conftest$ac_exeext conftest.$ac_ext
11576 LIBS=$ac_check_lib_save_LIBS
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11579 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11580 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11582 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11584 else
11585 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11588 else
11589 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11593 CPPFLAGS=$ac_save_CPPFLAGS
11594 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11595 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11598 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11599 case "x$with_gphoto" in
11600 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11601 xno) ;;
11602 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11603 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11604 esac
11606 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11607 case "x$with_gphoto" in
11608 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11609 xno) ;;
11610 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11611 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11612 esac
11616 if test "$ac_cv_header_resolv_h" = "yes"
11617 then
11618 ac_save_LIBS="$LIBS"
11619 for lib in '' -lresolv
11621 LIBS="$lib $ac_save_LIBS"
11622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11623 /* end confdefs.h. */
11624 #ifdef HAVE_NETINET_IN_H
11625 #include <netinet/in.h>
11626 #endif
11627 #include <resolv.h>
11629 main ()
11631 res_query("foo",ns_c_in,0,0,0);
11633 return 0;
11635 _ACEOF
11636 if ac_fn_c_try_link "$LINENO"; then :
11638 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11640 RESOLVLIBS="$lib"
11643 rm -f core conftest.err conftest.$ac_objext \
11644 conftest$ac_exeext conftest.$ac_ext
11645 if test "${RESOLVLIBS+set}" = set; then
11646 break
11648 done
11649 LIBS="$ac_save_LIBS"
11652 if test "x$with_lcms2" != "xno"
11653 then
11654 if test -n "$LCMS2_CFLAGS"; then :
11656 elif test -n "$PKG_CONFIG"; then :
11657 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
11660 if test -n "$LCMS2_LIBS"; then :
11662 elif test -n "$PKG_CONFIG"; then :
11663 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
11666 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
11667 ac_save_CPPFLAGS=$CPPFLAGS
11668 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
11669 for ac_header in lcms2.h
11670 do :
11671 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
11672 if test "x$ac_cv_header_lcms2_h" = xyes; then :
11673 cat >>confdefs.h <<_ACEOF
11674 #define HAVE_LCMS2_H 1
11675 _ACEOF
11679 done
11681 if test "$ac_cv_header_lcms2_h" = "yes"
11682 then
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
11684 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
11685 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 ac_check_lib_save_LIBS=$LIBS
11689 LIBS="-llcms2 $LIBS"
11690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691 /* end confdefs.h. */
11693 /* Override any GCC internal prototype to avoid an error.
11694 Use char because int might match the return type of a GCC
11695 builtin and then its argument prototype would still apply. */
11696 #ifdef __cplusplus
11697 extern "C"
11698 #endif
11699 char cmsOpenProfileFromFile ();
11701 main ()
11703 return cmsOpenProfileFromFile ();
11705 return 0;
11707 _ACEOF
11708 if ac_fn_c_try_link "$LINENO"; then :
11709 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
11710 else
11711 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
11713 rm -f core conftest.err conftest.$ac_objext \
11714 conftest$ac_exeext conftest.$ac_ext
11715 LIBS=$ac_check_lib_save_LIBS
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
11718 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
11719 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
11721 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
11723 else
11724 LCMS2_LIBS=""
11727 else
11728 LCMS2_CFLAGS=""
11729 LCMS2_LIBS=""
11731 CPPFLAGS=$ac_save_CPPFLAGS
11732 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11733 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11736 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
11737 case "x$with_cms" in
11738 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
11739 xno) ;;
11740 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
11741 This is an error since --with-cms was requested." "$LINENO" 5 ;;
11742 esac
11745 if test "x$with_freetype" != "xno"
11746 then
11747 if test -n "$FREETYPE_CFLAGS"; then :
11749 elif test -n "$PKG_CONFIG"; then :
11750 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
11752 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
11753 if test -n "$FREETYPE_LIBS"; then :
11755 elif test -n "$PKG_CONFIG"; then :
11756 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
11758 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
11759 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
11760 ac_save_CPPFLAGS=$CPPFLAGS
11761 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
11762 for ac_header in ft2build.h
11763 do :
11764 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
11765 if test "x$ac_cv_header_ft2build_h" = xyes; then :
11766 cat >>confdefs.h <<_ACEOF
11767 #define HAVE_FT2BUILD_H 1
11768 _ACEOF
11772 done
11774 if test "$ac_cv_header_ft2build_h" = "yes"
11775 then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
11777 $as_echo_n "checking for -lfreetype... " >&6; }
11778 if ${ac_cv_lib_soname_freetype+:} false; then :
11779 $as_echo_n "(cached) " >&6
11780 else
11781 ac_check_soname_save_LIBS=$LIBS
11782 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11786 /* Override any GCC internal prototype to avoid an error.
11787 Use char because int might match the return type of a GCC
11788 builtin and then its argument prototype would still apply. */
11789 #ifdef __cplusplus
11790 extern "C"
11791 #endif
11792 char FT_Init_FreeType ();
11794 main ()
11796 return FT_Init_FreeType ();
11798 return 0;
11800 _ACEOF
11801 if ac_fn_c_try_link "$LINENO"; then :
11802 case "$LIBEXT" in
11803 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11804 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'` ;;
11805 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11806 if test "x$ac_cv_lib_soname_freetype" = x; then :
11807 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11808 fi ;;
11809 esac
11811 rm -f core conftest.err conftest.$ac_objext \
11812 conftest$ac_exeext conftest.$ac_ext
11813 LIBS=$ac_check_soname_save_LIBS
11815 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11817 $as_echo "not found" >&6; }
11818 FREETYPE_LIBS=""
11819 else
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
11821 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
11823 cat >>confdefs.h <<_ACEOF
11824 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11825 _ACEOF
11828 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11830 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <ft2build.h>
11831 #include FT_MODULE_H
11833 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
11835 cat >>confdefs.h <<_ACEOF
11836 #define HAVE_FT_TRUETYPEENGINETYPE 1
11837 _ACEOF
11843 else
11844 FREETYPE_CFLAGS=""
11845 FREETYPE_LIBS=""
11847 CPPFLAGS=$ac_save_CPPFLAGS
11848 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11849 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11852 if test "x$ac_cv_lib_soname_freetype" = x; then :
11853 case "x$with_freetype" in
11854 xno) ;;
11855 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
11856 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
11857 esac
11859 test "x$ac_cv_lib_soname_freetype" = x && enable_fonts=${enable_fonts:-no}
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
11862 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
11863 if ${ac_cv_c_ppdev+:} false; then :
11864 $as_echo_n "(cached) " >&6
11865 else
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868 #ifdef HAVE_SYS_IOCTL_H
11869 # include <sys/ioctl.h>
11870 #endif
11871 #include <linux/ppdev.h>
11873 main ()
11875 ioctl (1,PPCLAIM,0)
11877 return 0;
11879 _ACEOF
11880 if ac_fn_c_try_compile "$LINENO"; then :
11881 ac_cv_c_ppdev="yes"
11882 else
11883 ac_cv_c_ppdev="no"
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11888 $as_echo "$ac_cv_c_ppdev" >&6; }
11889 if test "$ac_cv_c_ppdev" = "yes"
11890 then
11892 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11896 ac_wine_check_funcs_save_LIBS="$LIBS"
11897 LIBS="$LIBS $LIBPTHREAD"
11898 for ac_func in \
11899 pthread_attr_get_np \
11900 pthread_getattr_np \
11901 pthread_getthreadid_np \
11902 pthread_get_stackaddr_np \
11903 pthread_get_stacksize_np
11904 do :
11905 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11906 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11907 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11908 cat >>confdefs.h <<_ACEOF
11909 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11910 _ACEOF
11913 done
11915 LIBS="$ac_wine_check_funcs_save_LIBS"
11917 if test "$ac_cv_header_zlib_h" = "yes"
11918 then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11920 $as_echo_n "checking for inflate in -lz... " >&6; }
11921 if ${ac_cv_lib_z_inflate+:} false; then :
11922 $as_echo_n "(cached) " >&6
11923 else
11924 ac_check_lib_save_LIBS=$LIBS
11925 LIBS="-lz $LIBS"
11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h. */
11929 /* Override any GCC internal prototype to avoid an error.
11930 Use char because int might match the return type of a GCC
11931 builtin and then its argument prototype would still apply. */
11932 #ifdef __cplusplus
11933 extern "C"
11934 #endif
11935 char inflate ();
11937 main ()
11939 return inflate ();
11941 return 0;
11943 _ACEOF
11944 if ac_fn_c_try_link "$LINENO"; then :
11945 ac_cv_lib_z_inflate=yes
11946 else
11947 ac_cv_lib_z_inflate=no
11949 rm -f core conftest.err conftest.$ac_objext \
11950 conftest$ac_exeext conftest.$ac_ext
11951 LIBS=$ac_check_lib_save_LIBS
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11954 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11955 if test "x$ac_cv_lib_z_inflate" = xyes; then :
11957 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11959 ZLIB="-lz"
11964 if test "x$ZLIB" = "x"; then :
11965 case "x$with_zlib" in
11966 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
11967 xno) ;;
11968 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
11969 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
11970 esac
11973 if test "x$enable_tools" != xno
11974 then
11975 if test "$ac_cv_header_gettext_po_h" = "yes"
11976 then
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
11978 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
11979 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 ac_check_lib_save_LIBS=$LIBS
11983 LIBS="-lgettextpo $LIBS"
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11987 /* Override any GCC internal prototype to avoid an error.
11988 Use char because int might match the return type of a GCC
11989 builtin and then its argument prototype would still apply. */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 char po_message_msgctxt ();
11995 main ()
11997 return po_message_msgctxt ();
11999 return 0;
12001 _ACEOF
12002 if ac_fn_c_try_link "$LINENO"; then :
12003 ac_cv_lib_gettextpo_po_message_msgctxt=yes
12004 else
12005 ac_cv_lib_gettextpo_po_message_msgctxt=no
12007 rm -f core conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
12009 LIBS=$ac_check_lib_save_LIBS
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
12012 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
12013 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
12015 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
12017 LIBGETTEXTPO="-lgettextpo"
12022 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
12023 case "x$with_gettextpo" in
12024 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
12025 xno) ;;
12026 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
12027 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
12028 esac
12032 if test "x$with_gstreamer" != "xno"
12033 then
12034 if test -n "$GSTREAMER_CFLAGS"; then :
12036 elif test -n "$PKG_CONFIG"; then :
12037 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
12040 if test -n "$GSTREAMER_LIBS"; then :
12042 elif test -n "$PKG_CONFIG"; then :
12043 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
12047 ac_save_CPPFLAGS=$CPPFLAGS
12048 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
12049 ac_gst_incl=""
12050 for i in $GSTREAMER_CFLAGS
12052 case "$i" in
12053 -I*) ac_gst_incl="$ac_gst_incl $i";;
12054 esac
12055 done
12056 GSTREAMER_CFLAGS=$ac_gst_incl
12057 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
12058 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
12059 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
12060 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
12061 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
12063 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
12064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12065 /* end confdefs.h. */
12066 #include <gst/app/gstappsink.h>
12068 main ()
12070 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
12072 return 0;
12074 _ACEOF
12075 if ac_fn_c_try_compile "$LINENO"; then :
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12077 $as_echo "yes" >&6; }
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
12079 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
12080 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
12081 $as_echo_n "(cached) " >&6
12082 else
12083 ac_check_lib_save_LIBS=$LIBS
12084 LIBS="-lgstreamer-0.10 $LIBS"
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086 /* end confdefs.h. */
12088 /* Override any GCC internal prototype to avoid an error.
12089 Use char because int might match the return type of a GCC
12090 builtin and then its argument prototype would still apply. */
12091 #ifdef __cplusplus
12092 extern "C"
12093 #endif
12094 char gst_pad_get_caps_reffed ();
12096 main ()
12098 return gst_pad_get_caps_reffed ();
12100 return 0;
12102 _ACEOF
12103 if ac_fn_c_try_link "$LINENO"; then :
12104 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
12105 else
12106 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
12108 rm -f core conftest.err conftest.$ac_objext \
12109 conftest$ac_exeext conftest.$ac_ext
12110 LIBS=$ac_check_lib_save_LIBS
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
12113 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
12114 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
12116 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
12117 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12125 /* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12128 #ifdef __cplusplus
12129 extern "C"
12130 #endif
12131 char gst_app_buffer_new ();
12133 main ()
12135 return gst_app_buffer_new ();
12137 return 0;
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
12142 else
12143 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
12150 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
12151 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
12157 else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165 else
12166 GSTREAMER_CFLAGS=""
12170 CPPFLAGS=$ac_save_CPPFLAGS
12171 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12172 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12175 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
12176 case "x$with_gstreamer" in
12177 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
12178 xno) ;;
12179 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
12180 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
12181 esac
12183 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
12185 ALSALIBS=""
12187 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12188 then
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
12190 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
12191 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 ac_check_lib_save_LIBS=$LIBS
12195 LIBS="-lasound $LIBS"
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 char snd_pcm_hw_params_get_access_mask ();
12207 main ()
12209 return snd_pcm_hw_params_get_access_mask ();
12211 return 0;
12213 _ACEOF
12214 if ac_fn_c_try_link "$LINENO"; then :
12215 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
12216 else
12217 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
12219 rm -f core conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
12224 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
12225 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12228 #ifdef HAVE_ALSA_ASOUNDLIB_H
12229 #include <alsa/asoundlib.h>
12230 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12231 #include <sys/asoundlib.h>
12232 #endif
12234 main ()
12236 snd_pcm_hw_params_get_access_mask(NULL, NULL)
12238 return 0;
12240 _ACEOF
12241 if ac_fn_c_try_compile "$LINENO"; then :
12242 ALSALIBS="-lasound"
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12249 if test "x$with_oss" != xno
12250 then
12251 ac_save_CPPFLAGS="$CPPFLAGS"
12252 if test -f /etc/oss.conf
12253 then
12254 . /etc/oss.conf
12256 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
12257 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
12258 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12259 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12260 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
12262 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
12264 cat >>confdefs.h <<_ACEOF
12265 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
12266 _ACEOF
12268 OSS4INCL="$ac_oss_incl"
12275 CPPFLAGS="$ac_save_CPPFLAGS"
12276 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
12277 then
12278 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
12282 if test "x$with_capi" != "xno"
12283 then
12284 if test -n "$CAPI20_CFLAGS"; then :
12286 elif test -n "$PKG_CONFIG"; then :
12287 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
12290 if test -n "$CAPI20_LIBS"; then :
12292 elif test -n "$PKG_CONFIG"; then :
12293 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
12297 ac_save_CPPFLAGS=$CPPFLAGS
12298 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
12299 for ac_header in capi20.h linux/capi.h
12300 do :
12301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12302 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
12304 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12305 cat >>confdefs.h <<_ACEOF
12306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12307 _ACEOF
12311 done
12313 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12314 then
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12316 $as_echo_n "checking for -lcapi20... " >&6; }
12317 if ${ac_cv_lib_soname_capi20+:} false; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 ac_check_soname_save_LIBS=$LIBS
12321 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12325 /* Override any GCC internal prototype to avoid an error.
12326 Use char because int might match the return type of a GCC
12327 builtin and then its argument prototype would still apply. */
12328 #ifdef __cplusplus
12329 extern "C"
12330 #endif
12331 char capi20_register ();
12333 main ()
12335 return capi20_register ();
12337 return 0;
12339 _ACEOF
12340 if ac_fn_c_try_link "$LINENO"; then :
12341 case "$LIBEXT" in
12342 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12343 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'` ;;
12344 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12345 if test "x$ac_cv_lib_soname_capi20" = x; then :
12346 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12347 fi ;;
12348 esac
12350 rm -f core conftest.err conftest.$ac_objext \
12351 conftest$ac_exeext conftest.$ac_ext
12352 LIBS=$ac_check_soname_save_LIBS
12354 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12356 $as_echo "not found" >&6; }
12358 else
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12360 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12362 cat >>confdefs.h <<_ACEOF
12363 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12364 _ACEOF
12369 CPPFLAGS=$ac_save_CPPFLAGS
12370 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12371 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12374 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12375 case "x$with_capi" in
12376 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12377 xno) ;;
12378 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12379 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12380 esac
12383 CUPSINCL=""
12385 if test "x$with_cups" != "xno"
12386 then
12387 ac_save_CPPFLAGS="$CPPFLAGS"
12388 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12389 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12390 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12391 for ac_header in cups/cups.h
12392 do :
12393 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12394 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12395 cat >>confdefs.h <<_ACEOF
12396 #define HAVE_CUPS_CUPS_H 1
12397 _ACEOF
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12399 $as_echo_n "checking for -lcups... " >&6; }
12400 if ${ac_cv_lib_soname_cups+:} false; then :
12401 $as_echo_n "(cached) " >&6
12402 else
12403 ac_check_soname_save_LIBS=$LIBS
12404 LIBS="-lcups $ac_cups_libs $LIBS"
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12408 /* Override any GCC internal prototype to avoid an error.
12409 Use char because int might match the return type of a GCC
12410 builtin and then its argument prototype would still apply. */
12411 #ifdef __cplusplus
12412 extern "C"
12413 #endif
12414 char cupsGetDefault ();
12416 main ()
12418 return cupsGetDefault ();
12420 return 0;
12422 _ACEOF
12423 if ac_fn_c_try_link "$LINENO"; then :
12424 case "$LIBEXT" in
12425 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12426 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'` ;;
12427 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12428 if test "x$ac_cv_lib_soname_cups" = x; then :
12429 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12430 fi ;;
12431 esac
12433 rm -f core conftest.err conftest.$ac_objext \
12434 conftest$ac_exeext conftest.$ac_ext
12435 LIBS=$ac_check_soname_save_LIBS
12437 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12439 $as_echo "not found" >&6; }
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12443 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12445 cat >>confdefs.h <<_ACEOF
12446 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12447 _ACEOF
12449 CUPSINCL="$ac_cups_cflags"
12453 done
12455 CPPFLAGS="$ac_save_CPPFLAGS"
12457 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12458 case "x$with_cups" in
12459 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12460 xno) ;;
12461 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12462 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12463 esac
12466 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12467 then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12469 $as_echo_n "checking for -lfontconfig... " >&6; }
12470 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12471 $as_echo_n "(cached) " >&6
12472 else
12473 ac_check_soname_save_LIBS=$LIBS
12474 LIBS="-lfontconfig $LIBS"
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12478 /* Override any GCC internal prototype to avoid an error.
12479 Use char because int might match the return type of a GCC
12480 builtin and then its argument prototype would still apply. */
12481 #ifdef __cplusplus
12482 extern "C"
12483 #endif
12484 char FcInit ();
12486 main ()
12488 return FcInit ();
12490 return 0;
12492 _ACEOF
12493 if ac_fn_c_try_link "$LINENO"; then :
12494 case "$LIBEXT" in
12495 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12496 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'` ;;
12497 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12498 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12499 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12500 fi ;;
12501 esac
12503 rm -f core conftest.err conftest.$ac_objext \
12504 conftest$ac_exeext conftest.$ac_ext
12505 LIBS=$ac_check_soname_save_LIBS
12507 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12509 $as_echo "not found" >&6; }
12511 else
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12513 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12515 cat >>confdefs.h <<_ACEOF
12516 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12517 _ACEOF
12521 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
12522 then
12523 ac_save_CPPFLAGS="$CPPFLAGS"
12524 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12525 $as_unset ac_cv_header_fontconfig_fontconfig_h
12526 for ac_header in fontconfig/fontconfig.h
12527 do :
12528 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12529 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12530 cat >>confdefs.h <<_ACEOF
12531 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12532 _ACEOF
12536 done
12538 CPPFLAGS="$ac_save_CPPFLAGS"
12539 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12540 then
12541 FONTCONFIGINCL="$X_CFLAGS"
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12544 $as_echo_n "checking for -lfontconfig... " >&6; }
12545 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 ac_check_soname_save_LIBS=$LIBS
12549 LIBS="-lfontconfig $X_LIBS $LIBS"
12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12553 /* Override any GCC internal prototype to avoid an error.
12554 Use char because int might match the return type of a GCC
12555 builtin and then its argument prototype would still apply. */
12556 #ifdef __cplusplus
12557 extern "C"
12558 #endif
12559 char FcInit ();
12561 main ()
12563 return FcInit ();
12565 return 0;
12567 _ACEOF
12568 if ac_fn_c_try_link "$LINENO"; then :
12569 case "$LIBEXT" in
12570 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12571 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'` ;;
12572 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12573 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12574 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12575 fi ;;
12576 esac
12578 rm -f core conftest.err conftest.$ac_objext \
12579 conftest$ac_exeext conftest.$ac_ext
12580 LIBS=$ac_check_soname_save_LIBS
12582 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12584 $as_echo "not found" >&6; }
12586 else
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12588 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12590 cat >>confdefs.h <<_ACEOF
12591 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12592 _ACEOF
12598 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12599 case "x$with_fontconfig" in
12600 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12601 xno) ;;
12602 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12603 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12604 esac
12607 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12608 then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12610 $as_echo_n "checking for -lgsm... " >&6; }
12611 if ${ac_cv_lib_soname_gsm+:} false; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 ac_check_soname_save_LIBS=$LIBS
12615 LIBS="-lgsm $LIBS"
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h. */
12619 /* Override any GCC internal prototype to avoid an error.
12620 Use char because int might match the return type of a GCC
12621 builtin and then its argument prototype would still apply. */
12622 #ifdef __cplusplus
12623 extern "C"
12624 #endif
12625 char gsm_create ();
12627 main ()
12629 return gsm_create ();
12631 return 0;
12633 _ACEOF
12634 if ac_fn_c_try_link "$LINENO"; then :
12635 case "$LIBEXT" in
12636 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12637 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'` ;;
12638 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12639 if test "x$ac_cv_lib_soname_gsm" = x; then :
12640 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12641 fi ;;
12642 esac
12644 rm -f core conftest.err conftest.$ac_objext \
12645 conftest$ac_exeext conftest.$ac_ext
12646 LIBS=$ac_check_soname_save_LIBS
12648 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12650 $as_echo "not found" >&6; }
12652 else
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12654 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12656 cat >>confdefs.h <<_ACEOF
12657 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12658 _ACEOF
12663 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12664 case "x$with_gsm" in
12665 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12666 xno) ;;
12667 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12668 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12669 esac
12672 if test "x$with_jpeg" != "xno"
12673 then
12674 if test -n "$JPEG_CFLAGS"; then :
12676 elif test -n "$PKG_CONFIG"; then :
12677 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
12680 if test -n "$JPEG_LIBS"; then :
12682 elif test -n "$PKG_CONFIG"; then :
12683 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
12687 ac_save_CPPFLAGS=$CPPFLAGS
12688 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
12689 for ac_header in jpeglib.h
12690 do :
12691 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12692 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12693 cat >>confdefs.h <<_ACEOF
12694 #define HAVE_JPEGLIB_H 1
12695 _ACEOF
12699 done
12701 if test "$ac_cv_header_jpeglib_h" = "yes"
12702 then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
12704 $as_echo_n "checking for -ljpeg... " >&6; }
12705 if ${ac_cv_lib_soname_jpeg+:} false; then :
12706 $as_echo_n "(cached) " >&6
12707 else
12708 ac_check_soname_save_LIBS=$LIBS
12709 LIBS="-ljpeg $JPEG_LIBS $LIBS"
12710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12711 /* end confdefs.h. */
12713 /* Override any GCC internal prototype to avoid an error.
12714 Use char because int might match the return type of a GCC
12715 builtin and then its argument prototype would still apply. */
12716 #ifdef __cplusplus
12717 extern "C"
12718 #endif
12719 char jpeg_start_decompress ();
12721 main ()
12723 return jpeg_start_decompress ();
12725 return 0;
12727 _ACEOF
12728 if ac_fn_c_try_link "$LINENO"; then :
12729 case "$LIBEXT" in
12730 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12731 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'` ;;
12732 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12733 if test "x$ac_cv_lib_soname_jpeg" = x; then :
12734 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12735 fi ;;
12736 esac
12738 rm -f core conftest.err conftest.$ac_objext \
12739 conftest$ac_exeext conftest.$ac_ext
12740 LIBS=$ac_check_soname_save_LIBS
12742 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12744 $as_echo "not found" >&6; }
12745 JPEG_CFLAGS=""
12746 else
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
12748 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
12750 cat >>confdefs.h <<_ACEOF
12751 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
12752 _ACEOF
12756 else
12757 JPEG_CFLAGS=""
12759 CPPFLAGS=$ac_save_CPPFLAGS
12760 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12761 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12764 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12765 case "x$with_jpeg" in
12766 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
12767 xno) ;;
12768 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
12769 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
12770 esac
12773 if test "x$with_png" != "xno"
12774 then
12775 if test -n "$PNG_CFLAGS"; then :
12777 elif test -n "$PKG_CONFIG"; then :
12778 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
12780 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
12781 if test -n "$PNG_LIBS"; then :
12783 elif test -n "$PKG_CONFIG"; then :
12784 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
12786 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
12788 ac_save_CPPFLAGS=$CPPFLAGS
12789 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
12790 for ac_header in png.h
12791 do :
12792 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12793 if test "x$ac_cv_header_png_h" = xyes; then :
12794 cat >>confdefs.h <<_ACEOF
12795 #define HAVE_PNG_H 1
12796 _ACEOF
12800 done
12802 if test "$ac_cv_header_png_h" = "yes"
12803 then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
12805 $as_echo_n "checking for -lpng... " >&6; }
12806 if ${ac_cv_lib_soname_png+:} false; then :
12807 $as_echo_n "(cached) " >&6
12808 else
12809 ac_check_soname_save_LIBS=$LIBS
12810 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12814 /* Override any GCC internal prototype to avoid an error.
12815 Use char because int might match the return type of a GCC
12816 builtin and then its argument prototype would still apply. */
12817 #ifdef __cplusplus
12818 extern "C"
12819 #endif
12820 char png_create_read_struct ();
12822 main ()
12824 return png_create_read_struct ();
12826 return 0;
12828 _ACEOF
12829 if ac_fn_c_try_link "$LINENO"; then :
12830 case "$LIBEXT" in
12831 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12832 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'` ;;
12833 *) 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'`
12834 if test "x$ac_cv_lib_soname_png" = x; then :
12835 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12836 fi ;;
12837 esac
12839 rm -f core conftest.err conftest.$ac_objext \
12840 conftest$ac_exeext conftest.$ac_ext
12841 LIBS=$ac_check_soname_save_LIBS
12843 if test "x$ac_cv_lib_soname_png" = "x"; then :
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12845 $as_echo "not found" >&6; }
12846 PNG_CFLAGS=""
12847 else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
12849 $as_echo "$ac_cv_lib_soname_png" >&6; }
12851 cat >>confdefs.h <<_ACEOF
12852 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
12853 _ACEOF
12855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h. */
12857 #include <png.h>
12859 main ()
12861 typeof(png_set_expand_gray_1_2_4_to_8) *p
12863 return 0;
12865 _ACEOF
12866 if ac_fn_c_try_compile "$LINENO"; then :
12868 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 else
12874 PNG_CFLAGS=""
12876 CPPFLAGS=$ac_save_CPPFLAGS
12877 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12878 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12881 if test "x$ac_cv_lib_soname_png" = "x"; then :
12882 case "x$with_png" in
12883 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12884 xno) ;;
12885 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12886 This is an error since --with-png was requested." "$LINENO" 5 ;;
12887 esac
12890 if test "x$with_tiff" != "xno"
12891 then
12892 if test -n "$TIFF_CFLAGS"; then :
12894 elif test -n "$PKG_CONFIG"; then :
12895 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
12898 if test -n "$TIFF_LIBS"; then :
12900 elif test -n "$PKG_CONFIG"; then :
12901 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
12905 ac_save_CPPFLAGS=$CPPFLAGS
12906 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
12907 for ac_header in tiffio.h
12908 do :
12909 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12910 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12911 cat >>confdefs.h <<_ACEOF
12912 #define HAVE_TIFFIO_H 1
12913 _ACEOF
12917 done
12919 if test "$ac_cv_header_tiffio_h" = "yes"
12920 then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12922 $as_echo_n "checking for -ltiff... " >&6; }
12923 if ${ac_cv_lib_soname_tiff+:} false; then :
12924 $as_echo_n "(cached) " >&6
12925 else
12926 ac_check_soname_save_LIBS=$LIBS
12927 LIBS="-ltiff $TIFF_LIBS $LIBS"
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12931 /* Override any GCC internal prototype to avoid an error.
12932 Use char because int might match the return type of a GCC
12933 builtin and then its argument prototype would still apply. */
12934 #ifdef __cplusplus
12935 extern "C"
12936 #endif
12937 char TIFFClientOpen ();
12939 main ()
12941 return TIFFClientOpen ();
12943 return 0;
12945 _ACEOF
12946 if ac_fn_c_try_link "$LINENO"; then :
12947 case "$LIBEXT" in
12948 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12949 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'` ;;
12950 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12951 if test "x$ac_cv_lib_soname_tiff" = x; then :
12952 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12953 fi ;;
12954 esac
12956 rm -f core conftest.err conftest.$ac_objext \
12957 conftest$ac_exeext conftest.$ac_ext
12958 LIBS=$ac_check_soname_save_LIBS
12960 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12962 $as_echo "not found" >&6; }
12964 else
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
12966 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
12968 cat >>confdefs.h <<_ACEOF
12969 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
12970 _ACEOF
12975 CPPFLAGS=$ac_save_CPPFLAGS
12976 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12977 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12980 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12981 case "x$with_tiff" in
12982 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
12983 xno) ;;
12984 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
12985 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
12986 esac
12989 if test "x$with_mpg123" != "xno"
12990 then
12991 if test -n "$MPG123_CFLAGS"; then :
12993 elif test -n "$PKG_CONFIG"; then :
12994 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
12997 if test -n "$MPG123_LIBS"; then :
12999 elif test -n "$PKG_CONFIG"; then :
13000 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
13003 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
13004 ac_save_CPPFLAGS=$CPPFLAGS
13005 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
13006 for ac_header in mpg123.h
13007 do :
13008 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
13009 if test "x$ac_cv_header_mpg123_h" = xyes; then :
13010 cat >>confdefs.h <<_ACEOF
13011 #define HAVE_MPG123_H 1
13012 _ACEOF
13016 done
13018 if test "$ac_cv_header_mpg123_h" = "yes"
13019 then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
13021 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
13022 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
13023 $as_echo_n "(cached) " >&6
13024 else
13025 ac_check_lib_save_LIBS=$LIBS
13026 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13030 /* Override any GCC internal prototype to avoid an error.
13031 Use char because int might match the return type of a GCC
13032 builtin and then its argument prototype would still apply. */
13033 #ifdef __cplusplus
13034 extern "C"
13035 #endif
13036 char mpg123_feed ();
13038 main ()
13040 return mpg123_feed ();
13042 return 0;
13044 _ACEOF
13045 if ac_fn_c_try_link "$LINENO"; then :
13046 ac_cv_lib_mpg123_mpg123_feed=yes
13047 else
13048 ac_cv_lib_mpg123_mpg123_feed=no
13050 rm -f core conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext conftest.$ac_ext
13052 LIBS=$ac_check_lib_save_LIBS
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
13055 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
13056 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
13058 else
13059 MPG123_LIBS=""
13062 else
13063 MPG123_CFLAGS=""
13064 MPG123_LIBS=""
13066 CPPFLAGS=$ac_save_CPPFLAGS
13067 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13068 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13071 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
13072 case "x$with_mpg123" in
13073 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
13074 xno) ;;
13075 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
13076 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
13077 esac
13079 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}
13081 if test "$ac_cv_header_AL_al_h" = "yes"
13082 then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
13084 $as_echo_n "checking for -lopenal... " >&6; }
13085 if ${ac_cv_lib_soname_openal+:} false; then :
13086 $as_echo_n "(cached) " >&6
13087 else
13088 ac_check_soname_save_LIBS=$LIBS
13089 LIBS="-lopenal $LIBS"
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13093 /* Override any GCC internal prototype to avoid an error.
13094 Use char because int might match the return type of a GCC
13095 builtin and then its argument prototype would still apply. */
13096 #ifdef __cplusplus
13097 extern "C"
13098 #endif
13099 char alGetSource3i ();
13101 main ()
13103 return alGetSource3i ();
13105 return 0;
13107 _ACEOF
13108 if ac_fn_c_try_link "$LINENO"; then :
13109 case "$LIBEXT" in
13110 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13111 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'` ;;
13112 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13113 if test "x$ac_cv_lib_soname_openal" = x; then :
13114 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13115 fi ;;
13116 esac
13118 rm -f core conftest.err conftest.$ac_objext \
13119 conftest$ac_exeext conftest.$ac_ext
13120 LIBS=$ac_check_soname_save_LIBS
13122 if test "x$ac_cv_lib_soname_openal" = "x"; then :
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13124 $as_echo "not found" >&6; }
13126 else
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
13128 $as_echo "$ac_cv_lib_soname_openal" >&6; }
13130 cat >>confdefs.h <<_ACEOF
13131 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
13132 _ACEOF
13134 LIBOPENAL="-lopenal"
13136 ac_cv_lib_openal=yes
13138 cat >>confdefs.h <<_ACEOF
13139 #define HAVE_OPENAL 1
13140 _ACEOF
13144 if test "x$ac_cv_lib_openal" != xyes; then :
13145 case "x$with_openal" in
13146 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
13147 xno) ;;
13148 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
13149 This is an error since --with-openal was requested." "$LINENO" 5 ;;
13150 esac
13152 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
13154 if test "$ac_cv_header_kstat_h" = "yes"
13155 then
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13157 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13158 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13161 ac_check_lib_save_LIBS=$LIBS
13162 LIBS="-lkstat $LIBS"
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13166 /* Override any GCC internal prototype to avoid an error.
13167 Use char because int might match the return type of a GCC
13168 builtin and then its argument prototype would still apply. */
13169 #ifdef __cplusplus
13170 extern "C"
13171 #endif
13172 char kstat_open ();
13174 main ()
13176 return kstat_open ();
13178 return 0;
13180 _ACEOF
13181 if ac_fn_c_try_link "$LINENO"; then :
13182 ac_cv_lib_kstat_kstat_open=yes
13183 else
13184 ac_cv_lib_kstat_kstat_open=no
13186 rm -f core conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
13188 LIBS=$ac_check_lib_save_LIBS
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13191 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13192 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13194 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
13196 LIBKSTAT="-lkstat"
13202 if test "$ac_cv_header_libprocstat_h" = "yes"
13203 then
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
13205 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
13206 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 ac_check_lib_save_LIBS=$LIBS
13210 LIBS="-lprocstat $LIBS"
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13214 /* Override any GCC internal prototype to avoid an error.
13215 Use char because int might match the return type of a GCC
13216 builtin and then its argument prototype would still apply. */
13217 #ifdef __cplusplus
13218 extern "C"
13219 #endif
13220 char procstat_open_sysctl ();
13222 main ()
13224 return procstat_open_sysctl ();
13226 return 0;
13228 _ACEOF
13229 if ac_fn_c_try_link "$LINENO"; then :
13230 ac_cv_lib_procstat_procstat_open_sysctl=yes
13231 else
13232 ac_cv_lib_procstat_procstat_open_sysctl=no
13234 rm -f core conftest.err conftest.$ac_objext \
13235 conftest$ac_exeext conftest.$ac_ext
13236 LIBS=$ac_check_lib_save_LIBS
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
13239 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
13240 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
13242 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
13244 LIBPROCSTAT="-lprocstat"
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
13251 $as_echo_n "checking for -lodbc... " >&6; }
13252 if ${ac_cv_lib_soname_odbc+:} false; then :
13253 $as_echo_n "(cached) " >&6
13254 else
13255 ac_check_soname_save_LIBS=$LIBS
13256 LIBS="-lodbc $LIBS"
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13260 /* Override any GCC internal prototype to avoid an error.
13261 Use char because int might match the return type of a GCC
13262 builtin and then its argument prototype would still apply. */
13263 #ifdef __cplusplus
13264 extern "C"
13265 #endif
13266 char SQLConnect ();
13268 main ()
13270 return SQLConnect ();
13272 return 0;
13274 _ACEOF
13275 if ac_fn_c_try_link "$LINENO"; then :
13276 case "$LIBEXT" in
13277 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13278 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'` ;;
13279 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13280 if test "x$ac_cv_lib_soname_odbc" = x; then :
13281 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13282 fi ;;
13283 esac
13285 rm -f core conftest.err conftest.$ac_objext \
13286 conftest$ac_exeext conftest.$ac_ext
13287 LIBS=$ac_check_soname_save_LIBS
13289 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13291 $as_echo "not found" >&6; }
13292 cat >>confdefs.h <<_ACEOF
13293 #define SONAME_LIBODBC "libodbc.$LIBEXT"
13294 _ACEOF
13296 else
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
13298 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
13300 cat >>confdefs.h <<_ACEOF
13301 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
13302 _ACEOF
13307 if test "x$with_netapi" != "xno"
13308 then
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13310 $as_echo_n "checking for -lnetapi... " >&6; }
13311 if ${ac_cv_lib_soname_netapi+:} false; then :
13312 $as_echo_n "(cached) " >&6
13313 else
13314 ac_check_soname_save_LIBS=$LIBS
13315 LIBS="-lnetapi $LIBS"
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13319 /* Override any GCC internal prototype to avoid an error.
13320 Use char because int might match the return type of a GCC
13321 builtin and then its argument prototype would still apply. */
13322 #ifdef __cplusplus
13323 extern "C"
13324 #endif
13325 char libnetapi_init ();
13327 main ()
13329 return libnetapi_init ();
13331 return 0;
13333 _ACEOF
13334 if ac_fn_c_try_link "$LINENO"; then :
13335 case "$LIBEXT" in
13336 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13337 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'` ;;
13338 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13339 if test "x$ac_cv_lib_soname_netapi" = x; then :
13340 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13341 fi ;;
13342 esac
13344 rm -f core conftest.err conftest.$ac_objext \
13345 conftest$ac_exeext conftest.$ac_ext
13346 LIBS=$ac_check_soname_save_LIBS
13348 if test "x$ac_cv_lib_soname_netapi" = "x"; then :
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13350 $as_echo "not found" >&6; }
13351 cat >>confdefs.h <<_ACEOF
13352 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13353 _ACEOF
13355 else
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13357 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13359 cat >>confdefs.h <<_ACEOF
13360 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13361 _ACEOF
13367 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13368 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13369 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13370 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13372 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
13373 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13374 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13375 then
13376 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13380 EXTRACFLAGS=""
13382 if test "x${GCC}" = "xyes"
13383 then
13384 EXTRACFLAGS="-Wall -pipe"
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13387 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13388 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13389 $as_echo_n "(cached) " >&6
13390 else
13391 if test "$cross_compiling" = yes; then :
13392 ac_cv_c_gcc_strength_bug="yes"
13393 else
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13396 int L[4] = {0,1,2,3};
13398 main ()
13400 static int Array[3];
13401 unsigned int B = 3;
13402 int i;
13403 for(i=0; i<B; i++) Array[i] = i - 3;
13404 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13405 L[i] = 4;
13406 return (Array[1] != -2 || L[2] != 3)
13408 return 0;
13410 _ACEOF
13411 if ac_fn_c_try_run "$LINENO"; then :
13412 ac_cv_c_gcc_strength_bug="no"
13413 else
13414 ac_cv_c_gcc_strength_bug="yes"
13416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13417 conftest.$ac_objext conftest.beam conftest.$ac_ext
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13422 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13423 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13424 then
13425 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13429 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13430 if ${ac_cv_cflags__fno_builtin+:} false; then :
13431 $as_echo_n "(cached) " >&6
13432 else
13433 ac_wine_try_cflags_saved=$CFLAGS
13434 CFLAGS="$CFLAGS -fno-builtin"
13435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13436 /* end confdefs.h. */
13437 int main(int argc, char **argv) { return 0; }
13438 _ACEOF
13439 if ac_fn_c_try_link "$LINENO"; then :
13440 ac_cv_cflags__fno_builtin=yes
13441 else
13442 ac_cv_cflags__fno_builtin=no
13444 rm -f core conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
13446 CFLAGS=$ac_wine_try_cflags_saved
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13449 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13450 if test $ac_cv_cflags__fno_builtin = yes; then :
13451 BUILTINFLAG="-fno-builtin"
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13455 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13456 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13457 $as_echo_n "(cached) " >&6
13458 else
13459 ac_wine_try_cflags_saved=$CFLAGS
13460 CFLAGS="$CFLAGS -fno-strict-aliasing"
13461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13462 /* end confdefs.h. */
13463 int main(int argc, char **argv) { return 0; }
13464 _ACEOF
13465 if ac_fn_c_try_link "$LINENO"; then :
13466 ac_cv_cflags__fno_strict_aliasing=yes
13467 else
13468 ac_cv_cflags__fno_strict_aliasing=no
13470 rm -f core conftest.err conftest.$ac_objext \
13471 conftest$ac_exeext conftest.$ac_ext
13472 CFLAGS=$ac_wine_try_cflags_saved
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13475 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13476 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
13477 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13479 saved_CFLAGS=$CFLAGS
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13481 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13482 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 ac_wine_try_cflags_saved=$CFLAGS
13486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
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__Werror_unknown_warning_option=yes
13493 else
13494 ac_cv_cflags__Werror_unknown_warning_option=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__Werror_unknown_warning_option" >&5
13501 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13502 if test $ac_cv_cflags__Werror_unknown_warning_option = yes; then :
13503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13506 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13507 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 ac_wine_try_cflags_saved=$CFLAGS
13511 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13514 int main(int argc, char **argv) { return 0; }
13515 _ACEOF
13516 if ac_fn_c_try_link "$LINENO"; then :
13517 ac_cv_cflags__Wdeclaration_after_statement=yes
13518 else
13519 ac_cv_cflags__Wdeclaration_after_statement=no
13521 rm -f core conftest.err conftest.$ac_objext \
13522 conftest$ac_exeext conftest.$ac_ext
13523 CFLAGS=$ac_wine_try_cflags_saved
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13526 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13527 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
13528 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13531 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13532 if ${ac_cv_cflags__Wempty_body+:} false; then :
13533 $as_echo_n "(cached) " >&6
13534 else
13535 ac_wine_try_cflags_saved=$CFLAGS
13536 CFLAGS="$CFLAGS -Wempty-body"
13537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h. */
13539 int main(int argc, char **argv) { return 0; }
13540 _ACEOF
13541 if ac_fn_c_try_link "$LINENO"; then :
13542 ac_cv_cflags__Wempty_body=yes
13543 else
13544 ac_cv_cflags__Wempty_body=no
13546 rm -f core conftest.err conftest.$ac_objext \
13547 conftest$ac_exeext conftest.$ac_ext
13548 CFLAGS=$ac_wine_try_cflags_saved
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13551 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13552 if test $ac_cv_cflags__Wempty_body = yes; then :
13553 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13556 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13557 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13558 $as_echo_n "(cached) " >&6
13559 else
13560 ac_wine_try_cflags_saved=$CFLAGS
13561 CFLAGS="$CFLAGS -Wignored-qualifiers"
13562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13563 /* end confdefs.h. */
13564 int main(int argc, char **argv) { return 0; }
13565 _ACEOF
13566 if ac_fn_c_try_link "$LINENO"; then :
13567 ac_cv_cflags__Wignored_qualifiers=yes
13568 else
13569 ac_cv_cflags__Wignored_qualifiers=no
13571 rm -f core conftest.err conftest.$ac_objext \
13572 conftest$ac_exeext conftest.$ac_ext
13573 CFLAGS=$ac_wine_try_cflags_saved
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13576 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13577 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
13578 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13581 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13582 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13583 $as_echo_n "(cached) " >&6
13584 else
13585 ac_wine_try_cflags_saved=$CFLAGS
13586 CFLAGS="$CFLAGS -Wstrict-prototypes"
13587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13589 int main(int argc, char **argv) { return 0; }
13590 _ACEOF
13591 if ac_fn_c_try_link "$LINENO"; then :
13592 ac_cv_cflags__Wstrict_prototypes=yes
13593 else
13594 ac_cv_cflags__Wstrict_prototypes=no
13596 rm -f core conftest.err conftest.$ac_objext \
13597 conftest$ac_exeext conftest.$ac_ext
13598 CFLAGS=$ac_wine_try_cflags_saved
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13601 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13602 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
13603 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13606 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13607 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13608 $as_echo_n "(cached) " >&6
13609 else
13610 ac_wine_try_cflags_saved=$CFLAGS
13611 CFLAGS="$CFLAGS -Wtype-limits"
13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13614 int main(int argc, char **argv) { return 0; }
13615 _ACEOF
13616 if ac_fn_c_try_link "$LINENO"; then :
13617 ac_cv_cflags__Wtype_limits=yes
13618 else
13619 ac_cv_cflags__Wtype_limits=no
13621 rm -f core conftest.err conftest.$ac_objext \
13622 conftest$ac_exeext conftest.$ac_ext
13623 CFLAGS=$ac_wine_try_cflags_saved
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13626 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13627 if test $ac_cv_cflags__Wtype_limits = yes; then :
13628 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13631 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13632 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13633 $as_echo_n "(cached) " >&6
13634 else
13635 ac_wine_try_cflags_saved=$CFLAGS
13636 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 int main(int argc, char **argv) { return 0; }
13640 _ACEOF
13641 if ac_fn_c_try_link "$LINENO"; then :
13642 ac_cv_cflags__Wunused_but_set_parameter=yes
13643 else
13644 ac_cv_cflags__Wunused_but_set_parameter=no
13646 rm -f core conftest.err conftest.$ac_objext \
13647 conftest$ac_exeext conftest.$ac_ext
13648 CFLAGS=$ac_wine_try_cflags_saved
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13651 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13652 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
13653 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
13656 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
13657 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
13658 $as_echo_n "(cached) " >&6
13659 else
13660 ac_wine_try_cflags_saved=$CFLAGS
13661 CFLAGS="$CFLAGS -Wwrite-strings"
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13664 int main(int argc, char **argv) { return 0; }
13665 _ACEOF
13666 if ac_fn_c_try_link "$LINENO"; then :
13667 ac_cv_cflags__Wwrite_strings=yes
13668 else
13669 ac_cv_cflags__Wwrite_strings=no
13671 rm -f core conftest.err conftest.$ac_objext \
13672 conftest$ac_exeext conftest.$ac_ext
13673 CFLAGS=$ac_wine_try_cflags_saved
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
13676 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
13677 if test $ac_cv_cflags__Wwrite_strings = yes; then :
13678 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
13682 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
13683 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
13684 $as_echo_n "(cached) " >&6
13685 else
13686 ac_wine_try_cflags_saved=$CFLAGS
13687 CFLAGS="$CFLAGS -Wpointer-arith"
13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h. */
13690 int main(int argc, char **argv) { return 0; }
13691 _ACEOF
13692 if ac_fn_c_try_link "$LINENO"; then :
13693 ac_cv_cflags__Wpointer_arith=yes
13694 else
13695 ac_cv_cflags__Wpointer_arith=no
13697 rm -f core conftest.err conftest.$ac_objext \
13698 conftest$ac_exeext conftest.$ac_ext
13699 CFLAGS=$ac_wine_try_cflags_saved
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
13702 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
13703 if test $ac_cv_cflags__Wpointer_arith = yes; then :
13704 saved_string_h_CFLAGS=$CFLAGS
13705 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
13707 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
13708 if ${ac_cv_c_string_h_warnings+:} false; then :
13709 $as_echo_n "(cached) " >&6
13710 else
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13713 #include <string.h>
13715 main ()
13719 return 0;
13721 _ACEOF
13722 if ac_fn_c_try_compile "$LINENO"; then :
13723 ac_cv_c_string_h_warnings=no
13724 else
13725 ac_cv_c_string_h_warnings=yes
13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
13730 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
13731 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
13732 CFLAGS=$saved_string_h_CFLAGS
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
13736 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
13737 if ${ac_cv_cflags__Wlogical_op+:} false; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 ac_wine_try_cflags_saved=$CFLAGS
13741 CFLAGS="$CFLAGS -Wlogical-op"
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13744 int main(int argc, char **argv) { return 0; }
13745 _ACEOF
13746 if ac_fn_c_try_link "$LINENO"; then :
13747 ac_cv_cflags__Wlogical_op=yes
13748 else
13749 ac_cv_cflags__Wlogical_op=no
13751 rm -f core conftest.err conftest.$ac_objext \
13752 conftest$ac_exeext conftest.$ac_ext
13753 CFLAGS=$ac_wine_try_cflags_saved
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
13756 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
13757 if test $ac_cv_cflags__Wlogical_op = yes; then :
13758 saved_string_h_CFLAGS=$CFLAGS
13759 CFLAGS="$CFLAGS -Wlogical-op -Werror"
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
13761 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
13762 if ${ac_cv_c_logicalop_noisy+:} false; then :
13763 $as_echo_n "(cached) " >&6
13764 else
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h. */
13767 #include <string.h>
13768 char*f(const char *h,char n) {return strchr(h,n);}
13770 main ()
13774 return 0;
13776 _ACEOF
13777 if ac_fn_c_try_compile "$LINENO"; then :
13778 ac_cv_c_logicalop_noisy=no
13779 else
13780 ac_cv_c_logicalop_noisy=yes
13782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
13785 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
13786 CFLAGS=$saved_string_h_CFLAGS
13787 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
13790 CFLAGS=$saved_CFLAGS
13792 for ac_flag in $CFLAGS; do
13793 case $ac_flag in
13794 -g) case $host_os in
13795 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
13796 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
13797 if ${ac_cv_cflags__gstabsp+:} false; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13800 ac_wine_try_cflags_saved=$CFLAGS
13801 CFLAGS="$CFLAGS -gstabs+"
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 int main(int argc, char **argv) { return 0; }
13805 _ACEOF
13806 if ac_fn_c_try_link "$LINENO"; then :
13807 ac_cv_cflags__gstabsp=yes
13808 else
13809 ac_cv_cflags__gstabsp=no
13811 rm -f core conftest.err conftest.$ac_objext \
13812 conftest$ac_exeext conftest.$ac_ext
13813 CFLAGS=$ac_wine_try_cflags_saved
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
13816 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
13817 if test $ac_cv_cflags__gstabsp = yes; then :
13818 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
13819 fi ;;
13820 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
13821 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
13822 if ${ac_cv_cflags__gdwarf_2+:} false; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 ac_wine_try_cflags_saved=$CFLAGS
13826 CFLAGS="$CFLAGS -gdwarf-2"
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13829 int main(int argc, char **argv) { return 0; }
13830 _ACEOF
13831 if ac_fn_c_try_link "$LINENO"; then :
13832 ac_cv_cflags__gdwarf_2=yes
13833 else
13834 ac_cv_cflags__gdwarf_2=no
13836 rm -f core conftest.err conftest.$ac_objext \
13837 conftest$ac_exeext conftest.$ac_ext
13838 CFLAGS=$ac_wine_try_cflags_saved
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
13841 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
13842 if test $ac_cv_cflags__gdwarf_2 = yes; then :
13843 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
13846 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
13847 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
13848 $as_echo_n "(cached) " >&6
13849 else
13850 ac_wine_try_cflags_saved=$CFLAGS
13851 CFLAGS="$CFLAGS -gstrict-dwarf"
13852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13853 /* end confdefs.h. */
13854 int main(int argc, char **argv) { return 0; }
13855 _ACEOF
13856 if ac_fn_c_try_link "$LINENO"; then :
13857 ac_cv_cflags__gstrict_dwarf=yes
13858 else
13859 ac_cv_cflags__gstrict_dwarf=no
13861 rm -f core conftest.err conftest.$ac_objext \
13862 conftest$ac_exeext conftest.$ac_ext
13863 CFLAGS=$ac_wine_try_cflags_saved
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
13866 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
13867 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
13868 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
13869 fi ;;
13870 esac ;;
13871 esac
13872 done
13874 case $host_cpu in
13875 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
13876 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
13877 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
13878 $as_echo_n "(cached) " >&6
13879 else
13880 ac_wine_try_cflags_saved=$CFLAGS
13881 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13884 int main(int argc, char **argv) { return 0; }
13885 _ACEOF
13886 if ac_fn_c_try_link "$LINENO"; then :
13887 ac_cv_cflags__fno_omit_frame_pointer=yes
13888 else
13889 ac_cv_cflags__fno_omit_frame_pointer=no
13891 rm -f core conftest.err conftest.$ac_objext \
13892 conftest$ac_exeext conftest.$ac_ext
13893 CFLAGS=$ac_wine_try_cflags_saved
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
13896 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
13897 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
13898 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
13899 fi ;;
13900 esac
13902 case $host in
13903 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
13904 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
13905 if ${ac_cv_cflags__Wno_format+:} false; then :
13906 $as_echo_n "(cached) " >&6
13907 else
13908 ac_wine_try_cflags_saved=$CFLAGS
13909 CFLAGS="$CFLAGS -Wno-format"
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13912 int main(int argc, char **argv) { return 0; }
13913 _ACEOF
13914 if ac_fn_c_try_link "$LINENO"; then :
13915 ac_cv_cflags__Wno_format=yes
13916 else
13917 ac_cv_cflags__Wno_format=no
13919 rm -f core conftest.err conftest.$ac_objext \
13920 conftest$ac_exeext conftest.$ac_ext
13921 CFLAGS=$ac_wine_try_cflags_saved
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
13924 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
13925 if test $ac_cv_cflags__Wno_format = yes; then :
13926 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
13927 fi ;;
13928 esac
13930 if test "x$enable_maintainer_mode" = "xyes"
13931 then
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
13933 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
13934 if ${ac_cv_cflags__Werror+:} false; then :
13935 $as_echo_n "(cached) " >&6
13936 else
13937 ac_wine_try_cflags_saved=$CFLAGS
13938 CFLAGS="$CFLAGS -Werror"
13939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13941 int main(int argc, char **argv) { return 0; }
13942 _ACEOF
13943 if ac_fn_c_try_link "$LINENO"; then :
13944 ac_cv_cflags__Werror=yes
13945 else
13946 ac_cv_cflags__Werror=no
13948 rm -f core conftest.err conftest.$ac_objext \
13949 conftest$ac_exeext conftest.$ac_ext
13950 CFLAGS=$ac_wine_try_cflags_saved
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
13953 $as_echo "$ac_cv_cflags__Werror" >&6; }
13954 if test $ac_cv_cflags__Werror = yes; then :
13955 EXTRACFLAGS="$EXTRACFLAGS -Werror"
13959 saved_CFLAGS="$CFLAGS"
13960 CFLAGS="$CFLAGS -Werror"
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
13962 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
13963 if ${ac_cv_have_ms_hook_prologue+:} false; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13968 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
13970 main ()
13974 return 0;
13976 _ACEOF
13977 if ac_fn_c_try_compile "$LINENO"; then :
13978 ac_cv_have_ms_hook_prologue="yes"
13979 else
13980 ac_cv_have_ms_hook_prologue="no"
13982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
13985 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
13986 CFLAGS="$saved_CFLAGS"
13987 if test "$ac_cv_have_ms_hook_prologue" = "yes"
13988 then
13990 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
13992 else
13993 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
14000 $as_echo_n "checking for the need to disable Fortify... " >&6; }
14001 if ${ac_cv_c_fortify_enabled+:} false; then :
14002 $as_echo_n "(cached) " >&6
14003 else
14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* end confdefs.h. */
14006 #include <string.h>
14008 main ()
14010 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
14011 #error Fortify enabled
14012 #endif
14014 return 0;
14016 _ACEOF
14017 if ac_fn_c_try_compile "$LINENO"; then :
14018 ac_cv_c_fortify_enabled=no
14019 else
14020 ac_cv_c_fortify_enabled=yes
14022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
14025 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
14026 if test "$ac_cv_c_fortify_enabled" = yes
14027 then
14028 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
14033 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
14034 if ${ac_cv_c_extern_prefix+:} false; then :
14035 $as_echo_n "(cached) " >&6
14036 else
14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h. */
14039 extern int ac_test;
14041 main ()
14043 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14045 return 0;
14047 _ACEOF
14048 if ac_fn_c_try_link "$LINENO"; then :
14049 ac_cv_c_extern_prefix="yes"
14050 else
14051 ac_cv_c_extern_prefix="no"
14053 rm -f core conftest.err conftest.$ac_objext \
14054 conftest$ac_exeext conftest.$ac_ext
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
14057 $as_echo "$ac_cv_c_extern_prefix" >&6; }
14059 case $host_cpu in
14060 *i[3456789]86*)
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
14062 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
14063 if ${ac_cv_c_stdcall_suffix+:} false; then :
14064 $as_echo_n "(cached) " >&6
14065 else
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h. */
14068 #ifndef _MSC_VER
14069 #define __stdcall __attribute__((__stdcall__))
14070 #endif
14071 int __stdcall ac_test(int i) { return i; }
14073 main ()
14075 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
14077 return 0;
14079 _ACEOF
14080 if ac_fn_c_try_link "$LINENO"; then :
14081 ac_cv_c_stdcall_suffix="yes"
14082 else
14083 ac_cv_c_stdcall_suffix="no"
14085 rm -f core conftest.err conftest.$ac_objext \
14086 conftest$ac_exeext conftest.$ac_ext
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
14089 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
14090 *) ac_cv_c_stdcall_suffix="no" ;;
14091 esac
14094 if test "$ac_cv_c_extern_prefix" = "yes"
14095 then
14096 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
14098 asm_name_prefix="_"
14099 else
14100 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
14102 asm_name_prefix=""
14106 if test "$ac_cv_c_stdcall_suffix" = "yes"
14107 then
14108 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
14110 else
14111 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
14117 $as_echo_n "checking how to define a function in assembly code... " >&6; }
14118 if ${ac_cv_asm_func_def+:} false; then :
14119 $as_echo_n "(cached) " >&6
14120 else
14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14125 main ()
14127 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14129 return 0;
14131 _ACEOF
14132 if ac_fn_c_try_link "$LINENO"; then :
14133 ac_cv_asm_func_def=".def"
14134 else
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14139 main ()
14141 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14143 return 0;
14145 _ACEOF
14146 if ac_fn_c_try_link "$LINENO"; then :
14147 ac_cv_asm_func_def=".type @function"
14148 else
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14153 main ()
14155 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14157 return 0;
14159 _ACEOF
14160 if ac_fn_c_try_link "$LINENO"; then :
14161 ac_cv_asm_func_def=".type 2"
14162 else
14163 ac_cv_asm_func_def="unknown"
14165 rm -f core conftest.err conftest.$ac_objext \
14166 conftest$ac_exeext conftest.$ac_ext
14168 rm -f core conftest.err conftest.$ac_objext \
14169 conftest$ac_exeext conftest.$ac_ext
14171 rm -f core conftest.err conftest.$ac_objext \
14172 conftest$ac_exeext conftest.$ac_ext
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
14175 $as_echo "$ac_cv_asm_func_def" >&6; }
14178 case "$ac_cv_asm_func_def" in
14179 ".def")
14180 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
14182 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
14183 ".type @function")
14184 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
14186 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
14187 ".type 2")
14188 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
14190 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
14192 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
14194 asm_func_header="" ;;
14195 esac
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
14198 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
14199 if ${ac_cv_c_asm_outside_funcs+:} false; then :
14200 $as_echo_n "(cached) " >&6
14201 else
14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h. */
14204 asm(".text\n\t.long 0");
14206 main ()
14210 return 0;
14212 _ACEOF
14213 if ac_fn_c_try_compile "$LINENO"; then :
14214 ac_cv_c_asm_outside_funcs="yes"
14215 else
14216 ac_cv_c_asm_outside_funcs="no"
14218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
14221 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
14224 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
14225 if ${ac_cv_c_dot_previous+:} false; then :
14226 $as_echo_n "(cached) " >&6
14227 else
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h. */
14232 main ()
14234 asm(".text\nac_test:\t.long 0\n\t.previous");
14236 return 0;
14238 _ACEOF
14239 if ac_fn_c_try_link "$LINENO"; then :
14240 ac_cv_c_dot_previous="yes"
14241 else
14242 ac_cv_c_dot_previous="no"
14244 rm -f core conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
14248 $as_echo "$ac_cv_c_dot_previous" >&6; }
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
14251 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
14252 if ${ac_cv_c_cfi_support+:} false; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
14259 main ()
14263 return 0;
14265 _ACEOF
14266 if ac_fn_c_try_compile "$LINENO"; then :
14267 ac_cv_c_cfi_support="yes"
14268 else
14269 ac_cv_c_cfi_support="no"
14271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
14274 $as_echo "$ac_cv_c_cfi_support" >&6; }
14276 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
14277 asm_func_trailer=""
14278 if test "$ac_cv_c_dot_previous" = "yes"
14279 then
14280 asm_func_trailer="\\n\\t.previous"
14282 if test "$ac_cv_c_cfi_support" = "yes"
14283 then
14284 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
14285 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
14287 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
14289 UNWINDFLAGS=-fasynchronous-unwind-tables
14291 else
14292 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
14296 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
14299 if test "$ac_cv_c_asm_outside_funcs" = "yes"
14300 then
14301 cat >>confdefs.h <<_ACEOF
14302 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
14303 _ACEOF
14305 else
14306 cat >>confdefs.h <<_ACEOF
14307 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
14308 _ACEOF
14312 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14315 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14319 case $build_os in
14320 cygwin*|mingw32*) TOOLSEXT=".exe"
14322 esac
14324 case $host_os in
14325 linux*)
14326 case $host_cpu in
14327 *i[3456789]86*|x86_64*)
14328 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine-preloader"
14329 loader_programs="$loader_programs $wine_binary-preloader"
14330 as_fn_append LOADER_RULES "
14331 $wine_binary-preloader: preloader.o
14332 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14334 install install-lib:: $wine_binary-preloader
14335 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14337 uninstall::
14338 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14340 preloader_EXTRADEFS = $BUILTINFLAG
14341 " ;;
14342 esac
14344 esac
14345 as_fn_append LOADER_RULES "
14346 PROGRAMS = $loader_programs
14350 ac_save_CFLAGS="$CFLAGS"
14351 CFLAGS="$CFLAGS $BUILTINFLAG"
14352 for ac_func in \
14353 __res_get_state \
14354 __res_getservers \
14355 _finite \
14356 _isnan \
14357 _pclose \
14358 _popen \
14359 _snprintf \
14360 _spawnvp \
14361 _strdup \
14362 _stricmp \
14363 _strnicmp \
14364 _strtoi64 \
14365 _strtoui64 \
14366 _vsnprintf \
14367 asctime_r \
14368 chsize \
14369 dlopen \
14370 epoll_create \
14371 ffs \
14372 fnmatch \
14373 fork \
14374 fpclass \
14375 fstatfs \
14376 fstatvfs \
14377 ftruncate \
14378 futimens \
14379 futimes \
14380 futimesat \
14381 getattrlist \
14382 getdirentries \
14383 getopt_long_only \
14384 getpwuid \
14385 gettimeofday \
14386 getuid \
14387 if_nameindex \
14388 kqueue \
14389 lstat \
14390 memmove \
14391 mmap \
14392 pclose \
14393 pipe2 \
14394 poll \
14395 popen \
14396 port_create \
14397 prctl \
14398 pread \
14399 proc_pidinfo \
14400 pwrite \
14401 readdir \
14402 readlink \
14403 sched_yield \
14404 select \
14405 setproctitle \
14406 setrlimit \
14407 settimeofday \
14408 sigaltstack \
14409 sigprocmask \
14410 snprintf \
14411 statfs \
14412 statvfs \
14413 strcasecmp \
14414 strdup \
14415 strerror \
14416 strncasecmp \
14417 strtold \
14418 strtoll \
14419 strtoull \
14420 symlink \
14421 tcdrain \
14422 thr_kill2 \
14423 timegm \
14424 usleep \
14425 vsnprintf
14427 do :
14428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14430 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14431 cat >>confdefs.h <<_ACEOF
14432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14433 _ACEOF
14436 done
14438 CFLAGS="$ac_save_CFLAGS"
14440 if test "$ac_cv_func_dlopen" = no
14441 then
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14443 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14444 if ${ac_cv_lib_dl_dlopen+:} false; then :
14445 $as_echo_n "(cached) " >&6
14446 else
14447 ac_check_lib_save_LIBS=$LIBS
14448 LIBS="-ldl $LIBS"
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14452 /* Override any GCC internal prototype to avoid an error.
14453 Use char because int might match the return type of a GCC
14454 builtin and then its argument prototype would still apply. */
14455 #ifdef __cplusplus
14456 extern "C"
14457 #endif
14458 char dlopen ();
14460 main ()
14462 return dlopen ();
14464 return 0;
14466 _ACEOF
14467 if ac_fn_c_try_link "$LINENO"; then :
14468 ac_cv_lib_dl_dlopen=yes
14469 else
14470 ac_cv_lib_dl_dlopen=no
14472 rm -f core conftest.err conftest.$ac_objext \
14473 conftest$ac_exeext conftest.$ac_ext
14474 LIBS=$ac_check_lib_save_LIBS
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14477 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14478 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14479 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14480 LIBDL="-ldl"
14485 ac_wine_check_funcs_save_LIBS="$LIBS"
14486 LIBS="$LIBS $LIBDL"
14487 for ac_func in dladdr
14488 do :
14489 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14490 if test "x$ac_cv_func_dladdr" = xyes; then :
14491 cat >>confdefs.h <<_ACEOF
14492 #define HAVE_DLADDR 1
14493 _ACEOF
14496 done
14498 LIBS="$ac_wine_check_funcs_save_LIBS"
14500 if test "$ac_cv_func_poll" = no
14501 then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14503 $as_echo_n "checking for poll in -lpoll... " >&6; }
14504 if ${ac_cv_lib_poll_poll+:} false; then :
14505 $as_echo_n "(cached) " >&6
14506 else
14507 ac_check_lib_save_LIBS=$LIBS
14508 LIBS="-lpoll $LIBS"
14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h. */
14512 /* Override any GCC internal prototype to avoid an error.
14513 Use char because int might match the return type of a GCC
14514 builtin and then its argument prototype would still apply. */
14515 #ifdef __cplusplus
14516 extern "C"
14517 #endif
14518 char poll ();
14520 main ()
14522 return poll ();
14524 return 0;
14526 _ACEOF
14527 if ac_fn_c_try_link "$LINENO"; then :
14528 ac_cv_lib_poll_poll=yes
14529 else
14530 ac_cv_lib_poll_poll=no
14532 rm -f core conftest.err conftest.$ac_objext \
14533 conftest$ac_exeext conftest.$ac_ext
14534 LIBS=$ac_check_lib_save_LIBS
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14537 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14538 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14539 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14540 LIBPOLL="-lpoll"
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14547 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14548 if ${ac_cv_search_gethostbyname+:} false; then :
14549 $as_echo_n "(cached) " >&6
14550 else
14551 ac_func_search_save_LIBS=$LIBS
14552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h. */
14555 /* Override any GCC internal prototype to avoid an error.
14556 Use char because int might match the return type of a GCC
14557 builtin and then its argument prototype would still apply. */
14558 #ifdef __cplusplus
14559 extern "C"
14560 #endif
14561 char gethostbyname ();
14563 main ()
14565 return gethostbyname ();
14567 return 0;
14569 _ACEOF
14570 for ac_lib in '' nsl; do
14571 if test -z "$ac_lib"; then
14572 ac_res="none required"
14573 else
14574 ac_res=-l$ac_lib
14575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14577 if ac_fn_c_try_link "$LINENO"; then :
14578 ac_cv_search_gethostbyname=$ac_res
14580 rm -f core conftest.err conftest.$ac_objext \
14581 conftest$ac_exeext
14582 if ${ac_cv_search_gethostbyname+:} false; then :
14583 break
14585 done
14586 if ${ac_cv_search_gethostbyname+:} false; then :
14588 else
14589 ac_cv_search_gethostbyname=no
14591 rm conftest.$ac_ext
14592 LIBS=$ac_func_search_save_LIBS
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14595 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14596 ac_res=$ac_cv_search_gethostbyname
14597 if test "$ac_res" != no; then :
14598 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14604 $as_echo_n "checking for library containing connect... " >&6; }
14605 if ${ac_cv_search_connect+:} false; then :
14606 $as_echo_n "(cached) " >&6
14607 else
14608 ac_func_search_save_LIBS=$LIBS
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14612 /* Override any GCC internal prototype to avoid an error.
14613 Use char because int might match the return type of a GCC
14614 builtin and then its argument prototype would still apply. */
14615 #ifdef __cplusplus
14616 extern "C"
14617 #endif
14618 char connect ();
14620 main ()
14622 return connect ();
14624 return 0;
14626 _ACEOF
14627 for ac_lib in '' socket; do
14628 if test -z "$ac_lib"; then
14629 ac_res="none required"
14630 else
14631 ac_res=-l$ac_lib
14632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14634 if ac_fn_c_try_link "$LINENO"; then :
14635 ac_cv_search_connect=$ac_res
14637 rm -f core conftest.err conftest.$ac_objext \
14638 conftest$ac_exeext
14639 if ${ac_cv_search_connect+:} false; then :
14640 break
14642 done
14643 if ${ac_cv_search_connect+:} false; then :
14645 else
14646 ac_cv_search_connect=no
14648 rm conftest.$ac_ext
14649 LIBS=$ac_func_search_save_LIBS
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14652 $as_echo "$ac_cv_search_connect" >&6; }
14653 ac_res=$ac_cv_search_connect
14654 if test "$ac_res" != no; then :
14655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
14661 $as_echo_n "checking for library containing inet_aton... " >&6; }
14662 if ${ac_cv_search_inet_aton+:} false; then :
14663 $as_echo_n "(cached) " >&6
14664 else
14665 ac_func_search_save_LIBS=$LIBS
14666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* end confdefs.h. */
14669 /* Override any GCC internal prototype to avoid an error.
14670 Use char because int might match the return type of a GCC
14671 builtin and then its argument prototype would still apply. */
14672 #ifdef __cplusplus
14673 extern "C"
14674 #endif
14675 char inet_aton ();
14677 main ()
14679 return inet_aton ();
14681 return 0;
14683 _ACEOF
14684 for ac_lib in '' resolv; do
14685 if test -z "$ac_lib"; then
14686 ac_res="none required"
14687 else
14688 ac_res=-l$ac_lib
14689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14691 if ac_fn_c_try_link "$LINENO"; then :
14692 ac_cv_search_inet_aton=$ac_res
14694 rm -f core conftest.err conftest.$ac_objext \
14695 conftest$ac_exeext
14696 if ${ac_cv_search_inet_aton+:} false; then :
14697 break
14699 done
14700 if ${ac_cv_search_inet_aton+:} false; then :
14702 else
14703 ac_cv_search_inet_aton=no
14705 rm conftest.$ac_ext
14706 LIBS=$ac_func_search_save_LIBS
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
14709 $as_echo "$ac_cv_search_inet_aton" >&6; }
14710 ac_res=$ac_cv_search_inet_aton
14711 if test "$ac_res" != no; then :
14712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14717 for ac_func in \
14718 getaddrinfo \
14719 getnameinfo \
14720 getnetbyname \
14721 getprotobyname \
14722 getprotobynumber \
14723 getservbyport \
14724 inet_addr \
14725 inet_network \
14726 inet_ntop \
14727 inet_pton \
14728 sendmsg \
14729 socketpair \
14731 do :
14732 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14733 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14734 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14735 cat >>confdefs.h <<_ACEOF
14736 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14737 _ACEOF
14740 done
14743 ac_save_LIBS=$LIBS
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14745 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14746 if ${ac_cv_search_clock_gettime+:} false; then :
14747 $as_echo_n "(cached) " >&6
14748 else
14749 ac_func_search_save_LIBS=$LIBS
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14753 /* Override any GCC internal prototype to avoid an error.
14754 Use char because int might match the return type of a GCC
14755 builtin and then its argument prototype would still apply. */
14756 #ifdef __cplusplus
14757 extern "C"
14758 #endif
14759 char clock_gettime ();
14761 main ()
14763 return clock_gettime ();
14765 return 0;
14767 _ACEOF
14768 for ac_lib in '' rt; do
14769 if test -z "$ac_lib"; then
14770 ac_res="none required"
14771 else
14772 ac_res=-l$ac_lib
14773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14775 if ac_fn_c_try_link "$LINENO"; then :
14776 ac_cv_search_clock_gettime=$ac_res
14778 rm -f core conftest.err conftest.$ac_objext \
14779 conftest$ac_exeext
14780 if ${ac_cv_search_clock_gettime+:} false; then :
14781 break
14783 done
14784 if ${ac_cv_search_clock_gettime+:} false; then :
14786 else
14787 ac_cv_search_clock_gettime=no
14789 rm conftest.$ac_ext
14790 LIBS=$ac_func_search_save_LIBS
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14793 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14794 ac_res=$ac_cv_search_clock_gettime
14795 if test "$ac_res" != no; then :
14796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14798 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14800 test "$ac_res" = "none required" || LIBRT="$ac_res"
14804 LIBS=$ac_save_LIBS
14806 LDAPLIBS=""
14808 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
14809 then
14810 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
14812 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
14814 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
14815 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
14816 $as_echo_n "(cached) " >&6
14817 else
14818 ac_check_lib_save_LIBS=$LIBS
14819 LIBS="-lldap_r $LIBPTHREAD $LIBS"
14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h. */
14823 /* Override any GCC internal prototype to avoid an error.
14824 Use char because int might match the return type of a GCC
14825 builtin and then its argument prototype would still apply. */
14826 #ifdef __cplusplus
14827 extern "C"
14828 #endif
14829 char ldap_initialize ();
14831 main ()
14833 return ldap_initialize ();
14835 return 0;
14837 _ACEOF
14838 if ac_fn_c_try_link "$LINENO"; then :
14839 ac_cv_lib_ldap_r_ldap_initialize=yes
14840 else
14841 ac_cv_lib_ldap_r_ldap_initialize=no
14843 rm -f core conftest.err conftest.$ac_objext \
14844 conftest$ac_exeext conftest.$ac_ext
14845 LIBS=$ac_check_lib_save_LIBS
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
14848 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
14849 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
14851 $as_echo_n "checking for ber_init in -llber... " >&6; }
14852 if ${ac_cv_lib_lber_ber_init+:} false; then :
14853 $as_echo_n "(cached) " >&6
14854 else
14855 ac_check_lib_save_LIBS=$LIBS
14856 LIBS="-llber $LIBPTHREAD $LIBS"
14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14858 /* end confdefs.h. */
14860 /* Override any GCC internal prototype to avoid an error.
14861 Use char because int might match the return type of a GCC
14862 builtin and then its argument prototype would still apply. */
14863 #ifdef __cplusplus
14864 extern "C"
14865 #endif
14866 char ber_init ();
14868 main ()
14870 return ber_init ();
14872 return 0;
14874 _ACEOF
14875 if ac_fn_c_try_link "$LINENO"; then :
14876 ac_cv_lib_lber_ber_init=yes
14877 else
14878 ac_cv_lib_lber_ber_init=no
14880 rm -f core conftest.err conftest.$ac_objext \
14881 conftest$ac_exeext conftest.$ac_ext
14882 LIBS=$ac_check_lib_save_LIBS
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
14885 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
14886 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
14888 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
14890 LDAPLIBS="-lldap_r -llber"
14897 ac_wine_check_funcs_save_LIBS="$LIBS"
14898 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
14899 for ac_func in \
14900 ldap_count_references \
14901 ldap_first_reference \
14902 ldap_next_reference \
14903 ldap_parse_reference \
14904 ldap_parse_sort_control \
14905 ldap_parse_sortresponse_control \
14906 ldap_parse_vlv_control \
14907 ldap_parse_vlvresponse_control
14908 do :
14909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14910 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14911 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14912 cat >>confdefs.h <<_ACEOF
14913 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14914 _ACEOF
14917 done
14919 LIBS="$ac_wine_check_funcs_save_LIBS"
14921 if test "x$LDAPLIBS" = "x"; then :
14922 case "x$with_ldap" in
14923 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
14924 xno) ;;
14925 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
14926 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
14927 esac
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
14931 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
14932 if ${wine_cv_one_arg_mkdir+:} false; then :
14933 $as_echo_n "(cached) " >&6
14934 else
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14937 #include <sys/stat.h>
14939 main ()
14941 mkdir("foo");
14943 return 0;
14945 _ACEOF
14946 if ac_fn_c_try_compile "$LINENO"; then :
14947 wine_cv_one_arg_mkdir=yes
14948 else
14949 wine_cv_one_arg_mkdir=no
14951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
14954 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
14955 if test "$wine_cv_one_arg_mkdir" = "yes"
14956 then
14958 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
14963 $as_echo_n "checking for sched_setaffinity... " >&6; }
14964 if ${wine_cv_have_sched_setaffinity+:} false; then :
14965 $as_echo_n "(cached) " >&6
14966 else
14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14969 #define _GNU_SOURCE
14970 #include <sched.h>
14972 main ()
14974 sched_setaffinity(0, 0, 0);
14976 return 0;
14978 _ACEOF
14979 if ac_fn_c_try_link "$LINENO"; then :
14980 wine_cv_have_sched_setaffinity=yes
14981 else
14982 wine_cv_have_sched_setaffinity=no
14984 rm -f core conftest.err conftest.$ac_objext \
14985 conftest$ac_exeext conftest.$ac_ext
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
14988 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
14989 if test "$wine_cv_have_sched_setaffinity" = "yes"
14990 then
14992 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
14997 $as_echo_n "checking for fallocate... " >&6; }
14998 if ${wine_cv_have_fallocate+:} false; then :
14999 $as_echo_n "(cached) " >&6
15000 else
15001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15002 /* end confdefs.h. */
15003 #define _GNU_SOURCE
15004 #include <fcntl.h>
15006 main ()
15008 fallocate(-1, 0, 0, 0);
15010 return 0;
15012 _ACEOF
15013 if ac_fn_c_try_link "$LINENO"; then :
15014 wine_cv_have_fallocate=yes
15015 else
15016 wine_cv_have_fallocate=no
15018 rm -f core conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
15022 $as_echo "$wine_cv_have_fallocate" >&6; }
15023 if test "$wine_cv_have_fallocate" = "yes"
15024 then
15026 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15032 $as_echo_n "checking for inline... " >&6; }
15033 if ${ac_cv_c_inline+:} false; then :
15034 $as_echo_n "(cached) " >&6
15035 else
15036 ac_cv_c_inline=no
15037 for ac_kw in inline __inline__ __inline; do
15038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15039 /* end confdefs.h. */
15040 #ifndef __cplusplus
15041 typedef int foo_t;
15042 static $ac_kw foo_t static_foo () {return 0; }
15043 $ac_kw foo_t foo () {return 0; }
15044 #endif
15046 _ACEOF
15047 if ac_fn_c_try_compile "$LINENO"; then :
15048 ac_cv_c_inline=$ac_kw
15050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15051 test "$ac_cv_c_inline" != no && break
15052 done
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15056 $as_echo "$ac_cv_c_inline" >&6; }
15058 case $ac_cv_c_inline in
15059 inline | yes) ;;
15061 case $ac_cv_c_inline in
15062 no) ac_val=;;
15063 *) ac_val=$ac_cv_c_inline;;
15064 esac
15065 cat >>confdefs.h <<_ACEOF
15066 #ifndef __cplusplus
15067 #define inline $ac_val
15068 #endif
15069 _ACEOF
15071 esac
15073 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15074 if test "x$ac_cv_type_mode_t" = xyes; then :
15076 cat >>confdefs.h <<_ACEOF
15077 #define HAVE_MODE_T 1
15078 _ACEOF
15082 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15083 if test "x$ac_cv_type_off_t" = xyes; then :
15085 cat >>confdefs.h <<_ACEOF
15086 #define HAVE_OFF_T 1
15087 _ACEOF
15091 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15092 if test "x$ac_cv_type_pid_t" = xyes; then :
15094 cat >>confdefs.h <<_ACEOF
15095 #define HAVE_PID_T 1
15096 _ACEOF
15100 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15101 if test "x$ac_cv_type_size_t" = xyes; then :
15103 cat >>confdefs.h <<_ACEOF
15104 #define HAVE_SIZE_T 1
15105 _ACEOF
15109 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15110 if test "x$ac_cv_type_ssize_t" = xyes; then :
15112 cat >>confdefs.h <<_ACEOF
15113 #define HAVE_SSIZE_T 1
15114 _ACEOF
15118 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15119 if test "x$ac_cv_type_long_long" = xyes; then :
15121 cat >>confdefs.h <<_ACEOF
15122 #define HAVE_LONG_LONG 1
15123 _ACEOF
15127 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
15128 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15130 cat >>confdefs.h <<_ACEOF
15131 #define HAVE_FSBLKCNT_T 1
15132 _ACEOF
15136 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
15137 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15139 cat >>confdefs.h <<_ACEOF
15140 #define HAVE_FSFILCNT_T 1
15141 _ACEOF
15146 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
15147 #include <signal.h>
15149 if test "x$ac_cv_type_sigset_t" = xyes; then :
15151 cat >>confdefs.h <<_ACEOF
15152 #define HAVE_SIGSET_T 1
15153 _ACEOF
15158 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
15160 if test "x$ac_cv_type_request_sense" = xyes; then :
15162 cat >>confdefs.h <<_ACEOF
15163 #define HAVE_REQUEST_SENSE 1
15164 _ACEOF
15170 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
15171 #ifdef HAVE_SYS_SOCKET_H
15172 #include <sys/socket.h>
15173 #endif
15174 #ifdef HAVE_SYS_SOCKETVAR_H
15175 #include <sys/socketvar.h>
15176 #endif
15177 #ifdef HAVE_NET_ROUTE_H
15178 #include <net/route.h>
15179 #endif
15180 #ifdef HAVE_NETINET_IN_H
15181 #include <netinet/in.h>
15182 #endif
15183 #ifdef HAVE_NETINET_IN_SYSTM_H
15184 #include <netinet/in_systm.h>
15185 #endif
15186 #ifdef HAVE_NETINET_IP_H
15187 #include <netinet/ip.h>
15188 #endif
15189 #ifdef HAVE_NETINET_IN_PCB_H
15190 #include <netinet/in_pcb.h>
15191 #endif
15193 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
15195 cat >>confdefs.h <<_ACEOF
15196 #define HAVE_STRUCT_XINPGEN 1
15197 _ACEOF
15203 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#ifdef HAVE_LINK_H
15204 #include <link.h>
15205 #endif
15206 #ifdef HAVE_SYS_LINK_H
15207 #include <sys/link.h>
15208 #endif
15210 if test "x$ac_cv_type_struct_r_debug" = xyes; then :
15212 cat >>confdefs.h <<_ACEOF
15213 #define HAVE_STRUCT_R_DEBUG 1
15214 _ACEOF
15218 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
15219 #include <link.h>
15220 #endif
15221 #ifdef HAVE_SYS_LINK_H
15222 #include <sys/link.h>
15223 #endif
15225 if test "x$ac_cv_type_struct_link_map" = xyes; then :
15227 cat >>confdefs.h <<_ACEOF
15228 #define HAVE_STRUCT_LINK_MAP 1
15229 _ACEOF
15235 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
15236 #include <linux/input.h>
15237 #endif
15239 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
15241 cat >>confdefs.h <<_ACEOF
15242 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15243 _ACEOF
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
15250 $as_echo_n "checking for sigaddset... " >&6; }
15251 if ${wine_cv_have_sigaddset+:} false; then :
15252 $as_echo_n "(cached) " >&6
15253 else
15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255 /* end confdefs.h. */
15256 #include <signal.h>
15258 main ()
15260 sigset_t set; sigaddset(&set,SIGTERM);
15262 return 0;
15264 _ACEOF
15265 if ac_fn_c_try_link "$LINENO"; then :
15266 wine_cv_have_sigaddset=yes
15267 else
15268 wine_cv_have_sigaddset=no
15270 rm -f core conftest.err conftest.$ac_objext \
15271 conftest$ac_exeext conftest.$ac_ext
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
15274 $as_echo "$wine_cv_have_sigaddset" >&6; }
15275 if test "$wine_cv_have_sigaddset" = "yes"
15276 then
15278 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15284 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
15285 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
15286 $as_echo_n "(cached) " >&6
15287 else
15288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289 /* end confdefs.h. */
15290 #include <netdb.h>
15292 main ()
15295 char *name=0;
15296 struct hostent he;
15297 struct hostent *result;
15298 char *buf=0;
15299 int bufsize=0;
15300 int errnr;
15301 char *addr=0;
15302 int addrlen=0;
15303 int addrtype=0;
15304 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15305 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15308 return 0;
15310 _ACEOF
15311 if ac_fn_c_try_link "$LINENO"; then :
15312 wine_cv_linux_gethostbyname_r_6=yes
15313 else
15314 wine_cv_linux_gethostbyname_r_6=no
15317 rm -f core conftest.err conftest.$ac_objext \
15318 conftest$ac_exeext conftest.$ac_ext
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15322 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15323 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15324 then
15326 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15330 if test "$ac_cv_header_linux_joystick_h" = "yes"
15331 then
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15333 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15334 if ${wine_cv_linux_joystick_22_api+:} false; then :
15335 $as_echo_n "(cached) " >&6
15336 else
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15340 #include <sys/ioctl.h>
15341 #include <sys/types.h>
15342 #include <linux/joystick.h>
15344 struct js_event blub;
15345 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15346 #error "no 2.2 header"
15347 #endif
15350 main ()
15352 /*empty*/
15354 return 0;
15356 _ACEOF
15357 if ac_fn_c_try_compile "$LINENO"; then :
15358 wine_cv_linux_joystick_22_api=yes
15359 else
15360 wine_cv_linux_joystick_22_api=no
15362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15366 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15367 if test "$wine_cv_linux_joystick_22_api" = "yes"
15368 then
15370 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15376 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15377 #ifdef HAVE_SYS_PARAM_H
15378 # include <sys/param.h>
15379 #endif
15380 #ifdef HAVE_SYS_MOUNT_H
15381 # include <sys/mount.h>
15382 #endif
15383 #ifdef HAVE_SYS_VFS_H
15384 # include <sys/vfs.h>
15385 #endif
15386 #ifdef HAVE_SYS_STATFS_H
15387 # include <sys/statfs.h>
15388 #endif
15390 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15392 cat >>confdefs.h <<_ACEOF
15393 #define HAVE_STRUCT_STATFS_F_BFREE 1
15394 _ACEOF
15398 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15399 #ifdef HAVE_SYS_PARAM_H
15400 # include <sys/param.h>
15401 #endif
15402 #ifdef HAVE_SYS_MOUNT_H
15403 # include <sys/mount.h>
15404 #endif
15405 #ifdef HAVE_SYS_VFS_H
15406 # include <sys/vfs.h>
15407 #endif
15408 #ifdef HAVE_SYS_STATFS_H
15409 # include <sys/statfs.h>
15410 #endif
15412 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15414 cat >>confdefs.h <<_ACEOF
15415 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15416 _ACEOF
15420 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15421 #ifdef HAVE_SYS_PARAM_H
15422 # include <sys/param.h>
15423 #endif
15424 #ifdef HAVE_SYS_MOUNT_H
15425 # include <sys/mount.h>
15426 #endif
15427 #ifdef HAVE_SYS_VFS_H
15428 # include <sys/vfs.h>
15429 #endif
15430 #ifdef HAVE_SYS_STATFS_H
15431 # include <sys/statfs.h>
15432 #endif
15434 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15436 cat >>confdefs.h <<_ACEOF
15437 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15438 _ACEOF
15442 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15443 #ifdef HAVE_SYS_PARAM_H
15444 # include <sys/param.h>
15445 #endif
15446 #ifdef HAVE_SYS_MOUNT_H
15447 # include <sys/mount.h>
15448 #endif
15449 #ifdef HAVE_SYS_VFS_H
15450 # include <sys/vfs.h>
15451 #endif
15452 #ifdef HAVE_SYS_STATFS_H
15453 # include <sys/statfs.h>
15454 #endif
15456 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15458 cat >>confdefs.h <<_ACEOF
15459 #define HAVE_STRUCT_STATFS_F_FFREE 1
15460 _ACEOF
15464 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15465 #ifdef HAVE_SYS_PARAM_H
15466 # include <sys/param.h>
15467 #endif
15468 #ifdef HAVE_SYS_MOUNT_H
15469 # include <sys/mount.h>
15470 #endif
15471 #ifdef HAVE_SYS_VFS_H
15472 # include <sys/vfs.h>
15473 #endif
15474 #ifdef HAVE_SYS_STATFS_H
15475 # include <sys/statfs.h>
15476 #endif
15478 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15480 cat >>confdefs.h <<_ACEOF
15481 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15482 _ACEOF
15486 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15487 #ifdef HAVE_SYS_PARAM_H
15488 # include <sys/param.h>
15489 #endif
15490 #ifdef HAVE_SYS_MOUNT_H
15491 # include <sys/mount.h>
15492 #endif
15493 #ifdef HAVE_SYS_VFS_H
15494 # include <sys/vfs.h>
15495 #endif
15496 #ifdef HAVE_SYS_STATFS_H
15497 # include <sys/statfs.h>
15498 #endif
15500 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15502 cat >>confdefs.h <<_ACEOF
15503 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15504 _ACEOF
15510 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15511 #include <sys/statvfs.h>
15512 #endif
15514 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15516 cat >>confdefs.h <<_ACEOF
15517 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15518 _ACEOF
15524 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15525 #include <dirent.h>
15526 #endif
15528 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15530 cat >>confdefs.h <<_ACEOF
15531 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15532 _ACEOF
15538 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15539 #ifdef HAVE_SYS_SOCKET_H
15540 # include <sys/socket.h>
15541 #endif
15542 #ifdef HAVE_SYS_UN_H
15543 # include <sys/un.h>
15544 #endif
15546 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15548 cat >>confdefs.h <<_ACEOF
15549 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15550 _ACEOF
15554 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15555 #ifdef HAVE_SYS_SOCKET_H
15556 # include <sys/socket.h>
15557 #endif
15558 #ifdef HAVE_SYS_UN_H
15559 # include <sys/un.h>
15560 #endif
15562 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15564 cat >>confdefs.h <<_ACEOF
15565 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15566 _ACEOF
15570 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15571 #ifdef HAVE_SYS_SOCKET_H
15572 # include <sys/socket.h>
15573 #endif
15574 #ifdef HAVE_SYS_UN_H
15575 # include <sys/un.h>
15576 #endif
15578 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15580 cat >>confdefs.h <<_ACEOF
15581 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15582 _ACEOF
15588 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15589 #ifdef HAVE_SCSI_SG_H
15590 #include <scsi/sg.h>
15591 #endif
15593 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15595 cat >>confdefs.h <<_ACEOF
15596 #define HAVE_SCSIREQ_T_CMD 1
15597 _ACEOF
15601 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>
15602 #ifdef HAVE_SCSI_SG_H
15603 #include <scsi/sg.h>
15604 #endif
15606 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15608 cat >>confdefs.h <<_ACEOF
15609 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15610 _ACEOF
15616 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15618 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15620 cat >>confdefs.h <<_ACEOF
15621 #define HAVE_SIGINFO_T_SI_FD 1
15622 _ACEOF
15628 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15629 #ifdef HAVE_SYS_MTIO_H
15630 #include <sys/mtio.h>
15631 #endif
15633 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15635 cat >>confdefs.h <<_ACEOF
15636 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15637 _ACEOF
15641 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
15642 #ifdef HAVE_SYS_MTIO_H
15643 #include <sys/mtio.h>
15644 #endif
15646 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
15648 cat >>confdefs.h <<_ACEOF
15649 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
15650 _ACEOF
15654 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
15655 #ifdef HAVE_SYS_MTIO_H
15656 #include <sys/mtio.h>
15657 #endif
15659 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
15661 cat >>confdefs.h <<_ACEOF
15662 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
15663 _ACEOF
15669 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
15670 #include <getopt.h>
15671 #endif
15673 if test "x$ac_cv_member_struct_option_name" = xyes; then :
15675 cat >>confdefs.h <<_ACEOF
15676 #define HAVE_STRUCT_OPTION_NAME 1
15677 _ACEOF
15683 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
15684 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
15686 cat >>confdefs.h <<_ACEOF
15687 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15688 _ACEOF
15692 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15693 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
15695 cat >>confdefs.h <<_ACEOF
15696 #define HAVE_STRUCT_STAT_ST_MTIM 1
15697 _ACEOF
15701 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15702 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
15704 cat >>confdefs.h <<_ACEOF
15705 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
15706 _ACEOF
15710 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
15711 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
15713 cat >>confdefs.h <<_ACEOF
15714 #define HAVE_STRUCT_STAT_ST_CTIM 1
15715 _ACEOF
15719 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
15720 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
15722 cat >>confdefs.h <<_ACEOF
15723 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
15724 _ACEOF
15728 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
15729 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
15731 cat >>confdefs.h <<_ACEOF
15732 #define HAVE_STRUCT_STAT_ST_ATIM 1
15733 _ACEOF
15737 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
15738 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
15740 cat >>confdefs.h <<_ACEOF
15741 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
15742 _ACEOF
15746 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
15747 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
15749 cat >>confdefs.h <<_ACEOF
15750 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
15751 _ACEOF
15755 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
15756 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
15758 cat >>confdefs.h <<_ACEOF
15759 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
15760 _ACEOF
15764 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
15765 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
15767 cat >>confdefs.h <<_ACEOF
15768 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
15769 _ACEOF
15773 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
15774 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
15776 cat >>confdefs.h <<_ACEOF
15777 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
15778 _ACEOF
15782 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
15783 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
15785 cat >>confdefs.h <<_ACEOF
15786 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
15787 _ACEOF
15793 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
15794 #include <sys/types.h>
15795 #endif
15796 #ifdef HAVE_NETINET_IN_H
15797 #include <netinet/in.h>
15798 #endif
15800 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15802 cat >>confdefs.h <<_ACEOF
15803 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15804 _ACEOF
15810 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
15811 #include <resolv.h>
15812 #endif
15814 if test "x$ac_cv_type_struct___res_state" = xyes; then :
15816 cat >>confdefs.h <<_ACEOF
15817 #define HAVE_STRUCT___RES_STATE 1
15818 _ACEOF
15824 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
15825 #include <resolv.h>
15826 #endif
15828 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
15830 cat >>confdefs.h <<_ACEOF
15831 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
15832 _ACEOF
15838 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
15839 #include <sys/types.h>
15840 #endif
15841 #ifdef HAVE_NETINET_IN_H
15842 # include <netinet/in.h>
15843 #endif
15844 #ifdef HAVE_ARPA_NAMESER_H
15845 # include <arpa/nameser.h>
15846 #endif
15848 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
15850 cat >>confdefs.h <<_ACEOF
15851 #define HAVE_NS_MSG__MSG_PTR 1
15852 _ACEOF
15858 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
15859 #include <sys/types.h>
15860 #endif
15861 #ifdef HAVE_NETINET_IP_H
15862 #include <netinet/ip.h>
15863 #endif
15864 #ifdef HAVE_NETINET_IP_ICMP_H
15865 #include <netinet/ip_icmp.h>
15866 #endif
15867 #ifdef HAVE_NETINET_ICMP_VAR_H
15868 #include <netinet/icmp_var.h>
15869 #endif
15871 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
15873 cat >>confdefs.h <<_ACEOF
15874 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
15875 _ACEOF
15881 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
15882 #include <sys/types.h>
15883 #endif
15884 #ifdef HAVE_ALIAS_H
15885 #include <alias.h>
15886 #endif
15887 #ifdef HAVE_SYS_SOCKET_H
15888 #include <sys/socket.h>
15889 #endif
15890 #ifdef HAVE_SYS_SOCKETVAR_H
15891 #include <sys/socketvar.h>
15892 #endif
15893 #ifdef HAVE_SYS_TIMEOUT_H
15894 #include <sys/timeout.h>
15895 #endif
15896 #ifdef HAVE_NETINET_IN_H
15897 #include <netinet/in.h>
15898 #endif
15899 #ifdef HAVE_NETINET_IN_SYSTM_H
15900 #include <netinet/in_systm.h>
15901 #endif
15902 #ifdef HAVE_NETINET_IP_H
15903 #include <netinet/ip.h>
15904 #endif
15905 #ifdef HAVE_NETINET_IP_VAR_H
15906 #include <netinet/ip_var.h>
15907 #endif
15908 #ifdef HAVE_NETINET_IP_ICMP_H
15909 #include <netinet/ip_icmp.h>
15910 #endif
15911 #ifdef HAVE_NETINET_ICMP_VAR_H
15912 #include <netinet/icmp_var.h>
15913 #endif
15915 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
15917 cat >>confdefs.h <<_ACEOF
15918 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
15919 _ACEOF
15925 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
15926 #include <sys/types.h>
15927 #endif
15928 #ifdef HAVE_SYS_SOCKETVAR_H
15929 #include <sys/socketvar.h>
15930 #endif
15931 #ifdef HAVE_NETINET_IN_H
15932 #include <netinet/in.h>
15933 #endif
15934 #ifdef HAVE_NETINET_IP_VAR_H
15935 #include <netinet/ip_var.h>
15936 #endif
15938 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
15940 cat >>confdefs.h <<_ACEOF
15941 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
15942 _ACEOF
15948 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
15949 #include <netinet/ip_var.h>
15950 #endif
15952 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
15954 cat >>confdefs.h <<_ACEOF
15955 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
15956 _ACEOF
15962 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
15963 #include <sys/types.h>
15964 #endif
15965 #ifdef HAVE_SYS_SOCKETVAR_H
15966 #include <sys/socketvar.h>
15967 #endif
15968 #ifdef HAVE_NETINET_IN_H
15969 #include <netinet/in.h>
15970 #endif
15971 #ifdef HAVE_NETINET_TCP_H
15972 #include <netinet/tcp.h>
15973 #endif
15974 #ifdef HAVE_NETINET_TCP_VAR_H
15975 #include <netinet/tcp_var.h>
15976 #endif
15978 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
15980 cat >>confdefs.h <<_ACEOF
15981 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
15982 _ACEOF
15988 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
15989 #include <netinet/tcp_var.h>
15990 #endif
15992 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
15994 cat >>confdefs.h <<_ACEOF
15995 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
15996 _ACEOF
16002 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
16003 #include <sys/types.h>
16004 #endif
16005 #ifdef HAVE_NETINET_IN_H
16006 #include <netinet/in.h>
16007 #endif
16008 #ifdef HAVE_NETINET_IP_VAR_H
16009 #include <netinet/ip_var.h>
16010 #endif
16011 #ifdef HAVE_NETINET_UDP_H
16012 #include <netinet/udp.h>
16013 #endif
16014 #ifdef HAVE_NETINET_UDP_VAR_H
16015 #include <netinet/udp_var.h>
16016 #endif
16018 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
16020 cat >>confdefs.h <<_ACEOF
16021 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
16022 _ACEOF
16028 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
16029 #include <sys/types.h>
16030 #endif
16031 #ifdef HAVE_NET_IF_H
16032 # include <net/if.h>
16033 #endif
16035 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
16037 cat >>confdefs.h <<_ACEOF
16038 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16039 _ACEOF
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16046 $as_echo_n "checking for timezone variable... " >&6; }
16047 if ${ac_cv_have_timezone+:} false; then :
16048 $as_echo_n "(cached) " >&6
16049 else
16050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16051 /* end confdefs.h. */
16052 #include <time.h>
16054 main ()
16056 timezone = 1
16058 return 0;
16060 _ACEOF
16061 if ac_fn_c_try_link "$LINENO"; then :
16062 ac_cv_have_timezone="yes"
16063 else
16064 ac_cv_have_timezone="no"
16066 rm -f core conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
16070 $as_echo "$ac_cv_have_timezone" >&6; }
16071 if test "$ac_cv_have_timezone" = "yes"
16072 then
16074 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
16078 $as_echo_n "checking for daylight variable... " >&6; }
16079 if ${ac_cv_have_daylight+:} false; then :
16080 $as_echo_n "(cached) " >&6
16081 else
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084 #include <time.h>
16086 main ()
16088 daylight = 1
16090 return 0;
16092 _ACEOF
16093 if ac_fn_c_try_link "$LINENO"; then :
16094 ac_cv_have_daylight="yes"
16095 else
16096 ac_cv_have_daylight="no"
16098 rm -f core conftest.err conftest.$ac_objext \
16099 conftest$ac_exeext conftest.$ac_ext
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
16102 $as_echo "$ac_cv_have_daylight" >&6; }
16103 if test "$ac_cv_have_daylight" = "yes"
16104 then
16106 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16110 ac_save_LIBS="$LIBS"
16111 LIBS="$LIBS -lm"
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
16113 $as_echo_n "checking for isfinite... " >&6; }
16114 if ${ac_cv_have_isfinite+:} false; then :
16115 $as_echo_n "(cached) " >&6
16116 else
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16119 #define _GNU_SOURCE
16120 #include <math.h>
16122 main ()
16124 float f = 0.0; return isfinite(f)
16126 return 0;
16128 _ACEOF
16129 if ac_fn_c_try_link "$LINENO"; then :
16130 ac_cv_have_isfinite="yes"
16131 else
16132 ac_cv_have_isfinite="no"
16134 rm -f core conftest.err conftest.$ac_objext \
16135 conftest$ac_exeext conftest.$ac_ext
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isfinite" >&5
16138 $as_echo "$ac_cv_have_isfinite" >&6; }
16139 if test "$ac_cv_have_isfinite" = "yes"
16140 then
16142 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16146 ac_save_LIBS="$LIBS"
16147 LIBS="$LIBS -lm"
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16149 $as_echo_n "checking for isinf... " >&6; }
16150 if ${ac_cv_have_isinf+:} false; then :
16151 $as_echo_n "(cached) " >&6
16152 else
16153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16154 /* end confdefs.h. */
16155 #include <math.h>
16157 main ()
16159 float f = 0.0; return isinf(f)
16161 return 0;
16163 _ACEOF
16164 if ac_fn_c_try_link "$LINENO"; then :
16165 ac_cv_have_isinf="yes"
16166 else
16167 ac_cv_have_isinf="no"
16169 rm -f core conftest.err conftest.$ac_objext \
16170 conftest$ac_exeext conftest.$ac_ext
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
16173 $as_echo "$ac_cv_have_isinf" >&6; }
16174 if test "$ac_cv_have_isinf" = "yes"
16175 then
16177 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16182 $as_echo_n "checking for isnan... " >&6; }
16183 if ${ac_cv_have_isnan+:} false; then :
16184 $as_echo_n "(cached) " >&6
16185 else
16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h. */
16188 #include <math.h>
16190 main ()
16192 float f = 0.0; return isnan(f)
16194 return 0;
16196 _ACEOF
16197 if ac_fn_c_try_link "$LINENO"; then :
16198 ac_cv_have_isnan="yes"
16199 else
16200 ac_cv_have_isnan="no"
16202 rm -f core conftest.err conftest.$ac_objext \
16203 conftest$ac_exeext conftest.$ac_ext
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
16206 $as_echo "$ac_cv_have_isnan" >&6; }
16207 if test "$ac_cv_have_isnan" = "yes"
16208 then
16210 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16213 LIBS="$ac_save_LIBS"
16216 case $host_cpu in
16217 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
16218 $as_echo_n "checking whether we need to define __i386__... " >&6; }
16219 if ${ac_cv_cpp_def___i386__+:} false; then :
16220 $as_echo_n "(cached) " >&6
16221 else
16222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h. */
16224 #ifndef __i386__
16226 #endif
16227 _ACEOF
16228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16229 $EGREP "yes" >/dev/null 2>&1; then :
16230 ac_cv_cpp_def___i386__=yes
16231 else
16232 ac_cv_cpp_def___i386__=no
16234 rm -f conftest*
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
16238 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
16239 if test $ac_cv_cpp_def___i386__ = yes; then :
16240 CFLAGS="$CFLAGS -D__i386__"
16241 LINTFLAGS="$LINTFLAGS -D__i386__"
16242 fi ;;
16243 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
16244 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
16245 if ${ac_cv_cpp_def___x86_64__+:} false; then :
16246 $as_echo_n "(cached) " >&6
16247 else
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16250 #ifndef __x86_64__
16252 #endif
16253 _ACEOF
16254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16255 $EGREP "yes" >/dev/null 2>&1; then :
16256 ac_cv_cpp_def___x86_64__=yes
16257 else
16258 ac_cv_cpp_def___x86_64__=no
16260 rm -f conftest*
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
16264 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
16265 if test $ac_cv_cpp_def___x86_64__ = yes; then :
16266 CFLAGS="$CFLAGS -D__x86_64__"
16267 LINTFLAGS="$LINTFLAGS -D__x86_64__"
16268 fi ;;
16269 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
16270 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
16271 if ${ac_cv_cpp_def___sparc64__+:} false; then :
16272 $as_echo_n "(cached) " >&6
16273 else
16274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275 /* end confdefs.h. */
16276 #ifndef __sparc64__
16278 #endif
16279 _ACEOF
16280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16281 $EGREP "yes" >/dev/null 2>&1; then :
16282 ac_cv_cpp_def___sparc64__=yes
16283 else
16284 ac_cv_cpp_def___sparc64__=no
16286 rm -f conftest*
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
16290 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
16291 if test $ac_cv_cpp_def___sparc64__ = yes; then :
16292 CFLAGS="$CFLAGS -D__sparc64__"
16293 LINTFLAGS="$LINTFLAGS -D__sparc64__"
16294 fi ;;
16295 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
16296 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
16297 if ${ac_cv_cpp_def___sparc__+:} false; then :
16298 $as_echo_n "(cached) " >&6
16299 else
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16302 #ifndef __sparc__
16304 #endif
16305 _ACEOF
16306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16307 $EGREP "yes" >/dev/null 2>&1; then :
16308 ac_cv_cpp_def___sparc__=yes
16309 else
16310 ac_cv_cpp_def___sparc__=no
16312 rm -f conftest*
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
16316 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
16317 if test $ac_cv_cpp_def___sparc__ = yes; then :
16318 CFLAGS="$CFLAGS -D__sparc__"
16319 LINTFLAGS="$LINTFLAGS -D__sparc__"
16320 fi ;;
16321 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
16322 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
16323 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
16324 $as_echo_n "(cached) " >&6
16325 else
16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h. */
16328 #ifndef __powerpc64__
16330 #endif
16331 _ACEOF
16332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16333 $EGREP "yes" >/dev/null 2>&1; then :
16334 ac_cv_cpp_def___powerpc64__=yes
16335 else
16336 ac_cv_cpp_def___powerpc64__=no
16338 rm -f conftest*
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
16342 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
16343 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
16344 CFLAGS="$CFLAGS -D__powerpc64__"
16345 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
16346 fi ;;
16347 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
16348 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16349 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16350 $as_echo_n "(cached) " >&6
16351 else
16352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353 /* end confdefs.h. */
16354 #ifndef __powerpc__
16356 #endif
16357 _ACEOF
16358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16359 $EGREP "yes" >/dev/null 2>&1; then :
16360 ac_cv_cpp_def___powerpc__=yes
16361 else
16362 ac_cv_cpp_def___powerpc__=no
16364 rm -f conftest*
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16368 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16369 if test $ac_cv_cpp_def___powerpc__ = yes; then :
16370 CFLAGS="$CFLAGS -D__powerpc__"
16371 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16372 fi ;;
16373 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16374 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16375 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16376 $as_echo_n "(cached) " >&6
16377 else
16378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379 /* end confdefs.h. */
16380 #ifndef __aarch64__
16382 #endif
16383 _ACEOF
16384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16385 $EGREP "yes" >/dev/null 2>&1; then :
16386 ac_cv_cpp_def___aarch64__=yes
16387 else
16388 ac_cv_cpp_def___aarch64__=no
16390 rm -f conftest*
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16394 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16395 if test $ac_cv_cpp_def___aarch64__ = yes; then :
16396 CFLAGS="$CFLAGS -D__aarch64__"
16397 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16398 fi ;;
16399 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16400 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16401 if ${ac_cv_cpp_def___arm__+:} false; then :
16402 $as_echo_n "(cached) " >&6
16403 else
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16406 #ifndef __arm__
16408 #endif
16409 _ACEOF
16410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16411 $EGREP "yes" >/dev/null 2>&1; then :
16412 ac_cv_cpp_def___arm__=yes
16413 else
16414 ac_cv_cpp_def___arm__=no
16416 rm -f conftest*
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16420 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16421 if test $ac_cv_cpp_def___arm__ = yes; then :
16422 CFLAGS="$CFLAGS -D__arm__"
16423 LINTFLAGS="$LINTFLAGS -D__arm__"
16424 fi ;;
16425 esac
16427 case $host_vendor in
16428 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16429 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16430 if ${ac_cv_cpp_def___sun__+:} false; then :
16431 $as_echo_n "(cached) " >&6
16432 else
16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434 /* end confdefs.h. */
16435 #ifndef __sun__
16437 #endif
16438 _ACEOF
16439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16440 $EGREP "yes" >/dev/null 2>&1; then :
16441 ac_cv_cpp_def___sun__=yes
16442 else
16443 ac_cv_cpp_def___sun__=no
16445 rm -f conftest*
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16449 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16450 if test $ac_cv_cpp_def___sun__ = yes; then :
16451 CFLAGS="$CFLAGS -D__sun__"
16452 LINTFLAGS="$LINTFLAGS -D__sun__"
16453 fi ;;
16454 esac
16460 ac_config_commands="$ac_config_commands include/stamp-h"
16462 $as_echo_n "creating Makefile rules..." >&6
16465 wine_fn_append_rule "
16466 # Rules automatically generated by configure
16468 CLEAN_FILES = *.o *.a *.so *.res *.fake *.ok *.tab.[ch] *.yy.c
16470 .INIT: Makefile
16471 .MAKEFILEDEPS:
16472 all: Makefile
16473 Makefile: $srcdir/Makefile.in $srcdir/Make.vars.in config.status
16474 @./config.status Make.tmp Makefile"
16476 test "$srcdir" = . && wine_fn_append_rule "all: .gitignore
16477 .gitignore: config.status
16478 @./config.status .gitignore"
16480 test -n "$CROSSTARGET" || wine_fn_append_rule "crosstest:
16481 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16483 if test "x$enable_fonts" != xno; then
16484 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16485 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16486 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16487 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16488 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16490 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16491 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16492 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16493 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16494 ac_config_links="$ac_config_links wine:tools/winewrapper"
16495 wine_fn_config_symlink wine
16496 if test "x$enable_win64" != xno; then
16497 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16498 wine_fn_config_symlink wine64
16501 wine_fn_config_dll acledit enable_acledit
16502 wine_fn_config_dll aclui enable_aclui implib
16503 wine_fn_config_dll activeds enable_activeds implib
16504 wine_fn_config_dll actxprxy enable_actxprxy clean
16505 wine_fn_config_lib adsiid
16506 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
16507 wine_fn_config_test dlls/advapi32/tests advapi32_test
16508 wine_fn_config_dll advpack enable_advpack implib
16509 wine_fn_config_test dlls/advpack/tests advpack_test
16510 wine_fn_config_dll amstream enable_amstream clean
16511 wine_fn_config_test dlls/amstream/tests amstream_test
16512 wine_fn_config_dll api-ms-win-core-debug-l1-1-1 enable_api_ms_win_core_debug_l1_1_1
16513 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-1 enable_api_ms_win_core_errorhandling_l1_1_1
16514 wine_fn_config_dll api-ms-win-core-interlocked-l1-2-0 enable_api_ms_win_core_interlocked_l1_2_0
16515 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
16516 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
16517 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-1 enable_api_ms_win_core_processthreads_l1_1_1
16518 wine_fn_config_dll api-ms-win-core-profile-l1-1-0 enable_api_ms_win_core_profile_l1_1_0
16519 wine_fn_config_dll api-ms-win-core-string-l1-1-0 enable_api_ms_win_core_string_l1_1_0
16520 wine_fn_config_dll api-ms-win-core-sysinfo-l1-2-0 enable_api_ms_win_core_sysinfo_l1_2_0
16521 wine_fn_config_dll api-ms-win-core-util-l1-1-0 enable_api_ms_win_core_util_l1_1_0
16522 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
16523 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
16524 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
16525 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
16526 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
16527 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
16528 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
16529 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
16530 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
16531 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
16532 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
16533 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
16534 wine_fn_config_dll apphelp enable_apphelp
16535 wine_fn_config_test dlls/apphelp/tests apphelp_test
16536 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
16537 wine_fn_config_dll atl enable_atl clean,implib
16538 wine_fn_config_test dlls/atl/tests atl_test
16539 wine_fn_config_dll atl100 enable_atl100 implib
16540 wine_fn_config_test dlls/atl100/tests atl100_test
16541 wine_fn_config_dll atl110 enable_atl110
16542 wine_fn_config_dll atl80 enable_atl80 implib
16543 wine_fn_config_test dlls/atl80/tests atl80_test
16544 wine_fn_config_dll atl90 enable_atl90
16545 wine_fn_config_dll authz enable_authz
16546 wine_fn_config_dll avicap32 enable_avicap32 implib
16547 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
16548 wine_fn_config_test dlls/avifil32/tests avifil32_test
16549 wine_fn_config_dll avifile.dll16 enable_win16
16550 wine_fn_config_dll avrt enable_avrt implib
16551 wine_fn_config_dll bcrypt enable_bcrypt
16552 wine_fn_config_dll browseui enable_browseui clean,po
16553 wine_fn_config_test dlls/browseui/tests browseui_test
16554 wine_fn_config_dll cabinet enable_cabinet implib
16555 wine_fn_config_test dlls/cabinet/tests cabinet_test
16556 wine_fn_config_dll capi2032 enable_capi2032 implib
16557 wine_fn_config_dll cards enable_cards implib
16558 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
16559 wine_fn_config_dll clusapi enable_clusapi implib
16560 wine_fn_config_dll comcat enable_comcat
16561 wine_fn_config_test dlls/comcat/tests comcat_test
16562 wine_fn_config_dll comctl32 enable_comctl32 implib,po
16563 wine_fn_config_test dlls/comctl32/tests comctl32_test
16564 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
16565 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
16566 wine_fn_config_dll comm.drv16 enable_win16
16567 wine_fn_config_dll commdlg.dll16 enable_win16
16568 wine_fn_config_dll compobj.dll16 enable_win16
16569 wine_fn_config_dll compstui enable_compstui implib
16570 wine_fn_config_dll comsvcs enable_comsvcs implib
16571 wine_fn_config_dll credui enable_credui implib,po
16572 wine_fn_config_test dlls/credui/tests credui_test
16573 wine_fn_config_dll crtdll enable_crtdll implib
16574 wine_fn_config_dll crypt32 enable_crypt32 implib,po
16575 wine_fn_config_test dlls/crypt32/tests crypt32_test
16576 wine_fn_config_dll cryptdlg enable_cryptdlg po
16577 wine_fn_config_dll cryptdll enable_cryptdll implib
16578 wine_fn_config_dll cryptnet enable_cryptnet implib
16579 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
16580 wine_fn_config_dll cryptui enable_cryptui implib,po
16581 wine_fn_config_test dlls/cryptui/tests cryptui_test
16582 wine_fn_config_dll ctapi32 enable_ctapi32
16583 wine_fn_config_dll ctl3d.dll16 enable_win16
16584 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
16585 wine_fn_config_dll ctl3dv2.dll16 enable_win16
16586 wine_fn_config_dll d3d10 enable_d3d10 implib
16587 wine_fn_config_test dlls/d3d10/tests d3d10_test
16588 wine_fn_config_dll d3d10core enable_d3d10core implib
16589 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
16590 wine_fn_config_dll d3d11 enable_d3d11
16591 wine_fn_config_dll d3d8 enable_d3d8 implib
16592 wine_fn_config_test dlls/d3d8/tests d3d8_test
16593 wine_fn_config_dll d3d9 enable_d3d9 implib
16594 wine_fn_config_test dlls/d3d9/tests d3d9_test
16595 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
16596 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
16597 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
16598 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
16599 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
16600 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
16601 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
16602 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
16603 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
16604 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
16605 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
16606 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
16607 wine_fn_config_dll d3dim enable_d3dim implib
16608 wine_fn_config_dll d3drm enable_d3drm implib
16609 wine_fn_config_test dlls/d3drm/tests d3drm_test
16610 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
16611 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
16612 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
16613 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
16614 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
16615 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
16616 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
16617 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
16618 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
16619 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
16620 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
16621 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
16622 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
16623 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
16624 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
16625 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
16626 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
16627 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
16628 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
16629 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
16630 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
16631 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
16632 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
16633 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
16634 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
16635 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
16636 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
16637 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
16638 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
16639 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
16640 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
16641 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
16642 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
16643 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
16644 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
16645 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
16646 wine_fn_config_dll dbgeng enable_dbgeng implib
16647 wine_fn_config_dll dbghelp enable_dbghelp implib
16648 wine_fn_config_dll dciman32 enable_dciman32 implib
16649 wine_fn_config_dll ddeml.dll16 enable_win16
16650 wine_fn_config_dll ddraw enable_ddraw clean,implib
16651 wine_fn_config_test dlls/ddraw/tests ddraw_test
16652 wine_fn_config_dll ddrawex enable_ddrawex clean
16653 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
16654 wine_fn_config_dll devenum enable_devenum clean,po
16655 wine_fn_config_test dlls/devenum/tests devenum_test
16656 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
16657 wine_fn_config_dll difxapi enable_difxapi
16658 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
16659 wine_fn_config_test dlls/dinput/tests dinput_test
16660 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
16661 wine_fn_config_test dlls/dinput8/tests dinput8_test
16662 wine_fn_config_dll dispdib.dll16 enable_win16
16663 wine_fn_config_dll dispex enable_dispex clean
16664 wine_fn_config_test dlls/dispex/tests dispex_test
16665 wine_fn_config_dll display.drv16 enable_win16
16666 wine_fn_config_dll dmband enable_dmband clean
16667 wine_fn_config_test dlls/dmband/tests dmband_test
16668 wine_fn_config_dll dmcompos enable_dmcompos clean
16669 wine_fn_config_test dlls/dmcompos/tests dmcompos_test
16670 wine_fn_config_dll dmime enable_dmime clean
16671 wine_fn_config_test dlls/dmime/tests dmime_test
16672 wine_fn_config_dll dmloader enable_dmloader clean
16673 wine_fn_config_test dlls/dmloader/tests dmloader_test
16674 wine_fn_config_dll dmscript enable_dmscript clean
16675 wine_fn_config_test dlls/dmscript/tests dmscript_test
16676 wine_fn_config_dll dmstyle enable_dmstyle clean
16677 wine_fn_config_test dlls/dmstyle/tests dmstyle_test
16678 wine_fn_config_dll dmsynth enable_dmsynth clean
16679 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
16680 wine_fn_config_dll dmusic enable_dmusic clean
16681 wine_fn_config_test dlls/dmusic/tests dmusic_test
16682 wine_fn_config_dll dmusic32 enable_dmusic32 implib
16683 wine_fn_config_dll dnsapi enable_dnsapi implib
16684 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
16685 wine_fn_config_dll dplay enable_dplay implib
16686 wine_fn_config_dll dplayx enable_dplayx clean,implib
16687 wine_fn_config_test dlls/dplayx/tests dplayx_test
16688 wine_fn_config_dll dpnaddr enable_dpnaddr
16689 wine_fn_config_dll dpnet enable_dpnet clean,implib
16690 wine_fn_config_test dlls/dpnet/tests dpnet_test
16691 wine_fn_config_dll dpnhpast enable_dpnhpast
16692 wine_fn_config_dll dpnlobby enable_dpnlobby
16693 wine_fn_config_dll dpwsockx enable_dpwsockx
16694 wine_fn_config_dll drmclien enable_drmclien
16695 wine_fn_config_dll dsound enable_dsound clean,implib
16696 wine_fn_config_test dlls/dsound/tests dsound_test
16697 wine_fn_config_dll dssenh enable_dssenh
16698 wine_fn_config_test dlls/dssenh/tests dssenh_test
16699 wine_fn_config_dll dswave enable_dswave clean
16700 wine_fn_config_dll dwmapi enable_dwmapi implib
16701 wine_fn_config_dll dwrite enable_dwrite implib
16702 wine_fn_config_test dlls/dwrite/tests dwrite_test
16703 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
16704 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
16705 wine_fn_config_lib dxerr8
16706 wine_fn_config_lib dxerr9
16707 wine_fn_config_dll dxgi enable_dxgi implib
16708 wine_fn_config_test dlls/dxgi/tests dxgi_test
16709 wine_fn_config_lib dxguid
16710 wine_fn_config_dll explorerframe enable_explorerframe clean
16711 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
16712 wine_fn_config_dll faultrep enable_faultrep implib
16713 wine_fn_config_test dlls/faultrep/tests faultrep_test
16714 wine_fn_config_dll fltlib enable_fltlib
16715 wine_fn_config_dll fusion enable_fusion
16716 wine_fn_config_test dlls/fusion/tests fusion_test
16717 wine_fn_config_dll fwpuclnt enable_fwpuclnt
16718 wine_fn_config_dll gameux enable_gameux clean
16719 wine_fn_config_test dlls/gameux/tests gameux_test
16720 wine_fn_config_dll gdi.exe16 enable_win16
16721 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
16722 wine_fn_config_test dlls/gdi32/tests gdi32_test
16723 wine_fn_config_dll gdiplus enable_gdiplus implib
16724 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
16725 wine_fn_config_dll glu32 enable_glu32 implib
16726 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
16727 wine_fn_config_dll gpkcsp enable_gpkcsp
16728 wine_fn_config_dll hal enable_hal
16729 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
16730 wine_fn_config_dll hid enable_hid implib
16731 wine_fn_config_dll hlink enable_hlink clean,implib
16732 wine_fn_config_test dlls/hlink/tests hlink_test
16733 wine_fn_config_dll hnetcfg enable_hnetcfg clean
16734 wine_fn_config_dll httpapi enable_httpapi
16735 wine_fn_config_dll iccvid enable_iccvid po
16736 wine_fn_config_dll icmp enable_icmp
16737 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
16738 wine_fn_config_test dlls/ieframe/tests ieframe_test
16739 wine_fn_config_dll ifsmgr.vxd enable_win16
16740 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
16741 wine_fn_config_dll imagehlp enable_imagehlp implib
16742 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
16743 wine_fn_config_dll imm.dll16 enable_win16
16744 wine_fn_config_dll imm32 enable_imm32 implib
16745 wine_fn_config_test dlls/imm32/tests imm32_test
16746 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
16747 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16748 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16749 wine_fn_config_dll inetmib1 enable_inetmib1
16750 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16751 wine_fn_config_dll infosoft enable_infosoft clean
16752 wine_fn_config_test dlls/infosoft/tests infosoft_test
16753 wine_fn_config_dll initpki enable_initpki
16754 wine_fn_config_dll inkobj enable_inkobj
16755 wine_fn_config_dll inseng enable_inseng clean
16756 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16757 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16758 wine_fn_config_dll itircl enable_itircl
16759 wine_fn_config_dll itss enable_itss clean
16760 wine_fn_config_test dlls/itss/tests itss_test
16761 wine_fn_config_dll joy.cpl enable_joy_cpl po
16762 wine_fn_config_dll jscript enable_jscript clean,po
16763 wine_fn_config_test dlls/jscript/tests jscript_test
16764 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
16765 wine_fn_config_test dlls/kernel32/tests kernel32_test
16766 wine_fn_config_dll keyboard.drv16 enable_win16
16767 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16768 wine_fn_config_dll ktmw32 enable_ktmw32
16769 wine_fn_config_dll loadperf enable_loadperf implib
16770 wine_fn_config_dll localspl enable_localspl po
16771 wine_fn_config_test dlls/localspl/tests localspl_test
16772 wine_fn_config_dll localui enable_localui po
16773 wine_fn_config_test dlls/localui/tests localui_test
16774 wine_fn_config_dll lz32 enable_lz32 implib
16775 wine_fn_config_test dlls/lz32/tests lz32_test
16776 wine_fn_config_dll lzexpand.dll16 enable_win16
16777 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16778 wine_fn_config_test dlls/mapi32/tests mapi32_test
16779 wine_fn_config_dll mapistub enable_mapistub
16780 wine_fn_config_dll mciavi32 enable_mciavi32
16781 wine_fn_config_dll mcicda enable_mcicda
16782 wine_fn_config_dll mciqtz32 enable_mciqtz32
16783 wine_fn_config_dll mciseq enable_mciseq
16784 wine_fn_config_dll mciwave enable_mciwave
16785 wine_fn_config_dll mgmtapi enable_mgmtapi
16786 wine_fn_config_dll midimap enable_midimap
16787 wine_fn_config_dll mlang enable_mlang clean,implib
16788 wine_fn_config_test dlls/mlang/tests mlang_test
16789 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
16790 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16791 wine_fn_config_dll mmdevapi enable_mmdevapi clean
16792 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16793 wine_fn_config_dll mmdevldr.vxd enable_win16
16794 wine_fn_config_dll mmsystem.dll16 enable_win16
16795 wine_fn_config_dll monodebg.vxd enable_win16
16796 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16797 wine_fn_config_dll mouse.drv16 enable_win16
16798 wine_fn_config_dll mpr enable_mpr implib,po
16799 wine_fn_config_test dlls/mpr/tests mpr_test
16800 wine_fn_config_dll mprapi enable_mprapi implib
16801 wine_fn_config_dll msacm.dll16 enable_win16
16802 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16803 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16804 wine_fn_config_test dlls/msacm32/tests msacm32_test
16805 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16806 wine_fn_config_dll mscat32 enable_mscat32
16807 wine_fn_config_dll mscms enable_mscms implib
16808 wine_fn_config_test dlls/mscms/tests mscms_test
16809 wine_fn_config_dll mscoree enable_mscoree clean
16810 wine_fn_config_test dlls/mscoree/tests mscoree_test
16811 wine_fn_config_dll msctf enable_msctf clean
16812 wine_fn_config_test dlls/msctf/tests msctf_test
16813 wine_fn_config_dll msdaps enable_msdaps clean
16814 wine_fn_config_dll msdmo enable_msdmo implib
16815 wine_fn_config_dll msftedit enable_msftedit
16816 wine_fn_config_dll msg711.acm enable_msg711_acm
16817 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16818 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
16819 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
16820 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
16821 wine_fn_config_dll msi enable_msi clean,implib,po
16822 wine_fn_config_test dlls/msi/tests msi_test
16823 wine_fn_config_dll msident enable_msident clean
16824 wine_fn_config_dll msimg32 enable_msimg32 implib
16825 wine_fn_config_dll msimsg enable_msimsg
16826 wine_fn_config_dll msimtf enable_msimtf clean
16827 wine_fn_config_dll msisip enable_msisip
16828 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16829 wine_fn_config_dll msls31 enable_msls31
16830 wine_fn_config_dll msnet32 enable_msnet32
16831 wine_fn_config_dll mspatcha enable_mspatcha
16832 wine_fn_config_dll msrle32 enable_msrle32 po
16833 wine_fn_config_test dlls/msrle32/tests msrle32_test
16834 wine_fn_config_dll mssign32 enable_mssign32
16835 wine_fn_config_dll mssip32 enable_mssip32
16836 wine_fn_config_dll mstask enable_mstask clean
16837 wine_fn_config_test dlls/mstask/tests mstask_test
16838 wine_fn_config_dll msvcirt enable_msvcirt
16839 wine_fn_config_dll msvcm80 enable_msvcm80
16840 wine_fn_config_dll msvcm90 enable_msvcm90
16841 wine_fn_config_dll msvcp100 enable_msvcp100
16842 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16843 wine_fn_config_dll msvcp110 enable_msvcp110
16844 wine_fn_config_dll msvcp60 enable_msvcp60
16845 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16846 wine_fn_config_dll msvcp70 enable_msvcp70
16847 wine_fn_config_dll msvcp71 enable_msvcp71
16848 wine_fn_config_dll msvcp80 enable_msvcp80
16849 wine_fn_config_dll msvcp90 enable_msvcp90
16850 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16851 wine_fn_config_dll msvcr100 enable_msvcr100 implib
16852 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16853 wine_fn_config_dll msvcr110 enable_msvcr110 implib
16854 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16855 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16856 wine_fn_config_dll msvcr80 enable_msvcr80 implib
16857 wine_fn_config_dll msvcr90 enable_msvcr90 implib
16858 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16859 wine_fn_config_dll msvcrt enable_msvcrt implib
16860 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16861 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16862 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16863 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16864 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16865 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16866 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16867 wine_fn_config_dll msvidc32 enable_msvidc32 po
16868 wine_fn_config_dll msvideo.dll16 enable_win16
16869 wine_fn_config_dll mswsock enable_mswsock implib
16870 wine_fn_config_dll msxml enable_msxml clean
16871 wine_fn_config_dll msxml2 enable_msxml2 clean
16872 wine_fn_config_dll msxml3 enable_msxml3 clean
16873 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
16874 wine_fn_config_dll msxml4 enable_msxml4 clean
16875 wine_fn_config_dll msxml6 enable_msxml6 clean
16876 wine_fn_config_dll nddeapi enable_nddeapi implib
16877 wine_fn_config_dll netapi32 enable_netapi32 implib
16878 wine_fn_config_test dlls/netapi32/tests netapi32_test
16879 wine_fn_config_dll netcfgx enable_netcfgx
16880 wine_fn_config_dll newdev enable_newdev implib
16881 wine_fn_config_dll normaliz enable_normaliz implib
16882 wine_fn_config_dll npmshtml enable_npmshtml
16883 wine_fn_config_dll ntdll enable_ntdll implib
16884 wine_fn_config_test dlls/ntdll/tests ntdll_test
16885 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16886 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16887 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16888 wine_fn_config_dll ntprint enable_ntprint
16889 wine_fn_config_test dlls/ntprint/tests ntprint_test
16890 wine_fn_config_dll objsel enable_objsel clean
16891 wine_fn_config_dll odbc32 enable_odbc32 implib
16892 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16893 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16894 wine_fn_config_dll odbccu32 enable_odbccu32
16895 wine_fn_config_dll ole2.dll16 enable_win16
16896 wine_fn_config_dll ole2conv.dll16 enable_win16
16897 wine_fn_config_dll ole2disp.dll16 enable_win16
16898 wine_fn_config_dll ole2nls.dll16 enable_win16
16899 wine_fn_config_dll ole2prox.dll16 enable_win16
16900 wine_fn_config_dll ole2thk.dll16 enable_win16
16901 wine_fn_config_dll ole32 enable_ole32 clean,implib
16902 wine_fn_config_test dlls/ole32/tests ole32_test
16903 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
16904 wine_fn_config_test dlls/oleacc/tests oleacc_test
16905 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
16906 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
16907 wine_fn_config_dll olecli.dll16 enable_win16
16908 wine_fn_config_dll olecli32 enable_olecli32 implib
16909 wine_fn_config_dll oledb32 enable_oledb32 clean
16910 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
16911 wine_fn_config_dll oledlg enable_oledlg implib,po
16912 wine_fn_config_dll olepro32 enable_olepro32 implib
16913 wine_fn_config_dll olesvr.dll16 enable_win16
16914 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16915 wine_fn_config_dll olethk32 enable_olethk32
16916 wine_fn_config_dll openal32 enable_openal32
16917 wine_fn_config_dll opencl enable_opencl
16918 wine_fn_config_dll opengl32 enable_opengl32 implib
16919 wine_fn_config_test dlls/opengl32/tests opengl32_test
16920 wine_fn_config_dll pdh enable_pdh implib
16921 wine_fn_config_test dlls/pdh/tests pdh_test
16922 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16923 wine_fn_config_dll pidgen enable_pidgen
16924 wine_fn_config_dll powrprof enable_powrprof implib
16925 wine_fn_config_dll printui enable_printui
16926 wine_fn_config_dll propsys enable_propsys clean,implib
16927 wine_fn_config_test dlls/propsys/tests propsys_test
16928 wine_fn_config_dll psapi enable_psapi implib
16929 wine_fn_config_test dlls/psapi/tests psapi_test
16930 wine_fn_config_dll pstorec enable_pstorec clean
16931 wine_fn_config_dll qcap enable_qcap
16932 wine_fn_config_test dlls/qcap/tests qcap_test
16933 wine_fn_config_dll qedit enable_qedit clean
16934 wine_fn_config_test dlls/qedit/tests qedit_test
16935 wine_fn_config_dll qmgr enable_qmgr clean
16936 wine_fn_config_test dlls/qmgr/tests qmgr_test
16937 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
16938 wine_fn_config_dll quartz enable_quartz clean,implib
16939 wine_fn_config_test dlls/quartz/tests quartz_test clean
16940 wine_fn_config_dll query enable_query
16941 wine_fn_config_dll rasapi16.dll16 enable_win16
16942 wine_fn_config_dll rasapi32 enable_rasapi32 implib
16943 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
16944 wine_fn_config_dll rasdlg enable_rasdlg implib
16945 wine_fn_config_dll regapi enable_regapi
16946 wine_fn_config_dll resutils enable_resutils implib
16947 wine_fn_config_dll riched20 enable_riched20 implib
16948 wine_fn_config_test dlls/riched20/tests riched20_test
16949 wine_fn_config_dll riched32 enable_riched32
16950 wine_fn_config_test dlls/riched32/tests riched32_test
16951 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
16952 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
16953 wine_fn_config_dll rsabase enable_rsabase
16954 wine_fn_config_dll rsaenh enable_rsaenh implib
16955 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
16956 wine_fn_config_dll rstrtmgr enable_rstrtmgr
16957 wine_fn_config_dll rtutils enable_rtutils implib
16958 wine_fn_config_dll samlib enable_samlib
16959 wine_fn_config_dll sane.ds enable_sane_ds po
16960 wine_fn_config_dll scarddlg enable_scarddlg
16961 wine_fn_config_dll sccbase enable_sccbase
16962 wine_fn_config_dll schannel enable_schannel
16963 wine_fn_config_test dlls/schannel/tests schannel_test
16964 wine_fn_config_dll scrrun enable_scrrun clean
16965 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
16966 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16967 wine_fn_config_dll secur32 enable_secur32 implib
16968 wine_fn_config_test dlls/secur32/tests secur32_test
16969 wine_fn_config_dll security enable_security
16970 wine_fn_config_dll sensapi enable_sensapi implib
16971 wine_fn_config_dll serialui enable_serialui implib,po
16972 wine_fn_config_test dlls/serialui/tests serialui_test
16973 wine_fn_config_dll setupapi enable_setupapi implib,po
16974 wine_fn_config_test dlls/setupapi/tests setupapi_test
16975 wine_fn_config_dll setupx.dll16 enable_win16
16976 wine_fn_config_dll sfc enable_sfc implib
16977 wine_fn_config_dll sfc_os enable_sfc_os implib
16978 wine_fn_config_dll shdoclc enable_shdoclc po
16979 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
16980 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16981 wine_fn_config_dll shell.dll16 enable_win16
16982 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
16983 wine_fn_config_test dlls/shell32/tests shell32_test
16984 wine_fn_config_dll shfolder enable_shfolder implib
16985 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16986 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16987 wine_fn_config_dll slbcsp enable_slbcsp
16988 wine_fn_config_dll slc enable_slc implib
16989 wine_fn_config_dll snmpapi enable_snmpapi implib
16990 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16991 wine_fn_config_dll softpub enable_softpub
16992 wine_fn_config_dll sound.drv16 enable_win16
16993 wine_fn_config_dll spoolss enable_spoolss implib
16994 wine_fn_config_test dlls/spoolss/tests spoolss_test
16995 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
16996 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
16997 wine_fn_config_dll sti enable_sti clean,implib
16998 wine_fn_config_test dlls/sti/tests sti_test
16999 wine_fn_config_dll storage.dll16 enable_win16
17000 wine_fn_config_dll stress.dll16 enable_win16
17001 wine_fn_config_lib strmbase
17002 wine_fn_config_lib strmiids
17003 wine_fn_config_dll svrapi enable_svrapi
17004 wine_fn_config_dll sxs enable_sxs implib
17005 wine_fn_config_test dlls/sxs/tests sxs_test
17006 wine_fn_config_dll system.drv16 enable_win16
17007 wine_fn_config_dll t2embed enable_t2embed
17008 wine_fn_config_dll tapi32 enable_tapi32 implib
17009 wine_fn_config_dll taskschd enable_taskschd clean
17010 wine_fn_config_test dlls/taskschd/tests taskschd_test
17011 wine_fn_config_dll toolhelp.dll16 enable_win16
17012 wine_fn_config_dll traffic enable_traffic
17013 wine_fn_config_dll twain.dll16 enable_win16
17014 wine_fn_config_dll twain_32 enable_twain_32
17015 wine_fn_config_test dlls/twain_32/tests twain_32_test
17016 wine_fn_config_dll typelib.dll16 enable_win16
17017 wine_fn_config_dll unicows enable_unicows implib
17018 wine_fn_config_dll updspapi enable_updspapi
17019 wine_fn_config_dll url enable_url implib
17020 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17021 wine_fn_config_test dlls/urlmon/tests urlmon_test
17022 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17023 wine_fn_config_dll user.exe16 enable_win16
17024 wine_fn_config_dll user32 enable_user32 clean,implib,po
17025 wine_fn_config_test dlls/user32/tests user32_test
17026 wine_fn_config_dll userenv enable_userenv implib
17027 wine_fn_config_test dlls/userenv/tests userenv_test
17028 wine_fn_config_dll usp10 enable_usp10 implib
17029 wine_fn_config_test dlls/usp10/tests usp10_test
17030 wine_fn_config_lib uuid
17031 wine_fn_config_dll uxtheme enable_uxtheme implib
17032 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17033 wine_fn_config_dll vbscript enable_vbscript clean
17034 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17035 wine_fn_config_dll vcomp enable_vcomp
17036 wine_fn_config_dll vcomp100 enable_vcomp100
17037 wine_fn_config_dll vcomp90 enable_vcomp90
17038 wine_fn_config_dll vdhcp.vxd enable_win16
17039 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17040 wine_fn_config_dll ver.dll16 enable_win16
17041 wine_fn_config_dll version enable_version implib
17042 wine_fn_config_test dlls/version/tests version_test
17043 wine_fn_config_dll vmm.vxd enable_win16
17044 wine_fn_config_dll vnbt.vxd enable_win16
17045 wine_fn_config_dll vnetbios.vxd enable_win16
17046 wine_fn_config_dll vtdapi.vxd enable_win16
17047 wine_fn_config_dll vwin32.vxd enable_win16
17048 wine_fn_config_dll w32skrnl enable_win16
17049 wine_fn_config_dll w32sys.dll16 enable_win16
17050 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17051 wine_fn_config_dll wbemprox enable_wbemprox clean
17052 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17053 wine_fn_config_dll webservices enable_webservices implib
17054 wine_fn_config_dll wer enable_wer implib
17055 wine_fn_config_test dlls/wer/tests wer_test
17056 wine_fn_config_dll wevtapi enable_wevtapi
17057 wine_fn_config_dll wiaservc enable_wiaservc clean
17058 wine_fn_config_dll win32s16.dll16 enable_win16
17059 wine_fn_config_dll win87em.dll16 enable_win16
17060 wine_fn_config_dll winaspi.dll16 enable_win16
17061 wine_fn_config_dll windebug.dll16 enable_win16
17062 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17063 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17064 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17065 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17066 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17067 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17068 wine_fn_config_lib winecrt0
17069 wine_fn_config_dll wined3d enable_wined3d implib
17070 wine_fn_config_dll winegstreamer enable_winegstreamer
17071 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17072 wine_fn_config_dll winemac.drv enable_winemac_drv
17073 wine_fn_config_dll winemapi enable_winemapi
17074 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17075 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17076 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17077 wine_fn_config_dll wineps16.drv16 enable_win16
17078 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17079 wine_fn_config_dll winex11.drv enable_winex11_drv
17080 wine_fn_config_dll wing.dll16 enable_win16
17081 wine_fn_config_dll wing32 enable_wing32
17082 wine_fn_config_dll winhttp enable_winhttp clean,implib
17083 wine_fn_config_test dlls/winhttp/tests winhttp_test
17084 wine_fn_config_dll wininet enable_wininet implib,po
17085 wine_fn_config_test dlls/wininet/tests wininet_test
17086 wine_fn_config_dll winmm enable_winmm implib,po
17087 wine_fn_config_test dlls/winmm/tests winmm_test
17088 wine_fn_config_dll winnls.dll16 enable_win16
17089 wine_fn_config_dll winnls32 enable_winnls32 implib
17090 wine_fn_config_dll winscard enable_winscard implib
17091 wine_fn_config_dll winsock.dll16 enable_win16
17092 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17093 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17094 wine_fn_config_dll winsta enable_winsta
17095 wine_fn_config_dll wintab.dll16 enable_win16
17096 wine_fn_config_dll wintab32 enable_wintab32 implib
17097 wine_fn_config_test dlls/wintab32/tests wintab32_test
17098 wine_fn_config_dll wintrust enable_wintrust implib
17099 wine_fn_config_test dlls/wintrust/tests wintrust_test
17100 wine_fn_config_dll wlanapi enable_wlanapi
17101 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17102 wine_fn_config_test dlls/wldap32/tests wldap32_test
17103 wine_fn_config_dll wmi enable_wmi
17104 wine_fn_config_dll wmiutils enable_wmiutils clean
17105 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17106 wine_fn_config_dll wmp enable_wmp clean
17107 wine_fn_config_dll wmvcore enable_wmvcore
17108 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17109 wine_fn_config_dll wow32 enable_win16 implib
17110 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17111 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17112 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17113 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17114 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17115 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17116 wine_fn_config_dll wsock32 enable_wsock32 implib
17117 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17118 wine_fn_config_dll wuapi enable_wuapi clean
17119 wine_fn_config_dll wuaueng enable_wuaueng
17120 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17121 wine_fn_config_dll xinput1_1 enable_xinput1_1
17122 wine_fn_config_dll xinput1_2 enable_xinput1_2
17123 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17124 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17125 wine_fn_config_dll xinput1_4 enable_xinput1_4
17126 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17127 wine_fn_config_dll xmllite enable_xmllite
17128 wine_fn_config_test dlls/xmllite/tests xmllite_test
17129 wine_fn_config_dll xolehlp enable_xolehlp
17130 wine_fn_config_dll xpsprint enable_xpsprint
17131 wine_fn_config_dll xpssvcs enable_xpssvcs
17132 wine_fn_config_makefile documentation enable_documentation clean
17133 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17134 wine_fn_config_makefile include enable_include clean,install-dev
17135 wine_fn_config_makefile libs/port enable_libs_port
17136 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17137 wine_fn_config_makefile libs/wpp enable_libs_wpp
17138 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17139 wine_fn_config_program arp enable_arp install
17140 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17141 wine_fn_config_program attrib enable_attrib install,po
17142 wine_fn_config_program cabarc enable_cabarc install
17143 wine_fn_config_program cacls enable_cacls install
17144 wine_fn_config_program clock enable_clock install,po
17145 wine_fn_config_program cmd enable_cmd install,po
17146 wine_fn_config_test programs/cmd/tests cmd.exe_test
17147 wine_fn_config_program conhost enable_conhost install
17148 wine_fn_config_program control enable_control install
17149 wine_fn_config_program cscript enable_cscript install
17150 wine_fn_config_program dxdiag enable_dxdiag install,po
17151 wine_fn_config_program eject enable_eject install
17152 wine_fn_config_program expand enable_expand install
17153 wine_fn_config_program explorer enable_explorer install,po
17154 wine_fn_config_program extrac32 enable_extrac32 install
17155 wine_fn_config_program findstr enable_findstr install
17156 wine_fn_config_program hh enable_hh install
17157 wine_fn_config_program hostname enable_hostname install,po
17158 wine_fn_config_program icinfo enable_icinfo install
17159 wine_fn_config_program iexplore enable_iexplore install
17160 wine_fn_config_program ipconfig enable_ipconfig install,po
17161 wine_fn_config_program lodctr enable_lodctr install
17162 wine_fn_config_program mofcomp enable_mofcomp install
17163 wine_fn_config_program mshta enable_mshta install
17164 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17165 wine_fn_config_program net enable_net install,po
17166 wine_fn_config_program netsh enable_netsh install
17167 wine_fn_config_program netstat enable_netstat install,po
17168 wine_fn_config_program ngen enable_ngen install
17169 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17170 wine_fn_config_program oleview enable_oleview install,po
17171 wine_fn_config_program ping enable_ping install
17172 wine_fn_config_program plugplay enable_plugplay install
17173 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17174 wine_fn_config_program progman enable_progman install,po
17175 wine_fn_config_program reg enable_reg install,po
17176 wine_fn_config_program regasm enable_regasm install
17177 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17178 wine_fn_config_test programs/regedit/tests regedit.exe_test
17179 wine_fn_config_program regsvcs enable_regsvcs install
17180 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
17181 wine_fn_config_program rpcss enable_rpcss clean,install
17182 wine_fn_config_program rundll.exe16 enable_win16 install
17183 wine_fn_config_program rundll32 enable_rundll32 install
17184 wine_fn_config_program sc enable_sc install
17185 wine_fn_config_program schtasks enable_schtasks install
17186 wine_fn_config_program secedit enable_secedit install
17187 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17188 wine_fn_config_program services enable_services clean,install
17189 wine_fn_config_test programs/services/tests services.exe_test
17190 wine_fn_config_program spoolsv enable_spoolsv install
17191 wine_fn_config_program start enable_start install,po
17192 wine_fn_config_program svchost enable_svchost install
17193 wine_fn_config_program taskkill enable_taskkill install,po
17194 wine_fn_config_program tasklist enable_tasklist install
17195 wine_fn_config_program taskmgr enable_taskmgr install,po
17196 wine_fn_config_program termsv enable_termsv install
17197 wine_fn_config_program uninstaller enable_uninstaller install,po
17198 wine_fn_config_program unlodctr enable_unlodctr install
17199 wine_fn_config_program view enable_view install,po
17200 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17201 wine_fn_config_program winebrowser enable_winebrowser install
17202 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17203 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17204 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17205 wine_fn_config_program winedevice enable_winedevice install
17206 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17207 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17208 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17209 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17210 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17211 wine_fn_config_program winetest enable_winetest clean
17212 wine_fn_config_program winevdm enable_win16 install
17213 wine_fn_config_program winhelp.exe16 enable_win16 install
17214 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17215 wine_fn_config_program winoldap.mod16 enable_win16 install
17216 wine_fn_config_program winver enable_winver install
17217 wine_fn_config_program wmic enable_wmic install,po
17218 wine_fn_config_program wordpad enable_wordpad install,po
17219 wine_fn_config_program write enable_write install,po
17220 wine_fn_config_program wscript enable_wscript clean,install
17221 wine_fn_config_test programs/wscript/tests wscript.exe_test
17222 wine_fn_config_program wusa enable_wusa install
17223 wine_fn_config_program xcopy enable_xcopy install,po
17224 wine_fn_config_test programs/xcopy/tests xcopy.exe_test
17225 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17226 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17227 wine_fn_config_tool tools/widl clean,install-dev,manpage
17228 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17229 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17230 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17231 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17232 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17234 LINGUAS="\
17235 ar \
17236 bg \
17237 ca \
17238 cs \
17239 da \
17240 de \
17241 el \
17242 en \
17243 en_US \
17244 eo \
17245 es \
17246 fa \
17247 fi \
17248 fr \
17249 he \
17250 hi \
17251 hr \
17252 hu \
17253 it \
17254 ja \
17255 ko \
17256 lt \
17257 ml \
17258 nb_NO \
17259 nl \
17260 or \
17261 pa \
17262 pl \
17263 pt_BR \
17264 pt_PT \
17265 rm \
17266 ro \
17267 ru \
17268 sk \
17269 sl \
17270 sr_RS@cyrillic \
17271 sr_RS@latin \
17272 sv \
17273 te \
17274 th \
17275 tr \
17276 uk \
17277 wa \
17278 zh_CN \
17279 zh_TW"
17284 wine_fn_ignore_file ".gitignore"
17285 wine_fn_ignore_file "Makefile"
17286 wine_fn_ignore_file "TAGS"
17287 wine_fn_ignore_file "tags"
17288 wine_fn_ignore_file "autom4te.cache"
17289 wine_fn_ignore_file "config.cache"
17290 wine_fn_ignore_file "config.log"
17291 wine_fn_ignore_file "config.status"
17292 wine_fn_ignore_file "configure.lineno"
17293 wine_fn_ignore_file "include/config.h"
17294 wine_fn_ignore_file "include/stamp-h"
17295 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine"
17297 ac_config_commands="$ac_config_commands Makefile"
17300 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17304 if test "x$enable_maintainer_mode" = xyes
17305 then
17306 wine_fn_append_rule "configure: configure.ac aclocal.m4
17307 autoconf --warnings=all
17308 include/config.h.in: include/stamp-h.in
17309 include/stamp-h.in: configure.ac aclocal.m4
17310 autoheader --warnings=all
17311 @echo timestamp > \$@"
17314 if test "x$with_gettextpo" = xyes
17315 then
17316 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17317 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17318 \$(LINGUAS:%=po/%.po): po/wine.pot
17319 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17320 po/wine.pot: \$(ALL_POT_FILES)
17321 msgcat -o \$@ \$(ALL_POT_FILES)"
17324 if test "$MSGFMT" != false
17325 then
17326 wine_fn_append_rule "__builddeps__: \$(LINGUAS:%=po/%.mo)
17327 clean::
17328 \$(RM) \$(LINGUAS:%=po/%.mo)"
17330 posrc="po"
17331 test "$srcdir" = . || posrc="$srcdir/po"
17332 for i in $LINGUAS
17334 wine_fn_ignore_file "po/$i.mo"
17335 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17336 \$(MSGFMT) -o \$@ $posrc/$i.po"
17337 done
17338 else
17339 LINGUAS=
17342 if test "x$enable_tools" != xno
17343 then
17344 ac_config_commands="$ac_config_commands tools"
17346 wine_fn_ignore_file "tools/makedep$ac_exeext"
17347 wine_fn_append_rule "tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h
17348 \$(CC) -Iinclude -I$srcdir/include -D__WINESRC__ \$(EXTRACFLAGS) \$(CPPFLAGS) \$(CFLAGS) -o \$@ $srcdir/tools/makedep.c \$(LDFLAGS)
17349 clean:: __clean__
17350 \$(RM) tools/makedep$ac_exeext"
17351 else
17352 wine_fn_append_rule "\$(MAKEDEP):
17353 @echo \"You need to run make in $TOOLSDIR first\" && false"
17356 if test -n "$with_wine64"
17357 then
17358 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17359 fonts server tools:
17360 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17361 $with_wine64/loader/wine:
17362 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17363 $with_wine64/loader/wine-preloader:
17364 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17365 clean::
17366 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17367 else
17368 as_fn_append LOADER_RULES "
17369 all: wine.inf
17371 install install-lib:: wine.inf install-man-pages
17372 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17373 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17375 uninstall::
17376 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17380 if test "$srcdir" = .
17381 then
17382 ac_config_commands="$ac_config_commands .gitignore"
17386 $as_echo " done" >&6
17387 cat >confcache <<\_ACEOF
17388 # This file is a shell script that caches the results of configure
17389 # tests run on this system so they can be shared between configure
17390 # scripts and configure runs, see configure's option --config-cache.
17391 # It is not useful on other systems. If it contains results you don't
17392 # want to keep, you may remove or edit it.
17394 # config.status only pays attention to the cache file if you give it
17395 # the --recheck option to rerun configure.
17397 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17398 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17399 # following values.
17401 _ACEOF
17403 # The following way of writing the cache mishandles newlines in values,
17404 # but we know of no workaround that is simple, portable, and efficient.
17405 # So, we kill variables containing newlines.
17406 # Ultrix sh set writes to stderr and can't be redirected directly,
17407 # and sets the high bit in the cache file unless we assign to the vars.
17409 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17410 eval ac_val=\$$ac_var
17411 case $ac_val in #(
17412 *${as_nl}*)
17413 case $ac_var in #(
17414 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17415 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17416 esac
17417 case $ac_var in #(
17418 _ | IFS | as_nl) ;; #(
17419 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17420 *) { eval $ac_var=; unset $ac_var;} ;;
17421 esac ;;
17422 esac
17423 done
17425 (set) 2>&1 |
17426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17427 *${as_nl}ac_space=\ *)
17428 # `set' does not quote correctly, so add quotes: double-quote
17429 # substitution turns \\\\ into \\, and sed turns \\ into \.
17430 sed -n \
17431 "s/'/'\\\\''/g;
17432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17433 ;; #(
17435 # `set' quotes correctly as required by POSIX, so do not add quotes.
17436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17438 esac |
17439 sort
17441 sed '
17442 /^ac_cv_env_/b end
17443 t clear
17444 :clear
17445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17446 t end
17447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17448 :end' >>confcache
17449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17450 if test -w "$cache_file"; then
17451 if test "x$cache_file" != "x/dev/null"; then
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17453 $as_echo "$as_me: updating cache $cache_file" >&6;}
17454 if test ! -f "$cache_file" || test -h "$cache_file"; then
17455 cat confcache >"$cache_file"
17456 else
17457 case $cache_file in #(
17458 */* | ?:*)
17459 mv -f confcache "$cache_file"$$ &&
17460 mv -f "$cache_file"$$ "$cache_file" ;; #(
17462 mv -f confcache "$cache_file" ;;
17463 esac
17466 else
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17468 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17471 rm -f confcache
17473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17474 # Let make expand exec_prefix.
17475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17477 DEFS=-DHAVE_CONFIG_H
17479 ac_libobjs=
17480 ac_ltlibobjs=
17482 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17483 # 1. Remove the extension, and $U if already installed.
17484 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17485 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17486 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17487 # will be set to the directory where LIBOBJS objects are built.
17488 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17489 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17490 done
17491 LIBOBJS=$ac_libobjs
17493 LTLIBOBJS=$ac_ltlibobjs
17497 : "${CONFIG_STATUS=./config.status}"
17498 ac_write_fail=0
17499 ac_clean_files_save=$ac_clean_files
17500 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17502 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17503 as_write_fail=0
17504 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17505 #! $SHELL
17506 # Generated by $as_me.
17507 # Run this file to recreate the current configuration.
17508 # Compiler output produced by configure, useful for debugging
17509 # configure, is in config.log if it exists.
17511 debug=false
17512 ac_cs_recheck=false
17513 ac_cs_silent=false
17515 SHELL=\${CONFIG_SHELL-$SHELL}
17516 export SHELL
17517 _ASEOF
17518 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17519 ## -------------------- ##
17520 ## M4sh Initialization. ##
17521 ## -------------------- ##
17523 # Be more Bourne compatible
17524 DUALCASE=1; export DUALCASE # for MKS sh
17525 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17526 emulate sh
17527 NULLCMD=:
17528 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17529 # is contrary to our usage. Disable this feature.
17530 alias -g '${1+"$@"}'='"$@"'
17531 setopt NO_GLOB_SUBST
17532 else
17533 case `(set -o) 2>/dev/null` in #(
17534 *posix*) :
17535 set -o posix ;; #(
17536 *) :
17538 esac
17542 as_nl='
17544 export as_nl
17545 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17546 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17547 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17548 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17549 # Prefer a ksh shell builtin over an external printf program on Solaris,
17550 # but without wasting forks for bash or zsh.
17551 if test -z "$BASH_VERSION$ZSH_VERSION" \
17552 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17553 as_echo='print -r --'
17554 as_echo_n='print -rn --'
17555 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17556 as_echo='printf %s\n'
17557 as_echo_n='printf %s'
17558 else
17559 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17560 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17561 as_echo_n='/usr/ucb/echo -n'
17562 else
17563 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17564 as_echo_n_body='eval
17565 arg=$1;
17566 case $arg in #(
17567 *"$as_nl"*)
17568 expr "X$arg" : "X\\(.*\\)$as_nl";
17569 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17570 esac;
17571 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17573 export as_echo_n_body
17574 as_echo_n='sh -c $as_echo_n_body as_echo'
17576 export as_echo_body
17577 as_echo='sh -c $as_echo_body as_echo'
17580 # The user is always right.
17581 if test "${PATH_SEPARATOR+set}" != set; then
17582 PATH_SEPARATOR=:
17583 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17584 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17585 PATH_SEPARATOR=';'
17590 # IFS
17591 # We need space, tab and new line, in precisely that order. Quoting is
17592 # there to prevent editors from complaining about space-tab.
17593 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17594 # splitting by setting IFS to empty value.)
17595 IFS=" "" $as_nl"
17597 # Find who we are. Look in the path if we contain no directory separator.
17598 as_myself=
17599 case $0 in #((
17600 *[\\/]* ) as_myself=$0 ;;
17601 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17602 for as_dir in $PATH
17604 IFS=$as_save_IFS
17605 test -z "$as_dir" && as_dir=.
17606 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17607 done
17608 IFS=$as_save_IFS
17611 esac
17612 # We did not find ourselves, most probably we were run as `sh COMMAND'
17613 # in which case we are not to be found in the path.
17614 if test "x$as_myself" = x; then
17615 as_myself=$0
17617 if test ! -f "$as_myself"; then
17618 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17619 exit 1
17622 # Unset variables that we do not need and which cause bugs (e.g. in
17623 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17624 # suppresses any "Segmentation fault" message there. '((' could
17625 # trigger a bug in pdksh 5.2.14.
17626 for as_var in BASH_ENV ENV MAIL MAILPATH
17627 do eval test x\${$as_var+set} = xset \
17628 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17629 done
17630 PS1='$ '
17631 PS2='> '
17632 PS4='+ '
17634 # NLS nuisances.
17635 LC_ALL=C
17636 export LC_ALL
17637 LANGUAGE=C
17638 export LANGUAGE
17640 # CDPATH.
17641 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17644 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17645 # ----------------------------------------
17646 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17647 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17648 # script with STATUS, using 1 if that was 0.
17649 as_fn_error ()
17651 as_status=$1; test $as_status -eq 0 && as_status=1
17652 if test "$4"; then
17653 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17654 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17656 $as_echo "$as_me: error: $2" >&2
17657 as_fn_exit $as_status
17658 } # as_fn_error
17661 # as_fn_set_status STATUS
17662 # -----------------------
17663 # Set $? to STATUS, without forking.
17664 as_fn_set_status ()
17666 return $1
17667 } # as_fn_set_status
17669 # as_fn_exit STATUS
17670 # -----------------
17671 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17672 as_fn_exit ()
17674 set +e
17675 as_fn_set_status $1
17676 exit $1
17677 } # as_fn_exit
17679 # as_fn_unset VAR
17680 # ---------------
17681 # Portably unset VAR.
17682 as_fn_unset ()
17684 { eval $1=; unset $1;}
17686 as_unset=as_fn_unset
17687 # as_fn_append VAR VALUE
17688 # ----------------------
17689 # Append the text in VALUE to the end of the definition contained in VAR. Take
17690 # advantage of any shell optimizations that allow amortized linear growth over
17691 # repeated appends, instead of the typical quadratic growth present in naive
17692 # implementations.
17693 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17694 eval 'as_fn_append ()
17696 eval $1+=\$2
17698 else
17699 as_fn_append ()
17701 eval $1=\$$1\$2
17703 fi # as_fn_append
17705 # as_fn_arith ARG...
17706 # ------------------
17707 # Perform arithmetic evaluation on the ARGs, and store the result in the
17708 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17709 # must be portable across $(()) and expr.
17710 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17711 eval 'as_fn_arith ()
17713 as_val=$(( $* ))
17715 else
17716 as_fn_arith ()
17718 as_val=`expr "$@" || test $? -eq 1`
17720 fi # as_fn_arith
17723 if expr a : '\(a\)' >/dev/null 2>&1 &&
17724 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17725 as_expr=expr
17726 else
17727 as_expr=false
17730 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17731 as_basename=basename
17732 else
17733 as_basename=false
17736 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17737 as_dirname=dirname
17738 else
17739 as_dirname=false
17742 as_me=`$as_basename -- "$0" ||
17743 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17744 X"$0" : 'X\(//\)$' \| \
17745 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17746 $as_echo X/"$0" |
17747 sed '/^.*\/\([^/][^/]*\)\/*$/{
17748 s//\1/
17751 /^X\/\(\/\/\)$/{
17752 s//\1/
17755 /^X\/\(\/\).*/{
17756 s//\1/
17759 s/.*/./; q'`
17761 # Avoid depending upon Character Ranges.
17762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17765 as_cr_digits='0123456789'
17766 as_cr_alnum=$as_cr_Letters$as_cr_digits
17768 ECHO_C= ECHO_N= ECHO_T=
17769 case `echo -n x` in #(((((
17770 -n*)
17771 case `echo 'xy\c'` in
17772 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17773 xy) ECHO_C='\c';;
17774 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17775 ECHO_T=' ';;
17776 esac;;
17778 ECHO_N='-n';;
17779 esac
17781 rm -f conf$$ conf$$.exe conf$$.file
17782 if test -d conf$$.dir; then
17783 rm -f conf$$.dir/conf$$.file
17784 else
17785 rm -f conf$$.dir
17786 mkdir conf$$.dir 2>/dev/null
17788 if (echo >conf$$.file) 2>/dev/null; then
17789 if ln -s conf$$.file conf$$ 2>/dev/null; then
17790 as_ln_s='ln -s'
17791 # ... but there are two gotchas:
17792 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17793 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17794 # In both cases, we have to default to `cp -pR'.
17795 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17796 as_ln_s='cp -pR'
17797 elif ln conf$$.file conf$$ 2>/dev/null; then
17798 as_ln_s=ln
17799 else
17800 as_ln_s='cp -pR'
17802 else
17803 as_ln_s='cp -pR'
17805 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17806 rmdir conf$$.dir 2>/dev/null
17809 # as_fn_mkdir_p
17810 # -------------
17811 # Create "$as_dir" as a directory, including parents if necessary.
17812 as_fn_mkdir_p ()
17815 case $as_dir in #(
17816 -*) as_dir=./$as_dir;;
17817 esac
17818 test -d "$as_dir" || eval $as_mkdir_p || {
17819 as_dirs=
17820 while :; do
17821 case $as_dir in #(
17822 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17823 *) as_qdir=$as_dir;;
17824 esac
17825 as_dirs="'$as_qdir' $as_dirs"
17826 as_dir=`$as_dirname -- "$as_dir" ||
17827 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17828 X"$as_dir" : 'X\(//\)[^/]' \| \
17829 X"$as_dir" : 'X\(//\)$' \| \
17830 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17831 $as_echo X"$as_dir" |
17832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17833 s//\1/
17836 /^X\(\/\/\)[^/].*/{
17837 s//\1/
17840 /^X\(\/\/\)$/{
17841 s//\1/
17844 /^X\(\/\).*/{
17845 s//\1/
17848 s/.*/./; q'`
17849 test -d "$as_dir" && break
17850 done
17851 test -z "$as_dirs" || eval "mkdir $as_dirs"
17852 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17855 } # as_fn_mkdir_p
17856 if mkdir -p . 2>/dev/null; then
17857 as_mkdir_p='mkdir -p "$as_dir"'
17858 else
17859 test -d ./-p && rmdir ./-p
17860 as_mkdir_p=false
17864 # as_fn_executable_p FILE
17865 # -----------------------
17866 # Test if FILE is an executable regular file.
17867 as_fn_executable_p ()
17869 test -f "$1" && test -x "$1"
17870 } # as_fn_executable_p
17871 as_test_x='test -x'
17872 as_executable_p=as_fn_executable_p
17874 # Sed expression to map a string onto a valid CPP name.
17875 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17877 # Sed expression to map a string onto a valid variable name.
17878 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17881 exec 6>&1
17882 ## ----------------------------------- ##
17883 ## Main body of $CONFIG_STATUS script. ##
17884 ## ----------------------------------- ##
17885 _ASEOF
17886 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17889 # Save the log message, to keep $0 and so on meaningful, and to
17890 # report actual input values of CONFIG_FILES etc. instead of their
17891 # values after options handling.
17892 ac_log="
17893 This file was extended by Wine $as_me 1.7.11, which was
17894 generated by GNU Autoconf 2.69. Invocation command line was
17896 CONFIG_FILES = $CONFIG_FILES
17897 CONFIG_HEADERS = $CONFIG_HEADERS
17898 CONFIG_LINKS = $CONFIG_LINKS
17899 CONFIG_COMMANDS = $CONFIG_COMMANDS
17900 $ $0 $@
17902 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17905 _ACEOF
17907 case $ac_config_files in *"
17908 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17909 esac
17911 case $ac_config_headers in *"
17912 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17913 esac
17916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17917 # Files that config.status was made for.
17918 config_files="$ac_config_files"
17919 config_headers="$ac_config_headers"
17920 config_links="$ac_config_links"
17921 config_commands="$ac_config_commands"
17923 _ACEOF
17925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17926 ac_cs_usage="\
17927 \`$as_me' instantiates files and other configuration actions
17928 from templates according to the current configuration. Unless the files
17929 and actions are specified as TAGs, all are instantiated by default.
17931 Usage: $0 [OPTION]... [TAG]...
17933 -h, --help print this help, then exit
17934 -V, --version print version number and configuration settings, then exit
17935 --config print configuration, then exit
17936 -q, --quiet, --silent
17937 do not print progress messages
17938 -d, --debug don't remove temporary files
17939 --recheck update $as_me by reconfiguring in the same conditions
17940 --file=FILE[:TEMPLATE]
17941 instantiate the configuration file FILE
17942 --header=FILE[:TEMPLATE]
17943 instantiate the configuration header FILE
17945 Configuration files:
17946 $config_files
17948 Configuration headers:
17949 $config_headers
17951 Configuration links:
17952 $config_links
17954 Configuration commands:
17955 $config_commands
17957 Report bugs to <wine-devel@winehq.org>.
17958 Wine home page: <http://www.winehq.org>."
17960 _ACEOF
17961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17962 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17963 ac_cs_version="\\
17964 Wine config.status 1.7.11
17965 configured by $0, generated by GNU Autoconf 2.69,
17966 with options \\"\$ac_cs_config\\"
17968 Copyright (C) 2012 Free Software Foundation, Inc.
17969 This config.status script is free software; the Free Software Foundation
17970 gives unlimited permission to copy, distribute and modify it."
17972 ac_pwd='$ac_pwd'
17973 srcdir='$srcdir'
17974 test -n "\$AWK" || AWK=awk
17975 _ACEOF
17977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17978 # The default lists apply if the user does not specify any file.
17979 ac_need_defaults=:
17980 while test $# != 0
17982 case $1 in
17983 --*=?*)
17984 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17985 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17986 ac_shift=:
17988 --*=)
17989 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17990 ac_optarg=
17991 ac_shift=:
17994 ac_option=$1
17995 ac_optarg=$2
17996 ac_shift=shift
17998 esac
18000 case $ac_option in
18001 # Handling of the options.
18002 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18003 ac_cs_recheck=: ;;
18004 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18005 $as_echo "$ac_cs_version"; exit ;;
18006 --config | --confi | --conf | --con | --co | --c )
18007 $as_echo "$ac_cs_config"; exit ;;
18008 --debug | --debu | --deb | --de | --d | -d )
18009 debug=: ;;
18010 --file | --fil | --fi | --f )
18011 $ac_shift
18012 case $ac_optarg in
18013 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18014 '') as_fn_error $? "missing file argument" ;;
18015 esac
18016 as_fn_append CONFIG_FILES " '$ac_optarg'"
18017 ac_need_defaults=false;;
18018 --header | --heade | --head | --hea )
18019 $ac_shift
18020 case $ac_optarg in
18021 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18022 esac
18023 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18024 ac_need_defaults=false;;
18025 --he | --h)
18026 # Conflict between --help and --header
18027 as_fn_error $? "ambiguous option: \`$1'
18028 Try \`$0 --help' for more information.";;
18029 --help | --hel | -h )
18030 $as_echo "$ac_cs_usage"; exit ;;
18031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18032 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18033 ac_cs_silent=: ;;
18035 # This is an error.
18036 -*) as_fn_error $? "unrecognized option: \`$1'
18037 Try \`$0 --help' for more information." ;;
18039 *) as_fn_append ac_config_targets " $1"
18040 ac_need_defaults=false ;;
18042 esac
18043 shift
18044 done
18046 ac_configure_extra_args=
18048 if $ac_cs_silent; then
18049 exec 6>/dev/null
18050 ac_configure_extra_args="$ac_configure_extra_args --silent"
18053 _ACEOF
18054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18055 if \$ac_cs_recheck; then
18056 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18057 shift
18058 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18059 CONFIG_SHELL='$SHELL'
18060 export CONFIG_SHELL
18061 exec "\$@"
18064 _ACEOF
18065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18066 exec 5>>config.log
18068 echo
18069 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18070 ## Running $as_me. ##
18071 _ASBOX
18072 $as_echo "$ac_log"
18073 } >&5
18075 _ACEOF
18076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18078 # INIT-COMMANDS
18080 wine_fn_output_makefile ()
18082 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
18083 `cat $wine_rules_file`
18084 _WINE_EOF
18085 as_fn_error $? "could not create Makefile" "$LINENO" 5
18087 wine_fn_output_gitignore ()
18089 sort <<\_WINE_EOF >\$tmp/gitignore && mv -f \$tmp/gitignore \$1 && return
18090 $GITIGNORE
18091 _WINE_EOF
18092 as_fn_error $? "could not create .gitignore" "$LINENO" 5
18095 _ACEOF
18097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18099 # Handling of arguments.
18100 for ac_config_target in $ac_config_targets
18102 case $ac_config_target in
18103 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18104 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18105 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18106 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18107 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18108 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18109 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18110 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18111 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18112 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18113 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18114 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18115 "tools") CONFIG_COMMANDS="$CONFIG_COMMANDS tools" ;;
18116 ".gitignore") CONFIG_COMMANDS="$CONFIG_COMMANDS .gitignore" ;;
18118 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18119 esac
18120 done
18123 # If the user did not use the arguments to specify the items to instantiate,
18124 # then the envvar interface is used. Set only those that are not.
18125 # We use the long form for the default assignment because of an extremely
18126 # bizarre bug on SunOS 4.1.3.
18127 if $ac_need_defaults; then
18128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18130 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18134 # Have a temporary directory for convenience. Make it in the build tree
18135 # simply because there is no reason against having it here, and in addition,
18136 # creating and moving files from /tmp can sometimes cause problems.
18137 # Hook for its removal unless debugging.
18138 # Note that there is a small window in which the directory will not be cleaned:
18139 # after its creation but before its name has been assigned to `$tmp'.
18140 $debug ||
18142 tmp= ac_tmp=
18143 trap 'exit_status=$?
18144 : "${ac_tmp:=$tmp}"
18145 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18147 trap 'as_fn_exit 1' 1 2 13 15
18149 # Create a (secure) tmp directory for tmp files.
18152 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18153 test -d "$tmp"
18154 } ||
18156 tmp=./conf$$-$RANDOM
18157 (umask 077 && mkdir "$tmp")
18158 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18159 ac_tmp=$tmp
18161 # Set up the scripts for CONFIG_FILES section.
18162 # No need to generate them if there are no CONFIG_FILES.
18163 # This happens for instance with `./config.status config.h'.
18164 if test -n "$CONFIG_FILES"; then
18167 ac_cr=`echo X | tr X '\015'`
18168 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18169 # But we know of no other shell where ac_cr would be empty at this
18170 # point, so we can use a bashism as a fallback.
18171 if test "x$ac_cr" = x; then
18172 eval ac_cr=\$\'\\r\'
18174 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18175 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18176 ac_cs_awk_cr='\\r'
18177 else
18178 ac_cs_awk_cr=$ac_cr
18181 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18182 _ACEOF
18186 echo "cat >conf$$subs.awk <<_ACEOF" &&
18187 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18188 echo "_ACEOF"
18189 } >conf$$subs.sh ||
18190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18191 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18192 ac_delim='%!_!# '
18193 for ac_last_try in false false false false false :; do
18194 . ./conf$$subs.sh ||
18195 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18197 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18198 if test $ac_delim_n = $ac_delim_num; then
18199 break
18200 elif $ac_last_try; then
18201 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18202 else
18203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18205 done
18206 rm -f conf$$subs.sh
18208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18209 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18210 _ACEOF
18211 sed -n '
18213 s/^/S["/; s/!.*/"]=/
18216 s/^[^!]*!//
18217 :repl
18218 t repl
18219 s/'"$ac_delim"'$//
18220 t delim
18223 s/\(.\{148\}\)..*/\1/
18224 t more1
18225 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18228 b repl
18229 :more1
18230 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18233 s/.\{148\}//
18234 t nl
18235 :delim
18237 s/\(.\{148\}\)..*/\1/
18238 t more2
18239 s/["\\]/\\&/g; s/^/"/; s/$/"/
18242 :more2
18243 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18246 s/.\{148\}//
18247 t delim
18248 ' <conf$$subs.awk | sed '
18249 /^[^""]/{
18251 s/\n//
18253 ' >>$CONFIG_STATUS || ac_write_fail=1
18254 rm -f conf$$subs.awk
18255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18256 _ACAWK
18257 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18258 for (key in S) S_is_set[key] = 1
18259 FS = "\a"
18263 line = $ 0
18264 nfields = split(line, field, "@")
18265 substed = 0
18266 len = length(field[1])
18267 for (i = 2; i < nfields; i++) {
18268 key = field[i]
18269 keylen = length(key)
18270 if (S_is_set[key]) {
18271 value = S[key]
18272 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18273 len += length(value) + length(field[++i])
18274 substed = 1
18275 } else
18276 len += 1 + keylen
18279 print line
18282 _ACAWK
18283 _ACEOF
18284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18285 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18286 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18287 else
18289 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18290 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18291 _ACEOF
18293 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18294 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18295 # trailing colons and then remove the whole line if VPATH becomes empty
18296 # (actually we leave an empty line to preserve line numbers).
18297 if test "x$srcdir" = x.; then
18298 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18300 s///
18301 s/^/:/
18302 s/[ ]*$/:/
18303 s/:\$(srcdir):/:/g
18304 s/:\${srcdir}:/:/g
18305 s/:@srcdir@:/:/g
18306 s/^:*//
18307 s/:*$//
18309 s/\(=[ ]*\).*/\1/
18311 s/\n//
18312 s/^[^=]*=[ ]*$//
18316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18317 fi # test -n "$CONFIG_FILES"
18319 # Set up the scripts for CONFIG_HEADERS section.
18320 # No need to generate them if there are no CONFIG_HEADERS.
18321 # This happens for instance with `./config.status Makefile'.
18322 if test -n "$CONFIG_HEADERS"; then
18323 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18324 BEGIN {
18325 _ACEOF
18327 # Transform confdefs.h into an awk script `defines.awk', embedded as
18328 # here-document in config.status, that substitutes the proper values into
18329 # config.h.in to produce config.h.
18331 # Create a delimiter string that does not exist in confdefs.h, to ease
18332 # handling of long lines.
18333 ac_delim='%!_!# '
18334 for ac_last_try in false false :; do
18335 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18336 if test -z "$ac_tt"; then
18337 break
18338 elif $ac_last_try; then
18339 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18340 else
18341 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18343 done
18345 # For the awk script, D is an array of macro values keyed by name,
18346 # likewise P contains macro parameters if any. Preserve backslash
18347 # newline sequences.
18349 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18350 sed -n '
18351 s/.\{148\}/&'"$ac_delim"'/g
18352 t rset
18353 :rset
18354 s/^[ ]*#[ ]*define[ ][ ]*/ /
18355 t def
18357 :def
18358 s/\\$//
18359 t bsnl
18360 s/["\\]/\\&/g
18361 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18362 D["\1"]=" \3"/p
18363 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18365 :bsnl
18366 s/["\\]/\\&/g
18367 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18368 D["\1"]=" \3\\\\\\n"\\/p
18369 t cont
18370 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18371 t cont
18373 :cont
18375 s/.\{148\}/&'"$ac_delim"'/g
18376 t clear
18377 :clear
18378 s/\\$//
18379 t bsnlc
18380 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18382 :bsnlc
18383 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18384 b cont
18385 ' <confdefs.h | sed '
18386 s/'"$ac_delim"'/"\\\
18387 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18390 for (key in D) D_is_set[key] = 1
18391 FS = "\a"
18393 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18394 line = \$ 0
18395 split(line, arg, " ")
18396 if (arg[1] == "#") {
18397 defundef = arg[2]
18398 mac1 = arg[3]
18399 } else {
18400 defundef = substr(arg[1], 2)
18401 mac1 = arg[2]
18403 split(mac1, mac2, "(") #)
18404 macro = mac2[1]
18405 prefix = substr(line, 1, index(line, defundef) - 1)
18406 if (D_is_set[macro]) {
18407 # Preserve the white space surrounding the "#".
18408 print prefix "define", macro P[macro] D[macro]
18409 next
18410 } else {
18411 # Replace #undef with comments. This is necessary, for example,
18412 # in the case of _POSIX_SOURCE, which is predefined and required
18413 # on some systems where configure will not decide to define it.
18414 if (defundef == "undef") {
18415 print "/*", prefix defundef, macro, "*/"
18416 next
18420 { print }
18421 _ACAWK
18422 _ACEOF
18423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18424 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18425 fi # test -n "$CONFIG_HEADERS"
18428 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18429 shift
18430 for ac_tag
18432 case $ac_tag in
18433 :[FHLC]) ac_mode=$ac_tag; continue;;
18434 esac
18435 case $ac_mode$ac_tag in
18436 :[FHL]*:*);;
18437 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18438 :[FH]-) ac_tag=-:-;;
18439 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18440 esac
18441 ac_save_IFS=$IFS
18442 IFS=:
18443 set x $ac_tag
18444 IFS=$ac_save_IFS
18445 shift
18446 ac_file=$1
18447 shift
18449 case $ac_mode in
18450 :L) ac_source=$1;;
18451 :[FH])
18452 ac_file_inputs=
18453 for ac_f
18455 case $ac_f in
18456 -) ac_f="$ac_tmp/stdin";;
18457 *) # Look for the file first in the build tree, then in the source tree
18458 # (if the path is not absolute). The absolute path cannot be DOS-style,
18459 # because $ac_f cannot contain `:'.
18460 test -f "$ac_f" ||
18461 case $ac_f in
18462 [\\/$]*) false;;
18463 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18464 esac ||
18465 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18466 esac
18467 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18468 as_fn_append ac_file_inputs " '$ac_f'"
18469 done
18471 # Let's still pretend it is `configure' which instantiates (i.e., don't
18472 # use $as_me), people would be surprised to read:
18473 # /* config.h. Generated by config.status. */
18474 configure_input='Generated from '`
18475 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18476 `' by configure.'
18477 if test x"$ac_file" != x-; then
18478 configure_input="$ac_file. $configure_input"
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18480 $as_echo "$as_me: creating $ac_file" >&6;}
18482 # Neutralize special characters interpreted by sed in replacement strings.
18483 case $configure_input in #(
18484 *\&* | *\|* | *\\* )
18485 ac_sed_conf_input=`$as_echo "$configure_input" |
18486 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18487 *) ac_sed_conf_input=$configure_input;;
18488 esac
18490 case $ac_tag in
18491 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18493 esac
18495 esac
18497 ac_dir=`$as_dirname -- "$ac_file" ||
18498 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18499 X"$ac_file" : 'X\(//\)[^/]' \| \
18500 X"$ac_file" : 'X\(//\)$' \| \
18501 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18502 $as_echo X"$ac_file" |
18503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18504 s//\1/
18507 /^X\(\/\/\)[^/].*/{
18508 s//\1/
18511 /^X\(\/\/\)$/{
18512 s//\1/
18515 /^X\(\/\).*/{
18516 s//\1/
18519 s/.*/./; q'`
18520 as_dir="$ac_dir"; as_fn_mkdir_p
18521 ac_builddir=.
18523 case "$ac_dir" in
18524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18527 # A ".." for each directory in $ac_dir_suffix.
18528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18529 case $ac_top_builddir_sub in
18530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18532 esac ;;
18533 esac
18534 ac_abs_top_builddir=$ac_pwd
18535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18536 # for backward compatibility:
18537 ac_top_builddir=$ac_top_build_prefix
18539 case $srcdir in
18540 .) # We are building in place.
18541 ac_srcdir=.
18542 ac_top_srcdir=$ac_top_builddir_sub
18543 ac_abs_top_srcdir=$ac_pwd ;;
18544 [\\/]* | ?:[\\/]* ) # Absolute name.
18545 ac_srcdir=$srcdir$ac_dir_suffix;
18546 ac_top_srcdir=$srcdir
18547 ac_abs_top_srcdir=$srcdir ;;
18548 *) # Relative name.
18549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18550 ac_top_srcdir=$ac_top_build_prefix$srcdir
18551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18552 esac
18553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18556 case $ac_mode in
18559 # CONFIG_FILE
18562 _ACEOF
18564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18565 # If the template does not know about datarootdir, expand it.
18566 # FIXME: This hack should be removed a few years after 2.60.
18567 ac_datarootdir_hack=; ac_datarootdir_seen=
18568 ac_sed_dataroot='
18569 /datarootdir/ {
18573 /@datadir@/p
18574 /@docdir@/p
18575 /@infodir@/p
18576 /@localedir@/p
18577 /@mandir@/p'
18578 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18579 *datarootdir*) ac_datarootdir_seen=yes;;
18580 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18582 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18583 _ACEOF
18584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18585 ac_datarootdir_hack='
18586 s&@datadir@&$datadir&g
18587 s&@docdir@&$docdir&g
18588 s&@infodir@&$infodir&g
18589 s&@localedir@&$localedir&g
18590 s&@mandir@&$mandir&g
18591 s&\\\${datarootdir}&$datarootdir&g' ;;
18592 esac
18593 _ACEOF
18595 # Neutralize VPATH when `$srcdir' = `.'.
18596 # Shell code in configure.ac might set extrasub.
18597 # FIXME: do we really want to maintain this feature?
18598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18599 ac_sed_extra="$ac_vpsub
18600 $extrasub
18601 _ACEOF
18602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18604 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18605 s|@configure_input@|$ac_sed_conf_input|;t t
18606 s&@top_builddir@&$ac_top_builddir_sub&;t t
18607 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18608 s&@srcdir@&$ac_srcdir&;t t
18609 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18610 s&@top_srcdir@&$ac_top_srcdir&;t t
18611 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18612 s&@builddir@&$ac_builddir&;t t
18613 s&@abs_builddir@&$ac_abs_builddir&;t t
18614 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18615 $ac_datarootdir_hack
18617 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18618 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18620 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18621 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18622 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18623 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18625 which seems to be undefined. Please make sure it is defined" >&5
18626 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18627 which seems to be undefined. Please make sure it is defined" >&2;}
18629 rm -f "$ac_tmp/stdin"
18630 case $ac_file in
18631 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18632 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18633 esac \
18634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18638 # CONFIG_HEADER
18640 if test x"$ac_file" != x-; then
18642 $as_echo "/* $configure_input */" \
18643 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18644 } >"$ac_tmp/config.h" \
18645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18646 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18648 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18649 else
18650 rm -f "$ac_file"
18651 mv "$ac_tmp/config.h" "$ac_file" \
18652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18654 else
18655 $as_echo "/* $configure_input */" \
18656 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18657 || as_fn_error $? "could not create -" "$LINENO" 5
18662 # CONFIG_LINK
18665 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18667 else
18668 # Prefer the file from the source tree if names are identical.
18669 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18670 ac_source=$srcdir/$ac_source
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18674 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18676 if test ! -r "$ac_source"; then
18677 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18679 rm -f "$ac_file"
18681 # Try a relative symlink, then a hard link, then a copy.
18682 case $ac_source in
18683 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18684 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18685 esac
18686 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18687 ln "$ac_source" "$ac_file" 2>/dev/null ||
18688 cp -p "$ac_source" "$ac_file" ||
18689 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18692 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18693 $as_echo "$as_me: executing $ac_file commands" >&6;}
18695 esac
18698 case $ac_file$ac_mode in
18699 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
18700 "Makefile":C) wine_fn_output_makefile Makefile ;;
18701 "tools":C) as_dir=tools; as_fn_mkdir_p ;;
18702 ".gitignore":C) wine_fn_output_gitignore .gitignore ;;
18704 esac
18705 done # for ac_tag
18708 as_fn_exit 0
18709 _ACEOF
18710 ac_clean_files=$ac_clean_files_save
18712 test $ac_write_fail = 0 ||
18713 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18716 # configure is writing to config.log, and then calls config.status.
18717 # config.status does its own redirection, appending to config.log.
18718 # Unfortunately, on DOS this fails, as config.log is still kept open
18719 # by configure, so config.status won't be able to write to it; its
18720 # output is simply discarded. So we exec the FD to /dev/null,
18721 # effectively closing config.log, so it can be properly (re)opened and
18722 # appended to by config.status. When coming back to configure, we
18723 # need to make the FD available again.
18724 if test "$no_create" != yes; then
18725 ac_cs_success=:
18726 ac_config_status_args=
18727 test "$silent" = yes &&
18728 ac_config_status_args="$ac_config_status_args --quiet"
18729 exec 5>/dev/null
18730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18731 exec 5>>config.log
18732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18733 # would make configure fail if this is the last instruction.
18734 $ac_cs_success || as_fn_exit 1
18736 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18738 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18742 if test "$no_create" = "yes"
18743 then
18744 exit 0
18747 ac_save_IFS="$IFS"
18748 if test "x$wine_notices != "x; then
18749 echo >&6
18750 IFS="|"
18751 for msg in $wine_notices; do
18752 IFS="$ac_save_IFS"
18753 if test -n "$msg"; then
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18755 $as_echo "$as_me: $msg" >&6;}
18757 done
18759 IFS="|"
18760 for msg in $wine_warnings; do
18761 IFS="$ac_save_IFS"
18762 if test -n "$msg"; then
18763 echo >&2
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18765 $as_echo "$as_me: WARNING: $msg" >&2;}
18767 done
18768 IFS="$ac_save_IFS"
18770 $as_echo "
18771 $as_me: Finished. Do '${ac_make}' to compile Wine.
18772 " >&6