vbscript: Skip tests if we can't register ActiveX object.
[wine.git] / configure
blob00c442067f893b5d4428f4b285bffb882f0470dd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.12.
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.12'
584 PACKAGE_STRING='Wine 1.7.12'
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 ALL_VARS_RULES
629 LDAP_LIBS
630 RT_LIBS
631 POLL_LIBS
632 DL_LIBS
633 TOOLSEXT
634 UNWINDFLAGS
635 BUILTINFLAG
636 EXTRACFLAGS
637 PROCSTAT_LIBS
638 KSTAT_LIBS
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 FONTCONFIG_LIBS
648 FONTCONFIG_CFLAGS
649 CUPS_CFLAGS
650 CAPI20_LIBS
651 CAPI20_CFLAGS
652 OSS4_CFLAGS
653 ALSA_LIBS
654 GSTREAMER_LIBS
655 GSTREAMER_CFLAGS
656 GETTEXTPO_LIBS
657 Z_LIBS
658 FREETYPE_LIBS
659 FREETYPE_CFLAGS
660 LCMS2_LIBS
661 LCMS2_CFLAGS
662 RESOLV_LIBS
663 GPHOTO2_PORT_LIBS
664 GPHOTO2_PORT_CFLAGS
665 GPHOTO2_LIBS
666 GPHOTO2_CFLAGS
667 SANE_LIBS
668 SANE_CFLAGS
669 GNUTLS_LIBS
670 GNUTLS_CFLAGS
671 HAL_LIBS
672 HAL_CFLAGS
673 DBUS_LIBS
674 DBUS_CFLAGS
675 XSLT_LIBS
676 XSLT_CFLAGS
677 XML2_LIBS
678 XML2_CFLAGS
679 X_EXTRA_LIBS
680 X_LIBS
681 X_PRE_LIBS
682 X_CFLAGS
683 XMKMF
684 PTHREAD_LIBS
685 CROSSCC
686 CROSSTARGET
687 PRELINK
688 CARBON_LIBS
689 QUICKTIME_LIBS
690 OPENCL_LIBS
691 OPENAL_LIBS
692 COREAUDIO_LIBS
693 SECURITY_LIBS
694 DISKARBITRATION_LIBS
695 APPKIT_LIBS
696 CORESERVICES_LIBS
697 APPLICATIONSERVICES_LIBS
698 FORCEFEEDBACK_LIBS
699 IOKIT_LIBS
700 COREFOUNDATION_LIBS
701 LIBWINE_RULES
702 SOCKET_LIBS
703 DLLTOOL
704 LOADER_RULES
705 ALL_TEST_RESOURCES
706 READELF
708 LDRPATH_LOCAL
709 LDRPATH_INSTALL
710 DLLFLAGS
711 DLLPREFIX
712 dlldir
714 OPENGL_LIBS
715 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_com_l1_1_0
855 enable_api_ms_win_core_console_l1_1_0
856 enable_api_ms_win_core_debug_l1_1_1
857 enable_api_ms_win_core_errorhandling_l1_1_1
858 enable_api_ms_win_core_file_l1_2_0
859 enable_api_ms_win_core_handle_l1_1_0
860 enable_api_ms_win_core_heap_l1_2_0
861 enable_api_ms_win_core_heap_obsolete_l1_1_0
862 enable_api_ms_win_core_interlocked_l1_2_0
863 enable_api_ms_win_core_io_l1_1_1
864 enable_api_ms_win_core_kernel32_legacy_l1_1_0
865 enable_api_ms_win_core_libraryloader_l1_1_1
866 enable_api_ms_win_core_localization_l1_2_0
867 enable_api_ms_win_core_localization_obsolete_l1_1_0
868 enable_api_ms_win_core_localregistry_l1_1_0
869 enable_api_ms_win_core_memory_l1_1_1
870 enable_api_ms_win_core_namedpipe_l1_2_0
871 enable_api_ms_win_core_processenvironment_l1_2_0
872 enable_api_ms_win_core_processthreads_l1_1_0
873 enable_api_ms_win_core_processthreads_l1_1_1
874 enable_api_ms_win_core_profile_l1_1_0
875 enable_api_ms_win_core_psapi_l1_1_0
876 enable_api_ms_win_core_registry_l1_1_0
877 enable_api_ms_win_core_rtlsupport_l1_2_0
878 enable_api_ms_win_core_shlwapi_legacy_l1_1_0
879 enable_api_ms_win_core_string_l1_1_0
880 enable_api_ms_win_core_synch_l1_2_0
881 enable_api_ms_win_core_sysinfo_l1_2_0
882 enable_api_ms_win_core_threadpool_legacy_l1_1_0
883 enable_api_ms_win_core_timezone_l1_1_0
884 enable_api_ms_win_core_url_l1_1_0
885 enable_api_ms_win_core_util_l1_1_0
886 enable_api_ms_win_core_winrt_error_l1_1_0
887 enable_api_ms_win_core_winrt_string_l1_1_0
888 enable_api_ms_win_downlevel_advapi32_l1_1_0
889 enable_api_ms_win_downlevel_advapi32_l2_1_0
890 enable_api_ms_win_downlevel_normaliz_l1_1_0
891 enable_api_ms_win_downlevel_ole32_l1_1_0
892 enable_api_ms_win_downlevel_shell32_l1_1_0
893 enable_api_ms_win_downlevel_shlwapi_l1_1_0
894 enable_api_ms_win_downlevel_shlwapi_l2_1_0
895 enable_api_ms_win_downlevel_user32_l1_1_0
896 enable_api_ms_win_downlevel_version_l1_1_0
897 enable_api_ms_win_eventing_provider_l1_1_0
898 enable_api_ms_win_ntuser_dc_access_l1_1_0
899 enable_api_ms_win_security_base_l1_1_0
900 enable_api_ms_win_security_base_l1_2_0
901 enable_api_ms_win_security_sddl_l1_1_0
902 enable_api_ms_win_service_core_l1_1_1
903 enable_api_ms_win_service_management_l1_1_0
904 enable_api_ms_win_service_winsvc_l1_2_0
905 enable_apphelp
906 enable_appwiz_cpl
907 enable_atl
908 enable_atl100
909 enable_atl110
910 enable_atl80
911 enable_atl90
912 enable_authz
913 enable_avicap32
914 enable_avifil32
915 enable_avrt
916 enable_bcrypt
917 enable_browseui
918 enable_cabinet
919 enable_capi2032
920 enable_cards
921 enable_cfgmgr32
922 enable_clusapi
923 enable_comcat
924 enable_comctl32
925 enable_comdlg32
926 enable_compstui
927 enable_comsvcs
928 enable_credui
929 enable_crtdll
930 enable_crypt32
931 enable_cryptdlg
932 enable_cryptdll
933 enable_cryptnet
934 enable_cryptui
935 enable_ctapi32
936 enable_ctl3d32
937 enable_d2d1
938 enable_d3d10
939 enable_d3d10_1
940 enable_d3d10core
941 enable_d3d11
942 enable_d3d8
943 enable_d3d9
944 enable_d3dcompiler_33
945 enable_d3dcompiler_34
946 enable_d3dcompiler_35
947 enable_d3dcompiler_36
948 enable_d3dcompiler_37
949 enable_d3dcompiler_38
950 enable_d3dcompiler_39
951 enable_d3dcompiler_40
952 enable_d3dcompiler_41
953 enable_d3dcompiler_42
954 enable_d3dcompiler_43
955 enable_d3dim
956 enable_d3drm
957 enable_d3dx10_33
958 enable_d3dx10_34
959 enable_d3dx10_35
960 enable_d3dx10_36
961 enable_d3dx10_37
962 enable_d3dx10_38
963 enable_d3dx10_39
964 enable_d3dx10_40
965 enable_d3dx10_41
966 enable_d3dx10_42
967 enable_d3dx10_43
968 enable_d3dx11_42
969 enable_d3dx11_43
970 enable_d3dx9_24
971 enable_d3dx9_25
972 enable_d3dx9_26
973 enable_d3dx9_27
974 enable_d3dx9_28
975 enable_d3dx9_29
976 enable_d3dx9_30
977 enable_d3dx9_31
978 enable_d3dx9_32
979 enable_d3dx9_33
980 enable_d3dx9_34
981 enable_d3dx9_35
982 enable_d3dx9_36
983 enable_d3dx9_37
984 enable_d3dx9_38
985 enable_d3dx9_39
986 enable_d3dx9_40
987 enable_d3dx9_41
988 enable_d3dx9_42
989 enable_d3dx9_43
990 enable_d3dxof
991 enable_dbgeng
992 enable_dbghelp
993 enable_dciman32
994 enable_ddraw
995 enable_ddrawex
996 enable_devenum
997 enable_dhcpcsvc
998 enable_difxapi
999 enable_dinput
1000 enable_dinput8
1001 enable_dispex
1002 enable_dmband
1003 enable_dmcompos
1004 enable_dmime
1005 enable_dmloader
1006 enable_dmscript
1007 enable_dmstyle
1008 enable_dmsynth
1009 enable_dmusic
1010 enable_dmusic32
1011 enable_dnsapi
1012 enable_dplay
1013 enable_dplayx
1014 enable_dpnaddr
1015 enable_dpnet
1016 enable_dpnhpast
1017 enable_dpnlobby
1018 enable_dpwsockx
1019 enable_drmclien
1020 enable_dsound
1021 enable_dssenh
1022 enable_dswave
1023 enable_dwmapi
1024 enable_dwrite
1025 enable_dxdiagn
1026 enable_dxgi
1027 enable_explorerframe
1028 enable_ext_ms_win_gdi_devcaps_l1_1_0
1029 enable_faultrep
1030 enable_fltlib
1031 enable_fusion
1032 enable_fwpuclnt
1033 enable_gameux
1034 enable_gdi32
1035 enable_gdiplus
1036 enable_glu32
1037 enable_gphoto2_ds
1038 enable_gpkcsp
1039 enable_hal
1040 enable_hhctrl_ocx
1041 enable_hid
1042 enable_hlink
1043 enable_hnetcfg
1044 enable_httpapi
1045 enable_iccvid
1046 enable_icmp
1047 enable_ieframe
1048 enable_imaadp32_acm
1049 enable_imagehlp
1050 enable_imm32
1051 enable_inetcomm
1052 enable_inetcpl_cpl
1053 enable_inetmib1
1054 enable_infosoft
1055 enable_initpki
1056 enable_inkobj
1057 enable_inseng
1058 enable_iphlpapi
1059 enable_itircl
1060 enable_itss
1061 enable_joy_cpl
1062 enable_jscript
1063 enable_kernel32
1064 enable_ktmw32
1065 enable_loadperf
1066 enable_localspl
1067 enable_localui
1068 enable_lz32
1069 enable_mapi32
1070 enable_mapistub
1071 enable_mciavi32
1072 enable_mcicda
1073 enable_mciqtz32
1074 enable_mciseq
1075 enable_mciwave
1076 enable_mgmtapi
1077 enable_midimap
1078 enable_mlang
1079 enable_mmcndmgr
1080 enable_mmdevapi
1081 enable_mountmgr_sys
1082 enable_mpr
1083 enable_mprapi
1084 enable_msacm32_drv
1085 enable_msacm32
1086 enable_msadp32_acm
1087 enable_mscat32
1088 enable_mscms
1089 enable_mscoree
1090 enable_msctf
1091 enable_msdaps
1092 enable_msdmo
1093 enable_msftedit
1094 enable_msg711_acm
1095 enable_msgsm32_acm
1096 enable_mshtml_tlb
1097 enable_mshtml
1098 enable_msi
1099 enable_msident
1100 enable_msimg32
1101 enable_msimsg
1102 enable_msimtf
1103 enable_msisip
1104 enable_msisys_ocx
1105 enable_msls31
1106 enable_msnet32
1107 enable_mspatcha
1108 enable_msrle32
1109 enable_mssign32
1110 enable_mssip32
1111 enable_mstask
1112 enable_msvcirt
1113 enable_msvcm80
1114 enable_msvcm90
1115 enable_msvcp100
1116 enable_msvcp110
1117 enable_msvcp60
1118 enable_msvcp70
1119 enable_msvcp71
1120 enable_msvcp80
1121 enable_msvcp90
1122 enable_msvcr100
1123 enable_msvcr110
1124 enable_msvcr70
1125 enable_msvcr71
1126 enable_msvcr80
1127 enable_msvcr90
1128 enable_msvcrt
1129 enable_msvcrt20
1130 enable_msvcrt40
1131 enable_msvcrtd
1132 enable_msvfw32
1133 enable_msvidc32
1134 enable_mswsock
1135 enable_msxml
1136 enable_msxml2
1137 enable_msxml3
1138 enable_msxml4
1139 enable_msxml6
1140 enable_nddeapi
1141 enable_netapi32
1142 enable_netcfgx
1143 enable_newdev
1144 enable_normaliz
1145 enable_npmshtml
1146 enable_ntdll
1147 enable_ntdsapi
1148 enable_ntoskrnl_exe
1149 enable_ntprint
1150 enable_objsel
1151 enable_odbc32
1152 enable_odbccp32
1153 enable_odbccu32
1154 enable_ole32
1155 enable_oleacc
1156 enable_oleaut32
1157 enable_olecli32
1158 enable_oledb32
1159 enable_oledlg
1160 enable_olepro32
1161 enable_olesvr32
1162 enable_olethk32
1163 enable_openal32
1164 enable_opencl
1165 enable_opengl32
1166 enable_pdh
1167 enable_photometadatahandler
1168 enable_pidgen
1169 enable_powrprof
1170 enable_printui
1171 enable_propsys
1172 enable_psapi
1173 enable_pstorec
1174 enable_qcap
1175 enable_qedit
1176 enable_qmgr
1177 enable_qmgrprxy
1178 enable_quartz
1179 enable_query
1180 enable_rasapi32
1181 enable_rasdlg
1182 enable_regapi
1183 enable_resutils
1184 enable_riched20
1185 enable_riched32
1186 enable_rpcrt4
1187 enable_rsabase
1188 enable_rsaenh
1189 enable_rstrtmgr
1190 enable_rtutils
1191 enable_samlib
1192 enable_sane_ds
1193 enable_scarddlg
1194 enable_sccbase
1195 enable_schannel
1196 enable_scrrun
1197 enable_scsiport_sys
1198 enable_secur32
1199 enable_security
1200 enable_sensapi
1201 enable_serialui
1202 enable_setupapi
1203 enable_sfc
1204 enable_sfc_os
1205 enable_shdoclc
1206 enable_shdocvw
1207 enable_shell32
1208 enable_shfolder
1209 enable_shlwapi
1210 enable_slbcsp
1211 enable_slc
1212 enable_snmpapi
1213 enable_softpub
1214 enable_spoolss
1215 enable_stdole2_tlb
1216 enable_stdole32_tlb
1217 enable_sti
1218 enable_svrapi
1219 enable_sxs
1220 enable_t2embed
1221 enable_tapi32
1222 enable_taskschd
1223 enable_traffic
1224 enable_twain_32
1225 enable_unicows
1226 enable_updspapi
1227 enable_url
1228 enable_urlmon
1229 enable_usbd_sys
1230 enable_user32
1231 enable_userenv
1232 enable_usp10
1233 enable_uxtheme
1234 enable_vbscript
1235 enable_vcomp
1236 enable_vcomp100
1237 enable_vcomp90
1238 enable_vdmdbg
1239 enable_version
1240 enable_wbemdisp
1241 enable_wbemprox
1242 enable_webservices
1243 enable_wer
1244 enable_wevtapi
1245 enable_wiaservc
1246 enable_windowscodecs
1247 enable_windowscodecsext
1248 enable_winealsa_drv
1249 enable_winecoreaudio_drv
1250 enable_wined3d
1251 enable_winegstreamer
1252 enable_winejoystick_drv
1253 enable_winemac_drv
1254 enable_winemapi
1255 enable_winemp3_acm
1256 enable_wineoss_drv
1257 enable_wineps_drv
1258 enable_wineqtdecoder
1259 enable_winex11_drv
1260 enable_wing32
1261 enable_winhttp
1262 enable_wininet
1263 enable_winmm
1264 enable_winnls32
1265 enable_winscard
1266 enable_winspool_drv
1267 enable_winsta
1268 enable_wintab32
1269 enable_wintrust
1270 enable_wlanapi
1271 enable_wldap32
1272 enable_wmi
1273 enable_wmiutils
1274 enable_wmp
1275 enable_wmvcore
1276 enable_wnaspi32
1277 enable_ws2_32
1278 enable_wshom_ocx
1279 enable_wsnmp32
1280 enable_wsock32
1281 enable_wtsapi32
1282 enable_wuapi
1283 enable_wuaueng
1284 enable_xapofx1_1
1285 enable_xinput1_1
1286 enable_xinput1_2
1287 enable_xinput1_3
1288 enable_xinput1_4
1289 enable_xinput9_1_0
1290 enable_xmllite
1291 enable_xolehlp
1292 enable_xpsprint
1293 enable_xpssvcs
1294 enable_documentation
1295 enable_fonts
1296 enable_include
1297 enable_libs_port
1298 enable_libs_wine
1299 enable_libs_wpp
1300 enable_loader
1301 enable_arp
1302 enable_aspnet_regiis
1303 enable_attrib
1304 enable_cabarc
1305 enable_cacls
1306 enable_clock
1307 enable_cmd
1308 enable_conhost
1309 enable_control
1310 enable_cscript
1311 enable_dxdiag
1312 enable_eject
1313 enable_expand
1314 enable_explorer
1315 enable_extrac32
1316 enable_findstr
1317 enable_hh
1318 enable_hostname
1319 enable_icinfo
1320 enable_iexplore
1321 enable_ipconfig
1322 enable_lodctr
1323 enable_mofcomp
1324 enable_mshta
1325 enable_msiexec
1326 enable_net
1327 enable_netsh
1328 enable_netstat
1329 enable_ngen
1330 enable_notepad
1331 enable_oleview
1332 enable_ping
1333 enable_plugplay
1334 enable_presentationfontcache
1335 enable_progman
1336 enable_reg
1337 enable_regasm
1338 enable_regedit
1339 enable_regsvcs
1340 enable_regsvr32
1341 enable_rpcss
1342 enable_rundll32
1343 enable_sc
1344 enable_schtasks
1345 enable_secedit
1346 enable_servicemodelreg
1347 enable_services
1348 enable_spoolsv
1349 enable_start
1350 enable_svchost
1351 enable_taskkill
1352 enable_tasklist
1353 enable_taskmgr
1354 enable_termsv
1355 enable_uninstaller
1356 enable_unlodctr
1357 enable_view
1358 enable_wineboot
1359 enable_winebrowser
1360 enable_winecfg
1361 enable_wineconsole
1362 enable_winedbg
1363 enable_winedevice
1364 enable_winefile
1365 enable_winemenubuilder
1366 enable_winemine
1367 enable_winemsibuilder
1368 enable_winepath
1369 enable_winetest
1370 enable_winhlp32
1371 enable_winver
1372 enable_wmic
1373 enable_wordpad
1374 enable_write
1375 enable_wscript
1376 enable_wusa
1377 enable_xcopy
1378 enable_server
1379 enable_tools
1381 ac_precious_vars='build_alias
1382 host_alias
1383 target_alias
1385 CFLAGS
1386 LDFLAGS
1387 LIBS
1388 CPPFLAGS
1390 CXXFLAGS
1393 XMKMF
1394 XML2_CFLAGS
1395 XML2_LIBS
1396 XSLT_CFLAGS
1397 XSLT_LIBS
1398 DBUS_CFLAGS
1399 DBUS_LIBS
1400 HAL_CFLAGS
1401 HAL_LIBS
1402 GNUTLS_CFLAGS
1403 GNUTLS_LIBS
1404 SANE_CFLAGS
1405 SANE_LIBS
1406 GPHOTO2_CFLAGS
1407 GPHOTO2_LIBS
1408 GPHOTO2_PORT_CFLAGS
1409 GPHOTO2_PORT_LIBS
1410 LCMS2_CFLAGS
1411 LCMS2_LIBS
1412 FREETYPE_CFLAGS
1413 FREETYPE_LIBS
1414 GSTREAMER_CFLAGS
1415 GSTREAMER_LIBS
1416 CAPI20_CFLAGS
1417 CAPI20_LIBS
1418 FONTCONFIG_CFLAGS
1419 FONTCONFIG_LIBS
1420 JPEG_CFLAGS
1421 JPEG_LIBS
1422 PNG_CFLAGS
1423 PNG_LIBS
1424 TIFF_CFLAGS
1425 TIFF_LIBS
1426 MPG123_CFLAGS
1427 MPG123_LIBS'
1430 # Initialize some variables set by options.
1431 ac_init_help=
1432 ac_init_version=false
1433 ac_unrecognized_opts=
1434 ac_unrecognized_sep=
1435 # The variables have the same names as the options, with
1436 # dashes changed to underlines.
1437 cache_file=/dev/null
1438 exec_prefix=NONE
1439 no_create=
1440 no_recursion=
1441 prefix=NONE
1442 program_prefix=NONE
1443 program_suffix=NONE
1444 program_transform_name=s,x,x,
1445 silent=
1446 site=
1447 srcdir=
1448 verbose=
1449 x_includes=NONE
1450 x_libraries=NONE
1452 # Installation directory options.
1453 # These are left unexpanded so users can "make install exec_prefix=/foo"
1454 # and all the variables that are supposed to be based on exec_prefix
1455 # by default will actually change.
1456 # Use braces instead of parens because sh, perl, etc. also accept them.
1457 # (The list follows the same order as the GNU Coding Standards.)
1458 bindir='${exec_prefix}/bin'
1459 sbindir='${exec_prefix}/sbin'
1460 libexecdir='${exec_prefix}/libexec'
1461 datarootdir='${prefix}/share'
1462 datadir='${datarootdir}'
1463 sysconfdir='${prefix}/etc'
1464 sharedstatedir='${prefix}/com'
1465 localstatedir='${prefix}/var'
1466 includedir='${prefix}/include'
1467 oldincludedir='/usr/include'
1468 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1469 infodir='${datarootdir}/info'
1470 htmldir='${docdir}'
1471 dvidir='${docdir}'
1472 pdfdir='${docdir}'
1473 psdir='${docdir}'
1474 libdir='${exec_prefix}/lib'
1475 localedir='${datarootdir}/locale'
1476 mandir='${datarootdir}/man'
1478 ac_prev=
1479 ac_dashdash=
1480 for ac_option
1482 # If the previous option needs an argument, assign it.
1483 if test -n "$ac_prev"; then
1484 eval $ac_prev=\$ac_option
1485 ac_prev=
1486 continue
1489 case $ac_option in
1490 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1491 *=) ac_optarg= ;;
1492 *) ac_optarg=yes ;;
1493 esac
1495 # Accept the important Cygnus configure options, so we can diagnose typos.
1497 case $ac_dashdash$ac_option in
1499 ac_dashdash=yes ;;
1501 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1502 ac_prev=bindir ;;
1503 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1504 bindir=$ac_optarg ;;
1506 -build | --build | --buil | --bui | --bu)
1507 ac_prev=build_alias ;;
1508 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1509 build_alias=$ac_optarg ;;
1511 -cache-file | --cache-file | --cache-fil | --cache-fi \
1512 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1513 ac_prev=cache_file ;;
1514 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1515 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1516 cache_file=$ac_optarg ;;
1518 --config-cache | -C)
1519 cache_file=config.cache ;;
1521 -datadir | --datadir | --datadi | --datad)
1522 ac_prev=datadir ;;
1523 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1524 datadir=$ac_optarg ;;
1526 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1527 | --dataroo | --dataro | --datar)
1528 ac_prev=datarootdir ;;
1529 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1530 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1531 datarootdir=$ac_optarg ;;
1533 -disable-* | --disable-*)
1534 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1535 # Reject names that are not valid shell variable names.
1536 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1537 as_fn_error $? "invalid feature name: $ac_useropt"
1538 ac_useropt_orig=$ac_useropt
1539 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1540 case $ac_user_opts in
1542 "enable_$ac_useropt"
1543 "*) ;;
1544 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1545 ac_unrecognized_sep=', ';;
1546 esac
1547 eval enable_$ac_useropt=no ;;
1549 -docdir | --docdir | --docdi | --doc | --do)
1550 ac_prev=docdir ;;
1551 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1552 docdir=$ac_optarg ;;
1554 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1555 ac_prev=dvidir ;;
1556 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1557 dvidir=$ac_optarg ;;
1559 -enable-* | --enable-*)
1560 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1561 # Reject names that are not valid shell variable names.
1562 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1563 as_fn_error $? "invalid feature name: $ac_useropt"
1564 ac_useropt_orig=$ac_useropt
1565 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1566 case $ac_user_opts in
1568 "enable_$ac_useropt"
1569 "*) ;;
1570 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1571 ac_unrecognized_sep=', ';;
1572 esac
1573 eval enable_$ac_useropt=\$ac_optarg ;;
1575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1577 | --exec | --exe | --ex)
1578 ac_prev=exec_prefix ;;
1579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1581 | --exec=* | --exe=* | --ex=*)
1582 exec_prefix=$ac_optarg ;;
1584 -gas | --gas | --ga | --g)
1585 # Obsolete; use --with-gas.
1586 with_gas=yes ;;
1588 -help | --help | --hel | --he | -h)
1589 ac_init_help=long ;;
1590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1591 ac_init_help=recursive ;;
1592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1593 ac_init_help=short ;;
1595 -host | --host | --hos | --ho)
1596 ac_prev=host_alias ;;
1597 -host=* | --host=* | --hos=* | --ho=*)
1598 host_alias=$ac_optarg ;;
1600 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1601 ac_prev=htmldir ;;
1602 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1603 | --ht=*)
1604 htmldir=$ac_optarg ;;
1606 -includedir | --includedir | --includedi | --included | --include \
1607 | --includ | --inclu | --incl | --inc)
1608 ac_prev=includedir ;;
1609 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1610 | --includ=* | --inclu=* | --incl=* | --inc=*)
1611 includedir=$ac_optarg ;;
1613 -infodir | --infodir | --infodi | --infod | --info | --inf)
1614 ac_prev=infodir ;;
1615 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1616 infodir=$ac_optarg ;;
1618 -libdir | --libdir | --libdi | --libd)
1619 ac_prev=libdir ;;
1620 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1621 libdir=$ac_optarg ;;
1623 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1624 | --libexe | --libex | --libe)
1625 ac_prev=libexecdir ;;
1626 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1627 | --libexe=* | --libex=* | --libe=*)
1628 libexecdir=$ac_optarg ;;
1630 -localedir | --localedir | --localedi | --localed | --locale)
1631 ac_prev=localedir ;;
1632 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1633 localedir=$ac_optarg ;;
1635 -localstatedir | --localstatedir | --localstatedi | --localstated \
1636 | --localstate | --localstat | --localsta | --localst | --locals)
1637 ac_prev=localstatedir ;;
1638 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1639 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1640 localstatedir=$ac_optarg ;;
1642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1643 ac_prev=mandir ;;
1644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1645 mandir=$ac_optarg ;;
1647 -nfp | --nfp | --nf)
1648 # Obsolete; use --without-fp.
1649 with_fp=no ;;
1651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1652 | --no-cr | --no-c | -n)
1653 no_create=yes ;;
1655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1657 no_recursion=yes ;;
1659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1661 | --oldin | --oldi | --old | --ol | --o)
1662 ac_prev=oldincludedir ;;
1663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1666 oldincludedir=$ac_optarg ;;
1668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1669 ac_prev=prefix ;;
1670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1671 prefix=$ac_optarg ;;
1673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1674 | --program-pre | --program-pr | --program-p)
1675 ac_prev=program_prefix ;;
1676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1678 program_prefix=$ac_optarg ;;
1680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1681 | --program-suf | --program-su | --program-s)
1682 ac_prev=program_suffix ;;
1683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1685 program_suffix=$ac_optarg ;;
1687 -program-transform-name | --program-transform-name \
1688 | --program-transform-nam | --program-transform-na \
1689 | --program-transform-n | --program-transform- \
1690 | --program-transform | --program-transfor \
1691 | --program-transfo | --program-transf \
1692 | --program-trans | --program-tran \
1693 | --progr-tra | --program-tr | --program-t)
1694 ac_prev=program_transform_name ;;
1695 -program-transform-name=* | --program-transform-name=* \
1696 | --program-transform-nam=* | --program-transform-na=* \
1697 | --program-transform-n=* | --program-transform-=* \
1698 | --program-transform=* | --program-transfor=* \
1699 | --program-transfo=* | --program-transf=* \
1700 | --program-trans=* | --program-tran=* \
1701 | --progr-tra=* | --program-tr=* | --program-t=*)
1702 program_transform_name=$ac_optarg ;;
1704 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1705 ac_prev=pdfdir ;;
1706 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1707 pdfdir=$ac_optarg ;;
1709 -psdir | --psdir | --psdi | --psd | --ps)
1710 ac_prev=psdir ;;
1711 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1712 psdir=$ac_optarg ;;
1714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1715 | -silent | --silent | --silen | --sile | --sil)
1716 silent=yes ;;
1718 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1719 ac_prev=sbindir ;;
1720 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1721 | --sbi=* | --sb=*)
1722 sbindir=$ac_optarg ;;
1724 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1725 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1726 | --sharedst | --shareds | --shared | --share | --shar \
1727 | --sha | --sh)
1728 ac_prev=sharedstatedir ;;
1729 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1730 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1731 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1732 | --sha=* | --sh=*)
1733 sharedstatedir=$ac_optarg ;;
1735 -site | --site | --sit)
1736 ac_prev=site ;;
1737 -site=* | --site=* | --sit=*)
1738 site=$ac_optarg ;;
1740 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1741 ac_prev=srcdir ;;
1742 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1743 srcdir=$ac_optarg ;;
1745 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1746 | --syscon | --sysco | --sysc | --sys | --sy)
1747 ac_prev=sysconfdir ;;
1748 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1749 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1750 sysconfdir=$ac_optarg ;;
1752 -target | --target | --targe | --targ | --tar | --ta | --t)
1753 ac_prev=target_alias ;;
1754 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1755 target_alias=$ac_optarg ;;
1757 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1758 verbose=yes ;;
1760 -version | --version | --versio | --versi | --vers | -V)
1761 ac_init_version=: ;;
1763 -with-* | --with-*)
1764 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1765 # Reject names that are not valid shell variable names.
1766 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1767 as_fn_error $? "invalid package name: $ac_useropt"
1768 ac_useropt_orig=$ac_useropt
1769 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1770 case $ac_user_opts in
1772 "with_$ac_useropt"
1773 "*) ;;
1774 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1775 ac_unrecognized_sep=', ';;
1776 esac
1777 eval with_$ac_useropt=\$ac_optarg ;;
1779 -without-* | --without-*)
1780 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1781 # Reject names that are not valid shell variable names.
1782 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1783 as_fn_error $? "invalid package name: $ac_useropt"
1784 ac_useropt_orig=$ac_useropt
1785 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1786 case $ac_user_opts in
1788 "with_$ac_useropt"
1789 "*) ;;
1790 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1791 ac_unrecognized_sep=', ';;
1792 esac
1793 eval with_$ac_useropt=no ;;
1795 --x)
1796 # Obsolete; use --with-x.
1797 with_x=yes ;;
1799 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1800 | --x-incl | --x-inc | --x-in | --x-i)
1801 ac_prev=x_includes ;;
1802 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1803 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1804 x_includes=$ac_optarg ;;
1806 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1807 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1808 ac_prev=x_libraries ;;
1809 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1810 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1811 x_libraries=$ac_optarg ;;
1813 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1814 Try \`$0 --help' for more information"
1817 *=*)
1818 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1819 # Reject names that are not valid shell variable names.
1820 case $ac_envvar in #(
1821 '' | [0-9]* | *[!_$as_cr_alnum]* )
1822 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1823 esac
1824 eval $ac_envvar=\$ac_optarg
1825 export $ac_envvar ;;
1828 # FIXME: should be removed in autoconf 3.0.
1829 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1830 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1831 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1832 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1835 esac
1836 done
1838 if test -n "$ac_prev"; then
1839 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1840 as_fn_error $? "missing argument to $ac_option"
1843 if test -n "$ac_unrecognized_opts"; then
1844 case $enable_option_checking in
1845 no) ;;
1846 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1847 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1848 esac
1851 # Check all directory arguments for consistency.
1852 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1853 datadir sysconfdir sharedstatedir localstatedir includedir \
1854 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1855 libdir localedir mandir
1857 eval ac_val=\$$ac_var
1858 # Remove trailing slashes.
1859 case $ac_val in
1860 */ )
1861 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1862 eval $ac_var=\$ac_val;;
1863 esac
1864 # Be sure to have absolute directory names.
1865 case $ac_val in
1866 [\\/$]* | ?:[\\/]* ) continue;;
1867 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1868 esac
1869 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1870 done
1872 # There might be people who depend on the old broken behavior: `$host'
1873 # used to hold the argument of --host etc.
1874 # FIXME: To remove some day.
1875 build=$build_alias
1876 host=$host_alias
1877 target=$target_alias
1879 # FIXME: To remove some day.
1880 if test "x$host_alias" != x; then
1881 if test "x$build_alias" = x; then
1882 cross_compiling=maybe
1883 elif test "x$build_alias" != "x$host_alias"; then
1884 cross_compiling=yes
1888 ac_tool_prefix=
1889 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1891 test "$silent" = yes && exec 6>/dev/null
1894 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1895 ac_ls_di=`ls -di .` &&
1896 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1897 as_fn_error $? "working directory cannot be determined"
1898 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1899 as_fn_error $? "pwd does not report name of working directory"
1902 # Find the source files, if location was not specified.
1903 if test -z "$srcdir"; then
1904 ac_srcdir_defaulted=yes
1905 # Try the directory containing this script, then the parent directory.
1906 ac_confdir=`$as_dirname -- "$as_myself" ||
1907 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1908 X"$as_myself" : 'X\(//\)[^/]' \| \
1909 X"$as_myself" : 'X\(//\)$' \| \
1910 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1911 $as_echo X"$as_myself" |
1912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1913 s//\1/
1916 /^X\(\/\/\)[^/].*/{
1917 s//\1/
1920 /^X\(\/\/\)$/{
1921 s//\1/
1924 /^X\(\/\).*/{
1925 s//\1/
1928 s/.*/./; q'`
1929 srcdir=$ac_confdir
1930 if test ! -r "$srcdir/$ac_unique_file"; then
1931 srcdir=..
1933 else
1934 ac_srcdir_defaulted=no
1936 if test ! -r "$srcdir/$ac_unique_file"; then
1937 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1938 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1940 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1941 ac_abs_confdir=`(
1942 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1943 pwd)`
1944 # When building in place, set srcdir=.
1945 if test "$ac_abs_confdir" = "$ac_pwd"; then
1946 srcdir=.
1948 # Remove unnecessary trailing slashes from srcdir.
1949 # Double slashes in file names in object file debugging info
1950 # mess up M-x gdb in Emacs.
1951 case $srcdir in
1952 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1953 esac
1954 for ac_var in $ac_precious_vars; do
1955 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1956 eval ac_env_${ac_var}_value=\$${ac_var}
1957 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1958 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1959 done
1962 # Report the --help message.
1964 if test "$ac_init_help" = "long"; then
1965 # Omit some internal or obsolete options to make the list less imposing.
1966 # This message is too long to be a string in the A/UX 3.1 sh.
1967 cat <<_ACEOF
1968 \`configure' configures Wine 1.7.12 to adapt to many kinds of systems.
1970 Usage: $0 [OPTION]... [VAR=VALUE]...
1972 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1973 VAR=VALUE. See below for descriptions of some of the useful variables.
1975 Defaults for the options are specified in brackets.
1977 Configuration:
1978 -h, --help display this help and exit
1979 --help=short display options specific to this package
1980 --help=recursive display the short help of all the included packages
1981 -V, --version display version information and exit
1982 -q, --quiet, --silent do not print \`checking ...' messages
1983 --cache-file=FILE cache test results in FILE [disabled]
1984 -C, --config-cache alias for \`--cache-file=config.cache'
1985 -n, --no-create do not create output files
1986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1988 Installation directories:
1989 --prefix=PREFIX install architecture-independent files in PREFIX
1990 [$ac_default_prefix]
1991 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1992 [PREFIX]
1994 By default, \`make install' will install all the files in
1995 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1996 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1997 for instance \`--prefix=\$HOME'.
1999 For better control, use the options below.
2001 Fine tuning of the installation directories:
2002 --bindir=DIR user executables [EPREFIX/bin]
2003 --sbindir=DIR system admin executables [EPREFIX/sbin]
2004 --libexecdir=DIR program executables [EPREFIX/libexec]
2005 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2006 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2007 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2008 --libdir=DIR object code libraries [EPREFIX/lib]
2009 --includedir=DIR C header files [PREFIX/include]
2010 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2011 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2012 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2013 --infodir=DIR info documentation [DATAROOTDIR/info]
2014 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2015 --mandir=DIR man documentation [DATAROOTDIR/man]
2016 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
2017 --htmldir=DIR html documentation [DOCDIR]
2018 --dvidir=DIR dvi documentation [DOCDIR]
2019 --pdfdir=DIR pdf documentation [DOCDIR]
2020 --psdir=DIR ps documentation [DOCDIR]
2021 _ACEOF
2023 cat <<\_ACEOF
2025 X features:
2026 --x-includes=DIR X include files are in DIR
2027 --x-libraries=DIR X library files are in DIR
2029 System types:
2030 --build=BUILD configure for building on BUILD [guessed]
2031 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2032 _ACEOF
2035 if test -n "$ac_init_help"; then
2036 case $ac_init_help in
2037 short | recursive ) echo "Configuration of Wine 1.7.12:";;
2038 esac
2039 cat <<\_ACEOF
2041 Optional Features:
2042 --disable-option-checking ignore unrecognized --enable/--with options
2043 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2044 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2045 --disable-win16 do not include Win16 support
2046 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2047 binaries)
2048 --disable-tests do not build the regression tests
2049 --enable-maintainer-mode
2050 enable maintainer-specific build rules
2051 --disable-largefile omit support for large files
2053 Optional Packages:
2054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2056 --without-alsa do not use the Alsa sound support
2057 --without-capi do not use CAPI (ISDN support)
2058 --without-cms do not use CMS (color management support)
2059 --without-coreaudio do not use the CoreAudio sound support
2060 --without-cups do not use CUPS
2061 --without-curses do not use (n)curses
2062 --without-dbus do not use DBus (dynamic device support)
2063 --without-fontconfig do not use fontconfig
2064 --without-freetype do not use the FreeType library
2065 --without-gettext do not use gettext
2066 --with-gettextpo use the GetTextPO library to rebuild po files
2067 --without-gphoto do not use gphoto (Digital Camera support)
2068 --without-glu do not use the GLU library
2069 --without-gnutls do not use GnuTLS (schannel support)
2070 --without-gsm do not use libgsm (GSM 06.10 codec support)
2071 --without-gstreamer do not use GStreamer (codecs support)
2072 --without-hal do not use HAL (dynamic device support)
2073 --without-jpeg do not use JPEG
2074 --without-ldap do not use LDAP
2075 --without-mpg123 do not use the mpg123 library
2076 --without-netapi do not use the Samba NetAPI library
2077 --without-openal do not use OpenAL
2078 --without-opencl do not use OpenCL
2079 --without-opengl do not use OpenGL
2080 --without-osmesa do not use the OSMesa library
2081 --without-oss do not use the OSS sound support
2082 --without-png do not use PNG
2083 --without-pthread do not use the pthread library
2084 --without-sane do not use SANE (scanner support)
2085 --without-tiff do not use TIFF
2086 --without-v4l do not use v4l1 (v4l support)
2087 --without-xcomposite do not use the Xcomposite extension
2088 --without-xcursor do not use the Xcursor extension
2089 --without-xinerama do not use Xinerama (multi-monitor support)
2090 --without-xinput do not use the Xinput extension
2091 --without-xinput2 do not use the Xinput 2 extension
2092 --without-xml do not use XML
2093 --without-xrandr do not use Xrandr (resolution changes)
2094 --without-xrender do not use the Xrender extension
2095 --without-xshape do not use the Xshape extension
2096 --without-xshm do not use XShm (shared memory extension)
2097 --without-xslt do not use XSLT
2098 --without-xxf86vm do not use XFree video mode extension
2099 --without-zlib do not use Zlib (data compression)
2100 --with-wine-tools=DIR use Wine tools from directory DIR
2101 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2102 --with-x use the X Window System
2104 Some influential environment variables:
2105 CC C compiler command
2106 CFLAGS C compiler flags
2107 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2108 nonstandard directory <lib dir>
2109 LIBS libraries to pass to the linker, e.g. -l<library>
2110 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2111 you have headers in a nonstandard directory <include dir>
2112 CXX C++ compiler command
2113 CXXFLAGS C++ compiler flags
2114 CPP C preprocessor
2115 XMKMF Path to xmkmf, Makefile generator for X Window System
2116 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2117 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2118 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2119 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2120 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2121 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2122 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2123 HAL_LIBS Linker flags for hal, overriding pkg-config
2124 GNUTLS_CFLAGS
2125 C compiler flags for gnutls, overriding pkg-config
2126 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2127 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2128 SANE_LIBS Linker flags for libsane, overriding pkg-config
2129 GPHOTO2_CFLAGS
2130 C compiler flags for libgphoto2, overriding pkg-config
2131 GPHOTO2_LIBS
2132 Linker flags for libgphoto2, overriding pkg-config
2133 GPHOTO2_PORT_CFLAGS
2134 C compiler flags for libgphoto2_port, overriding pkg-config
2135 GPHOTO2_PORT_LIBS
2136 Linker flags for libgphoto2_port, overriding pkg-config
2137 LCMS2_CFLAGS
2138 C compiler flags for lcms2, overriding pkg-config
2139 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2140 FREETYPE_CFLAGS
2141 C compiler flags for freetype2, overriding pkg-config
2142 FREETYPE_LIBS
2143 Linker flags for freetype2, overriding pkg-config
2144 GSTREAMER_CFLAGS
2145 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2146 GSTREAMER_LIBS
2147 Linker flags for gstreamer-app-0.10, overriding pkg-config
2148 CAPI20_CFLAGS
2149 C compiler flags for capi20, overriding pkg-config
2150 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2151 FONTCONFIG_CFLAGS
2152 C compiler flags for fontconfig, overriding pkg-config
2153 FONTCONFIG_LIBS
2154 Linker flags for fontconfig, overriding pkg-config
2155 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2156 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2157 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2158 PNG_LIBS Linker flags for libpng, overriding pkg-config
2159 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2160 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2161 MPG123_CFLAGS
2162 C compiler flags for libmpg123, overriding pkg-config
2163 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2165 Use these variables to override the choices made by `configure' or to help
2166 it to find libraries and programs with nonstandard names/locations.
2168 Report bugs to <wine-devel@winehq.org>.
2169 Wine home page: <http://www.winehq.org>.
2170 _ACEOF
2171 ac_status=$?
2174 if test "$ac_init_help" = "recursive"; then
2175 # If there are subdirs, report their specific --help.
2176 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2177 test -d "$ac_dir" ||
2178 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2179 continue
2180 ac_builddir=.
2182 case "$ac_dir" in
2183 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2185 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2186 # A ".." for each directory in $ac_dir_suffix.
2187 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2188 case $ac_top_builddir_sub in
2189 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2190 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2191 esac ;;
2192 esac
2193 ac_abs_top_builddir=$ac_pwd
2194 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2195 # for backward compatibility:
2196 ac_top_builddir=$ac_top_build_prefix
2198 case $srcdir in
2199 .) # We are building in place.
2200 ac_srcdir=.
2201 ac_top_srcdir=$ac_top_builddir_sub
2202 ac_abs_top_srcdir=$ac_pwd ;;
2203 [\\/]* | ?:[\\/]* ) # Absolute name.
2204 ac_srcdir=$srcdir$ac_dir_suffix;
2205 ac_top_srcdir=$srcdir
2206 ac_abs_top_srcdir=$srcdir ;;
2207 *) # Relative name.
2208 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2209 ac_top_srcdir=$ac_top_build_prefix$srcdir
2210 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2211 esac
2212 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2214 cd "$ac_dir" || { ac_status=$?; continue; }
2215 # Check for guested configure.
2216 if test -f "$ac_srcdir/configure.gnu"; then
2217 echo &&
2218 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2219 elif test -f "$ac_srcdir/configure"; then
2220 echo &&
2221 $SHELL "$ac_srcdir/configure" --help=recursive
2222 else
2223 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2224 fi || ac_status=$?
2225 cd "$ac_pwd" || { ac_status=$?; break; }
2226 done
2229 test -n "$ac_init_help" && exit $ac_status
2230 if $ac_init_version; then
2231 cat <<\_ACEOF
2232 Wine configure 1.7.12
2233 generated by GNU Autoconf 2.69
2235 Copyright (C) 2012 Free Software Foundation, Inc.
2236 This configure script is free software; the Free Software Foundation
2237 gives unlimited permission to copy, distribute and modify it.
2238 _ACEOF
2239 exit
2242 ## ------------------------ ##
2243 ## Autoconf initialization. ##
2244 ## ------------------------ ##
2246 # ac_fn_c_try_compile LINENO
2247 # --------------------------
2248 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2249 ac_fn_c_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_c_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_c_try_compile
2284 # ac_fn_cxx_try_compile LINENO
2285 # ----------------------------
2286 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2287 ac_fn_cxx_try_compile ()
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 rm -f conftest.$ac_objext
2291 if { { ac_try="$ac_compile"
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_compile") 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_cxx_werror_flag" ||
2308 test ! -s conftest.err
2309 } && test -s conftest.$ac_objext; then :
2310 ac_retval=0
2311 else
2312 $as_echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2315 ac_retval=1
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2318 as_fn_set_status $ac_retval
2320 } # ac_fn_cxx_try_compile
2322 # ac_fn_c_try_link LINENO
2323 # -----------------------
2324 # Try to link conftest.$ac_ext, and return whether this succeeded.
2325 ac_fn_c_try_link ()
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 rm -f conftest.$ac_objext conftest$ac_exeext
2329 if { { ac_try="$ac_link"
2330 case "(($ac_try" in
2331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2332 *) ac_try_echo=$ac_try;;
2333 esac
2334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2335 $as_echo "$ac_try_echo"; } >&5
2336 (eval "$ac_link") 2>conftest.err
2337 ac_status=$?
2338 if test -s conftest.err; then
2339 grep -v '^ *+' conftest.err >conftest.er1
2340 cat conftest.er1 >&5
2341 mv -f conftest.er1 conftest.err
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; } && {
2345 test -z "$ac_c_werror_flag" ||
2346 test ! -s conftest.err
2347 } && test -s conftest$ac_exeext && {
2348 test "$cross_compiling" = yes ||
2349 test -x conftest$ac_exeext
2350 }; then :
2351 ac_retval=0
2352 else
2353 $as_echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2356 ac_retval=1
2358 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2359 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2360 # interfere with the next link command; also delete a directory that is
2361 # left behind by Apple's compiler. We do this before executing the actions.
2362 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2364 as_fn_set_status $ac_retval
2366 } # ac_fn_c_try_link
2368 # ac_fn_c_try_cpp LINENO
2369 # ----------------------
2370 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2371 ac_fn_c_try_cpp ()
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 if { { ac_try="$ac_cpp conftest.$ac_ext"
2375 case "(($ac_try" in
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2378 esac
2379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2380 $as_echo "$ac_try_echo"; } >&5
2381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2382 ac_status=$?
2383 if test -s conftest.err; then
2384 grep -v '^ *+' conftest.err >conftest.er1
2385 cat conftest.er1 >&5
2386 mv -f conftest.er1 conftest.err
2388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2389 test $ac_status = 0; } > conftest.i && {
2390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2391 test ! -s conftest.err
2392 }; then :
2393 ac_retval=0
2394 else
2395 $as_echo "$as_me: failed program was:" >&5
2396 sed 's/^/| /' conftest.$ac_ext >&5
2398 ac_retval=1
2400 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2401 as_fn_set_status $ac_retval
2403 } # ac_fn_c_try_cpp
2405 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2406 # -------------------------------------------------------
2407 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2408 # the include files in INCLUDES and setting the cache variable VAR
2409 # accordingly.
2410 ac_fn_c_check_header_mongrel ()
2412 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413 if eval \${$3+:} false; then :
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2415 $as_echo_n "checking for $2... " >&6; }
2416 if eval \${$3+:} false; then :
2417 $as_echo_n "(cached) " >&6
2419 eval ac_res=\$$3
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2421 $as_echo "$ac_res" >&6; }
2422 else
2423 # Is the header compilable?
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2425 $as_echo_n "checking $2 usability... " >&6; }
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h. */
2429 #include <$2>
2430 _ACEOF
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432 ac_header_compiler=yes
2433 else
2434 ac_header_compiler=no
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2438 $as_echo "$ac_header_compiler" >&6; }
2440 # Is the header present?
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2442 $as_echo_n "checking $2 presence... " >&6; }
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2445 #include <$2>
2446 _ACEOF
2447 if ac_fn_c_try_cpp "$LINENO"; then :
2448 ac_header_preproc=yes
2449 else
2450 ac_header_preproc=no
2452 rm -f conftest.err conftest.i conftest.$ac_ext
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2454 $as_echo "$ac_header_preproc" >&6; }
2456 # So? What about this header?
2457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2458 yes:no: )
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2460 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2462 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2464 no:yes:* )
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2466 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2468 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2470 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2472 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2474 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2475 ( $as_echo "## ------------------------------------ ##
2476 ## Report this to wine-devel@winehq.org ##
2477 ## ------------------------------------ ##"
2478 ) | sed "s/^/$as_me: WARNING: /" >&2
2480 esac
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2482 $as_echo_n "checking for $2... " >&6; }
2483 if eval \${$3+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485 else
2486 eval "$3=\$ac_header_compiler"
2488 eval ac_res=\$$3
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2490 $as_echo "$ac_res" >&6; }
2492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494 } # ac_fn_c_check_header_mongrel
2496 # ac_fn_c_try_run LINENO
2497 # ----------------------
2498 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2499 # that executables *can* be run.
2500 ac_fn_c_try_run ()
2502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2503 if { { ac_try="$ac_link"
2504 case "(($ac_try" in
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2507 esac
2508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2509 $as_echo "$ac_try_echo"; } >&5
2510 (eval "$ac_link") 2>&5
2511 ac_status=$?
2512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2513 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2514 { { case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2517 esac
2518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2519 $as_echo "$ac_try_echo"; } >&5
2520 (eval "$ac_try") 2>&5
2521 ac_status=$?
2522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2523 test $ac_status = 0; }; }; then :
2524 ac_retval=0
2525 else
2526 $as_echo "$as_me: program exited with status $ac_status" >&5
2527 $as_echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2530 ac_retval=$ac_status
2532 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2534 as_fn_set_status $ac_retval
2536 } # ac_fn_c_try_run
2538 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2539 # -------------------------------------------------------
2540 # Tests whether HEADER exists and can be compiled using the include files in
2541 # INCLUDES, setting the cache variable VAR accordingly.
2542 ac_fn_c_check_header_compile ()
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2546 $as_echo_n "checking for $2... " >&6; }
2547 if eval \${$3+:} false; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2553 #include <$2>
2554 _ACEOF
2555 if ac_fn_c_try_compile "$LINENO"; then :
2556 eval "$3=yes"
2557 else
2558 eval "$3=no"
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 eval ac_res=\$$3
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2567 } # ac_fn_c_check_header_compile
2569 # ac_fn_c_check_func LINENO FUNC VAR
2570 # ----------------------------------
2571 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2572 ac_fn_c_check_func ()
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2576 $as_echo_n "checking for $2... " >&6; }
2577 if eval \${$3+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581 /* end confdefs.h. */
2582 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2584 #define $2 innocuous_$2
2586 /* System header to define __stub macros and hopefully few prototypes,
2587 which can conflict with char $2 (); below.
2588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2589 <limits.h> exists even on freestanding compilers. */
2591 #ifdef __STDC__
2592 # include <limits.h>
2593 #else
2594 # include <assert.h>
2595 #endif
2597 #undef $2
2599 /* Override any GCC internal prototype to avoid an error.
2600 Use char because int might match the return type of a GCC
2601 builtin and then its argument prototype would still apply. */
2602 #ifdef __cplusplus
2603 extern "C"
2604 #endif
2605 char $2 ();
2606 /* The GNU C library defines this for functions which it implements
2607 to always fail with ENOSYS. Some functions are actually named
2608 something starting with __ and the normal name is an alias. */
2609 #if defined __stub_$2 || defined __stub___$2
2610 choke me
2611 #endif
2614 main ()
2616 return $2 ();
2618 return 0;
2620 _ACEOF
2621 if ac_fn_c_try_link "$LINENO"; then :
2622 eval "$3=yes"
2623 else
2624 eval "$3=no"
2626 rm -f core conftest.err conftest.$ac_objext \
2627 conftest$ac_exeext conftest.$ac_ext
2629 eval ac_res=\$$3
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2631 $as_echo "$ac_res" >&6; }
2632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2634 } # ac_fn_c_check_func
2636 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2637 # ----------------------------------------------------
2638 # Tries to find if the field MEMBER exists in type AGGR, after including
2639 # INCLUDES, setting cache variable VAR accordingly.
2640 ac_fn_c_check_member ()
2642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2644 $as_echo_n "checking for $2.$3... " >&6; }
2645 if eval \${$4+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2652 main ()
2654 static $2 ac_aggr;
2655 if (ac_aggr.$3)
2656 return 0;
2658 return 0;
2660 _ACEOF
2661 if ac_fn_c_try_compile "$LINENO"; then :
2662 eval "$4=yes"
2663 else
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2668 main ()
2670 static $2 ac_aggr;
2671 if (sizeof ac_aggr.$3)
2672 return 0;
2674 return 0;
2676 _ACEOF
2677 if ac_fn_c_try_compile "$LINENO"; then :
2678 eval "$4=yes"
2679 else
2680 eval "$4=no"
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 eval ac_res=\$$4
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2688 $as_echo "$ac_res" >&6; }
2689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2691 } # ac_fn_c_check_member
2693 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2694 # -------------------------------------------
2695 # Tests whether TYPE exists after having included INCLUDES, setting cache
2696 # variable VAR accordingly.
2697 ac_fn_c_check_type ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2701 $as_echo_n "checking for $2... " >&6; }
2702 if eval \${$3+:} false; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 eval "$3=no"
2706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2710 main ()
2712 if (sizeof ($2))
2713 return 0;
2715 return 0;
2717 _ACEOF
2718 if ac_fn_c_try_compile "$LINENO"; then :
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2723 main ()
2725 if (sizeof (($2)))
2726 return 0;
2728 return 0;
2730 _ACEOF
2731 if ac_fn_c_try_compile "$LINENO"; then :
2733 else
2734 eval "$3=yes"
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 eval ac_res=\$$3
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2742 $as_echo "$ac_res" >&6; }
2743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2745 } # ac_fn_c_check_type
2746 cat >config.log <<_ACEOF
2747 This file contains any messages produced by compilers while
2748 running configure, to aid debugging if configure makes a mistake.
2750 It was created by Wine $as_me 1.7.12, which was
2751 generated by GNU Autoconf 2.69. Invocation command line was
2753 $ $0 $@
2755 _ACEOF
2756 exec 5>>config.log
2758 cat <<_ASUNAME
2759 ## --------- ##
2760 ## Platform. ##
2761 ## --------- ##
2763 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2764 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2765 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2766 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2767 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2769 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2770 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2772 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2773 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2774 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2775 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2776 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2777 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2778 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2780 _ASUNAME
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 $as_echo "PATH: $as_dir"
2788 done
2789 IFS=$as_save_IFS
2791 } >&5
2793 cat >&5 <<_ACEOF
2796 ## ----------- ##
2797 ## Core tests. ##
2798 ## ----------- ##
2800 _ACEOF
2803 # Keep a trace of the command line.
2804 # Strip out --no-create and --no-recursion so they do not pile up.
2805 # Strip out --silent because we don't want to record it for future runs.
2806 # Also quote any args containing shell meta-characters.
2807 # Make two passes to allow for proper duplicate-argument suppression.
2808 ac_configure_args=
2809 ac_configure_args0=
2810 ac_configure_args1=
2811 ac_must_keep_next=false
2812 for ac_pass in 1 2
2814 for ac_arg
2816 case $ac_arg in
2817 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2818 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2819 | -silent | --silent | --silen | --sile | --sil)
2820 continue ;;
2821 *\'*)
2822 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2823 esac
2824 case $ac_pass in
2825 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2827 as_fn_append ac_configure_args1 " '$ac_arg'"
2828 if test $ac_must_keep_next = true; then
2829 ac_must_keep_next=false # Got value, back to normal.
2830 else
2831 case $ac_arg in
2832 *=* | --config-cache | -C | -disable-* | --disable-* \
2833 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2834 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2835 | -with-* | --with-* | -without-* | --without-* | --x)
2836 case "$ac_configure_args0 " in
2837 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2838 esac
2840 -* ) ac_must_keep_next=true ;;
2841 esac
2843 as_fn_append ac_configure_args " '$ac_arg'"
2845 esac
2846 done
2847 done
2848 { ac_configure_args0=; unset ac_configure_args0;}
2849 { ac_configure_args1=; unset ac_configure_args1;}
2851 # When interrupted or exit'd, cleanup temporary files, and complete
2852 # config.log. We remove comments because anyway the quotes in there
2853 # would cause problems or look ugly.
2854 # WARNING: Use '\'' to represent an apostrophe within the trap.
2855 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2856 trap 'exit_status=$?
2857 # Save into config.log some information that might help in debugging.
2859 echo
2861 $as_echo "## ---------------- ##
2862 ## Cache variables. ##
2863 ## ---------------- ##"
2864 echo
2865 # The following way of writing the cache mishandles newlines in values,
2867 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2868 eval ac_val=\$$ac_var
2869 case $ac_val in #(
2870 *${as_nl}*)
2871 case $ac_var in #(
2872 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2873 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2874 esac
2875 case $ac_var in #(
2876 _ | IFS | as_nl) ;; #(
2877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2878 *) { eval $ac_var=; unset $ac_var;} ;;
2879 esac ;;
2880 esac
2881 done
2882 (set) 2>&1 |
2883 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2884 *${as_nl}ac_space=\ *)
2885 sed -n \
2886 "s/'\''/'\''\\\\'\'''\''/g;
2887 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2888 ;; #(
2890 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2892 esac |
2893 sort
2895 echo
2897 $as_echo "## ----------------- ##
2898 ## Output variables. ##
2899 ## ----------------- ##"
2900 echo
2901 for ac_var in $ac_subst_vars
2903 eval ac_val=\$$ac_var
2904 case $ac_val in
2905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2906 esac
2907 $as_echo "$ac_var='\''$ac_val'\''"
2908 done | sort
2909 echo
2911 if test -n "$ac_subst_files"; then
2912 $as_echo "## ------------------- ##
2913 ## File substitutions. ##
2914 ## ------------------- ##"
2915 echo
2916 for ac_var in $ac_subst_files
2918 eval ac_val=\$$ac_var
2919 case $ac_val in
2920 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2921 esac
2922 $as_echo "$ac_var='\''$ac_val'\''"
2923 done | sort
2924 echo
2927 if test -s confdefs.h; then
2928 $as_echo "## ----------- ##
2929 ## confdefs.h. ##
2930 ## ----------- ##"
2931 echo
2932 cat confdefs.h
2933 echo
2935 test "$ac_signal" != 0 &&
2936 $as_echo "$as_me: caught signal $ac_signal"
2937 $as_echo "$as_me: exit $exit_status"
2938 } >&5
2939 rm -f core *.core core.conftest.* &&
2940 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2941 exit $exit_status
2943 for ac_signal in 1 2 13 15; do
2944 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2945 done
2946 ac_signal=0
2948 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2949 rm -f -r conftest* confdefs.h
2951 $as_echo "/* confdefs.h */" > confdefs.h
2953 # Predefined preprocessor variables.
2955 cat >>confdefs.h <<_ACEOF
2956 #define PACKAGE_NAME "$PACKAGE_NAME"
2957 _ACEOF
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2961 _ACEOF
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2965 _ACEOF
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_STRING "$PACKAGE_STRING"
2969 _ACEOF
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2973 _ACEOF
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_URL "$PACKAGE_URL"
2977 _ACEOF
2980 # Let the site file select an alternate cache file if it wants to.
2981 # Prefer an explicitly selected file to automatically selected ones.
2982 ac_site_file1=NONE
2983 ac_site_file2=NONE
2984 if test -n "$CONFIG_SITE"; then
2985 # We do not want a PATH search for config.site.
2986 case $CONFIG_SITE in #((
2987 -*) ac_site_file1=./$CONFIG_SITE;;
2988 */*) ac_site_file1=$CONFIG_SITE;;
2989 *) ac_site_file1=./$CONFIG_SITE;;
2990 esac
2991 elif test "x$prefix" != xNONE; then
2992 ac_site_file1=$prefix/share/config.site
2993 ac_site_file2=$prefix/etc/config.site
2994 else
2995 ac_site_file1=$ac_default_prefix/share/config.site
2996 ac_site_file2=$ac_default_prefix/etc/config.site
2998 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3000 test "x$ac_site_file" = xNONE && continue
3001 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3003 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3004 sed 's/^/| /' "$ac_site_file" >&5
3005 . "$ac_site_file" \
3006 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3008 as_fn_error $? "failed to load site script $ac_site_file
3009 See \`config.log' for more details" "$LINENO" 5; }
3011 done
3013 if test -r "$cache_file"; then
3014 # Some versions of bash will fail to source /dev/null (special files
3015 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3016 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3018 $as_echo "$as_me: loading cache $cache_file" >&6;}
3019 case $cache_file in
3020 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3021 *) . "./$cache_file";;
3022 esac
3024 else
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3026 $as_echo "$as_me: creating cache $cache_file" >&6;}
3027 >$cache_file
3030 # Check that the precious variables saved in the cache have kept the same
3031 # value.
3032 ac_cache_corrupted=false
3033 for ac_var in $ac_precious_vars; do
3034 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3035 eval ac_new_set=\$ac_env_${ac_var}_set
3036 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3037 eval ac_new_val=\$ac_env_${ac_var}_value
3038 case $ac_old_set,$ac_new_set in
3039 set,)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3041 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3042 ac_cache_corrupted=: ;;
3043 ,set)
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3045 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3046 ac_cache_corrupted=: ;;
3047 ,);;
3049 if test "x$ac_old_val" != "x$ac_new_val"; then
3050 # differences in whitespace do not lead to failure.
3051 ac_old_val_w=`echo x $ac_old_val`
3052 ac_new_val_w=`echo x $ac_new_val`
3053 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3055 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3056 ac_cache_corrupted=:
3057 else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3059 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3060 eval $ac_var=\$ac_old_val
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3063 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3065 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3066 fi;;
3067 esac
3068 # Pass precious variables to config.status.
3069 if test "$ac_new_set" = set; then
3070 case $ac_new_val in
3071 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3072 *) ac_arg=$ac_var=$ac_new_val ;;
3073 esac
3074 case " $ac_configure_args " in
3075 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3076 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3077 esac
3079 done
3080 if $ac_cache_corrupted; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3084 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3085 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3087 ## -------------------- ##
3088 ## Main body of script. ##
3089 ## -------------------- ##
3091 ac_ext=c
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099 ac_config_headers="$ac_config_headers include/config.h"
3101 ac_aux_dir=
3102 for ac_dir in tools "$srcdir"/tools; do
3103 if test -f "$ac_dir/install-sh"; then
3104 ac_aux_dir=$ac_dir
3105 ac_install_sh="$ac_aux_dir/install-sh -c"
3106 break
3107 elif test -f "$ac_dir/install.sh"; then
3108 ac_aux_dir=$ac_dir
3109 ac_install_sh="$ac_aux_dir/install.sh -c"
3110 break
3111 elif test -f "$ac_dir/shtool"; then
3112 ac_aux_dir=$ac_dir
3113 ac_install_sh="$ac_aux_dir/shtool install -c"
3114 break
3116 done
3117 if test -z "$ac_aux_dir"; then
3118 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3121 # These three variables are undocumented and unsupported,
3122 # and are intended to be withdrawn in a future Autoconf release.
3123 # They can cause serious problems if a builder's source tree is in a directory
3124 # whose full name contains unusual characters.
3125 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3126 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3127 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3131 libwine_version="1.0"
3135 # Check whether --enable-win16 was given.
3136 if test "${enable_win16+set}" = set; then :
3137 enableval=$enable_win16;
3140 # Check whether --enable-win64 was given.
3141 if test "${enable_win64+set}" = set; then :
3142 enableval=$enable_win64;
3145 # Check whether --enable-tests was given.
3146 if test "${enable_tests+set}" = set; then :
3147 enableval=$enable_tests;
3150 # Check whether --enable-maintainer-mode was given.
3151 if test "${enable_maintainer_mode+set}" = set; then :
3152 enableval=$enable_maintainer_mode;
3157 # Check whether --with-alsa was given.
3158 if test "${with_alsa+set}" = set; then :
3159 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
3163 # Check whether --with-capi was given.
3164 if test "${with_capi+set}" = set; then :
3165 withval=$with_capi;
3169 # Check whether --with-cms was given.
3170 if test "${with_cms+set}" = set; then :
3171 withval=$with_cms;
3175 # Check whether --with-coreaudio was given.
3176 if test "${with_coreaudio+set}" = set; then :
3177 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
3181 # Check whether --with-cups was given.
3182 if test "${with_cups+set}" = set; then :
3183 withval=$with_cups;
3187 # Check whether --with-curses was given.
3188 if test "${with_curses+set}" = set; then :
3189 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
3193 # Check whether --with-dbus was given.
3194 if test "${with_dbus+set}" = set; then :
3195 withval=$with_dbus;
3199 # Check whether --with-fontconfig was given.
3200 if test "${with_fontconfig+set}" = set; then :
3201 withval=$with_fontconfig;
3205 # Check whether --with-freetype was given.
3206 if test "${with_freetype+set}" = set; then :
3207 withval=$with_freetype;
3211 # Check whether --with-gettext was given.
3212 if test "${with_gettext+set}" = set; then :
3213 withval=$with_gettext;
3217 # Check whether --with-gettextpo was given.
3218 if test "${with_gettextpo+set}" = set; then :
3219 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
3223 # Check whether --with-gphoto was given.
3224 if test "${with_gphoto+set}" = set; then :
3225 withval=$with_gphoto;
3229 # Check whether --with-glu was given.
3230 if test "${with_glu+set}" = set; then :
3231 withval=$with_glu;
3235 # Check whether --with-gnutls was given.
3236 if test "${with_gnutls+set}" = set; then :
3237 withval=$with_gnutls;
3241 # Check whether --with-gsm was given.
3242 if test "${with_gsm+set}" = set; then :
3243 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
3247 # Check whether --with-gstreamer was given.
3248 if test "${with_gstreamer+set}" = set; then :
3249 withval=$with_gstreamer;
3253 # Check whether --with-hal was given.
3254 if test "${with_hal+set}" = set; then :
3255 withval=$with_hal;
3259 # Check whether --with-jpeg was given.
3260 if test "${with_jpeg+set}" = set; then :
3261 withval=$with_jpeg;
3265 # Check whether --with-ldap was given.
3266 if test "${with_ldap+set}" = set; then :
3267 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
3271 # Check whether --with-mpg123 was given.
3272 if test "${with_mpg123+set}" = set; then :
3273 withval=$with_mpg123;
3277 # Check whether --with-netapi was given.
3278 if test "${with_netapi+set}" = set; then :
3279 withval=$with_netapi;
3283 # Check whether --with-openal was given.
3284 if test "${with_openal+set}" = set; then :
3285 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
3289 # Check whether --with-opencl was given.
3290 if test "${with_opencl+set}" = set; then :
3291 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
3295 # Check whether --with-opengl was given.
3296 if test "${with_opengl+set}" = set; then :
3297 withval=$with_opengl;
3301 # Check whether --with-osmesa was given.
3302 if test "${with_osmesa+set}" = set; then :
3303 withval=$with_osmesa;
3307 # Check whether --with-oss was given.
3308 if test "${with_oss+set}" = set; then :
3309 withval=$with_oss;
3313 # Check whether --with-png was given.
3314 if test "${with_png+set}" = set; then :
3315 withval=$with_png;
3319 # Check whether --with-pthread was given.
3320 if test "${with_pthread+set}" = set; then :
3321 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
3325 # Check whether --with-sane was given.
3326 if test "${with_sane+set}" = set; then :
3327 withval=$with_sane;
3331 # Check whether --with-tiff was given.
3332 if test "${with_tiff+set}" = set; then :
3333 withval=$with_tiff;
3337 # Check whether --with-v4l was given.
3338 if test "${with_v4l+set}" = set; then :
3339 withval=$with_v4l;
3343 # Check whether --with-xcomposite was given.
3344 if test "${with_xcomposite+set}" = set; then :
3345 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
3349 # Check whether --with-xcursor was given.
3350 if test "${with_xcursor+set}" = set; then :
3351 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
3355 # Check whether --with-xinerama was given.
3356 if test "${with_xinerama+set}" = set; then :
3357 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
3361 # Check whether --with-xinput was given.
3362 if test "${with_xinput+set}" = set; then :
3363 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
3367 # Check whether --with-xinput2 was given.
3368 if test "${with_xinput2+set}" = set; then :
3369 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
3373 # Check whether --with-xml was given.
3374 if test "${with_xml+set}" = set; then :
3375 withval=$with_xml;
3379 # Check whether --with-xrandr was given.
3380 if test "${with_xrandr+set}" = set; then :
3381 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
3385 # Check whether --with-xrender was given.
3386 if test "${with_xrender+set}" = set; then :
3387 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
3391 # Check whether --with-xshape was given.
3392 if test "${with_xshape+set}" = set; then :
3393 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
3397 # Check whether --with-xshm was given.
3398 if test "${with_xshm+set}" = set; then :
3399 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
3403 # Check whether --with-xslt was given.
3404 if test "${with_xslt+set}" = set; then :
3405 withval=$with_xslt;
3409 # Check whether --with-xxf86vm was given.
3410 if test "${with_xxf86vm+set}" = set; then :
3411 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
3415 # Check whether --with-zlib was given.
3416 if test "${with_zlib+set}" = set; then :
3417 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
3422 # Check whether --with-wine-tools was given.
3423 if test "${with_wine_tools+set}" = set; then :
3424 withval=$with_wine_tools;
3428 # Check whether --with-wine64 was given.
3429 if test "${with_wine64+set}" = set; then :
3430 withval=$with_wine64;
3434 # Make sure we can run config.sub.
3435 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3436 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3439 $as_echo_n "checking build system type... " >&6; }
3440 if ${ac_cv_build+:} false; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 ac_build_alias=$build_alias
3444 test "x$ac_build_alias" = x &&
3445 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3446 test "x$ac_build_alias" = x &&
3447 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3448 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3449 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3453 $as_echo "$ac_cv_build" >&6; }
3454 case $ac_cv_build in
3455 *-*-*) ;;
3456 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3457 esac
3458 build=$ac_cv_build
3459 ac_save_IFS=$IFS; IFS='-'
3460 set x $ac_cv_build
3461 shift
3462 build_cpu=$1
3463 build_vendor=$2
3464 shift; shift
3465 # Remember, the first character of IFS is used to create $*,
3466 # except with old shells:
3467 build_os=$*
3468 IFS=$ac_save_IFS
3469 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3473 $as_echo_n "checking host system type... " >&6; }
3474 if ${ac_cv_host+:} false; then :
3475 $as_echo_n "(cached) " >&6
3476 else
3477 if test "x$host_alias" = x; then
3478 ac_cv_host=$ac_cv_build
3479 else
3480 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3481 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3486 $as_echo "$ac_cv_host" >&6; }
3487 case $ac_cv_host in
3488 *-*-*) ;;
3489 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3490 esac
3491 host=$ac_cv_host
3492 ac_save_IFS=$IFS; IFS='-'
3493 set x $ac_cv_host
3494 shift
3495 host_cpu=$1
3496 host_vendor=$2
3497 shift; shift
3498 # Remember, the first character of IFS is used to create $*,
3499 # except with old shells:
3500 host_os=$*
3501 IFS=$ac_save_IFS
3502 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3506 case "$srcdir" in
3507 .) ;;
3508 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
3509 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
3510 You need to run 'make distclean' in the source tree first." "$LINENO" 5
3511 fi ;;
3512 esac
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3516 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3517 set x ${MAKE-make}
3518 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3519 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 cat >conftest.make <<\_ACEOF
3523 SHELL = /bin/sh
3524 all:
3525 @echo '@@@%%%=$(MAKE)=@@@%%%'
3526 _ACEOF
3527 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3528 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3529 *@@@%%%=?*=@@@%%%*)
3530 eval ac_cv_prog_make_${ac_make}_set=yes;;
3532 eval ac_cv_prog_make_${ac_make}_set=no;;
3533 esac
3534 rm -f conftest.make
3536 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3538 $as_echo "yes" >&6; }
3539 SET_MAKE=
3540 else
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3542 $as_echo "no" >&6; }
3543 SET_MAKE="MAKE=${MAKE-make}"
3546 ac_ext=c
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 if test -n "$ac_tool_prefix"; then
3552 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3553 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_CC+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3573 done
3574 done
3575 IFS=$as_save_IFS
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3590 if test -z "$ac_cv_prog_CC"; then
3591 ac_ct_CC=$CC
3592 # Extract the first word of "gcc", so it can be a program name with args.
3593 set dummy gcc; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 if test -n "$ac_ct_CC"; then
3600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_ac_ct_CC="gcc"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3613 done
3614 done
3615 IFS=$as_save_IFS
3619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3620 if test -n "$ac_ct_CC"; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3622 $as_echo "$ac_ct_CC" >&6; }
3623 else
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3628 if test "x$ac_ct_CC" = x; then
3629 CC=""
3630 else
3631 case $cross_compiling:$ac_tool_warned in
3632 yes:)
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3635 ac_tool_warned=yes ;;
3636 esac
3637 CC=$ac_ct_CC
3639 else
3640 CC="$ac_cv_prog_CC"
3643 if test -z "$CC"; then
3644 if test -n "$ac_tool_prefix"; then
3645 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3646 set dummy ${ac_tool_prefix}cc; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if ${ac_cv_prog_CC+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 if test -n "$CC"; then
3653 ac_cv_prog_CC="$CC" # Let the user override the test.
3654 else
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3662 ac_cv_prog_CC="${ac_tool_prefix}cc"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3666 done
3667 done
3668 IFS=$as_save_IFS
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3684 if test -z "$CC"; then
3685 # Extract the first word of "cc", so it can be a program name with args.
3686 set dummy cc; ac_word=$2
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688 $as_echo_n "checking for $ac_word... " >&6; }
3689 if ${ac_cv_prog_CC+:} false; then :
3690 $as_echo_n "(cached) " >&6
3691 else
3692 if test -n "$CC"; then
3693 ac_cv_prog_CC="$CC" # Let the user override the test.
3694 else
3695 ac_prog_rejected=no
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 for as_dir in $PATH
3699 IFS=$as_save_IFS
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3704 ac_prog_rejected=yes
3705 continue
3707 ac_cv_prog_CC="cc"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3711 done
3712 done
3713 IFS=$as_save_IFS
3715 if test $ac_prog_rejected = yes; then
3716 # We found a bogon in the path, so make sure we never use it.
3717 set dummy $ac_cv_prog_CC
3718 shift
3719 if test $# != 0; then
3720 # We chose a different compiler from the bogus one.
3721 # However, it has the same basename, so the bogon will be chosen
3722 # first if we set CC to just the basename; use the full file name.
3723 shift
3724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3729 CC=$ac_cv_prog_CC
3730 if test -n "$CC"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3732 $as_echo "$CC" >&6; }
3733 else
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 $as_echo "no" >&6; }
3740 if test -z "$CC"; then
3741 if test -n "$ac_tool_prefix"; then
3742 for ac_prog in cl.exe
3744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if ${ac_cv_prog_CC+:} false; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 if test -n "$CC"; then
3752 ac_cv_prog_CC="$CC" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3765 done
3766 done
3767 IFS=$as_save_IFS
3771 CC=$ac_cv_prog_CC
3772 if test -n "$CC"; then
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3774 $as_echo "$CC" >&6; }
3775 else
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 $as_echo "no" >&6; }
3781 test -n "$CC" && break
3782 done
3784 if test -z "$CC"; then
3785 ac_ct_CC=$CC
3786 for ac_prog in cl.exe
3788 # Extract the first word of "$ac_prog", so it can be a program name with args.
3789 set dummy $ac_prog; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 if test -n "$ac_ct_CC"; then
3796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3805 ac_cv_prog_ac_ct_CC="$ac_prog"
3806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3809 done
3810 done
3811 IFS=$as_save_IFS
3815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3816 if test -n "$ac_ct_CC"; then
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3818 $as_echo "$ac_ct_CC" >&6; }
3819 else
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3821 $as_echo "no" >&6; }
3825 test -n "$ac_ct_CC" && break
3826 done
3828 if test "x$ac_ct_CC" = x; then
3829 CC=""
3830 else
3831 case $cross_compiling:$ac_tool_warned in
3832 yes:)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835 ac_tool_warned=yes ;;
3836 esac
3837 CC=$ac_ct_CC
3844 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3846 as_fn_error $? "no acceptable C compiler found in \$PATH
3847 See \`config.log' for more details" "$LINENO" 5; }
3849 # Provide some information about the compiler.
3850 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3851 set X $ac_compile
3852 ac_compiler=$2
3853 for ac_option in --version -v -V -qversion; do
3854 { { ac_try="$ac_compiler $ac_option >&5"
3855 case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858 esac
3859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3862 ac_status=$?
3863 if test -s conftest.err; then
3864 sed '10a\
3865 ... rest of stderr output deleted ...
3866 10q' conftest.err >conftest.er1
3867 cat conftest.er1 >&5
3869 rm -f conftest.er1 conftest.err
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }
3872 done
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3878 main ()
3882 return 0;
3884 _ACEOF
3885 ac_clean_files_save=$ac_clean_files
3886 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3887 # Try to create an executable without -o first, disregard a.out.
3888 # It will help us diagnose broken compilers, and finding out an intuition
3889 # of exeext.
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3891 $as_echo_n "checking whether the C compiler works... " >&6; }
3892 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3894 # The possible output files:
3895 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3897 ac_rmfiles=
3898 for ac_file in $ac_files
3900 case $ac_file in
3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3902 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3903 esac
3904 done
3905 rm -f $ac_rmfiles
3907 if { { ac_try="$ac_link_default"
3908 case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 $as_echo "$ac_try_echo"; } >&5
3914 (eval "$ac_link_default") 2>&5
3915 ac_status=$?
3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917 test $ac_status = 0; }; then :
3918 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3919 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3920 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3921 # so that the user can short-circuit this test for compilers unknown to
3922 # Autoconf.
3923 for ac_file in $ac_files ''
3925 test -f "$ac_file" || continue
3926 case $ac_file in
3927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3929 [ab].out )
3930 # We found the default executable, but exeext='' is most
3931 # certainly right.
3932 break;;
3933 *.* )
3934 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3935 then :; else
3936 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3938 # We set ac_cv_exeext here because the later test for it is not
3939 # safe: cross compilers may not add the suffix if given an `-o'
3940 # argument, so we may need to know it at that point already.
3941 # Even if this section looks crufty: it has the advantage of
3942 # actually working.
3943 break;;
3945 break;;
3946 esac
3947 done
3948 test "$ac_cv_exeext" = no && ac_cv_exeext=
3950 else
3951 ac_file=''
3953 if test -z "$ac_file"; then :
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955 $as_echo "no" >&6; }
3956 $as_echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3961 as_fn_error 77 "C compiler cannot create executables
3962 See \`config.log' for more details" "$LINENO" 5; }
3963 else
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3965 $as_echo "yes" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3968 $as_echo_n "checking for C compiler default output file name... " >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3970 $as_echo "$ac_file" >&6; }
3971 ac_exeext=$ac_cv_exeext
3973 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3974 ac_clean_files=$ac_clean_files_save
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3976 $as_echo_n "checking for suffix of executables... " >&6; }
3977 if { { ac_try="$ac_link"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_link") 2>&5
3985 ac_status=$?
3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987 test $ac_status = 0; }; then :
3988 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3989 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3990 # work properly (i.e., refer to `conftest.exe'), while it won't with
3991 # `rm'.
3992 for ac_file in conftest.exe conftest conftest.*; do
3993 test -f "$ac_file" || continue
3994 case $ac_file in
3995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3996 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3997 break;;
3998 * ) break;;
3999 esac
4000 done
4001 else
4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4005 See \`config.log' for more details" "$LINENO" 5; }
4007 rm -f conftest conftest$ac_cv_exeext
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4009 $as_echo "$ac_cv_exeext" >&6; }
4011 rm -f conftest.$ac_ext
4012 EXEEXT=$ac_cv_exeext
4013 ac_exeext=$EXEEXT
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4016 #include <stdio.h>
4018 main ()
4020 FILE *f = fopen ("conftest.out", "w");
4021 return ferror (f) || fclose (f) != 0;
4024 return 0;
4026 _ACEOF
4027 ac_clean_files="$ac_clean_files conftest.out"
4028 # Check that the compiler produces executables we can run. If not, either
4029 # the compiler is broken, or we cross compile.
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4031 $as_echo_n "checking whether we are cross compiling... " >&6; }
4032 if test "$cross_compiling" != yes; then
4033 { { ac_try="$ac_link"
4034 case "(($ac_try" in
4035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4036 *) ac_try_echo=$ac_try;;
4037 esac
4038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 $as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_link") 2>&5
4041 ac_status=$?
4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }
4044 if { ac_try='./conftest$ac_cv_exeext'
4045 { { case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048 esac
4049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050 $as_echo "$ac_try_echo"; } >&5
4051 (eval "$ac_try") 2>&5
4052 ac_status=$?
4053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054 test $ac_status = 0; }; }; then
4055 cross_compiling=no
4056 else
4057 if test "$cross_compiling" = maybe; then
4058 cross_compiling=yes
4059 else
4060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4062 as_fn_error $? "cannot run C compiled programs.
4063 If you meant to cross compile, use \`--host'.
4064 See \`config.log' for more details" "$LINENO" 5; }
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4069 $as_echo "$cross_compiling" >&6; }
4071 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4072 ac_clean_files=$ac_clean_files_save
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4074 $as_echo_n "checking for suffix of object files... " >&6; }
4075 if ${ac_cv_objext+:} false; then :
4076 $as_echo_n "(cached) " >&6
4077 else
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4082 main ()
4086 return 0;
4088 _ACEOF
4089 rm -f conftest.o conftest.obj
4090 if { { ac_try="$ac_compile"
4091 case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4094 esac
4095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4096 $as_echo "$ac_try_echo"; } >&5
4097 (eval "$ac_compile") 2>&5
4098 ac_status=$?
4099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4100 test $ac_status = 0; }; then :
4101 for ac_file in conftest.o conftest.obj conftest.*; do
4102 test -f "$ac_file" || continue;
4103 case $ac_file in
4104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4105 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4106 break;;
4107 esac
4108 done
4109 else
4110 $as_echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4115 as_fn_error $? "cannot compute suffix of object files: cannot compile
4116 See \`config.log' for more details" "$LINENO" 5; }
4118 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4121 $as_echo "$ac_cv_objext" >&6; }
4122 OBJEXT=$ac_cv_objext
4123 ac_objext=$OBJEXT
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4125 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4126 if ${ac_cv_c_compiler_gnu+:} false; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4133 main ()
4135 #ifndef __GNUC__
4136 choke me
4137 #endif
4140 return 0;
4142 _ACEOF
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144 ac_compiler_gnu=yes
4145 else
4146 ac_compiler_gnu=no
4148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4149 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4153 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4154 if test $ac_compiler_gnu = yes; then
4155 GCC=yes
4156 else
4157 GCC=
4159 ac_test_CFLAGS=${CFLAGS+set}
4160 ac_save_CFLAGS=$CFLAGS
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4162 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4163 if ${ac_cv_prog_cc_g+:} false; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 ac_save_c_werror_flag=$ac_c_werror_flag
4167 ac_c_werror_flag=yes
4168 ac_cv_prog_cc_g=no
4169 CFLAGS="-g"
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4174 main ()
4178 return 0;
4180 _ACEOF
4181 if ac_fn_c_try_compile "$LINENO"; then :
4182 ac_cv_prog_cc_g=yes
4183 else
4184 CFLAGS=""
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4189 main ()
4193 return 0;
4195 _ACEOF
4196 if ac_fn_c_try_compile "$LINENO"; then :
4198 else
4199 ac_c_werror_flag=$ac_save_c_werror_flag
4200 CFLAGS="-g"
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4205 main ()
4209 return 0;
4211 _ACEOF
4212 if ac_fn_c_try_compile "$LINENO"; then :
4213 ac_cv_prog_cc_g=yes
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 ac_c_werror_flag=$ac_save_c_werror_flag
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4223 $as_echo "$ac_cv_prog_cc_g" >&6; }
4224 if test "$ac_test_CFLAGS" = set; then
4225 CFLAGS=$ac_save_CFLAGS
4226 elif test $ac_cv_prog_cc_g = yes; then
4227 if test "$GCC" = yes; then
4228 CFLAGS="-g -O2"
4229 else
4230 CFLAGS="-g"
4232 else
4233 if test "$GCC" = yes; then
4234 CFLAGS="-O2"
4235 else
4236 CFLAGS=
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4240 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4241 if ${ac_cv_prog_cc_c89+:} false; then :
4242 $as_echo_n "(cached) " >&6
4243 else
4244 ac_cv_prog_cc_c89=no
4245 ac_save_CC=$CC
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4248 #include <stdarg.h>
4249 #include <stdio.h>
4250 struct stat;
4251 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4252 struct buf { int x; };
4253 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4254 static char *e (p, i)
4255 char **p;
4256 int i;
4258 return p[i];
4260 static char *f (char * (*g) (char **, int), char **p, ...)
4262 char *s;
4263 va_list v;
4264 va_start (v,p);
4265 s = g (p, va_arg (v,int));
4266 va_end (v);
4267 return s;
4270 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4271 function prototypes and stuff, but not '\xHH' hex character constants.
4272 These don't provoke an error unfortunately, instead are silently treated
4273 as 'x'. The following induces an error, until -std is added to get
4274 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4275 array size at least. It's necessary to write '\x00'==0 to get something
4276 that's true only with -std. */
4277 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4279 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4280 inside strings and character constants. */
4281 #define FOO(x) 'x'
4282 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4284 int test (int i, double x);
4285 struct s1 {int (*f) (int a);};
4286 struct s2 {int (*f) (double a);};
4287 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4288 int argc;
4289 char **argv;
4291 main ()
4293 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4295 return 0;
4297 _ACEOF
4298 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4299 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4301 CC="$ac_save_CC $ac_arg"
4302 if ac_fn_c_try_compile "$LINENO"; then :
4303 ac_cv_prog_cc_c89=$ac_arg
4305 rm -f core conftest.err conftest.$ac_objext
4306 test "x$ac_cv_prog_cc_c89" != "xno" && break
4307 done
4308 rm -f conftest.$ac_ext
4309 CC=$ac_save_CC
4312 # AC_CACHE_VAL
4313 case "x$ac_cv_prog_cc_c89" in
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4316 $as_echo "none needed" >&6; } ;;
4317 xno)
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4319 $as_echo "unsupported" >&6; } ;;
4321 CC="$CC $ac_cv_prog_cc_c89"
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4323 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4324 esac
4325 if test "x$ac_cv_prog_cc_c89" != xno; then :
4329 ac_ext=c
4330 ac_cpp='$CPP $CPPFLAGS'
4331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335 ac_ext=cpp
4336 ac_cpp='$CXXCPP $CPPFLAGS'
4337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4340 if test -z "$CXX"; then
4341 if test -n "$CCC"; then
4342 CXX=$CCC
4343 else
4344 if test -n "$ac_tool_prefix"; then
4345 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 $as_echo_n "checking for $ac_word... " >&6; }
4351 if ${ac_cv_prog_CXX+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354 if test -n "$CXX"; then
4355 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4356 else
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4364 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 break 2
4368 done
4369 done
4370 IFS=$as_save_IFS
4374 CXX=$ac_cv_prog_CXX
4375 if test -n "$CXX"; then
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4377 $as_echo "$CXX" >&6; }
4378 else
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; }
4384 test -n "$CXX" && break
4385 done
4387 if test -z "$CXX"; then
4388 ac_ct_CXX=$CXX
4389 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4391 # Extract the first word of "$ac_prog", so it can be a program name with args.
4392 set dummy $ac_prog; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4396 $as_echo_n "(cached) " >&6
4397 else
4398 if test -n "$ac_ct_CXX"; then
4399 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4404 IFS=$as_save_IFS
4405 test -z "$as_dir" && as_dir=.
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4408 ac_cv_prog_ac_ct_CXX="$ac_prog"
4409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 break 2
4412 done
4413 done
4414 IFS=$as_save_IFS
4418 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4419 if test -n "$ac_ct_CXX"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4421 $as_echo "$ac_ct_CXX" >&6; }
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4428 test -n "$ac_ct_CXX" && break
4429 done
4431 if test "x$ac_ct_CXX" = x; then
4432 CXX="g++"
4433 else
4434 case $cross_compiling:$ac_tool_warned in
4435 yes:)
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4438 ac_tool_warned=yes ;;
4439 esac
4440 CXX=$ac_ct_CXX
4446 # Provide some information about the compiler.
4447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4448 set X $ac_compile
4449 ac_compiler=$2
4450 for ac_option in --version -v -V -qversion; do
4451 { { ac_try="$ac_compiler $ac_option >&5"
4452 case "(($ac_try" in
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4459 ac_status=$?
4460 if test -s conftest.err; then
4461 sed '10a\
4462 ... rest of stderr output deleted ...
4463 10q' conftest.err >conftest.er1
4464 cat conftest.er1 >&5
4466 rm -f conftest.er1 conftest.err
4467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468 test $ac_status = 0; }
4469 done
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4472 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4473 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4480 main ()
4482 #ifndef __GNUC__
4483 choke me
4484 #endif
4487 return 0;
4489 _ACEOF
4490 if ac_fn_cxx_try_compile "$LINENO"; then :
4491 ac_compiler_gnu=yes
4492 else
4493 ac_compiler_gnu=no
4495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4500 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4501 if test $ac_compiler_gnu = yes; then
4502 GXX=yes
4503 else
4504 GXX=
4506 ac_test_CXXFLAGS=${CXXFLAGS+set}
4507 ac_save_CXXFLAGS=$CXXFLAGS
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4509 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4510 if ${ac_cv_prog_cxx_g+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4514 ac_cxx_werror_flag=yes
4515 ac_cv_prog_cxx_g=no
4516 CXXFLAGS="-g"
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4521 main ()
4525 return 0;
4527 _ACEOF
4528 if ac_fn_cxx_try_compile "$LINENO"; then :
4529 ac_cv_prog_cxx_g=yes
4530 else
4531 CXXFLAGS=""
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4536 main ()
4540 return 0;
4542 _ACEOF
4543 if ac_fn_cxx_try_compile "$LINENO"; then :
4545 else
4546 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4547 CXXFLAGS="-g"
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4552 main ()
4556 return 0;
4558 _ACEOF
4559 if ac_fn_cxx_try_compile "$LINENO"; then :
4560 ac_cv_prog_cxx_g=yes
4562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4570 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4571 if test "$ac_test_CXXFLAGS" = set; then
4572 CXXFLAGS=$ac_save_CXXFLAGS
4573 elif test $ac_cv_prog_cxx_g = yes; then
4574 if test "$GXX" = yes; then
4575 CXXFLAGS="-g -O2"
4576 else
4577 CXXFLAGS="-g"
4579 else
4580 if test "$GXX" = yes; then
4581 CXXFLAGS="-O2"
4582 else
4583 CXXFLAGS=
4586 ac_ext=c
4587 ac_cpp='$CPP $CPPFLAGS'
4588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592 if test -n "$ac_tool_prefix"; then
4593 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4594 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_CPPBIN+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$CPPBIN"; then
4601 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4614 done
4615 done
4616 IFS=$as_save_IFS
4620 CPPBIN=$ac_cv_prog_CPPBIN
4621 if test -n "$CPPBIN"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4623 $as_echo "$CPPBIN" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4631 if test -z "$ac_cv_prog_CPPBIN"; then
4632 ac_ct_CPPBIN=$CPPBIN
4633 # Extract the first word of "cpp", so it can be a program name with args.
4634 set dummy cpp; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -n "$ac_ct_CPPBIN"; then
4641 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_ac_ct_CPPBIN="cpp"
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4654 done
4655 done
4656 IFS=$as_save_IFS
4660 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4661 if test -n "$ac_ct_CPPBIN"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4663 $as_echo "$ac_ct_CPPBIN" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4669 if test "x$ac_ct_CPPBIN" = x; then
4670 CPPBIN="cpp"
4671 else
4672 case $cross_compiling:$ac_tool_warned in
4673 yes:)
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4676 ac_tool_warned=yes ;;
4677 esac
4678 CPPBIN=$ac_ct_CPPBIN
4680 else
4681 CPPBIN="$ac_cv_prog_CPPBIN"
4685 cat >>confdefs.h <<_ACEOF
4686 #define EXEEXT "$ac_exeext"
4687 _ACEOF
4690 case $host in
4691 *-darwin*)
4692 if test "x$enable_win64" = "xyes"
4693 then
4694 CC="$CC -m64"
4695 CXX="$CXX -m64"
4696 host_cpu="x86_64"
4697 notice_platform="64-bit "
4698 TARGETFLAGS="-m64"
4700 else
4701 CC="$CC -m32"
4702 CXX="$CXX -m32"
4703 host_cpu="i386"
4704 notice_platform="32-bit "
4705 TARGETFLAGS="-m32"
4707 enable_win16=${enable_win16:-yes}
4709 with_fontconfig=${with_fontconfig:-no}
4711 x86_64*)
4712 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4713 then
4714 CC="$CC -m32"
4715 CXX="$CXX -m32"
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4717 $as_echo_n "checking whether $CC works... " >&6; }
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4723 main ()
4727 return 0;
4729 _ACEOF
4730 if ac_fn_c_try_link "$LINENO"; then :
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4732 $as_echo "yes" >&6; }
4733 else
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4735 $as_echo "no" >&6; }
4736 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4738 rm -f core conftest.err conftest.$ac_objext \
4739 conftest$ac_exeext conftest.$ac_ext
4740 host_cpu="i386"
4741 notice_platform="32-bit "
4742 TARGETFLAGS="-m32"
4744 enable_win16=${enable_win16:-yes}
4745 else
4746 if test "x${GCC}" = "xyes"
4747 then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4749 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4752 #include <stdarg.h>
4754 main ()
4756 void func(__builtin_ms_va_list *args);
4758 return 0;
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4763 $as_echo "yes" >&6; }
4764 else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4767 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 TARGETFLAGS="-m64"
4775 arm*)
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4777 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780 int ac_test(int i) { return i; }
4782 main ()
4784 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4786 return 0;
4788 _ACEOF
4789 if ac_fn_c_try_link "$LINENO"; then :
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4791 $as_echo "yes" >&6; }
4792 else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4795 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4797 rm -f core conftest.err conftest.$ac_objext \
4798 conftest$ac_exeext conftest.$ac_ext
4799 CFLAGS="$CFLAGS -marm"
4800 TARGETFLAGS="-marm"
4803 *-mingw32*|*-cygwin*)
4804 enable_win16=${enable_win16:-no}
4805 CFLAGS="$CFLAGS -D_WIN32"
4807 i[3456789]86*)
4808 enable_win16=${enable_win16:-yes}
4810 esac
4812 enable_win16=${enable_win16:-no}
4813 enable_win64=${enable_win64:-no}
4815 enable_winetest=${enable_winetest:-$enable_tests}
4817 if test -n "$with_wine64"
4818 then
4819 if test "x$enable_win64" = "xyes"
4820 then
4821 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4822 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4824 enable_fonts=${enable_fonts:-no}
4825 enable_server=${enable_server:-no}
4826 elif test "x$enable_win64" = "xyes"
4827 then
4828 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4832 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4833 if ${wine_cv_toolsdir+:} false; then :
4834 $as_echo_n "(cached) " >&6
4835 else
4836 wine_cv_toolsdir="$with_wine_tools"
4837 if test -z "$with_wine_tools"; then
4838 if test "$cross_compiling" = "yes"; then
4839 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4840 elif test -n "$with_wine64"; then
4841 wine_cv_toolsdir="$with_wine64"
4844 if test -z "$wine_cv_toolsdir"; then
4845 wine_cv_toolsdir="\$(top_builddir)"
4846 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4847 case "$wine_cv_toolsdir" in
4848 /*) ;;
4849 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4850 esac
4851 enable_tools=${enable_tools:-no}
4852 else
4853 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4857 $as_echo "$wine_cv_toolsdir" >&6; }
4858 TOOLSDIR=$wine_cv_toolsdir
4860 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4861 then
4862 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4866 for ac_prog in flex
4868 # Extract the first word of "$ac_prog", so it can be a program name with args.
4869 set dummy $ac_prog; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if ${ac_cv_prog_FLEX+:} false; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -n "$FLEX"; then
4876 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4885 ac_cv_prog_FLEX="$ac_prog"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4889 done
4890 done
4891 IFS=$as_save_IFS
4895 FLEX=$ac_cv_prog_FLEX
4896 if test -n "$FLEX"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4898 $as_echo "$FLEX" >&6; }
4899 else
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4905 test -n "$FLEX" && break
4906 done
4907 test -n "$FLEX" || FLEX="none"
4909 if test "$FLEX" = "none"
4910 then
4911 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4914 $as_echo_n "checking whether flex is recent enough... " >&6; }
4915 cat >conftest.l <<EOF
4916 %top{
4917 #include "prediluvian.h"
4921 if $FLEX -t conftest.l >/dev/null 2>&5
4922 then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4924 $as_echo "yes" >&6; }
4925 else
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4928 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4931 for ac_prog in bison
4933 # Extract the first word of "$ac_prog", so it can be a program name with args.
4934 set dummy $ac_prog; ac_word=$2
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936 $as_echo_n "checking for $ac_word... " >&6; }
4937 if ${ac_cv_prog_BISON+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if test -n "$BISON"; then
4941 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950 ac_cv_prog_BISON="$ac_prog"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4954 done
4955 done
4956 IFS=$as_save_IFS
4960 BISON=$ac_cv_prog_BISON
4961 if test -n "$BISON"; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4963 $as_echo "$BISON" >&6; }
4964 else
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4970 test -n "$BISON" && break
4971 done
4972 test -n "$BISON" || BISON="none"
4974 if test "$BISON" = "none"
4975 then
4976 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4979 if test -n "$ac_tool_prefix"; then
4980 for ac_prog in ar gar
4982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if ${ac_cv_prog_AR+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if test -n "$AR"; then
4990 ac_cv_prog_AR="$AR" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5003 done
5004 done
5005 IFS=$as_save_IFS
5009 AR=$ac_cv_prog_AR
5010 if test -n "$AR"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5012 $as_echo "$AR" >&6; }
5013 else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5019 test -n "$AR" && break
5020 done
5022 if test -z "$AR"; then
5023 ac_ct_AR=$AR
5024 for ac_prog in ar gar
5026 # Extract the first word of "$ac_prog", so it can be a program name with args.
5027 set dummy $ac_prog; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5031 $as_echo_n "(cached) " >&6
5032 else
5033 if test -n "$ac_ct_AR"; then
5034 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5035 else
5036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5039 IFS=$as_save_IFS
5040 test -z "$as_dir" && as_dir=.
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5043 ac_cv_prog_ac_ct_AR="$ac_prog"
5044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 break 2
5047 done
5048 done
5049 IFS=$as_save_IFS
5053 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5054 if test -n "$ac_ct_AR"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5056 $as_echo "$ac_ct_AR" >&6; }
5057 else
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5063 test -n "$ac_ct_AR" && break
5064 done
5066 if test "x$ac_ct_AR" = x; then
5067 AR="ar"
5068 else
5069 case $cross_compiling:$ac_tool_warned in
5070 yes:)
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5073 ac_tool_warned=yes ;;
5074 esac
5075 AR=$ac_ct_AR
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}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_STRIP+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$STRIP"; then
5088 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}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 STRIP=$ac_cv_prog_STRIP
5108 if test -n "$STRIP"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5110 $as_echo "$STRIP" >&6; }
5111 else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5118 if test -z "$ac_cv_prog_STRIP"; then
5119 ac_ct_STRIP=$STRIP
5120 # Extract the first word of "strip", so it can be a program name with args.
5121 set dummy strip; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 if test -n "$ac_ct_STRIP"; then
5128 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_ac_ct_STRIP="strip"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5141 done
5142 done
5143 IFS=$as_save_IFS
5147 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5148 if test -n "$ac_ct_STRIP"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5150 $as_echo "$ac_ct_STRIP" >&6; }
5151 else
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5156 if test "x$ac_ct_STRIP" = x; then
5157 STRIP="strip"
5158 else
5159 case $cross_compiling:$ac_tool_warned in
5160 yes:)
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163 ac_tool_warned=yes ;;
5164 esac
5165 STRIP=$ac_ct_STRIP
5167 else
5168 STRIP="$ac_cv_prog_STRIP"
5171 ARFLAGS=rc
5173 if test -n "$ac_tool_prefix"; then
5174 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5175 set dummy ${ac_tool_prefix}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_RANLIB+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180 else
5181 if test -n "$RANLIB"; then
5182 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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 RANLIB=$ac_cv_prog_RANLIB
5202 if test -n "$RANLIB"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5204 $as_echo "$RANLIB" >&6; }
5205 else
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5212 if test -z "$ac_cv_prog_RANLIB"; then
5213 ac_ct_RANLIB=$RANLIB
5214 # Extract the first word of "ranlib", so it can be a program name with args.
5215 set dummy ranlib; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 if test -n "$ac_ct_RANLIB"; then
5222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231 ac_cv_prog_ac_ct_RANLIB="ranlib"
5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233 break 2
5235 done
5236 done
5237 IFS=$as_save_IFS
5241 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5242 if test -n "$ac_ct_RANLIB"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5244 $as_echo "$ac_ct_RANLIB" >&6; }
5245 else
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5250 if test "x$ac_ct_RANLIB" = x; then
5251 RANLIB=":"
5252 else
5253 case $cross_compiling:$ac_tool_warned in
5254 yes:)
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5257 ac_tool_warned=yes ;;
5258 esac
5259 RANLIB=$ac_ct_RANLIB
5261 else
5262 RANLIB="$ac_cv_prog_RANLIB"
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5266 $as_echo_n "checking whether ln -s works... " >&6; }
5267 LN_S=$as_ln_s
5268 if test "$LN_S" = "ln -s"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5270 $as_echo "yes" >&6; }
5271 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5273 $as_echo "no, using $LN_S" >&6; }
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5277 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5278 if ${ac_cv_path_GREP+:} false; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 if test -z "$GREP"; then
5282 ac_path_GREP_found=false
5283 # Loop through the user's path and test for each of PROGNAME-LIST
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_prog in grep ggrep; do
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5292 as_fn_executable_p "$ac_path_GREP" || continue
5293 # Check for GNU ac_path_GREP and select it if it is found.
5294 # Check for GNU $ac_path_GREP
5295 case `"$ac_path_GREP" --version 2>&1` in
5296 *GNU*)
5297 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5299 ac_count=0
5300 $as_echo_n 0123456789 >"conftest.in"
5301 while :
5303 cat "conftest.in" "conftest.in" >"conftest.tmp"
5304 mv "conftest.tmp" "conftest.in"
5305 cp "conftest.in" "conftest.nl"
5306 $as_echo 'GREP' >> "conftest.nl"
5307 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5308 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5309 as_fn_arith $ac_count + 1 && ac_count=$as_val
5310 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5311 # Best one so far, save it but keep looking for a better one
5312 ac_cv_path_GREP="$ac_path_GREP"
5313 ac_path_GREP_max=$ac_count
5315 # 10*(2^10) chars as input seems more than enough
5316 test $ac_count -gt 10 && break
5317 done
5318 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5319 esac
5321 $ac_path_GREP_found && break 3
5322 done
5323 done
5324 done
5325 IFS=$as_save_IFS
5326 if test -z "$ac_cv_path_GREP"; then
5327 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5329 else
5330 ac_cv_path_GREP=$GREP
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5335 $as_echo "$ac_cv_path_GREP" >&6; }
5336 GREP="$ac_cv_path_GREP"
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5340 $as_echo_n "checking for egrep... " >&6; }
5341 if ${ac_cv_path_EGREP+:} false; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5345 then ac_cv_path_EGREP="$GREP -E"
5346 else
5347 if test -z "$EGREP"; then
5348 ac_path_EGREP_found=false
5349 # Loop through the user's path and test for each of PROGNAME-LIST
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_prog in egrep; do
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5358 as_fn_executable_p "$ac_path_EGREP" || continue
5359 # Check for GNU ac_path_EGREP and select it if it is found.
5360 # Check for GNU $ac_path_EGREP
5361 case `"$ac_path_EGREP" --version 2>&1` in
5362 *GNU*)
5363 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5365 ac_count=0
5366 $as_echo_n 0123456789 >"conftest.in"
5367 while :
5369 cat "conftest.in" "conftest.in" >"conftest.tmp"
5370 mv "conftest.tmp" "conftest.in"
5371 cp "conftest.in" "conftest.nl"
5372 $as_echo 'EGREP' >> "conftest.nl"
5373 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5374 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5375 as_fn_arith $ac_count + 1 && ac_count=$as_val
5376 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5377 # Best one so far, save it but keep looking for a better one
5378 ac_cv_path_EGREP="$ac_path_EGREP"
5379 ac_path_EGREP_max=$ac_count
5381 # 10*(2^10) chars as input seems more than enough
5382 test $ac_count -gt 10 && break
5383 done
5384 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5385 esac
5387 $ac_path_EGREP_found && break 3
5388 done
5389 done
5390 done
5391 IFS=$as_save_IFS
5392 if test -z "$ac_cv_path_EGREP"; then
5393 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5395 else
5396 ac_cv_path_EGREP=$EGREP
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5402 $as_echo "$ac_cv_path_EGREP" >&6; }
5403 EGREP="$ac_cv_path_EGREP"
5406 # Extract the first word of "ldconfig", so it can be a program name with args.
5407 set dummy ldconfig; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if ${ac_cv_path_LDCONFIG+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 case $LDCONFIG in
5414 [\\/]* | ?:[\\/]*)
5415 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in /sbin /usr/sbin $PATH
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5429 done
5430 done
5431 IFS=$as_save_IFS
5433 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5435 esac
5437 LDCONFIG=$ac_cv_path_LDCONFIG
5438 if test -n "$LDCONFIG"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
5440 $as_echo "$LDCONFIG" >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5447 for ac_prog in msgfmt
5449 # Extract the first word of "$ac_prog", so it can be a program name with args.
5450 set dummy $ac_prog; ac_word=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if ${ac_cv_prog_MSGFMT+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 if test -n "$MSGFMT"; then
5457 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5458 else
5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 for as_dir in $PATH
5462 IFS=$as_save_IFS
5463 test -z "$as_dir" && as_dir=.
5464 for ac_exec_ext in '' $ac_executable_extensions; do
5465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5466 ac_cv_prog_MSGFMT="$ac_prog"
5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 break 2
5470 done
5471 done
5472 IFS=$as_save_IFS
5476 MSGFMT=$ac_cv_prog_MSGFMT
5477 if test -n "$MSGFMT"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5479 $as_echo "$MSGFMT" >&6; }
5480 else
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5486 test -n "$MSGFMT" && break
5487 done
5488 test -n "$MSGFMT" || MSGFMT="false"
5490 if ${ac_tool_prefix+:} false; then :
5491 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5492 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 if test -n "$PKG_CONFIG"; then
5499 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5512 done
5513 done
5514 IFS=$as_save_IFS
5518 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5519 if test -n "$PKG_CONFIG"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5521 $as_echo "$PKG_CONFIG" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5529 if ${ac_cv_prog_PKG_CONFIG:+false} :; then :
5530 if test "x$cross_compiling" = xyes; then :
5532 else
5533 { ac_cv_prog_PKG_CONFIG=; unset ac_cv_prog_PKG_CONFIG;}
5534 # Extract the first word of "pkg-config", so it can be a program name with args.
5535 set dummy pkg-config; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if test -n "$PKG_CONFIG"; then
5542 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_PKG_CONFIG="pkg-config"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5555 done
5556 done
5557 IFS=$as_save_IFS
5561 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5562 if test -n "$PKG_CONFIG"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5564 $as_echo "$PKG_CONFIG" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5572 else
5573 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5576 if test "x$enable_maintainer_mode" != "xyes"
5577 then
5578 FONTFORGE=""
5579 RSVG=""
5580 CONVERT=""
5581 ICOTOOL=""
5582 else
5583 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5584 for ac_prog in fontforge
5586 # Extract the first word of "$ac_prog", so it can be a program name with args.
5587 set dummy $ac_prog; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if ${ac_cv_prog_FONTFORGE+:} false; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 if test -n "$FONTFORGE"; then
5594 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603 ac_cv_prog_FONTFORGE="$ac_prog"
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 break 2
5607 done
5608 done
5609 IFS=$as_save_IFS
5613 FONTFORGE=$ac_cv_prog_FONTFORGE
5614 if test -n "$FONTFORGE"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5616 $as_echo "$FONTFORGE" >&6; }
5617 else
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5623 test -n "$FONTFORGE" && break
5624 done
5625 test -n "$FONTFORGE" || FONTFORGE="false"
5627 for ac_prog in rsvg
5629 # Extract the first word of "$ac_prog", so it can be a program name with args.
5630 set dummy $ac_prog; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_RSVG+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -n "$RSVG"; then
5637 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_RSVG="$ac_prog"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5650 done
5651 done
5652 IFS=$as_save_IFS
5656 RSVG=$ac_cv_prog_RSVG
5657 if test -n "$RSVG"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5659 $as_echo "$RSVG" >&6; }
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5666 test -n "$RSVG" && break
5667 done
5668 test -n "$RSVG" || RSVG="false"
5670 for ac_prog in convert
5672 # Extract the first word of "$ac_prog", so it can be a program name with args.
5673 set dummy $ac_prog; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if ${ac_cv_prog_CONVERT+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 if test -n "$CONVERT"; then
5680 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5681 else
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689 ac_cv_prog_CONVERT="$ac_prog"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5693 done
5694 done
5695 IFS=$as_save_IFS
5699 CONVERT=$ac_cv_prog_CONVERT
5700 if test -n "$CONVERT"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5702 $as_echo "$CONVERT" >&6; }
5703 else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; }
5709 test -n "$CONVERT" && break
5710 done
5711 test -n "$CONVERT" || CONVERT="false"
5713 for ac_prog in icotool
5715 # Extract the first word of "$ac_prog", so it can be a program name with args.
5716 set dummy $ac_prog; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_ICOTOOL+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$ICOTOOL"; then
5723 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_ICOTOOL="$ac_prog"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5736 done
5737 done
5738 IFS=$as_save_IFS
5742 ICOTOOL=$ac_cv_prog_ICOTOOL
5743 if test -n "$ICOTOOL"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5745 $as_echo "$ICOTOOL" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5752 test -n "$ICOTOOL" && break
5753 done
5754 test -n "$ICOTOOL" || ICOTOOL="false"
5756 test "$FONTFORGE" != "false" || as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5
5757 test "$RSVG" != "false" || as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5
5759 if test "$CONVERT" = false
5760 then
5761 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5762 else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5764 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5765 convert_version=`convert --version | head -n1`
5766 if test "x$convert_version" != "x"
5767 then
5768 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5769 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5770 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5771 then
5772 CONVERT=false
5775 if test "$CONVERT" = false
5776 then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5778 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5779 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5780 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5782 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5786 if test "$ICOTOOL" = false
5787 then
5788 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5791 $as_echo_n "checking for recent enough icotool... " >&6; }
5792 icotool_version=`icotool --version | head -n1`
5793 if test "x$icotool_version" != "x"
5794 then
5795 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5796 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5797 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5798 then
5799 ICOTOOL=false
5800 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5803 if test "$ICOTOOL" = false
5804 then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5806 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5807 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5808 else
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5810 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5814 with_gettext=yes
5815 with_gettextpo=yes
5816 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5819 test "x$with_gettext" != xno || MSGFMT=false
5820 if test "$MSGFMT" != "false"
5821 then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5823 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5824 cat >conftest.po <<EOF
5825 # comment
5826 msgctxt "ctxt"
5827 msgid "id"
5828 msgstr "str"
5830 if $MSGFMT -o /dev/null conftest.po 2>&5
5831 then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5833 $as_echo "yes" >&6; }
5834 else
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 MSGFMT=false
5840 if test "$MSGFMT" = false; then :
5841 case "x$with_gettext" in
5842 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5843 xno) ;;
5844 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5845 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5846 esac
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5851 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5852 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 ac_check_lib_save_LIBS=$LIBS
5856 LIBS="-li386 $LIBS"
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5860 /* Override any GCC internal prototype to avoid an error.
5861 Use char because int might match the return type of a GCC
5862 builtin and then its argument prototype would still apply. */
5863 #ifdef __cplusplus
5864 extern "C"
5865 #endif
5866 char i386_set_ldt ();
5868 main ()
5870 return i386_set_ldt ();
5872 return 0;
5874 _ACEOF
5875 if ac_fn_c_try_link "$LINENO"; then :
5876 ac_cv_lib_i386_i386_set_ldt=yes
5877 else
5878 ac_cv_lib_i386_i386_set_ldt=no
5880 rm -f core conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5882 LIBS=$ac_check_lib_save_LIBS
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5885 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5886 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5887 cat >>confdefs.h <<_ACEOF
5888 #define HAVE_LIBI386 1
5889 _ACEOF
5891 LIBS="-li386 $LIBS"
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5896 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5897 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 ac_check_lib_save_LIBS=$LIBS
5901 LIBS="-lossaudio $LIBS"
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5905 /* Override any GCC internal prototype to avoid an error.
5906 Use char because int might match the return type of a GCC
5907 builtin and then its argument prototype would still apply. */
5908 #ifdef __cplusplus
5909 extern "C"
5910 #endif
5911 char _oss_ioctl ();
5913 main ()
5915 return _oss_ioctl ();
5917 return 0;
5919 _ACEOF
5920 if ac_fn_c_try_link "$LINENO"; then :
5921 ac_cv_lib_ossaudio__oss_ioctl=yes
5922 else
5923 ac_cv_lib_ossaudio__oss_ioctl=no
5925 rm -f core conftest.err conftest.$ac_objext \
5926 conftest$ac_exeext conftest.$ac_ext
5927 LIBS=$ac_check_lib_save_LIBS
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5930 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5931 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5932 cat >>confdefs.h <<_ACEOF
5933 #define HAVE_LIBOSSAUDIO 1
5934 _ACEOF
5936 LIBS="-lossaudio $LIBS"
5941 OPENGL_LIBS=""
5945 # Check whether --enable-largefile was given.
5946 if test "${enable_largefile+set}" = set; then :
5947 enableval=$enable_largefile;
5950 if test "$enable_largefile" != no; then
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5953 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5954 if ${ac_cv_sys_largefile_CC+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 ac_cv_sys_largefile_CC=no
5958 if test "$GCC" != yes; then
5959 ac_save_CC=$CC
5960 while :; do
5961 # IRIX 6.2 and later do not support large files by default,
5962 # so use the C compiler's -n32 option if that helps.
5963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5964 /* end confdefs.h. */
5965 #include <sys/types.h>
5966 /* Check that off_t can represent 2**63 - 1 correctly.
5967 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5968 since some C++ compilers masquerading as C compilers
5969 incorrectly reject 9223372036854775807. */
5970 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5971 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5972 && LARGE_OFF_T % 2147483647 == 1)
5973 ? 1 : -1];
5975 main ()
5979 return 0;
5981 _ACEOF
5982 if ac_fn_c_try_compile "$LINENO"; then :
5983 break
5985 rm -f core conftest.err conftest.$ac_objext
5986 CC="$CC -n32"
5987 if ac_fn_c_try_compile "$LINENO"; then :
5988 ac_cv_sys_largefile_CC=' -n32'; break
5990 rm -f core conftest.err conftest.$ac_objext
5991 break
5992 done
5993 CC=$ac_save_CC
5994 rm -f conftest.$ac_ext
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5998 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5999 if test "$ac_cv_sys_largefile_CC" != no; then
6000 CC=$CC$ac_cv_sys_largefile_CC
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6004 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6005 if ${ac_cv_sys_file_offset_bits+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 while :; do
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #include <sys/types.h>
6012 /* Check that off_t can represent 2**63 - 1 correctly.
6013 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6014 since some C++ compilers masquerading as C compilers
6015 incorrectly reject 9223372036854775807. */
6016 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6017 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6018 && LARGE_OFF_T % 2147483647 == 1)
6019 ? 1 : -1];
6021 main ()
6025 return 0;
6027 _ACEOF
6028 if ac_fn_c_try_compile "$LINENO"; then :
6029 ac_cv_sys_file_offset_bits=no; break
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034 #define _FILE_OFFSET_BITS 64
6035 #include <sys/types.h>
6036 /* Check that off_t can represent 2**63 - 1 correctly.
6037 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6038 since some C++ compilers masquerading as C compilers
6039 incorrectly reject 9223372036854775807. */
6040 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6041 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6042 && LARGE_OFF_T % 2147483647 == 1)
6043 ? 1 : -1];
6045 main ()
6049 return 0;
6051 _ACEOF
6052 if ac_fn_c_try_compile "$LINENO"; then :
6053 ac_cv_sys_file_offset_bits=64; break
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 ac_cv_sys_file_offset_bits=unknown
6057 break
6058 done
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6061 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6062 case $ac_cv_sys_file_offset_bits in #(
6063 no | unknown) ;;
6065 cat >>confdefs.h <<_ACEOF
6066 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6067 _ACEOF
6069 esac
6070 rm -rf conftest*
6071 if test $ac_cv_sys_file_offset_bits = unknown; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6073 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6074 if ${ac_cv_sys_large_files+:} false; then :
6075 $as_echo_n "(cached) " >&6
6076 else
6077 while :; do
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #include <sys/types.h>
6081 /* Check that off_t can represent 2**63 - 1 correctly.
6082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6083 since some C++ compilers masquerading as C compilers
6084 incorrectly reject 9223372036854775807. */
6085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6087 && LARGE_OFF_T % 2147483647 == 1)
6088 ? 1 : -1];
6090 main ()
6094 return 0;
6096 _ACEOF
6097 if ac_fn_c_try_compile "$LINENO"; then :
6098 ac_cv_sys_large_files=no; break
6100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6103 #define _LARGE_FILES 1
6104 #include <sys/types.h>
6105 /* Check that off_t can represent 2**63 - 1 correctly.
6106 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6107 since some C++ compilers masquerading as C compilers
6108 incorrectly reject 9223372036854775807. */
6109 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6110 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6111 && LARGE_OFF_T % 2147483647 == 1)
6112 ? 1 : -1];
6114 main ()
6118 return 0;
6120 _ACEOF
6121 if ac_fn_c_try_compile "$LINENO"; then :
6122 ac_cv_sys_large_files=1; break
6124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 ac_cv_sys_large_files=unknown
6126 break
6127 done
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6130 $as_echo "$ac_cv_sys_large_files" >&6; }
6131 case $ac_cv_sys_large_files in #(
6132 no | unknown) ;;
6134 cat >>confdefs.h <<_ACEOF
6135 #define _LARGE_FILES $ac_cv_sys_large_files
6136 _ACEOF
6138 esac
6139 rm -rf conftest*
6146 ac_ext=c
6147 ac_cpp='$CPP $CPPFLAGS'
6148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6152 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6153 # On Suns, sometimes $CPP names a directory.
6154 if test -n "$CPP" && test -d "$CPP"; then
6155 CPP=
6157 if test -z "$CPP"; then
6158 if ${ac_cv_prog_CPP+:} false; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 # Double quotes because CPP needs to be expanded
6162 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6164 ac_preproc_ok=false
6165 for ac_c_preproc_warn_flag in '' yes
6167 # Use a header file that comes with gcc, so configuring glibc
6168 # with a fresh cross-compiler works.
6169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6170 # <limits.h> exists even on freestanding compilers.
6171 # On the NeXT, cc -E runs the code through the compiler's parser,
6172 # not just through cpp. "Syntax error" is here to catch this case.
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175 #ifdef __STDC__
6176 # include <limits.h>
6177 #else
6178 # include <assert.h>
6179 #endif
6180 Syntax error
6181 _ACEOF
6182 if ac_fn_c_try_cpp "$LINENO"; then :
6184 else
6185 # Broken: fails on valid input.
6186 continue
6188 rm -f conftest.err conftest.i conftest.$ac_ext
6190 # OK, works on sane cases. Now check whether nonexistent headers
6191 # can be detected and how.
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 #include <ac_nonexistent.h>
6195 _ACEOF
6196 if ac_fn_c_try_cpp "$LINENO"; then :
6197 # Broken: success on invalid input.
6198 continue
6199 else
6200 # Passes both tests.
6201 ac_preproc_ok=:
6202 break
6204 rm -f conftest.err conftest.i conftest.$ac_ext
6206 done
6207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6208 rm -f conftest.i conftest.err conftest.$ac_ext
6209 if $ac_preproc_ok; then :
6210 break
6213 done
6214 ac_cv_prog_CPP=$CPP
6217 CPP=$ac_cv_prog_CPP
6218 else
6219 ac_cv_prog_CPP=$CPP
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6222 $as_echo "$CPP" >&6; }
6223 ac_preproc_ok=false
6224 for ac_c_preproc_warn_flag in '' yes
6226 # Use a header file that comes with gcc, so configuring glibc
6227 # with a fresh cross-compiler works.
6228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6229 # <limits.h> exists even on freestanding compilers.
6230 # On the NeXT, cc -E runs the code through the compiler's parser,
6231 # not just through cpp. "Syntax error" is here to catch this case.
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #ifdef __STDC__
6235 # include <limits.h>
6236 #else
6237 # include <assert.h>
6238 #endif
6239 Syntax error
6240 _ACEOF
6241 if ac_fn_c_try_cpp "$LINENO"; then :
6243 else
6244 # Broken: fails on valid input.
6245 continue
6247 rm -f conftest.err conftest.i conftest.$ac_ext
6249 # OK, works on sane cases. Now check whether nonexistent headers
6250 # can be detected and how.
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6253 #include <ac_nonexistent.h>
6254 _ACEOF
6255 if ac_fn_c_try_cpp "$LINENO"; then :
6256 # Broken: success on invalid input.
6257 continue
6258 else
6259 # Passes both tests.
6260 ac_preproc_ok=:
6261 break
6263 rm -f conftest.err conftest.i conftest.$ac_ext
6265 done
6266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6267 rm -f conftest.i conftest.err conftest.$ac_ext
6268 if $ac_preproc_ok; then :
6270 else
6271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6273 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6274 See \`config.log' for more details" "$LINENO" 5; }
6277 ac_ext=c
6278 ac_cpp='$CPP $CPPFLAGS'
6279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6285 $as_echo_n "checking for ANSI C header files... " >&6; }
6286 if ${ac_cv_header_stdc+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6290 /* end confdefs.h. */
6291 #include <stdlib.h>
6292 #include <stdarg.h>
6293 #include <string.h>
6294 #include <float.h>
6297 main ()
6301 return 0;
6303 _ACEOF
6304 if ac_fn_c_try_compile "$LINENO"; then :
6305 ac_cv_header_stdc=yes
6306 else
6307 ac_cv_header_stdc=no
6309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311 if test $ac_cv_header_stdc = yes; then
6312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 #include <string.h>
6317 _ACEOF
6318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6319 $EGREP "memchr" >/dev/null 2>&1; then :
6321 else
6322 ac_cv_header_stdc=no
6324 rm -f conftest*
6328 if test $ac_cv_header_stdc = yes; then
6329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6332 #include <stdlib.h>
6334 _ACEOF
6335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6336 $EGREP "free" >/dev/null 2>&1; then :
6338 else
6339 ac_cv_header_stdc=no
6341 rm -f conftest*
6345 if test $ac_cv_header_stdc = yes; then
6346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6347 if test "$cross_compiling" = yes; then :
6349 else
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6352 #include <ctype.h>
6353 #include <stdlib.h>
6354 #if ((' ' & 0x0FF) == 0x020)
6355 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6356 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6357 #else
6358 # define ISLOWER(c) \
6359 (('a' <= (c) && (c) <= 'i') \
6360 || ('j' <= (c) && (c) <= 'r') \
6361 || ('s' <= (c) && (c) <= 'z'))
6362 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6363 #endif
6365 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6367 main ()
6369 int i;
6370 for (i = 0; i < 256; i++)
6371 if (XOR (islower (i), ISLOWER (i))
6372 || toupper (i) != TOUPPER (i))
6373 return 2;
6374 return 0;
6376 _ACEOF
6377 if ac_fn_c_try_run "$LINENO"; then :
6379 else
6380 ac_cv_header_stdc=no
6382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6383 conftest.$ac_objext conftest.beam conftest.$ac_ext
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6389 $as_echo "$ac_cv_header_stdc" >&6; }
6390 if test $ac_cv_header_stdc = yes; then
6392 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6396 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6397 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6398 inttypes.h stdint.h unistd.h
6399 do :
6400 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6401 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6403 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6404 cat >>confdefs.h <<_ACEOF
6405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6406 _ACEOF
6410 done
6413 for ac_header in \
6414 AL/al.h \
6415 ApplicationServices/ApplicationServices.h \
6416 AudioToolbox/AudioConverter.h \
6417 AudioUnit/AudioUnit.h \
6418 AudioUnit/AudioComponent.h \
6419 CL/cl.h \
6420 Carbon/Carbon.h \
6421 CoreAudio/CoreAudio.h \
6422 CoreServices/CoreServices.h \
6423 DiskArbitration/DiskArbitration.h \
6424 IOKit/IOKitLib.h \
6425 IOKit/hid/IOHIDLib.h \
6426 OpenAL/al.h \
6427 OpenCL/opencl.h \
6428 QuickTime/ImageCompression.h \
6429 Security/Security.h \
6430 alias.h \
6431 alsa/asoundlib.h \
6432 arpa/inet.h \
6433 arpa/nameser.h \
6434 asm/types.h \
6435 asm/user.h \
6436 curses.h \
6437 direct.h \
6438 dirent.h \
6439 dlfcn.h \
6440 elf.h \
6441 float.h \
6442 fnmatch.h \
6443 getopt.h \
6444 gettext-po.h \
6445 grp.h \
6446 gsm.h \
6447 gsm/gsm.h \
6448 ieeefp.h \
6449 inet/mib2.h \
6450 io.h \
6451 kstat.h \
6452 lber.h \
6453 ldap.h \
6454 libproc.h \
6455 link.h \
6456 linux/cdrom.h \
6457 linux/compiler.h \
6458 linux/filter.h \
6459 linux/hdreg.h \
6460 linux/input.h \
6461 linux/ioctl.h \
6462 linux/joystick.h \
6463 linux/major.h \
6464 linux/param.h \
6465 linux/serial.h \
6466 linux/types.h \
6467 linux/ucdrom.h \
6468 lwp.h \
6469 mach-o/nlist.h \
6470 mach-o/loader.h \
6471 mach/mach.h \
6472 mach/machine.h \
6473 machine/cpu.h \
6474 machine/limits.h \
6475 machine/sysarch.h \
6476 mntent.h \
6477 ncurses.h \
6478 netdb.h \
6479 netinet/in.h \
6480 netinet/in_systm.h \
6481 netinet/tcp.h \
6482 netinet/tcp_fsm.h \
6483 poll.h \
6484 port.h \
6485 process.h \
6486 pthread.h \
6487 pwd.h \
6488 sched.h \
6489 scsi/scsi.h \
6490 scsi/scsi_ioctl.h \
6491 scsi/sg.h \
6492 stdbool.h \
6493 stdint.h \
6494 stropts.h \
6495 sys/asoundlib.h \
6496 sys/attr.h \
6497 sys/cdio.h \
6498 sys/elf32.h \
6499 sys/epoll.h \
6500 sys/event.h \
6501 sys/exec_elf.h \
6502 sys/filio.h \
6503 sys/inotify.h \
6504 sys/ioctl.h \
6505 sys/ipc.h \
6506 sys/limits.h \
6507 sys/link.h \
6508 sys/mman.h \
6509 sys/modem.h \
6510 sys/msg.h \
6511 sys/mtio.h \
6512 sys/param.h \
6513 sys/poll.h \
6514 sys/prctl.h \
6515 sys/protosw.h \
6516 sys/ptrace.h \
6517 sys/queue.h \
6518 sys/resource.h \
6519 sys/scsiio.h \
6520 sys/shm.h \
6521 sys/signal.h \
6522 sys/socket.h \
6523 sys/socketvar.h \
6524 sys/sockio.h \
6525 sys/statvfs.h \
6526 sys/strtio.h \
6527 sys/syscall.h \
6528 sys/tihdr.h \
6529 sys/time.h \
6530 sys/timeout.h \
6531 sys/times.h \
6532 sys/uio.h \
6533 sys/user.h \
6534 sys/utsname.h \
6535 sys/vm86.h \
6536 sys/wait.h \
6537 syscall.h \
6538 termios.h \
6539 unistd.h \
6540 utime.h \
6541 valgrind/memcheck.h \
6542 valgrind/valgrind.h \
6543 zlib.h
6545 do :
6546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6547 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6548 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6549 cat >>confdefs.h <<_ACEOF
6550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6551 _ACEOF
6555 done
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6558 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6559 if ${ac_cv_header_stat_broken+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6564 #include <sys/types.h>
6565 #include <sys/stat.h>
6567 #if defined S_ISBLK && defined S_IFDIR
6568 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6569 #endif
6571 #if defined S_ISBLK && defined S_IFCHR
6572 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6573 #endif
6575 #if defined S_ISLNK && defined S_IFREG
6576 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6577 #endif
6579 #if defined S_ISSOCK && defined S_IFREG
6580 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6581 #endif
6583 _ACEOF
6584 if ac_fn_c_try_compile "$LINENO"; then :
6585 ac_cv_header_stat_broken=no
6586 else
6587 ac_cv_header_stat_broken=yes
6589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6592 $as_echo "$ac_cv_header_stat_broken" >&6; }
6593 if test $ac_cv_header_stat_broken = yes; then
6595 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6601 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6602 do :
6603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6604 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6605 #ifdef HAVE_SYS_PARAM_H
6606 # include <sys/param.h>
6607 #endif
6609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6610 cat >>confdefs.h <<_ACEOF
6611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6612 _ACEOF
6616 done
6619 for ac_header in \
6620 netinet/ip.h \
6621 net/if.h \
6622 net/if_arp.h \
6623 net/if_dl.h \
6624 net/if_types.h \
6625 net/route.h \
6626 netinet/if_ether.h \
6627 netinet/if_inarp.h \
6628 netinet/in_pcb.h \
6629 netinet/ip_icmp.h \
6630 netinet/ip_var.h \
6631 netinet/udp.h \
6632 netipx/ipx.h \
6633 sys/un.h \
6635 do :
6636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6637 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
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_NET_ROUTE_H
6645 # include <net/route.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_NET_IF_H
6654 # include <net/if.h>
6655 #endif
6656 #ifdef HAVE_NETINET_IP_H
6657 # include <netinet/ip.h>
6658 #endif
6660 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6661 cat >>confdefs.h <<_ACEOF
6662 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6663 _ACEOF
6667 done
6670 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6671 do :
6672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6673 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6674 #ifdef HAVE_ALIAS_H
6675 # include <alias.h>
6676 #endif
6677 #ifdef HAVE_SYS_SOCKET_H
6678 # include <sys/socket.h>
6679 #endif
6680 #ifdef HAVE_SYS_SOCKETVAR_H
6681 # include <sys/socketvar.h>
6682 #endif
6683 #ifdef HAVE_SYS_TIMEOUT_H
6684 # include <sys/timeout.h>
6685 #endif
6686 #ifdef HAVE_NETINET_IN_H
6687 # include <netinet/in.h>
6688 #endif
6689 #ifdef HAVE_NETINET_IN_SYSTM_H
6690 # include <netinet/in_systm.h>
6691 #endif
6692 #ifdef HAVE_NETINET_IP_H
6693 # include <netinet/ip.h>
6694 #endif
6695 #ifdef HAVE_NETINET_IP_VAR_H
6696 # include <netinet/ip_var.h>
6697 #endif
6698 #ifdef HAVE_NETINET_IP_ICMP_H
6699 # include <netinet/ip_icmp.h>
6700 #endif
6701 #ifdef HAVE_NETINET_UDP_H
6702 # include <netinet/udp.h>
6703 #endif
6704 #ifdef HAVE_NETINET_TCP_H
6705 # include <netinet/tcp.h>
6706 #endif
6707 #ifdef HAVE_NETINET_TCP_TIMER_H
6708 #include <netinet/tcp_timer.h>
6709 #endif
6711 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6712 cat >>confdefs.h <<_ACEOF
6713 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6714 _ACEOF
6718 done
6721 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6722 do :
6723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6724 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6725 #ifdef HAVE_ASM_TYPES_H
6726 # include <asm/types.h>
6727 #endif
6728 #ifdef HAVE_SYS_SOCKET_H
6729 # include <sys/socket.h>
6730 #endif
6731 #ifdef HAVE_LINUX_TYPES_H
6732 # include <linux/types.h>
6733 #endif
6735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6736 cat >>confdefs.h <<_ACEOF
6737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6738 _ACEOF
6742 done
6745 for ac_header in mach-o/dyld_images.h
6746 do :
6747 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6748 # include <stdbool.h>
6749 #endif
6750 #ifdef HAVE_STDINT_H
6751 # include <stdint.h>
6752 #endif
6754 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6755 cat >>confdefs.h <<_ACEOF
6756 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6757 _ACEOF
6761 done
6764 for ac_header in resolv.h
6765 do :
6766 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6767 #ifdef HAVE_SYS_SOCKET_H
6768 # include <sys/socket.h>
6769 #endif
6770 #ifdef HAVE_NETINET_IN_H
6771 # include <netinet/in.h>
6772 #endif
6773 #ifdef HAVE_ARPA_NAMESER_H
6774 # include <arpa/nameser.h>
6775 #endif
6777 if test "x$ac_cv_header_resolv_h" = xyes; then :
6778 cat >>confdefs.h <<_ACEOF
6779 #define HAVE_RESOLV_H 1
6780 _ACEOF
6784 done
6787 for ac_header in ifaddrs.h
6788 do :
6789 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6791 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6792 cat >>confdefs.h <<_ACEOF
6793 #define HAVE_IFADDRS_H 1
6794 _ACEOF
6798 done
6801 for ac_header in ucontext.h
6802 do :
6803 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6805 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6806 cat >>confdefs.h <<_ACEOF
6807 #define HAVE_UCONTEXT_H 1
6808 _ACEOF
6812 done
6815 for ac_header in sys/thr.h
6816 do :
6817 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6818 #ifdef HAVE_UCONTEXT_H
6819 #include <ucontext.h>
6820 #endif
6822 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6823 cat >>confdefs.h <<_ACEOF
6824 #define HAVE_SYS_THR_H 1
6825 _ACEOF
6829 done
6832 for ac_header in pthread_np.h
6833 do :
6834 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6835 #include <pthread.h>
6836 #endif
6838 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6839 cat >>confdefs.h <<_ACEOF
6840 #define HAVE_PTHREAD_NP_H 1
6841 _ACEOF
6845 done
6848 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6849 do :
6850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6851 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6852 #include <sys/time.h>
6853 #endif
6854 #include <sys/types.h>
6855 #ifdef HAVE_ASM_TYPES_H
6856 #include <asm/types.h>
6857 #endif
6859 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6860 cat >>confdefs.h <<_ACEOF
6861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6862 _ACEOF
6866 done
6869 for ac_header in libprocstat.h
6870 do :
6871 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
6872 #include <sys/param.h>
6873 #endif
6874 #ifdef HAVE_SYS_QUEUE_H
6875 #include <sys/queue.h>
6876 #endif
6877 #ifdef HAVE_SYS_SOCKET_H
6878 #include <sys/socket.h>
6879 #endif
6881 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
6882 cat >>confdefs.h <<_ACEOF
6883 #define HAVE_LIBPROCSTAT_H 1
6884 _ACEOF
6888 done
6892 dlldir="\${libdir}/wine"
6894 DLLPREFIX=""
6896 DLLFLAGS="-D_REENTRANT"
6898 LDRPATH_INSTALL=""
6900 LDRPATH_LOCAL=""
6902 LIBEXT="so"
6903 DLLEXT=".so"
6904 IMPLIBEXT="def"
6905 STATIC_IMPLIBEXT="def.a"
6906 # Extract the first word of "ldd", so it can be a program name with args.
6907 set dummy ldd; ac_word=$2
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 $as_echo_n "checking for $ac_word... " >&6; }
6910 if ${ac_cv_path_LDD+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 case $LDD in
6914 [\\/]* | ?:[\\/]*)
6915 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 as_dummy="/sbin:/usr/sbin:$PATH"
6920 for as_dir in $as_dummy
6922 IFS=$as_save_IFS
6923 test -z "$as_dir" && as_dir=.
6924 for ac_exec_ext in '' $ac_executable_extensions; do
6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6926 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 break 2
6930 done
6931 done
6932 IFS=$as_save_IFS
6934 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6936 esac
6938 LDD=$ac_cv_path_LDD
6939 if test -n "$LDD"; then
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6941 $as_echo "$LDD" >&6; }
6942 else
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6948 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_READELF+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 if test -n "$READELF"; then
6957 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6958 else
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6960 for as_dir in $PATH
6962 IFS=$as_save_IFS
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6968 break 2
6970 done
6971 done
6972 IFS=$as_save_IFS
6976 READELF=$ac_cv_prog_READELF
6977 if test -n "$READELF"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6979 $as_echo "$READELF" >&6; }
6980 else
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6987 if test -z "$ac_cv_prog_READELF"; then
6988 ac_ct_READELF=$READELF
6989 # Extract the first word of "readelf", so it can be a program name with args.
6990 set dummy readelf; ac_word=$2
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992 $as_echo_n "checking for $ac_word... " >&6; }
6993 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 if test -n "$ac_ct_READELF"; then
6997 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006 ac_cv_prog_ac_ct_READELF="readelf"
7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7010 done
7011 done
7012 IFS=$as_save_IFS
7016 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
7017 if test -n "$ac_ct_READELF"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
7019 $as_echo "$ac_ct_READELF" >&6; }
7020 else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7025 if test "x$ac_ct_READELF" = x; then
7026 READELF="true"
7027 else
7028 case $cross_compiling:$ac_tool_warned in
7029 yes:)
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032 ac_tool_warned=yes ;;
7033 esac
7034 READELF=$ac_ct_READELF
7036 else
7037 READELF="$ac_cv_prog_READELF"
7040 wine_rules_file=conf$$rules.make
7041 rm -f $wine_rules_file
7042 ALL_POT_FILES=""
7043 GITIGNORE="# Automatically generated by configure; DO NOT EDIT!!"
7044 ALL_TEST_RESOURCES=""
7047 wine_fn_append_file ()
7049 as_fn_append $1 " \\$as_nl $2"
7052 wine_fn_ignore_file ()
7054 case "$1" in
7055 */*) as_fn_append GITIGNORE "$as_nl$1" ;;
7056 \**) as_fn_append GITIGNORE "$as_nl$1" ;;
7057 *) as_fn_append GITIGNORE "$as_nl/$1" ;;
7058 esac
7061 wine_fn_append_rule ()
7063 $as_echo "$1" >>$wine_rules_file
7066 wine_fn_has_flag ()
7068 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
7071 wine_fn_depend_rules ()
7073 wine_fn_append_rule \
7074 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
7075 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir
7076 depend: $ac_dir/depend
7077 .PHONY: $ac_dir/depend
7078 $ac_dir/depend: \$(MAKEDEP) dummy
7079 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir"
7082 wine_fn_pot_rules ()
7084 test "x$with_gettextpo" = xyes || return
7086 if wine_fn_has_flag mc
7087 then
7088 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
7089 wine_fn_append_rule \
7090 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
7091 @cd $ac_dir && \$(MAKE) msg.pot
7092 $ac_dir/msg.pot: tools/wmc include"
7094 if wine_fn_has_flag po
7095 then
7096 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
7097 wine_fn_append_rule \
7098 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
7099 @cd $ac_dir && \$(MAKE) rsrc.pot
7100 $ac_dir/rsrc.pot: tools/wrc include"
7104 wine_fn_all_rules ()
7106 wine_fn_depend_rules
7107 wine_fn_append_rule \
7108 "all: $ac_dir
7109 .PHONY: $ac_dir
7110 $ac_dir: $ac_dir/Makefile dummy
7111 @cd $ac_dir && \$(MAKE)"
7114 wine_fn_install_rules ()
7116 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
7118 wine_fn_append_rule \
7119 ".PHONY: $ac_dir/install $ac_dir/uninstall
7120 $ac_dir/install:: $ac_dir
7121 @cd $ac_dir && \$(MAKE) install
7122 $ac_dir/uninstall:: $ac_dir/Makefile
7123 @cd $ac_dir && \$(MAKE) uninstall
7124 install:: $ac_dir/install
7125 __uninstall__: $ac_dir/uninstall"
7127 if wine_fn_has_flag install-lib
7128 then
7129 wine_fn_append_rule \
7130 ".PHONY: $ac_dir/install-lib
7131 $ac_dir/install-lib:: $ac_dir
7132 @cd $ac_dir && \$(MAKE) install-lib
7133 install-lib:: $ac_dir/install-lib"
7136 if wine_fn_has_flag install-dev
7137 then
7138 wine_fn_append_rule \
7139 ".PHONY: $ac_dir/install-dev
7140 $ac_dir/install-dev:: $ac_dir
7141 @cd $ac_dir && \$(MAKE) install-dev
7142 install-dev:: $ac_dir/install-dev"
7146 wine_fn_clean_rules ()
7148 ac_clean=$@
7149 ac_extraclean="$ac_dir/Makefile"
7150 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7151 case $ac_dir in
7152 */tests) ac_extraclean="$ac_extraclean $ac_dir/testlist.c" ;;
7153 esac
7155 if wine_fn_has_flag clean
7156 then
7157 wine_fn_append_rule \
7158 "__clean__: $ac_dir/clean
7159 .PHONY: $ac_dir/clean
7160 $ac_dir/clean: $ac_dir/Makefile
7161 @cd $ac_dir && \$(MAKE) clean
7162 \$(RM) $ac_extraclean"
7163 else
7164 wine_fn_append_rule \
7165 "__clean__: $ac_dir/clean
7166 .PHONY: $ac_dir/clean
7167 $ac_dir/clean: dummy
7168 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7172 wine_fn_disabled_rules ()
7174 ac_clean=$@
7175 ac_extraclean="$ac_dir/Makefile"
7176 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7178 wine_fn_append_rule \
7179 "__clean__: $ac_dir/clean
7180 .PHONY: $ac_dir/clean
7181 $ac_dir/clean: dummy
7182 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7185 wine_fn_config_makefile ()
7187 ac_dir=$1
7188 ac_enable=$2
7189 ac_flags=$3
7191 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7192 wine_fn_disabled_rules; return
7194 wine_fn_all_rules
7195 wine_fn_install_rules
7196 wine_fn_clean_rules
7199 wine_fn_config_lib ()
7201 ac_name=$1
7202 ac_flags=$2
7203 ac_dir=dlls/$ac_name
7204 ac_deps="include"
7206 if test "x$enable_tools" = xno; then :
7208 else
7209 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7211 wine_fn_all_rules
7212 wine_fn_clean_rules
7214 wine_fn_append_rule \
7215 ".PHONY: $ac_dir/install $ac_dir/uninstall
7216 $ac_dir/install:: $ac_dir
7217 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7218 $ac_dir/uninstall::
7219 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7220 install install-dev:: $ac_dir/install
7221 __uninstall__: $ac_dir/uninstall
7222 __builddeps__: $ac_dir
7223 $ac_dir: $ac_deps"
7226 wine_fn_config_dll ()
7228 ac_name=$1
7229 ac_dir=dlls/$ac_name
7230 ac_enable=$2
7231 ac_flags=$3
7232 ac_implib=${4:-$ac_name}
7233 ac_file=$ac_dir/lib$ac_implib
7234 ac_dll=$ac_name
7235 ac_deps="include"
7236 ac_implibflags=""
7238 if test "x$enable_tools" = xno; then :
7240 else
7241 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7243 case $ac_name in
7244 *16) ac_implibflags=" -m16" ;;
7245 *.*) ;;
7246 *) ac_dll=$ac_dll.dll ;;
7247 esac
7249 ac_clean=
7250 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
7251 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7252 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7253 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
7255 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7256 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
7257 then
7258 wine_fn_depend_rules
7259 wine_fn_clean_rules $ac_clean
7260 else
7261 wine_fn_disabled_rules $ac_clean
7262 return
7264 else
7265 wine_fn_all_rules
7266 wine_fn_clean_rules $ac_clean
7267 wine_fn_append_rule \
7268 "$ac_dir: __builddeps__
7269 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
7270 @cd $ac_dir && \$(MAKE) \$@
7271 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
7272 install install-lib:: $ac_dir/install-lib
7273 __uninstall__: $ac_dir/uninstall"
7274 if test -n "$DLLEXT"
7275 then
7276 wine_fn_append_rule \
7277 "$ac_dir/install-lib:: $ac_dir
7278 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
7279 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
7280 $ac_dir/uninstall::
7281 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
7282 else
7283 wine_fn_append_rule \
7284 "$ac_dir/install-lib:: $ac_dir
7285 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
7286 $ac_dir/uninstall::
7287 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
7290 wine_fn_pot_rules
7293 if wine_fn_has_flag staticimplib
7294 then
7295 wine_fn_append_rule \
7296 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
7297 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
7298 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7299 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7300 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
7301 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
7302 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7303 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7304 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7305 $ac_dir/uninstall::
7306 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7307 install install-dev:: $ac_dir/install-dev
7308 __uninstall__: $ac_dir/uninstall"
7310 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
7311 then
7312 wine_fn_append_rule \
7313 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT __builddeps__
7314 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
7315 $ac_dir/uninstall::
7316 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
7319 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7320 then
7321 wine_fn_append_rule \
7322 "__builddeps__: $ac_file.cross.a
7323 $ac_file.cross.a: $ac_dir/Makefile dummy
7324 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
7327 elif wine_fn_has_flag implib
7328 then
7329 wine_fn_append_rule \
7330 "__builddeps__: $ac_file.$IMPLIBEXT
7331 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7332 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7333 $ac_file.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7334 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7335 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7336 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7337 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7338 $ac_dir/uninstall::
7339 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7340 install install-dev:: $ac_dir/install-dev
7341 __uninstall__: $ac_dir/uninstall"
7342 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7343 then
7344 wine_fn_append_rule \
7345 "__builddeps__: $ac_file.cross.a
7346 $ac_file.cross.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7347 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
7350 if test "$ac_name" != "$ac_implib"
7351 then
7352 wine_fn_append_rule \
7353 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
7354 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
7355 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
7356 clean::
7357 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
7358 wine_fn_ignore_file "dlls/lib$ac_implib.$IMPLIBEXT"
7359 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7360 then
7361 wine_fn_append_rule \
7362 "__builddeps__: dlls/lib$ac_implib.cross.a
7363 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
7364 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
7365 clean::
7366 \$(RM) dlls/lib$ac_implib.cross.a"
7367 wine_fn_ignore_file "dlls/lib$ac_implib.cross.a"
7373 wine_fn_config_program ()
7375 ac_name=$1
7376 ac_dir=programs/$ac_name
7377 ac_enable=$2
7378 ac_flags=$3
7379 ac_program=$ac_name
7381 case $ac_name in
7382 *.*) ;;
7383 *) ac_program=$ac_program.exe ;;
7384 esac
7386 ac_clean=
7387 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7388 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7389 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
7390 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
7392 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7393 wine_fn_disabled_rules $ac_clean; return
7396 wine_fn_all_rules
7397 wine_fn_clean_rules $ac_clean
7398 wine_fn_append_rule "$ac_dir: __builddeps__"
7399 wine_fn_pot_rules
7401 wine_fn_has_flag install || return
7402 wine_fn_append_rule \
7403 ".PHONY: $ac_dir/install $ac_dir/uninstall
7404 install install-lib:: $ac_dir/install
7405 __uninstall__: $ac_dir/uninstall"
7407 if test -n "$DLLEXT"
7408 then
7409 wine_fn_append_rule \
7410 "$ac_dir/install:: $ac_dir
7411 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
7412 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
7413 $ac_dir/uninstall::
7414 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
7416 if test -z "$with_wine64" && wine_fn_has_flag installbin
7417 then
7418 wine_fn_append_rule \
7419 "$ac_dir/install:: __tooldeps__
7420 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
7421 $ac_dir/uninstall::
7422 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
7424 else
7425 wine_fn_append_rule \
7426 "$ac_dir/install:: $ac_dir
7427 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
7428 $ac_dir/uninstall::
7429 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
7432 if test -z "$with_wine64" && wine_fn_has_flag manpage
7433 then
7434 wine_fn_append_rule \
7435 "$ac_dir/install:: $ac_dir
7436 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
7437 $ac_dir/uninstall::
7438 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
7442 wine_fn_config_test ()
7444 ac_dir=$1
7445 ac_name=$2
7446 ac_flags=$3
7448 ac_clean=
7449 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
7450 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
7452 if test "x$enable_tests" = xno; then :
7453 wine_fn_disabled_rules $ac_clean; return
7456 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
7457 wine_fn_all_rules
7458 wine_fn_clean_rules $ac_clean
7460 wine_fn_append_rule \
7461 "$ac_dir: programs/winetest/Makefile __builddeps__
7462 programs/winetest: $ac_dir
7463 check test: $ac_dir/test
7464 .PHONY: $ac_dir/test
7465 $ac_dir/test: dummy
7466 @cd $ac_dir && \$(MAKE) test
7467 testclean::
7468 \$(RM) $ac_dir/*.ok"
7470 if test -n "$CROSSTARGET"
7471 then
7472 wine_fn_append_rule \
7473 "crosstest: $ac_dir/crosstest
7474 .PHONY: $ac_dir/crosstest
7475 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
7476 @cd $ac_dir && \$(MAKE) crosstest"
7480 wine_fn_config_tool ()
7482 ac_dir=$1
7483 ac_flags=$2
7484 if test "x$enable_tools" = xno; then :
7485 return
7488 wine_fn_all_rules
7489 wine_fn_install_rules
7490 wine_fn_clean_rules
7492 wine_fn_append_rule "__tooldeps__: $ac_dir"
7493 wine_fn_append_rule "$ac_dir: libs/port"
7494 case $ac_dir in
7495 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
7496 esac
7499 wine_fn_config_symlink ()
7501 ac_linkdir=
7502 if test "x$1" = "x-d"
7503 then
7504 ac_linkdir=$2
7505 shift; shift
7507 ac_links=$@
7508 wine_fn_append_rule \
7509 "$ac_links:
7510 @./config.status \$@
7511 distclean::
7512 \$(RM) $ac_links"
7513 for f in $ac_links; do wine_fn_ignore_file $f; done
7514 test -n "$ac_linkdir" || return
7515 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
7518 wine_binary="wine"
7519 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7520 loader_programs="$wine_binary wine-installed"
7521 libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'`
7523 LOADER_RULES="
7524 install install-lib:: wine-installed
7525 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7527 uninstall::
7528 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7532 case $host_os in
7533 cygwin*|mingw32*)
7534 if test -n "$ac_tool_prefix"; then
7535 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7536 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_prog_DLLTOOL+:} false; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 if test -n "$DLLTOOL"; then
7543 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 break 2
7556 done
7557 done
7558 IFS=$as_save_IFS
7562 DLLTOOL=$ac_cv_prog_DLLTOOL
7563 if test -n "$DLLTOOL"; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7565 $as_echo "$DLLTOOL" >&6; }
7566 else
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7573 if test -z "$ac_cv_prog_DLLTOOL"; then
7574 ac_ct_DLLTOOL=$DLLTOOL
7575 # Extract the first word of "dlltool", so it can be a program name with args.
7576 set dummy dlltool; ac_word=$2
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578 $as_echo_n "checking for $ac_word... " >&6; }
7579 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7580 $as_echo_n "(cached) " >&6
7581 else
7582 if test -n "$ac_ct_DLLTOOL"; then
7583 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7584 else
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7596 done
7597 done
7598 IFS=$as_save_IFS
7602 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7603 if test -n "$ac_ct_DLLTOOL"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7605 $as_echo "$ac_ct_DLLTOOL" >&6; }
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608 $as_echo "no" >&6; }
7611 if test "x$ac_ct_DLLTOOL" = x; then
7612 DLLTOOL="false"
7613 else
7614 case $cross_compiling:$ac_tool_warned in
7615 yes:)
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7618 ac_tool_warned=yes ;;
7619 esac
7620 DLLTOOL=$ac_ct_DLLTOOL
7622 else
7623 DLLTOOL="$ac_cv_prog_DLLTOOL"
7626 LIBEXT="dll"
7627 DLLEXT=""
7628 IMPLIBEXT="a"
7629 STATIC_IMPLIBEXT="a"
7630 enable_iphlpapi=${enable_iphlpapi:-no}
7631 enable_kernel32=${enable_kernel32:-no}
7632 enable_msvcrt=${enable_msvcrt:-no}
7633 enable_ntdll=${enable_ntdll:-no}
7634 enable_ws2_32=${enable_ws2_32:-no}
7635 enable_loader=${enable_loader:-no}
7636 enable_server=${enable_server:-no}
7637 with_x=${with_x:-no}
7638 with_pthread=${with_pthread:-no}
7640 crtlibs=""
7641 case $host_os in
7642 mingw32*)
7643 crtlibs="-lmsvcrt"
7644 SOCKET_LIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7646 esac
7648 libwine_targets="libwine.dll libwine.a"
7649 LIBWINE_RULES="
7650 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7652 all: libwine.dll libwine.a
7654 libwine.a: \$(srcdir)/wine.def
7655 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7657 libwine.dll: \$(OBJS) \$(srcdir)/wine.def
7658 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7660 install install-lib:: libwine.dll
7661 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7663 install install-dev:: libwine.a
7664 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7666 uninstall::
7667 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7672 darwin*|macosx*)
7673 LIBEXT="dylib"
7674 DLLFLAGS="$DLLFLAGS -fPIC"
7675 LIBWINE_LDFLAGS="-multiply_defined suppress"
7676 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7677 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7678 COREFOUNDATION_LIBS="-framework CoreFoundation"
7680 IOKIT_LIBS="-framework IOKit -framework CoreFoundation"
7682 FORCEFEEDBACK_LIBS="-framework ForceFeedback -framework CoreFoundation"
7684 APPLICATIONSERVICES_LIBS="-framework ApplicationServices"
7686 CORESERVICES_LIBS="-framework CoreServices"
7688 APPKIT_LIBS="-framework AppKit"
7690 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7691 case $host_os in
7692 darwin11*) LDEXECFLAGS="-Wl,-macosx_version_min,10.6 $LDEXECFLAGS" ;;
7693 esac
7694 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7695 then
7696 DISKARBITRATION_LIBS="-framework DiskArbitration -framework CoreFoundation"
7699 if test "$ac_cv_header_Security_Security_h" = "yes"
7700 then
7701 SECURITY_LIBS="-framework Security -framework CoreFoundation"
7703 ac_save_LIBS="$LIBS"
7704 LIBS="$LIBS $SECURITY_LIBS"
7705 for ac_func in SSLCopyPeerCertificates
7706 do :
7707 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7708 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7709 cat >>confdefs.h <<_ACEOF
7710 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7711 _ACEOF
7714 done
7716 LIBS="$ac_save_LIBS"
7717 with_gnutls=${with_gnutls:-no}
7719 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7720 then
7721 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7722 then
7723 COREAUDIO_LIBS="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7725 else
7726 COREAUDIO_LIBS="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7729 ac_save_LIBS="$LIBS"
7730 LIBS="$LIBS $COREAUDIO_LIBS"
7731 for ac_func in AUGraphAddNode
7732 do :
7733 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7734 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7735 cat >>confdefs.h <<_ACEOF
7736 #define HAVE_AUGRAPHADDNODE 1
7737 _ACEOF
7740 done
7742 LIBS="$ac_save_LIBS"
7744 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7745 then
7746 OPENAL_LIBS="-framework OpenAL"
7749 cat >>confdefs.h <<_ACEOF
7750 #define HAVE_OPENAL 1
7751 _ACEOF
7753 ac_cv_lib_openal=yes
7755 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7756 then
7757 OPENCL_LIBS="-framework OpenCL"
7759 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7761 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7762 then
7763 ac_save_LIBS="$LIBS"
7764 LIBS="$LIBS $IOKIT_LIBS"
7765 for ac_func in IOHIDManagerCreate
7766 do :
7767 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7768 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7769 cat >>confdefs.h <<_ACEOF
7770 #define HAVE_IOHIDMANAGERCREATE 1
7771 _ACEOF
7774 done
7776 LIBS="$ac_save_LIBS"
7778 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7779 then
7780 QUICKTIME_LIBS="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
7782 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
7783 else
7784 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
7786 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
7787 then
7788 CARBON_LIBS="-framework Carbon"
7792 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
7793 then
7794 ac_save_LIBS="$LIBS"
7795 LIBS="$LIBS $APPLICATIONSERVICES_LIBS"
7796 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
7797 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
7798 enable_winemac_drv=${enable_winemac_drv:-yes}
7801 LIBS="$ac_save_LIBS"
7804 if test "x$enable_win16" = "xyes"
7805 then
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
7807 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
7808 if test "$cross_compiling" = yes; then :
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
7810 $as_echo "cross-compiling, assuming yes" >&6; }
7811 else
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814 asm(".text\n"
7815 "bad:\tnop;nop\n"
7816 "good:\tnop;nop\n\t"
7817 ".globl _testfunc\n"
7818 "_testfunc:\tcallw good");
7819 extern void testfunc();
7821 main ()
7823 unsigned short *p = (unsigned short *)testfunc;
7824 return p[0] != 0xe866 || p[1] != 0xfffa
7826 return 0;
7828 _ACEOF
7829 if ac_fn_c_try_run "$LINENO"; then :
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7831 $as_echo "yes" >&6; }
7832 else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7835 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
7837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7838 conftest.$ac_objext conftest.beam conftest.$ac_ext
7843 libwine_targets="libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib"
7844 LIBWINE_RULES="
7845 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7847 all: libwine.dylib
7849 libwine.$libwine_version.dylib: \$(OBJS)
7850 \$(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 \$@
7852 libwine.$libwine_soversion.dylib: libwine.$libwine_version.dylib
7853 \$(RM) \$@ && \$(LN_S) libwine.$libwine_version.dylib \$@
7855 libwine.dylib: libwine.$libwine_soversion.dylib
7856 \$(RM) \$@ && \$(LN_S) libwine.$libwine_soversion.dylib \$@
7858 install install-lib:: libwine.$libwine_version.dylib
7859 \$(INSTALL_PROGRAM) libwine.$libwine_version.dylib \$(DESTDIR)\$(libdir)/libwine.$libwine_version.dylib
7860 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.$libwine_soversion.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.$libwine_soversion.dylib
7862 install install-dev::
7863 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.dylib
7865 uninstall::
7866 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib
7870 as_fn_append LOADER_RULES "
7871 $wine_binary: main.o wine_info.plist
7872 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
7874 wine-installed: main.o wine_info.plist
7875 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
7879 linux-android*)
7880 DLLFLAGS="$DLLFLAGS -fPIC"
7881 DLLPREFIX="lib"
7882 LDEXECFLAGS=""
7883 dlldir="\${libdir}"
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7885 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7886 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 ac_wine_try_cflags_saved=$CFLAGS
7890 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7893 int main(int argc, char **argv) { return 0; }
7894 _ACEOF
7895 if ac_fn_c_try_link "$LINENO"; then :
7896 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7897 else
7898 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7900 rm -f core conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7902 CFLAGS=$ac_wine_try_cflags_saved
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7905 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7906 if test "x$ac_cv_cflags__fPIC__Wl___export_dynamic" = xyes; then :
7907 LDEXECFLAGS="-Wl,--export-dynamic"
7909 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7911 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7912 if eval \${$as_ac_var+:} false; then :
7913 $as_echo_n "(cached) " >&6
7914 else
7915 ac_wine_try_cflags_saved=$CFLAGS
7916 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7919 int main(int argc, char **argv) { return 0; }
7920 _ACEOF
7921 if ac_fn_c_try_link "$LINENO"; then :
7922 eval "$as_ac_var=yes"
7923 else
7924 eval "$as_ac_var=no"
7926 rm -f core conftest.err conftest.$ac_objext \
7927 conftest$ac_exeext conftest.$ac_ext
7928 CFLAGS=$ac_wine_try_cflags_saved
7930 eval ac_res=\$$as_ac_var
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7932 $as_echo "$ac_res" >&6; }
7933 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7934 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7935 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7936 else
7937 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7939 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7940 if eval \${$as_ac_var+:} false; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 ac_wine_try_cflags_saved=$CFLAGS
7944 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7947 int main(int argc, char **argv) { return 0; }
7948 _ACEOF
7949 if ac_fn_c_try_link "$LINENO"; then :
7950 eval "$as_ac_var=yes"
7951 else
7952 eval "$as_ac_var=no"
7954 rm -f core conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7956 CFLAGS=$ac_wine_try_cflags_saved
7958 eval ac_res=\$$as_ac_var
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7960 $as_echo "$ac_res" >&6; }
7961 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7962 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7963 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7968 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7969 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7970 $as_echo_n "(cached) " >&6
7971 else
7972 ac_wine_try_cflags_saved=$CFLAGS
7973 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7976 int main(int argc, char **argv) { return 0; }
7977 _ACEOF
7978 if ac_fn_c_try_link "$LINENO"; then :
7979 ac_cv_cflags__Wl___enable_new_dtags=yes
7980 else
7981 ac_cv_cflags__Wl___enable_new_dtags=no
7983 rm -f core conftest.err conftest.$ac_objext \
7984 conftest$ac_exeext conftest.$ac_ext
7985 CFLAGS=$ac_wine_try_cflags_saved
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7988 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7989 if test "x$ac_cv_cflags__Wl___enable_new_dtags" = xyes; then :
7990 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7993 case $host_cpu in
7994 *i[3456789]86* | x86_64)
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7996 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7997 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 ac_wine_try_cflags_saved=$CFLAGS
8001 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8004 int main(int argc, char **argv) { return 0; }
8005 _ACEOF
8006 if ac_fn_c_try_link "$LINENO"; then :
8007 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8008 else
8009 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8011 rm -f core conftest.err conftest.$ac_objext \
8012 conftest$ac_exeext conftest.$ac_ext
8013 CFLAGS=$ac_wine_try_cflags_saved
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8016 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8017 if test "x$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" = xyes; then :
8018 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
8021 esac
8023 libwine_targets="libwine.so"
8024 LIBWINE_RULES="
8025 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8027 all: libwine.so
8029 libwine.so: \$(OBJS)
8030 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8032 install install-lib:: libwine.so
8033 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
8035 uninstall::
8036 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
8040 as_fn_append LOADER_RULES "
8041 $wine_binary: main.o
8042 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8044 wine-installed: main.o
8045 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8050 DLLFLAGS="$DLLFLAGS -fPIC"
8051 LDEXECFLAGS=""
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
8053 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
8054 if ${ac_cv_c_dll_gnuelf+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 ac_wine_try_cflags_saved=$CFLAGS
8058 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8061 void myfunc() {}
8062 _ACEOF
8063 if ac_fn_c_try_link "$LINENO"; then :
8064 ac_cv_c_dll_gnuelf="yes"
8065 else
8066 ac_cv_c_dll_gnuelf="no"
8068 rm -f core conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
8070 CFLAGS=$ac_wine_try_cflags_saved
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
8073 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
8074 if test "$ac_cv_c_dll_gnuelf" = "yes"
8075 then
8076 LDSHARED="\$(CC) -shared"
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8078 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
8079 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 ac_wine_try_cflags_saved=$CFLAGS
8083 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8086 int main(int argc, char **argv) { return 0; }
8087 _ACEOF
8088 if ac_fn_c_try_link "$LINENO"; then :
8089 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8090 else
8091 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8093 rm -f core conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
8095 CFLAGS=$ac_wine_try_cflags_saved
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8098 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8099 if test "x$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" = xyes; then :
8100 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.$libwine_soversion"
8101 else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8103 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
8104 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 ac_wine_try_cflags_saved=$CFLAGS
8108 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8111 int main(int argc, char **argv) { return 0; }
8112 _ACEOF
8113 if ac_fn_c_try_link "$LINENO"; then :
8114 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8115 else
8116 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8118 rm -f core conftest.err conftest.$ac_objext \
8119 conftest$ac_exeext conftest.$ac_ext
8120 CFLAGS=$ac_wine_try_cflags_saved
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8123 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8124 if test "x$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" = xyes; then :
8125 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.$libwine_soversion"
8129 echo '{ global: *; };' >conftest.map
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8131 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
8132 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 ac_wine_try_cflags_saved=$CFLAGS
8136 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8138 /* end confdefs.h. */
8139 int main(int argc, char **argv) { return 0; }
8140 _ACEOF
8141 if ac_fn_c_try_link "$LINENO"; then :
8142 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8143 else
8144 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8146 rm -f core conftest.err conftest.$ac_objext \
8147 conftest$ac_exeext conftest.$ac_ext
8148 CFLAGS=$ac_wine_try_cflags_saved
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8151 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8152 if test "x$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" = xyes; then :
8153 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
8155 rm -f conftest.map
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8158 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8159 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 ac_wine_try_cflags_saved=$CFLAGS
8163 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 int main(int argc, char **argv) { return 0; }
8167 _ACEOF
8168 if ac_fn_c_try_link "$LINENO"; then :
8169 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8170 else
8171 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8173 rm -f core conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8175 CFLAGS=$ac_wine_try_cflags_saved
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8178 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8179 if test "x$ac_cv_cflags__fPIC__Wl___export_dynamic" = xyes; then :
8180 LDEXECFLAGS="-Wl,--export-dynamic"
8183 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8185 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8186 if eval \${$as_ac_var+:} false; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 ac_wine_try_cflags_saved=$CFLAGS
8190 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8193 int main(int argc, char **argv) { return 0; }
8194 _ACEOF
8195 if ac_fn_c_try_link "$LINENO"; then :
8196 eval "$as_ac_var=yes"
8197 else
8198 eval "$as_ac_var=no"
8200 rm -f core conftest.err conftest.$ac_objext \
8201 conftest$ac_exeext conftest.$ac_ext
8202 CFLAGS=$ac_wine_try_cflags_saved
8204 eval ac_res=\$$as_ac_var
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8206 $as_echo "$ac_res" >&6; }
8207 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8208 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8209 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8210 else
8211 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8213 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8214 if eval \${$as_ac_var+:} false; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 ac_wine_try_cflags_saved=$CFLAGS
8218 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 int main(int argc, char **argv) { return 0; }
8222 _ACEOF
8223 if ac_fn_c_try_link "$LINENO"; then :
8224 eval "$as_ac_var=yes"
8225 else
8226 eval "$as_ac_var=no"
8228 rm -f core conftest.err conftest.$ac_objext \
8229 conftest$ac_exeext conftest.$ac_ext
8230 CFLAGS=$ac_wine_try_cflags_saved
8232 eval ac_res=\$$as_ac_var
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8234 $as_echo "$ac_res" >&6; }
8235 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8236 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8237 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8242 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8243 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8244 $as_echo_n "(cached) " >&6
8245 else
8246 ac_wine_try_cflags_saved=$CFLAGS
8247 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8249 /* end confdefs.h. */
8250 int main(int argc, char **argv) { return 0; }
8251 _ACEOF
8252 if ac_fn_c_try_link "$LINENO"; then :
8253 ac_cv_cflags__Wl___enable_new_dtags=yes
8254 else
8255 ac_cv_cflags__Wl___enable_new_dtags=no
8257 rm -f core conftest.err conftest.$ac_objext \
8258 conftest$ac_exeext conftest.$ac_ext
8259 CFLAGS=$ac_wine_try_cflags_saved
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8262 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8263 if test "x$ac_cv_cflags__Wl___enable_new_dtags" = xyes; then :
8264 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8267 case $host_cpu in
8268 *i[3456789]86* | x86_64)
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8270 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8271 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 ac_wine_try_cflags_saved=$CFLAGS
8275 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8278 int main(int argc, char **argv) { return 0; }
8279 _ACEOF
8280 if ac_fn_c_try_link "$LINENO"; then :
8281 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8282 else
8283 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8285 rm -f core conftest.err conftest.$ac_objext \
8286 conftest$ac_exeext conftest.$ac_ext
8287 CFLAGS=$ac_wine_try_cflags_saved
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8290 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8291 if test "x$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" = xyes; then :
8292 case $host_os in
8293 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
8294 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
8295 esac
8298 # Extract the first word of "prelink", so it can be a program name with args.
8299 set dummy prelink; ac_word=$2
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 $as_echo_n "checking for $ac_word... " >&6; }
8302 if ${ac_cv_path_PRELINK+:} false; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 case $PRELINK in
8306 [\\/]* | ?:[\\/]*)
8307 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in /sbin /usr/sbin $PATH
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8317 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 break 2
8321 done
8322 done
8323 IFS=$as_save_IFS
8325 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
8327 esac
8329 PRELINK=$ac_cv_path_PRELINK
8330 if test -n "$PRELINK"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
8332 $as_echo "$PRELINK" >&6; }
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8339 if test "x$PRELINK" = xfalse
8340 then
8341 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
8344 esac
8346 else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
8348 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
8349 if ${ac_cv_c_dll_unixware+:} false; then :
8350 $as_echo_n "(cached) " >&6
8351 else
8352 ac_wine_try_cflags_saved=$CFLAGS
8353 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8355 /* end confdefs.h. */
8356 void myfunc() {}
8357 _ACEOF
8358 if ac_fn_c_try_link "$LINENO"; then :
8359 ac_cv_c_dll_unixware="yes"
8360 else
8361 ac_cv_c_dll_unixware="no"
8363 rm -f core conftest.err conftest.$ac_objext \
8364 conftest$ac_exeext conftest.$ac_ext
8365 CFLAGS=$ac_wine_try_cflags_saved
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
8368 $as_echo "$ac_cv_c_dll_unixware" >&6; }
8369 if test "$ac_cv_c_dll_unixware" = "yes"
8370 then
8371 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.$libwine_soversion"
8374 libwine_targets="libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version"
8375 LIBWINE_RULES="
8376 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8378 all: libwine.so
8380 libwine.so.$libwine_version: \$(OBJS) \$(srcdir)/wine.map
8381 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8383 libwine.so.$libwine_soversion: libwine.so.$libwine_version
8384 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_version \$@
8386 libwine.so: libwine.so.$libwine_soversion
8387 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_soversion \$@
8389 install install-lib:: libwine.so.$libwine_version
8390 \$(INSTALL_PROGRAM) libwine.so.$libwine_version \$(DESTDIR)\$(libdir)/libwine.so.$libwine_version
8391 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.$libwine_soversion && \$(LN_S) libwine.so.$libwine_version libwine.so.$libwine_soversion
8393 install install-dev::
8394 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.$libwine_version libwine.so
8396 uninstall::
8397 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version
8401 as_fn_append LOADER_RULES "
8402 $wine_binary: main.o
8403 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8405 wine-installed: main.o
8406 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8409 esac
8411 as_fn_append LIBWINE_RULES "
8412 EXTRA_TARGETS = $libwine_targets
8415 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8416 enable_winemac_drv=${enable_winemac_drv:-no}
8418 CROSSTARGET=""
8420 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8421 then
8422 case "$host_cpu" in
8423 i[3456789]86*)
8424 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
8425 mingw32-gcc" ;;
8426 x86_64)
8427 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 " ;;
8429 ac_prefix_list="" ;;
8430 esac
8431 for ac_prog in $ac_prefix_list
8433 # Extract the first word of "$ac_prog", so it can be a program name with args.
8434 set dummy $ac_prog; ac_word=$2
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436 $as_echo_n "checking for $ac_word... " >&6; }
8437 if ${ac_cv_prog_CROSSCC+:} false; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 if test -n "$CROSSCC"; then
8441 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8442 else
8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 for as_dir in $PATH
8446 IFS=$as_save_IFS
8447 test -z "$as_dir" && as_dir=.
8448 for ac_exec_ext in '' $ac_executable_extensions; do
8449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8450 ac_cv_prog_CROSSCC="$ac_prog"
8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 break 2
8454 done
8455 done
8456 IFS=$as_save_IFS
8460 CROSSCC=$ac_cv_prog_CROSSCC
8461 if test -n "$CROSSCC"; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8463 $as_echo "$CROSSCC" >&6; }
8464 else
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8466 $as_echo "no" >&6; }
8470 test -n "$CROSSCC" && break
8471 done
8472 test -n "$CROSSCC" || CROSSCC="false"
8474 if test "$CROSSCC" != "false"
8475 then
8476 ac_save_CC="$CC"
8477 CC="$CROSSCC"
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8479 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8484 main ()
8488 return 0;
8490 _ACEOF
8491 if ac_fn_c_try_compile "$LINENO"; then :
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8493 $as_echo "yes" >&6; }
8494 set x $CROSSCC
8495 shift
8496 while test $# -ge 1
8498 case "$1" in
8499 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8500 esac
8501 shift
8502 done
8503 else
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8508 CC="$ac_save_CC"
8513 if test "$ac_cv_header_pthread_h" = "yes"
8514 then
8515 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8516 if test "x$ac_cv_func_pthread_create" = xyes; then :
8518 else
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8520 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8521 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8522 $as_echo_n "(cached) " >&6
8523 else
8524 ac_check_lib_save_LIBS=$LIBS
8525 LIBS="-lpthread $LIBS"
8526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h. */
8529 /* Override any GCC internal prototype to avoid an error.
8530 Use char because int might match the return type of a GCC
8531 builtin and then its argument prototype would still apply. */
8532 #ifdef __cplusplus
8533 extern "C"
8534 #endif
8535 char pthread_create ();
8537 main ()
8539 return pthread_create ();
8541 return 0;
8543 _ACEOF
8544 if ac_fn_c_try_link "$LINENO"; then :
8545 ac_cv_lib_pthread_pthread_create=yes
8546 else
8547 ac_cv_lib_pthread_pthread_create=no
8549 rm -f core conftest.err conftest.$ac_objext \
8550 conftest$ac_exeext conftest.$ac_ext
8551 LIBS=$ac_check_lib_save_LIBS
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8554 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8555 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8556 PTHREAD_LIBS="-lpthread"
8563 if test "x$ac_cv_func_pthread_create" != xyes -a "x$PTHREAD_LIBS" = x; then :
8564 case "x$with_pthread" in
8565 xno) ;;
8566 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8567 Wine cannot support threads without libpthread.
8568 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8569 esac
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8574 $as_echo_n "checking for X... " >&6; }
8577 # Check whether --with-x was given.
8578 if test "${with_x+set}" = set; then :
8579 withval=$with_x;
8582 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8583 if test "x$with_x" = xno; then
8584 # The user explicitly disabled X.
8585 have_x=disabled
8586 else
8587 case $x_includes,$x_libraries in #(
8588 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8589 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 # One or both of the vars are not set, and there is no cached value.
8593 ac_x_includes=no ac_x_libraries=no
8594 rm -f -r conftest.dir
8595 if mkdir conftest.dir; then
8596 cd conftest.dir
8597 cat >Imakefile <<'_ACEOF'
8598 incroot:
8599 @echo incroot='${INCROOT}'
8600 usrlibdir:
8601 @echo usrlibdir='${USRLIBDIR}'
8602 libdir:
8603 @echo libdir='${LIBDIR}'
8604 _ACEOF
8605 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8606 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8607 for ac_var in incroot usrlibdir libdir; do
8608 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8609 done
8610 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8611 for ac_extension in a so sl dylib la dll; do
8612 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8613 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8614 ac_im_usrlibdir=$ac_im_libdir; break
8616 done
8617 # Screen out bogus values from the imake configuration. They are
8618 # bogus both because they are the default anyway, and because
8619 # using them would break gcc on systems where it needs fixed includes.
8620 case $ac_im_incroot in
8621 /usr/include) ac_x_includes= ;;
8622 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8623 esac
8624 case $ac_im_usrlibdir in
8625 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8626 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8627 esac
8629 cd ..
8630 rm -f -r conftest.dir
8633 # Standard set of common directories for X headers.
8634 # Check X11 before X11Rn because it is often a symlink to the current release.
8635 ac_x_header_dirs='
8636 /usr/X11/include
8637 /usr/X11R7/include
8638 /usr/X11R6/include
8639 /usr/X11R5/include
8640 /usr/X11R4/include
8642 /usr/include/X11
8643 /usr/include/X11R7
8644 /usr/include/X11R6
8645 /usr/include/X11R5
8646 /usr/include/X11R4
8648 /usr/local/X11/include
8649 /usr/local/X11R7/include
8650 /usr/local/X11R6/include
8651 /usr/local/X11R5/include
8652 /usr/local/X11R4/include
8654 /usr/local/include/X11
8655 /usr/local/include/X11R7
8656 /usr/local/include/X11R6
8657 /usr/local/include/X11R5
8658 /usr/local/include/X11R4
8660 /usr/X386/include
8661 /usr/x386/include
8662 /usr/XFree86/include/X11
8664 /usr/include
8665 /usr/local/include
8666 /usr/unsupported/include
8667 /usr/athena/include
8668 /usr/local/x11r5/include
8669 /usr/lpp/Xamples/include
8671 /usr/openwin/include
8672 /usr/openwin/share/include'
8674 if test "$ac_x_includes" = no; then
8675 # Guess where to find include files, by looking for Xlib.h.
8676 # First, try using that file with no special directory specified.
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 #include <X11/Xlib.h>
8680 _ACEOF
8681 if ac_fn_c_try_cpp "$LINENO"; then :
8682 # We can compile using X headers with no special include directory.
8683 ac_x_includes=
8684 else
8685 for ac_dir in $ac_x_header_dirs; do
8686 if test -r "$ac_dir/X11/Xlib.h"; then
8687 ac_x_includes=$ac_dir
8688 break
8690 done
8692 rm -f conftest.err conftest.i conftest.$ac_ext
8693 fi # $ac_x_includes = no
8695 if test "$ac_x_libraries" = no; then
8696 # Check for the libraries.
8697 # See if we find them without any special options.
8698 # Don't add to $LIBS permanently.
8699 ac_save_LIBS=$LIBS
8700 LIBS="-lX11 $LIBS"
8701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h. */
8703 #include <X11/Xlib.h>
8705 main ()
8707 XrmInitialize ()
8709 return 0;
8711 _ACEOF
8712 if ac_fn_c_try_link "$LINENO"; then :
8713 LIBS=$ac_save_LIBS
8714 # We can link X programs with no special library path.
8715 ac_x_libraries=
8716 else
8717 LIBS=$ac_save_LIBS
8718 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8720 # Don't even attempt the hair of trying to link an X program!
8721 for ac_extension in a so sl dylib la dll; do
8722 if test -r "$ac_dir/libX11.$ac_extension"; then
8723 ac_x_libraries=$ac_dir
8724 break 2
8726 done
8727 done
8729 rm -f core conftest.err conftest.$ac_objext \
8730 conftest$ac_exeext conftest.$ac_ext
8731 fi # $ac_x_libraries = no
8733 case $ac_x_includes,$ac_x_libraries in #(
8734 no,* | *,no | *\'*)
8735 # Didn't find X, or a directory has "'" in its name.
8736 ac_cv_have_x="have_x=no";; #(
8738 # Record where we found X for the cache.
8739 ac_cv_have_x="have_x=yes\
8740 ac_x_includes='$ac_x_includes'\
8741 ac_x_libraries='$ac_x_libraries'"
8742 esac
8744 ;; #(
8745 *) have_x=yes;;
8746 esac
8747 eval "$ac_cv_have_x"
8748 fi # $with_x != no
8750 if test "$have_x" != yes; then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8752 $as_echo "$have_x" >&6; }
8753 no_x=yes
8754 else
8755 # If each of the values was on the command line, it overrides each guess.
8756 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8757 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8758 # Update the cache value to reflect the command line values.
8759 ac_cv_have_x="have_x=yes\
8760 ac_x_includes='$x_includes'\
8761 ac_x_libraries='$x_libraries'"
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8763 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8766 if test "$no_x" = yes; then
8767 # Not all programs may use this symbol, but it does not hurt to define it.
8769 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8771 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8772 else
8773 if test -n "$x_includes"; then
8774 X_CFLAGS="$X_CFLAGS -I$x_includes"
8777 # It would also be nice to do this for all -L options, not just this one.
8778 if test -n "$x_libraries"; then
8779 X_LIBS="$X_LIBS -L$x_libraries"
8780 # For Solaris; some versions of Sun CC require a space after -R and
8781 # others require no space. Words are not sufficient . . . .
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8783 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
8784 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8785 ac_xsave_c_werror_flag=$ac_c_werror_flag
8786 ac_c_werror_flag=yes
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8791 main ()
8795 return 0;
8797 _ACEOF
8798 if ac_fn_c_try_link "$LINENO"; then :
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8801 X_LIBS="$X_LIBS -R$x_libraries"
8802 else
8803 LIBS="$ac_xsave_LIBS -R $x_libraries"
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8808 main ()
8812 return 0;
8814 _ACEOF
8815 if ac_fn_c_try_link "$LINENO"; then :
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8817 $as_echo "yes" >&6; }
8818 X_LIBS="$X_LIBS -R $x_libraries"
8819 else
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8821 $as_echo "neither works" >&6; }
8823 rm -f core conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
8826 rm -f core conftest.err conftest.$ac_objext \
8827 conftest$ac_exeext conftest.$ac_ext
8828 ac_c_werror_flag=$ac_xsave_c_werror_flag
8829 LIBS=$ac_xsave_LIBS
8832 # Check for system-dependent libraries X programs must link with.
8833 # Do this before checking for the system-independent R6 libraries
8834 # (-lICE), since we may need -lsocket or whatever for X linking.
8836 if test "$ISC" = yes; then
8837 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8838 else
8839 # Martyn Johnson says this is needed for Ultrix, if the X
8840 # libraries were built with DECnet support. And Karl Berry says
8841 # the Alpha needs dnet_stub (dnet does not exist).
8842 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h. */
8846 /* Override any GCC internal prototype to avoid an error.
8847 Use char because int might match the return type of a GCC
8848 builtin and then its argument prototype would still apply. */
8849 #ifdef __cplusplus
8850 extern "C"
8851 #endif
8852 char XOpenDisplay ();
8854 main ()
8856 return XOpenDisplay ();
8858 return 0;
8860 _ACEOF
8861 if ac_fn_c_try_link "$LINENO"; then :
8863 else
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8865 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8866 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 ac_check_lib_save_LIBS=$LIBS
8870 LIBS="-ldnet $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_dnet_ntoa=yes
8891 else
8892 ac_cv_lib_dnet_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_dnet_ntoa" >&5
8899 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8900 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8901 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8904 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8906 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8907 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 ac_check_lib_save_LIBS=$LIBS
8911 LIBS="-ldnet_stub $LIBS"
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8915 /* Override any GCC internal prototype to avoid an error.
8916 Use char because int might match the return type of a GCC
8917 builtin and then its argument prototype would still apply. */
8918 #ifdef __cplusplus
8919 extern "C"
8920 #endif
8921 char dnet_ntoa ();
8923 main ()
8925 return dnet_ntoa ();
8927 return 0;
8929 _ACEOF
8930 if ac_fn_c_try_link "$LINENO"; then :
8931 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8932 else
8933 ac_cv_lib_dnet_stub_dnet_ntoa=no
8935 rm -f core conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext conftest.$ac_ext
8937 LIBS=$ac_check_lib_save_LIBS
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8940 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8941 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8942 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8947 rm -f core conftest.err conftest.$ac_objext \
8948 conftest$ac_exeext conftest.$ac_ext
8949 LIBS="$ac_xsave_LIBS"
8951 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8952 # to get the SysV transport functions.
8953 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8954 # needs -lnsl.
8955 # The nsl library prevents programs from opening the X display
8956 # on Irix 5.2, according to T.E. Dickey.
8957 # The functions gethostbyname, getservbyname, and inet_addr are
8958 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8959 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8960 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8964 if test $ac_cv_func_gethostbyname = no; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8966 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8967 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 ac_check_lib_save_LIBS=$LIBS
8971 LIBS="-lnsl $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_nsl_gethostbyname=yes
8992 else
8993 ac_cv_lib_nsl_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_nsl_gethostbyname" >&5
9000 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9001 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9005 if test $ac_cv_lib_nsl_gethostbyname = no; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
9007 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
9008 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9011 ac_check_lib_save_LIBS=$LIBS
9012 LIBS="-lbsd $LIBS"
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9016 /* Override any GCC internal prototype to avoid an error.
9017 Use char because int might match the return type of a GCC
9018 builtin and then its argument prototype would still apply. */
9019 #ifdef __cplusplus
9020 extern "C"
9021 #endif
9022 char gethostbyname ();
9024 main ()
9026 return gethostbyname ();
9028 return 0;
9030 _ACEOF
9031 if ac_fn_c_try_link "$LINENO"; then :
9032 ac_cv_lib_bsd_gethostbyname=yes
9033 else
9034 ac_cv_lib_bsd_gethostbyname=no
9036 rm -f core conftest.err conftest.$ac_objext \
9037 conftest$ac_exeext conftest.$ac_ext
9038 LIBS=$ac_check_lib_save_LIBS
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
9041 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9042 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
9043 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9049 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9050 # socket/setsockopt and other routines are undefined under SCO ODT
9051 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9052 # on later versions), says Simon Leinen: it contains gethostby*
9053 # variants that don't use the name server (or something). -lsocket
9054 # must be given before -lnsl if both are needed. We assume that
9055 # if connect needs -lnsl, so does gethostbyname.
9056 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9057 if test "x$ac_cv_func_connect" = xyes; then :
9061 if test $ac_cv_func_connect = no; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9063 $as_echo_n "checking for connect in -lsocket... " >&6; }
9064 if ${ac_cv_lib_socket_connect+:} false; then :
9065 $as_echo_n "(cached) " >&6
9066 else
9067 ac_check_lib_save_LIBS=$LIBS
9068 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9072 /* Override any GCC internal prototype to avoid an error.
9073 Use char because int might match the return type of a GCC
9074 builtin and then its argument prototype would still apply. */
9075 #ifdef __cplusplus
9076 extern "C"
9077 #endif
9078 char connect ();
9080 main ()
9082 return connect ();
9084 return 0;
9086 _ACEOF
9087 if ac_fn_c_try_link "$LINENO"; then :
9088 ac_cv_lib_socket_connect=yes
9089 else
9090 ac_cv_lib_socket_connect=no
9092 rm -f core conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
9094 LIBS=$ac_check_lib_save_LIBS
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9097 $as_echo "$ac_cv_lib_socket_connect" >&6; }
9098 if test "x$ac_cv_lib_socket_connect" = xyes; then :
9099 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9104 # Guillermo Gomez says -lposix is necessary on A/UX.
9105 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9106 if test "x$ac_cv_func_remove" = xyes; then :
9110 if test $ac_cv_func_remove = no; then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9112 $as_echo_n "checking for remove in -lposix... " >&6; }
9113 if ${ac_cv_lib_posix_remove+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 ac_check_lib_save_LIBS=$LIBS
9117 LIBS="-lposix $LIBS"
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9121 /* Override any GCC internal prototype to avoid an error.
9122 Use char because int might match the return type of a GCC
9123 builtin and then its argument prototype would still apply. */
9124 #ifdef __cplusplus
9125 extern "C"
9126 #endif
9127 char remove ();
9129 main ()
9131 return remove ();
9133 return 0;
9135 _ACEOF
9136 if ac_fn_c_try_link "$LINENO"; then :
9137 ac_cv_lib_posix_remove=yes
9138 else
9139 ac_cv_lib_posix_remove=no
9141 rm -f core conftest.err conftest.$ac_objext \
9142 conftest$ac_exeext conftest.$ac_ext
9143 LIBS=$ac_check_lib_save_LIBS
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9146 $as_echo "$ac_cv_lib_posix_remove" >&6; }
9147 if test "x$ac_cv_lib_posix_remove" = xyes; then :
9148 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9153 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9154 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9155 if test "x$ac_cv_func_shmat" = xyes; then :
9159 if test $ac_cv_func_shmat = no; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9161 $as_echo_n "checking for shmat in -lipc... " >&6; }
9162 if ${ac_cv_lib_ipc_shmat+:} false; then :
9163 $as_echo_n "(cached) " >&6
9164 else
9165 ac_check_lib_save_LIBS=$LIBS
9166 LIBS="-lipc $LIBS"
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9170 /* Override any GCC internal prototype to avoid an error.
9171 Use char because int might match the return type of a GCC
9172 builtin and then its argument prototype would still apply. */
9173 #ifdef __cplusplus
9174 extern "C"
9175 #endif
9176 char shmat ();
9178 main ()
9180 return shmat ();
9182 return 0;
9184 _ACEOF
9185 if ac_fn_c_try_link "$LINENO"; then :
9186 ac_cv_lib_ipc_shmat=yes
9187 else
9188 ac_cv_lib_ipc_shmat=no
9190 rm -f core conftest.err conftest.$ac_objext \
9191 conftest$ac_exeext conftest.$ac_ext
9192 LIBS=$ac_check_lib_save_LIBS
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9195 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9196 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9197 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9203 # Check for libraries that X11R6 Xt/Xaw programs need.
9204 ac_save_LDFLAGS=$LDFLAGS
9205 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9206 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9207 # check for ICE first), but we must link in the order -lSM -lICE or
9208 # we get undefined symbols. So assume we have SM if we have ICE.
9209 # These have to be linked with before -lX11, unlike the other
9210 # libraries we check for below, so use a different variable.
9211 # John Interrante, Karl Berry
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9213 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9214 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 ac_check_lib_save_LIBS=$LIBS
9218 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9222 /* Override any GCC internal prototype to avoid an error.
9223 Use char because int might match the return type of a GCC
9224 builtin and then its argument prototype would still apply. */
9225 #ifdef __cplusplus
9226 extern "C"
9227 #endif
9228 char IceConnectionNumber ();
9230 main ()
9232 return IceConnectionNumber ();
9234 return 0;
9236 _ACEOF
9237 if ac_fn_c_try_link "$LINENO"; then :
9238 ac_cv_lib_ICE_IceConnectionNumber=yes
9239 else
9240 ac_cv_lib_ICE_IceConnectionNumber=no
9242 rm -f core conftest.err conftest.$ac_objext \
9243 conftest$ac_exeext conftest.$ac_ext
9244 LIBS=$ac_check_lib_save_LIBS
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9247 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9248 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9249 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9252 LDFLAGS=$ac_save_LDFLAGS
9257 if test "$have_x" = "yes"
9258 then
9259 ac_save_CPPFLAGS="$CPPFLAGS"
9260 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
9263 $as_echo_n "checking for -lX11... " >&6; }
9264 if ${ac_cv_lib_soname_X11+:} false; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 ac_check_soname_save_LIBS=$LIBS
9268 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9272 /* Override any GCC internal prototype to avoid an error.
9273 Use char because int might match the return type of a GCC
9274 builtin and then its argument prototype would still apply. */
9275 #ifdef __cplusplus
9276 extern "C"
9277 #endif
9278 char XCreateWindow ();
9280 main ()
9282 return XCreateWindow ();
9284 return 0;
9286 _ACEOF
9287 if ac_fn_c_try_link "$LINENO"; then :
9288 case "$LIBEXT" in
9289 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9290 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'` ;;
9291 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9292 if ${ac_cv_lib_soname_X11:+false} :; then :
9293 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9294 fi ;;
9295 esac
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299 LIBS=$ac_check_soname_save_LIBS
9301 if ${ac_cv_lib_soname_X11:+false} :; then :
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9303 $as_echo "not found" >&6; }
9305 else
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
9307 $as_echo "$ac_cv_lib_soname_X11" >&6; }
9309 cat >>confdefs.h <<_ACEOF
9310 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9311 _ACEOF
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
9316 $as_echo_n "checking for -lXext... " >&6; }
9317 if ${ac_cv_lib_soname_Xext+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 ac_check_soname_save_LIBS=$LIBS
9321 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9325 /* Override any GCC internal prototype to avoid an error.
9326 Use char because int might match the return type of a GCC
9327 builtin and then its argument prototype would still apply. */
9328 #ifdef __cplusplus
9329 extern "C"
9330 #endif
9331 char XextCreateExtension ();
9333 main ()
9335 return XextCreateExtension ();
9337 return 0;
9339 _ACEOF
9340 if ac_fn_c_try_link "$LINENO"; then :
9341 case "$LIBEXT" in
9342 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9343 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'` ;;
9344 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9345 if ${ac_cv_lib_soname_Xext:+false} :; then :
9346 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9347 fi ;;
9348 esac
9350 rm -f core conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9352 LIBS=$ac_check_soname_save_LIBS
9354 if ${ac_cv_lib_soname_Xext:+false} :; then :
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9356 $as_echo "not found" >&6; }
9358 else
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
9360 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
9362 cat >>confdefs.h <<_ACEOF
9363 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9364 _ACEOF
9366 X_LIBS="$X_LIBS -lXext"
9368 X_LIBS="$X_LIBS -lX11"
9370 for ac_header in X11/Xlib.h \
9371 X11/XKBlib.h \
9372 X11/Xutil.h \
9373 X11/Xcursor/Xcursor.h \
9374 X11/extensions/shape.h \
9375 X11/extensions/XInput.h \
9376 X11/extensions/XInput2.h \
9377 X11/extensions/XShm.h \
9378 X11/extensions/Xcomposite.h \
9379 X11/extensions/Xinerama.h \
9380 X11/extensions/Xrandr.h \
9381 X11/extensions/Xrender.h \
9382 X11/extensions/xf86vmode.h \
9383 X11/extensions/xf86vmproto.h
9384 do :
9385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9386 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9387 # include <X11/Xlib.h>
9388 #endif
9389 #ifdef HAVE_X11_XUTIL_H
9390 # include <X11/Xutil.h>
9391 #endif
9393 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9394 cat >>confdefs.h <<_ACEOF
9395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9396 _ACEOF
9400 done
9403 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9404 then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9406 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9407 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 ac_check_lib_save_LIBS=$LIBS
9411 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9415 /* Override any GCC internal prototype to avoid an error.
9416 Use char because int might match the return type of a GCC
9417 builtin and then its argument prototype would still apply. */
9418 #ifdef __cplusplus
9419 extern "C"
9420 #endif
9421 char XkbQueryExtension ();
9423 main ()
9425 return XkbQueryExtension ();
9427 return 0;
9429 _ACEOF
9430 if ac_fn_c_try_link "$LINENO"; then :
9431 ac_cv_lib_X11_XkbQueryExtension=yes
9432 else
9433 ac_cv_lib_X11_XkbQueryExtension=no
9435 rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9437 LIBS=$ac_check_lib_save_LIBS
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9440 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9441 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9443 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9449 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9450 then
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9452 $as_echo_n "checking for -lXcursor... " >&6; }
9453 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9454 $as_echo_n "(cached) " >&6
9455 else
9456 ac_check_soname_save_LIBS=$LIBS
9457 LIBS="-lXcursor $X_LIBS $X_EXTRA_LIBS $LIBS"
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9461 /* Override any GCC internal prototype to avoid an error.
9462 Use char because int might match the return type of a GCC
9463 builtin and then its argument prototype would still apply. */
9464 #ifdef __cplusplus
9465 extern "C"
9466 #endif
9467 char XcursorImageLoadCursor ();
9469 main ()
9471 return XcursorImageLoadCursor ();
9473 return 0;
9475 _ACEOF
9476 if ac_fn_c_try_link "$LINENO"; then :
9477 case "$LIBEXT" in
9478 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9479 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'` ;;
9480 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9481 if ${ac_cv_lib_soname_Xcursor:+false} :; then :
9482 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9483 fi ;;
9484 esac
9486 rm -f core conftest.err conftest.$ac_objext \
9487 conftest$ac_exeext conftest.$ac_ext
9488 LIBS=$ac_check_soname_save_LIBS
9490 if ${ac_cv_lib_soname_Xcursor:+false} :; then :
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9492 $as_echo "not found" >&6; }
9494 else
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9496 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9498 cat >>confdefs.h <<_ACEOF
9499 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9500 _ACEOF
9505 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9506 case "x$with_xcursor" in
9507 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9508 xno) ;;
9509 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9510 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9511 esac
9514 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9515 then
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9517 $as_echo_n "checking for -lXi... " >&6; }
9518 if ${ac_cv_lib_soname_Xi+:} false; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 ac_check_soname_save_LIBS=$LIBS
9522 LIBS="-lXi $X_LIBS $X_EXTRA_LIBS $LIBS"
9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9526 /* Override any GCC internal prototype to avoid an error.
9527 Use char because int might match the return type of a GCC
9528 builtin and then its argument prototype would still apply. */
9529 #ifdef __cplusplus
9530 extern "C"
9531 #endif
9532 char XOpenDevice ();
9534 main ()
9536 return XOpenDevice ();
9538 return 0;
9540 _ACEOF
9541 if ac_fn_c_try_link "$LINENO"; then :
9542 case "$LIBEXT" in
9543 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9544 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'` ;;
9545 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9546 if ${ac_cv_lib_soname_Xi:+false} :; then :
9547 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9548 fi ;;
9549 esac
9551 rm -f core conftest.err conftest.$ac_objext \
9552 conftest$ac_exeext conftest.$ac_ext
9553 LIBS=$ac_check_soname_save_LIBS
9555 if ${ac_cv_lib_soname_Xi:+false} :; then :
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9557 $as_echo "not found" >&6; }
9559 else
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9561 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9563 cat >>confdefs.h <<_ACEOF
9564 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9565 _ACEOF
9570 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9571 case "x$with_xinput" in
9572 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9573 xno) ;;
9574 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9575 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9576 esac
9579 if test "x$ac_cv_lib_soname_Xi" != x
9580 then
9581 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9582 case "x$with_xinput2" in
9583 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9584 xno) ;;
9585 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9586 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9587 esac
9591 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9592 then
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9594 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9595 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9596 $as_echo_n "(cached) " >&6
9597 else
9598 ac_check_lib_save_LIBS=$LIBS
9599 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS $LIBS"
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9603 /* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9606 #ifdef __cplusplus
9607 extern "C"
9608 #endif
9609 char XShmQueryExtension ();
9611 main ()
9613 return XShmQueryExtension ();
9615 return 0;
9617 _ACEOF
9618 if ac_fn_c_try_link "$LINENO"; then :
9619 ac_cv_lib_Xext_XShmQueryExtension=yes
9620 else
9621 ac_cv_lib_Xext_XShmQueryExtension=no
9623 rm -f core conftest.err conftest.$ac_objext \
9624 conftest$ac_exeext conftest.$ac_ext
9625 LIBS=$ac_check_lib_save_LIBS
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9628 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9629 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9631 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9636 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9637 case "x$with_xshm" in
9638 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9639 xno) ;;
9640 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9641 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9642 esac
9645 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9646 then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9648 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9649 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 ac_check_lib_save_LIBS=$LIBS
9653 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS $LIBS"
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9657 /* Override any GCC internal prototype to avoid an error.
9658 Use char because int might match the return type of a GCC
9659 builtin and then its argument prototype would still apply. */
9660 #ifdef __cplusplus
9661 extern "C"
9662 #endif
9663 char XShapeQueryExtension ();
9665 main ()
9667 return XShapeQueryExtension ();
9669 return 0;
9671 _ACEOF
9672 if ac_fn_c_try_link "$LINENO"; then :
9673 ac_cv_lib_Xext_XShapeQueryExtension=yes
9674 else
9675 ac_cv_lib_Xext_XShapeQueryExtension=no
9677 rm -f core conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
9679 LIBS=$ac_check_lib_save_LIBS
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9682 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9683 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9685 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9690 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9691 case "x$with_xshape" in
9692 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9693 xno) ;;
9694 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9695 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9696 esac
9699 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9700 then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9702 $as_echo_n "checking for -lXxf86vm... " >&6; }
9703 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9704 $as_echo_n "(cached) " >&6
9705 else
9706 ac_check_soname_save_LIBS=$LIBS
9707 LIBS="-lXxf86vm $X_LIBS $X_EXTRA_LIBS $LIBS"
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9711 /* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
9714 #ifdef __cplusplus
9715 extern "C"
9716 #endif
9717 char XF86VidModeQueryExtension ();
9719 main ()
9721 return XF86VidModeQueryExtension ();
9723 return 0;
9725 _ACEOF
9726 if ac_fn_c_try_link "$LINENO"; then :
9727 case "$LIBEXT" in
9728 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9729 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'` ;;
9730 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9731 if ${ac_cv_lib_soname_Xxf86vm:+false} :; then :
9732 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9733 fi ;;
9734 esac
9736 rm -f core conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext conftest.$ac_ext
9738 LIBS=$ac_check_soname_save_LIBS
9740 if ${ac_cv_lib_soname_Xxf86vm:+false} :; then :
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9742 $as_echo "not found" >&6; }
9744 else
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9746 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9748 cat >>confdefs.h <<_ACEOF
9749 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9750 _ACEOF
9755 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9756 case "x$with_xxf86vm" in
9757 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9758 xno) ;;
9759 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9760 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9761 esac
9764 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"
9765 then
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9767 $as_echo_n "checking for -lXrender... " >&6; }
9768 if ${ac_cv_lib_soname_Xrender+:} false; then :
9769 $as_echo_n "(cached) " >&6
9770 else
9771 ac_check_soname_save_LIBS=$LIBS
9772 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9776 /* Override any GCC internal prototype to avoid an error.
9777 Use char because int might match the return type of a GCC
9778 builtin and then its argument prototype would still apply. */
9779 #ifdef __cplusplus
9780 extern "C"
9781 #endif
9782 char XRenderQueryExtension ();
9784 main ()
9786 return XRenderQueryExtension ();
9788 return 0;
9790 _ACEOF
9791 if ac_fn_c_try_link "$LINENO"; then :
9792 case "$LIBEXT" in
9793 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9794 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'` ;;
9795 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9796 if ${ac_cv_lib_soname_Xrender:+false} :; then :
9797 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9798 fi ;;
9799 esac
9801 rm -f core conftest.err conftest.$ac_objext \
9802 conftest$ac_exeext conftest.$ac_ext
9803 LIBS=$ac_check_soname_save_LIBS
9805 if ${ac_cv_lib_soname_Xrender:+false} :; then :
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9807 $as_echo "not found" >&6; }
9809 else
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
9811 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
9813 cat >>confdefs.h <<_ACEOF
9814 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
9815 _ACEOF
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
9818 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
9819 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 ac_check_lib_save_LIBS=$LIBS
9823 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h. */
9827 /* Override any GCC internal prototype to avoid an error.
9828 Use char because int might match the return type of a GCC
9829 builtin and then its argument prototype would still apply. */
9830 #ifdef __cplusplus
9831 extern "C"
9832 #endif
9833 char XRenderSetPictureTransform ();
9835 main ()
9837 return XRenderSetPictureTransform ();
9839 return 0;
9841 _ACEOF
9842 if ac_fn_c_try_link "$LINENO"; then :
9843 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9844 else
9845 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9847 rm -f core conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
9849 LIBS=$ac_check_lib_save_LIBS
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9852 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9853 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
9855 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
9860 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
9861 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
9862 $as_echo_n "(cached) " >&6
9863 else
9864 ac_check_lib_save_LIBS=$LIBS
9865 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9869 /* Override any GCC internal prototype to avoid an error.
9870 Use char because int might match the return type of a GCC
9871 builtin and then its argument prototype would still apply. */
9872 #ifdef __cplusplus
9873 extern "C"
9874 #endif
9875 char XRenderCreateLinearGradient ();
9877 main ()
9879 return XRenderCreateLinearGradient ();
9881 return 0;
9883 _ACEOF
9884 if ac_fn_c_try_link "$LINENO"; then :
9885 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
9886 else
9887 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
9889 rm -f core conftest.err conftest.$ac_objext \
9890 conftest$ac_exeext conftest.$ac_ext
9891 LIBS=$ac_check_lib_save_LIBS
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
9894 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
9895 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
9897 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
9904 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9905 case "x$with_xrender" in
9906 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
9907 xno) ;;
9908 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
9909 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
9910 esac
9913 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9914 then
9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9917 #include <X11/Xlib.h>
9918 #include <X11/extensions/Xrandr.h>
9920 main ()
9922 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9924 return 0;
9926 _ACEOF
9927 if ac_fn_c_try_compile "$LINENO"; then :
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9929 $as_echo_n "checking for -lXrandr... " >&6; }
9930 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9931 $as_echo_n "(cached) " >&6
9932 else
9933 ac_check_soname_save_LIBS=$LIBS
9934 LIBS="-lXrandr $X_LIBS $X_EXTRA_LIBS $LIBS"
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9938 /* Override any GCC internal prototype to avoid an error.
9939 Use char because int might match the return type of a GCC
9940 builtin and then its argument prototype would still apply. */
9941 #ifdef __cplusplus
9942 extern "C"
9943 #endif
9944 char XRRQueryExtension ();
9946 main ()
9948 return XRRQueryExtension ();
9950 return 0;
9952 _ACEOF
9953 if ac_fn_c_try_link "$LINENO"; then :
9954 case "$LIBEXT" in
9955 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9956 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'` ;;
9957 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9958 if ${ac_cv_lib_soname_Xrandr:+false} :; then :
9959 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9960 fi ;;
9961 esac
9963 rm -f core conftest.err conftest.$ac_objext \
9964 conftest$ac_exeext conftest.$ac_ext
9965 LIBS=$ac_check_soname_save_LIBS
9967 if ${ac_cv_lib_soname_Xrandr:+false} :; then :
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9969 $as_echo "not found" >&6; }
9971 else
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9973 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9975 cat >>confdefs.h <<_ACEOF
9976 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9977 _ACEOF
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9981 #include <X11/Xlib.h>
9982 #include <X11/extensions/Xrandr.h>
9984 main ()
9986 static typeof(XRRGetScreenResources) *f; if (f) return 0;
9988 return 0;
9990 _ACEOF
9991 if ac_fn_c_try_compile "$LINENO"; then :
9993 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
9996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10001 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
10002 case "x$with_xrandr" in
10003 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
10004 xno) ;;
10005 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
10006 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
10007 esac
10010 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10011 then
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013 /* end confdefs.h. */
10014 #include <X11/Xlib.h>
10015 #include <X11/extensions/Xinerama.h>
10017 main ()
10019 static typeof(XineramaQueryScreens) * func; if (func) return 0;
10021 return 0;
10023 _ACEOF
10024 if ac_fn_c_try_compile "$LINENO"; then :
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
10026 $as_echo_n "checking for -lXinerama... " >&6; }
10027 if ${ac_cv_lib_soname_Xinerama+:} false; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 ac_check_soname_save_LIBS=$LIBS
10031 LIBS="-lXinerama $X_LIBS $X_EXTRA_LIBS $LIBS"
10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h. */
10035 /* Override any GCC internal prototype to avoid an error.
10036 Use char because int might match the return type of a GCC
10037 builtin and then its argument prototype would still apply. */
10038 #ifdef __cplusplus
10039 extern "C"
10040 #endif
10041 char XineramaQueryScreens ();
10043 main ()
10045 return XineramaQueryScreens ();
10047 return 0;
10049 _ACEOF
10050 if ac_fn_c_try_link "$LINENO"; then :
10051 case "$LIBEXT" in
10052 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10053 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'` ;;
10054 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10055 if ${ac_cv_lib_soname_Xinerama:+false} :; then :
10056 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10057 fi ;;
10058 esac
10060 rm -f core conftest.err conftest.$ac_objext \
10061 conftest$ac_exeext conftest.$ac_ext
10062 LIBS=$ac_check_soname_save_LIBS
10064 if ${ac_cv_lib_soname_Xinerama:+false} :; then :
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10066 $as_echo "not found" >&6; }
10068 else
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
10070 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
10072 cat >>confdefs.h <<_ACEOF
10073 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10074 _ACEOF
10079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10081 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10082 case "x$with_xinerama" in
10083 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
10084 xno) ;;
10085 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
10086 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
10087 esac
10090 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10091 then
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
10093 $as_echo_n "checking for -lXcomposite... " >&6; }
10094 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
10095 $as_echo_n "(cached) " >&6
10096 else
10097 ac_check_soname_save_LIBS=$LIBS
10098 LIBS="-lXcomposite $X_LIBS $X_EXTRA_LIBS $LIBS"
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10102 /* Override any GCC internal prototype to avoid an error.
10103 Use char because int might match the return type of a GCC
10104 builtin and then its argument prototype would still apply. */
10105 #ifdef __cplusplus
10106 extern "C"
10107 #endif
10108 char XCompositeRedirectWindow ();
10110 main ()
10112 return XCompositeRedirectWindow ();
10114 return 0;
10116 _ACEOF
10117 if ac_fn_c_try_link "$LINENO"; then :
10118 case "$LIBEXT" in
10119 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10120 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'` ;;
10121 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10122 if ${ac_cv_lib_soname_Xcomposite:+false} :; then :
10123 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10124 fi ;;
10125 esac
10127 rm -f core conftest.err conftest.$ac_objext \
10128 conftest$ac_exeext conftest.$ac_ext
10129 LIBS=$ac_check_soname_save_LIBS
10131 if ${ac_cv_lib_soname_Xcomposite:+false} :; then :
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10133 $as_echo "not found" >&6; }
10135 else
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
10137 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
10139 cat >>confdefs.h <<_ACEOF
10140 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10141 _ACEOF
10146 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10147 case "x$with_xcomposite" in
10148 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
10149 xno) ;;
10150 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
10151 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
10152 esac
10155 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
10156 #include <X11/Xlib.h>
10157 #endif
10159 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
10161 cat >>confdefs.h <<_ACEOF
10162 #define HAVE_XICCALLBACK_CALLBACK 1
10163 _ACEOF
10167 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
10168 #include <X11/Xlib.h>
10169 #endif
10171 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
10173 cat >>confdefs.h <<_ACEOF
10174 #define HAVE_XEVENT_XCOOKIE 1
10175 _ACEOF
10182 opengl_msg=""
10183 if test "x$with_opengl" != "xno"
10184 then
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10186 $as_echo_n "checking for -lGL... " >&6; }
10187 if ${ac_cv_lib_soname_GL+:} false; then :
10188 $as_echo_n "(cached) " >&6
10189 else
10190 ac_check_soname_save_LIBS=$LIBS
10191 LIBS="-lGL $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10193 /* end confdefs.h. */
10195 /* Override any GCC internal prototype to avoid an error.
10196 Use char because int might match the return type of a GCC
10197 builtin and then its argument prototype would still apply. */
10198 #ifdef __cplusplus
10199 extern "C"
10200 #endif
10201 char glXCreateContext ();
10203 main ()
10205 return glXCreateContext ();
10207 return 0;
10209 _ACEOF
10210 if ac_fn_c_try_link "$LINENO"; then :
10211 case "$LIBEXT" in
10212 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10213 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'` ;;
10214 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10215 if ${ac_cv_lib_soname_GL:+false} :; then :
10216 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10217 fi ;;
10218 esac
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_soname_save_LIBS
10224 if ${ac_cv_lib_soname_GL:+false} :; then :
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10226 $as_echo "not found" >&6; }
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10228 $as_echo_n "checking for -lGL... " >&6; }
10229 if ${ac_cv_lib_soname_GL+:} false; then :
10230 $as_echo_n "(cached) " >&6
10231 else
10232 ac_check_soname_save_LIBS=$LIBS
10233 LIBS="-lGL $X_LIBS -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"
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10237 /* Override any GCC internal prototype to avoid an error.
10238 Use char because int might match the return type of a GCC
10239 builtin and then its argument prototype would still apply. */
10240 #ifdef __cplusplus
10241 extern "C"
10242 #endif
10243 char glXCreateContext ();
10245 main ()
10247 return glXCreateContext ();
10249 return 0;
10251 _ACEOF
10252 if ac_fn_c_try_link "$LINENO"; then :
10253 case "$LIBEXT" in
10254 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10255 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'` ;;
10256 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10257 if ${ac_cv_lib_soname_GL:+false} :; then :
10258 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10259 fi ;;
10260 esac
10262 rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_soname_save_LIBS
10266 if ${ac_cv_lib_soname_GL:+false} :; then :
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10268 $as_echo "not found" >&6; }
10269 if test -f /usr/X11R6/lib/libGL.a
10270 then
10271 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
10272 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10273 else
10274 opengl_msg="No OpenGL library found on this system."
10276 else
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10278 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10280 cat >>confdefs.h <<_ACEOF
10281 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10282 _ACEOF
10284 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"
10286 else
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10288 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10290 cat >>confdefs.h <<_ACEOF
10291 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10292 _ACEOF
10294 OPENGL_LIBS="-lGL"
10296 if test "x$with_glu" != "xno"
10297 then
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
10299 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
10300 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 ac_check_lib_save_LIBS=$LIBS
10304 LIBS="-lGLU $OPENGL_LIBS $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10308 /* Override any GCC internal prototype to avoid an error.
10309 Use char because int might match the return type of a GCC
10310 builtin and then its argument prototype would still apply. */
10311 #ifdef __cplusplus
10312 extern "C"
10313 #endif
10314 char gluLookAt ();
10316 main ()
10318 return gluLookAt ();
10320 return 0;
10322 _ACEOF
10323 if ac_fn_c_try_link "$LINENO"; then :
10324 ac_cv_lib_GLU_gluLookAt=yes
10325 else
10326 ac_cv_lib_GLU_gluLookAt=no
10328 rm -f core conftest.err conftest.$ac_objext \
10329 conftest$ac_exeext conftest.$ac_ext
10330 LIBS=$ac_check_lib_save_LIBS
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
10333 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
10334 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
10338 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
10339 case "x$with_glu" in
10340 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
10341 xno) ;;
10342 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
10343 This is an error since --with-glu was requested." "$LINENO" 5 ;;
10344 esac
10348 if test "x$with_osmesa" != "xno"
10349 then
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
10351 $as_echo_n "checking for -lOSMesa... " >&6; }
10352 if ${ac_cv_lib_soname_OSMesa+:} false; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 ac_check_soname_save_LIBS=$LIBS
10356 LIBS="-lOSMesa $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10358 /* end confdefs.h. */
10360 /* Override any GCC internal prototype to avoid an error.
10361 Use char because int might match the return type of a GCC
10362 builtin and then its argument prototype would still apply. */
10363 #ifdef __cplusplus
10364 extern "C"
10365 #endif
10366 char glAccum ();
10368 main ()
10370 return glAccum ();
10372 return 0;
10374 _ACEOF
10375 if ac_fn_c_try_link "$LINENO"; then :
10376 case "$LIBEXT" in
10377 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10378 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'` ;;
10379 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10380 if ${ac_cv_lib_soname_OSMesa:+false} :; then :
10381 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10382 fi ;;
10383 esac
10385 rm -f core conftest.err conftest.$ac_objext \
10386 conftest$ac_exeext conftest.$ac_ext
10387 LIBS=$ac_check_soname_save_LIBS
10389 if ${ac_cv_lib_soname_OSMesa:+false} :; then :
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10391 $as_echo "not found" >&6; }
10393 else
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10395 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10397 cat >>confdefs.h <<_ACEOF
10398 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10399 _ACEOF
10403 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10404 case "x$with_osmesa" in
10405 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10406 xno) ;;
10407 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10408 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10409 esac
10413 if test -n "$opengl_msg"; then :
10414 case "x$with_opengl" in
10415 x) as_fn_append wine_warnings "|$opengl_msg
10416 OpenGL and Direct3D won't be supported." ;;
10417 xno) ;;
10418 *) as_fn_error $? "$opengl_msg
10419 OpenGL and Direct3D won't be supported.
10420 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10421 esac
10424 CPPFLAGS="$ac_save_CPPFLAGS"
10425 else
10426 X_CFLAGS=""
10427 X_LIBS=""
10428 enable_winex11_drv=${enable_winex11_drv:-no}
10430 if test "x$X_LIBS" = "x"; then :
10431 case "x$with_x" in
10432 xno) ;;
10433 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10434 without X support, which probably isn't what you want. You will need
10435 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10436 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10437 esac
10440 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10442 if test "$ac_cv_header_CL_cl_h" = "yes"
10443 then
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10445 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10446 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 ac_check_lib_save_LIBS=$LIBS
10450 LIBS="-lOpenCL $LIBS"
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10454 /* Override any GCC internal prototype to avoid an error.
10455 Use char because int might match the return type of a GCC
10456 builtin and then its argument prototype would still apply. */
10457 #ifdef __cplusplus
10458 extern "C"
10459 #endif
10460 char clGetPlatformInfo ();
10462 main ()
10464 return clGetPlatformInfo ();
10466 return 0;
10468 _ACEOF
10469 if ac_fn_c_try_link "$LINENO"; then :
10470 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10471 else
10472 ac_cv_lib_OpenCL_clGetPlatformInfo=no
10474 rm -f core conftest.err conftest.$ac_objext \
10475 conftest$ac_exeext conftest.$ac_ext
10476 LIBS=$ac_check_lib_save_LIBS
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
10479 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10480 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10481 OPENCL_LIBS="-lOpenCL"
10486 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10487 case "x$with_opencl" in
10488 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10489 xno) ;;
10490 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10491 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10492 esac
10494 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10497 if test "x$with_xml" != "xno"
10498 then
10499 if ${XML2_CFLAGS:+false} :; then :
10500 if ${PKG_CONFIG+:} false; then :
10501 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10504 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10505 if ${XML2_LIBS:+false} :; then :
10506 if ${PKG_CONFIG+:} false; then :
10507 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10510 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10511 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10512 $as_echo "$as_me:${as_lineno-$LINENO}: libxml-2.0 cflags: $XML2_CFLAGS" >&5
10513 $as_echo "$as_me:${as_lineno-$LINENO}: libxml-2.0 libs: $XML2_LIBS" >&5
10514 ac_save_CPPFLAGS=$CPPFLAGS
10515 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10516 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10517 do :
10518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10519 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10520 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10521 cat >>confdefs.h <<_ACEOF
10522 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10523 _ACEOF
10527 done
10529 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"
10530 then
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10532 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10533 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10534 $as_echo_n "(cached) " >&6
10535 else
10536 ac_check_lib_save_LIBS=$LIBS
10537 LIBS="-lxml2 $XML2_LIBS $LIBS"
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10541 /* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10544 #ifdef __cplusplus
10545 extern "C"
10546 #endif
10547 char xmlParseMemory ();
10549 main ()
10551 return xmlParseMemory ();
10553 return 0;
10555 _ACEOF
10556 if ac_fn_c_try_link "$LINENO"; then :
10557 ac_cv_lib_xml2_xmlParseMemory=yes
10558 else
10559 ac_cv_lib_xml2_xmlParseMemory=no
10561 rm -f core conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
10563 LIBS=$ac_check_lib_save_LIBS
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10566 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10567 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10569 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10571 else
10572 XML2_LIBS=""
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10576 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10577 if ${ac_cv_lib_xml2_xmlReadMemory+:} 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 xmlReadMemory ();
10593 main ()
10595 return xmlReadMemory ();
10597 return 0;
10599 _ACEOF
10600 if ac_fn_c_try_link "$LINENO"; then :
10601 ac_cv_lib_xml2_xmlReadMemory=yes
10602 else
10603 ac_cv_lib_xml2_xmlReadMemory=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_xmlReadMemory" >&5
10610 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10611 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10613 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10618 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10619 if ${ac_cv_lib_xml2_xmlNewDocPI+:} 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 xmlNewDocPI ();
10635 main ()
10637 return xmlNewDocPI ();
10639 return 0;
10641 _ACEOF
10642 if ac_fn_c_try_link "$LINENO"; then :
10643 ac_cv_lib_xml2_xmlNewDocPI=yes
10644 else
10645 ac_cv_lib_xml2_xmlNewDocPI=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_xmlNewDocPI" >&5
10652 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10653 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10655 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10660 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10661 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} 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 xmlSchemaSetParserStructuredErrors ();
10677 main ()
10679 return xmlSchemaSetParserStructuredErrors ();
10681 return 0;
10683 _ACEOF
10684 if ac_fn_c_try_link "$LINENO"; then :
10685 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10686 else
10687 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=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_xmlSchemaSetParserStructuredErrors" >&5
10694 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10695 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10697 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10702 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10703 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} 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 xmlSchemaSetValidStructuredErrors ();
10719 main ()
10721 return xmlSchemaSetValidStructuredErrors ();
10723 return 0;
10725 _ACEOF
10726 if ac_fn_c_try_link "$LINENO"; then :
10727 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
10728 else
10729 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=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_xmlSchemaSetValidStructuredErrors" >&5
10736 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
10737 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
10739 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
10744 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
10745 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
10746 $as_echo_n "(cached) " >&6
10747 else
10748 ac_check_lib_save_LIBS=$LIBS
10749 LIBS="-lxml2 $XML2_LIBS $LIBS"
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h. */
10753 /* Override any GCC internal prototype to avoid an error.
10754 Use char because int might match the return type of a GCC
10755 builtin and then its argument prototype would still apply. */
10756 #ifdef __cplusplus
10757 extern "C"
10758 #endif
10759 char xmlFirstElementChild ();
10761 main ()
10763 return xmlFirstElementChild ();
10765 return 0;
10767 _ACEOF
10768 if ac_fn_c_try_link "$LINENO"; then :
10769 ac_cv_lib_xml2_xmlFirstElementChild=yes
10770 else
10771 ac_cv_lib_xml2_xmlFirstElementChild=no
10773 rm -f core conftest.err conftest.$ac_objext \
10774 conftest$ac_exeext conftest.$ac_ext
10775 LIBS=$ac_check_lib_save_LIBS
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
10778 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
10779 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
10781 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
10785 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
10787 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
10789 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
10793 else
10794 XML2_CFLAGS=""
10795 XML2_LIBS=""
10797 CPPFLAGS=$ac_save_CPPFLAGS
10798 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10799 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10802 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
10803 case "x$with_xml" in
10804 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
10805 xno) ;;
10806 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
10807 This is an error since --with-xml was requested." "$LINENO" 5 ;;
10808 esac
10811 if test "x$with_xslt" != "xno"
10812 then
10813 if ${XSLT_CFLAGS:+false} :; then :
10814 if ${PKG_CONFIG+:} false; then :
10815 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
10818 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
10819 if ${XSLT_LIBS:+false} :; then :
10820 if ${PKG_CONFIG+:} false; then :
10821 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
10824 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
10825 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
10826 $as_echo "$as_me:${as_lineno-$LINENO}: libxslt cflags: $XSLT_CFLAGS" >&5
10827 $as_echo "$as_me:${as_lineno-$LINENO}: libxslt libs: $XSLT_LIBS" >&5
10828 ac_save_CPPFLAGS=$CPPFLAGS
10829 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
10830 for ac_header in libxslt/pattern.h libxslt/transform.h
10831 do :
10832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10833 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
10834 # include <libxslt/pattern.h>
10835 #endif
10837 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10838 cat >>confdefs.h <<_ACEOF
10839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10840 _ACEOF
10844 done
10846 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10847 then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10849 $as_echo_n "checking for -lxslt... " >&6; }
10850 if ${ac_cv_lib_soname_xslt+:} false; then :
10851 $as_echo_n "(cached) " >&6
10852 else
10853 ac_check_soname_save_LIBS=$LIBS
10854 LIBS="-lxslt $XSLT_LIBS $LIBS"
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10858 /* Override any GCC internal prototype to avoid an error.
10859 Use char because int might match the return type of a GCC
10860 builtin and then its argument prototype would still apply. */
10861 #ifdef __cplusplus
10862 extern "C"
10863 #endif
10864 char xsltCompilePattern ();
10866 main ()
10868 return xsltCompilePattern ();
10870 return 0;
10872 _ACEOF
10873 if ac_fn_c_try_link "$LINENO"; then :
10874 case "$LIBEXT" in
10875 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10876 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'` ;;
10877 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10878 if ${ac_cv_lib_soname_xslt:+false} :; then :
10879 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10880 fi ;;
10881 esac
10883 rm -f core conftest.err conftest.$ac_objext \
10884 conftest$ac_exeext conftest.$ac_ext
10885 LIBS=$ac_check_soname_save_LIBS
10887 if ${ac_cv_lib_soname_xslt:+false} :; then :
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10889 $as_echo "not found" >&6; }
10891 else
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10893 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10895 cat >>confdefs.h <<_ACEOF
10896 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10897 _ACEOF
10901 else
10902 XSLT_CFLAGS=""
10904 CPPFLAGS=$ac_save_CPPFLAGS
10905 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10906 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10909 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10910 case "x$with_xslt" in
10911 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10912 xno) ;;
10913 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10914 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10915 esac
10918 if test "x$with_dbus" != "xno"
10919 then
10920 if ${DBUS_CFLAGS:+false} :; then :
10921 if ${PKG_CONFIG+:} false; then :
10922 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10926 if ${DBUS_LIBS:+false} :; then :
10927 if ${PKG_CONFIG+:} false; then :
10928 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10933 $as_echo "$as_me:${as_lineno-$LINENO}: dbus-1 cflags: $DBUS_CFLAGS" >&5
10934 $as_echo "$as_me:${as_lineno-$LINENO}: dbus-1 libs: $DBUS_LIBS" >&5
10935 ac_save_CPPFLAGS=$CPPFLAGS
10936 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10937 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10938 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10940 $as_echo_n "checking for -ldbus-1... " >&6; }
10941 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 ac_check_soname_save_LIBS=$LIBS
10945 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10949 /* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
10952 #ifdef __cplusplus
10953 extern "C"
10954 #endif
10955 char dbus_connection_close ();
10957 main ()
10959 return dbus_connection_close ();
10961 return 0;
10963 _ACEOF
10964 if ac_fn_c_try_link "$LINENO"; then :
10965 case "$LIBEXT" in
10966 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10967 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'` ;;
10968 *) 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'`
10969 if ${ac_cv_lib_soname_dbus_1:+false} :; then :
10970 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10971 fi ;;
10972 esac
10974 rm -f core conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext conftest.$ac_ext
10976 LIBS=$ac_check_soname_save_LIBS
10978 if ${ac_cv_lib_soname_dbus_1:+false} :; then :
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10980 $as_echo "not found" >&6; }
10981 DBUS_CFLAGS=""
10982 else
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10984 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10986 cat >>confdefs.h <<_ACEOF
10987 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10988 _ACEOF
10992 else
10993 DBUS_CFLAGS=""
10997 CPPFLAGS=$ac_save_CPPFLAGS
10998 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10999 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11002 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
11003 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11004 case "x$with_dbus" in
11005 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
11006 xno) ;;
11007 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
11008 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
11009 esac
11012 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
11013 then
11014 if ${HAL_CFLAGS:+false} :; then :
11015 if ${PKG_CONFIG+:} false; then :
11016 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
11020 if ${HAL_LIBS:+false} :; then :
11021 if ${PKG_CONFIG+:} false; then :
11022 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
11026 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
11027 $as_echo "$as_me:${as_lineno-$LINENO}: hal cflags: $HAL_CFLAGS" >&5
11028 $as_echo "$as_me:${as_lineno-$LINENO}: hal libs: $HAL_LIBS" >&5
11029 ac_save_CPPFLAGS=$CPPFLAGS
11030 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
11031 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
11032 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
11034 $as_echo_n "checking for -lhal... " >&6; }
11035 if ${ac_cv_lib_soname_hal+:} false; then :
11036 $as_echo_n "(cached) " >&6
11037 else
11038 ac_check_soname_save_LIBS=$LIBS
11039 LIBS="-lhal $HAL_LIBS $LIBS"
11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11043 /* Override any GCC internal prototype to avoid an error.
11044 Use char because int might match the return type of a GCC
11045 builtin and then its argument prototype would still apply. */
11046 #ifdef __cplusplus
11047 extern "C"
11048 #endif
11049 char libhal_ctx_new ();
11051 main ()
11053 return libhal_ctx_new ();
11055 return 0;
11057 _ACEOF
11058 if ac_fn_c_try_link "$LINENO"; then :
11059 case "$LIBEXT" in
11060 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11061 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'` ;;
11062 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11063 if ${ac_cv_lib_soname_hal:+false} :; then :
11064 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11065 fi ;;
11066 esac
11068 rm -f core conftest.err conftest.$ac_objext \
11069 conftest$ac_exeext conftest.$ac_ext
11070 LIBS=$ac_check_soname_save_LIBS
11072 if ${ac_cv_lib_soname_hal:+false} :; then :
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11074 $as_echo "not found" >&6; }
11075 HAL_CFLAGS=""
11076 else
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
11078 $as_echo "$ac_cv_lib_soname_hal" >&6; }
11080 cat >>confdefs.h <<_ACEOF
11081 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11082 _ACEOF
11086 else
11087 HAL_CFLAGS=""
11091 CPPFLAGS=$ac_save_CPPFLAGS
11092 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11093 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11095 if test "x$ac_cv_lib_soname_hal" = "x" -a \
11096 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11097 case "x$with_hal" in
11098 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
11099 xno) ;;
11100 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
11101 This is an error since --with-hal was requested." "$LINENO" 5 ;;
11102 esac
11106 if test "x$with_gnutls" != "xno"
11107 then
11108 if ${GNUTLS_CFLAGS:+false} :; then :
11109 if ${PKG_CONFIG+:} false; then :
11110 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
11114 if ${GNUTLS_LIBS:+false} :; then :
11115 if ${PKG_CONFIG+:} false; then :
11116 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
11121 $as_echo "$as_me:${as_lineno-$LINENO}: gnutls cflags: $GNUTLS_CFLAGS" >&5
11122 $as_echo "$as_me:${as_lineno-$LINENO}: gnutls libs: $GNUTLS_LIBS" >&5
11123 ac_save_CPPFLAGS=$CPPFLAGS
11124 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
11125 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
11126 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h. */
11129 #include <gnutls/gnutls.h>
11130 #include <gnutls/crypto.h>
11132 main ()
11134 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
11136 return 0;
11138 _ACEOF
11139 if ac_fn_c_try_compile "$LINENO"; then :
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
11141 $as_echo_n "checking for -lgnutls... " >&6; }
11142 if ${ac_cv_lib_soname_gnutls+:} false; then :
11143 $as_echo_n "(cached) " >&6
11144 else
11145 ac_check_soname_save_LIBS=$LIBS
11146 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
11147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11150 /* Override any GCC internal prototype to avoid an error.
11151 Use char because int might match the return type of a GCC
11152 builtin and then its argument prototype would still apply. */
11153 #ifdef __cplusplus
11154 extern "C"
11155 #endif
11156 char gnutls_global_init ();
11158 main ()
11160 return gnutls_global_init ();
11162 return 0;
11164 _ACEOF
11165 if ac_fn_c_try_link "$LINENO"; then :
11166 case "$LIBEXT" in
11167 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11168 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'` ;;
11169 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11170 if ${ac_cv_lib_soname_gnutls:+false} :; then :
11171 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11172 fi ;;
11173 esac
11175 rm -f core conftest.err conftest.$ac_objext \
11176 conftest$ac_exeext conftest.$ac_ext
11177 LIBS=$ac_check_soname_save_LIBS
11179 if ${ac_cv_lib_soname_gnutls:+false} :; then :
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11181 $as_echo "not found" >&6; }
11182 GNUTLS_CFLAGS=""
11183 else
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
11185 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
11187 cat >>confdefs.h <<_ACEOF
11188 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
11189 _ACEOF
11194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11195 else
11196 GNUTLS_CFLAGS=""
11200 CPPFLAGS=$ac_save_CPPFLAGS
11201 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11202 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11205 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11206 case "x$with_gnutls" in
11207 x) as_fn_append wine_warnings "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
11208 xno) ;;
11209 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
11210 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
11211 esac
11214 CURSES_LIBS=""
11215 if test "$ac_cv_header_ncurses_h" = "yes"
11216 then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
11218 $as_echo_n "checking for -lncurses... " >&6; }
11219 if ${ac_cv_lib_soname_ncurses+:} false; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 ac_check_soname_save_LIBS=$LIBS
11223 LIBS="-lncurses $LIBS"
11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11227 /* Override any GCC internal prototype to avoid an error.
11228 Use char because int might match the return type of a GCC
11229 builtin and then its argument prototype would still apply. */
11230 #ifdef __cplusplus
11231 extern "C"
11232 #endif
11233 char waddch ();
11235 main ()
11237 return waddch ();
11239 return 0;
11241 _ACEOF
11242 if ac_fn_c_try_link "$LINENO"; then :
11243 case "$LIBEXT" in
11244 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11245 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'` ;;
11246 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11247 if ${ac_cv_lib_soname_ncurses:+false} :; then :
11248 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11249 fi ;;
11250 esac
11252 rm -f core conftest.err conftest.$ac_objext \
11253 conftest$ac_exeext conftest.$ac_ext
11254 LIBS=$ac_check_soname_save_LIBS
11256 if ${ac_cv_lib_soname_ncurses:+false} :; then :
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11258 $as_echo "not found" >&6; }
11260 else
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
11262 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
11264 cat >>confdefs.h <<_ACEOF
11265 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11266 _ACEOF
11268 CURSES_LIBS="-lncurses"
11270 elif test "$ac_cv_header_curses_h" = "yes"
11271 then
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
11273 $as_echo_n "checking for -lcurses... " >&6; }
11274 if ${ac_cv_lib_soname_curses+:} false; then :
11275 $as_echo_n "(cached) " >&6
11276 else
11277 ac_check_soname_save_LIBS=$LIBS
11278 LIBS="-lcurses $LIBS"
11279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11280 /* end confdefs.h. */
11282 /* Override any GCC internal prototype to avoid an error.
11283 Use char because int might match the return type of a GCC
11284 builtin and then its argument prototype would still apply. */
11285 #ifdef __cplusplus
11286 extern "C"
11287 #endif
11288 char waddch ();
11290 main ()
11292 return waddch ();
11294 return 0;
11296 _ACEOF
11297 if ac_fn_c_try_link "$LINENO"; then :
11298 case "$LIBEXT" in
11299 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11300 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'` ;;
11301 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11302 if ${ac_cv_lib_soname_curses:+false} :; then :
11303 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11304 fi ;;
11305 esac
11307 rm -f core conftest.err conftest.$ac_objext \
11308 conftest$ac_exeext conftest.$ac_ext
11309 LIBS=$ac_check_soname_save_LIBS
11311 if ${ac_cv_lib_soname_curses:+false} :; then :
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11313 $as_echo "not found" >&6; }
11315 else
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
11317 $as_echo "$ac_cv_lib_soname_curses" >&6; }
11319 cat >>confdefs.h <<_ACEOF
11320 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11321 _ACEOF
11323 CURSES_LIBS="-lcurses"
11326 ac_save_LIBS="$LIBS"
11327 LIBS="$LIBS $CURSES_LIBS"
11328 for ac_func in mousemask
11329 do :
11330 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
11331 if test "x$ac_cv_func_mousemask" = xyes; then :
11332 cat >>confdefs.h <<_ACEOF
11333 #define HAVE_MOUSEMASK 1
11334 _ACEOF
11337 done
11339 LIBS="$ac_save_LIBS"
11340 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
11341 case "x$with_curses" in
11342 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
11343 xno) ;;
11344 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
11345 This is an error since --with-curses was requested." "$LINENO" 5 ;;
11346 esac
11349 if test "x$with_sane" != "xno"
11350 then
11351 if ${SANE_CFLAGS:+false} :; then :
11352 if ${PKG_CONFIG+:} false; then :
11353 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
11356 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
11357 if ${SANE_LIBS:+false} :; then :
11358 if ${PKG_CONFIG+:} false; then :
11359 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
11362 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
11364 $as_echo "$as_me:${as_lineno-$LINENO}: libsane cflags: $SANE_CFLAGS" >&5
11365 $as_echo "$as_me:${as_lineno-$LINENO}: libsane libs: $SANE_LIBS" >&5
11366 ac_save_CPPFLAGS=$CPPFLAGS
11367 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
11368 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
11369 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
11371 $as_echo_n "checking for -lsane... " >&6; }
11372 if ${ac_cv_lib_soname_sane+:} false; then :
11373 $as_echo_n "(cached) " >&6
11374 else
11375 ac_check_soname_save_LIBS=$LIBS
11376 LIBS="-lsane $SANE_LIBS $LIBS"
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11380 /* Override any GCC internal prototype to avoid an error.
11381 Use char because int might match the return type of a GCC
11382 builtin and then its argument prototype would still apply. */
11383 #ifdef __cplusplus
11384 extern "C"
11385 #endif
11386 char sane_init ();
11388 main ()
11390 return sane_init ();
11392 return 0;
11394 _ACEOF
11395 if ac_fn_c_try_link "$LINENO"; then :
11396 case "$LIBEXT" in
11397 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11398 dylib) ac_cv_lib_soname_sane=`otool -L conftest$ac_exeext | grep "libsane\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libsane\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11399 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11400 if ${ac_cv_lib_soname_sane:+false} :; then :
11401 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11402 fi ;;
11403 esac
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_soname_save_LIBS
11409 if ${ac_cv_lib_soname_sane:+false} :; then :
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11411 $as_echo "not found" >&6; }
11412 SANE_CFLAGS=""
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11415 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11417 cat >>confdefs.h <<_ACEOF
11418 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11419 _ACEOF
11423 else
11424 SANE_CFLAGS=""
11428 CPPFLAGS=$ac_save_CPPFLAGS
11429 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11430 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11433 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11434 case "x$with_sane" in
11435 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11436 xno) ;;
11437 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11438 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11439 esac
11442 if test "x$with_v4l" != "xno"
11443 then
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11445 $as_echo_n "checking for -lv4l1... " >&6; }
11446 if ${ac_cv_lib_soname_v4l1+:} false; then :
11447 $as_echo_n "(cached) " >&6
11448 else
11449 ac_check_soname_save_LIBS=$LIBS
11450 LIBS="-lv4l1 $LIBS"
11451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h. */
11454 /* Override any GCC internal prototype to avoid an error.
11455 Use char because int might match the return type of a GCC
11456 builtin and then its argument prototype would still apply. */
11457 #ifdef __cplusplus
11458 extern "C"
11459 #endif
11460 char v4l1_open ();
11462 main ()
11464 return v4l1_open ();
11466 return 0;
11468 _ACEOF
11469 if ac_fn_c_try_link "$LINENO"; then :
11470 case "$LIBEXT" in
11471 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11472 dylib) ac_cv_lib_soname_v4l1=`otool -L conftest$ac_exeext | grep "libv4l1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libv4l1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11473 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11474 if ${ac_cv_lib_soname_v4l1:+false} :; then :
11475 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11476 fi ;;
11477 esac
11479 rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481 LIBS=$ac_check_soname_save_LIBS
11483 if ${ac_cv_lib_soname_v4l1:+false} :; then :
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11485 $as_echo "not found" >&6; }
11487 else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11489 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11491 cat >>confdefs.h <<_ACEOF
11492 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11493 _ACEOF
11498 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11499 case "x$with_v4l" in
11500 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11501 xno) ;;
11502 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11503 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11504 esac
11507 if test "x$with_gphoto" != "xno"
11508 then
11509 if ${GPHOTO2_CFLAGS:+false} :; then :
11510 if ${PKG_CONFIG+:} false; then :
11511 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11514 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11515 if ${GPHOTO2_LIBS:+false} :; then :
11516 if ${PKG_CONFIG+:} false; then :
11517 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11520 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11521 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11522 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2 cflags: $GPHOTO2_CFLAGS" >&5
11523 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2 libs: $GPHOTO2_LIBS" >&5
11524 ac_save_CPPFLAGS=$CPPFLAGS
11525 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11526 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11527 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11529 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11530 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 ac_check_lib_save_LIBS=$LIBS
11534 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11538 /* Override any GCC internal prototype to avoid an error.
11539 Use char because int might match the return type of a GCC
11540 builtin and then its argument prototype would still apply. */
11541 #ifdef __cplusplus
11542 extern "C"
11543 #endif
11544 char gp_camera_new ();
11546 main ()
11548 return gp_camera_new ();
11550 return 0;
11552 _ACEOF
11553 if ac_fn_c_try_link "$LINENO"; then :
11554 ac_cv_lib_gphoto2_gp_camera_new=yes
11555 else
11556 ac_cv_lib_gphoto2_gp_camera_new=no
11558 rm -f core conftest.err conftest.$ac_objext \
11559 conftest$ac_exeext conftest.$ac_ext
11560 LIBS=$ac_check_lib_save_LIBS
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11563 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11564 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11566 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11568 else
11569 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11572 else
11573 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11577 CPPFLAGS=$ac_save_CPPFLAGS
11578 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11579 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11581 if ${GPHOTO2_PORT_CFLAGS:+false} :; then :
11582 if ${PKG_CONFIG+:} false; then :
11583 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11586 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11587 if ${GPHOTO2_PORT_LIBS:+false} :; then :
11588 if ${PKG_CONFIG+:} false; then :
11589 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11592 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11593 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11594 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2_port cflags: $GPHOTO2_PORT_CFLAGS" >&5
11595 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2_port libs: $GPHOTO2_PORT_LIBS" >&5
11596 ac_save_CPPFLAGS=$CPPFLAGS
11597 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11598 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11599 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11601 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11602 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11603 $as_echo_n "(cached) " >&6
11604 else
11605 ac_check_lib_save_LIBS=$LIBS
11606 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11610 /* Override any GCC internal prototype to avoid an error.
11611 Use char because int might match the return type of a GCC
11612 builtin and then its argument prototype would still apply. */
11613 #ifdef __cplusplus
11614 extern "C"
11615 #endif
11616 char gp_port_info_list_new ();
11618 main ()
11620 return gp_port_info_list_new ();
11622 return 0;
11624 _ACEOF
11625 if ac_fn_c_try_link "$LINENO"; then :
11626 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11627 else
11628 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11630 rm -f core conftest.err conftest.$ac_objext \
11631 conftest$ac_exeext conftest.$ac_ext
11632 LIBS=$ac_check_lib_save_LIBS
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11635 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11636 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11638 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11640 else
11641 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11644 else
11645 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11649 CPPFLAGS=$ac_save_CPPFLAGS
11650 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11651 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11654 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11655 case "x$with_gphoto" in
11656 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11657 xno) ;;
11658 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11659 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11660 esac
11662 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11663 case "x$with_gphoto" in
11664 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11665 xno) ;;
11666 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11667 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11668 esac
11672 if test "$ac_cv_header_resolv_h" = "yes"
11673 then
11674 ac_save_LIBS="$LIBS"
11675 for lib in '' -lresolv
11677 LIBS="$lib $ac_save_LIBS"
11678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11679 /* end confdefs.h. */
11680 #ifdef HAVE_NETINET_IN_H
11681 #include <netinet/in.h>
11682 #endif
11683 #include <resolv.h>
11685 main ()
11687 res_query("foo",ns_c_in,0,0,0);
11689 return 0;
11691 _ACEOF
11692 if ac_fn_c_try_link "$LINENO"; then :
11694 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11696 RESOLV_LIBS="$lib"
11699 rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
11701 if test "${RESOLV_LIBS+set}" = set; then
11702 break
11704 done
11705 LIBS="$ac_save_LIBS"
11708 if test "x$with_lcms2" != "xno"
11709 then
11710 if ${LCMS2_CFLAGS:+false} :; then :
11711 if ${PKG_CONFIG+:} false; then :
11712 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
11716 if ${LCMS2_LIBS:+false} :; then :
11717 if ${PKG_CONFIG+:} false; then :
11718 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
11722 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
11723 $as_echo "$as_me:${as_lineno-$LINENO}: lcms2 cflags: $LCMS2_CFLAGS" >&5
11724 $as_echo "$as_me:${as_lineno-$LINENO}: lcms2 libs: $LCMS2_LIBS" >&5
11725 ac_save_CPPFLAGS=$CPPFLAGS
11726 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
11727 for ac_header in lcms2.h
11728 do :
11729 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
11730 if test "x$ac_cv_header_lcms2_h" = xyes; then :
11731 cat >>confdefs.h <<_ACEOF
11732 #define HAVE_LCMS2_H 1
11733 _ACEOF
11737 done
11739 if test "$ac_cv_header_lcms2_h" = "yes"
11740 then
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
11742 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
11743 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
11744 $as_echo_n "(cached) " >&6
11745 else
11746 ac_check_lib_save_LIBS=$LIBS
11747 LIBS="-llcms2 $LIBS"
11748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11751 /* Override any GCC internal prototype to avoid an error.
11752 Use char because int might match the return type of a GCC
11753 builtin and then its argument prototype would still apply. */
11754 #ifdef __cplusplus
11755 extern "C"
11756 #endif
11757 char cmsOpenProfileFromFile ();
11759 main ()
11761 return cmsOpenProfileFromFile ();
11763 return 0;
11765 _ACEOF
11766 if ac_fn_c_try_link "$LINENO"; then :
11767 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
11768 else
11769 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
11771 rm -f core conftest.err conftest.$ac_objext \
11772 conftest$ac_exeext conftest.$ac_ext
11773 LIBS=$ac_check_lib_save_LIBS
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
11776 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
11777 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
11779 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
11781 else
11782 LCMS2_LIBS=""
11785 else
11786 LCMS2_CFLAGS=""
11787 LCMS2_LIBS=""
11789 CPPFLAGS=$ac_save_CPPFLAGS
11790 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11791 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11794 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
11795 case "x$with_cms" in
11796 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
11797 xno) ;;
11798 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
11799 This is an error since --with-cms was requested." "$LINENO" 5 ;;
11800 esac
11803 if test "x$with_freetype" != "xno"
11804 then
11805 if ${FREETYPE_CFLAGS:+false} :; then :
11806 if ${PKG_CONFIG+:} false; then :
11807 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
11810 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
11811 if ${FREETYPE_LIBS:+false} :; then :
11812 if ${PKG_CONFIG+:} false; then :
11813 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
11816 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
11817 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
11818 $as_echo "$as_me:${as_lineno-$LINENO}: freetype2 cflags: $FREETYPE_CFLAGS" >&5
11819 $as_echo "$as_me:${as_lineno-$LINENO}: freetype2 libs: $FREETYPE_LIBS" >&5
11820 ac_save_CPPFLAGS=$CPPFLAGS
11821 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
11822 for ac_header in ft2build.h
11823 do :
11824 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
11825 if test "x$ac_cv_header_ft2build_h" = xyes; then :
11826 cat >>confdefs.h <<_ACEOF
11827 #define HAVE_FT2BUILD_H 1
11828 _ACEOF
11832 done
11834 if test "$ac_cv_header_ft2build_h" = "yes"
11835 then
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
11837 $as_echo_n "checking for -lfreetype... " >&6; }
11838 if ${ac_cv_lib_soname_freetype+:} false; then :
11839 $as_echo_n "(cached) " >&6
11840 else
11841 ac_check_soname_save_LIBS=$LIBS
11842 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11846 /* Override any GCC internal prototype to avoid an error.
11847 Use char because int might match the return type of a GCC
11848 builtin and then its argument prototype would still apply. */
11849 #ifdef __cplusplus
11850 extern "C"
11851 #endif
11852 char FT_Init_FreeType ();
11854 main ()
11856 return FT_Init_FreeType ();
11858 return 0;
11860 _ACEOF
11861 if ac_fn_c_try_link "$LINENO"; then :
11862 case "$LIBEXT" in
11863 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11864 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'` ;;
11865 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11866 if ${ac_cv_lib_soname_freetype:+false} :; then :
11867 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11868 fi ;;
11869 esac
11871 rm -f core conftest.err conftest.$ac_objext \
11872 conftest$ac_exeext conftest.$ac_ext
11873 LIBS=$ac_check_soname_save_LIBS
11875 if ${ac_cv_lib_soname_freetype:+false} :; then :
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11877 $as_echo "not found" >&6; }
11878 FREETYPE_LIBS=""
11879 else
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
11881 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
11883 cat >>confdefs.h <<_ACEOF
11884 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11885 _ACEOF
11888 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11890 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <ft2build.h>
11891 #include FT_MODULE_H
11893 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
11895 cat >>confdefs.h <<_ACEOF
11896 #define HAVE_FT_TRUETYPEENGINETYPE 1
11897 _ACEOF
11903 else
11904 FREETYPE_CFLAGS=""
11905 FREETYPE_LIBS=""
11907 CPPFLAGS=$ac_save_CPPFLAGS
11908 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11909 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11912 if test "x$ac_cv_lib_soname_freetype" = x; then :
11913 case "x$with_freetype" in
11914 xno) ;;
11915 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
11916 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
11917 esac
11919 test "x$ac_cv_lib_soname_freetype" = x && enable_fonts=${enable_fonts:-no}
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
11922 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
11923 if ${ac_cv_c_ppdev+:} false; then :
11924 $as_echo_n "(cached) " >&6
11925 else
11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11927 /* end confdefs.h. */
11928 #ifdef HAVE_SYS_IOCTL_H
11929 # include <sys/ioctl.h>
11930 #endif
11931 #include <linux/ppdev.h>
11933 main ()
11935 ioctl (1,PPCLAIM,0)
11937 return 0;
11939 _ACEOF
11940 if ac_fn_c_try_compile "$LINENO"; then :
11941 ac_cv_c_ppdev="yes"
11942 else
11943 ac_cv_c_ppdev="no"
11945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11948 $as_echo "$ac_cv_c_ppdev" >&6; }
11949 if test "$ac_cv_c_ppdev" = "yes"
11950 then
11952 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11956 ac_wine_check_funcs_save_LIBS="$LIBS"
11957 LIBS="$LIBS $PTHREAD_LIBS"
11958 for ac_func in \
11959 pthread_attr_get_np \
11960 pthread_getattr_np \
11961 pthread_getthreadid_np \
11962 pthread_get_stackaddr_np \
11963 pthread_get_stacksize_np
11964 do :
11965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11966 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11967 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11968 cat >>confdefs.h <<_ACEOF
11969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11970 _ACEOF
11973 done
11975 LIBS="$ac_wine_check_funcs_save_LIBS"
11977 if test "$ac_cv_header_zlib_h" = "yes"
11978 then
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11980 $as_echo_n "checking for inflate in -lz... " >&6; }
11981 if ${ac_cv_lib_z_inflate+:} false; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 ac_check_lib_save_LIBS=$LIBS
11985 LIBS="-lz $LIBS"
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987 /* end confdefs.h. */
11989 /* Override any GCC internal prototype to avoid an error.
11990 Use char because int might match the return type of a GCC
11991 builtin and then its argument prototype would still apply. */
11992 #ifdef __cplusplus
11993 extern "C"
11994 #endif
11995 char inflate ();
11997 main ()
11999 return inflate ();
12001 return 0;
12003 _ACEOF
12004 if ac_fn_c_try_link "$LINENO"; then :
12005 ac_cv_lib_z_inflate=yes
12006 else
12007 ac_cv_lib_z_inflate=no
12009 rm -f core conftest.err conftest.$ac_objext \
12010 conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12014 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12015 if test "x$ac_cv_lib_z_inflate" = xyes; then :
12017 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12019 Z_LIBS="-lz"
12024 if test "x$Z_LIBS" = "x"; then :
12025 case "x$with_zlib" in
12026 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
12027 xno) ;;
12028 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
12029 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
12030 esac
12033 if test "x$enable_tools" != xno
12034 then
12035 if test "$ac_cv_header_gettext_po_h" = "yes"
12036 then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
12038 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
12039 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
12040 $as_echo_n "(cached) " >&6
12041 else
12042 ac_check_lib_save_LIBS=$LIBS
12043 LIBS="-lgettextpo $LIBS"
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12047 /* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12050 #ifdef __cplusplus
12051 extern "C"
12052 #endif
12053 char po_message_msgctxt ();
12055 main ()
12057 return po_message_msgctxt ();
12059 return 0;
12061 _ACEOF
12062 if ac_fn_c_try_link "$LINENO"; then :
12063 ac_cv_lib_gettextpo_po_message_msgctxt=yes
12064 else
12065 ac_cv_lib_gettextpo_po_message_msgctxt=no
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12069 LIBS=$ac_check_lib_save_LIBS
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
12072 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
12073 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
12075 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
12077 GETTEXTPO_LIBS="-lgettextpo"
12082 test "x$with_gettextpo" != xyes || if test "x$GETTEXTPO_LIBS" = "x"; then :
12083 case "x$with_gettextpo" in
12084 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
12085 xno) ;;
12086 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
12087 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
12088 esac
12092 if test "x$with_gstreamer" != "xno"
12093 then
12094 if ${GSTREAMER_CFLAGS:+false} :; then :
12095 if ${PKG_CONFIG+:} false; then :
12096 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
12100 if ${GSTREAMER_LIBS:+false} :; then :
12101 if ${PKG_CONFIG+:} false; then :
12102 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
12107 $as_echo "$as_me:${as_lineno-$LINENO}: gstreamer-app-0.10 cflags: $GSTREAMER_CFLAGS" >&5
12108 $as_echo "$as_me:${as_lineno-$LINENO}: gstreamer-app-0.10 libs: $GSTREAMER_LIBS" >&5
12109 ac_save_CPPFLAGS=$CPPFLAGS
12110 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
12111 ac_gst_incl=""
12112 for i in $GSTREAMER_CFLAGS
12114 case "$i" in
12115 -I*) ac_gst_incl="$ac_gst_incl $i";;
12116 esac
12117 done
12118 GSTREAMER_CFLAGS=$ac_gst_incl
12119 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
12120 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
12121 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
12122 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
12123 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
12125 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12128 #include <gst/app/gstappsink.h>
12130 main ()
12132 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
12134 return 0;
12136 _ACEOF
12137 if ac_fn_c_try_compile "$LINENO"; then :
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12139 $as_echo "yes" >&6; }
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
12141 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
12142 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
12143 $as_echo_n "(cached) " >&6
12144 else
12145 ac_check_lib_save_LIBS=$LIBS
12146 LIBS="-lgstreamer-0.10 $LIBS"
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12150 /* Override any GCC internal prototype to avoid an error.
12151 Use char because int might match the return type of a GCC
12152 builtin and then its argument prototype would still apply. */
12153 #ifdef __cplusplus
12154 extern "C"
12155 #endif
12156 char gst_pad_get_caps_reffed ();
12158 main ()
12160 return gst_pad_get_caps_reffed ();
12162 return 0;
12164 _ACEOF
12165 if ac_fn_c_try_link "$LINENO"; then :
12166 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
12167 else
12168 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
12170 rm -f core conftest.err conftest.$ac_objext \
12171 conftest$ac_exeext conftest.$ac_ext
12172 LIBS=$ac_check_lib_save_LIBS
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
12175 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
12176 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
12178 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
12179 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 ac_check_lib_save_LIBS=$LIBS
12183 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12187 /* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12190 #ifdef __cplusplus
12191 extern "C"
12192 #endif
12193 char gst_app_buffer_new ();
12195 main ()
12197 return gst_app_buffer_new ();
12199 return 0;
12201 _ACEOF
12202 if ac_fn_c_try_link "$LINENO"; then :
12203 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
12204 else
12205 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
12207 rm -f core conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
12209 LIBS=$ac_check_lib_save_LIBS
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
12212 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
12213 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
12219 else
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221 $as_echo "no" >&6; }
12223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12227 else
12228 GSTREAMER_CFLAGS=""
12232 CPPFLAGS=$ac_save_CPPFLAGS
12233 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12234 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12237 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
12238 case "x$with_gstreamer" in
12239 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
12240 xno) ;;
12241 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
12242 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
12243 esac
12245 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
12247 ALSA_LIBS=""
12249 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12250 then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
12252 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
12253 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 ac_check_lib_save_LIBS=$LIBS
12257 LIBS="-lasound $LIBS"
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12261 /* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12264 #ifdef __cplusplus
12265 extern "C"
12266 #endif
12267 char snd_pcm_hw_params_get_access_mask ();
12269 main ()
12271 return snd_pcm_hw_params_get_access_mask ();
12273 return 0;
12275 _ACEOF
12276 if ac_fn_c_try_link "$LINENO"; then :
12277 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
12278 else
12279 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
12281 rm -f core conftest.err conftest.$ac_objext \
12282 conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_check_lib_save_LIBS
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
12286 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
12287 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
12288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289 /* end confdefs.h. */
12290 #ifdef HAVE_ALSA_ASOUNDLIB_H
12291 #include <alsa/asoundlib.h>
12292 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12293 #include <sys/asoundlib.h>
12294 #endif
12296 main ()
12298 snd_pcm_hw_params_get_access_mask(NULL, NULL)
12300 return 0;
12302 _ACEOF
12303 if ac_fn_c_try_compile "$LINENO"; then :
12304 ALSA_LIBS="-lasound"
12306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12311 if test "x$with_oss" != xno
12312 then
12313 ac_save_CPPFLAGS="$CPPFLAGS"
12314 if test -f /etc/oss.conf
12315 then
12316 . /etc/oss.conf
12318 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
12319 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
12320 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12321 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12322 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
12324 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
12326 cat >>confdefs.h <<_ACEOF
12327 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
12328 _ACEOF
12330 OSS4_CFLAGS="$ac_oss_incl"
12337 CPPFLAGS="$ac_save_CPPFLAGS"
12338 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
12339 then
12340 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
12344 if test "x$with_capi" != "xno"
12345 then
12346 if ${CAPI20_CFLAGS:+false} :; then :
12347 if ${PKG_CONFIG+:} false; then :
12348 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
12352 if ${CAPI20_LIBS:+false} :; then :
12353 if ${PKG_CONFIG+:} false; then :
12354 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
12359 $as_echo "$as_me:${as_lineno-$LINENO}: capi20 cflags: $CAPI20_CFLAGS" >&5
12360 $as_echo "$as_me:${as_lineno-$LINENO}: capi20 libs: $CAPI20_LIBS" >&5
12361 ac_save_CPPFLAGS=$CPPFLAGS
12362 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
12363 for ac_header in capi20.h linux/capi.h
12364 do :
12365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12366 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
12368 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12369 cat >>confdefs.h <<_ACEOF
12370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12371 _ACEOF
12375 done
12377 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12378 then
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12380 $as_echo_n "checking for -lcapi20... " >&6; }
12381 if ${ac_cv_lib_soname_capi20+:} false; then :
12382 $as_echo_n "(cached) " >&6
12383 else
12384 ac_check_soname_save_LIBS=$LIBS
12385 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12389 /* Override any GCC internal prototype to avoid an error.
12390 Use char because int might match the return type of a GCC
12391 builtin and then its argument prototype would still apply. */
12392 #ifdef __cplusplus
12393 extern "C"
12394 #endif
12395 char capi20_register ();
12397 main ()
12399 return capi20_register ();
12401 return 0;
12403 _ACEOF
12404 if ac_fn_c_try_link "$LINENO"; then :
12405 case "$LIBEXT" in
12406 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12407 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'` ;;
12408 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12409 if ${ac_cv_lib_soname_capi20:+false} :; then :
12410 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12411 fi ;;
12412 esac
12414 rm -f core conftest.err conftest.$ac_objext \
12415 conftest$ac_exeext conftest.$ac_ext
12416 LIBS=$ac_check_soname_save_LIBS
12418 if ${ac_cv_lib_soname_capi20:+false} :; then :
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12420 $as_echo "not found" >&6; }
12422 else
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12424 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12426 cat >>confdefs.h <<_ACEOF
12427 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12428 _ACEOF
12433 CPPFLAGS=$ac_save_CPPFLAGS
12434 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12435 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12438 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12439 case "x$with_capi" in
12440 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12441 xno) ;;
12442 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12443 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12444 esac
12447 CUPS_CFLAGS=""
12449 if test "x$with_cups" != "xno"
12450 then
12451 ac_save_CPPFLAGS="$CPPFLAGS"
12452 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12453 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12454 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12455 for ac_header in cups/cups.h
12456 do :
12457 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12458 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12459 cat >>confdefs.h <<_ACEOF
12460 #define HAVE_CUPS_CUPS_H 1
12461 _ACEOF
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12463 $as_echo_n "checking for -lcups... " >&6; }
12464 if ${ac_cv_lib_soname_cups+:} false; then :
12465 $as_echo_n "(cached) " >&6
12466 else
12467 ac_check_soname_save_LIBS=$LIBS
12468 LIBS="-lcups $ac_cups_libs $LIBS"
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12475 #ifdef __cplusplus
12476 extern "C"
12477 #endif
12478 char cupsGetDefault ();
12480 main ()
12482 return cupsGetDefault ();
12484 return 0;
12486 _ACEOF
12487 if ac_fn_c_try_link "$LINENO"; then :
12488 case "$LIBEXT" in
12489 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12490 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'` ;;
12491 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12492 if ${ac_cv_lib_soname_cups:+false} :; then :
12493 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12494 fi ;;
12495 esac
12497 rm -f core conftest.err conftest.$ac_objext \
12498 conftest$ac_exeext conftest.$ac_ext
12499 LIBS=$ac_check_soname_save_LIBS
12501 if ${ac_cv_lib_soname_cups:+false} :; then :
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12503 $as_echo "not found" >&6; }
12505 else
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12507 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12509 cat >>confdefs.h <<_ACEOF
12510 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12511 _ACEOF
12513 CUPS_CFLAGS="$ac_cups_cflags"
12517 done
12519 CPPFLAGS="$ac_save_CPPFLAGS"
12521 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12522 case "x$with_cups" in
12523 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12524 xno) ;;
12525 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12526 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12527 esac
12530 if test "x$with_fontconfig" != "xno"
12531 then
12532 if ${FONTCONFIG_CFLAGS:+false} :; then :
12533 if ${PKG_CONFIG+:} false; then :
12534 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags fontconfig 2>/dev/null`
12537 test "$cross_compiling" = yes || FONTCONFIG_CFLAGS=${FONTCONFIG_CFLAGS:-$X_CFLAGS}
12538 if ${FONTCONFIG_LIBS:+false} :; then :
12539 if ${PKG_CONFIG+:} false; then :
12540 FONTCONFIG_LIBS=`$PKG_CONFIG --libs fontconfig 2>/dev/null`
12543 test "$cross_compiling" = yes || FONTCONFIG_LIBS=${FONTCONFIG_LIBS:-$X_LIBS}
12545 $as_echo "$as_me:${as_lineno-$LINENO}: fontconfig cflags: $FONTCONFIG_CFLAGS" >&5
12546 $as_echo "$as_me:${as_lineno-$LINENO}: fontconfig libs: $FONTCONFIG_LIBS" >&5
12547 ac_save_CPPFLAGS=$CPPFLAGS
12548 CPPFLAGS="$CPPFLAGS $FONTCONFIG_CFLAGS"
12549 for ac_header in fontconfig/fontconfig.h
12550 do :
12551 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12552 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12553 cat >>confdefs.h <<_ACEOF
12554 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12555 _ACEOF
12559 done
12561 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12562 then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12564 $as_echo_n "checking for -lfontconfig... " >&6; }
12565 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12566 $as_echo_n "(cached) " >&6
12567 else
12568 ac_check_soname_save_LIBS=$LIBS
12569 LIBS="-lfontconfig $FONTCONFIG_LIBS $LIBS"
12570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h. */
12573 /* Override any GCC internal prototype to avoid an error.
12574 Use char because int might match the return type of a GCC
12575 builtin and then its argument prototype would still apply. */
12576 #ifdef __cplusplus
12577 extern "C"
12578 #endif
12579 char FcInit ();
12581 main ()
12583 return FcInit ();
12585 return 0;
12587 _ACEOF
12588 if ac_fn_c_try_link "$LINENO"; then :
12589 case "$LIBEXT" in
12590 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12591 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'` ;;
12592 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12593 if ${ac_cv_lib_soname_fontconfig:+false} :; then :
12594 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12595 fi ;;
12596 esac
12598 rm -f core conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12600 LIBS=$ac_check_soname_save_LIBS
12602 if ${ac_cv_lib_soname_fontconfig:+false} :; then :
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12604 $as_echo "not found" >&6; }
12605 FONTCONFIG_CFLAGS=""
12606 else
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12608 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12610 cat >>confdefs.h <<_ACEOF
12611 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12612 _ACEOF
12616 else
12617 FONTCONFIG_CFLAGS=""
12619 CPPFLAGS=$ac_save_CPPFLAGS
12620 test -z "$FONTCONFIG_CFLAGS" || FONTCONFIG_CFLAGS=`echo " $FONTCONFIG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12621 test -z "$FONTCONFIG_LIBS" || FONTCONFIG_LIBS=`echo " $FONTCONFIG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12624 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12625 case "x$with_fontconfig" in
12626 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12627 xno) ;;
12628 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12629 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12630 esac
12633 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12634 then
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12636 $as_echo_n "checking for -lgsm... " >&6; }
12637 if ${ac_cv_lib_soname_gsm+:} false; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 ac_check_soname_save_LIBS=$LIBS
12641 LIBS="-lgsm $LIBS"
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12645 /* Override any GCC internal prototype to avoid an error.
12646 Use char because int might match the return type of a GCC
12647 builtin and then its argument prototype would still apply. */
12648 #ifdef __cplusplus
12649 extern "C"
12650 #endif
12651 char gsm_create ();
12653 main ()
12655 return gsm_create ();
12657 return 0;
12659 _ACEOF
12660 if ac_fn_c_try_link "$LINENO"; then :
12661 case "$LIBEXT" in
12662 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12663 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'` ;;
12664 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12665 if ${ac_cv_lib_soname_gsm:+false} :; then :
12666 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12667 fi ;;
12668 esac
12670 rm -f core conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12672 LIBS=$ac_check_soname_save_LIBS
12674 if ${ac_cv_lib_soname_gsm:+false} :; then :
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12676 $as_echo "not found" >&6; }
12678 else
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12680 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12682 cat >>confdefs.h <<_ACEOF
12683 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12684 _ACEOF
12689 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12690 case "x$with_gsm" in
12691 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12692 xno) ;;
12693 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12694 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12695 esac
12698 if test "x$with_jpeg" != "xno"
12699 then
12700 if ${JPEG_CFLAGS:+false} :; then :
12701 if ${PKG_CONFIG+:} false; then :
12702 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
12706 if ${JPEG_LIBS:+false} :; then :
12707 if ${PKG_CONFIG+:} false; then :
12708 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
12713 $as_echo "$as_me:${as_lineno-$LINENO}: libjpeg cflags: $JPEG_CFLAGS" >&5
12714 $as_echo "$as_me:${as_lineno-$LINENO}: libjpeg libs: $JPEG_LIBS" >&5
12715 ac_save_CPPFLAGS=$CPPFLAGS
12716 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
12717 for ac_header in jpeglib.h
12718 do :
12719 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12720 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12721 cat >>confdefs.h <<_ACEOF
12722 #define HAVE_JPEGLIB_H 1
12723 _ACEOF
12727 done
12729 if test "$ac_cv_header_jpeglib_h" = "yes"
12730 then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
12732 $as_echo_n "checking for -ljpeg... " >&6; }
12733 if ${ac_cv_lib_soname_jpeg+:} false; then :
12734 $as_echo_n "(cached) " >&6
12735 else
12736 ac_check_soname_save_LIBS=$LIBS
12737 LIBS="-ljpeg $JPEG_LIBS $LIBS"
12738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h. */
12741 /* Override any GCC internal prototype to avoid an error.
12742 Use char because int might match the return type of a GCC
12743 builtin and then its argument prototype would still apply. */
12744 #ifdef __cplusplus
12745 extern "C"
12746 #endif
12747 char jpeg_start_decompress ();
12749 main ()
12751 return jpeg_start_decompress ();
12753 return 0;
12755 _ACEOF
12756 if ac_fn_c_try_link "$LINENO"; then :
12757 case "$LIBEXT" in
12758 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12759 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'` ;;
12760 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12761 if ${ac_cv_lib_soname_jpeg:+false} :; then :
12762 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12763 fi ;;
12764 esac
12766 rm -f core conftest.err conftest.$ac_objext \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LIBS=$ac_check_soname_save_LIBS
12770 if ${ac_cv_lib_soname_jpeg:+false} :; then :
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12772 $as_echo "not found" >&6; }
12773 JPEG_CFLAGS=""
12774 else
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
12776 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
12778 cat >>confdefs.h <<_ACEOF
12779 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
12780 _ACEOF
12784 else
12785 JPEG_CFLAGS=""
12787 CPPFLAGS=$ac_save_CPPFLAGS
12788 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12789 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12792 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12793 case "x$with_jpeg" in
12794 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
12795 xno) ;;
12796 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
12797 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
12798 esac
12801 if test "x$with_png" != "xno"
12802 then
12803 if ${PNG_CFLAGS:+false} :; then :
12804 if ${PKG_CONFIG+:} false; then :
12805 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
12808 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
12809 if ${PNG_LIBS:+false} :; then :
12810 if ${PKG_CONFIG+:} false; then :
12811 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
12814 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
12816 $as_echo "$as_me:${as_lineno-$LINENO}: libpng cflags: $PNG_CFLAGS" >&5
12817 $as_echo "$as_me:${as_lineno-$LINENO}: libpng libs: $PNG_LIBS" >&5
12818 ac_save_CPPFLAGS=$CPPFLAGS
12819 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
12820 for ac_header in png.h
12821 do :
12822 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12823 if test "x$ac_cv_header_png_h" = xyes; then :
12824 cat >>confdefs.h <<_ACEOF
12825 #define HAVE_PNG_H 1
12826 _ACEOF
12830 done
12832 if test "$ac_cv_header_png_h" = "yes"
12833 then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
12835 $as_echo_n "checking for -lpng... " >&6; }
12836 if ${ac_cv_lib_soname_png+:} false; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 ac_check_soname_save_LIBS=$LIBS
12840 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h. */
12844 /* Override any GCC internal prototype to avoid an error.
12845 Use char because int might match the return type of a GCC
12846 builtin and then its argument prototype would still apply. */
12847 #ifdef __cplusplus
12848 extern "C"
12849 #endif
12850 char png_create_read_struct ();
12852 main ()
12854 return png_create_read_struct ();
12856 return 0;
12858 _ACEOF
12859 if ac_fn_c_try_link "$LINENO"; then :
12860 case "$LIBEXT" in
12861 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12862 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'` ;;
12863 *) 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'`
12864 if ${ac_cv_lib_soname_png:+false} :; then :
12865 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12866 fi ;;
12867 esac
12869 rm -f core conftest.err conftest.$ac_objext \
12870 conftest$ac_exeext conftest.$ac_ext
12871 LIBS=$ac_check_soname_save_LIBS
12873 if ${ac_cv_lib_soname_png:+false} :; then :
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12875 $as_echo "not found" >&6; }
12876 PNG_CFLAGS=""
12877 else
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
12879 $as_echo "$ac_cv_lib_soname_png" >&6; }
12881 cat >>confdefs.h <<_ACEOF
12882 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
12883 _ACEOF
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887 #include <png.h>
12889 main ()
12891 typeof(png_set_expand_gray_1_2_4_to_8) *p
12893 return 0;
12895 _ACEOF
12896 if ac_fn_c_try_compile "$LINENO"; then :
12898 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12903 else
12904 PNG_CFLAGS=""
12906 CPPFLAGS=$ac_save_CPPFLAGS
12907 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12908 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12911 if test "x$ac_cv_lib_soname_png" = "x"; then :
12912 case "x$with_png" in
12913 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12914 xno) ;;
12915 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12916 This is an error since --with-png was requested." "$LINENO" 5 ;;
12917 esac
12920 if test "x$with_tiff" != "xno"
12921 then
12922 if ${TIFF_CFLAGS:+false} :; then :
12923 if ${PKG_CONFIG+:} false; then :
12924 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
12928 if ${TIFF_LIBS:+false} :; then :
12929 if ${PKG_CONFIG+:} false; then :
12930 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
12935 $as_echo "$as_me:${as_lineno-$LINENO}: libtiff cflags: $TIFF_CFLAGS" >&5
12936 $as_echo "$as_me:${as_lineno-$LINENO}: libtiff libs: $TIFF_LIBS" >&5
12937 ac_save_CPPFLAGS=$CPPFLAGS
12938 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
12939 for ac_header in tiffio.h
12940 do :
12941 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12942 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12943 cat >>confdefs.h <<_ACEOF
12944 #define HAVE_TIFFIO_H 1
12945 _ACEOF
12949 done
12951 if test "$ac_cv_header_tiffio_h" = "yes"
12952 then
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12954 $as_echo_n "checking for -ltiff... " >&6; }
12955 if ${ac_cv_lib_soname_tiff+:} false; then :
12956 $as_echo_n "(cached) " >&6
12957 else
12958 ac_check_soname_save_LIBS=$LIBS
12959 LIBS="-ltiff $TIFF_LIBS $LIBS"
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h. */
12963 /* Override any GCC internal prototype to avoid an error.
12964 Use char because int might match the return type of a GCC
12965 builtin and then its argument prototype would still apply. */
12966 #ifdef __cplusplus
12967 extern "C"
12968 #endif
12969 char TIFFClientOpen ();
12971 main ()
12973 return TIFFClientOpen ();
12975 return 0;
12977 _ACEOF
12978 if ac_fn_c_try_link "$LINENO"; then :
12979 case "$LIBEXT" in
12980 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12981 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'` ;;
12982 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12983 if ${ac_cv_lib_soname_tiff:+false} :; then :
12984 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12985 fi ;;
12986 esac
12988 rm -f core conftest.err conftest.$ac_objext \
12989 conftest$ac_exeext conftest.$ac_ext
12990 LIBS=$ac_check_soname_save_LIBS
12992 if ${ac_cv_lib_soname_tiff:+false} :; then :
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12994 $as_echo "not found" >&6; }
12996 else
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
12998 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
13000 cat >>confdefs.h <<_ACEOF
13001 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
13002 _ACEOF
13007 CPPFLAGS=$ac_save_CPPFLAGS
13008 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13009 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13012 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13013 case "x$with_tiff" in
13014 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
13015 xno) ;;
13016 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
13017 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
13018 esac
13021 if test "x$with_mpg123" != "xno"
13022 then
13023 if ${MPG123_CFLAGS:+false} :; then :
13024 if ${PKG_CONFIG+:} false; then :
13025 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
13029 if ${MPG123_LIBS:+false} :; then :
13030 if ${PKG_CONFIG+:} false; then :
13031 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
13035 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
13036 $as_echo "$as_me:${as_lineno-$LINENO}: libmpg123 cflags: $MPG123_CFLAGS" >&5
13037 $as_echo "$as_me:${as_lineno-$LINENO}: libmpg123 libs: $MPG123_LIBS" >&5
13038 ac_save_CPPFLAGS=$CPPFLAGS
13039 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
13040 for ac_header in mpg123.h
13041 do :
13042 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
13043 if test "x$ac_cv_header_mpg123_h" = xyes; then :
13044 cat >>confdefs.h <<_ACEOF
13045 #define HAVE_MPG123_H 1
13046 _ACEOF
13050 done
13052 if test "$ac_cv_header_mpg123_h" = "yes"
13053 then
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
13055 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
13056 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059 ac_check_lib_save_LIBS=$LIBS
13060 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13064 /* Override any GCC internal prototype to avoid an error.
13065 Use char because int might match the return type of a GCC
13066 builtin and then its argument prototype would still apply. */
13067 #ifdef __cplusplus
13068 extern "C"
13069 #endif
13070 char mpg123_feed ();
13072 main ()
13074 return mpg123_feed ();
13076 return 0;
13078 _ACEOF
13079 if ac_fn_c_try_link "$LINENO"; then :
13080 ac_cv_lib_mpg123_mpg123_feed=yes
13081 else
13082 ac_cv_lib_mpg123_mpg123_feed=no
13084 rm -f core conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13086 LIBS=$ac_check_lib_save_LIBS
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
13089 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
13090 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
13092 else
13093 MPG123_LIBS=""
13096 else
13097 MPG123_CFLAGS=""
13098 MPG123_LIBS=""
13100 CPPFLAGS=$ac_save_CPPFLAGS
13101 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13102 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13105 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
13106 case "x$with_mpg123" in
13107 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
13108 xno) ;;
13109 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
13110 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
13111 esac
13113 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}
13115 if test "$ac_cv_header_AL_al_h" = "yes"
13116 then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
13118 $as_echo_n "checking for -lopenal... " >&6; }
13119 if ${ac_cv_lib_soname_openal+:} false; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 ac_check_soname_save_LIBS=$LIBS
13123 LIBS="-lopenal $LIBS"
13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13125 /* end confdefs.h. */
13127 /* Override any GCC internal prototype to avoid an error.
13128 Use char because int might match the return type of a GCC
13129 builtin and then its argument prototype would still apply. */
13130 #ifdef __cplusplus
13131 extern "C"
13132 #endif
13133 char alGetSource3i ();
13135 main ()
13137 return alGetSource3i ();
13139 return 0;
13141 _ACEOF
13142 if ac_fn_c_try_link "$LINENO"; then :
13143 case "$LIBEXT" in
13144 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13145 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'` ;;
13146 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13147 if ${ac_cv_lib_soname_openal:+false} :; then :
13148 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13149 fi ;;
13150 esac
13152 rm -f core conftest.err conftest.$ac_objext \
13153 conftest$ac_exeext conftest.$ac_ext
13154 LIBS=$ac_check_soname_save_LIBS
13156 if ${ac_cv_lib_soname_openal:+false} :; then :
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13158 $as_echo "not found" >&6; }
13160 else
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
13162 $as_echo "$ac_cv_lib_soname_openal" >&6; }
13164 cat >>confdefs.h <<_ACEOF
13165 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
13166 _ACEOF
13168 OPENAL_LIBS="-lopenal"
13170 ac_cv_lib_openal=yes
13172 cat >>confdefs.h <<_ACEOF
13173 #define HAVE_OPENAL 1
13174 _ACEOF
13178 if test "x$ac_cv_lib_openal" != xyes; then :
13179 case "x$with_openal" in
13180 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
13181 xno) ;;
13182 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
13183 This is an error since --with-openal was requested." "$LINENO" 5 ;;
13184 esac
13186 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
13188 if test "$ac_cv_header_kstat_h" = "yes"
13189 then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13191 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13192 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13193 $as_echo_n "(cached) " >&6
13194 else
13195 ac_check_lib_save_LIBS=$LIBS
13196 LIBS="-lkstat $LIBS"
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13200 /* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13203 #ifdef __cplusplus
13204 extern "C"
13205 #endif
13206 char kstat_open ();
13208 main ()
13210 return kstat_open ();
13212 return 0;
13214 _ACEOF
13215 if ac_fn_c_try_link "$LINENO"; then :
13216 ac_cv_lib_kstat_kstat_open=yes
13217 else
13218 ac_cv_lib_kstat_kstat_open=no
13220 rm -f core conftest.err conftest.$ac_objext \
13221 conftest$ac_exeext conftest.$ac_ext
13222 LIBS=$ac_check_lib_save_LIBS
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13225 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13226 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13228 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
13230 KSTAT_LIBS="-lkstat"
13236 if test "$ac_cv_header_libprocstat_h" = "yes"
13237 then
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
13239 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
13240 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
13241 $as_echo_n "(cached) " >&6
13242 else
13243 ac_check_lib_save_LIBS=$LIBS
13244 LIBS="-lprocstat $LIBS"
13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h. */
13248 /* Override any GCC internal prototype to avoid an error.
13249 Use char because int might match the return type of a GCC
13250 builtin and then its argument prototype would still apply. */
13251 #ifdef __cplusplus
13252 extern "C"
13253 #endif
13254 char procstat_open_sysctl ();
13256 main ()
13258 return procstat_open_sysctl ();
13260 return 0;
13262 _ACEOF
13263 if ac_fn_c_try_link "$LINENO"; then :
13264 ac_cv_lib_procstat_procstat_open_sysctl=yes
13265 else
13266 ac_cv_lib_procstat_procstat_open_sysctl=no
13268 rm -f core conftest.err conftest.$ac_objext \
13269 conftest$ac_exeext conftest.$ac_ext
13270 LIBS=$ac_check_lib_save_LIBS
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
13273 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
13274 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
13276 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
13278 PROCSTAT_LIBS="-lprocstat"
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
13285 $as_echo_n "checking for -lodbc... " >&6; }
13286 if ${ac_cv_lib_soname_odbc+:} false; then :
13287 $as_echo_n "(cached) " >&6
13288 else
13289 ac_check_soname_save_LIBS=$LIBS
13290 LIBS="-lodbc $LIBS"
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13294 /* Override any GCC internal prototype to avoid an error.
13295 Use char because int might match the return type of a GCC
13296 builtin and then its argument prototype would still apply. */
13297 #ifdef __cplusplus
13298 extern "C"
13299 #endif
13300 char SQLConnect ();
13302 main ()
13304 return SQLConnect ();
13306 return 0;
13308 _ACEOF
13309 if ac_fn_c_try_link "$LINENO"; then :
13310 case "$LIBEXT" in
13311 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13312 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'` ;;
13313 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13314 if ${ac_cv_lib_soname_odbc:+false} :; then :
13315 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13316 fi ;;
13317 esac
13319 rm -f core conftest.err conftest.$ac_objext \
13320 conftest$ac_exeext conftest.$ac_ext
13321 LIBS=$ac_check_soname_save_LIBS
13323 if ${ac_cv_lib_soname_odbc:+false} :; then :
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13325 $as_echo "not found" >&6; }
13326 cat >>confdefs.h <<_ACEOF
13327 #define SONAME_LIBODBC "libodbc.$LIBEXT"
13328 _ACEOF
13330 else
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
13332 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
13334 cat >>confdefs.h <<_ACEOF
13335 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
13336 _ACEOF
13341 if test "x$with_netapi" != "xno"
13342 then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13344 $as_echo_n "checking for -lnetapi... " >&6; }
13345 if ${ac_cv_lib_soname_netapi+:} false; then :
13346 $as_echo_n "(cached) " >&6
13347 else
13348 ac_check_soname_save_LIBS=$LIBS
13349 LIBS="-lnetapi $LIBS"
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13353 /* Override any GCC internal prototype to avoid an error.
13354 Use char because int might match the return type of a GCC
13355 builtin and then its argument prototype would still apply. */
13356 #ifdef __cplusplus
13357 extern "C"
13358 #endif
13359 char libnetapi_init ();
13361 main ()
13363 return libnetapi_init ();
13365 return 0;
13367 _ACEOF
13368 if ac_fn_c_try_link "$LINENO"; then :
13369 case "$LIBEXT" in
13370 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13371 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'` ;;
13372 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13373 if ${ac_cv_lib_soname_netapi:+false} :; then :
13374 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13375 fi ;;
13376 esac
13378 rm -f core conftest.err conftest.$ac_objext \
13379 conftest$ac_exeext conftest.$ac_ext
13380 LIBS=$ac_check_soname_save_LIBS
13382 if ${ac_cv_lib_soname_netapi:+false} :; then :
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13384 $as_echo "not found" >&6; }
13385 cat >>confdefs.h <<_ACEOF
13386 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13387 _ACEOF
13389 else
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13391 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13393 cat >>confdefs.h <<_ACEOF
13394 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13395 _ACEOF
13401 test -n "$ALSA_LIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13402 test -n "$COREAUDIO_LIBS" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13403 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13404 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13406 if test "x$ALSA_LIBS$COREAUDIO_LIBS" = "x" -a \
13407 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13408 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13409 then
13410 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13414 EXTRACFLAGS=""
13416 if test "x${GCC}" = "xyes"
13417 then
13418 EXTRACFLAGS="-Wall -pipe"
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13421 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13422 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 if test "$cross_compiling" = yes; then :
13426 ac_cv_c_gcc_strength_bug="yes"
13427 else
13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429 /* end confdefs.h. */
13430 int L[4] = {0,1,2,3};
13432 main ()
13434 static int Array[3];
13435 unsigned int B = 3;
13436 int i;
13437 for(i=0; i<B; i++) Array[i] = i - 3;
13438 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13439 L[i] = 4;
13440 return (Array[1] != -2 || L[2] != 3)
13442 return 0;
13444 _ACEOF
13445 if ac_fn_c_try_run "$LINENO"; then :
13446 ac_cv_c_gcc_strength_bug="no"
13447 else
13448 ac_cv_c_gcc_strength_bug="yes"
13450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13451 conftest.$ac_objext conftest.beam conftest.$ac_ext
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13456 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13457 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13458 then
13459 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13463 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13464 if ${ac_cv_cflags__fno_builtin+:} false; then :
13465 $as_echo_n "(cached) " >&6
13466 else
13467 ac_wine_try_cflags_saved=$CFLAGS
13468 CFLAGS="$CFLAGS -fno-builtin"
13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13471 int main(int argc, char **argv) { return 0; }
13472 _ACEOF
13473 if ac_fn_c_try_link "$LINENO"; then :
13474 ac_cv_cflags__fno_builtin=yes
13475 else
13476 ac_cv_cflags__fno_builtin=no
13478 rm -f core conftest.err conftest.$ac_objext \
13479 conftest$ac_exeext conftest.$ac_ext
13480 CFLAGS=$ac_wine_try_cflags_saved
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13483 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13484 if test "x$ac_cv_cflags__fno_builtin" = xyes; then :
13485 BUILTINFLAG="-fno-builtin"
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13489 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13490 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 ac_wine_try_cflags_saved=$CFLAGS
13494 CFLAGS="$CFLAGS -fno-strict-aliasing"
13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* end confdefs.h. */
13497 int main(int argc, char **argv) { return 0; }
13498 _ACEOF
13499 if ac_fn_c_try_link "$LINENO"; then :
13500 ac_cv_cflags__fno_strict_aliasing=yes
13501 else
13502 ac_cv_cflags__fno_strict_aliasing=no
13504 rm -f core conftest.err conftest.$ac_objext \
13505 conftest$ac_exeext conftest.$ac_ext
13506 CFLAGS=$ac_wine_try_cflags_saved
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13509 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13510 if test "x$ac_cv_cflags__fno_strict_aliasing" = xyes; then :
13511 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13513 saved_CFLAGS=$CFLAGS
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13515 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13516 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13517 $as_echo_n "(cached) " >&6
13518 else
13519 ac_wine_try_cflags_saved=$CFLAGS
13520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13523 int main(int argc, char **argv) { return 0; }
13524 _ACEOF
13525 if ac_fn_c_try_link "$LINENO"; then :
13526 ac_cv_cflags__Werror_unknown_warning_option=yes
13527 else
13528 ac_cv_cflags__Werror_unknown_warning_option=no
13530 rm -f core conftest.err conftest.$ac_objext \
13531 conftest$ac_exeext conftest.$ac_ext
13532 CFLAGS=$ac_wine_try_cflags_saved
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
13535 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13536 if test "x$ac_cv_cflags__Werror_unknown_warning_option" = xyes; then :
13537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13540 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13541 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13542 $as_echo_n "(cached) " >&6
13543 else
13544 ac_wine_try_cflags_saved=$CFLAGS
13545 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547 /* end confdefs.h. */
13548 int main(int argc, char **argv) { return 0; }
13549 _ACEOF
13550 if ac_fn_c_try_link "$LINENO"; then :
13551 ac_cv_cflags__Wdeclaration_after_statement=yes
13552 else
13553 ac_cv_cflags__Wdeclaration_after_statement=no
13555 rm -f core conftest.err conftest.$ac_objext \
13556 conftest$ac_exeext conftest.$ac_ext
13557 CFLAGS=$ac_wine_try_cflags_saved
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13560 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13561 if test "x$ac_cv_cflags__Wdeclaration_after_statement" = xyes; then :
13562 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13565 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13566 if ${ac_cv_cflags__Wempty_body+:} false; then :
13567 $as_echo_n "(cached) " >&6
13568 else
13569 ac_wine_try_cflags_saved=$CFLAGS
13570 CFLAGS="$CFLAGS -Wempty-body"
13571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572 /* end confdefs.h. */
13573 int main(int argc, char **argv) { return 0; }
13574 _ACEOF
13575 if ac_fn_c_try_link "$LINENO"; then :
13576 ac_cv_cflags__Wempty_body=yes
13577 else
13578 ac_cv_cflags__Wempty_body=no
13580 rm -f core conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13582 CFLAGS=$ac_wine_try_cflags_saved
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13585 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13586 if test "x$ac_cv_cflags__Wempty_body" = xyes; then :
13587 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13590 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13591 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13592 $as_echo_n "(cached) " >&6
13593 else
13594 ac_wine_try_cflags_saved=$CFLAGS
13595 CFLAGS="$CFLAGS -Wignored-qualifiers"
13596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597 /* end confdefs.h. */
13598 int main(int argc, char **argv) { return 0; }
13599 _ACEOF
13600 if ac_fn_c_try_link "$LINENO"; then :
13601 ac_cv_cflags__Wignored_qualifiers=yes
13602 else
13603 ac_cv_cflags__Wignored_qualifiers=no
13605 rm -f core conftest.err conftest.$ac_objext \
13606 conftest$ac_exeext conftest.$ac_ext
13607 CFLAGS=$ac_wine_try_cflags_saved
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13610 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13611 if test "x$ac_cv_cflags__Wignored_qualifiers" = xyes; then :
13612 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13615 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13616 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13617 $as_echo_n "(cached) " >&6
13618 else
13619 ac_wine_try_cflags_saved=$CFLAGS
13620 CFLAGS="$CFLAGS -Wstrict-prototypes"
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623 int main(int argc, char **argv) { return 0; }
13624 _ACEOF
13625 if ac_fn_c_try_link "$LINENO"; then :
13626 ac_cv_cflags__Wstrict_prototypes=yes
13627 else
13628 ac_cv_cflags__Wstrict_prototypes=no
13630 rm -f core conftest.err conftest.$ac_objext \
13631 conftest$ac_exeext conftest.$ac_ext
13632 CFLAGS=$ac_wine_try_cflags_saved
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13635 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13636 if test "x$ac_cv_cflags__Wstrict_prototypes" = xyes; then :
13637 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13640 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13641 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644 ac_wine_try_cflags_saved=$CFLAGS
13645 CFLAGS="$CFLAGS -Wtype-limits"
13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13648 int main(int argc, char **argv) { return 0; }
13649 _ACEOF
13650 if ac_fn_c_try_link "$LINENO"; then :
13651 ac_cv_cflags__Wtype_limits=yes
13652 else
13653 ac_cv_cflags__Wtype_limits=no
13655 rm -f core conftest.err conftest.$ac_objext \
13656 conftest$ac_exeext conftest.$ac_ext
13657 CFLAGS=$ac_wine_try_cflags_saved
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13660 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13661 if test "x$ac_cv_cflags__Wtype_limits" = xyes; then :
13662 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13665 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13666 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13667 $as_echo_n "(cached) " >&6
13668 else
13669 ac_wine_try_cflags_saved=$CFLAGS
13670 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13673 int main(int argc, char **argv) { return 0; }
13674 _ACEOF
13675 if ac_fn_c_try_link "$LINENO"; then :
13676 ac_cv_cflags__Wunused_but_set_parameter=yes
13677 else
13678 ac_cv_cflags__Wunused_but_set_parameter=no
13680 rm -f core conftest.err conftest.$ac_objext \
13681 conftest$ac_exeext conftest.$ac_ext
13682 CFLAGS=$ac_wine_try_cflags_saved
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13685 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13686 if test "x$ac_cv_cflags__Wunused_but_set_parameter" = xyes; then :
13687 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
13690 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
13691 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
13692 $as_echo_n "(cached) " >&6
13693 else
13694 ac_wine_try_cflags_saved=$CFLAGS
13695 CFLAGS="$CFLAGS -Wwrite-strings"
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13698 int main(int argc, char **argv) { return 0; }
13699 _ACEOF
13700 if ac_fn_c_try_link "$LINENO"; then :
13701 ac_cv_cflags__Wwrite_strings=yes
13702 else
13703 ac_cv_cflags__Wwrite_strings=no
13705 rm -f core conftest.err conftest.$ac_objext \
13706 conftest$ac_exeext conftest.$ac_ext
13707 CFLAGS=$ac_wine_try_cflags_saved
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
13710 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
13711 if test "x$ac_cv_cflags__Wwrite_strings" = xyes; then :
13712 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
13716 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
13717 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
13718 $as_echo_n "(cached) " >&6
13719 else
13720 ac_wine_try_cflags_saved=$CFLAGS
13721 CFLAGS="$CFLAGS -Wpointer-arith"
13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h. */
13724 int main(int argc, char **argv) { return 0; }
13725 _ACEOF
13726 if ac_fn_c_try_link "$LINENO"; then :
13727 ac_cv_cflags__Wpointer_arith=yes
13728 else
13729 ac_cv_cflags__Wpointer_arith=no
13731 rm -f core conftest.err conftest.$ac_objext \
13732 conftest$ac_exeext conftest.$ac_ext
13733 CFLAGS=$ac_wine_try_cflags_saved
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
13736 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
13737 if test "x$ac_cv_cflags__Wpointer_arith" = xyes; then :
13738 saved_string_h_CFLAGS=$CFLAGS
13739 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
13741 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
13742 if ${ac_cv_c_string_h_warnings+:} false; then :
13743 $as_echo_n "(cached) " >&6
13744 else
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747 #include <string.h>
13749 main ()
13753 return 0;
13755 _ACEOF
13756 if ac_fn_c_try_compile "$LINENO"; then :
13757 ac_cv_c_string_h_warnings=no
13758 else
13759 ac_cv_c_string_h_warnings=yes
13761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
13764 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
13765 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
13766 CFLAGS=$saved_string_h_CFLAGS
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
13770 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
13771 if ${ac_cv_cflags__Wlogical_op+:} false; then :
13772 $as_echo_n "(cached) " >&6
13773 else
13774 ac_wine_try_cflags_saved=$CFLAGS
13775 CFLAGS="$CFLAGS -Wlogical-op"
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777 /* end confdefs.h. */
13778 int main(int argc, char **argv) { return 0; }
13779 _ACEOF
13780 if ac_fn_c_try_link "$LINENO"; then :
13781 ac_cv_cflags__Wlogical_op=yes
13782 else
13783 ac_cv_cflags__Wlogical_op=no
13785 rm -f core conftest.err conftest.$ac_objext \
13786 conftest$ac_exeext conftest.$ac_ext
13787 CFLAGS=$ac_wine_try_cflags_saved
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
13790 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
13791 if test "x$ac_cv_cflags__Wlogical_op" = xyes; then :
13792 saved_string_h_CFLAGS=$CFLAGS
13793 CFLAGS="$CFLAGS -Wlogical-op -Werror"
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
13795 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
13796 if ${ac_cv_c_logicalop_noisy+:} false; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800 /* end confdefs.h. */
13801 #include <string.h>
13802 char*f(const char *h,char n) {return strchr(h,n);}
13804 main ()
13808 return 0;
13810 _ACEOF
13811 if ac_fn_c_try_compile "$LINENO"; then :
13812 ac_cv_c_logicalop_noisy=no
13813 else
13814 ac_cv_c_logicalop_noisy=yes
13816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
13819 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
13820 CFLAGS=$saved_string_h_CFLAGS
13821 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
13824 CFLAGS=$saved_CFLAGS
13826 for ac_flag in $CFLAGS; do
13827 case $ac_flag in
13828 -g) case $host_os in
13829 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
13830 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
13831 if ${ac_cv_cflags__gstabsp+:} false; then :
13832 $as_echo_n "(cached) " >&6
13833 else
13834 ac_wine_try_cflags_saved=$CFLAGS
13835 CFLAGS="$CFLAGS -gstabs+"
13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13838 int main(int argc, char **argv) { return 0; }
13839 _ACEOF
13840 if ac_fn_c_try_link "$LINENO"; then :
13841 ac_cv_cflags__gstabsp=yes
13842 else
13843 ac_cv_cflags__gstabsp=no
13845 rm -f core conftest.err conftest.$ac_objext \
13846 conftest$ac_exeext conftest.$ac_ext
13847 CFLAGS=$ac_wine_try_cflags_saved
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
13850 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
13851 if test "x$ac_cv_cflags__gstabsp" = xyes; then :
13852 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
13853 fi ;;
13854 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
13855 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
13856 if ${ac_cv_cflags__gdwarf_2+:} false; then :
13857 $as_echo_n "(cached) " >&6
13858 else
13859 ac_wine_try_cflags_saved=$CFLAGS
13860 CFLAGS="$CFLAGS -gdwarf-2"
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863 int main(int argc, char **argv) { return 0; }
13864 _ACEOF
13865 if ac_fn_c_try_link "$LINENO"; then :
13866 ac_cv_cflags__gdwarf_2=yes
13867 else
13868 ac_cv_cflags__gdwarf_2=no
13870 rm -f core conftest.err conftest.$ac_objext \
13871 conftest$ac_exeext conftest.$ac_ext
13872 CFLAGS=$ac_wine_try_cflags_saved
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
13875 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
13876 if test "x$ac_cv_cflags__gdwarf_2" = xyes; then :
13877 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
13880 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
13881 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
13882 $as_echo_n "(cached) " >&6
13883 else
13884 ac_wine_try_cflags_saved=$CFLAGS
13885 CFLAGS="$CFLAGS -gstrict-dwarf"
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13888 int main(int argc, char **argv) { return 0; }
13889 _ACEOF
13890 if ac_fn_c_try_link "$LINENO"; then :
13891 ac_cv_cflags__gstrict_dwarf=yes
13892 else
13893 ac_cv_cflags__gstrict_dwarf=no
13895 rm -f core conftest.err conftest.$ac_objext \
13896 conftest$ac_exeext conftest.$ac_ext
13897 CFLAGS=$ac_wine_try_cflags_saved
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
13900 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
13901 if test "x$ac_cv_cflags__gstrict_dwarf" = xyes; then :
13902 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
13903 fi ;;
13904 esac ;;
13905 esac
13906 done
13908 case $host_cpu in
13909 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
13910 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
13911 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
13912 $as_echo_n "(cached) " >&6
13913 else
13914 ac_wine_try_cflags_saved=$CFLAGS
13915 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h. */
13918 int main(int argc, char **argv) { return 0; }
13919 _ACEOF
13920 if ac_fn_c_try_link "$LINENO"; then :
13921 ac_cv_cflags__fno_omit_frame_pointer=yes
13922 else
13923 ac_cv_cflags__fno_omit_frame_pointer=no
13925 rm -f core conftest.err conftest.$ac_objext \
13926 conftest$ac_exeext conftest.$ac_ext
13927 CFLAGS=$ac_wine_try_cflags_saved
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
13930 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
13931 if test "x$ac_cv_cflags__fno_omit_frame_pointer" = xyes; then :
13932 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
13933 fi ;;
13934 esac
13936 case $host in
13937 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
13938 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
13939 if ${ac_cv_cflags__Wno_format+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 ac_wine_try_cflags_saved=$CFLAGS
13943 CFLAGS="$CFLAGS -Wno-format"
13944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h. */
13946 int main(int argc, char **argv) { return 0; }
13947 _ACEOF
13948 if ac_fn_c_try_link "$LINENO"; then :
13949 ac_cv_cflags__Wno_format=yes
13950 else
13951 ac_cv_cflags__Wno_format=no
13953 rm -f core conftest.err conftest.$ac_objext \
13954 conftest$ac_exeext conftest.$ac_ext
13955 CFLAGS=$ac_wine_try_cflags_saved
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
13958 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
13959 if test "x$ac_cv_cflags__Wno_format" = xyes; then :
13960 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
13961 fi ;;
13962 esac
13964 if test "x$enable_maintainer_mode" = "xyes"
13965 then
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
13967 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
13968 if ${ac_cv_cflags__Werror+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 ac_wine_try_cflags_saved=$CFLAGS
13972 CFLAGS="$CFLAGS -Werror"
13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13975 int main(int argc, char **argv) { return 0; }
13976 _ACEOF
13977 if ac_fn_c_try_link "$LINENO"; then :
13978 ac_cv_cflags__Werror=yes
13979 else
13980 ac_cv_cflags__Werror=no
13982 rm -f core conftest.err conftest.$ac_objext \
13983 conftest$ac_exeext conftest.$ac_ext
13984 CFLAGS=$ac_wine_try_cflags_saved
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
13987 $as_echo "$ac_cv_cflags__Werror" >&6; }
13988 if test "x$ac_cv_cflags__Werror" = xyes; then :
13989 EXTRACFLAGS="$EXTRACFLAGS -Werror"
13993 saved_CFLAGS="$CFLAGS"
13994 CFLAGS="$CFLAGS -Werror"
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
13996 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
13997 if ${ac_cv_have_ms_hook_prologue+:} false; then :
13998 $as_echo_n "(cached) " >&6
13999 else
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14002 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
14004 main ()
14008 return 0;
14010 _ACEOF
14011 if ac_fn_c_try_compile "$LINENO"; then :
14012 ac_cv_have_ms_hook_prologue="yes"
14013 else
14014 ac_cv_have_ms_hook_prologue="no"
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
14019 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
14020 CFLAGS="$saved_CFLAGS"
14021 if test "$ac_cv_have_ms_hook_prologue" = "yes"
14022 then
14024 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
14026 else
14027 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
14034 $as_echo_n "checking for the need to disable Fortify... " >&6; }
14035 if ${ac_cv_c_fortify_enabled+:} false; then :
14036 $as_echo_n "(cached) " >&6
14037 else
14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14040 #include <string.h>
14042 main ()
14044 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
14045 #error Fortify enabled
14046 #endif
14048 return 0;
14050 _ACEOF
14051 if ac_fn_c_try_compile "$LINENO"; then :
14052 ac_cv_c_fortify_enabled=no
14053 else
14054 ac_cv_c_fortify_enabled=yes
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
14059 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
14060 if test "$ac_cv_c_fortify_enabled" = yes
14061 then
14062 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
14067 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
14068 if ${ac_cv_c_extern_prefix+:} false; then :
14069 $as_echo_n "(cached) " >&6
14070 else
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14073 extern int ac_test;
14075 main ()
14077 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14079 return 0;
14081 _ACEOF
14082 if ac_fn_c_try_link "$LINENO"; then :
14083 ac_cv_c_extern_prefix="yes"
14084 else
14085 ac_cv_c_extern_prefix="no"
14087 rm -f core conftest.err conftest.$ac_objext \
14088 conftest$ac_exeext conftest.$ac_ext
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
14091 $as_echo "$ac_cv_c_extern_prefix" >&6; }
14093 case $host_cpu in
14094 *i[3456789]86*)
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
14096 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
14097 if ${ac_cv_c_stdcall_suffix+:} false; then :
14098 $as_echo_n "(cached) " >&6
14099 else
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 #ifndef _MSC_VER
14103 #define __stdcall __attribute__((__stdcall__))
14104 #endif
14105 int __stdcall ac_test(int i) { return i; }
14107 main ()
14109 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
14111 return 0;
14113 _ACEOF
14114 if ac_fn_c_try_link "$LINENO"; then :
14115 ac_cv_c_stdcall_suffix="yes"
14116 else
14117 ac_cv_c_stdcall_suffix="no"
14119 rm -f core conftest.err conftest.$ac_objext \
14120 conftest$ac_exeext conftest.$ac_ext
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
14123 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
14124 *) ac_cv_c_stdcall_suffix="no" ;;
14125 esac
14128 if test "$ac_cv_c_extern_prefix" = "yes"
14129 then
14130 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
14132 asm_name_prefix="_"
14133 else
14134 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
14136 asm_name_prefix=""
14140 if test "$ac_cv_c_stdcall_suffix" = "yes"
14141 then
14142 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
14144 else
14145 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
14151 $as_echo_n "checking how to define a function in assembly code... " >&6; }
14152 if ${ac_cv_asm_func_def+:} false; then :
14153 $as_echo_n "(cached) " >&6
14154 else
14155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14156 /* end confdefs.h. */
14159 main ()
14161 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14163 return 0;
14165 _ACEOF
14166 if ac_fn_c_try_link "$LINENO"; then :
14167 ac_cv_asm_func_def=".def"
14168 else
14169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14173 main ()
14175 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14177 return 0;
14179 _ACEOF
14180 if ac_fn_c_try_link "$LINENO"; then :
14181 ac_cv_asm_func_def=".type @function"
14182 else
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14187 main ()
14189 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14191 return 0;
14193 _ACEOF
14194 if ac_fn_c_try_link "$LINENO"; then :
14195 ac_cv_asm_func_def=".type 2"
14196 else
14197 ac_cv_asm_func_def="unknown"
14199 rm -f core conftest.err conftest.$ac_objext \
14200 conftest$ac_exeext conftest.$ac_ext
14202 rm -f core conftest.err conftest.$ac_objext \
14203 conftest$ac_exeext conftest.$ac_ext
14205 rm -f core conftest.err conftest.$ac_objext \
14206 conftest$ac_exeext conftest.$ac_ext
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
14209 $as_echo "$ac_cv_asm_func_def" >&6; }
14212 case "$ac_cv_asm_func_def" in
14213 ".def")
14214 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
14216 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
14217 ".type @function")
14218 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
14220 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
14221 ".type 2")
14222 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
14224 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
14226 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
14228 asm_func_header="" ;;
14229 esac
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
14232 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
14233 if ${ac_cv_c_asm_outside_funcs+:} false; then :
14234 $as_echo_n "(cached) " >&6
14235 else
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14238 asm(".text\n\t.long 0");
14240 main ()
14244 return 0;
14246 _ACEOF
14247 if ac_fn_c_try_compile "$LINENO"; then :
14248 ac_cv_c_asm_outside_funcs="yes"
14249 else
14250 ac_cv_c_asm_outside_funcs="no"
14252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
14255 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
14258 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
14259 if ${ac_cv_c_dot_previous+:} false; then :
14260 $as_echo_n "(cached) " >&6
14261 else
14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14266 main ()
14268 asm(".text\nac_test:\t.long 0\n\t.previous");
14270 return 0;
14272 _ACEOF
14273 if ac_fn_c_try_link "$LINENO"; then :
14274 ac_cv_c_dot_previous="yes"
14275 else
14276 ac_cv_c_dot_previous="no"
14278 rm -f core conftest.err conftest.$ac_objext \
14279 conftest$ac_exeext conftest.$ac_ext
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
14282 $as_echo "$ac_cv_c_dot_previous" >&6; }
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
14285 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
14286 if ${ac_cv_c_cfi_support+:} false; then :
14287 $as_echo_n "(cached) " >&6
14288 else
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14291 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
14293 main ()
14297 return 0;
14299 _ACEOF
14300 if ac_fn_c_try_compile "$LINENO"; then :
14301 ac_cv_c_cfi_support="yes"
14302 else
14303 ac_cv_c_cfi_support="no"
14305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
14308 $as_echo "$ac_cv_c_cfi_support" >&6; }
14310 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
14311 asm_func_trailer=""
14312 if test "$ac_cv_c_dot_previous" = "yes"
14313 then
14314 asm_func_trailer="\\n\\t.previous"
14316 if test "$ac_cv_c_cfi_support" = "yes"
14317 then
14318 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
14319 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
14321 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
14323 UNWINDFLAGS=-fasynchronous-unwind-tables
14325 else
14326 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
14330 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
14333 if test "$ac_cv_c_asm_outside_funcs" = "yes"
14334 then
14335 cat >>confdefs.h <<_ACEOF
14336 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
14337 _ACEOF
14339 else
14340 cat >>confdefs.h <<_ACEOF
14341 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
14342 _ACEOF
14346 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14349 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14353 case $build_os in
14354 cygwin*|mingw32*) TOOLSEXT=".exe"
14356 esac
14358 case $host_os in
14359 linux*)
14360 case $host_cpu in
14361 *i[3456789]86*|x86_64*)
14362 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine-preloader"
14363 loader_programs="$loader_programs $wine_binary-preloader"
14364 as_fn_append LOADER_RULES "
14365 $wine_binary-preloader: preloader.o
14366 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14368 install install-lib:: $wine_binary-preloader
14369 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14371 uninstall::
14372 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14374 preloader_EXTRADEFS = $BUILTINFLAG
14375 " ;;
14376 esac
14378 esac
14379 as_fn_append LOADER_RULES "
14380 PROGRAMS = $loader_programs
14384 ac_save_CFLAGS="$CFLAGS"
14385 CFLAGS="$CFLAGS $BUILTINFLAG"
14386 for ac_func in \
14387 __res_get_state \
14388 __res_getservers \
14389 _finite \
14390 _isnan \
14391 _pclose \
14392 _popen \
14393 _snprintf \
14394 _spawnvp \
14395 _strdup \
14396 _stricmp \
14397 _strnicmp \
14398 _strtoi64 \
14399 _strtoui64 \
14400 _vsnprintf \
14401 asctime_r \
14402 chsize \
14403 dlopen \
14404 epoll_create \
14405 ffs \
14406 fnmatch \
14407 fork \
14408 fpclass \
14409 fstatfs \
14410 fstatvfs \
14411 ftruncate \
14412 futimens \
14413 futimes \
14414 futimesat \
14415 getattrlist \
14416 getdirentries \
14417 getopt_long_only \
14418 getpwuid \
14419 gettimeofday \
14420 getuid \
14421 if_nameindex \
14422 kqueue \
14423 lstat \
14424 memmove \
14425 mmap \
14426 pclose \
14427 pipe2 \
14428 poll \
14429 popen \
14430 port_create \
14431 prctl \
14432 pread \
14433 proc_pidinfo \
14434 pwrite \
14435 readdir \
14436 readlink \
14437 sched_yield \
14438 select \
14439 setproctitle \
14440 setrlimit \
14441 settimeofday \
14442 sigaltstack \
14443 sigprocmask \
14444 snprintf \
14445 statfs \
14446 statvfs \
14447 strcasecmp \
14448 strdup \
14449 strerror \
14450 strncasecmp \
14451 strtold \
14452 strtoll \
14453 strtoull \
14454 symlink \
14455 tcdrain \
14456 thr_kill2 \
14457 timegm \
14458 usleep \
14459 vsnprintf
14461 do :
14462 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14463 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14464 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14465 cat >>confdefs.h <<_ACEOF
14466 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14467 _ACEOF
14470 done
14472 CFLAGS="$ac_save_CFLAGS"
14474 if test "$ac_cv_func_dlopen" = no
14475 then
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14477 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14478 if ${ac_cv_lib_dl_dlopen+:} false; then :
14479 $as_echo_n "(cached) " >&6
14480 else
14481 ac_check_lib_save_LIBS=$LIBS
14482 LIBS="-ldl $LIBS"
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14486 /* Override any GCC internal prototype to avoid an error.
14487 Use char because int might match the return type of a GCC
14488 builtin and then its argument prototype would still apply. */
14489 #ifdef __cplusplus
14490 extern "C"
14491 #endif
14492 char dlopen ();
14494 main ()
14496 return dlopen ();
14498 return 0;
14500 _ACEOF
14501 if ac_fn_c_try_link "$LINENO"; then :
14502 ac_cv_lib_dl_dlopen=yes
14503 else
14504 ac_cv_lib_dl_dlopen=no
14506 rm -f core conftest.err conftest.$ac_objext \
14507 conftest$ac_exeext conftest.$ac_ext
14508 LIBS=$ac_check_lib_save_LIBS
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14511 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14512 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14513 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14514 DL_LIBS="-ldl"
14519 ac_wine_check_funcs_save_LIBS="$LIBS"
14520 LIBS="$LIBS $DL_LIBS"
14521 for ac_func in dladdr
14522 do :
14523 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14524 if test "x$ac_cv_func_dladdr" = xyes; then :
14525 cat >>confdefs.h <<_ACEOF
14526 #define HAVE_DLADDR 1
14527 _ACEOF
14530 done
14532 LIBS="$ac_wine_check_funcs_save_LIBS"
14534 if test "$ac_cv_func_poll" = no
14535 then
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14537 $as_echo_n "checking for poll in -lpoll... " >&6; }
14538 if ${ac_cv_lib_poll_poll+:} false; then :
14539 $as_echo_n "(cached) " >&6
14540 else
14541 ac_check_lib_save_LIBS=$LIBS
14542 LIBS="-lpoll $LIBS"
14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14544 /* end confdefs.h. */
14546 /* Override any GCC internal prototype to avoid an error.
14547 Use char because int might match the return type of a GCC
14548 builtin and then its argument prototype would still apply. */
14549 #ifdef __cplusplus
14550 extern "C"
14551 #endif
14552 char poll ();
14554 main ()
14556 return poll ();
14558 return 0;
14560 _ACEOF
14561 if ac_fn_c_try_link "$LINENO"; then :
14562 ac_cv_lib_poll_poll=yes
14563 else
14564 ac_cv_lib_poll_poll=no
14566 rm -f core conftest.err conftest.$ac_objext \
14567 conftest$ac_exeext conftest.$ac_ext
14568 LIBS=$ac_check_lib_save_LIBS
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14571 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14572 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14573 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14574 POLL_LIBS="-lpoll"
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14581 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14582 if ${ac_cv_search_gethostbyname+:} false; then :
14583 $as_echo_n "(cached) " >&6
14584 else
14585 ac_func_search_save_LIBS=$LIBS
14586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587 /* end confdefs.h. */
14589 /* Override any GCC internal prototype to avoid an error.
14590 Use char because int might match the return type of a GCC
14591 builtin and then its argument prototype would still apply. */
14592 #ifdef __cplusplus
14593 extern "C"
14594 #endif
14595 char gethostbyname ();
14597 main ()
14599 return gethostbyname ();
14601 return 0;
14603 _ACEOF
14604 for ac_lib in '' nsl; do
14605 if test -z "$ac_lib"; then
14606 ac_res="none required"
14607 else
14608 ac_res=-l$ac_lib
14609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14611 if ac_fn_c_try_link "$LINENO"; then :
14612 ac_cv_search_gethostbyname=$ac_res
14614 rm -f core conftest.err conftest.$ac_objext \
14615 conftest$ac_exeext
14616 if ${ac_cv_search_gethostbyname+:} false; then :
14617 break
14619 done
14620 if ${ac_cv_search_gethostbyname+:} false; then :
14622 else
14623 ac_cv_search_gethostbyname=no
14625 rm conftest.$ac_ext
14626 LIBS=$ac_func_search_save_LIBS
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14629 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14630 ac_res=$ac_cv_search_gethostbyname
14631 if test "$ac_res" != no; then :
14632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14638 $as_echo_n "checking for library containing connect... " >&6; }
14639 if ${ac_cv_search_connect+:} false; then :
14640 $as_echo_n "(cached) " >&6
14641 else
14642 ac_func_search_save_LIBS=$LIBS
14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h. */
14646 /* Override any GCC internal prototype to avoid an error.
14647 Use char because int might match the return type of a GCC
14648 builtin and then its argument prototype would still apply. */
14649 #ifdef __cplusplus
14650 extern "C"
14651 #endif
14652 char connect ();
14654 main ()
14656 return connect ();
14658 return 0;
14660 _ACEOF
14661 for ac_lib in '' socket; do
14662 if test -z "$ac_lib"; then
14663 ac_res="none required"
14664 else
14665 ac_res=-l$ac_lib
14666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14668 if ac_fn_c_try_link "$LINENO"; then :
14669 ac_cv_search_connect=$ac_res
14671 rm -f core conftest.err conftest.$ac_objext \
14672 conftest$ac_exeext
14673 if ${ac_cv_search_connect+:} false; then :
14674 break
14676 done
14677 if ${ac_cv_search_connect+:} false; then :
14679 else
14680 ac_cv_search_connect=no
14682 rm conftest.$ac_ext
14683 LIBS=$ac_func_search_save_LIBS
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14686 $as_echo "$ac_cv_search_connect" >&6; }
14687 ac_res=$ac_cv_search_connect
14688 if test "$ac_res" != no; then :
14689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
14695 $as_echo_n "checking for library containing inet_aton... " >&6; }
14696 if ${ac_cv_search_inet_aton+:} false; then :
14697 $as_echo_n "(cached) " >&6
14698 else
14699 ac_func_search_save_LIBS=$LIBS
14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701 /* end confdefs.h. */
14703 /* Override any GCC internal prototype to avoid an error.
14704 Use char because int might match the return type of a GCC
14705 builtin and then its argument prototype would still apply. */
14706 #ifdef __cplusplus
14707 extern "C"
14708 #endif
14709 char inet_aton ();
14711 main ()
14713 return inet_aton ();
14715 return 0;
14717 _ACEOF
14718 for ac_lib in '' resolv; do
14719 if test -z "$ac_lib"; then
14720 ac_res="none required"
14721 else
14722 ac_res=-l$ac_lib
14723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14725 if ac_fn_c_try_link "$LINENO"; then :
14726 ac_cv_search_inet_aton=$ac_res
14728 rm -f core conftest.err conftest.$ac_objext \
14729 conftest$ac_exeext
14730 if ${ac_cv_search_inet_aton+:} false; then :
14731 break
14733 done
14734 if ${ac_cv_search_inet_aton+:} false; then :
14736 else
14737 ac_cv_search_inet_aton=no
14739 rm conftest.$ac_ext
14740 LIBS=$ac_func_search_save_LIBS
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
14743 $as_echo "$ac_cv_search_inet_aton" >&6; }
14744 ac_res=$ac_cv_search_inet_aton
14745 if test "$ac_res" != no; then :
14746 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14751 for ac_func in \
14752 getaddrinfo \
14753 getnameinfo \
14754 getnetbyname \
14755 getprotobyname \
14756 getprotobynumber \
14757 getservbyport \
14758 inet_addr \
14759 inet_network \
14760 inet_ntop \
14761 inet_pton \
14762 sendmsg \
14763 socketpair \
14765 do :
14766 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14767 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14768 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14769 cat >>confdefs.h <<_ACEOF
14770 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14771 _ACEOF
14774 done
14777 ac_save_LIBS=$LIBS
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14779 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14780 if ${ac_cv_search_clock_gettime+:} false; then :
14781 $as_echo_n "(cached) " >&6
14782 else
14783 ac_func_search_save_LIBS=$LIBS
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14787 /* Override any GCC internal prototype to avoid an error.
14788 Use char because int might match the return type of a GCC
14789 builtin and then its argument prototype would still apply. */
14790 #ifdef __cplusplus
14791 extern "C"
14792 #endif
14793 char clock_gettime ();
14795 main ()
14797 return clock_gettime ();
14799 return 0;
14801 _ACEOF
14802 for ac_lib in '' rt; do
14803 if test -z "$ac_lib"; then
14804 ac_res="none required"
14805 else
14806 ac_res=-l$ac_lib
14807 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14809 if ac_fn_c_try_link "$LINENO"; then :
14810 ac_cv_search_clock_gettime=$ac_res
14812 rm -f core conftest.err conftest.$ac_objext \
14813 conftest$ac_exeext
14814 if ${ac_cv_search_clock_gettime+:} false; then :
14815 break
14817 done
14818 if ${ac_cv_search_clock_gettime+:} false; then :
14820 else
14821 ac_cv_search_clock_gettime=no
14823 rm conftest.$ac_ext
14824 LIBS=$ac_func_search_save_LIBS
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14827 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14828 ac_res=$ac_cv_search_clock_gettime
14829 if test "$ac_res" != no; then :
14830 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14832 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14834 test "$ac_res" = "none required" || RT_LIBS="$ac_res"
14838 LIBS=$ac_save_LIBS
14840 LDAP_LIBS=""
14842 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
14843 then
14844 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
14846 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
14848 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
14849 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
14850 $as_echo_n "(cached) " >&6
14851 else
14852 ac_check_lib_save_LIBS=$LIBS
14853 LIBS="-lldap_r $PTHREAD_LIBS $LIBS"
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14857 /* Override any GCC internal prototype to avoid an error.
14858 Use char because int might match the return type of a GCC
14859 builtin and then its argument prototype would still apply. */
14860 #ifdef __cplusplus
14861 extern "C"
14862 #endif
14863 char ldap_initialize ();
14865 main ()
14867 return ldap_initialize ();
14869 return 0;
14871 _ACEOF
14872 if ac_fn_c_try_link "$LINENO"; then :
14873 ac_cv_lib_ldap_r_ldap_initialize=yes
14874 else
14875 ac_cv_lib_ldap_r_ldap_initialize=no
14877 rm -f core conftest.err conftest.$ac_objext \
14878 conftest$ac_exeext conftest.$ac_ext
14879 LIBS=$ac_check_lib_save_LIBS
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
14882 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
14883 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
14885 $as_echo_n "checking for ber_init in -llber... " >&6; }
14886 if ${ac_cv_lib_lber_ber_init+:} false; then :
14887 $as_echo_n "(cached) " >&6
14888 else
14889 ac_check_lib_save_LIBS=$LIBS
14890 LIBS="-llber $PTHREAD_LIBS $LIBS"
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14894 /* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply. */
14897 #ifdef __cplusplus
14898 extern "C"
14899 #endif
14900 char ber_init ();
14902 main ()
14904 return ber_init ();
14906 return 0;
14908 _ACEOF
14909 if ac_fn_c_try_link "$LINENO"; then :
14910 ac_cv_lib_lber_ber_init=yes
14911 else
14912 ac_cv_lib_lber_ber_init=no
14914 rm -f core conftest.err conftest.$ac_objext \
14915 conftest$ac_exeext conftest.$ac_ext
14916 LIBS=$ac_check_lib_save_LIBS
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
14919 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
14920 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
14922 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
14924 LDAP_LIBS="-lldap_r -llber"
14931 ac_wine_check_funcs_save_LIBS="$LIBS"
14932 LIBS="$LIBS $LDAP_LIBS $PTHREAD_LIBS"
14933 for ac_func in \
14934 ldap_count_references \
14935 ldap_first_reference \
14936 ldap_next_reference \
14937 ldap_parse_reference \
14938 ldap_parse_sort_control \
14939 ldap_parse_sortresponse_control \
14940 ldap_parse_vlv_control \
14941 ldap_parse_vlvresponse_control
14942 do :
14943 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14944 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14945 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14946 cat >>confdefs.h <<_ACEOF
14947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14948 _ACEOF
14951 done
14953 LIBS="$ac_wine_check_funcs_save_LIBS"
14955 if test "x$LDAP_LIBS" = "x"; then :
14956 case "x$with_ldap" in
14957 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
14958 xno) ;;
14959 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
14960 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
14961 esac
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
14965 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
14966 if ${wine_cv_one_arg_mkdir+:} false; then :
14967 $as_echo_n "(cached) " >&6
14968 else
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971 #include <sys/stat.h>
14973 main ()
14975 mkdir("foo");
14977 return 0;
14979 _ACEOF
14980 if ac_fn_c_try_compile "$LINENO"; then :
14981 wine_cv_one_arg_mkdir=yes
14982 else
14983 wine_cv_one_arg_mkdir=no
14985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
14988 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
14989 if test "$wine_cv_one_arg_mkdir" = "yes"
14990 then
14992 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
14997 $as_echo_n "checking for sched_setaffinity... " >&6; }
14998 if ${wine_cv_have_sched_setaffinity+:} 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 <sched.h>
15006 main ()
15008 sched_setaffinity(0, 0, 0);
15010 return 0;
15012 _ACEOF
15013 if ac_fn_c_try_link "$LINENO"; then :
15014 wine_cv_have_sched_setaffinity=yes
15015 else
15016 wine_cv_have_sched_setaffinity=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_sched_setaffinity" >&5
15022 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
15023 if test "$wine_cv_have_sched_setaffinity" = "yes"
15024 then
15026 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
15031 $as_echo_n "checking for fallocate... " >&6; }
15032 if ${wine_cv_have_fallocate+:} false; then :
15033 $as_echo_n "(cached) " >&6
15034 else
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15037 #define _GNU_SOURCE
15038 #include <fcntl.h>
15040 main ()
15042 fallocate(-1, 0, 0, 0);
15044 return 0;
15046 _ACEOF
15047 if ac_fn_c_try_link "$LINENO"; then :
15048 wine_cv_have_fallocate=yes
15049 else
15050 wine_cv_have_fallocate=no
15052 rm -f core conftest.err conftest.$ac_objext \
15053 conftest$ac_exeext conftest.$ac_ext
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
15056 $as_echo "$wine_cv_have_fallocate" >&6; }
15057 if test "$wine_cv_have_fallocate" = "yes"
15058 then
15060 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15066 $as_echo_n "checking for inline... " >&6; }
15067 if ${ac_cv_c_inline+:} false; then :
15068 $as_echo_n "(cached) " >&6
15069 else
15070 ac_cv_c_inline=no
15071 for ac_kw in inline __inline__ __inline; do
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15074 #ifndef __cplusplus
15075 typedef int foo_t;
15076 static $ac_kw foo_t static_foo () {return 0; }
15077 $ac_kw foo_t foo () {return 0; }
15078 #endif
15080 _ACEOF
15081 if ac_fn_c_try_compile "$LINENO"; then :
15082 ac_cv_c_inline=$ac_kw
15084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085 test "$ac_cv_c_inline" != no && break
15086 done
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15090 $as_echo "$ac_cv_c_inline" >&6; }
15092 case $ac_cv_c_inline in
15093 inline | yes) ;;
15095 case $ac_cv_c_inline in
15096 no) ac_val=;;
15097 *) ac_val=$ac_cv_c_inline;;
15098 esac
15099 cat >>confdefs.h <<_ACEOF
15100 #ifndef __cplusplus
15101 #define inline $ac_val
15102 #endif
15103 _ACEOF
15105 esac
15107 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15108 if test "x$ac_cv_type_mode_t" = xyes; then :
15110 cat >>confdefs.h <<_ACEOF
15111 #define HAVE_MODE_T 1
15112 _ACEOF
15116 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15117 if test "x$ac_cv_type_off_t" = xyes; then :
15119 cat >>confdefs.h <<_ACEOF
15120 #define HAVE_OFF_T 1
15121 _ACEOF
15125 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15126 if test "x$ac_cv_type_pid_t" = xyes; then :
15128 cat >>confdefs.h <<_ACEOF
15129 #define HAVE_PID_T 1
15130 _ACEOF
15134 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15135 if test "x$ac_cv_type_size_t" = xyes; then :
15137 cat >>confdefs.h <<_ACEOF
15138 #define HAVE_SIZE_T 1
15139 _ACEOF
15143 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15144 if test "x$ac_cv_type_ssize_t" = xyes; then :
15146 cat >>confdefs.h <<_ACEOF
15147 #define HAVE_SSIZE_T 1
15148 _ACEOF
15152 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15153 if test "x$ac_cv_type_long_long" = xyes; then :
15155 cat >>confdefs.h <<_ACEOF
15156 #define HAVE_LONG_LONG 1
15157 _ACEOF
15161 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
15162 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15164 cat >>confdefs.h <<_ACEOF
15165 #define HAVE_FSBLKCNT_T 1
15166 _ACEOF
15170 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
15171 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15173 cat >>confdefs.h <<_ACEOF
15174 #define HAVE_FSFILCNT_T 1
15175 _ACEOF
15180 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
15181 #include <signal.h>
15183 if test "x$ac_cv_type_sigset_t" = xyes; then :
15185 cat >>confdefs.h <<_ACEOF
15186 #define HAVE_SIGSET_T 1
15187 _ACEOF
15192 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
15194 if test "x$ac_cv_type_request_sense" = xyes; then :
15196 cat >>confdefs.h <<_ACEOF
15197 #define HAVE_REQUEST_SENSE 1
15198 _ACEOF
15204 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
15205 #ifdef HAVE_SYS_SOCKET_H
15206 #include <sys/socket.h>
15207 #endif
15208 #ifdef HAVE_SYS_SOCKETVAR_H
15209 #include <sys/socketvar.h>
15210 #endif
15211 #ifdef HAVE_NET_ROUTE_H
15212 #include <net/route.h>
15213 #endif
15214 #ifdef HAVE_NETINET_IN_H
15215 #include <netinet/in.h>
15216 #endif
15217 #ifdef HAVE_NETINET_IN_SYSTM_H
15218 #include <netinet/in_systm.h>
15219 #endif
15220 #ifdef HAVE_NETINET_IP_H
15221 #include <netinet/ip.h>
15222 #endif
15223 #ifdef HAVE_NETINET_IN_PCB_H
15224 #include <netinet/in_pcb.h>
15225 #endif
15227 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
15229 cat >>confdefs.h <<_ACEOF
15230 #define HAVE_STRUCT_XINPGEN 1
15231 _ACEOF
15237 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#ifdef HAVE_LINK_H
15238 #include <link.h>
15239 #endif
15240 #ifdef HAVE_SYS_LINK_H
15241 #include <sys/link.h>
15242 #endif
15244 if test "x$ac_cv_type_struct_r_debug" = xyes; then :
15246 cat >>confdefs.h <<_ACEOF
15247 #define HAVE_STRUCT_R_DEBUG 1
15248 _ACEOF
15252 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
15253 #include <link.h>
15254 #endif
15255 #ifdef HAVE_SYS_LINK_H
15256 #include <sys/link.h>
15257 #endif
15259 if test "x$ac_cv_type_struct_link_map" = xyes; then :
15261 cat >>confdefs.h <<_ACEOF
15262 #define HAVE_STRUCT_LINK_MAP 1
15263 _ACEOF
15269 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
15270 #include <linux/input.h>
15271 #endif
15273 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
15275 cat >>confdefs.h <<_ACEOF
15276 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15277 _ACEOF
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
15284 $as_echo_n "checking for sigaddset... " >&6; }
15285 if ${wine_cv_have_sigaddset+:} false; then :
15286 $as_echo_n "(cached) " >&6
15287 else
15288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289 /* end confdefs.h. */
15290 #include <signal.h>
15292 main ()
15294 sigset_t set; sigaddset(&set,SIGTERM);
15296 return 0;
15298 _ACEOF
15299 if ac_fn_c_try_link "$LINENO"; then :
15300 wine_cv_have_sigaddset=yes
15301 else
15302 wine_cv_have_sigaddset=no
15304 rm -f core conftest.err conftest.$ac_objext \
15305 conftest$ac_exeext conftest.$ac_ext
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
15308 $as_echo "$wine_cv_have_sigaddset" >&6; }
15309 if test "$wine_cv_have_sigaddset" = "yes"
15310 then
15312 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15318 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
15319 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
15320 $as_echo_n "(cached) " >&6
15321 else
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323 /* end confdefs.h. */
15324 #include <netdb.h>
15326 main ()
15329 char *name=0;
15330 struct hostent he;
15331 struct hostent *result;
15332 char *buf=0;
15333 int bufsize=0;
15334 int errnr;
15335 char *addr=0;
15336 int addrlen=0;
15337 int addrtype=0;
15338 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15339 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15342 return 0;
15344 _ACEOF
15345 if ac_fn_c_try_link "$LINENO"; then :
15346 wine_cv_linux_gethostbyname_r_6=yes
15347 else
15348 wine_cv_linux_gethostbyname_r_6=no
15351 rm -f core conftest.err conftest.$ac_objext \
15352 conftest$ac_exeext conftest.$ac_ext
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15356 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15357 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15358 then
15360 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15364 if test "$ac_cv_header_linux_joystick_h" = "yes"
15365 then
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15367 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15368 if ${wine_cv_linux_joystick_22_api+:} false; then :
15369 $as_echo_n "(cached) " >&6
15370 else
15371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15372 /* end confdefs.h. */
15374 #include <sys/ioctl.h>
15375 #include <sys/types.h>
15376 #include <linux/joystick.h>
15378 struct js_event blub;
15379 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15380 #error "no 2.2 header"
15381 #endif
15384 main ()
15386 /*empty*/
15388 return 0;
15390 _ACEOF
15391 if ac_fn_c_try_compile "$LINENO"; then :
15392 wine_cv_linux_joystick_22_api=yes
15393 else
15394 wine_cv_linux_joystick_22_api=no
15396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15400 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15401 if test "$wine_cv_linux_joystick_22_api" = "yes"
15402 then
15404 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15410 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15411 #ifdef HAVE_SYS_PARAM_H
15412 # include <sys/param.h>
15413 #endif
15414 #ifdef HAVE_SYS_MOUNT_H
15415 # include <sys/mount.h>
15416 #endif
15417 #ifdef HAVE_SYS_VFS_H
15418 # include <sys/vfs.h>
15419 #endif
15420 #ifdef HAVE_SYS_STATFS_H
15421 # include <sys/statfs.h>
15422 #endif
15424 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15426 cat >>confdefs.h <<_ACEOF
15427 #define HAVE_STRUCT_STATFS_F_BFREE 1
15428 _ACEOF
15432 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15433 #ifdef HAVE_SYS_PARAM_H
15434 # include <sys/param.h>
15435 #endif
15436 #ifdef HAVE_SYS_MOUNT_H
15437 # include <sys/mount.h>
15438 #endif
15439 #ifdef HAVE_SYS_VFS_H
15440 # include <sys/vfs.h>
15441 #endif
15442 #ifdef HAVE_SYS_STATFS_H
15443 # include <sys/statfs.h>
15444 #endif
15446 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15448 cat >>confdefs.h <<_ACEOF
15449 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15450 _ACEOF
15454 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15455 #ifdef HAVE_SYS_PARAM_H
15456 # include <sys/param.h>
15457 #endif
15458 #ifdef HAVE_SYS_MOUNT_H
15459 # include <sys/mount.h>
15460 #endif
15461 #ifdef HAVE_SYS_VFS_H
15462 # include <sys/vfs.h>
15463 #endif
15464 #ifdef HAVE_SYS_STATFS_H
15465 # include <sys/statfs.h>
15466 #endif
15468 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15470 cat >>confdefs.h <<_ACEOF
15471 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15472 _ACEOF
15476 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15477 #ifdef HAVE_SYS_PARAM_H
15478 # include <sys/param.h>
15479 #endif
15480 #ifdef HAVE_SYS_MOUNT_H
15481 # include <sys/mount.h>
15482 #endif
15483 #ifdef HAVE_SYS_VFS_H
15484 # include <sys/vfs.h>
15485 #endif
15486 #ifdef HAVE_SYS_STATFS_H
15487 # include <sys/statfs.h>
15488 #endif
15490 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15492 cat >>confdefs.h <<_ACEOF
15493 #define HAVE_STRUCT_STATFS_F_FFREE 1
15494 _ACEOF
15498 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15499 #ifdef HAVE_SYS_PARAM_H
15500 # include <sys/param.h>
15501 #endif
15502 #ifdef HAVE_SYS_MOUNT_H
15503 # include <sys/mount.h>
15504 #endif
15505 #ifdef HAVE_SYS_VFS_H
15506 # include <sys/vfs.h>
15507 #endif
15508 #ifdef HAVE_SYS_STATFS_H
15509 # include <sys/statfs.h>
15510 #endif
15512 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15514 cat >>confdefs.h <<_ACEOF
15515 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15516 _ACEOF
15520 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15521 #ifdef HAVE_SYS_PARAM_H
15522 # include <sys/param.h>
15523 #endif
15524 #ifdef HAVE_SYS_MOUNT_H
15525 # include <sys/mount.h>
15526 #endif
15527 #ifdef HAVE_SYS_VFS_H
15528 # include <sys/vfs.h>
15529 #endif
15530 #ifdef HAVE_SYS_STATFS_H
15531 # include <sys/statfs.h>
15532 #endif
15534 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15536 cat >>confdefs.h <<_ACEOF
15537 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15538 _ACEOF
15544 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15545 #include <sys/statvfs.h>
15546 #endif
15548 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15550 cat >>confdefs.h <<_ACEOF
15551 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15552 _ACEOF
15558 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15559 #include <dirent.h>
15560 #endif
15562 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15564 cat >>confdefs.h <<_ACEOF
15565 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15566 _ACEOF
15572 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15573 #ifdef HAVE_SYS_SOCKET_H
15574 # include <sys/socket.h>
15575 #endif
15576 #ifdef HAVE_SYS_UN_H
15577 # include <sys/un.h>
15578 #endif
15580 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15582 cat >>confdefs.h <<_ACEOF
15583 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15584 _ACEOF
15588 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15589 #ifdef HAVE_SYS_SOCKET_H
15590 # include <sys/socket.h>
15591 #endif
15592 #ifdef HAVE_SYS_UN_H
15593 # include <sys/un.h>
15594 #endif
15596 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15598 cat >>confdefs.h <<_ACEOF
15599 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15600 _ACEOF
15604 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15605 #ifdef HAVE_SYS_SOCKET_H
15606 # include <sys/socket.h>
15607 #endif
15608 #ifdef HAVE_SYS_UN_H
15609 # include <sys/un.h>
15610 #endif
15612 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15614 cat >>confdefs.h <<_ACEOF
15615 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15616 _ACEOF
15622 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15623 #ifdef HAVE_SCSI_SG_H
15624 #include <scsi/sg.h>
15625 #endif
15627 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15629 cat >>confdefs.h <<_ACEOF
15630 #define HAVE_SCSIREQ_T_CMD 1
15631 _ACEOF
15635 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>
15636 #ifdef HAVE_SCSI_SG_H
15637 #include <scsi/sg.h>
15638 #endif
15640 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15642 cat >>confdefs.h <<_ACEOF
15643 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15644 _ACEOF
15650 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15652 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15654 cat >>confdefs.h <<_ACEOF
15655 #define HAVE_SIGINFO_T_SI_FD 1
15656 _ACEOF
15662 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15663 #ifdef HAVE_SYS_MTIO_H
15664 #include <sys/mtio.h>
15665 #endif
15667 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15669 cat >>confdefs.h <<_ACEOF
15670 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15671 _ACEOF
15675 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
15676 #ifdef HAVE_SYS_MTIO_H
15677 #include <sys/mtio.h>
15678 #endif
15680 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
15682 cat >>confdefs.h <<_ACEOF
15683 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
15684 _ACEOF
15688 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
15689 #ifdef HAVE_SYS_MTIO_H
15690 #include <sys/mtio.h>
15691 #endif
15693 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
15695 cat >>confdefs.h <<_ACEOF
15696 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
15697 _ACEOF
15703 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
15704 #include <getopt.h>
15705 #endif
15707 if test "x$ac_cv_member_struct_option_name" = xyes; then :
15709 cat >>confdefs.h <<_ACEOF
15710 #define HAVE_STRUCT_OPTION_NAME 1
15711 _ACEOF
15717 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
15718 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
15720 cat >>confdefs.h <<_ACEOF
15721 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15722 _ACEOF
15726 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15727 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
15729 cat >>confdefs.h <<_ACEOF
15730 #define HAVE_STRUCT_STAT_ST_MTIM 1
15731 _ACEOF
15735 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15736 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
15738 cat >>confdefs.h <<_ACEOF
15739 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
15740 _ACEOF
15744 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
15745 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
15747 cat >>confdefs.h <<_ACEOF
15748 #define HAVE_STRUCT_STAT_ST_CTIM 1
15749 _ACEOF
15753 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
15754 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
15756 cat >>confdefs.h <<_ACEOF
15757 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
15758 _ACEOF
15762 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
15763 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
15765 cat >>confdefs.h <<_ACEOF
15766 #define HAVE_STRUCT_STAT_ST_ATIM 1
15767 _ACEOF
15771 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
15772 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
15774 cat >>confdefs.h <<_ACEOF
15775 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
15776 _ACEOF
15780 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
15781 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
15783 cat >>confdefs.h <<_ACEOF
15784 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
15785 _ACEOF
15789 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
15790 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
15792 cat >>confdefs.h <<_ACEOF
15793 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
15794 _ACEOF
15798 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
15799 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
15801 cat >>confdefs.h <<_ACEOF
15802 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
15803 _ACEOF
15807 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
15808 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
15810 cat >>confdefs.h <<_ACEOF
15811 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
15812 _ACEOF
15816 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
15817 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
15819 cat >>confdefs.h <<_ACEOF
15820 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
15821 _ACEOF
15827 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
15828 #include <sys/types.h>
15829 #endif
15830 #ifdef HAVE_NETINET_IN_H
15831 #include <netinet/in.h>
15832 #endif
15834 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15836 cat >>confdefs.h <<_ACEOF
15837 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15838 _ACEOF
15844 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
15845 #include <resolv.h>
15846 #endif
15848 if test "x$ac_cv_type_struct___res_state" = xyes; then :
15850 cat >>confdefs.h <<_ACEOF
15851 #define HAVE_STRUCT___RES_STATE 1
15852 _ACEOF
15858 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
15859 #include <resolv.h>
15860 #endif
15862 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
15864 cat >>confdefs.h <<_ACEOF
15865 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
15866 _ACEOF
15872 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
15873 #include <sys/types.h>
15874 #endif
15875 #ifdef HAVE_NETINET_IN_H
15876 # include <netinet/in.h>
15877 #endif
15878 #ifdef HAVE_ARPA_NAMESER_H
15879 # include <arpa/nameser.h>
15880 #endif
15882 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
15884 cat >>confdefs.h <<_ACEOF
15885 #define HAVE_NS_MSG__MSG_PTR 1
15886 _ACEOF
15892 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
15893 #include <sys/types.h>
15894 #endif
15895 #ifdef HAVE_NETINET_IP_H
15896 #include <netinet/ip.h>
15897 #endif
15898 #ifdef HAVE_NETINET_IP_ICMP_H
15899 #include <netinet/ip_icmp.h>
15900 #endif
15901 #ifdef HAVE_NETINET_ICMP_VAR_H
15902 #include <netinet/icmp_var.h>
15903 #endif
15905 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
15907 cat >>confdefs.h <<_ACEOF
15908 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
15909 _ACEOF
15915 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
15916 #include <sys/types.h>
15917 #endif
15918 #ifdef HAVE_ALIAS_H
15919 #include <alias.h>
15920 #endif
15921 #ifdef HAVE_SYS_SOCKET_H
15922 #include <sys/socket.h>
15923 #endif
15924 #ifdef HAVE_SYS_SOCKETVAR_H
15925 #include <sys/socketvar.h>
15926 #endif
15927 #ifdef HAVE_SYS_TIMEOUT_H
15928 #include <sys/timeout.h>
15929 #endif
15930 #ifdef HAVE_NETINET_IN_H
15931 #include <netinet/in.h>
15932 #endif
15933 #ifdef HAVE_NETINET_IN_SYSTM_H
15934 #include <netinet/in_systm.h>
15935 #endif
15936 #ifdef HAVE_NETINET_IP_H
15937 #include <netinet/ip.h>
15938 #endif
15939 #ifdef HAVE_NETINET_IP_VAR_H
15940 #include <netinet/ip_var.h>
15941 #endif
15942 #ifdef HAVE_NETINET_IP_ICMP_H
15943 #include <netinet/ip_icmp.h>
15944 #endif
15945 #ifdef HAVE_NETINET_ICMP_VAR_H
15946 #include <netinet/icmp_var.h>
15947 #endif
15949 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
15951 cat >>confdefs.h <<_ACEOF
15952 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
15953 _ACEOF
15959 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
15960 #include <sys/types.h>
15961 #endif
15962 #ifdef HAVE_SYS_SOCKETVAR_H
15963 #include <sys/socketvar.h>
15964 #endif
15965 #ifdef HAVE_NETINET_IN_H
15966 #include <netinet/in.h>
15967 #endif
15968 #ifdef HAVE_NETINET_IP_VAR_H
15969 #include <netinet/ip_var.h>
15970 #endif
15972 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
15974 cat >>confdefs.h <<_ACEOF
15975 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
15976 _ACEOF
15982 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
15983 #include <netinet/ip_var.h>
15984 #endif
15986 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
15988 cat >>confdefs.h <<_ACEOF
15989 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
15990 _ACEOF
15996 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
15997 #include <sys/types.h>
15998 #endif
15999 #ifdef HAVE_SYS_SOCKETVAR_H
16000 #include <sys/socketvar.h>
16001 #endif
16002 #ifdef HAVE_NETINET_IN_H
16003 #include <netinet/in.h>
16004 #endif
16005 #ifdef HAVE_NETINET_TCP_H
16006 #include <netinet/tcp.h>
16007 #endif
16008 #ifdef HAVE_NETINET_TCP_VAR_H
16009 #include <netinet/tcp_var.h>
16010 #endif
16012 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
16014 cat >>confdefs.h <<_ACEOF
16015 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
16016 _ACEOF
16022 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
16023 #include <netinet/tcp_var.h>
16024 #endif
16026 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
16028 cat >>confdefs.h <<_ACEOF
16029 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
16030 _ACEOF
16036 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
16037 #include <sys/types.h>
16038 #endif
16039 #ifdef HAVE_NETINET_IN_H
16040 #include <netinet/in.h>
16041 #endif
16042 #ifdef HAVE_NETINET_IP_VAR_H
16043 #include <netinet/ip_var.h>
16044 #endif
16045 #ifdef HAVE_NETINET_UDP_H
16046 #include <netinet/udp.h>
16047 #endif
16048 #ifdef HAVE_NETINET_UDP_VAR_H
16049 #include <netinet/udp_var.h>
16050 #endif
16052 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
16054 cat >>confdefs.h <<_ACEOF
16055 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
16056 _ACEOF
16062 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
16063 #include <sys/types.h>
16064 #endif
16065 #ifdef HAVE_NET_IF_H
16066 # include <net/if.h>
16067 #endif
16069 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
16071 cat >>confdefs.h <<_ACEOF
16072 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16073 _ACEOF
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16080 $as_echo_n "checking for timezone variable... " >&6; }
16081 if ${ac_cv_have_timezone+:} false; then :
16082 $as_echo_n "(cached) " >&6
16083 else
16084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h. */
16086 #include <time.h>
16088 main ()
16090 timezone = 1
16092 return 0;
16094 _ACEOF
16095 if ac_fn_c_try_link "$LINENO"; then :
16096 ac_cv_have_timezone="yes"
16097 else
16098 ac_cv_have_timezone="no"
16100 rm -f core conftest.err conftest.$ac_objext \
16101 conftest$ac_exeext conftest.$ac_ext
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
16104 $as_echo "$ac_cv_have_timezone" >&6; }
16105 if test "$ac_cv_have_timezone" = "yes"
16106 then
16108 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
16112 $as_echo_n "checking for daylight variable... " >&6; }
16113 if ${ac_cv_have_daylight+:} false; then :
16114 $as_echo_n "(cached) " >&6
16115 else
16116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h. */
16118 #include <time.h>
16120 main ()
16122 daylight = 1
16124 return 0;
16126 _ACEOF
16127 if ac_fn_c_try_link "$LINENO"; then :
16128 ac_cv_have_daylight="yes"
16129 else
16130 ac_cv_have_daylight="no"
16132 rm -f core conftest.err conftest.$ac_objext \
16133 conftest$ac_exeext conftest.$ac_ext
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
16136 $as_echo "$ac_cv_have_daylight" >&6; }
16137 if test "$ac_cv_have_daylight" = "yes"
16138 then
16140 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16144 ac_save_LIBS="$LIBS"
16145 LIBS="$LIBS -lm"
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
16147 $as_echo_n "checking for isfinite... " >&6; }
16148 if ${ac_cv_have_isfinite+:} false; then :
16149 $as_echo_n "(cached) " >&6
16150 else
16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h. */
16153 #define _GNU_SOURCE
16154 #include <math.h>
16156 main ()
16158 float f = 0.0; return isfinite(f)
16160 return 0;
16162 _ACEOF
16163 if ac_fn_c_try_link "$LINENO"; then :
16164 ac_cv_have_isfinite="yes"
16165 else
16166 ac_cv_have_isfinite="no"
16168 rm -f core conftest.err conftest.$ac_objext \
16169 conftest$ac_exeext conftest.$ac_ext
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isfinite" >&5
16172 $as_echo "$ac_cv_have_isfinite" >&6; }
16173 if test "$ac_cv_have_isfinite" = "yes"
16174 then
16176 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16180 ac_save_LIBS="$LIBS"
16181 LIBS="$LIBS -lm"
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16183 $as_echo_n "checking for isinf... " >&6; }
16184 if ${ac_cv_have_isinf+:} false; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16189 #include <math.h>
16191 main ()
16193 float f = 0.0; return isinf(f)
16195 return 0;
16197 _ACEOF
16198 if ac_fn_c_try_link "$LINENO"; then :
16199 ac_cv_have_isinf="yes"
16200 else
16201 ac_cv_have_isinf="no"
16203 rm -f core conftest.err conftest.$ac_objext \
16204 conftest$ac_exeext conftest.$ac_ext
16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
16207 $as_echo "$ac_cv_have_isinf" >&6; }
16208 if test "$ac_cv_have_isinf" = "yes"
16209 then
16211 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16216 $as_echo_n "checking for isnan... " >&6; }
16217 if ${ac_cv_have_isnan+:} false; then :
16218 $as_echo_n "(cached) " >&6
16219 else
16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* end confdefs.h. */
16222 #include <math.h>
16224 main ()
16226 float f = 0.0; return isnan(f)
16228 return 0;
16230 _ACEOF
16231 if ac_fn_c_try_link "$LINENO"; then :
16232 ac_cv_have_isnan="yes"
16233 else
16234 ac_cv_have_isnan="no"
16236 rm -f core conftest.err conftest.$ac_objext \
16237 conftest$ac_exeext conftest.$ac_ext
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
16240 $as_echo "$ac_cv_have_isnan" >&6; }
16241 if test "$ac_cv_have_isnan" = "yes"
16242 then
16244 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16247 LIBS="$ac_save_LIBS"
16250 case $host_cpu in
16251 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
16252 $as_echo_n "checking whether we need to define __i386__... " >&6; }
16253 if ${ac_cv_cpp_def___i386__+:} false; then :
16254 $as_echo_n "(cached) " >&6
16255 else
16256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16257 /* end confdefs.h. */
16258 #ifndef __i386__
16260 #endif
16261 _ACEOF
16262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16263 $EGREP "yes" >/dev/null 2>&1; then :
16264 ac_cv_cpp_def___i386__=yes
16265 else
16266 ac_cv_cpp_def___i386__=no
16268 rm -f conftest*
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
16272 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
16273 if test "x$ac_cv_cpp_def___i386__" = xyes; then :
16274 CFLAGS="$CFLAGS -D__i386__"
16275 LINTFLAGS="$LINTFLAGS -D__i386__"
16276 fi ;;
16277 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
16278 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
16279 if ${ac_cv_cpp_def___x86_64__+:} false; then :
16280 $as_echo_n "(cached) " >&6
16281 else
16282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16283 /* end confdefs.h. */
16284 #ifndef __x86_64__
16286 #endif
16287 _ACEOF
16288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16289 $EGREP "yes" >/dev/null 2>&1; then :
16290 ac_cv_cpp_def___x86_64__=yes
16291 else
16292 ac_cv_cpp_def___x86_64__=no
16294 rm -f conftest*
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
16298 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
16299 if test "x$ac_cv_cpp_def___x86_64__" = xyes; then :
16300 CFLAGS="$CFLAGS -D__x86_64__"
16301 LINTFLAGS="$LINTFLAGS -D__x86_64__"
16302 fi ;;
16303 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
16304 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
16305 if ${ac_cv_cpp_def___sparc64__+:} false; then :
16306 $as_echo_n "(cached) " >&6
16307 else
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309 /* end confdefs.h. */
16310 #ifndef __sparc64__
16312 #endif
16313 _ACEOF
16314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16315 $EGREP "yes" >/dev/null 2>&1; then :
16316 ac_cv_cpp_def___sparc64__=yes
16317 else
16318 ac_cv_cpp_def___sparc64__=no
16320 rm -f conftest*
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
16324 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
16325 if test "x$ac_cv_cpp_def___sparc64__" = xyes; then :
16326 CFLAGS="$CFLAGS -D__sparc64__"
16327 LINTFLAGS="$LINTFLAGS -D__sparc64__"
16328 fi ;;
16329 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
16330 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
16331 if ${ac_cv_cpp_def___sparc__+:} false; then :
16332 $as_echo_n "(cached) " >&6
16333 else
16334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16335 /* end confdefs.h. */
16336 #ifndef __sparc__
16338 #endif
16339 _ACEOF
16340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16341 $EGREP "yes" >/dev/null 2>&1; then :
16342 ac_cv_cpp_def___sparc__=yes
16343 else
16344 ac_cv_cpp_def___sparc__=no
16346 rm -f conftest*
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
16350 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
16351 if test "x$ac_cv_cpp_def___sparc__" = xyes; then :
16352 CFLAGS="$CFLAGS -D__sparc__"
16353 LINTFLAGS="$LINTFLAGS -D__sparc__"
16354 fi ;;
16355 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
16356 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
16357 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
16358 $as_echo_n "(cached) " >&6
16359 else
16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h. */
16362 #ifndef __powerpc64__
16364 #endif
16365 _ACEOF
16366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16367 $EGREP "yes" >/dev/null 2>&1; then :
16368 ac_cv_cpp_def___powerpc64__=yes
16369 else
16370 ac_cv_cpp_def___powerpc64__=no
16372 rm -f conftest*
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
16376 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
16377 if test "x$ac_cv_cpp_def___powerpc64__" = xyes; then :
16378 CFLAGS="$CFLAGS -D__powerpc64__"
16379 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
16380 fi ;;
16381 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
16382 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16383 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16384 $as_echo_n "(cached) " >&6
16385 else
16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387 /* end confdefs.h. */
16388 #ifndef __powerpc__
16390 #endif
16391 _ACEOF
16392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16393 $EGREP "yes" >/dev/null 2>&1; then :
16394 ac_cv_cpp_def___powerpc__=yes
16395 else
16396 ac_cv_cpp_def___powerpc__=no
16398 rm -f conftest*
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16402 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16403 if test "x$ac_cv_cpp_def___powerpc__" = xyes; then :
16404 CFLAGS="$CFLAGS -D__powerpc__"
16405 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16406 fi ;;
16407 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16408 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16409 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16410 $as_echo_n "(cached) " >&6
16411 else
16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413 /* end confdefs.h. */
16414 #ifndef __aarch64__
16416 #endif
16417 _ACEOF
16418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16419 $EGREP "yes" >/dev/null 2>&1; then :
16420 ac_cv_cpp_def___aarch64__=yes
16421 else
16422 ac_cv_cpp_def___aarch64__=no
16424 rm -f conftest*
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16428 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16429 if test "x$ac_cv_cpp_def___aarch64__" = xyes; then :
16430 CFLAGS="$CFLAGS -D__aarch64__"
16431 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16432 fi ;;
16433 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16434 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16435 if ${ac_cv_cpp_def___arm__+:} false; then :
16436 $as_echo_n "(cached) " >&6
16437 else
16438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16439 /* end confdefs.h. */
16440 #ifndef __arm__
16442 #endif
16443 _ACEOF
16444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16445 $EGREP "yes" >/dev/null 2>&1; then :
16446 ac_cv_cpp_def___arm__=yes
16447 else
16448 ac_cv_cpp_def___arm__=no
16450 rm -f conftest*
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16454 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16455 if test "x$ac_cv_cpp_def___arm__" = xyes; then :
16456 CFLAGS="$CFLAGS -D__arm__"
16457 LINTFLAGS="$LINTFLAGS -D__arm__"
16458 fi ;;
16459 esac
16461 case $host_vendor in
16462 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16463 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16464 if ${ac_cv_cpp_def___sun__+:} false; then :
16465 $as_echo_n "(cached) " >&6
16466 else
16467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468 /* end confdefs.h. */
16469 #ifndef __sun__
16471 #endif
16472 _ACEOF
16473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16474 $EGREP "yes" >/dev/null 2>&1; then :
16475 ac_cv_cpp_def___sun__=yes
16476 else
16477 ac_cv_cpp_def___sun__=no
16479 rm -f conftest*
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16483 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16484 if test "x$ac_cv_cpp_def___sun__" = xyes; then :
16485 CFLAGS="$CFLAGS -D__sun__"
16486 LINTFLAGS="$LINTFLAGS -D__sun__"
16487 fi ;;
16488 esac
16494 ac_config_commands="$ac_config_commands include/stamp-h"
16496 $as_echo_n "creating Makefile rules..." >&6
16498 ALL_VARS_RULES="OPENGL_LIBS = $OPENGL_LIBS
16499 SOCKET_LIBS = $SOCKET_LIBS
16500 COREFOUNDATION_LIBS = $COREFOUNDATION_LIBS
16501 IOKIT_LIBS = $IOKIT_LIBS
16502 FORCEFEEDBACK_LIBS = $FORCEFEEDBACK_LIBS
16503 APPLICATIONSERVICES_LIBS = $APPLICATIONSERVICES_LIBS
16504 CORESERVICES_LIBS = $CORESERVICES_LIBS
16505 APPKIT_LIBS = $APPKIT_LIBS
16506 DISKARBITRATION_LIBS = $DISKARBITRATION_LIBS
16507 SECURITY_LIBS = $SECURITY_LIBS
16508 COREAUDIO_LIBS = $COREAUDIO_LIBS
16509 OPENAL_LIBS = $OPENAL_LIBS
16510 OPENCL_LIBS = $OPENCL_LIBS
16511 QUICKTIME_LIBS = $QUICKTIME_LIBS
16512 CARBON_LIBS = $CARBON_LIBS
16513 PTHREAD_LIBS = $PTHREAD_LIBS
16514 X_CFLAGS = $X_CFLAGS
16515 X_PRE_LIBS = $X_PRE_LIBS
16516 X_LIBS = $X_LIBS
16517 X_EXTRA_LIBS = $X_EXTRA_LIBS
16518 XML2_CFLAGS = $XML2_CFLAGS
16519 XML2_LIBS = $XML2_LIBS
16520 XSLT_CFLAGS = $XSLT_CFLAGS
16521 XSLT_LIBS = $XSLT_LIBS
16522 DBUS_CFLAGS = $DBUS_CFLAGS
16523 DBUS_LIBS = $DBUS_LIBS
16524 HAL_CFLAGS = $HAL_CFLAGS
16525 HAL_LIBS = $HAL_LIBS
16526 GNUTLS_CFLAGS = $GNUTLS_CFLAGS
16527 GNUTLS_LIBS = $GNUTLS_LIBS
16528 SANE_CFLAGS = $SANE_CFLAGS
16529 SANE_LIBS = $SANE_LIBS
16530 GPHOTO2_CFLAGS = $GPHOTO2_CFLAGS
16531 GPHOTO2_LIBS = $GPHOTO2_LIBS
16532 GPHOTO2_PORT_CFLAGS = $GPHOTO2_PORT_CFLAGS
16533 GPHOTO2_PORT_LIBS = $GPHOTO2_PORT_LIBS
16534 RESOLV_LIBS = $RESOLV_LIBS
16535 LCMS2_CFLAGS = $LCMS2_CFLAGS
16536 LCMS2_LIBS = $LCMS2_LIBS
16537 FREETYPE_CFLAGS = $FREETYPE_CFLAGS
16538 FREETYPE_LIBS = $FREETYPE_LIBS
16539 Z_LIBS = $Z_LIBS
16540 GETTEXTPO_LIBS = $GETTEXTPO_LIBS
16541 GSTREAMER_CFLAGS = $GSTREAMER_CFLAGS
16542 GSTREAMER_LIBS = $GSTREAMER_LIBS
16543 ALSA_LIBS = $ALSA_LIBS
16544 OSS4_CFLAGS = $OSS4_CFLAGS
16545 CAPI20_CFLAGS = $CAPI20_CFLAGS
16546 CAPI20_LIBS = $CAPI20_LIBS
16547 CUPS_CFLAGS = $CUPS_CFLAGS
16548 FONTCONFIG_CFLAGS = $FONTCONFIG_CFLAGS
16549 FONTCONFIG_LIBS = $FONTCONFIG_LIBS
16550 JPEG_CFLAGS = $JPEG_CFLAGS
16551 JPEG_LIBS = $JPEG_LIBS
16552 PNG_CFLAGS = $PNG_CFLAGS
16553 PNG_LIBS = $PNG_LIBS
16554 TIFF_CFLAGS = $TIFF_CFLAGS
16555 TIFF_LIBS = $TIFF_LIBS
16556 MPG123_CFLAGS = $MPG123_CFLAGS
16557 MPG123_LIBS = $MPG123_LIBS
16558 KSTAT_LIBS = $KSTAT_LIBS
16559 PROCSTAT_LIBS = $PROCSTAT_LIBS
16560 DL_LIBS = $DL_LIBS
16561 POLL_LIBS = $POLL_LIBS
16562 RT_LIBS = $RT_LIBS
16563 LDAP_LIBS = $LDAP_LIBS
16568 wine_fn_append_rule "
16569 # Rules automatically generated by configure
16571 CLEAN_FILES = *.o *.a *.so *.res *.fake *.ok *.tab.[ch] *.yy.c
16573 .INIT: Makefile
16574 .MAKEFILEDEPS:
16575 all: Makefile
16576 Makefile: $srcdir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
16577 @./config.status Make.tmp Makefile && \$(MAKEDEP) ."
16579 test "$srcdir" = . && wine_fn_append_rule "all: .gitignore
16580 .gitignore: config.status
16581 @./config.status .gitignore"
16583 test -n "$CROSSTARGET" || wine_fn_append_rule "crosstest:
16584 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16586 if test "x$enable_fonts" != xno; then
16587 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16588 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16589 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16590 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16591 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16593 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16594 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16595 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16596 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16597 ac_config_links="$ac_config_links wine:tools/winewrapper"
16598 wine_fn_config_symlink wine
16599 if test "x$enable_win64" != xno; then
16600 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16601 wine_fn_config_symlink wine64
16604 wine_fn_config_dll acledit enable_acledit
16605 wine_fn_config_dll aclui enable_aclui implib
16606 wine_fn_config_dll activeds enable_activeds implib
16607 wine_fn_config_dll actxprxy enable_actxprxy clean
16608 wine_fn_config_lib adsiid
16609 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
16610 wine_fn_config_test dlls/advapi32/tests advapi32_test
16611 wine_fn_config_dll advpack enable_advpack implib
16612 wine_fn_config_test dlls/advpack/tests advpack_test
16613 wine_fn_config_dll amstream enable_amstream clean
16614 wine_fn_config_test dlls/amstream/tests amstream_test
16615 wine_fn_config_dll api-ms-win-core-com-l1-1-0 enable_api_ms_win_core_com_l1_1_0
16616 wine_fn_config_dll api-ms-win-core-console-l1-1-0 enable_api_ms_win_core_console_l1_1_0
16617 wine_fn_config_dll api-ms-win-core-debug-l1-1-1 enable_api_ms_win_core_debug_l1_1_1
16618 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-1 enable_api_ms_win_core_errorhandling_l1_1_1
16619 wine_fn_config_dll api-ms-win-core-file-l1-2-0 enable_api_ms_win_core_file_l1_2_0
16620 wine_fn_config_dll api-ms-win-core-handle-l1-1-0 enable_api_ms_win_core_handle_l1_1_0
16621 wine_fn_config_dll api-ms-win-core-heap-l1-2-0 enable_api_ms_win_core_heap_l1_2_0
16622 wine_fn_config_dll api-ms-win-core-heap-obsolete-l1-1-0 enable_api_ms_win_core_heap_obsolete_l1_1_0
16623 wine_fn_config_dll api-ms-win-core-interlocked-l1-2-0 enable_api_ms_win_core_interlocked_l1_2_0
16624 wine_fn_config_dll api-ms-win-core-io-l1-1-1 enable_api_ms_win_core_io_l1_1_1
16625 wine_fn_config_dll api-ms-win-core-kernel32-legacy-l1-1-0 enable_api_ms_win_core_kernel32_legacy_l1_1_0
16626 wine_fn_config_dll api-ms-win-core-libraryloader-l1-1-1 enable_api_ms_win_core_libraryloader_l1_1_1
16627 wine_fn_config_dll api-ms-win-core-localization-l1-2-0 enable_api_ms_win_core_localization_l1_2_0
16628 wine_fn_config_dll api-ms-win-core-localization-obsolete-l1-1-0 enable_api_ms_win_core_localization_obsolete_l1_1_0
16629 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
16630 wine_fn_config_dll api-ms-win-core-memory-l1-1-1 enable_api_ms_win_core_memory_l1_1_1
16631 wine_fn_config_dll api-ms-win-core-namedpipe-l1-2-0 enable_api_ms_win_core_namedpipe_l1_2_0
16632 wine_fn_config_dll api-ms-win-core-processenvironment-l1-2-0 enable_api_ms_win_core_processenvironment_l1_2_0
16633 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
16634 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-1 enable_api_ms_win_core_processthreads_l1_1_1
16635 wine_fn_config_dll api-ms-win-core-profile-l1-1-0 enable_api_ms_win_core_profile_l1_1_0
16636 wine_fn_config_dll api-ms-win-core-psapi-l1-1-0 enable_api_ms_win_core_psapi_l1_1_0
16637 wine_fn_config_dll api-ms-win-core-registry-l1-1-0 enable_api_ms_win_core_registry_l1_1_0
16638 wine_fn_config_dll api-ms-win-core-rtlsupport-l1-2-0 enable_api_ms_win_core_rtlsupport_l1_2_0
16639 wine_fn_config_dll api-ms-win-core-shlwapi-legacy-l1-1-0 enable_api_ms_win_core_shlwapi_legacy_l1_1_0
16640 wine_fn_config_dll api-ms-win-core-string-l1-1-0 enable_api_ms_win_core_string_l1_1_0
16641 wine_fn_config_dll api-ms-win-core-synch-l1-2-0 enable_api_ms_win_core_synch_l1_2_0
16642 wine_fn_config_dll api-ms-win-core-sysinfo-l1-2-0 enable_api_ms_win_core_sysinfo_l1_2_0
16643 wine_fn_config_dll api-ms-win-core-threadpool-legacy-l1-1-0 enable_api_ms_win_core_threadpool_legacy_l1_1_0
16644 wine_fn_config_dll api-ms-win-core-timezone-l1-1-0 enable_api_ms_win_core_timezone_l1_1_0
16645 wine_fn_config_dll api-ms-win-core-url-l1-1-0 enable_api_ms_win_core_url_l1_1_0
16646 wine_fn_config_dll api-ms-win-core-util-l1-1-0 enable_api_ms_win_core_util_l1_1_0
16647 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
16648 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
16649 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
16650 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
16651 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
16652 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
16653 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
16654 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
16655 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
16656 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
16657 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
16658 wine_fn_config_dll api-ms-win-eventing-provider-l1-1-0 enable_api_ms_win_eventing_provider_l1_1_0
16659 wine_fn_config_dll api-ms-win-ntuser-dc-access-l1-1-0 enable_api_ms_win_ntuser_dc_access_l1_1_0
16660 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
16661 wine_fn_config_dll api-ms-win-security-base-l1-2-0 enable_api_ms_win_security_base_l1_2_0
16662 wine_fn_config_dll api-ms-win-security-sddl-l1-1-0 enable_api_ms_win_security_sddl_l1_1_0
16663 wine_fn_config_dll api-ms-win-service-core-l1-1-1 enable_api_ms_win_service_core_l1_1_1
16664 wine_fn_config_dll api-ms-win-service-management-l1-1-0 enable_api_ms_win_service_management_l1_1_0
16665 wine_fn_config_dll api-ms-win-service-winsvc-l1-2-0 enable_api_ms_win_service_winsvc_l1_2_0
16666 wine_fn_config_dll apphelp enable_apphelp
16667 wine_fn_config_test dlls/apphelp/tests apphelp_test
16668 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
16669 wine_fn_config_dll atl enable_atl clean,implib
16670 wine_fn_config_test dlls/atl/tests atl_test
16671 wine_fn_config_dll atl100 enable_atl100 implib
16672 wine_fn_config_test dlls/atl100/tests atl100_test
16673 wine_fn_config_dll atl110 enable_atl110
16674 wine_fn_config_dll atl80 enable_atl80 implib
16675 wine_fn_config_test dlls/atl80/tests atl80_test
16676 wine_fn_config_dll atl90 enable_atl90
16677 wine_fn_config_dll authz enable_authz
16678 wine_fn_config_dll avicap32 enable_avicap32 implib
16679 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
16680 wine_fn_config_test dlls/avifil32/tests avifil32_test
16681 wine_fn_config_dll avifile.dll16 enable_win16
16682 wine_fn_config_dll avrt enable_avrt implib
16683 wine_fn_config_dll bcrypt enable_bcrypt
16684 wine_fn_config_test dlls/bcrypt/tests bcrypt_test
16685 wine_fn_config_dll browseui enable_browseui clean,po
16686 wine_fn_config_test dlls/browseui/tests browseui_test
16687 wine_fn_config_dll cabinet enable_cabinet implib
16688 wine_fn_config_test dlls/cabinet/tests cabinet_test
16689 wine_fn_config_dll capi2032 enable_capi2032 implib
16690 wine_fn_config_dll cards enable_cards implib
16691 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
16692 wine_fn_config_dll clusapi enable_clusapi implib
16693 wine_fn_config_dll comcat enable_comcat
16694 wine_fn_config_test dlls/comcat/tests comcat_test
16695 wine_fn_config_dll comctl32 enable_comctl32 implib,po
16696 wine_fn_config_test dlls/comctl32/tests comctl32_test
16697 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
16698 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
16699 wine_fn_config_dll comm.drv16 enable_win16
16700 wine_fn_config_dll commdlg.dll16 enable_win16
16701 wine_fn_config_dll compobj.dll16 enable_win16
16702 wine_fn_config_dll compstui enable_compstui implib
16703 wine_fn_config_dll comsvcs enable_comsvcs implib
16704 wine_fn_config_dll credui enable_credui implib,po
16705 wine_fn_config_test dlls/credui/tests credui_test
16706 wine_fn_config_dll crtdll enable_crtdll implib
16707 wine_fn_config_dll crypt32 enable_crypt32 implib,po
16708 wine_fn_config_test dlls/crypt32/tests crypt32_test
16709 wine_fn_config_dll cryptdlg enable_cryptdlg po
16710 wine_fn_config_dll cryptdll enable_cryptdll implib
16711 wine_fn_config_dll cryptnet enable_cryptnet implib
16712 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
16713 wine_fn_config_dll cryptui enable_cryptui implib,po
16714 wine_fn_config_test dlls/cryptui/tests cryptui_test
16715 wine_fn_config_dll ctapi32 enable_ctapi32
16716 wine_fn_config_dll ctl3d.dll16 enable_win16
16717 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
16718 wine_fn_config_dll ctl3dv2.dll16 enable_win16
16719 wine_fn_config_dll d2d1 enable_d2d1 implib
16720 wine_fn_config_dll d3d10 enable_d3d10 implib
16721 wine_fn_config_test dlls/d3d10/tests d3d10_test
16722 wine_fn_config_dll d3d10_1 enable_d3d10_1 implib
16723 wine_fn_config_dll d3d10core enable_d3d10core implib
16724 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
16725 wine_fn_config_dll d3d11 enable_d3d11
16726 wine_fn_config_dll d3d8 enable_d3d8 implib
16727 wine_fn_config_test dlls/d3d8/tests d3d8_test
16728 wine_fn_config_dll d3d9 enable_d3d9 implib
16729 wine_fn_config_test dlls/d3d9/tests d3d9_test
16730 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
16731 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
16732 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
16733 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
16734 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
16735 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
16736 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
16737 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
16738 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
16739 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
16740 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
16741 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
16742 wine_fn_config_dll d3dim enable_d3dim implib
16743 wine_fn_config_dll d3drm enable_d3drm implib
16744 wine_fn_config_test dlls/d3drm/tests d3drm_test
16745 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
16746 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
16747 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
16748 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
16749 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
16750 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
16751 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
16752 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
16753 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
16754 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
16755 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
16756 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
16757 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
16758 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
16759 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
16760 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
16761 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
16762 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
16763 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
16764 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
16765 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
16766 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
16767 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
16768 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
16769 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
16770 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
16771 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
16772 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
16773 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
16774 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
16775 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
16776 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
16777 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
16778 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
16779 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
16780 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
16781 wine_fn_config_dll dbgeng enable_dbgeng implib
16782 wine_fn_config_dll dbghelp enable_dbghelp implib
16783 wine_fn_config_dll dciman32 enable_dciman32 implib
16784 wine_fn_config_dll ddeml.dll16 enable_win16
16785 wine_fn_config_dll ddraw enable_ddraw clean,implib
16786 wine_fn_config_test dlls/ddraw/tests ddraw_test
16787 wine_fn_config_dll ddrawex enable_ddrawex clean
16788 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
16789 wine_fn_config_dll devenum enable_devenum clean,po
16790 wine_fn_config_test dlls/devenum/tests devenum_test
16791 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
16792 wine_fn_config_dll difxapi enable_difxapi
16793 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
16794 wine_fn_config_test dlls/dinput/tests dinput_test
16795 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
16796 wine_fn_config_test dlls/dinput8/tests dinput8_test
16797 wine_fn_config_dll dispdib.dll16 enable_win16
16798 wine_fn_config_dll dispex enable_dispex clean
16799 wine_fn_config_test dlls/dispex/tests dispex_test
16800 wine_fn_config_dll display.drv16 enable_win16
16801 wine_fn_config_dll dmband enable_dmband clean
16802 wine_fn_config_test dlls/dmband/tests dmband_test
16803 wine_fn_config_dll dmcompos enable_dmcompos clean
16804 wine_fn_config_test dlls/dmcompos/tests dmcompos_test
16805 wine_fn_config_dll dmime enable_dmime clean
16806 wine_fn_config_test dlls/dmime/tests dmime_test
16807 wine_fn_config_dll dmloader enable_dmloader clean
16808 wine_fn_config_test dlls/dmloader/tests dmloader_test
16809 wine_fn_config_dll dmscript enable_dmscript clean
16810 wine_fn_config_test dlls/dmscript/tests dmscript_test
16811 wine_fn_config_dll dmstyle enable_dmstyle clean
16812 wine_fn_config_test dlls/dmstyle/tests dmstyle_test
16813 wine_fn_config_dll dmsynth enable_dmsynth clean
16814 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
16815 wine_fn_config_dll dmusic enable_dmusic clean
16816 wine_fn_config_test dlls/dmusic/tests dmusic_test
16817 wine_fn_config_dll dmusic32 enable_dmusic32 implib
16818 wine_fn_config_dll dnsapi enable_dnsapi implib
16819 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
16820 wine_fn_config_dll dplay enable_dplay implib
16821 wine_fn_config_dll dplayx enable_dplayx clean,implib
16822 wine_fn_config_test dlls/dplayx/tests dplayx_test
16823 wine_fn_config_dll dpnaddr enable_dpnaddr
16824 wine_fn_config_dll dpnet enable_dpnet clean,implib
16825 wine_fn_config_test dlls/dpnet/tests dpnet_test
16826 wine_fn_config_dll dpnhpast enable_dpnhpast
16827 wine_fn_config_dll dpnlobby enable_dpnlobby
16828 wine_fn_config_dll dpwsockx enable_dpwsockx
16829 wine_fn_config_dll drmclien enable_drmclien
16830 wine_fn_config_dll dsound enable_dsound clean,implib
16831 wine_fn_config_test dlls/dsound/tests dsound_test
16832 wine_fn_config_dll dssenh enable_dssenh
16833 wine_fn_config_test dlls/dssenh/tests dssenh_test
16834 wine_fn_config_dll dswave enable_dswave clean
16835 wine_fn_config_dll dwmapi enable_dwmapi implib
16836 wine_fn_config_dll dwrite enable_dwrite implib
16837 wine_fn_config_test dlls/dwrite/tests dwrite_test
16838 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
16839 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
16840 wine_fn_config_lib dxerr8
16841 wine_fn_config_lib dxerr9
16842 wine_fn_config_dll dxgi enable_dxgi implib
16843 wine_fn_config_test dlls/dxgi/tests dxgi_test
16844 wine_fn_config_lib dxguid
16845 wine_fn_config_dll explorerframe enable_explorerframe clean
16846 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
16847 wine_fn_config_dll ext-ms-win-gdi-devcaps-l1-1-0 enable_ext_ms_win_gdi_devcaps_l1_1_0
16848 wine_fn_config_dll faultrep enable_faultrep implib
16849 wine_fn_config_test dlls/faultrep/tests faultrep_test
16850 wine_fn_config_dll fltlib enable_fltlib
16851 wine_fn_config_dll fusion enable_fusion
16852 wine_fn_config_test dlls/fusion/tests fusion_test
16853 wine_fn_config_dll fwpuclnt enable_fwpuclnt
16854 wine_fn_config_dll gameux enable_gameux clean
16855 wine_fn_config_test dlls/gameux/tests gameux_test
16856 wine_fn_config_dll gdi.exe16 enable_win16
16857 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
16858 wine_fn_config_test dlls/gdi32/tests gdi32_test
16859 wine_fn_config_dll gdiplus enable_gdiplus implib
16860 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
16861 wine_fn_config_dll glu32 enable_glu32 implib
16862 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
16863 wine_fn_config_dll gpkcsp enable_gpkcsp
16864 wine_fn_config_dll hal enable_hal
16865 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
16866 wine_fn_config_dll hid enable_hid implib
16867 wine_fn_config_dll hlink enable_hlink clean,implib
16868 wine_fn_config_test dlls/hlink/tests hlink_test
16869 wine_fn_config_dll hnetcfg enable_hnetcfg clean
16870 wine_fn_config_dll httpapi enable_httpapi
16871 wine_fn_config_dll iccvid enable_iccvid po
16872 wine_fn_config_dll icmp enable_icmp
16873 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
16874 wine_fn_config_test dlls/ieframe/tests ieframe_test
16875 wine_fn_config_dll ifsmgr.vxd enable_win16
16876 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
16877 wine_fn_config_dll imagehlp enable_imagehlp implib
16878 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
16879 wine_fn_config_dll imm.dll16 enable_win16
16880 wine_fn_config_dll imm32 enable_imm32 implib
16881 wine_fn_config_test dlls/imm32/tests imm32_test
16882 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
16883 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16884 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16885 wine_fn_config_dll inetmib1 enable_inetmib1
16886 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16887 wine_fn_config_dll infosoft enable_infosoft clean
16888 wine_fn_config_test dlls/infosoft/tests infosoft_test
16889 wine_fn_config_dll initpki enable_initpki
16890 wine_fn_config_dll inkobj enable_inkobj
16891 wine_fn_config_dll inseng enable_inseng clean
16892 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16893 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16894 wine_fn_config_dll itircl enable_itircl
16895 wine_fn_config_dll itss enable_itss clean
16896 wine_fn_config_test dlls/itss/tests itss_test
16897 wine_fn_config_dll joy.cpl enable_joy_cpl po
16898 wine_fn_config_dll jscript enable_jscript clean,po
16899 wine_fn_config_test dlls/jscript/tests jscript_test
16900 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
16901 wine_fn_config_test dlls/kernel32/tests kernel32_test
16902 wine_fn_config_dll keyboard.drv16 enable_win16
16903 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16904 wine_fn_config_dll ktmw32 enable_ktmw32
16905 wine_fn_config_dll loadperf enable_loadperf implib
16906 wine_fn_config_dll localspl enable_localspl po
16907 wine_fn_config_test dlls/localspl/tests localspl_test
16908 wine_fn_config_dll localui enable_localui po
16909 wine_fn_config_test dlls/localui/tests localui_test
16910 wine_fn_config_dll lz32 enable_lz32 implib
16911 wine_fn_config_test dlls/lz32/tests lz32_test
16912 wine_fn_config_dll lzexpand.dll16 enable_win16
16913 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16914 wine_fn_config_test dlls/mapi32/tests mapi32_test
16915 wine_fn_config_dll mapistub enable_mapistub
16916 wine_fn_config_dll mciavi32 enable_mciavi32
16917 wine_fn_config_dll mcicda enable_mcicda
16918 wine_fn_config_dll mciqtz32 enable_mciqtz32
16919 wine_fn_config_dll mciseq enable_mciseq
16920 wine_fn_config_dll mciwave enable_mciwave
16921 wine_fn_config_dll mgmtapi enable_mgmtapi
16922 wine_fn_config_dll midimap enable_midimap
16923 wine_fn_config_dll mlang enable_mlang clean,implib
16924 wine_fn_config_test dlls/mlang/tests mlang_test
16925 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
16926 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16927 wine_fn_config_dll mmdevapi enable_mmdevapi clean
16928 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16929 wine_fn_config_dll mmdevldr.vxd enable_win16
16930 wine_fn_config_dll mmsystem.dll16 enable_win16
16931 wine_fn_config_dll monodebg.vxd enable_win16
16932 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16933 wine_fn_config_dll mouse.drv16 enable_win16
16934 wine_fn_config_dll mpr enable_mpr implib,po
16935 wine_fn_config_test dlls/mpr/tests mpr_test
16936 wine_fn_config_dll mprapi enable_mprapi implib
16937 wine_fn_config_dll msacm.dll16 enable_win16
16938 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16939 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16940 wine_fn_config_test dlls/msacm32/tests msacm32_test
16941 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16942 wine_fn_config_dll mscat32 enable_mscat32
16943 wine_fn_config_dll mscms enable_mscms implib
16944 wine_fn_config_test dlls/mscms/tests mscms_test
16945 wine_fn_config_dll mscoree enable_mscoree clean
16946 wine_fn_config_test dlls/mscoree/tests mscoree_test
16947 wine_fn_config_dll msctf enable_msctf clean
16948 wine_fn_config_test dlls/msctf/tests msctf_test
16949 wine_fn_config_dll msdaps enable_msdaps clean
16950 wine_fn_config_dll msdmo enable_msdmo implib
16951 wine_fn_config_dll msftedit enable_msftedit
16952 wine_fn_config_dll msg711.acm enable_msg711_acm
16953 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16954 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
16955 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
16956 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
16957 wine_fn_config_dll msi enable_msi clean,implib,po
16958 wine_fn_config_test dlls/msi/tests msi_test
16959 wine_fn_config_dll msident enable_msident clean
16960 wine_fn_config_dll msimg32 enable_msimg32 implib
16961 wine_fn_config_dll msimsg enable_msimsg
16962 wine_fn_config_dll msimtf enable_msimtf clean
16963 wine_fn_config_dll msisip enable_msisip
16964 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16965 wine_fn_config_dll msls31 enable_msls31
16966 wine_fn_config_dll msnet32 enable_msnet32
16967 wine_fn_config_dll mspatcha enable_mspatcha
16968 wine_fn_config_dll msrle32 enable_msrle32 po
16969 wine_fn_config_test dlls/msrle32/tests msrle32_test
16970 wine_fn_config_dll mssign32 enable_mssign32
16971 wine_fn_config_dll mssip32 enable_mssip32
16972 wine_fn_config_dll mstask enable_mstask clean
16973 wine_fn_config_test dlls/mstask/tests mstask_test
16974 wine_fn_config_dll msvcirt enable_msvcirt
16975 wine_fn_config_dll msvcm80 enable_msvcm80
16976 wine_fn_config_dll msvcm90 enable_msvcm90
16977 wine_fn_config_dll msvcp100 enable_msvcp100
16978 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16979 wine_fn_config_dll msvcp110 enable_msvcp110
16980 wine_fn_config_dll msvcp60 enable_msvcp60
16981 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16982 wine_fn_config_dll msvcp70 enable_msvcp70
16983 wine_fn_config_dll msvcp71 enable_msvcp71
16984 wine_fn_config_dll msvcp80 enable_msvcp80
16985 wine_fn_config_dll msvcp90 enable_msvcp90
16986 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16987 wine_fn_config_dll msvcr100 enable_msvcr100 implib
16988 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16989 wine_fn_config_dll msvcr110 enable_msvcr110 implib
16990 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16991 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16992 wine_fn_config_dll msvcr80 enable_msvcr80 implib
16993 wine_fn_config_dll msvcr90 enable_msvcr90 implib
16994 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16995 wine_fn_config_dll msvcrt enable_msvcrt implib
16996 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16997 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16998 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16999 wine_fn_config_dll msvcrtd enable_msvcrtd implib
17000 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
17001 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
17002 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
17003 wine_fn_config_dll msvidc32 enable_msvidc32 po
17004 wine_fn_config_dll msvideo.dll16 enable_win16
17005 wine_fn_config_dll mswsock enable_mswsock implib
17006 wine_fn_config_dll msxml enable_msxml clean
17007 wine_fn_config_dll msxml2 enable_msxml2 clean
17008 wine_fn_config_dll msxml3 enable_msxml3 clean
17009 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
17010 wine_fn_config_dll msxml4 enable_msxml4 clean
17011 wine_fn_config_dll msxml6 enable_msxml6 clean
17012 wine_fn_config_dll nddeapi enable_nddeapi implib
17013 wine_fn_config_dll netapi32 enable_netapi32 implib
17014 wine_fn_config_test dlls/netapi32/tests netapi32_test
17015 wine_fn_config_dll netcfgx enable_netcfgx
17016 wine_fn_config_dll newdev enable_newdev implib
17017 wine_fn_config_dll normaliz enable_normaliz implib
17018 wine_fn_config_dll npmshtml enable_npmshtml
17019 wine_fn_config_dll ntdll enable_ntdll implib
17020 wine_fn_config_test dlls/ntdll/tests ntdll_test
17021 wine_fn_config_dll ntdsapi enable_ntdsapi implib
17022 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
17023 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
17024 wine_fn_config_dll ntprint enable_ntprint
17025 wine_fn_config_test dlls/ntprint/tests ntprint_test
17026 wine_fn_config_dll objsel enable_objsel clean
17027 wine_fn_config_dll odbc32 enable_odbc32 implib
17028 wine_fn_config_dll odbccp32 enable_odbccp32 implib
17029 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
17030 wine_fn_config_dll odbccu32 enable_odbccu32
17031 wine_fn_config_dll ole2.dll16 enable_win16
17032 wine_fn_config_dll ole2conv.dll16 enable_win16
17033 wine_fn_config_dll ole2disp.dll16 enable_win16
17034 wine_fn_config_dll ole2nls.dll16 enable_win16
17035 wine_fn_config_dll ole2prox.dll16 enable_win16
17036 wine_fn_config_dll ole2thk.dll16 enable_win16
17037 wine_fn_config_dll ole32 enable_ole32 clean,implib
17038 wine_fn_config_test dlls/ole32/tests ole32_test
17039 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
17040 wine_fn_config_test dlls/oleacc/tests oleacc_test
17041 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
17042 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
17043 wine_fn_config_dll olecli.dll16 enable_win16
17044 wine_fn_config_dll olecli32 enable_olecli32 implib
17045 wine_fn_config_dll oledb32 enable_oledb32 clean
17046 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
17047 wine_fn_config_dll oledlg enable_oledlg implib,po
17048 wine_fn_config_dll olepro32 enable_olepro32 implib
17049 wine_fn_config_dll olesvr.dll16 enable_win16
17050 wine_fn_config_dll olesvr32 enable_olesvr32 implib
17051 wine_fn_config_dll olethk32 enable_olethk32
17052 wine_fn_config_dll openal32 enable_openal32
17053 wine_fn_config_dll opencl enable_opencl
17054 wine_fn_config_dll opengl32 enable_opengl32 implib
17055 wine_fn_config_test dlls/opengl32/tests opengl32_test
17056 wine_fn_config_dll pdh enable_pdh implib
17057 wine_fn_config_test dlls/pdh/tests pdh_test
17058 wine_fn_config_dll photometadatahandler enable_photometadatahandler
17059 wine_fn_config_dll pidgen enable_pidgen
17060 wine_fn_config_dll powrprof enable_powrprof implib
17061 wine_fn_config_dll printui enable_printui
17062 wine_fn_config_dll propsys enable_propsys clean,implib
17063 wine_fn_config_test dlls/propsys/tests propsys_test
17064 wine_fn_config_dll psapi enable_psapi implib
17065 wine_fn_config_test dlls/psapi/tests psapi_test
17066 wine_fn_config_dll pstorec enable_pstorec clean
17067 wine_fn_config_dll qcap enable_qcap
17068 wine_fn_config_test dlls/qcap/tests qcap_test
17069 wine_fn_config_dll qedit enable_qedit clean
17070 wine_fn_config_test dlls/qedit/tests qedit_test
17071 wine_fn_config_dll qmgr enable_qmgr clean
17072 wine_fn_config_test dlls/qmgr/tests qmgr_test
17073 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
17074 wine_fn_config_dll quartz enable_quartz clean,implib
17075 wine_fn_config_test dlls/quartz/tests quartz_test clean
17076 wine_fn_config_dll query enable_query
17077 wine_fn_config_dll rasapi16.dll16 enable_win16
17078 wine_fn_config_dll rasapi32 enable_rasapi32 implib
17079 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
17080 wine_fn_config_dll rasdlg enable_rasdlg implib
17081 wine_fn_config_dll regapi enable_regapi
17082 wine_fn_config_dll resutils enable_resutils implib
17083 wine_fn_config_dll riched20 enable_riched20 implib
17084 wine_fn_config_test dlls/riched20/tests riched20_test
17085 wine_fn_config_dll riched32 enable_riched32
17086 wine_fn_config_test dlls/riched32/tests riched32_test
17087 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
17088 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
17089 wine_fn_config_dll rsabase enable_rsabase
17090 wine_fn_config_dll rsaenh enable_rsaenh implib
17091 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
17092 wine_fn_config_dll rstrtmgr enable_rstrtmgr
17093 wine_fn_config_dll rtutils enable_rtutils implib
17094 wine_fn_config_dll samlib enable_samlib
17095 wine_fn_config_dll sane.ds enable_sane_ds po
17096 wine_fn_config_dll scarddlg enable_scarddlg
17097 wine_fn_config_dll sccbase enable_sccbase
17098 wine_fn_config_dll schannel enable_schannel
17099 wine_fn_config_test dlls/schannel/tests schannel_test
17100 wine_fn_config_dll scrrun enable_scrrun clean
17101 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
17102 wine_fn_config_dll scsiport.sys enable_scsiport_sys
17103 wine_fn_config_dll secur32 enable_secur32 implib
17104 wine_fn_config_test dlls/secur32/tests secur32_test
17105 wine_fn_config_dll security enable_security
17106 wine_fn_config_dll sensapi enable_sensapi implib
17107 wine_fn_config_dll serialui enable_serialui implib,po
17108 wine_fn_config_test dlls/serialui/tests serialui_test
17109 wine_fn_config_dll setupapi enable_setupapi implib,po
17110 wine_fn_config_test dlls/setupapi/tests setupapi_test
17111 wine_fn_config_dll setupx.dll16 enable_win16
17112 wine_fn_config_dll sfc enable_sfc implib
17113 wine_fn_config_dll sfc_os enable_sfc_os implib
17114 wine_fn_config_dll shdoclc enable_shdoclc po
17115 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
17116 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
17117 wine_fn_config_dll shell.dll16 enable_win16
17118 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
17119 wine_fn_config_test dlls/shell32/tests shell32_test
17120 wine_fn_config_dll shfolder enable_shfolder implib
17121 wine_fn_config_dll shlwapi enable_shlwapi implib,po
17122 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
17123 wine_fn_config_dll slbcsp enable_slbcsp
17124 wine_fn_config_dll slc enable_slc implib
17125 wine_fn_config_dll snmpapi enable_snmpapi implib
17126 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
17127 wine_fn_config_dll softpub enable_softpub
17128 wine_fn_config_dll sound.drv16 enable_win16
17129 wine_fn_config_dll spoolss enable_spoolss implib
17130 wine_fn_config_test dlls/spoolss/tests spoolss_test
17131 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
17132 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
17133 wine_fn_config_dll sti enable_sti clean,implib
17134 wine_fn_config_test dlls/sti/tests sti_test
17135 wine_fn_config_dll storage.dll16 enable_win16
17136 wine_fn_config_dll stress.dll16 enable_win16
17137 wine_fn_config_lib strmbase
17138 wine_fn_config_lib strmiids
17139 wine_fn_config_dll svrapi enable_svrapi
17140 wine_fn_config_dll sxs enable_sxs implib
17141 wine_fn_config_test dlls/sxs/tests sxs_test
17142 wine_fn_config_dll system.drv16 enable_win16
17143 wine_fn_config_dll t2embed enable_t2embed
17144 wine_fn_config_dll tapi32 enable_tapi32 implib
17145 wine_fn_config_dll taskschd enable_taskschd clean
17146 wine_fn_config_test dlls/taskschd/tests taskschd_test
17147 wine_fn_config_dll toolhelp.dll16 enable_win16
17148 wine_fn_config_dll traffic enable_traffic
17149 wine_fn_config_dll twain.dll16 enable_win16
17150 wine_fn_config_dll twain_32 enable_twain_32
17151 wine_fn_config_test dlls/twain_32/tests twain_32_test
17152 wine_fn_config_dll typelib.dll16 enable_win16
17153 wine_fn_config_dll unicows enable_unicows implib
17154 wine_fn_config_dll updspapi enable_updspapi
17155 wine_fn_config_dll url enable_url implib
17156 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17157 wine_fn_config_test dlls/urlmon/tests urlmon_test
17158 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17159 wine_fn_config_dll user.exe16 enable_win16
17160 wine_fn_config_dll user32 enable_user32 clean,implib,po
17161 wine_fn_config_test dlls/user32/tests user32_test
17162 wine_fn_config_dll userenv enable_userenv implib
17163 wine_fn_config_test dlls/userenv/tests userenv_test
17164 wine_fn_config_dll usp10 enable_usp10 implib
17165 wine_fn_config_test dlls/usp10/tests usp10_test
17166 wine_fn_config_lib uuid
17167 wine_fn_config_dll uxtheme enable_uxtheme implib
17168 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17169 wine_fn_config_dll vbscript enable_vbscript clean
17170 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17171 wine_fn_config_dll vcomp enable_vcomp
17172 wine_fn_config_dll vcomp100 enable_vcomp100
17173 wine_fn_config_dll vcomp90 enable_vcomp90
17174 wine_fn_config_dll vdhcp.vxd enable_win16
17175 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17176 wine_fn_config_dll ver.dll16 enable_win16
17177 wine_fn_config_dll version enable_version implib
17178 wine_fn_config_test dlls/version/tests version_test
17179 wine_fn_config_dll vmm.vxd enable_win16
17180 wine_fn_config_dll vnbt.vxd enable_win16
17181 wine_fn_config_dll vnetbios.vxd enable_win16
17182 wine_fn_config_dll vtdapi.vxd enable_win16
17183 wine_fn_config_dll vwin32.vxd enable_win16
17184 wine_fn_config_dll w32skrnl enable_win16
17185 wine_fn_config_dll w32sys.dll16 enable_win16
17186 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17187 wine_fn_config_dll wbemprox enable_wbemprox clean
17188 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17189 wine_fn_config_dll webservices enable_webservices implib
17190 wine_fn_config_dll wer enable_wer implib
17191 wine_fn_config_test dlls/wer/tests wer_test
17192 wine_fn_config_dll wevtapi enable_wevtapi
17193 wine_fn_config_dll wiaservc enable_wiaservc clean
17194 wine_fn_config_dll win32s16.dll16 enable_win16
17195 wine_fn_config_dll win87em.dll16 enable_win16
17196 wine_fn_config_dll winaspi.dll16 enable_win16
17197 wine_fn_config_dll windebug.dll16 enable_win16
17198 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17199 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17200 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17201 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17202 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17203 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17204 wine_fn_config_lib winecrt0
17205 wine_fn_config_dll wined3d enable_wined3d implib
17206 wine_fn_config_dll winegstreamer enable_winegstreamer
17207 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17208 wine_fn_config_dll winemac.drv enable_winemac_drv
17209 wine_fn_config_dll winemapi enable_winemapi
17210 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17211 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17212 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17213 wine_fn_config_dll wineps16.drv16 enable_win16
17214 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17215 wine_fn_config_dll winex11.drv enable_winex11_drv
17216 wine_fn_config_dll wing.dll16 enable_win16
17217 wine_fn_config_dll wing32 enable_wing32
17218 wine_fn_config_dll winhttp enable_winhttp clean,implib
17219 wine_fn_config_test dlls/winhttp/tests winhttp_test
17220 wine_fn_config_dll wininet enable_wininet implib,po
17221 wine_fn_config_test dlls/wininet/tests wininet_test
17222 wine_fn_config_dll winmm enable_winmm implib,po
17223 wine_fn_config_test dlls/winmm/tests winmm_test
17224 wine_fn_config_dll winnls.dll16 enable_win16
17225 wine_fn_config_dll winnls32 enable_winnls32 implib
17226 wine_fn_config_dll winscard enable_winscard implib
17227 wine_fn_config_dll winsock.dll16 enable_win16
17228 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17229 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17230 wine_fn_config_dll winsta enable_winsta
17231 wine_fn_config_dll wintab.dll16 enable_win16
17232 wine_fn_config_dll wintab32 enable_wintab32 implib
17233 wine_fn_config_test dlls/wintab32/tests wintab32_test
17234 wine_fn_config_dll wintrust enable_wintrust implib
17235 wine_fn_config_test dlls/wintrust/tests wintrust_test
17236 wine_fn_config_dll wlanapi enable_wlanapi
17237 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17238 wine_fn_config_test dlls/wldap32/tests wldap32_test
17239 wine_fn_config_dll wmi enable_wmi
17240 wine_fn_config_dll wmiutils enable_wmiutils clean
17241 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17242 wine_fn_config_dll wmp enable_wmp clean
17243 wine_fn_config_test dlls/wmp/tests wmp_test
17244 wine_fn_config_dll wmvcore enable_wmvcore
17245 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17246 wine_fn_config_dll wow32 enable_win16 implib
17247 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17248 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17249 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17250 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17251 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17252 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17253 wine_fn_config_dll wsock32 enable_wsock32 implib
17254 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17255 wine_fn_config_dll wuapi enable_wuapi clean
17256 wine_fn_config_dll wuaueng enable_wuaueng
17257 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17258 wine_fn_config_dll xinput1_1 enable_xinput1_1
17259 wine_fn_config_dll xinput1_2 enable_xinput1_2
17260 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17261 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17262 wine_fn_config_dll xinput1_4 enable_xinput1_4
17263 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17264 wine_fn_config_dll xmllite enable_xmllite implib
17265 wine_fn_config_test dlls/xmllite/tests xmllite_test
17266 wine_fn_config_dll xolehlp enable_xolehlp
17267 wine_fn_config_dll xpsprint enable_xpsprint
17268 wine_fn_config_dll xpssvcs enable_xpssvcs
17269 wine_fn_config_makefile documentation enable_documentation clean
17270 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17271 wine_fn_config_makefile include enable_include clean,install-dev
17272 wine_fn_config_makefile libs/port enable_libs_port
17273 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17274 wine_fn_config_makefile libs/wpp enable_libs_wpp
17275 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17276 wine_fn_config_program arp enable_arp install
17277 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17278 wine_fn_config_program attrib enable_attrib install,po
17279 wine_fn_config_program cabarc enable_cabarc install
17280 wine_fn_config_program cacls enable_cacls install
17281 wine_fn_config_program clock enable_clock install,po
17282 wine_fn_config_program cmd enable_cmd install,po
17283 wine_fn_config_test programs/cmd/tests cmd.exe_test
17284 wine_fn_config_program conhost enable_conhost install
17285 wine_fn_config_program control enable_control install
17286 wine_fn_config_program cscript enable_cscript install
17287 wine_fn_config_program dxdiag enable_dxdiag install,po
17288 wine_fn_config_program eject enable_eject install
17289 wine_fn_config_program expand enable_expand install
17290 wine_fn_config_program explorer enable_explorer install,po
17291 wine_fn_config_program extrac32 enable_extrac32 install
17292 wine_fn_config_program findstr enable_findstr install
17293 wine_fn_config_program hh enable_hh install
17294 wine_fn_config_program hostname enable_hostname install,po
17295 wine_fn_config_program icinfo enable_icinfo install
17296 wine_fn_config_program iexplore enable_iexplore install
17297 wine_fn_config_program ipconfig enable_ipconfig install,po
17298 wine_fn_config_program lodctr enable_lodctr install
17299 wine_fn_config_program mofcomp enable_mofcomp install
17300 wine_fn_config_program mshta enable_mshta install
17301 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17302 wine_fn_config_program net enable_net install,po
17303 wine_fn_config_program netsh enable_netsh install
17304 wine_fn_config_program netstat enable_netstat install,po
17305 wine_fn_config_program ngen enable_ngen install
17306 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17307 wine_fn_config_program oleview enable_oleview install,po
17308 wine_fn_config_program ping enable_ping install
17309 wine_fn_config_program plugplay enable_plugplay install
17310 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17311 wine_fn_config_program progman enable_progman install,po
17312 wine_fn_config_program reg enable_reg install,po
17313 wine_fn_config_program regasm enable_regasm install
17314 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17315 wine_fn_config_test programs/regedit/tests regedit.exe_test
17316 wine_fn_config_program regsvcs enable_regsvcs install
17317 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
17318 wine_fn_config_program rpcss enable_rpcss clean,install
17319 wine_fn_config_program rundll.exe16 enable_win16 install
17320 wine_fn_config_program rundll32 enable_rundll32 install
17321 wine_fn_config_program sc enable_sc install
17322 wine_fn_config_program schtasks enable_schtasks install
17323 wine_fn_config_program secedit enable_secedit install
17324 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17325 wine_fn_config_program services enable_services clean,install
17326 wine_fn_config_test programs/services/tests services.exe_test
17327 wine_fn_config_program spoolsv enable_spoolsv install
17328 wine_fn_config_program start enable_start install,po
17329 wine_fn_config_program svchost enable_svchost install
17330 wine_fn_config_program taskkill enable_taskkill install,po
17331 wine_fn_config_program tasklist enable_tasklist install
17332 wine_fn_config_program taskmgr enable_taskmgr install,po
17333 wine_fn_config_program termsv enable_termsv install
17334 wine_fn_config_program uninstaller enable_uninstaller install,po
17335 wine_fn_config_program unlodctr enable_unlodctr install
17336 wine_fn_config_program view enable_view install,po
17337 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17338 wine_fn_config_program winebrowser enable_winebrowser install
17339 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17340 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17341 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17342 wine_fn_config_program winedevice enable_winedevice install
17343 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17344 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17345 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17346 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17347 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17348 wine_fn_config_program winetest enable_winetest clean
17349 wine_fn_config_program winevdm enable_win16 install
17350 wine_fn_config_program winhelp.exe16 enable_win16 install
17351 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17352 wine_fn_config_program winoldap.mod16 enable_win16 install
17353 wine_fn_config_program winver enable_winver install
17354 wine_fn_config_program wmic enable_wmic install,po
17355 wine_fn_config_program wordpad enable_wordpad install,po
17356 wine_fn_config_program write enable_write install,po
17357 wine_fn_config_program wscript enable_wscript clean,install
17358 wine_fn_config_test programs/wscript/tests wscript.exe_test
17359 wine_fn_config_program wusa enable_wusa install
17360 wine_fn_config_program xcopy enable_xcopy install,po
17361 wine_fn_config_test programs/xcopy/tests xcopy.exe_test
17362 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17363 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17364 wine_fn_config_tool tools/sfnt2fon clean
17365 wine_fn_config_tool tools/widl clean,install-dev,manpage
17366 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17367 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17368 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17369 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17370 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17372 LINGUAS="\
17373 ar \
17374 bg \
17375 ca \
17376 cs \
17377 da \
17378 de \
17379 el \
17380 en \
17381 en_US \
17382 eo \
17383 es \
17384 fa \
17385 fi \
17386 fr \
17387 he \
17388 hi \
17389 hr \
17390 hu \
17391 it \
17392 ja \
17393 ko \
17394 lt \
17395 ml \
17396 nb_NO \
17397 nl \
17398 or \
17399 pa \
17400 pl \
17401 pt_BR \
17402 pt_PT \
17403 rm \
17404 ro \
17405 ru \
17406 sk \
17407 sl \
17408 sr_RS@cyrillic \
17409 sr_RS@latin \
17410 sv \
17411 te \
17412 th \
17413 tr \
17414 uk \
17415 wa \
17416 zh_CN \
17417 zh_TW"
17422 wine_fn_ignore_file ".gitignore"
17423 wine_fn_ignore_file "Makefile"
17424 wine_fn_ignore_file "TAGS"
17425 wine_fn_ignore_file "tags"
17426 wine_fn_ignore_file "autom4te.cache"
17427 wine_fn_ignore_file "config.cache"
17428 wine_fn_ignore_file "config.log"
17429 wine_fn_ignore_file "config.status"
17430 wine_fn_ignore_file "configure.lineno"
17431 wine_fn_ignore_file "include/config.h"
17432 wine_fn_ignore_file "include/stamp-h"
17433 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine"
17435 if test "x$enable_tools" != xno
17436 then
17437 wine_fn_ignore_file "tools/makedep$ac_exeext"
17438 ac_config_commands="$ac_config_commands tools/makedep"
17442 ac_config_commands="$ac_config_commands Makefile"
17445 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17449 if test "x$enable_maintainer_mode" = xyes
17450 then
17451 wine_fn_append_rule "configure: configure.ac aclocal.m4
17452 autoconf --warnings=all
17453 include/config.h.in: include/stamp-h.in
17454 include/stamp-h.in: configure.ac aclocal.m4
17455 autoheader --warnings=all
17456 @echo timestamp > \$@"
17459 if test "x$with_gettextpo" = xyes
17460 then
17461 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17462 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17463 \$(LINGUAS:%=po/%.po): po/wine.pot
17464 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17465 po/wine.pot: \$(ALL_POT_FILES)
17466 msgcat -o \$@ \$(ALL_POT_FILES)"
17469 if test "$MSGFMT" != false
17470 then
17471 wine_fn_append_rule "__builddeps__: \$(LINGUAS:%=po/%.mo)
17472 clean::
17473 \$(RM) \$(LINGUAS:%=po/%.mo)"
17475 posrc="po"
17476 test "$srcdir" = . || posrc="$srcdir/po"
17477 for i in $LINGUAS
17479 wine_fn_ignore_file "po/$i.mo"
17480 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17481 \$(MSGFMT) -o \$@ $posrc/$i.po"
17482 done
17483 else
17484 LINGUAS=
17487 if test "x$enable_tools" != xno
17488 then
17489 wine_fn_append_rule "tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h config.status
17490 @./config.status tools/makedep
17491 Makefile: tools/makedep$ac_exeext
17492 distclean:: clean
17493 \$(RM) tools/makedep$ac_exeext"
17494 else
17495 wine_fn_append_rule "\$(MAKEDEP):
17496 @echo \"You need to run make in $TOOLSDIR first\" && false"
17499 if test -n "$with_wine64"
17500 then
17501 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17502 fonts server tools:
17503 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17504 $with_wine64/loader/wine:
17505 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17506 $with_wine64/loader/wine-preloader:
17507 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17508 clean::
17509 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17510 else
17511 as_fn_append LOADER_RULES "
17512 all: wine.inf
17514 install install-lib:: wine.inf install-man-pages
17515 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17516 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17518 uninstall::
17519 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17523 if test "$srcdir" = .
17524 then
17525 ac_config_commands="$ac_config_commands .gitignore"
17529 $as_echo " done" >&6
17530 cat >confcache <<\_ACEOF
17531 # This file is a shell script that caches the results of configure
17532 # tests run on this system so they can be shared between configure
17533 # scripts and configure runs, see configure's option --config-cache.
17534 # It is not useful on other systems. If it contains results you don't
17535 # want to keep, you may remove or edit it.
17537 # config.status only pays attention to the cache file if you give it
17538 # the --recheck option to rerun configure.
17540 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17541 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17542 # following values.
17544 _ACEOF
17546 # The following way of writing the cache mishandles newlines in values,
17547 # but we know of no workaround that is simple, portable, and efficient.
17548 # So, we kill variables containing newlines.
17549 # Ultrix sh set writes to stderr and can't be redirected directly,
17550 # and sets the high bit in the cache file unless we assign to the vars.
17552 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17553 eval ac_val=\$$ac_var
17554 case $ac_val in #(
17555 *${as_nl}*)
17556 case $ac_var in #(
17557 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17558 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17559 esac
17560 case $ac_var in #(
17561 _ | IFS | as_nl) ;; #(
17562 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17563 *) { eval $ac_var=; unset $ac_var;} ;;
17564 esac ;;
17565 esac
17566 done
17568 (set) 2>&1 |
17569 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17570 *${as_nl}ac_space=\ *)
17571 # `set' does not quote correctly, so add quotes: double-quote
17572 # substitution turns \\\\ into \\, and sed turns \\ into \.
17573 sed -n \
17574 "s/'/'\\\\''/g;
17575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17576 ;; #(
17578 # `set' quotes correctly as required by POSIX, so do not add quotes.
17579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17581 esac |
17582 sort
17584 sed '
17585 /^ac_cv_env_/b end
17586 t clear
17587 :clear
17588 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17589 t end
17590 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17591 :end' >>confcache
17592 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17593 if test -w "$cache_file"; then
17594 if test "x$cache_file" != "x/dev/null"; then
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17596 $as_echo "$as_me: updating cache $cache_file" >&6;}
17597 if test ! -f "$cache_file" || test -h "$cache_file"; then
17598 cat confcache >"$cache_file"
17599 else
17600 case $cache_file in #(
17601 */* | ?:*)
17602 mv -f confcache "$cache_file"$$ &&
17603 mv -f "$cache_file"$$ "$cache_file" ;; #(
17605 mv -f confcache "$cache_file" ;;
17606 esac
17609 else
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17611 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17614 rm -f confcache
17616 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17617 # Let make expand exec_prefix.
17618 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17620 DEFS=-DHAVE_CONFIG_H
17622 ac_libobjs=
17623 ac_ltlibobjs=
17625 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17626 # 1. Remove the extension, and $U if already installed.
17627 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17628 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17629 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17630 # will be set to the directory where LIBOBJS objects are built.
17631 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17632 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17633 done
17634 LIBOBJS=$ac_libobjs
17636 LTLIBOBJS=$ac_ltlibobjs
17640 : "${CONFIG_STATUS=./config.status}"
17641 ac_write_fail=0
17642 ac_clean_files_save=$ac_clean_files
17643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17645 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17646 as_write_fail=0
17647 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17648 #! $SHELL
17649 # Generated by $as_me.
17650 # Run this file to recreate the current configuration.
17651 # Compiler output produced by configure, useful for debugging
17652 # configure, is in config.log if it exists.
17654 debug=false
17655 ac_cs_recheck=false
17656 ac_cs_silent=false
17658 SHELL=\${CONFIG_SHELL-$SHELL}
17659 export SHELL
17660 _ASEOF
17661 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17662 ## -------------------- ##
17663 ## M4sh Initialization. ##
17664 ## -------------------- ##
17666 # Be more Bourne compatible
17667 DUALCASE=1; export DUALCASE # for MKS sh
17668 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17669 emulate sh
17670 NULLCMD=:
17671 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17672 # is contrary to our usage. Disable this feature.
17673 alias -g '${1+"$@"}'='"$@"'
17674 setopt NO_GLOB_SUBST
17675 else
17676 case `(set -o) 2>/dev/null` in #(
17677 *posix*) :
17678 set -o posix ;; #(
17679 *) :
17681 esac
17685 as_nl='
17687 export as_nl
17688 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17689 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17691 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17692 # Prefer a ksh shell builtin over an external printf program on Solaris,
17693 # but without wasting forks for bash or zsh.
17694 if test -z "$BASH_VERSION$ZSH_VERSION" \
17695 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17696 as_echo='print -r --'
17697 as_echo_n='print -rn --'
17698 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17699 as_echo='printf %s\n'
17700 as_echo_n='printf %s'
17701 else
17702 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17703 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17704 as_echo_n='/usr/ucb/echo -n'
17705 else
17706 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17707 as_echo_n_body='eval
17708 arg=$1;
17709 case $arg in #(
17710 *"$as_nl"*)
17711 expr "X$arg" : "X\\(.*\\)$as_nl";
17712 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17713 esac;
17714 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17716 export as_echo_n_body
17717 as_echo_n='sh -c $as_echo_n_body as_echo'
17719 export as_echo_body
17720 as_echo='sh -c $as_echo_body as_echo'
17723 # The user is always right.
17724 if test "${PATH_SEPARATOR+set}" != set; then
17725 PATH_SEPARATOR=:
17726 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17727 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17728 PATH_SEPARATOR=';'
17733 # IFS
17734 # We need space, tab and new line, in precisely that order. Quoting is
17735 # there to prevent editors from complaining about space-tab.
17736 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17737 # splitting by setting IFS to empty value.)
17738 IFS=" "" $as_nl"
17740 # Find who we are. Look in the path if we contain no directory separator.
17741 as_myself=
17742 case $0 in #((
17743 *[\\/]* ) as_myself=$0 ;;
17744 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17745 for as_dir in $PATH
17747 IFS=$as_save_IFS
17748 test -z "$as_dir" && as_dir=.
17749 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17750 done
17751 IFS=$as_save_IFS
17754 esac
17755 # We did not find ourselves, most probably we were run as `sh COMMAND'
17756 # in which case we are not to be found in the path.
17757 if test "x$as_myself" = x; then
17758 as_myself=$0
17760 if test ! -f "$as_myself"; then
17761 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17762 exit 1
17765 # Unset variables that we do not need and which cause bugs (e.g. in
17766 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17767 # suppresses any "Segmentation fault" message there. '((' could
17768 # trigger a bug in pdksh 5.2.14.
17769 for as_var in BASH_ENV ENV MAIL MAILPATH
17770 do eval test x\${$as_var+set} = xset \
17771 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17772 done
17773 PS1='$ '
17774 PS2='> '
17775 PS4='+ '
17777 # NLS nuisances.
17778 LC_ALL=C
17779 export LC_ALL
17780 LANGUAGE=C
17781 export LANGUAGE
17783 # CDPATH.
17784 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17787 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17788 # ----------------------------------------
17789 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17790 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17791 # script with STATUS, using 1 if that was 0.
17792 as_fn_error ()
17794 as_status=$1; test $as_status -eq 0 && as_status=1
17795 if test "$4"; then
17796 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17797 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17799 $as_echo "$as_me: error: $2" >&2
17800 as_fn_exit $as_status
17801 } # as_fn_error
17804 # as_fn_set_status STATUS
17805 # -----------------------
17806 # Set $? to STATUS, without forking.
17807 as_fn_set_status ()
17809 return $1
17810 } # as_fn_set_status
17812 # as_fn_exit STATUS
17813 # -----------------
17814 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17815 as_fn_exit ()
17817 set +e
17818 as_fn_set_status $1
17819 exit $1
17820 } # as_fn_exit
17822 # as_fn_unset VAR
17823 # ---------------
17824 # Portably unset VAR.
17825 as_fn_unset ()
17827 { eval $1=; unset $1;}
17829 as_unset=as_fn_unset
17830 # as_fn_append VAR VALUE
17831 # ----------------------
17832 # Append the text in VALUE to the end of the definition contained in VAR. Take
17833 # advantage of any shell optimizations that allow amortized linear growth over
17834 # repeated appends, instead of the typical quadratic growth present in naive
17835 # implementations.
17836 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17837 eval 'as_fn_append ()
17839 eval $1+=\$2
17841 else
17842 as_fn_append ()
17844 eval $1=\$$1\$2
17846 fi # as_fn_append
17848 # as_fn_arith ARG...
17849 # ------------------
17850 # Perform arithmetic evaluation on the ARGs, and store the result in the
17851 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17852 # must be portable across $(()) and expr.
17853 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17854 eval 'as_fn_arith ()
17856 as_val=$(( $* ))
17858 else
17859 as_fn_arith ()
17861 as_val=`expr "$@" || test $? -eq 1`
17863 fi # as_fn_arith
17866 if expr a : '\(a\)' >/dev/null 2>&1 &&
17867 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17868 as_expr=expr
17869 else
17870 as_expr=false
17873 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17874 as_basename=basename
17875 else
17876 as_basename=false
17879 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17880 as_dirname=dirname
17881 else
17882 as_dirname=false
17885 as_me=`$as_basename -- "$0" ||
17886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17887 X"$0" : 'X\(//\)$' \| \
17888 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17889 $as_echo X/"$0" |
17890 sed '/^.*\/\([^/][^/]*\)\/*$/{
17891 s//\1/
17894 /^X\/\(\/\/\)$/{
17895 s//\1/
17898 /^X\/\(\/\).*/{
17899 s//\1/
17902 s/.*/./; q'`
17904 # Avoid depending upon Character Ranges.
17905 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17906 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17907 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17908 as_cr_digits='0123456789'
17909 as_cr_alnum=$as_cr_Letters$as_cr_digits
17911 ECHO_C= ECHO_N= ECHO_T=
17912 case `echo -n x` in #(((((
17913 -n*)
17914 case `echo 'xy\c'` in
17915 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17916 xy) ECHO_C='\c';;
17917 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17918 ECHO_T=' ';;
17919 esac;;
17921 ECHO_N='-n';;
17922 esac
17924 rm -f conf$$ conf$$.exe conf$$.file
17925 if test -d conf$$.dir; then
17926 rm -f conf$$.dir/conf$$.file
17927 else
17928 rm -f conf$$.dir
17929 mkdir conf$$.dir 2>/dev/null
17931 if (echo >conf$$.file) 2>/dev/null; then
17932 if ln -s conf$$.file conf$$ 2>/dev/null; then
17933 as_ln_s='ln -s'
17934 # ... but there are two gotchas:
17935 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17936 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17937 # In both cases, we have to default to `cp -pR'.
17938 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17939 as_ln_s='cp -pR'
17940 elif ln conf$$.file conf$$ 2>/dev/null; then
17941 as_ln_s=ln
17942 else
17943 as_ln_s='cp -pR'
17945 else
17946 as_ln_s='cp -pR'
17948 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17949 rmdir conf$$.dir 2>/dev/null
17952 # as_fn_mkdir_p
17953 # -------------
17954 # Create "$as_dir" as a directory, including parents if necessary.
17955 as_fn_mkdir_p ()
17958 case $as_dir in #(
17959 -*) as_dir=./$as_dir;;
17960 esac
17961 test -d "$as_dir" || eval $as_mkdir_p || {
17962 as_dirs=
17963 while :; do
17964 case $as_dir in #(
17965 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17966 *) as_qdir=$as_dir;;
17967 esac
17968 as_dirs="'$as_qdir' $as_dirs"
17969 as_dir=`$as_dirname -- "$as_dir" ||
17970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17971 X"$as_dir" : 'X\(//\)[^/]' \| \
17972 X"$as_dir" : 'X\(//\)$' \| \
17973 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17974 $as_echo X"$as_dir" |
17975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17976 s//\1/
17979 /^X\(\/\/\)[^/].*/{
17980 s//\1/
17983 /^X\(\/\/\)$/{
17984 s//\1/
17987 /^X\(\/\).*/{
17988 s//\1/
17991 s/.*/./; q'`
17992 test -d "$as_dir" && break
17993 done
17994 test -z "$as_dirs" || eval "mkdir $as_dirs"
17995 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17998 } # as_fn_mkdir_p
17999 if mkdir -p . 2>/dev/null; then
18000 as_mkdir_p='mkdir -p "$as_dir"'
18001 else
18002 test -d ./-p && rmdir ./-p
18003 as_mkdir_p=false
18007 # as_fn_executable_p FILE
18008 # -----------------------
18009 # Test if FILE is an executable regular file.
18010 as_fn_executable_p ()
18012 test -f "$1" && test -x "$1"
18013 } # as_fn_executable_p
18014 as_test_x='test -x'
18015 as_executable_p=as_fn_executable_p
18017 # Sed expression to map a string onto a valid CPP name.
18018 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18020 # Sed expression to map a string onto a valid variable name.
18021 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18024 exec 6>&1
18025 ## ----------------------------------- ##
18026 ## Main body of $CONFIG_STATUS script. ##
18027 ## ----------------------------------- ##
18028 _ASEOF
18029 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18032 # Save the log message, to keep $0 and so on meaningful, and to
18033 # report actual input values of CONFIG_FILES etc. instead of their
18034 # values after options handling.
18035 ac_log="
18036 This file was extended by Wine $as_me 1.7.12, which was
18037 generated by GNU Autoconf 2.69. Invocation command line was
18039 CONFIG_FILES = $CONFIG_FILES
18040 CONFIG_HEADERS = $CONFIG_HEADERS
18041 CONFIG_LINKS = $CONFIG_LINKS
18042 CONFIG_COMMANDS = $CONFIG_COMMANDS
18043 $ $0 $@
18045 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18048 _ACEOF
18050 case $ac_config_files in *"
18051 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18052 esac
18054 case $ac_config_headers in *"
18055 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18056 esac
18059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18060 # Files that config.status was made for.
18061 config_files="$ac_config_files"
18062 config_headers="$ac_config_headers"
18063 config_links="$ac_config_links"
18064 config_commands="$ac_config_commands"
18066 _ACEOF
18068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18069 ac_cs_usage="\
18070 \`$as_me' instantiates files and other configuration actions
18071 from templates according to the current configuration. Unless the files
18072 and actions are specified as TAGs, all are instantiated by default.
18074 Usage: $0 [OPTION]... [TAG]...
18076 -h, --help print this help, then exit
18077 -V, --version print version number and configuration settings, then exit
18078 --config print configuration, then exit
18079 -q, --quiet, --silent
18080 do not print progress messages
18081 -d, --debug don't remove temporary files
18082 --recheck update $as_me by reconfiguring in the same conditions
18083 --file=FILE[:TEMPLATE]
18084 instantiate the configuration file FILE
18085 --header=FILE[:TEMPLATE]
18086 instantiate the configuration header FILE
18088 Configuration files:
18089 $config_files
18091 Configuration headers:
18092 $config_headers
18094 Configuration links:
18095 $config_links
18097 Configuration commands:
18098 $config_commands
18100 Report bugs to <wine-devel@winehq.org>.
18101 Wine home page: <http://www.winehq.org>."
18103 _ACEOF
18104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18105 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18106 ac_cs_version="\\
18107 Wine config.status 1.7.12
18108 configured by $0, generated by GNU Autoconf 2.69,
18109 with options \\"\$ac_cs_config\\"
18111 Copyright (C) 2012 Free Software Foundation, Inc.
18112 This config.status script is free software; the Free Software Foundation
18113 gives unlimited permission to copy, distribute and modify it."
18115 ac_pwd='$ac_pwd'
18116 srcdir='$srcdir'
18117 test -n "\$AWK" || AWK=awk
18118 _ACEOF
18120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18121 # The default lists apply if the user does not specify any file.
18122 ac_need_defaults=:
18123 while test $# != 0
18125 case $1 in
18126 --*=?*)
18127 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18128 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18129 ac_shift=:
18131 --*=)
18132 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18133 ac_optarg=
18134 ac_shift=:
18137 ac_option=$1
18138 ac_optarg=$2
18139 ac_shift=shift
18141 esac
18143 case $ac_option in
18144 # Handling of the options.
18145 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18146 ac_cs_recheck=: ;;
18147 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18148 $as_echo "$ac_cs_version"; exit ;;
18149 --config | --confi | --conf | --con | --co | --c )
18150 $as_echo "$ac_cs_config"; exit ;;
18151 --debug | --debu | --deb | --de | --d | -d )
18152 debug=: ;;
18153 --file | --fil | --fi | --f )
18154 $ac_shift
18155 case $ac_optarg in
18156 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18157 '') as_fn_error $? "missing file argument" ;;
18158 esac
18159 as_fn_append CONFIG_FILES " '$ac_optarg'"
18160 ac_need_defaults=false;;
18161 --header | --heade | --head | --hea )
18162 $ac_shift
18163 case $ac_optarg in
18164 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18165 esac
18166 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18167 ac_need_defaults=false;;
18168 --he | --h)
18169 # Conflict between --help and --header
18170 as_fn_error $? "ambiguous option: \`$1'
18171 Try \`$0 --help' for more information.";;
18172 --help | --hel | -h )
18173 $as_echo "$ac_cs_usage"; exit ;;
18174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18175 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18176 ac_cs_silent=: ;;
18178 # This is an error.
18179 -*) as_fn_error $? "unrecognized option: \`$1'
18180 Try \`$0 --help' for more information." ;;
18182 *) as_fn_append ac_config_targets " $1"
18183 ac_need_defaults=false ;;
18185 esac
18186 shift
18187 done
18189 ac_configure_extra_args=
18191 if $ac_cs_silent; then
18192 exec 6>/dev/null
18193 ac_configure_extra_args="$ac_configure_extra_args --silent"
18196 _ACEOF
18197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18198 if \$ac_cs_recheck; then
18199 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18200 shift
18201 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18202 CONFIG_SHELL='$SHELL'
18203 export CONFIG_SHELL
18204 exec "\$@"
18207 _ACEOF
18208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18209 exec 5>>config.log
18211 echo
18212 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18213 ## Running $as_me. ##
18214 _ASBOX
18215 $as_echo "$ac_log"
18216 } >&5
18218 _ACEOF
18219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18221 # INIT-COMMANDS
18223 wine_fn_output_makedep ()
18225 as_dir=tools; as_fn_mkdir_p
18226 $CC -Iinclude -I$srcdir/include -D__WINESRC__ $EXTRACFLAGS $CPPFLAGS $CFLAGS -o tools/makedep$ac_exeext $srcdir/tools/makedep.c $LDFLAGS
18228 wine_fn_output_makefile ()
18230 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
18231 `cat $wine_rules_file`
18232 _WINE_EOF
18233 as_fn_error $? "could not create Makefile" "$LINENO" 5
18235 wine_fn_output_gitignore ()
18237 sort <<\_WINE_EOF >\$tmp/gitignore && mv -f \$tmp/gitignore \$1 && return
18238 $GITIGNORE
18239 _WINE_EOF
18240 as_fn_error $? "could not create .gitignore" "$LINENO" 5
18243 _ACEOF
18245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18247 # Handling of arguments.
18248 for ac_config_target in $ac_config_targets
18250 case $ac_config_target in
18251 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18252 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18253 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18254 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18255 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18256 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18257 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18258 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18259 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18260 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18261 "tools/makedep") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/makedep" ;;
18262 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18263 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18264 ".gitignore") CONFIG_COMMANDS="$CONFIG_COMMANDS .gitignore" ;;
18266 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18267 esac
18268 done
18271 # If the user did not use the arguments to specify the items to instantiate,
18272 # then the envvar interface is used. Set only those that are not.
18273 # We use the long form for the default assignment because of an extremely
18274 # bizarre bug on SunOS 4.1.3.
18275 if $ac_need_defaults; then
18276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18278 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18279 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18282 # Have a temporary directory for convenience. Make it in the build tree
18283 # simply because there is no reason against having it here, and in addition,
18284 # creating and moving files from /tmp can sometimes cause problems.
18285 # Hook for its removal unless debugging.
18286 # Note that there is a small window in which the directory will not be cleaned:
18287 # after its creation but before its name has been assigned to `$tmp'.
18288 $debug ||
18290 tmp= ac_tmp=
18291 trap 'exit_status=$?
18292 : "${ac_tmp:=$tmp}"
18293 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18295 trap 'as_fn_exit 1' 1 2 13 15
18297 # Create a (secure) tmp directory for tmp files.
18300 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18301 test -d "$tmp"
18302 } ||
18304 tmp=./conf$$-$RANDOM
18305 (umask 077 && mkdir "$tmp")
18306 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18307 ac_tmp=$tmp
18309 # Set up the scripts for CONFIG_FILES section.
18310 # No need to generate them if there are no CONFIG_FILES.
18311 # This happens for instance with `./config.status config.h'.
18312 if test -n "$CONFIG_FILES"; then
18315 ac_cr=`echo X | tr X '\015'`
18316 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18317 # But we know of no other shell where ac_cr would be empty at this
18318 # point, so we can use a bashism as a fallback.
18319 if test "x$ac_cr" = x; then
18320 eval ac_cr=\$\'\\r\'
18322 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18323 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18324 ac_cs_awk_cr='\\r'
18325 else
18326 ac_cs_awk_cr=$ac_cr
18329 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18330 _ACEOF
18334 echo "cat >conf$$subs.awk <<_ACEOF" &&
18335 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18336 echo "_ACEOF"
18337 } >conf$$subs.sh ||
18338 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18339 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18340 ac_delim='%!_!# '
18341 for ac_last_try in false false false false false :; do
18342 . ./conf$$subs.sh ||
18343 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18345 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18346 if test $ac_delim_n = $ac_delim_num; then
18347 break
18348 elif $ac_last_try; then
18349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18350 else
18351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18353 done
18354 rm -f conf$$subs.sh
18356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18357 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18358 _ACEOF
18359 sed -n '
18361 s/^/S["/; s/!.*/"]=/
18364 s/^[^!]*!//
18365 :repl
18366 t repl
18367 s/'"$ac_delim"'$//
18368 t delim
18371 s/\(.\{148\}\)..*/\1/
18372 t more1
18373 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18376 b repl
18377 :more1
18378 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18381 s/.\{148\}//
18382 t nl
18383 :delim
18385 s/\(.\{148\}\)..*/\1/
18386 t more2
18387 s/["\\]/\\&/g; s/^/"/; s/$/"/
18390 :more2
18391 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18394 s/.\{148\}//
18395 t delim
18396 ' <conf$$subs.awk | sed '
18397 /^[^""]/{
18399 s/\n//
18401 ' >>$CONFIG_STATUS || ac_write_fail=1
18402 rm -f conf$$subs.awk
18403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18404 _ACAWK
18405 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18406 for (key in S) S_is_set[key] = 1
18407 FS = "\a"
18411 line = $ 0
18412 nfields = split(line, field, "@")
18413 substed = 0
18414 len = length(field[1])
18415 for (i = 2; i < nfields; i++) {
18416 key = field[i]
18417 keylen = length(key)
18418 if (S_is_set[key]) {
18419 value = S[key]
18420 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18421 len += length(value) + length(field[++i])
18422 substed = 1
18423 } else
18424 len += 1 + keylen
18427 print line
18430 _ACAWK
18431 _ACEOF
18432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18433 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18434 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18435 else
18437 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18438 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18439 _ACEOF
18441 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18442 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18443 # trailing colons and then remove the whole line if VPATH becomes empty
18444 # (actually we leave an empty line to preserve line numbers).
18445 if test "x$srcdir" = x.; then
18446 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18448 s///
18449 s/^/:/
18450 s/[ ]*$/:/
18451 s/:\$(srcdir):/:/g
18452 s/:\${srcdir}:/:/g
18453 s/:@srcdir@:/:/g
18454 s/^:*//
18455 s/:*$//
18457 s/\(=[ ]*\).*/\1/
18459 s/\n//
18460 s/^[^=]*=[ ]*$//
18464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18465 fi # test -n "$CONFIG_FILES"
18467 # Set up the scripts for CONFIG_HEADERS section.
18468 # No need to generate them if there are no CONFIG_HEADERS.
18469 # This happens for instance with `./config.status Makefile'.
18470 if test -n "$CONFIG_HEADERS"; then
18471 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18472 BEGIN {
18473 _ACEOF
18475 # Transform confdefs.h into an awk script `defines.awk', embedded as
18476 # here-document in config.status, that substitutes the proper values into
18477 # config.h.in to produce config.h.
18479 # Create a delimiter string that does not exist in confdefs.h, to ease
18480 # handling of long lines.
18481 ac_delim='%!_!# '
18482 for ac_last_try in false false :; do
18483 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18484 if test -z "$ac_tt"; then
18485 break
18486 elif $ac_last_try; then
18487 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18488 else
18489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18491 done
18493 # For the awk script, D is an array of macro values keyed by name,
18494 # likewise P contains macro parameters if any. Preserve backslash
18495 # newline sequences.
18497 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18498 sed -n '
18499 s/.\{148\}/&'"$ac_delim"'/g
18500 t rset
18501 :rset
18502 s/^[ ]*#[ ]*define[ ][ ]*/ /
18503 t def
18505 :def
18506 s/\\$//
18507 t bsnl
18508 s/["\\]/\\&/g
18509 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18510 D["\1"]=" \3"/p
18511 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18513 :bsnl
18514 s/["\\]/\\&/g
18515 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18516 D["\1"]=" \3\\\\\\n"\\/p
18517 t cont
18518 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18519 t cont
18521 :cont
18523 s/.\{148\}/&'"$ac_delim"'/g
18524 t clear
18525 :clear
18526 s/\\$//
18527 t bsnlc
18528 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18530 :bsnlc
18531 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18532 b cont
18533 ' <confdefs.h | sed '
18534 s/'"$ac_delim"'/"\\\
18535 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18538 for (key in D) D_is_set[key] = 1
18539 FS = "\a"
18541 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18542 line = \$ 0
18543 split(line, arg, " ")
18544 if (arg[1] == "#") {
18545 defundef = arg[2]
18546 mac1 = arg[3]
18547 } else {
18548 defundef = substr(arg[1], 2)
18549 mac1 = arg[2]
18551 split(mac1, mac2, "(") #)
18552 macro = mac2[1]
18553 prefix = substr(line, 1, index(line, defundef) - 1)
18554 if (D_is_set[macro]) {
18555 # Preserve the white space surrounding the "#".
18556 print prefix "define", macro P[macro] D[macro]
18557 next
18558 } else {
18559 # Replace #undef with comments. This is necessary, for example,
18560 # in the case of _POSIX_SOURCE, which is predefined and required
18561 # on some systems where configure will not decide to define it.
18562 if (defundef == "undef") {
18563 print "/*", prefix defundef, macro, "*/"
18564 next
18568 { print }
18569 _ACAWK
18570 _ACEOF
18571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18572 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18573 fi # test -n "$CONFIG_HEADERS"
18576 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18577 shift
18578 for ac_tag
18580 case $ac_tag in
18581 :[FHLC]) ac_mode=$ac_tag; continue;;
18582 esac
18583 case $ac_mode$ac_tag in
18584 :[FHL]*:*);;
18585 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18586 :[FH]-) ac_tag=-:-;;
18587 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18588 esac
18589 ac_save_IFS=$IFS
18590 IFS=:
18591 set x $ac_tag
18592 IFS=$ac_save_IFS
18593 shift
18594 ac_file=$1
18595 shift
18597 case $ac_mode in
18598 :L) ac_source=$1;;
18599 :[FH])
18600 ac_file_inputs=
18601 for ac_f
18603 case $ac_f in
18604 -) ac_f="$ac_tmp/stdin";;
18605 *) # Look for the file first in the build tree, then in the source tree
18606 # (if the path is not absolute). The absolute path cannot be DOS-style,
18607 # because $ac_f cannot contain `:'.
18608 test -f "$ac_f" ||
18609 case $ac_f in
18610 [\\/$]*) false;;
18611 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18612 esac ||
18613 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18614 esac
18615 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18616 as_fn_append ac_file_inputs " '$ac_f'"
18617 done
18619 # Let's still pretend it is `configure' which instantiates (i.e., don't
18620 # use $as_me), people would be surprised to read:
18621 # /* config.h. Generated by config.status. */
18622 configure_input='Generated from '`
18623 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18624 `' by configure.'
18625 if test x"$ac_file" != x-; then
18626 configure_input="$ac_file. $configure_input"
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18628 $as_echo "$as_me: creating $ac_file" >&6;}
18630 # Neutralize special characters interpreted by sed in replacement strings.
18631 case $configure_input in #(
18632 *\&* | *\|* | *\\* )
18633 ac_sed_conf_input=`$as_echo "$configure_input" |
18634 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18635 *) ac_sed_conf_input=$configure_input;;
18636 esac
18638 case $ac_tag in
18639 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18640 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18641 esac
18643 esac
18645 ac_dir=`$as_dirname -- "$ac_file" ||
18646 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18647 X"$ac_file" : 'X\(//\)[^/]' \| \
18648 X"$ac_file" : 'X\(//\)$' \| \
18649 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18650 $as_echo X"$ac_file" |
18651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18652 s//\1/
18655 /^X\(\/\/\)[^/].*/{
18656 s//\1/
18659 /^X\(\/\/\)$/{
18660 s//\1/
18663 /^X\(\/\).*/{
18664 s//\1/
18667 s/.*/./; q'`
18668 as_dir="$ac_dir"; as_fn_mkdir_p
18669 ac_builddir=.
18671 case "$ac_dir" in
18672 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18674 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18675 # A ".." for each directory in $ac_dir_suffix.
18676 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18677 case $ac_top_builddir_sub in
18678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18680 esac ;;
18681 esac
18682 ac_abs_top_builddir=$ac_pwd
18683 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18684 # for backward compatibility:
18685 ac_top_builddir=$ac_top_build_prefix
18687 case $srcdir in
18688 .) # We are building in place.
18689 ac_srcdir=.
18690 ac_top_srcdir=$ac_top_builddir_sub
18691 ac_abs_top_srcdir=$ac_pwd ;;
18692 [\\/]* | ?:[\\/]* ) # Absolute name.
18693 ac_srcdir=$srcdir$ac_dir_suffix;
18694 ac_top_srcdir=$srcdir
18695 ac_abs_top_srcdir=$srcdir ;;
18696 *) # Relative name.
18697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18698 ac_top_srcdir=$ac_top_build_prefix$srcdir
18699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18700 esac
18701 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18704 case $ac_mode in
18707 # CONFIG_FILE
18710 _ACEOF
18712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18713 # If the template does not know about datarootdir, expand it.
18714 # FIXME: This hack should be removed a few years after 2.60.
18715 ac_datarootdir_hack=; ac_datarootdir_seen=
18716 ac_sed_dataroot='
18717 /datarootdir/ {
18721 /@datadir@/p
18722 /@docdir@/p
18723 /@infodir@/p
18724 /@localedir@/p
18725 /@mandir@/p'
18726 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18727 *datarootdir*) ac_datarootdir_seen=yes;;
18728 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18730 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18731 _ACEOF
18732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18733 ac_datarootdir_hack='
18734 s&@datadir@&$datadir&g
18735 s&@docdir@&$docdir&g
18736 s&@infodir@&$infodir&g
18737 s&@localedir@&$localedir&g
18738 s&@mandir@&$mandir&g
18739 s&\\\${datarootdir}&$datarootdir&g' ;;
18740 esac
18741 _ACEOF
18743 # Neutralize VPATH when `$srcdir' = `.'.
18744 # Shell code in configure.ac might set extrasub.
18745 # FIXME: do we really want to maintain this feature?
18746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18747 ac_sed_extra="$ac_vpsub
18748 $extrasub
18749 _ACEOF
18750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18752 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18753 s|@configure_input@|$ac_sed_conf_input|;t t
18754 s&@top_builddir@&$ac_top_builddir_sub&;t t
18755 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18756 s&@srcdir@&$ac_srcdir&;t t
18757 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18758 s&@top_srcdir@&$ac_top_srcdir&;t t
18759 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18760 s&@builddir@&$ac_builddir&;t t
18761 s&@abs_builddir@&$ac_abs_builddir&;t t
18762 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18763 $ac_datarootdir_hack
18765 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18766 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18768 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18769 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18770 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18771 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18773 which seems to be undefined. Please make sure it is defined" >&5
18774 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18775 which seems to be undefined. Please make sure it is defined" >&2;}
18777 rm -f "$ac_tmp/stdin"
18778 case $ac_file in
18779 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18780 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18781 esac \
18782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18786 # CONFIG_HEADER
18788 if test x"$ac_file" != x-; then
18790 $as_echo "/* $configure_input */" \
18791 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18792 } >"$ac_tmp/config.h" \
18793 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18794 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18796 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18797 else
18798 rm -f "$ac_file"
18799 mv "$ac_tmp/config.h" "$ac_file" \
18800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18802 else
18803 $as_echo "/* $configure_input */" \
18804 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18805 || as_fn_error $? "could not create -" "$LINENO" 5
18810 # CONFIG_LINK
18813 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18815 else
18816 # Prefer the file from the source tree if names are identical.
18817 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18818 ac_source=$srcdir/$ac_source
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18822 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18824 if test ! -r "$ac_source"; then
18825 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18827 rm -f "$ac_file"
18829 # Try a relative symlink, then a hard link, then a copy.
18830 case $ac_source in
18831 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18832 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18833 esac
18834 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18835 ln "$ac_source" "$ac_file" 2>/dev/null ||
18836 cp -p "$ac_source" "$ac_file" ||
18837 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18840 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18841 $as_echo "$as_me: executing $ac_file commands" >&6;}
18843 esac
18846 case $ac_file$ac_mode in
18847 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
18848 "tools/makedep":C) wine_fn_output_makedep || as_fn_exit $? ;;
18849 "Makefile":C) wine_fn_output_makefile Makefile ;;
18850 ".gitignore":C) wine_fn_output_gitignore .gitignore ;;
18852 esac
18853 done # for ac_tag
18856 as_fn_exit 0
18857 _ACEOF
18858 ac_clean_files=$ac_clean_files_save
18860 test $ac_write_fail = 0 ||
18861 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18864 # configure is writing to config.log, and then calls config.status.
18865 # config.status does its own redirection, appending to config.log.
18866 # Unfortunately, on DOS this fails, as config.log is still kept open
18867 # by configure, so config.status won't be able to write to it; its
18868 # output is simply discarded. So we exec the FD to /dev/null,
18869 # effectively closing config.log, so it can be properly (re)opened and
18870 # appended to by config.status. When coming back to configure, we
18871 # need to make the FD available again.
18872 if test "$no_create" != yes; then
18873 ac_cs_success=:
18874 ac_config_status_args=
18875 test "$silent" = yes &&
18876 ac_config_status_args="$ac_config_status_args --quiet"
18877 exec 5>/dev/null
18878 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18879 exec 5>>config.log
18880 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18881 # would make configure fail if this is the last instruction.
18882 $ac_cs_success || as_fn_exit 1
18884 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18886 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18890 if test "$no_create" = "yes"
18891 then
18892 exit 0
18895 ac_save_IFS="$IFS"
18896 if test "x$wine_notices != "x; then
18897 echo >&6
18898 IFS="|"
18899 for msg in $wine_notices; do
18900 IFS="$ac_save_IFS"
18901 if ${msg+:} false; then :
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18903 $as_echo "$as_me: $msg" >&6;}
18905 done
18907 IFS="|"
18908 for msg in $wine_warnings; do
18909 IFS="$ac_save_IFS"
18910 if ${msg+:} false; then :
18911 echo >&2
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18913 $as_echo "$as_me: WARNING: $msg" >&2;}
18915 done
18916 IFS="$ac_save_IFS"
18918 $as_echo "
18919 $as_me: Finished. Do '${ac_make}' to compile Wine.
18920 " >&6