makefiles: Get rid of the MAKE_IMPLIB_RULES variable.
[wine.git] / configure
blob859a8921c1a77fe9aa2d7045fcdd6cbb99f2d14b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.9.
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.9'
584 PACKAGE_STRING='Wine 1.7.9'
585 PACKAGE_BUGREPORT='wine-devel@winehq.org'
586 PACKAGE_URL='http://www.winehq.org'
588 ac_unique_file="server/atom.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 PORCFLAGS
628 LINGUAS
629 MAKE_TEST_RULES
630 LDAPLIBS
631 LIBRT
632 LIBPOLL
633 LIBDL
634 TOOLSEXT
635 UNWINDFLAGS
636 BUILTINFLAG
637 EXTRACFLAGS
638 LIBPROCSTAT
639 LIBKSTAT
640 LIBOPENAL
641 MPG123_LIBS
642 MPG123_CFLAGS
643 TIFF_LIBS
644 TIFF_CFLAGS
645 PNG_LIBS
646 PNG_CFLAGS
647 JPEG_LIBS
648 JPEG_CFLAGS
649 FONTCONFIGINCL
650 CUPSINCL
651 CAPI20_LIBS
652 CAPI20_CFLAGS
653 OSS4INCL
654 ALSALIBS
655 GSTREAMER_LIBS
656 GSTREAMER_CFLAGS
657 LIBGETTEXTPO
658 ZLIB
659 FREETYPE_LIBS
660 FREETYPE_CFLAGS
661 LCMS2_LIBS
662 LCMS2_CFLAGS
663 RESOLVLIBS
664 GPHOTO2_PORT_LIBS
665 GPHOTO2_PORT_CFLAGS
666 GPHOTO2_LIBS
667 GPHOTO2_CFLAGS
668 SANE_LIBS
669 SANE_CFLAGS
670 GNUTLS_LIBS
671 GNUTLS_CFLAGS
672 HAL_LIBS
673 HAL_CFLAGS
674 DBUS_LIBS
675 DBUS_CFLAGS
676 XSLT_LIBS
677 XSLT_CFLAGS
678 XML2_LIBS
679 XML2_CFLAGS
680 X_EXTRA_LIBS
681 X_LIBS
682 X_PRE_LIBS
683 X_CFLAGS
684 XMKMF
685 LIBPTHREAD
686 CROSSCC
687 CROSSTARGET
688 PRELINK
689 CARBONLIB
690 QUICKTIMELIB
691 LIBOPENCL
692 FRAMEWORK_OPENAL
693 COREAUDIO
694 SECURITYLIB
695 DISKARBITRATIONLIB
696 APPKITLIB
697 CORESERVICESLIB
698 APPLICATIONSERVICESLIB
699 FORCEFEEDBACKLIB
700 IOKITLIB
701 COREFOUNDATIONLIB
702 LIBWINE_RULES
703 SOCKETLIBS
704 DLLTOOL
705 LOADER_RULES
706 ALL_TEST_RESOURCES
707 READELF
709 LDRPATH_LOCAL
710 LDRPATH_INSTALL
711 DLLFLAGS
712 DLLPREFIX
713 dlldir
715 OPENGL_LIBS
716 XLIB
717 ICOTOOL
718 CONVERT
719 RSVG
720 FONTFORGE
721 PKG_CONFIG
722 MSGFMT
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 INSTALL
727 LDCONFIG
728 MKDIR_P
729 EGREP
730 GREP
731 LN_S
732 RANLIB
733 ARFLAGS
734 STRIP
735 ac_ct_AR
737 BISON
738 FLEX
739 TOOLSDIR
740 TARGETFLAGS
741 CPPBIN
742 ac_ct_CXX
743 CXXFLAGS
745 OBJEXT
746 EXEEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
752 SET_MAKE
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files='MAKE_RULES'
800 ac_user_opts='
801 enable_option_checking
802 enable_win16
803 enable_win64
804 enable_tests
805 enable_maintainer_mode
806 with_alsa
807 with_capi
808 with_cms
809 with_coreaudio
810 with_cups
811 with_curses
812 with_dbus
813 with_fontconfig
814 with_freetype
815 with_gettext
816 with_gettextpo
817 with_gphoto
818 with_glu
819 with_gnutls
820 with_gsm
821 with_gstreamer
822 with_hal
823 with_jpeg
824 with_ldap
825 with_mpg123
826 with_netapi
827 with_openal
828 with_opencl
829 with_opengl
830 with_osmesa
831 with_oss
832 with_png
833 with_pthread
834 with_sane
835 with_tiff
836 with_v4l
837 with_xcomposite
838 with_xcursor
839 with_xinerama
840 with_xinput
841 with_xinput2
842 with_xml
843 with_xrandr
844 with_xrender
845 with_xshape
846 with_xshm
847 with_xslt
848 with_xxf86vm
849 with_zlib
850 with_wine_tools
851 with_wine64
852 enable_largefile
853 with_x
854 enable_acledit
855 enable_aclui
856 enable_activeds
857 enable_actxprxy
858 enable_advapi32
859 enable_advpack
860 enable_amstream
861 enable_api_ms_win_core_localregistry_l1_1_0
862 enable_api_ms_win_core_processthreads_l1_1_0
863 enable_api_ms_win_core_winrt_error_l1_1_0
864 enable_api_ms_win_core_winrt_string_l1_1_0
865 enable_api_ms_win_downlevel_advapi32_l1_1_0
866 enable_api_ms_win_downlevel_advapi32_l2_1_0
867 enable_api_ms_win_downlevel_normaliz_l1_1_0
868 enable_api_ms_win_downlevel_ole32_l1_1_0
869 enable_api_ms_win_downlevel_shell32_l1_1_0
870 enable_api_ms_win_downlevel_shlwapi_l1_1_0
871 enable_api_ms_win_downlevel_shlwapi_l2_1_0
872 enable_api_ms_win_downlevel_user32_l1_1_0
873 enable_api_ms_win_downlevel_version_l1_1_0
874 enable_api_ms_win_security_base_l1_1_0
875 enable_apphelp
876 enable_appwiz_cpl
877 enable_atl
878 enable_atl100
879 enable_atl110
880 enable_atl80
881 enable_atl90
882 enable_authz
883 enable_avicap32
884 enable_avifil32
885 enable_avrt
886 enable_bcrypt
887 enable_browseui
888 enable_cabinet
889 enable_capi2032
890 enable_cards
891 enable_cfgmgr32
892 enable_clusapi
893 enable_comcat
894 enable_comctl32
895 enable_comdlg32
896 enable_compstui
897 enable_comsvcs
898 enable_credui
899 enable_crtdll
900 enable_crypt32
901 enable_cryptdlg
902 enable_cryptdll
903 enable_cryptnet
904 enable_cryptui
905 enable_ctapi32
906 enable_ctl3d32
907 enable_d3d10
908 enable_d3d10core
909 enable_d3d11
910 enable_d3d8
911 enable_d3d9
912 enable_d3dcompiler_33
913 enable_d3dcompiler_34
914 enable_d3dcompiler_35
915 enable_d3dcompiler_36
916 enable_d3dcompiler_37
917 enable_d3dcompiler_38
918 enable_d3dcompiler_39
919 enable_d3dcompiler_40
920 enable_d3dcompiler_41
921 enable_d3dcompiler_42
922 enable_d3dcompiler_43
923 enable_d3dim
924 enable_d3drm
925 enable_d3dx10_33
926 enable_d3dx10_34
927 enable_d3dx10_35
928 enable_d3dx10_36
929 enable_d3dx10_37
930 enable_d3dx10_38
931 enable_d3dx10_39
932 enable_d3dx10_40
933 enable_d3dx10_41
934 enable_d3dx10_42
935 enable_d3dx10_43
936 enable_d3dx11_42
937 enable_d3dx11_43
938 enable_d3dx9_24
939 enable_d3dx9_25
940 enable_d3dx9_26
941 enable_d3dx9_27
942 enable_d3dx9_28
943 enable_d3dx9_29
944 enable_d3dx9_30
945 enable_d3dx9_31
946 enable_d3dx9_32
947 enable_d3dx9_33
948 enable_d3dx9_34
949 enable_d3dx9_35
950 enable_d3dx9_36
951 enable_d3dx9_37
952 enable_d3dx9_38
953 enable_d3dx9_39
954 enable_d3dx9_40
955 enable_d3dx9_41
956 enable_d3dx9_42
957 enable_d3dx9_43
958 enable_d3dxof
959 enable_dbgeng
960 enable_dbghelp
961 enable_dciman32
962 enable_ddraw
963 enable_ddrawex
964 enable_devenum
965 enable_dhcpcsvc
966 enable_difxapi
967 enable_dinput
968 enable_dinput8
969 enable_dispex
970 enable_dmband
971 enable_dmcompos
972 enable_dmime
973 enable_dmloader
974 enable_dmscript
975 enable_dmstyle
976 enable_dmsynth
977 enable_dmusic
978 enable_dmusic32
979 enable_dnsapi
980 enable_dplay
981 enable_dplayx
982 enable_dpnaddr
983 enable_dpnet
984 enable_dpnhpast
985 enable_dpnlobby
986 enable_dpwsockx
987 enable_drmclien
988 enable_dsound
989 enable_dssenh
990 enable_dswave
991 enable_dwmapi
992 enable_dwrite
993 enable_dxdiagn
994 enable_dxgi
995 enable_explorerframe
996 enable_faultrep
997 enable_fltlib
998 enable_fusion
999 enable_fwpuclnt
1000 enable_gameux
1001 enable_gdi32
1002 enable_gdiplus
1003 enable_glu32
1004 enable_gphoto2_ds
1005 enable_gpkcsp
1006 enable_hal
1007 enable_hhctrl_ocx
1008 enable_hid
1009 enable_hlink
1010 enable_hnetcfg
1011 enable_httpapi
1012 enable_iccvid
1013 enable_icmp
1014 enable_ieframe
1015 enable_imaadp32_acm
1016 enable_imagehlp
1017 enable_imm32
1018 enable_inetcomm
1019 enable_inetcpl_cpl
1020 enable_inetmib1
1021 enable_infosoft
1022 enable_initpki
1023 enable_inkobj
1024 enable_inseng
1025 enable_iphlpapi
1026 enable_itircl
1027 enable_itss
1028 enable_joy_cpl
1029 enable_jscript
1030 enable_kernel32
1031 enable_ktmw32
1032 enable_loadperf
1033 enable_localspl
1034 enable_localui
1035 enable_lz32
1036 enable_mapi32
1037 enable_mapistub
1038 enable_mciavi32
1039 enable_mcicda
1040 enable_mciqtz32
1041 enable_mciseq
1042 enable_mciwave
1043 enable_mgmtapi
1044 enable_midimap
1045 enable_mlang
1046 enable_mmcndmgr
1047 enable_mmdevapi
1048 enable_mountmgr_sys
1049 enable_mpr
1050 enable_mprapi
1051 enable_msacm32_drv
1052 enable_msacm32
1053 enable_msadp32_acm
1054 enable_mscat32
1055 enable_mscms
1056 enable_mscoree
1057 enable_msctf
1058 enable_msdaps
1059 enable_msdmo
1060 enable_msftedit
1061 enable_msg711_acm
1062 enable_msgsm32_acm
1063 enable_mshtml_tlb
1064 enable_mshtml
1065 enable_msi
1066 enable_msident
1067 enable_msimg32
1068 enable_msimsg
1069 enable_msimtf
1070 enable_msisip
1071 enable_msisys_ocx
1072 enable_msls31
1073 enable_msnet32
1074 enable_mspatcha
1075 enable_msrle32
1076 enable_mssign32
1077 enable_mssip32
1078 enable_mstask
1079 enable_msvcirt
1080 enable_msvcm80
1081 enable_msvcm90
1082 enable_msvcp100
1083 enable_msvcp110
1084 enable_msvcp60
1085 enable_msvcp70
1086 enable_msvcp71
1087 enable_msvcp80
1088 enable_msvcp90
1089 enable_msvcr100
1090 enable_msvcr110
1091 enable_msvcr70
1092 enable_msvcr71
1093 enable_msvcr80
1094 enable_msvcr90
1095 enable_msvcrt
1096 enable_msvcrt20
1097 enable_msvcrt40
1098 enable_msvcrtd
1099 enable_msvfw32
1100 enable_msvidc32
1101 enable_mswsock
1102 enable_msxml
1103 enable_msxml2
1104 enable_msxml3
1105 enable_msxml4
1106 enable_msxml6
1107 enable_nddeapi
1108 enable_netapi32
1109 enable_netcfgx
1110 enable_newdev
1111 enable_normaliz
1112 enable_npmshtml
1113 enable_ntdll
1114 enable_ntdsapi
1115 enable_ntoskrnl_exe
1116 enable_ntprint
1117 enable_objsel
1118 enable_odbc32
1119 enable_odbccp32
1120 enable_odbccu32
1121 enable_ole32
1122 enable_oleacc
1123 enable_oleaut32
1124 enable_olecli32
1125 enable_oledb32
1126 enable_oledlg
1127 enable_olepro32
1128 enable_olesvr32
1129 enable_olethk32
1130 enable_openal32
1131 enable_opencl
1132 enable_opengl32
1133 enable_pdh
1134 enable_photometadatahandler
1135 enable_pidgen
1136 enable_powrprof
1137 enable_printui
1138 enable_propsys
1139 enable_psapi
1140 enable_pstorec
1141 enable_qcap
1142 enable_qedit
1143 enable_qmgr
1144 enable_qmgrprxy
1145 enable_quartz
1146 enable_query
1147 enable_rasapi32
1148 enable_rasdlg
1149 enable_regapi
1150 enable_resutils
1151 enable_riched20
1152 enable_riched32
1153 enable_rpcrt4
1154 enable_rsabase
1155 enable_rsaenh
1156 enable_rstrtmgr
1157 enable_rtutils
1158 enable_samlib
1159 enable_sane_ds
1160 enable_scarddlg
1161 enable_sccbase
1162 enable_schannel
1163 enable_scrrun
1164 enable_scsiport_sys
1165 enable_secur32
1166 enable_security
1167 enable_sensapi
1168 enable_serialui
1169 enable_setupapi
1170 enable_sfc
1171 enable_sfc_os
1172 enable_shdoclc
1173 enable_shdocvw
1174 enable_shell32
1175 enable_shfolder
1176 enable_shlwapi
1177 enable_slbcsp
1178 enable_slc
1179 enable_snmpapi
1180 enable_softpub
1181 enable_spoolss
1182 enable_stdole2_tlb
1183 enable_stdole32_tlb
1184 enable_sti
1185 enable_svrapi
1186 enable_sxs
1187 enable_t2embed
1188 enable_tapi32
1189 enable_taskschd
1190 enable_traffic
1191 enable_twain_32
1192 enable_unicows
1193 enable_updspapi
1194 enable_url
1195 enable_urlmon
1196 enable_usbd_sys
1197 enable_user32
1198 enable_userenv
1199 enable_usp10
1200 enable_uxtheme
1201 enable_vbscript
1202 enable_vcomp
1203 enable_vcomp100
1204 enable_vcomp90
1205 enable_vdmdbg
1206 enable_version
1207 enable_wbemdisp
1208 enable_wbemprox
1209 enable_webservices
1210 enable_wer
1211 enable_wevtapi
1212 enable_wiaservc
1213 enable_windowscodecs
1214 enable_windowscodecsext
1215 enable_winealsa_drv
1216 enable_winecoreaudio_drv
1217 enable_wined3d
1218 enable_winegstreamer
1219 enable_winejoystick_drv
1220 enable_winemac_drv
1221 enable_winemapi
1222 enable_winemp3_acm
1223 enable_wineoss_drv
1224 enable_wineps_drv
1225 enable_wineqtdecoder
1226 enable_winex11_drv
1227 enable_wing32
1228 enable_winhttp
1229 enable_wininet
1230 enable_winmm
1231 enable_winnls32
1232 enable_winscard
1233 enable_winspool_drv
1234 enable_winsta
1235 enable_wintab32
1236 enable_wintrust
1237 enable_wlanapi
1238 enable_wldap32
1239 enable_wmi
1240 enable_wmiutils
1241 enable_wmvcore
1242 enable_wnaspi32
1243 enable_ws2_32
1244 enable_wshom_ocx
1245 enable_wsnmp32
1246 enable_wsock32
1247 enable_wtsapi32
1248 enable_wuapi
1249 enable_wuaueng
1250 enable_xapofx1_1
1251 enable_xinput1_1
1252 enable_xinput1_2
1253 enable_xinput1_3
1254 enable_xinput1_4
1255 enable_xinput9_1_0
1256 enable_xmllite
1257 enable_xolehlp
1258 enable_xpsprint
1259 enable_xpssvcs
1260 enable_documentation
1261 enable_fonts
1262 enable_include
1263 enable_libs_port
1264 enable_libs_wine
1265 enable_libs_wpp
1266 enable_loader
1267 enable_arp
1268 enable_aspnet_regiis
1269 enable_attrib
1270 enable_cabarc
1271 enable_cacls
1272 enable_clock
1273 enable_cmd
1274 enable_conhost
1275 enable_control
1276 enable_cscript
1277 enable_dxdiag
1278 enable_eject
1279 enable_expand
1280 enable_explorer
1281 enable_extrac32
1282 enable_findstr
1283 enable_hh
1284 enable_hostname
1285 enable_icinfo
1286 enable_iexplore
1287 enable_ipconfig
1288 enable_lodctr
1289 enable_mofcomp
1290 enable_mshta
1291 enable_msiexec
1292 enable_net
1293 enable_netsh
1294 enable_netstat
1295 enable_ngen
1296 enable_notepad
1297 enable_oleview
1298 enable_ping
1299 enable_plugplay
1300 enable_presentationfontcache
1301 enable_progman
1302 enable_reg
1303 enable_regasm
1304 enable_regedit
1305 enable_regsvcs
1306 enable_regsvr32
1307 enable_rpcss
1308 enable_rundll32
1309 enable_sc
1310 enable_schtasks
1311 enable_secedit
1312 enable_servicemodelreg
1313 enable_services
1314 enable_spoolsv
1315 enable_start
1316 enable_svchost
1317 enable_taskkill
1318 enable_tasklist
1319 enable_taskmgr
1320 enable_termsv
1321 enable_uninstaller
1322 enable_unlodctr
1323 enable_view
1324 enable_wineboot
1325 enable_winebrowser
1326 enable_winecfg
1327 enable_wineconsole
1328 enable_winedbg
1329 enable_winedevice
1330 enable_winefile
1331 enable_winemenubuilder
1332 enable_winemine
1333 enable_winemsibuilder
1334 enable_winepath
1335 enable_winetest
1336 enable_winhlp32
1337 enable_winver
1338 enable_wmic
1339 enable_wordpad
1340 enable_write
1341 enable_wscript
1342 enable_wusa
1343 enable_xcopy
1344 enable_server
1345 enable_tools
1347 ac_precious_vars='build_alias
1348 host_alias
1349 target_alias
1351 CFLAGS
1352 LDFLAGS
1353 LIBS
1354 CPPFLAGS
1356 CXXFLAGS
1359 XMKMF
1360 XML2_CFLAGS
1361 XML2_LIBS
1362 XSLT_CFLAGS
1363 XSLT_LIBS
1364 DBUS_CFLAGS
1365 DBUS_LIBS
1366 HAL_CFLAGS
1367 HAL_LIBS
1368 GNUTLS_CFLAGS
1369 GNUTLS_LIBS
1370 SANE_CFLAGS
1371 SANE_LIBS
1372 GPHOTO2_CFLAGS
1373 GPHOTO2_LIBS
1374 GPHOTO2_PORT_CFLAGS
1375 GPHOTO2_PORT_LIBS
1376 LCMS2_CFLAGS
1377 LCMS2_LIBS
1378 FREETYPE_CFLAGS
1379 FREETYPE_LIBS
1380 GSTREAMER_CFLAGS
1381 GSTREAMER_LIBS
1382 CAPI20_CFLAGS
1383 CAPI20_LIBS
1384 JPEG_CFLAGS
1385 JPEG_LIBS
1386 PNG_CFLAGS
1387 PNG_LIBS
1388 TIFF_CFLAGS
1389 TIFF_LIBS
1390 MPG123_CFLAGS
1391 MPG123_LIBS'
1394 # Initialize some variables set by options.
1395 ac_init_help=
1396 ac_init_version=false
1397 ac_unrecognized_opts=
1398 ac_unrecognized_sep=
1399 # The variables have the same names as the options, with
1400 # dashes changed to underlines.
1401 cache_file=/dev/null
1402 exec_prefix=NONE
1403 no_create=
1404 no_recursion=
1405 prefix=NONE
1406 program_prefix=NONE
1407 program_suffix=NONE
1408 program_transform_name=s,x,x,
1409 silent=
1410 site=
1411 srcdir=
1412 verbose=
1413 x_includes=NONE
1414 x_libraries=NONE
1416 # Installation directory options.
1417 # These are left unexpanded so users can "make install exec_prefix=/foo"
1418 # and all the variables that are supposed to be based on exec_prefix
1419 # by default will actually change.
1420 # Use braces instead of parens because sh, perl, etc. also accept them.
1421 # (The list follows the same order as the GNU Coding Standards.)
1422 bindir='${exec_prefix}/bin'
1423 sbindir='${exec_prefix}/sbin'
1424 libexecdir='${exec_prefix}/libexec'
1425 datarootdir='${prefix}/share'
1426 datadir='${datarootdir}'
1427 sysconfdir='${prefix}/etc'
1428 sharedstatedir='${prefix}/com'
1429 localstatedir='${prefix}/var'
1430 includedir='${prefix}/include'
1431 oldincludedir='/usr/include'
1432 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1433 infodir='${datarootdir}/info'
1434 htmldir='${docdir}'
1435 dvidir='${docdir}'
1436 pdfdir='${docdir}'
1437 psdir='${docdir}'
1438 libdir='${exec_prefix}/lib'
1439 localedir='${datarootdir}/locale'
1440 mandir='${datarootdir}/man'
1442 ac_prev=
1443 ac_dashdash=
1444 for ac_option
1446 # If the previous option needs an argument, assign it.
1447 if test -n "$ac_prev"; then
1448 eval $ac_prev=\$ac_option
1449 ac_prev=
1450 continue
1453 case $ac_option in
1454 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1455 *=) ac_optarg= ;;
1456 *) ac_optarg=yes ;;
1457 esac
1459 # Accept the important Cygnus configure options, so we can diagnose typos.
1461 case $ac_dashdash$ac_option in
1463 ac_dashdash=yes ;;
1465 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1466 ac_prev=bindir ;;
1467 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1468 bindir=$ac_optarg ;;
1470 -build | --build | --buil | --bui | --bu)
1471 ac_prev=build_alias ;;
1472 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1473 build_alias=$ac_optarg ;;
1475 -cache-file | --cache-file | --cache-fil | --cache-fi \
1476 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1477 ac_prev=cache_file ;;
1478 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1479 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1480 cache_file=$ac_optarg ;;
1482 --config-cache | -C)
1483 cache_file=config.cache ;;
1485 -datadir | --datadir | --datadi | --datad)
1486 ac_prev=datadir ;;
1487 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1488 datadir=$ac_optarg ;;
1490 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1491 | --dataroo | --dataro | --datar)
1492 ac_prev=datarootdir ;;
1493 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1494 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1495 datarootdir=$ac_optarg ;;
1497 -disable-* | --disable-*)
1498 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1499 # Reject names that are not valid shell variable names.
1500 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1501 as_fn_error $? "invalid feature name: $ac_useropt"
1502 ac_useropt_orig=$ac_useropt
1503 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1504 case $ac_user_opts in
1506 "enable_$ac_useropt"
1507 "*) ;;
1508 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1509 ac_unrecognized_sep=', ';;
1510 esac
1511 eval enable_$ac_useropt=no ;;
1513 -docdir | --docdir | --docdi | --doc | --do)
1514 ac_prev=docdir ;;
1515 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1516 docdir=$ac_optarg ;;
1518 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1519 ac_prev=dvidir ;;
1520 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1521 dvidir=$ac_optarg ;;
1523 -enable-* | --enable-*)
1524 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1525 # Reject names that are not valid shell variable names.
1526 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1527 as_fn_error $? "invalid feature name: $ac_useropt"
1528 ac_useropt_orig=$ac_useropt
1529 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1530 case $ac_user_opts in
1532 "enable_$ac_useropt"
1533 "*) ;;
1534 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1535 ac_unrecognized_sep=', ';;
1536 esac
1537 eval enable_$ac_useropt=\$ac_optarg ;;
1539 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1540 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1541 | --exec | --exe | --ex)
1542 ac_prev=exec_prefix ;;
1543 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1544 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1545 | --exec=* | --exe=* | --ex=*)
1546 exec_prefix=$ac_optarg ;;
1548 -gas | --gas | --ga | --g)
1549 # Obsolete; use --with-gas.
1550 with_gas=yes ;;
1552 -help | --help | --hel | --he | -h)
1553 ac_init_help=long ;;
1554 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1555 ac_init_help=recursive ;;
1556 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1557 ac_init_help=short ;;
1559 -host | --host | --hos | --ho)
1560 ac_prev=host_alias ;;
1561 -host=* | --host=* | --hos=* | --ho=*)
1562 host_alias=$ac_optarg ;;
1564 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1565 ac_prev=htmldir ;;
1566 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1567 | --ht=*)
1568 htmldir=$ac_optarg ;;
1570 -includedir | --includedir | --includedi | --included | --include \
1571 | --includ | --inclu | --incl | --inc)
1572 ac_prev=includedir ;;
1573 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1574 | --includ=* | --inclu=* | --incl=* | --inc=*)
1575 includedir=$ac_optarg ;;
1577 -infodir | --infodir | --infodi | --infod | --info | --inf)
1578 ac_prev=infodir ;;
1579 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1580 infodir=$ac_optarg ;;
1582 -libdir | --libdir | --libdi | --libd)
1583 ac_prev=libdir ;;
1584 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1585 libdir=$ac_optarg ;;
1587 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1588 | --libexe | --libex | --libe)
1589 ac_prev=libexecdir ;;
1590 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1591 | --libexe=* | --libex=* | --libe=*)
1592 libexecdir=$ac_optarg ;;
1594 -localedir | --localedir | --localedi | --localed | --locale)
1595 ac_prev=localedir ;;
1596 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1597 localedir=$ac_optarg ;;
1599 -localstatedir | --localstatedir | --localstatedi | --localstated \
1600 | --localstate | --localstat | --localsta | --localst | --locals)
1601 ac_prev=localstatedir ;;
1602 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1603 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1604 localstatedir=$ac_optarg ;;
1606 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1607 ac_prev=mandir ;;
1608 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1609 mandir=$ac_optarg ;;
1611 -nfp | --nfp | --nf)
1612 # Obsolete; use --without-fp.
1613 with_fp=no ;;
1615 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1616 | --no-cr | --no-c | -n)
1617 no_create=yes ;;
1619 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1620 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1621 no_recursion=yes ;;
1623 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1624 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1625 | --oldin | --oldi | --old | --ol | --o)
1626 ac_prev=oldincludedir ;;
1627 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1628 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1629 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1630 oldincludedir=$ac_optarg ;;
1632 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1633 ac_prev=prefix ;;
1634 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1635 prefix=$ac_optarg ;;
1637 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1638 | --program-pre | --program-pr | --program-p)
1639 ac_prev=program_prefix ;;
1640 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1641 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1642 program_prefix=$ac_optarg ;;
1644 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1645 | --program-suf | --program-su | --program-s)
1646 ac_prev=program_suffix ;;
1647 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1648 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1649 program_suffix=$ac_optarg ;;
1651 -program-transform-name | --program-transform-name \
1652 | --program-transform-nam | --program-transform-na \
1653 | --program-transform-n | --program-transform- \
1654 | --program-transform | --program-transfor \
1655 | --program-transfo | --program-transf \
1656 | --program-trans | --program-tran \
1657 | --progr-tra | --program-tr | --program-t)
1658 ac_prev=program_transform_name ;;
1659 -program-transform-name=* | --program-transform-name=* \
1660 | --program-transform-nam=* | --program-transform-na=* \
1661 | --program-transform-n=* | --program-transform-=* \
1662 | --program-transform=* | --program-transfor=* \
1663 | --program-transfo=* | --program-transf=* \
1664 | --program-trans=* | --program-tran=* \
1665 | --progr-tra=* | --program-tr=* | --program-t=*)
1666 program_transform_name=$ac_optarg ;;
1668 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1669 ac_prev=pdfdir ;;
1670 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1671 pdfdir=$ac_optarg ;;
1673 -psdir | --psdir | --psdi | --psd | --ps)
1674 ac_prev=psdir ;;
1675 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1676 psdir=$ac_optarg ;;
1678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1679 | -silent | --silent | --silen | --sile | --sil)
1680 silent=yes ;;
1682 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1683 ac_prev=sbindir ;;
1684 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1685 | --sbi=* | --sb=*)
1686 sbindir=$ac_optarg ;;
1688 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1689 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1690 | --sharedst | --shareds | --shared | --share | --shar \
1691 | --sha | --sh)
1692 ac_prev=sharedstatedir ;;
1693 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1694 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1695 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1696 | --sha=* | --sh=*)
1697 sharedstatedir=$ac_optarg ;;
1699 -site | --site | --sit)
1700 ac_prev=site ;;
1701 -site=* | --site=* | --sit=*)
1702 site=$ac_optarg ;;
1704 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1705 ac_prev=srcdir ;;
1706 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1707 srcdir=$ac_optarg ;;
1709 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1710 | --syscon | --sysco | --sysc | --sys | --sy)
1711 ac_prev=sysconfdir ;;
1712 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1713 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1714 sysconfdir=$ac_optarg ;;
1716 -target | --target | --targe | --targ | --tar | --ta | --t)
1717 ac_prev=target_alias ;;
1718 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1719 target_alias=$ac_optarg ;;
1721 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1722 verbose=yes ;;
1724 -version | --version | --versio | --versi | --vers | -V)
1725 ac_init_version=: ;;
1727 -with-* | --with-*)
1728 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1729 # Reject names that are not valid shell variable names.
1730 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1731 as_fn_error $? "invalid package name: $ac_useropt"
1732 ac_useropt_orig=$ac_useropt
1733 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1734 case $ac_user_opts in
1736 "with_$ac_useropt"
1737 "*) ;;
1738 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1739 ac_unrecognized_sep=', ';;
1740 esac
1741 eval with_$ac_useropt=\$ac_optarg ;;
1743 -without-* | --without-*)
1744 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1745 # Reject names that are not valid shell variable names.
1746 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1747 as_fn_error $? "invalid package name: $ac_useropt"
1748 ac_useropt_orig=$ac_useropt
1749 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1750 case $ac_user_opts in
1752 "with_$ac_useropt"
1753 "*) ;;
1754 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1755 ac_unrecognized_sep=', ';;
1756 esac
1757 eval with_$ac_useropt=no ;;
1759 --x)
1760 # Obsolete; use --with-x.
1761 with_x=yes ;;
1763 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1764 | --x-incl | --x-inc | --x-in | --x-i)
1765 ac_prev=x_includes ;;
1766 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1767 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1768 x_includes=$ac_optarg ;;
1770 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1771 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1772 ac_prev=x_libraries ;;
1773 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1774 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1775 x_libraries=$ac_optarg ;;
1777 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1778 Try \`$0 --help' for more information"
1781 *=*)
1782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1783 # Reject names that are not valid shell variable names.
1784 case $ac_envvar in #(
1785 '' | [0-9]* | *[!_$as_cr_alnum]* )
1786 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1787 esac
1788 eval $ac_envvar=\$ac_optarg
1789 export $ac_envvar ;;
1792 # FIXME: should be removed in autoconf 3.0.
1793 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1795 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1796 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1799 esac
1800 done
1802 if test -n "$ac_prev"; then
1803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1804 as_fn_error $? "missing argument to $ac_option"
1807 if test -n "$ac_unrecognized_opts"; then
1808 case $enable_option_checking in
1809 no) ;;
1810 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1811 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1812 esac
1815 # Check all directory arguments for consistency.
1816 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1817 datadir sysconfdir sharedstatedir localstatedir includedir \
1818 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1819 libdir localedir mandir
1821 eval ac_val=\$$ac_var
1822 # Remove trailing slashes.
1823 case $ac_val in
1824 */ )
1825 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1826 eval $ac_var=\$ac_val;;
1827 esac
1828 # Be sure to have absolute directory names.
1829 case $ac_val in
1830 [\\/$]* | ?:[\\/]* ) continue;;
1831 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1832 esac
1833 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1834 done
1836 # There might be people who depend on the old broken behavior: `$host'
1837 # used to hold the argument of --host etc.
1838 # FIXME: To remove some day.
1839 build=$build_alias
1840 host=$host_alias
1841 target=$target_alias
1843 # FIXME: To remove some day.
1844 if test "x$host_alias" != x; then
1845 if test "x$build_alias" = x; then
1846 cross_compiling=maybe
1847 elif test "x$build_alias" != "x$host_alias"; then
1848 cross_compiling=yes
1852 ac_tool_prefix=
1853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1855 test "$silent" = yes && exec 6>/dev/null
1858 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1859 ac_ls_di=`ls -di .` &&
1860 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1861 as_fn_error $? "working directory cannot be determined"
1862 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1863 as_fn_error $? "pwd does not report name of working directory"
1866 # Find the source files, if location was not specified.
1867 if test -z "$srcdir"; then
1868 ac_srcdir_defaulted=yes
1869 # Try the directory containing this script, then the parent directory.
1870 ac_confdir=`$as_dirname -- "$as_myself" ||
1871 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1872 X"$as_myself" : 'X\(//\)[^/]' \| \
1873 X"$as_myself" : 'X\(//\)$' \| \
1874 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1875 $as_echo X"$as_myself" |
1876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1877 s//\1/
1880 /^X\(\/\/\)[^/].*/{
1881 s//\1/
1884 /^X\(\/\/\)$/{
1885 s//\1/
1888 /^X\(\/\).*/{
1889 s//\1/
1892 s/.*/./; q'`
1893 srcdir=$ac_confdir
1894 if test ! -r "$srcdir/$ac_unique_file"; then
1895 srcdir=..
1897 else
1898 ac_srcdir_defaulted=no
1900 if test ! -r "$srcdir/$ac_unique_file"; then
1901 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1902 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1904 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1905 ac_abs_confdir=`(
1906 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1907 pwd)`
1908 # When building in place, set srcdir=.
1909 if test "$ac_abs_confdir" = "$ac_pwd"; then
1910 srcdir=.
1912 # Remove unnecessary trailing slashes from srcdir.
1913 # Double slashes in file names in object file debugging info
1914 # mess up M-x gdb in Emacs.
1915 case $srcdir in
1916 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1917 esac
1918 for ac_var in $ac_precious_vars; do
1919 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1920 eval ac_env_${ac_var}_value=\$${ac_var}
1921 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1922 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1923 done
1926 # Report the --help message.
1928 if test "$ac_init_help" = "long"; then
1929 # Omit some internal or obsolete options to make the list less imposing.
1930 # This message is too long to be a string in the A/UX 3.1 sh.
1931 cat <<_ACEOF
1932 \`configure' configures Wine 1.7.9 to adapt to many kinds of systems.
1934 Usage: $0 [OPTION]... [VAR=VALUE]...
1936 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1937 VAR=VALUE. See below for descriptions of some of the useful variables.
1939 Defaults for the options are specified in brackets.
1941 Configuration:
1942 -h, --help display this help and exit
1943 --help=short display options specific to this package
1944 --help=recursive display the short help of all the included packages
1945 -V, --version display version information and exit
1946 -q, --quiet, --silent do not print \`checking ...' messages
1947 --cache-file=FILE cache test results in FILE [disabled]
1948 -C, --config-cache alias for \`--cache-file=config.cache'
1949 -n, --no-create do not create output files
1950 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1952 Installation directories:
1953 --prefix=PREFIX install architecture-independent files in PREFIX
1954 [$ac_default_prefix]
1955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1956 [PREFIX]
1958 By default, \`make install' will install all the files in
1959 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1960 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1961 for instance \`--prefix=\$HOME'.
1963 For better control, use the options below.
1965 Fine tuning of the installation directories:
1966 --bindir=DIR user executables [EPREFIX/bin]
1967 --sbindir=DIR system admin executables [EPREFIX/sbin]
1968 --libexecdir=DIR program executables [EPREFIX/libexec]
1969 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1970 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1971 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1972 --libdir=DIR object code libraries [EPREFIX/lib]
1973 --includedir=DIR C header files [PREFIX/include]
1974 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1975 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1976 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1977 --infodir=DIR info documentation [DATAROOTDIR/info]
1978 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1979 --mandir=DIR man documentation [DATAROOTDIR/man]
1980 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1981 --htmldir=DIR html documentation [DOCDIR]
1982 --dvidir=DIR dvi documentation [DOCDIR]
1983 --pdfdir=DIR pdf documentation [DOCDIR]
1984 --psdir=DIR ps documentation [DOCDIR]
1985 _ACEOF
1987 cat <<\_ACEOF
1989 X features:
1990 --x-includes=DIR X include files are in DIR
1991 --x-libraries=DIR X library files are in DIR
1993 System types:
1994 --build=BUILD configure for building on BUILD [guessed]
1995 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1996 _ACEOF
1999 if test -n "$ac_init_help"; then
2000 case $ac_init_help in
2001 short | recursive ) echo "Configuration of Wine 1.7.9:";;
2002 esac
2003 cat <<\_ACEOF
2005 Optional Features:
2006 --disable-option-checking ignore unrecognized --enable/--with options
2007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2009 --disable-win16 do not include Win16 support
2010 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2011 binaries)
2012 --disable-tests do not build the regression tests
2013 --enable-maintainer-mode
2014 enable maintainer-specific build rules
2015 --disable-largefile omit support for large files
2017 Optional Packages:
2018 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2019 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2020 --without-alsa do not use the Alsa sound support
2021 --without-capi do not use CAPI (ISDN support)
2022 --without-cms do not use CMS (color management support)
2023 --without-coreaudio do not use the CoreAudio sound support
2024 --without-cups do not use CUPS
2025 --without-curses do not use (n)curses
2026 --without-dbus do not use DBus (dynamic device support)
2027 --without-fontconfig do not use fontconfig
2028 --without-freetype do not use the FreeType library
2029 --without-gettext do not use gettext
2030 --with-gettextpo use the GetTextPO library to rebuild po files
2031 --without-gphoto do not use gphoto (Digital Camera support)
2032 --without-glu do not use the GLU library
2033 --without-gnutls do not use GnuTLS (schannel support)
2034 --without-gsm do not use libgsm (GSM 06.10 codec support)
2035 --without-gstreamer do not use GStreamer (codecs support)
2036 --without-hal do not use HAL (dynamic device support)
2037 --without-jpeg do not use JPEG
2038 --without-ldap do not use LDAP
2039 --without-mpg123 do not use the mpg123 library
2040 --without-netapi do not use the Samba NetAPI library
2041 --without-openal do not use OpenAL
2042 --without-opencl do not use OpenCL
2043 --without-opengl do not use OpenGL
2044 --without-osmesa do not use the OSMesa library
2045 --without-oss do not use the OSS sound support
2046 --without-png do not use PNG
2047 --without-pthread do not use the pthread library
2048 --without-sane do not use SANE (scanner support)
2049 --without-tiff do not use TIFF
2050 --without-v4l do not use v4l1 (v4l support)
2051 --without-xcomposite do not use the Xcomposite extension
2052 --without-xcursor do not use the Xcursor extension
2053 --without-xinerama do not use Xinerama (multi-monitor support)
2054 --without-xinput do not use the Xinput extension
2055 --without-xinput2 do not use the Xinput 2 extension
2056 --without-xml do not use XML
2057 --without-xrandr do not use Xrandr (resolution changes)
2058 --without-xrender do not use the Xrender extension
2059 --without-xshape do not use the Xshape extension
2060 --without-xshm do not use XShm (shared memory extension)
2061 --without-xslt do not use XSLT
2062 --without-xxf86vm do not use XFree video mode extension
2063 --without-zlib do not use Zlib (data compression)
2064 --with-wine-tools=DIR use Wine tools from directory DIR
2065 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2066 --with-x use the X Window System
2068 Some influential environment variables:
2069 CC C compiler command
2070 CFLAGS C compiler flags
2071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2072 nonstandard directory <lib dir>
2073 LIBS libraries to pass to the linker, e.g. -l<library>
2074 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2075 you have headers in a nonstandard directory <include dir>
2076 CXX C++ compiler command
2077 CXXFLAGS C++ compiler flags
2078 CPP C preprocessor
2079 XMKMF Path to xmkmf, Makefile generator for X Window System
2080 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2081 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2082 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2083 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2084 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2085 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2086 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2087 HAL_LIBS Linker flags for hal, overriding pkg-config
2088 GNUTLS_CFLAGS
2089 C compiler flags for gnutls, overriding pkg-config
2090 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2091 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2092 SANE_LIBS Linker flags for libsane, overriding pkg-config
2093 GPHOTO2_CFLAGS
2094 C compiler flags for libgphoto2, overriding pkg-config
2095 GPHOTO2_LIBS
2096 Linker flags for libgphoto2, overriding pkg-config
2097 GPHOTO2_PORT_CFLAGS
2098 C compiler flags for libgphoto2_port, overriding pkg-config
2099 GPHOTO2_PORT_LIBS
2100 Linker flags for libgphoto2_port, overriding pkg-config
2101 LCMS2_CFLAGS
2102 C compiler flags for lcms2, overriding pkg-config
2103 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2104 FREETYPE_CFLAGS
2105 C compiler flags for freetype2, overriding pkg-config
2106 FREETYPE_LIBS
2107 Linker flags for freetype2, overriding pkg-config
2108 GSTREAMER_CFLAGS
2109 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2110 GSTREAMER_LIBS
2111 Linker flags for gstreamer-app-0.10, overriding pkg-config
2112 CAPI20_CFLAGS
2113 C compiler flags for capi20, overriding pkg-config
2114 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2115 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2116 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2117 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2118 PNG_LIBS Linker flags for libpng, overriding pkg-config
2119 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2120 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2121 MPG123_CFLAGS
2122 C compiler flags for libmpg123, overriding pkg-config
2123 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2125 Use these variables to override the choices made by `configure' or to help
2126 it to find libraries and programs with nonstandard names/locations.
2128 Report bugs to <wine-devel@winehq.org>.
2129 Wine home page: <http://www.winehq.org>.
2130 _ACEOF
2131 ac_status=$?
2134 if test "$ac_init_help" = "recursive"; then
2135 # If there are subdirs, report their specific --help.
2136 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2137 test -d "$ac_dir" ||
2138 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2139 continue
2140 ac_builddir=.
2142 case "$ac_dir" in
2143 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2145 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2146 # A ".." for each directory in $ac_dir_suffix.
2147 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2148 case $ac_top_builddir_sub in
2149 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2150 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2151 esac ;;
2152 esac
2153 ac_abs_top_builddir=$ac_pwd
2154 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2155 # for backward compatibility:
2156 ac_top_builddir=$ac_top_build_prefix
2158 case $srcdir in
2159 .) # We are building in place.
2160 ac_srcdir=.
2161 ac_top_srcdir=$ac_top_builddir_sub
2162 ac_abs_top_srcdir=$ac_pwd ;;
2163 [\\/]* | ?:[\\/]* ) # Absolute name.
2164 ac_srcdir=$srcdir$ac_dir_suffix;
2165 ac_top_srcdir=$srcdir
2166 ac_abs_top_srcdir=$srcdir ;;
2167 *) # Relative name.
2168 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2169 ac_top_srcdir=$ac_top_build_prefix$srcdir
2170 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2171 esac
2172 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2174 cd "$ac_dir" || { ac_status=$?; continue; }
2175 # Check for guested configure.
2176 if test -f "$ac_srcdir/configure.gnu"; then
2177 echo &&
2178 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2179 elif test -f "$ac_srcdir/configure"; then
2180 echo &&
2181 $SHELL "$ac_srcdir/configure" --help=recursive
2182 else
2183 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2184 fi || ac_status=$?
2185 cd "$ac_pwd" || { ac_status=$?; break; }
2186 done
2189 test -n "$ac_init_help" && exit $ac_status
2190 if $ac_init_version; then
2191 cat <<\_ACEOF
2192 Wine configure 1.7.9
2193 generated by GNU Autoconf 2.69
2195 Copyright (C) 2012 Free Software Foundation, Inc.
2196 This configure script is free software; the Free Software Foundation
2197 gives unlimited permission to copy, distribute and modify it.
2198 _ACEOF
2199 exit
2202 ## ------------------------ ##
2203 ## Autoconf initialization. ##
2204 ## ------------------------ ##
2206 # ac_fn_c_try_compile LINENO
2207 # --------------------------
2208 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2209 ac_fn_c_try_compile ()
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 rm -f conftest.$ac_objext
2213 if { { ac_try="$ac_compile"
2214 case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217 esac
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_compile") 2>conftest.err
2221 ac_status=$?
2222 if test -s conftest.err; then
2223 grep -v '^ *+' conftest.err >conftest.er1
2224 cat conftest.er1 >&5
2225 mv -f conftest.er1 conftest.err
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; } && {
2229 test -z "$ac_c_werror_flag" ||
2230 test ! -s conftest.err
2231 } && test -s conftest.$ac_objext; then :
2232 ac_retval=0
2233 else
2234 $as_echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2237 ac_retval=1
2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240 as_fn_set_status $ac_retval
2242 } # ac_fn_c_try_compile
2244 # ac_fn_cxx_try_compile LINENO
2245 # ----------------------------
2246 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2247 ac_fn_cxx_try_compile ()
2249 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250 rm -f conftest.$ac_objext
2251 if { { ac_try="$ac_compile"
2252 case "(($ac_try" in
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2255 esac
2256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2257 $as_echo "$ac_try_echo"; } >&5
2258 (eval "$ac_compile") 2>conftest.err
2259 ac_status=$?
2260 if test -s conftest.err; then
2261 grep -v '^ *+' conftest.err >conftest.er1
2262 cat conftest.er1 >&5
2263 mv -f conftest.er1 conftest.err
2265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2266 test $ac_status = 0; } && {
2267 test -z "$ac_cxx_werror_flag" ||
2268 test ! -s conftest.err
2269 } && test -s conftest.$ac_objext; then :
2270 ac_retval=0
2271 else
2272 $as_echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.$ac_ext >&5
2275 ac_retval=1
2277 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2278 as_fn_set_status $ac_retval
2280 } # ac_fn_cxx_try_compile
2282 # ac_fn_c_try_link LINENO
2283 # -----------------------
2284 # Try to link conftest.$ac_ext, and return whether this succeeded.
2285 ac_fn_c_try_link ()
2287 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2288 rm -f conftest.$ac_objext conftest$ac_exeext
2289 if { { ac_try="$ac_link"
2290 case "(($ac_try" in
2291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292 *) ac_try_echo=$ac_try;;
2293 esac
2294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2295 $as_echo "$ac_try_echo"; } >&5
2296 (eval "$ac_link") 2>conftest.err
2297 ac_status=$?
2298 if test -s conftest.err; then
2299 grep -v '^ *+' conftest.err >conftest.er1
2300 cat conftest.er1 >&5
2301 mv -f conftest.er1 conftest.err
2303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2304 test $ac_status = 0; } && {
2305 test -z "$ac_c_werror_flag" ||
2306 test ! -s conftest.err
2307 } && test -s conftest$ac_exeext && {
2308 test "$cross_compiling" = yes ||
2309 test -x conftest$ac_exeext
2310 }; then :
2311 ac_retval=0
2312 else
2313 $as_echo "$as_me: failed program was:" >&5
2314 sed 's/^/| /' conftest.$ac_ext >&5
2316 ac_retval=1
2318 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2319 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2320 # interfere with the next link command; also delete a directory that is
2321 # left behind by Apple's compiler. We do this before executing the actions.
2322 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2323 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2324 as_fn_set_status $ac_retval
2326 } # ac_fn_c_try_link
2328 # ac_fn_c_try_cpp LINENO
2329 # ----------------------
2330 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2331 ac_fn_c_try_cpp ()
2333 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2334 if { { ac_try="$ac_cpp conftest.$ac_ext"
2335 case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2338 esac
2339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340 $as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2342 ac_status=$?
2343 if test -s conftest.err; then
2344 grep -v '^ *+' conftest.err >conftest.er1
2345 cat conftest.er1 >&5
2346 mv -f conftest.er1 conftest.err
2348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2349 test $ac_status = 0; } > conftest.i && {
2350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2351 test ! -s conftest.err
2352 }; then :
2353 ac_retval=0
2354 else
2355 $as_echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2358 ac_retval=1
2360 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2361 as_fn_set_status $ac_retval
2363 } # ac_fn_c_try_cpp
2365 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2366 # -------------------------------------------------------
2367 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2368 # the include files in INCLUDES and setting the cache variable VAR
2369 # accordingly.
2370 ac_fn_c_check_header_mongrel ()
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 if eval \${$3+:} false; then :
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2375 $as_echo_n "checking for $2... " >&6; }
2376 if eval \${$3+:} false; then :
2377 $as_echo_n "(cached) " >&6
2379 eval ac_res=\$$3
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382 else
2383 # Is the header compilable?
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2385 $as_echo_n "checking $2 usability... " >&6; }
2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2389 #include <$2>
2390 _ACEOF
2391 if ac_fn_c_try_compile "$LINENO"; then :
2392 ac_header_compiler=yes
2393 else
2394 ac_header_compiler=no
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2398 $as_echo "$ac_header_compiler" >&6; }
2400 # Is the header present?
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2402 $as_echo_n "checking $2 presence... " >&6; }
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2405 #include <$2>
2406 _ACEOF
2407 if ac_fn_c_try_cpp "$LINENO"; then :
2408 ac_header_preproc=yes
2409 else
2410 ac_header_preproc=no
2412 rm -f conftest.err conftest.i conftest.$ac_ext
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2414 $as_echo "$ac_header_preproc" >&6; }
2416 # So? What about this header?
2417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2418 yes:no: )
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2420 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2422 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2424 no:yes:* )
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2426 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2428 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2430 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2432 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2434 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2435 ( $as_echo "## ------------------------------------ ##
2436 ## Report this to wine-devel@winehq.org ##
2437 ## ------------------------------------ ##"
2438 ) | sed "s/^/$as_me: WARNING: /" >&2
2440 esac
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2442 $as_echo_n "checking for $2... " >&6; }
2443 if eval \${$3+:} false; then :
2444 $as_echo_n "(cached) " >&6
2445 else
2446 eval "$3=\$ac_header_compiler"
2448 eval ac_res=\$$3
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2450 $as_echo "$ac_res" >&6; }
2452 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2454 } # ac_fn_c_check_header_mongrel
2456 # ac_fn_c_try_run LINENO
2457 # ----------------------
2458 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2459 # that executables *can* be run.
2460 ac_fn_c_try_run ()
2462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2463 if { { ac_try="$ac_link"
2464 case "(($ac_try" in
2465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466 *) ac_try_echo=$ac_try;;
2467 esac
2468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2469 $as_echo "$ac_try_echo"; } >&5
2470 (eval "$ac_link") 2>&5
2471 ac_status=$?
2472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2473 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2474 { { case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2477 esac
2478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2479 $as_echo "$ac_try_echo"; } >&5
2480 (eval "$ac_try") 2>&5
2481 ac_status=$?
2482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2483 test $ac_status = 0; }; }; then :
2484 ac_retval=0
2485 else
2486 $as_echo "$as_me: program exited with status $ac_status" >&5
2487 $as_echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2490 ac_retval=$ac_status
2492 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2493 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494 as_fn_set_status $ac_retval
2496 } # ac_fn_c_try_run
2498 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2499 # -------------------------------------------------------
2500 # Tests whether HEADER exists and can be compiled using the include files in
2501 # INCLUDES, setting the cache variable VAR accordingly.
2502 ac_fn_c_check_header_compile ()
2504 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2506 $as_echo_n "checking for $2... " >&6; }
2507 if eval \${$3+:} false; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2513 #include <$2>
2514 _ACEOF
2515 if ac_fn_c_try_compile "$LINENO"; then :
2516 eval "$3=yes"
2517 else
2518 eval "$3=no"
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2522 eval ac_res=\$$3
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2524 $as_echo "$ac_res" >&6; }
2525 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2527 } # ac_fn_c_check_header_compile
2529 # ac_fn_c_check_func LINENO FUNC VAR
2530 # ----------------------------------
2531 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2532 ac_fn_c_check_func ()
2534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536 $as_echo_n "checking for $2... " >&6; }
2537 if eval \${$3+:} false; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2542 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2544 #define $2 innocuous_$2
2546 /* System header to define __stub macros and hopefully few prototypes,
2547 which can conflict with char $2 (); below.
2548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2549 <limits.h> exists even on freestanding compilers. */
2551 #ifdef __STDC__
2552 # include <limits.h>
2553 #else
2554 # include <assert.h>
2555 #endif
2557 #undef $2
2559 /* Override any GCC internal prototype to avoid an error.
2560 Use char because int might match the return type of a GCC
2561 builtin and then its argument prototype would still apply. */
2562 #ifdef __cplusplus
2563 extern "C"
2564 #endif
2565 char $2 ();
2566 /* The GNU C library defines this for functions which it implements
2567 to always fail with ENOSYS. Some functions are actually named
2568 something starting with __ and the normal name is an alias. */
2569 #if defined __stub_$2 || defined __stub___$2
2570 choke me
2571 #endif
2574 main ()
2576 return $2 ();
2578 return 0;
2580 _ACEOF
2581 if ac_fn_c_try_link "$LINENO"; then :
2582 eval "$3=yes"
2583 else
2584 eval "$3=no"
2586 rm -f core conftest.err conftest.$ac_objext \
2587 conftest$ac_exeext conftest.$ac_ext
2589 eval ac_res=\$$3
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2591 $as_echo "$ac_res" >&6; }
2592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2594 } # ac_fn_c_check_func
2596 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2597 # ----------------------------------------------------
2598 # Tries to find if the field MEMBER exists in type AGGR, after including
2599 # INCLUDES, setting cache variable VAR accordingly.
2600 ac_fn_c_check_member ()
2602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2604 $as_echo_n "checking for $2.$3... " >&6; }
2605 if eval \${$4+:} false; then :
2606 $as_echo_n "(cached) " >&6
2607 else
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2612 main ()
2614 static $2 ac_aggr;
2615 if (ac_aggr.$3)
2616 return 0;
2618 return 0;
2620 _ACEOF
2621 if ac_fn_c_try_compile "$LINENO"; then :
2622 eval "$4=yes"
2623 else
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h. */
2628 main ()
2630 static $2 ac_aggr;
2631 if (sizeof ac_aggr.$3)
2632 return 0;
2634 return 0;
2636 _ACEOF
2637 if ac_fn_c_try_compile "$LINENO"; then :
2638 eval "$4=yes"
2639 else
2640 eval "$4=no"
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 eval ac_res=\$$4
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2648 $as_echo "$ac_res" >&6; }
2649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2651 } # ac_fn_c_check_member
2653 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2654 # -------------------------------------------
2655 # Tests whether TYPE exists after having included INCLUDES, setting cache
2656 # variable VAR accordingly.
2657 ac_fn_c_check_type ()
2659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2661 $as_echo_n "checking for $2... " >&6; }
2662 if eval \${$3+:} false; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 eval "$3=no"
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2670 main ()
2672 if (sizeof ($2))
2673 return 0;
2675 return 0;
2677 _ACEOF
2678 if ac_fn_c_try_compile "$LINENO"; then :
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h. */
2683 main ()
2685 if (sizeof (($2)))
2686 return 0;
2688 return 0;
2690 _ACEOF
2691 if ac_fn_c_try_compile "$LINENO"; then :
2693 else
2694 eval "$3=yes"
2696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 eval ac_res=\$$3
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2702 $as_echo "$ac_res" >&6; }
2703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2705 } # ac_fn_c_check_type
2706 cat >config.log <<_ACEOF
2707 This file contains any messages produced by compilers while
2708 running configure, to aid debugging if configure makes a mistake.
2710 It was created by Wine $as_me 1.7.9, which was
2711 generated by GNU Autoconf 2.69. Invocation command line was
2713 $ $0 $@
2715 _ACEOF
2716 exec 5>>config.log
2718 cat <<_ASUNAME
2719 ## --------- ##
2720 ## Platform. ##
2721 ## --------- ##
2723 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2724 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2725 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2726 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2727 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2729 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2730 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2732 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2733 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2734 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2735 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2736 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2737 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2738 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2740 _ASUNAME
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 $as_echo "PATH: $as_dir"
2748 done
2749 IFS=$as_save_IFS
2751 } >&5
2753 cat >&5 <<_ACEOF
2756 ## ----------- ##
2757 ## Core tests. ##
2758 ## ----------- ##
2760 _ACEOF
2763 # Keep a trace of the command line.
2764 # Strip out --no-create and --no-recursion so they do not pile up.
2765 # Strip out --silent because we don't want to record it for future runs.
2766 # Also quote any args containing shell meta-characters.
2767 # Make two passes to allow for proper duplicate-argument suppression.
2768 ac_configure_args=
2769 ac_configure_args0=
2770 ac_configure_args1=
2771 ac_must_keep_next=false
2772 for ac_pass in 1 2
2774 for ac_arg
2776 case $ac_arg in
2777 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2778 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2779 | -silent | --silent | --silen | --sile | --sil)
2780 continue ;;
2781 *\'*)
2782 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2783 esac
2784 case $ac_pass in
2785 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2787 as_fn_append ac_configure_args1 " '$ac_arg'"
2788 if test $ac_must_keep_next = true; then
2789 ac_must_keep_next=false # Got value, back to normal.
2790 else
2791 case $ac_arg in
2792 *=* | --config-cache | -C | -disable-* | --disable-* \
2793 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2794 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2795 | -with-* | --with-* | -without-* | --without-* | --x)
2796 case "$ac_configure_args0 " in
2797 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2798 esac
2800 -* ) ac_must_keep_next=true ;;
2801 esac
2803 as_fn_append ac_configure_args " '$ac_arg'"
2805 esac
2806 done
2807 done
2808 { ac_configure_args0=; unset ac_configure_args0;}
2809 { ac_configure_args1=; unset ac_configure_args1;}
2811 # When interrupted or exit'd, cleanup temporary files, and complete
2812 # config.log. We remove comments because anyway the quotes in there
2813 # would cause problems or look ugly.
2814 # WARNING: Use '\'' to represent an apostrophe within the trap.
2815 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2816 trap 'exit_status=$?
2817 # Save into config.log some information that might help in debugging.
2819 echo
2821 $as_echo "## ---------------- ##
2822 ## Cache variables. ##
2823 ## ---------------- ##"
2824 echo
2825 # The following way of writing the cache mishandles newlines in values,
2827 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2828 eval ac_val=\$$ac_var
2829 case $ac_val in #(
2830 *${as_nl}*)
2831 case $ac_var in #(
2832 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2833 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2834 esac
2835 case $ac_var in #(
2836 _ | IFS | as_nl) ;; #(
2837 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2838 *) { eval $ac_var=; unset $ac_var;} ;;
2839 esac ;;
2840 esac
2841 done
2842 (set) 2>&1 |
2843 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2844 *${as_nl}ac_space=\ *)
2845 sed -n \
2846 "s/'\''/'\''\\\\'\'''\''/g;
2847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2848 ;; #(
2850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2852 esac |
2853 sort
2855 echo
2857 $as_echo "## ----------------- ##
2858 ## Output variables. ##
2859 ## ----------------- ##"
2860 echo
2861 for ac_var in $ac_subst_vars
2863 eval ac_val=\$$ac_var
2864 case $ac_val in
2865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2866 esac
2867 $as_echo "$ac_var='\''$ac_val'\''"
2868 done | sort
2869 echo
2871 if test -n "$ac_subst_files"; then
2872 $as_echo "## ------------------- ##
2873 ## File substitutions. ##
2874 ## ------------------- ##"
2875 echo
2876 for ac_var in $ac_subst_files
2878 eval ac_val=\$$ac_var
2879 case $ac_val in
2880 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2881 esac
2882 $as_echo "$ac_var='\''$ac_val'\''"
2883 done | sort
2884 echo
2887 if test -s confdefs.h; then
2888 $as_echo "## ----------- ##
2889 ## confdefs.h. ##
2890 ## ----------- ##"
2891 echo
2892 cat confdefs.h
2893 echo
2895 test "$ac_signal" != 0 &&
2896 $as_echo "$as_me: caught signal $ac_signal"
2897 $as_echo "$as_me: exit $exit_status"
2898 } >&5
2899 rm -f core *.core core.conftest.* &&
2900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2901 exit $exit_status
2903 for ac_signal in 1 2 13 15; do
2904 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2905 done
2906 ac_signal=0
2908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2909 rm -f -r conftest* confdefs.h
2911 $as_echo "/* confdefs.h */" > confdefs.h
2913 # Predefined preprocessor variables.
2915 cat >>confdefs.h <<_ACEOF
2916 #define PACKAGE_NAME "$PACKAGE_NAME"
2917 _ACEOF
2919 cat >>confdefs.h <<_ACEOF
2920 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2921 _ACEOF
2923 cat >>confdefs.h <<_ACEOF
2924 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2925 _ACEOF
2927 cat >>confdefs.h <<_ACEOF
2928 #define PACKAGE_STRING "$PACKAGE_STRING"
2929 _ACEOF
2931 cat >>confdefs.h <<_ACEOF
2932 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2933 _ACEOF
2935 cat >>confdefs.h <<_ACEOF
2936 #define PACKAGE_URL "$PACKAGE_URL"
2937 _ACEOF
2940 # Let the site file select an alternate cache file if it wants to.
2941 # Prefer an explicitly selected file to automatically selected ones.
2942 ac_site_file1=NONE
2943 ac_site_file2=NONE
2944 if test -n "$CONFIG_SITE"; then
2945 # We do not want a PATH search for config.site.
2946 case $CONFIG_SITE in #((
2947 -*) ac_site_file1=./$CONFIG_SITE;;
2948 */*) ac_site_file1=$CONFIG_SITE;;
2949 *) ac_site_file1=./$CONFIG_SITE;;
2950 esac
2951 elif test "x$prefix" != xNONE; then
2952 ac_site_file1=$prefix/share/config.site
2953 ac_site_file2=$prefix/etc/config.site
2954 else
2955 ac_site_file1=$ac_default_prefix/share/config.site
2956 ac_site_file2=$ac_default_prefix/etc/config.site
2958 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2960 test "x$ac_site_file" = xNONE && continue
2961 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2963 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2964 sed 's/^/| /' "$ac_site_file" >&5
2965 . "$ac_site_file" \
2966 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968 as_fn_error $? "failed to load site script $ac_site_file
2969 See \`config.log' for more details" "$LINENO" 5; }
2971 done
2973 if test -r "$cache_file"; then
2974 # Some versions of bash will fail to source /dev/null (special files
2975 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2976 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2978 $as_echo "$as_me: loading cache $cache_file" >&6;}
2979 case $cache_file in
2980 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2981 *) . "./$cache_file";;
2982 esac
2984 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2986 $as_echo "$as_me: creating cache $cache_file" >&6;}
2987 >$cache_file
2990 # Check that the precious variables saved in the cache have kept the same
2991 # value.
2992 ac_cache_corrupted=false
2993 for ac_var in $ac_precious_vars; do
2994 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2995 eval ac_new_set=\$ac_env_${ac_var}_set
2996 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2997 eval ac_new_val=\$ac_env_${ac_var}_value
2998 case $ac_old_set,$ac_new_set in
2999 set,)
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3001 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3002 ac_cache_corrupted=: ;;
3003 ,set)
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3005 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3006 ac_cache_corrupted=: ;;
3007 ,);;
3009 if test "x$ac_old_val" != "x$ac_new_val"; then
3010 # differences in whitespace do not lead to failure.
3011 ac_old_val_w=`echo x $ac_old_val`
3012 ac_new_val_w=`echo x $ac_new_val`
3013 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3015 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3016 ac_cache_corrupted=:
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3019 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3020 eval $ac_var=\$ac_old_val
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3023 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3025 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3026 fi;;
3027 esac
3028 # Pass precious variables to config.status.
3029 if test "$ac_new_set" = set; then
3030 case $ac_new_val in
3031 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3032 *) ac_arg=$ac_var=$ac_new_val ;;
3033 esac
3034 case " $ac_configure_args " in
3035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3036 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3037 esac
3039 done
3040 if $ac_cache_corrupted; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3044 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3045 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3047 ## -------------------- ##
3048 ## Main body of script. ##
3049 ## -------------------- ##
3051 ac_ext=c
3052 ac_cpp='$CPP $CPPFLAGS'
3053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3059 ac_config_headers="$ac_config_headers include/config.h"
3061 ac_aux_dir=
3062 for ac_dir in tools "$srcdir"/tools; do
3063 if test -f "$ac_dir/install-sh"; then
3064 ac_aux_dir=$ac_dir
3065 ac_install_sh="$ac_aux_dir/install-sh -c"
3066 break
3067 elif test -f "$ac_dir/install.sh"; then
3068 ac_aux_dir=$ac_dir
3069 ac_install_sh="$ac_aux_dir/install.sh -c"
3070 break
3071 elif test -f "$ac_dir/shtool"; then
3072 ac_aux_dir=$ac_dir
3073 ac_install_sh="$ac_aux_dir/shtool install -c"
3074 break
3076 done
3077 if test -z "$ac_aux_dir"; then
3078 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3081 # These three variables are undocumented and unsupported,
3082 # and are intended to be withdrawn in a future Autoconf release.
3083 # They can cause serious problems if a builder's source tree is in a directory
3084 # whose full name contains unusual characters.
3085 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3086 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3087 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3091 libwine_version="1.0"
3095 # Check whether --enable-win16 was given.
3096 if test "${enable_win16+set}" = set; then :
3097 enableval=$enable_win16;
3100 # Check whether --enable-win64 was given.
3101 if test "${enable_win64+set}" = set; then :
3102 enableval=$enable_win64;
3105 # Check whether --enable-tests was given.
3106 if test "${enable_tests+set}" = set; then :
3107 enableval=$enable_tests;
3110 # Check whether --enable-maintainer-mode was given.
3111 if test "${enable_maintainer_mode+set}" = set; then :
3112 enableval=$enable_maintainer_mode;
3117 # Check whether --with-alsa was given.
3118 if test "${with_alsa+set}" = set; then :
3119 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
3123 # Check whether --with-capi was given.
3124 if test "${with_capi+set}" = set; then :
3125 withval=$with_capi;
3129 # Check whether --with-cms was given.
3130 if test "${with_cms+set}" = set; then :
3131 withval=$with_cms;
3135 # Check whether --with-coreaudio was given.
3136 if test "${with_coreaudio+set}" = set; then :
3137 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
3141 # Check whether --with-cups was given.
3142 if test "${with_cups+set}" = set; then :
3143 withval=$with_cups;
3147 # Check whether --with-curses was given.
3148 if test "${with_curses+set}" = set; then :
3149 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
3153 # Check whether --with-dbus was given.
3154 if test "${with_dbus+set}" = set; then :
3155 withval=$with_dbus;
3159 # Check whether --with-fontconfig was given.
3160 if test "${with_fontconfig+set}" = set; then :
3161 withval=$with_fontconfig;
3165 # Check whether --with-freetype was given.
3166 if test "${with_freetype+set}" = set; then :
3167 withval=$with_freetype;
3171 # Check whether --with-gettext was given.
3172 if test "${with_gettext+set}" = set; then :
3173 withval=$with_gettext;
3177 # Check whether --with-gettextpo was given.
3178 if test "${with_gettextpo+set}" = set; then :
3179 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
3183 # Check whether --with-gphoto was given.
3184 if test "${with_gphoto+set}" = set; then :
3185 withval=$with_gphoto;
3189 # Check whether --with-glu was given.
3190 if test "${with_glu+set}" = set; then :
3191 withval=$with_glu;
3195 # Check whether --with-gnutls was given.
3196 if test "${with_gnutls+set}" = set; then :
3197 withval=$with_gnutls;
3201 # Check whether --with-gsm was given.
3202 if test "${with_gsm+set}" = set; then :
3203 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
3207 # Check whether --with-gstreamer was given.
3208 if test "${with_gstreamer+set}" = set; then :
3209 withval=$with_gstreamer;
3213 # Check whether --with-hal was given.
3214 if test "${with_hal+set}" = set; then :
3215 withval=$with_hal;
3219 # Check whether --with-jpeg was given.
3220 if test "${with_jpeg+set}" = set; then :
3221 withval=$with_jpeg;
3225 # Check whether --with-ldap was given.
3226 if test "${with_ldap+set}" = set; then :
3227 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
3231 # Check whether --with-mpg123 was given.
3232 if test "${with_mpg123+set}" = set; then :
3233 withval=$with_mpg123;
3237 # Check whether --with-netapi was given.
3238 if test "${with_netapi+set}" = set; then :
3239 withval=$with_netapi;
3243 # Check whether --with-openal was given.
3244 if test "${with_openal+set}" = set; then :
3245 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
3249 # Check whether --with-opencl was given.
3250 if test "${with_opencl+set}" = set; then :
3251 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
3255 # Check whether --with-opengl was given.
3256 if test "${with_opengl+set}" = set; then :
3257 withval=$with_opengl;
3261 # Check whether --with-osmesa was given.
3262 if test "${with_osmesa+set}" = set; then :
3263 withval=$with_osmesa;
3267 # Check whether --with-oss was given.
3268 if test "${with_oss+set}" = set; then :
3269 withval=$with_oss;
3273 # Check whether --with-png was given.
3274 if test "${with_png+set}" = set; then :
3275 withval=$with_png;
3279 # Check whether --with-pthread was given.
3280 if test "${with_pthread+set}" = set; then :
3281 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
3285 # Check whether --with-sane was given.
3286 if test "${with_sane+set}" = set; then :
3287 withval=$with_sane;
3291 # Check whether --with-tiff was given.
3292 if test "${with_tiff+set}" = set; then :
3293 withval=$with_tiff;
3297 # Check whether --with-v4l was given.
3298 if test "${with_v4l+set}" = set; then :
3299 withval=$with_v4l;
3303 # Check whether --with-xcomposite was given.
3304 if test "${with_xcomposite+set}" = set; then :
3305 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
3309 # Check whether --with-xcursor was given.
3310 if test "${with_xcursor+set}" = set; then :
3311 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
3315 # Check whether --with-xinerama was given.
3316 if test "${with_xinerama+set}" = set; then :
3317 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
3321 # Check whether --with-xinput was given.
3322 if test "${with_xinput+set}" = set; then :
3323 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
3327 # Check whether --with-xinput2 was given.
3328 if test "${with_xinput2+set}" = set; then :
3329 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
3333 # Check whether --with-xml was given.
3334 if test "${with_xml+set}" = set; then :
3335 withval=$with_xml;
3339 # Check whether --with-xrandr was given.
3340 if test "${with_xrandr+set}" = set; then :
3341 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
3345 # Check whether --with-xrender was given.
3346 if test "${with_xrender+set}" = set; then :
3347 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
3351 # Check whether --with-xshape was given.
3352 if test "${with_xshape+set}" = set; then :
3353 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
3357 # Check whether --with-xshm was given.
3358 if test "${with_xshm+set}" = set; then :
3359 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
3363 # Check whether --with-xslt was given.
3364 if test "${with_xslt+set}" = set; then :
3365 withval=$with_xslt;
3369 # Check whether --with-xxf86vm was given.
3370 if test "${with_xxf86vm+set}" = set; then :
3371 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
3375 # Check whether --with-zlib was given.
3376 if test "${with_zlib+set}" = set; then :
3377 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
3382 # Check whether --with-wine-tools was given.
3383 if test "${with_wine_tools+set}" = set; then :
3384 withval=$with_wine_tools;
3388 # Check whether --with-wine64 was given.
3389 if test "${with_wine64+set}" = set; then :
3390 withval=$with_wine64;
3394 # Make sure we can run config.sub.
3395 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3396 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3399 $as_echo_n "checking build system type... " >&6; }
3400 if ${ac_cv_build+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 ac_build_alias=$build_alias
3404 test "x$ac_build_alias" = x &&
3405 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3406 test "x$ac_build_alias" = x &&
3407 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3408 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3409 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3413 $as_echo "$ac_cv_build" >&6; }
3414 case $ac_cv_build in
3415 *-*-*) ;;
3416 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3417 esac
3418 build=$ac_cv_build
3419 ac_save_IFS=$IFS; IFS='-'
3420 set x $ac_cv_build
3421 shift
3422 build_cpu=$1
3423 build_vendor=$2
3424 shift; shift
3425 # Remember, the first character of IFS is used to create $*,
3426 # except with old shells:
3427 build_os=$*
3428 IFS=$ac_save_IFS
3429 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3433 $as_echo_n "checking host system type... " >&6; }
3434 if ${ac_cv_host+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 if test "x$host_alias" = x; then
3438 ac_cv_host=$ac_cv_build
3439 else
3440 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3446 $as_echo "$ac_cv_host" >&6; }
3447 case $ac_cv_host in
3448 *-*-*) ;;
3449 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3450 esac
3451 host=$ac_cv_host
3452 ac_save_IFS=$IFS; IFS='-'
3453 set x $ac_cv_host
3454 shift
3455 host_cpu=$1
3456 host_vendor=$2
3457 shift; shift
3458 # Remember, the first character of IFS is used to create $*,
3459 # except with old shells:
3460 host_os=$*
3461 IFS=$ac_save_IFS
3462 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3466 case "$srcdir" in
3467 .) ;;
3468 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
3469 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
3470 You need to run 'make distclean' in the source tree first." "$LINENO" 5
3471 fi ;;
3472 esac
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3476 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3477 set x ${MAKE-make}
3478 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3479 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3480 $as_echo_n "(cached) " >&6
3481 else
3482 cat >conftest.make <<\_ACEOF
3483 SHELL = /bin/sh
3484 all:
3485 @echo '@@@%%%=$(MAKE)=@@@%%%'
3486 _ACEOF
3487 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3488 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3489 *@@@%%%=?*=@@@%%%*)
3490 eval ac_cv_prog_make_${ac_make}_set=yes;;
3492 eval ac_cv_prog_make_${ac_make}_set=no;;
3493 esac
3494 rm -f conftest.make
3496 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3498 $as_echo "yes" >&6; }
3499 SET_MAKE=
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3503 SET_MAKE="MAKE=${MAKE-make}"
3506 ac_ext=c
3507 ac_cpp='$CPP $CPPFLAGS'
3508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511 if test -n "$ac_tool_prefix"; then
3512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if ${ac_cv_prog_CC+:} false; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3533 done
3534 done
3535 IFS=$as_save_IFS
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3550 if test -z "$ac_cv_prog_CC"; then
3551 ac_ct_CC=$CC
3552 # Extract the first word of "gcc", so it can be a program name with args.
3553 set dummy 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_ac_ct_CC+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$ac_ct_CC"; then
3560 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3580 if test -n "$ac_ct_CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3582 $as_echo "$ac_ct_CC" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3588 if test "x$ac_ct_CC" = x; then
3589 CC=""
3590 else
3591 case $cross_compiling:$ac_tool_warned in
3592 yes:)
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3595 ac_tool_warned=yes ;;
3596 esac
3597 CC=$ac_ct_CC
3599 else
3600 CC="$ac_cv_prog_CC"
3603 if test -z "$CC"; then
3604 if test -n "$ac_tool_prefix"; then
3605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3606 set dummy ${ac_tool_prefix}cc; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if ${ac_cv_prog_CC+:} false; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC="$CC" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3622 ac_cv_prog_CC="${ac_tool_prefix}cc"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 break 2
3626 done
3627 done
3628 IFS=$as_save_IFS
3632 CC=$ac_cv_prog_CC
3633 if test -n "$CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3636 else
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3644 if test -z "$CC"; then
3645 # Extract the first word of "cc", so it can be a program name with args.
3646 set dummy 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 ac_prog_rejected=no
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3664 ac_prog_rejected=yes
3665 continue
3667 ac_cv_prog_CC="cc"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3671 done
3672 done
3673 IFS=$as_save_IFS
3675 if test $ac_prog_rejected = yes; then
3676 # We found a bogon in the path, so make sure we never use it.
3677 set dummy $ac_cv_prog_CC
3678 shift
3679 if test $# != 0; then
3680 # We chose a different compiler from the bogus one.
3681 # However, it has the same basename, so the bogon will be chosen
3682 # first if we set CC to just the basename; use the full file name.
3683 shift
3684 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3689 CC=$ac_cv_prog_CC
3690 if test -n "$CC"; then
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3692 $as_echo "$CC" >&6; }
3693 else
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3700 if test -z "$CC"; then
3701 if test -n "$ac_tool_prefix"; then
3702 for ac_prog in cl.exe
3704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if ${ac_cv_prog_CC+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 if test -n "$CC"; then
3712 ac_cv_prog_CC="$CC" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 break 2
3725 done
3726 done
3727 IFS=$as_save_IFS
3731 CC=$ac_cv_prog_CC
3732 if test -n "$CC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734 $as_echo "$CC" >&6; }
3735 else
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3741 test -n "$CC" && break
3742 done
3744 if test -z "$CC"; then
3745 ac_ct_CC=$CC
3746 for ac_prog in cl.exe
3748 # Extract the first word of "$ac_prog", so it can be a program name with args.
3749 set dummy $ac_prog; ac_word=$2
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 $as_echo_n "checking for $ac_word... " >&6; }
3752 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 if test -n "$ac_ct_CC"; then
3756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765 ac_cv_prog_ac_ct_CC="$ac_prog"
3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 break 2
3769 done
3770 done
3771 IFS=$as_save_IFS
3775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3776 if test -n "$ac_ct_CC"; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3778 $as_echo "$ac_ct_CC" >&6; }
3779 else
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3785 test -n "$ac_ct_CC" && break
3786 done
3788 if test "x$ac_ct_CC" = x; then
3789 CC=""
3790 else
3791 case $cross_compiling:$ac_tool_warned in
3792 yes:)
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3795 ac_tool_warned=yes ;;
3796 esac
3797 CC=$ac_ct_CC
3804 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806 as_fn_error $? "no acceptable C compiler found in \$PATH
3807 See \`config.log' for more details" "$LINENO" 5; }
3809 # Provide some information about the compiler.
3810 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3811 set X $ac_compile
3812 ac_compiler=$2
3813 for ac_option in --version -v -V -qversion; do
3814 { { ac_try="$ac_compiler $ac_option >&5"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3822 ac_status=$?
3823 if test -s conftest.err; then
3824 sed '10a\
3825 ... rest of stderr output deleted ...
3826 10q' conftest.err >conftest.er1
3827 cat conftest.er1 >&5
3829 rm -f conftest.er1 conftest.err
3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }
3832 done
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3838 main ()
3842 return 0;
3844 _ACEOF
3845 ac_clean_files_save=$ac_clean_files
3846 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3847 # Try to create an executable without -o first, disregard a.out.
3848 # It will help us diagnose broken compilers, and finding out an intuition
3849 # of exeext.
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3851 $as_echo_n "checking whether the C compiler works... " >&6; }
3852 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3854 # The possible output files:
3855 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3857 ac_rmfiles=
3858 for ac_file in $ac_files
3860 case $ac_file in
3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3862 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3863 esac
3864 done
3865 rm -f $ac_rmfiles
3867 if { { ac_try="$ac_link_default"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873 $as_echo "$ac_try_echo"; } >&5
3874 (eval "$ac_link_default") 2>&5
3875 ac_status=$?
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }; then :
3878 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3879 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3880 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3881 # so that the user can short-circuit this test for compilers unknown to
3882 # Autoconf.
3883 for ac_file in $ac_files ''
3885 test -f "$ac_file" || continue
3886 case $ac_file in
3887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3889 [ab].out )
3890 # We found the default executable, but exeext='' is most
3891 # certainly right.
3892 break;;
3893 *.* )
3894 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3895 then :; else
3896 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3898 # We set ac_cv_exeext here because the later test for it is not
3899 # safe: cross compilers may not add the suffix if given an `-o'
3900 # argument, so we may need to know it at that point already.
3901 # Even if this section looks crufty: it has the advantage of
3902 # actually working.
3903 break;;
3905 break;;
3906 esac
3907 done
3908 test "$ac_cv_exeext" = no && ac_cv_exeext=
3910 else
3911 ac_file=''
3913 if test -z "$ac_file"; then :
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3916 $as_echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921 as_fn_error 77 "C compiler cannot create executables
3922 See \`config.log' for more details" "$LINENO" 5; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3925 $as_echo "yes" >&6; }
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3928 $as_echo_n "checking for C compiler default output file name... " >&6; }
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3930 $as_echo "$ac_file" >&6; }
3931 ac_exeext=$ac_cv_exeext
3933 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3934 ac_clean_files=$ac_clean_files_save
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3936 $as_echo_n "checking for suffix of executables... " >&6; }
3937 if { { ac_try="$ac_link"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944 (eval "$ac_link") 2>&5
3945 ac_status=$?
3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }; then :
3948 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3949 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3950 # work properly (i.e., refer to `conftest.exe'), while it won't with
3951 # `rm'.
3952 for ac_file in conftest.exe conftest conftest.*; do
3953 test -f "$ac_file" || continue
3954 case $ac_file in
3955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3956 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3957 break;;
3958 * ) break;;
3959 esac
3960 done
3961 else
3962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3964 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3965 See \`config.log' for more details" "$LINENO" 5; }
3967 rm -f conftest conftest$ac_cv_exeext
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3969 $as_echo "$ac_cv_exeext" >&6; }
3971 rm -f conftest.$ac_ext
3972 EXEEXT=$ac_cv_exeext
3973 ac_exeext=$EXEEXT
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3976 #include <stdio.h>
3978 main ()
3980 FILE *f = fopen ("conftest.out", "w");
3981 return ferror (f) || fclose (f) != 0;
3984 return 0;
3986 _ACEOF
3987 ac_clean_files="$ac_clean_files conftest.out"
3988 # Check that the compiler produces executables we can run. If not, either
3989 # the compiler is broken, or we cross compile.
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3991 $as_echo_n "checking whether we are cross compiling... " >&6; }
3992 if test "$cross_compiling" != yes; then
3993 { { ac_try="$ac_link"
3994 case "(($ac_try" in
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3997 esac
3998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999 $as_echo "$ac_try_echo"; } >&5
4000 (eval "$ac_link") 2>&5
4001 ac_status=$?
4002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003 test $ac_status = 0; }
4004 if { ac_try='./conftest$ac_cv_exeext'
4005 { { case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008 esac
4009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4010 $as_echo "$ac_try_echo"; } >&5
4011 (eval "$ac_try") 2>&5
4012 ac_status=$?
4013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }; }; then
4015 cross_compiling=no
4016 else
4017 if test "$cross_compiling" = maybe; then
4018 cross_compiling=yes
4019 else
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $? "cannot run C compiled programs.
4023 If you meant to cross compile, use \`--host'.
4024 See \`config.log' for more details" "$LINENO" 5; }
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4029 $as_echo "$cross_compiling" >&6; }
4031 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4032 ac_clean_files=$ac_clean_files_save
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4034 $as_echo_n "checking for suffix of object files... " >&6; }
4035 if ${ac_cv_objext+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4042 main ()
4046 return 0;
4048 _ACEOF
4049 rm -f conftest.o conftest.obj
4050 if { { ac_try="$ac_compile"
4051 case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054 esac
4055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056 $as_echo "$ac_try_echo"; } >&5
4057 (eval "$ac_compile") 2>&5
4058 ac_status=$?
4059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4060 test $ac_status = 0; }; then :
4061 for ac_file in conftest.o conftest.obj conftest.*; do
4062 test -f "$ac_file" || continue;
4063 case $ac_file in
4064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4065 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4066 break;;
4067 esac
4068 done
4069 else
4070 $as_echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4075 as_fn_error $? "cannot compute suffix of object files: cannot compile
4076 See \`config.log' for more details" "$LINENO" 5; }
4078 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4081 $as_echo "$ac_cv_objext" >&6; }
4082 OBJEXT=$ac_cv_objext
4083 ac_objext=$OBJEXT
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4085 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4086 if ${ac_cv_c_compiler_gnu+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4093 main ()
4095 #ifndef __GNUC__
4096 choke me
4097 #endif
4100 return 0;
4102 _ACEOF
4103 if ac_fn_c_try_compile "$LINENO"; then :
4104 ac_compiler_gnu=yes
4105 else
4106 ac_compiler_gnu=no
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4113 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4114 if test $ac_compiler_gnu = yes; then
4115 GCC=yes
4116 else
4117 GCC=
4119 ac_test_CFLAGS=${CFLAGS+set}
4120 ac_save_CFLAGS=$CFLAGS
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4122 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4123 if ${ac_cv_prog_cc_g+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 ac_save_c_werror_flag=$ac_c_werror_flag
4127 ac_c_werror_flag=yes
4128 ac_cv_prog_cc_g=no
4129 CFLAGS="-g"
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4134 main ()
4138 return 0;
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_g=yes
4143 else
4144 CFLAGS=""
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4149 main ()
4153 return 0;
4155 _ACEOF
4156 if ac_fn_c_try_compile "$LINENO"; then :
4158 else
4159 ac_c_werror_flag=$ac_save_c_werror_flag
4160 CFLAGS="-g"
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4165 main ()
4169 return 0;
4171 _ACEOF
4172 if ac_fn_c_try_compile "$LINENO"; then :
4173 ac_cv_prog_cc_g=yes
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 ac_c_werror_flag=$ac_save_c_werror_flag
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4183 $as_echo "$ac_cv_prog_cc_g" >&6; }
4184 if test "$ac_test_CFLAGS" = set; then
4185 CFLAGS=$ac_save_CFLAGS
4186 elif test $ac_cv_prog_cc_g = yes; then
4187 if test "$GCC" = yes; then
4188 CFLAGS="-g -O2"
4189 else
4190 CFLAGS="-g"
4192 else
4193 if test "$GCC" = yes; then
4194 CFLAGS="-O2"
4195 else
4196 CFLAGS=
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4200 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4201 if ${ac_cv_prog_cc_c89+:} false; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 ac_cv_prog_cc_c89=no
4205 ac_save_CC=$CC
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #include <stdarg.h>
4209 #include <stdio.h>
4210 struct stat;
4211 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4212 struct buf { int x; };
4213 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4214 static char *e (p, i)
4215 char **p;
4216 int i;
4218 return p[i];
4220 static char *f (char * (*g) (char **, int), char **p, ...)
4222 char *s;
4223 va_list v;
4224 va_start (v,p);
4225 s = g (p, va_arg (v,int));
4226 va_end (v);
4227 return s;
4230 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4231 function prototypes and stuff, but not '\xHH' hex character constants.
4232 These don't provoke an error unfortunately, instead are silently treated
4233 as 'x'. The following induces an error, until -std is added to get
4234 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4235 array size at least. It's necessary to write '\x00'==0 to get something
4236 that's true only with -std. */
4237 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4239 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4240 inside strings and character constants. */
4241 #define FOO(x) 'x'
4242 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4244 int test (int i, double x);
4245 struct s1 {int (*f) (int a);};
4246 struct s2 {int (*f) (double a);};
4247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4248 int argc;
4249 char **argv;
4251 main ()
4253 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4255 return 0;
4257 _ACEOF
4258 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4259 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4261 CC="$ac_save_CC $ac_arg"
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263 ac_cv_prog_cc_c89=$ac_arg
4265 rm -f core conftest.err conftest.$ac_objext
4266 test "x$ac_cv_prog_cc_c89" != "xno" && break
4267 done
4268 rm -f conftest.$ac_ext
4269 CC=$ac_save_CC
4272 # AC_CACHE_VAL
4273 case "x$ac_cv_prog_cc_c89" in
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4276 $as_echo "none needed" >&6; } ;;
4277 xno)
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4279 $as_echo "unsupported" >&6; } ;;
4281 CC="$CC $ac_cv_prog_cc_c89"
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4283 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4284 esac
4285 if test "x$ac_cv_prog_cc_c89" != xno; then :
4289 ac_ext=c
4290 ac_cpp='$CPP $CPPFLAGS'
4291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295 ac_ext=cpp
4296 ac_cpp='$CXXCPP $CPPFLAGS'
4297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4300 if test -z "$CXX"; then
4301 if test -n "$CCC"; then
4302 CXX=$CCC
4303 else
4304 if test -n "$ac_tool_prefix"; then
4305 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if ${ac_cv_prog_CXX+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -n "$CXX"; then
4315 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4328 done
4329 done
4330 IFS=$as_save_IFS
4334 CXX=$ac_cv_prog_CXX
4335 if test -n "$CXX"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4337 $as_echo "$CXX" >&6; }
4338 else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4344 test -n "$CXX" && break
4345 done
4347 if test -z "$CXX"; then
4348 ac_ct_CXX=$CXX
4349 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4351 # Extract the first word of "$ac_prog", so it can be a program name with args.
4352 set dummy $ac_prog; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if test -n "$ac_ct_CXX"; then
4359 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368 ac_cv_prog_ac_ct_CXX="$ac_prog"
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4372 done
4373 done
4374 IFS=$as_save_IFS
4378 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4379 if test -n "$ac_ct_CXX"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4381 $as_echo "$ac_ct_CXX" >&6; }
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4388 test -n "$ac_ct_CXX" && break
4389 done
4391 if test "x$ac_ct_CXX" = x; then
4392 CXX="g++"
4393 else
4394 case $cross_compiling:$ac_tool_warned in
4395 yes:)
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4398 ac_tool_warned=yes ;;
4399 esac
4400 CXX=$ac_ct_CXX
4406 # Provide some information about the compiler.
4407 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4408 set X $ac_compile
4409 ac_compiler=$2
4410 for ac_option in --version -v -V -qversion; do
4411 { { ac_try="$ac_compiler $ac_option >&5"
4412 case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415 esac
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4419 ac_status=$?
4420 if test -s conftest.err; then
4421 sed '10a\
4422 ... rest of stderr output deleted ...
4423 10q' conftest.err >conftest.er1
4424 cat conftest.er1 >&5
4426 rm -f conftest.er1 conftest.err
4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; }
4429 done
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4432 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4433 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4440 main ()
4442 #ifndef __GNUC__
4443 choke me
4444 #endif
4447 return 0;
4449 _ACEOF
4450 if ac_fn_cxx_try_compile "$LINENO"; then :
4451 ac_compiler_gnu=yes
4452 else
4453 ac_compiler_gnu=no
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4460 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4461 if test $ac_compiler_gnu = yes; then
4462 GXX=yes
4463 else
4464 GXX=
4466 ac_test_CXXFLAGS=${CXXFLAGS+set}
4467 ac_save_CXXFLAGS=$CXXFLAGS
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4469 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4470 if ${ac_cv_prog_cxx_g+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4474 ac_cxx_werror_flag=yes
4475 ac_cv_prog_cxx_g=no
4476 CXXFLAGS="-g"
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4481 main ()
4485 return 0;
4487 _ACEOF
4488 if ac_fn_cxx_try_compile "$LINENO"; then :
4489 ac_cv_prog_cxx_g=yes
4490 else
4491 CXXFLAGS=""
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4496 main ()
4500 return 0;
4502 _ACEOF
4503 if ac_fn_cxx_try_compile "$LINENO"; then :
4505 else
4506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4507 CXXFLAGS="-g"
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4512 main ()
4516 return 0;
4518 _ACEOF
4519 if ac_fn_cxx_try_compile "$LINENO"; then :
4520 ac_cv_prog_cxx_g=yes
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4530 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4531 if test "$ac_test_CXXFLAGS" = set; then
4532 CXXFLAGS=$ac_save_CXXFLAGS
4533 elif test $ac_cv_prog_cxx_g = yes; then
4534 if test "$GXX" = yes; then
4535 CXXFLAGS="-g -O2"
4536 else
4537 CXXFLAGS="-g"
4539 else
4540 if test "$GXX" = yes; then
4541 CXXFLAGS="-O2"
4542 else
4543 CXXFLAGS=
4546 ac_ext=c
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4554 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if ${ac_cv_prog_CPPBIN+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$CPPBIN"; then
4561 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4574 done
4575 done
4576 IFS=$as_save_IFS
4580 CPPBIN=$ac_cv_prog_CPPBIN
4581 if test -n "$CPPBIN"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4583 $as_echo "$CPPBIN" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4591 if test -z "$ac_cv_prog_CPPBIN"; then
4592 ac_ct_CPPBIN=$CPPBIN
4593 # Extract the first word of "cpp", so it can be a program name with args.
4594 set dummy 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_ac_ct_CPPBIN+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$ac_ct_CPPBIN"; then
4601 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_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_ac_ct_CPPBIN="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 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4621 if test -n "$ac_ct_CPPBIN"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4623 $as_echo "$ac_ct_CPPBIN" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4629 if test "x$ac_ct_CPPBIN" = x; then
4630 CPPBIN="cpp"
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633 yes:)
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 ac_tool_warned=yes ;;
4637 esac
4638 CPPBIN=$ac_ct_CPPBIN
4640 else
4641 CPPBIN="$ac_cv_prog_CPPBIN"
4645 cat >>confdefs.h <<_ACEOF
4646 #define EXEEXT "$ac_exeext"
4647 _ACEOF
4650 case $host in
4651 *-darwin*)
4652 if test "x$enable_win64" = "xyes"
4653 then
4654 CC="$CC -m64"
4655 CXX="$CXX -m64"
4656 host_cpu="x86_64"
4657 notice_platform="64-bit "
4658 TARGETFLAGS="-m64"
4660 else
4661 CC="$CC -m32"
4662 CXX="$CXX -m32"
4663 host_cpu="i386"
4664 notice_platform="32-bit "
4665 TARGETFLAGS="-m32"
4667 enable_win16=${enable_win16:-yes}
4669 with_fontconfig=${with_fontconfig:-no}
4671 x86_64*)
4672 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4673 then
4674 CC="$CC -m32"
4675 CXX="$CXX -m32"
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4677 $as_echo_n "checking whether $CC works... " >&6; }
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4683 main ()
4687 return 0;
4689 _ACEOF
4690 if ac_fn_c_try_link "$LINENO"; then :
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4692 $as_echo "yes" >&6; }
4693 else
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4696 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4698 rm -f core conftest.err conftest.$ac_objext \
4699 conftest$ac_exeext conftest.$ac_ext
4700 host_cpu="i386"
4701 notice_platform="32-bit "
4702 TARGETFLAGS="-m32"
4704 enable_win16=${enable_win16:-yes}
4705 else
4706 if test "x${GCC}" = "xyes"
4707 then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4709 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 #include <stdarg.h>
4714 main ()
4716 void func(__builtin_ms_va_list *args);
4718 return 0;
4720 _ACEOF
4721 if ac_fn_c_try_compile "$LINENO"; then :
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4723 $as_echo "yes" >&6; }
4724 else
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4727 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 TARGETFLAGS="-m64"
4735 arm*)
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4737 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740 int ac_test(int i) { return i; }
4742 main ()
4744 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4746 return 0;
4748 _ACEOF
4749 if ac_fn_c_try_link "$LINENO"; then :
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4751 $as_echo "yes" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4755 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4757 rm -f core conftest.err conftest.$ac_objext \
4758 conftest$ac_exeext conftest.$ac_ext
4759 CFLAGS="$CFLAGS -marm"
4761 *-mingw32*|*-cygwin*)
4762 enable_win16=${enable_win16:-no}
4763 CFLAGS="$CFLAGS -D_WIN32"
4765 i[3456789]86*)
4766 enable_win16=${enable_win16:-yes}
4768 esac
4770 enable_win16=${enable_win16:-no}
4771 enable_win64=${enable_win64:-no}
4773 enable_winetest=${enable_winetest:-$enable_tests}
4775 if test -n "$with_wine64"
4776 then
4777 if test "x$enable_win64" = "xyes"
4778 then
4779 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4780 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4782 enable_fonts=${enable_fonts:-no}
4783 enable_server=${enable_server:-no}
4784 elif test "x$enable_win64" = "xyes"
4785 then
4786 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4790 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4791 if ${wine_cv_toolsdir+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 wine_cv_toolsdir="$with_wine_tools"
4795 if test -z "$with_wine_tools"; then
4796 if test "$cross_compiling" = "yes"; then
4797 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4798 elif test -n "$with_wine64"; then
4799 wine_cv_toolsdir="$with_wine64"
4802 if test -z "$wine_cv_toolsdir"; then
4803 wine_cv_toolsdir="\$(top_builddir)"
4804 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4805 case "$wine_cv_toolsdir" in
4806 /*) ;;
4807 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4808 esac
4809 enable_tools=${enable_tools:-no}
4810 else
4811 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4815 $as_echo "$wine_cv_toolsdir" >&6; }
4816 TOOLSDIR=$wine_cv_toolsdir
4818 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4819 then
4820 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4824 for ac_prog in flex
4826 # Extract the first word of "$ac_prog", so it can be a program name with args.
4827 set dummy $ac_prog; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_prog_FLEX+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -n "$FLEX"; then
4834 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843 ac_cv_prog_FLEX="$ac_prog"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4847 done
4848 done
4849 IFS=$as_save_IFS
4853 FLEX=$ac_cv_prog_FLEX
4854 if test -n "$FLEX"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4856 $as_echo "$FLEX" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4863 test -n "$FLEX" && break
4864 done
4865 test -n "$FLEX" || FLEX="none"
4867 if test "$FLEX" = "none"
4868 then
4869 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4872 $as_echo_n "checking whether flex is recent enough... " >&6; }
4873 cat >conftest.l <<EOF
4874 %top{
4875 #include "prediluvian.h"
4879 if $FLEX -t conftest.l >/dev/null 2>&5
4880 then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4882 $as_echo "yes" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4886 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4889 for ac_prog in bison
4891 # Extract the first word of "$ac_prog", so it can be a program name with args.
4892 set dummy $ac_prog; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_prog_BISON+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 if test -n "$BISON"; then
4899 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_prog_BISON="$ac_prog"
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4912 done
4913 done
4914 IFS=$as_save_IFS
4918 BISON=$ac_cv_prog_BISON
4919 if test -n "$BISON"; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4921 $as_echo "$BISON" >&6; }
4922 else
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4928 test -n "$BISON" && break
4929 done
4930 test -n "$BISON" || BISON="none"
4932 if test "$BISON" = "none"
4933 then
4934 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4937 if test -n "$ac_tool_prefix"; then
4938 for ac_prog in ar gar
4940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if ${ac_cv_prog_AR+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 if test -n "$AR"; then
4948 ac_cv_prog_AR="$AR" # Let the user override the test.
4949 else
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4961 done
4962 done
4963 IFS=$as_save_IFS
4967 AR=$ac_cv_prog_AR
4968 if test -n "$AR"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4970 $as_echo "$AR" >&6; }
4971 else
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4977 test -n "$AR" && break
4978 done
4980 if test -z "$AR"; then
4981 ac_ct_AR=$AR
4982 for ac_prog in ar gar
4984 # Extract the first word of "$ac_prog", so it can be a program name with args.
4985 set dummy $ac_prog; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test -n "$ac_ct_AR"; then
4992 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001 ac_cv_prog_ac_ct_AR="$ac_prog"
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5005 done
5006 done
5007 IFS=$as_save_IFS
5011 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5012 if test -n "$ac_ct_AR"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5014 $as_echo "$ac_ct_AR" >&6; }
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5021 test -n "$ac_ct_AR" && break
5022 done
5024 if test "x$ac_ct_AR" = x; then
5025 AR="ar"
5026 else
5027 case $cross_compiling:$ac_tool_warned in
5028 yes:)
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5031 ac_tool_warned=yes ;;
5032 esac
5033 AR=$ac_ct_AR
5037 if test -n "$ac_tool_prefix"; then
5038 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5039 set dummy ${ac_tool_prefix}strip; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if ${ac_cv_prog_STRIP+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if test -n "$STRIP"; then
5046 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5055 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5059 done
5060 done
5061 IFS=$as_save_IFS
5065 STRIP=$ac_cv_prog_STRIP
5066 if test -n "$STRIP"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5068 $as_echo "$STRIP" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5076 if test -z "$ac_cv_prog_STRIP"; then
5077 ac_ct_STRIP=$STRIP
5078 # Extract the first word of "strip", so it can be a program name with args.
5079 set dummy strip; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if test -n "$ac_ct_STRIP"; then
5086 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5095 ac_cv_prog_ac_ct_STRIP="strip"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5099 done
5100 done
5101 IFS=$as_save_IFS
5105 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5106 if test -n "$ac_ct_STRIP"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5108 $as_echo "$ac_ct_STRIP" >&6; }
5109 else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5114 if test "x$ac_ct_STRIP" = x; then
5115 STRIP="strip"
5116 else
5117 case $cross_compiling:$ac_tool_warned in
5118 yes:)
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5121 ac_tool_warned=yes ;;
5122 esac
5123 STRIP=$ac_ct_STRIP
5125 else
5126 STRIP="$ac_cv_prog_STRIP"
5129 ARFLAGS=rc
5131 if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5133 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if ${ac_cv_prog_RANLIB+:} false; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$RANLIB"; then
5140 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5153 done
5154 done
5155 IFS=$as_save_IFS
5159 RANLIB=$ac_cv_prog_RANLIB
5160 if test -n "$RANLIB"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5162 $as_echo "$RANLIB" >&6; }
5163 else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5170 if test -z "$ac_cv_prog_RANLIB"; then
5171 ac_ct_RANLIB=$RANLIB
5172 # Extract the first word of "ranlib", so it can be a program name with args.
5173 set dummy ranlib; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$ac_ct_RANLIB"; then
5180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_ac_ct_RANLIB="ranlib"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5195 IFS=$as_save_IFS
5199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5200 if test -n "$ac_ct_RANLIB"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5202 $as_echo "$ac_ct_RANLIB" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5208 if test "x$ac_ct_RANLIB" = x; then
5209 RANLIB=":"
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212 yes:)
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215 ac_tool_warned=yes ;;
5216 esac
5217 RANLIB=$ac_ct_RANLIB
5219 else
5220 RANLIB="$ac_cv_prog_RANLIB"
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5224 $as_echo_n "checking whether ln -s works... " >&6; }
5225 LN_S=$as_ln_s
5226 if test "$LN_S" = "ln -s"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5228 $as_echo "yes" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5231 $as_echo "no, using $LN_S" >&6; }
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5235 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5236 if ${ac_cv_path_GREP+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 if test -z "$GREP"; then
5240 ac_path_GREP_found=false
5241 # Loop through the user's path and test for each of PROGNAME-LIST
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_prog in grep ggrep; do
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5250 as_fn_executable_p "$ac_path_GREP" || continue
5251 # Check for GNU ac_path_GREP and select it if it is found.
5252 # Check for GNU $ac_path_GREP
5253 case `"$ac_path_GREP" --version 2>&1` in
5254 *GNU*)
5255 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5257 ac_count=0
5258 $as_echo_n 0123456789 >"conftest.in"
5259 while :
5261 cat "conftest.in" "conftest.in" >"conftest.tmp"
5262 mv "conftest.tmp" "conftest.in"
5263 cp "conftest.in" "conftest.nl"
5264 $as_echo 'GREP' >> "conftest.nl"
5265 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5267 as_fn_arith $ac_count + 1 && ac_count=$as_val
5268 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5269 # Best one so far, save it but keep looking for a better one
5270 ac_cv_path_GREP="$ac_path_GREP"
5271 ac_path_GREP_max=$ac_count
5273 # 10*(2^10) chars as input seems more than enough
5274 test $ac_count -gt 10 && break
5275 done
5276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277 esac
5279 $ac_path_GREP_found && break 3
5280 done
5281 done
5282 done
5283 IFS=$as_save_IFS
5284 if test -z "$ac_cv_path_GREP"; then
5285 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5287 else
5288 ac_cv_path_GREP=$GREP
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5293 $as_echo "$ac_cv_path_GREP" >&6; }
5294 GREP="$ac_cv_path_GREP"
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5298 $as_echo_n "checking for egrep... " >&6; }
5299 if ${ac_cv_path_EGREP+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5303 then ac_cv_path_EGREP="$GREP -E"
5304 else
5305 if test -z "$EGREP"; then
5306 ac_path_EGREP_found=false
5307 # Loop through the user's path and test for each of PROGNAME-LIST
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5311 IFS=$as_save_IFS
5312 test -z "$as_dir" && as_dir=.
5313 for ac_prog in egrep; do
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5316 as_fn_executable_p "$ac_path_EGREP" || continue
5317 # Check for GNU ac_path_EGREP and select it if it is found.
5318 # Check for GNU $ac_path_EGREP
5319 case `"$ac_path_EGREP" --version 2>&1` in
5320 *GNU*)
5321 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5323 ac_count=0
5324 $as_echo_n 0123456789 >"conftest.in"
5325 while :
5327 cat "conftest.in" "conftest.in" >"conftest.tmp"
5328 mv "conftest.tmp" "conftest.in"
5329 cp "conftest.in" "conftest.nl"
5330 $as_echo 'EGREP' >> "conftest.nl"
5331 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5333 as_fn_arith $ac_count + 1 && ac_count=$as_val
5334 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5335 # Best one so far, save it but keep looking for a better one
5336 ac_cv_path_EGREP="$ac_path_EGREP"
5337 ac_path_EGREP_max=$ac_count
5339 # 10*(2^10) chars as input seems more than enough
5340 test $ac_count -gt 10 && break
5341 done
5342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5343 esac
5345 $ac_path_EGREP_found && break 3
5346 done
5347 done
5348 done
5349 IFS=$as_save_IFS
5350 if test -z "$ac_cv_path_EGREP"; then
5351 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5353 else
5354 ac_cv_path_EGREP=$EGREP
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5360 $as_echo "$ac_cv_path_EGREP" >&6; }
5361 EGREP="$ac_cv_path_EGREP"
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5365 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5366 if test -z "$MKDIR_P"; then
5367 if ${ac_cv_path_mkdir+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_prog in mkdir gmkdir; do
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5378 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5379 'mkdir (GNU coreutils) '* | \
5380 'mkdir (coreutils) '* | \
5381 'mkdir (fileutils) '4.1*)
5382 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5383 break 3;;
5384 esac
5385 done
5386 done
5387 done
5388 IFS=$as_save_IFS
5392 test -d ./--version && rmdir ./--version
5393 if test "${ac_cv_path_mkdir+set}" = set; then
5394 MKDIR_P="$ac_cv_path_mkdir -p"
5395 else
5396 # As a last resort, use the slow shell script. Don't cache a
5397 # value for MKDIR_P within a source directory, because that will
5398 # break other packages using the cache if that directory is
5399 # removed, or if the value is a relative name.
5400 MKDIR_P="$ac_install_sh -d"
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5404 $as_echo "$MKDIR_P" >&6; }
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; }
5448 test -z "$INSTALL" && INSTALL="\$(top_srcdir)/tools/install-sh"
5450 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM="STRIPPROG=\"\$(STRIP)\" \$(INSTALL)"
5452 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT="\$(INSTALL)"
5454 test -z "$INSTALL_DATA" && INSTALL_DATA="\$(INSTALL) -m 644"
5457 for ac_prog in msgfmt
5459 # Extract the first word of "$ac_prog", so it can be a program name with args.
5460 set dummy $ac_prog; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_prog_MSGFMT+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -n "$MSGFMT"; then
5467 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_MSGFMT="$ac_prog"
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5480 done
5481 done
5482 IFS=$as_save_IFS
5486 MSGFMT=$ac_cv_prog_MSGFMT
5487 if test -n "$MSGFMT"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5489 $as_echo "$MSGFMT" >&6; }
5490 else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5496 test -n "$MSGFMT" && break
5497 done
5498 test -n "$MSGFMT" || MSGFMT="false"
5500 if test -n "$ac_tool_prefix"; then
5501 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5502 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 if test -n "$PKG_CONFIG"; then
5509 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5510 else
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5522 done
5523 done
5524 IFS=$as_save_IFS
5528 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5529 if test -n "$PKG_CONFIG"; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5531 $as_echo "$PKG_CONFIG" >&6; }
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5539 if test -n "$ac_cv_prog_PKG_CONFIG"; then
5540 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
5541 elif test "$cross_compiling" != yes; then
5542 unset ac_cv_prog_PKG_CONFIG
5543 # Extract the first word of "pkg-config", so it can be a program name with args.
5544 set dummy pkg-config; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 if test -n "$PKG_CONFIG"; then
5551 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5560 ac_cv_prog_PKG_CONFIG="pkg-config"
5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5564 done
5565 done
5566 IFS=$as_save_IFS
5570 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5571 if test -n "$PKG_CONFIG"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5573 $as_echo "$PKG_CONFIG" >&6; }
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5582 if test "x$enable_maintainer_mode" != "xyes"
5583 then
5584 FONTFORGE=""
5585 RSVG=""
5586 CONVERT=""
5587 ICOTOOL=""
5588 else
5589 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5590 for ac_prog in fontforge
5592 # Extract the first word of "$ac_prog", so it can be a program name with args.
5593 set dummy $ac_prog; ac_word=$2
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5595 $as_echo_n "checking for $ac_word... " >&6; }
5596 if ${ac_cv_prog_FONTFORGE+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 if test -n "$FONTFORGE"; then
5600 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609 ac_cv_prog_FONTFORGE="$ac_prog"
5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5613 done
5614 done
5615 IFS=$as_save_IFS
5619 FONTFORGE=$ac_cv_prog_FONTFORGE
5620 if test -n "$FONTFORGE"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5622 $as_echo "$FONTFORGE" >&6; }
5623 else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5629 test -n "$FONTFORGE" && break
5630 done
5631 test -n "$FONTFORGE" || FONTFORGE="false"
5633 for ac_prog in rsvg
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if ${ac_cv_prog_RSVG+:} false; then :
5640 $as_echo_n "(cached) " >&6
5641 else
5642 if test -n "$RSVG"; then
5643 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_RSVG="$ac_prog"
5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5656 done
5657 done
5658 IFS=$as_save_IFS
5662 RSVG=$ac_cv_prog_RSVG
5663 if test -n "$RSVG"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5665 $as_echo "$RSVG" >&6; }
5666 else
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5672 test -n "$RSVG" && break
5673 done
5674 test -n "$RSVG" || RSVG="false"
5676 for ac_prog in convert
5678 # Extract the first word of "$ac_prog", so it can be a program name with args.
5679 set dummy $ac_prog; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if ${ac_cv_prog_CONVERT+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 if test -n "$CONVERT"; then
5686 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5695 ac_cv_prog_CONVERT="$ac_prog"
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 break 2
5699 done
5700 done
5701 IFS=$as_save_IFS
5705 CONVERT=$ac_cv_prog_CONVERT
5706 if test -n "$CONVERT"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5708 $as_echo "$CONVERT" >&6; }
5709 else
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5715 test -n "$CONVERT" && break
5716 done
5717 test -n "$CONVERT" || CONVERT="false"
5719 for ac_prog in icotool
5721 # Extract the first word of "$ac_prog", so it can be a program name with args.
5722 set dummy $ac_prog; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if ${ac_cv_prog_ICOTOOL+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 if test -n "$ICOTOOL"; then
5729 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738 ac_cv_prog_ICOTOOL="$ac_prog"
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 break 2
5742 done
5743 done
5744 IFS=$as_save_IFS
5748 ICOTOOL=$ac_cv_prog_ICOTOOL
5749 if test -n "$ICOTOOL"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5751 $as_echo "$ICOTOOL" >&6; }
5752 else
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5758 test -n "$ICOTOOL" && break
5759 done
5760 test -n "$ICOTOOL" || ICOTOOL="false"
5762 test "$FONTFORGE" != "false" || as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5
5763 test "$RSVG" != "false" || as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5
5765 if test "$CONVERT" = false
5766 then
5767 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5768 else
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5770 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5771 convert_version=`convert --version | head -n1`
5772 if test "x$convert_version" != "x"
5773 then
5774 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5775 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5776 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5777 then
5778 CONVERT=false
5781 if test "$CONVERT" = false
5782 then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5784 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5785 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5788 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5792 if test "$ICOTOOL" = false
5793 then
5794 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5795 else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5797 $as_echo_n "checking for recent enough icotool... " >&6; }
5798 icotool_version=`icotool --version | head -n1`
5799 if test "x$icotool_version" != "x"
5800 then
5801 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5802 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5803 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5804 then
5805 ICOTOOL=false
5806 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5809 if test "$ICOTOOL" = false
5810 then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5812 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5813 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5814 else
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5816 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5820 with_gettext=yes
5821 with_gettextpo=yes
5822 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5825 test "x$with_gettext" != xno || MSGFMT=false
5826 if test "$MSGFMT" != "false"
5827 then
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5829 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5830 cat >conftest.po <<EOF
5831 # comment
5832 msgctxt "ctxt"
5833 msgid "id"
5834 msgstr "str"
5836 if $MSGFMT -o /dev/null conftest.po 2>&5
5837 then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5839 $as_echo "yes" >&6; }
5840 else
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5843 MSGFMT=false
5846 if test "$MSGFMT" = false; then :
5847 case "x$with_gettext" in
5848 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5849 xno) ;;
5850 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5851 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5852 esac
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5857 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5858 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 ac_check_lib_save_LIBS=$LIBS
5862 LIBS="-li386 $LIBS"
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864 /* end confdefs.h. */
5866 /* Override any GCC internal prototype to avoid an error.
5867 Use char because int might match the return type of a GCC
5868 builtin and then its argument prototype would still apply. */
5869 #ifdef __cplusplus
5870 extern "C"
5871 #endif
5872 char i386_set_ldt ();
5874 main ()
5876 return i386_set_ldt ();
5878 return 0;
5880 _ACEOF
5881 if ac_fn_c_try_link "$LINENO"; then :
5882 ac_cv_lib_i386_i386_set_ldt=yes
5883 else
5884 ac_cv_lib_i386_i386_set_ldt=no
5886 rm -f core conftest.err conftest.$ac_objext \
5887 conftest$ac_exeext conftest.$ac_ext
5888 LIBS=$ac_check_lib_save_LIBS
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5891 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5892 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5893 cat >>confdefs.h <<_ACEOF
5894 #define HAVE_LIBI386 1
5895 _ACEOF
5897 LIBS="-li386 $LIBS"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5902 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5903 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5904 $as_echo_n "(cached) " >&6
5905 else
5906 ac_check_lib_save_LIBS=$LIBS
5907 LIBS="-lossaudio $LIBS"
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5911 /* Override any GCC internal prototype to avoid an error.
5912 Use char because int might match the return type of a GCC
5913 builtin and then its argument prototype would still apply. */
5914 #ifdef __cplusplus
5915 extern "C"
5916 #endif
5917 char _oss_ioctl ();
5919 main ()
5921 return _oss_ioctl ();
5923 return 0;
5925 _ACEOF
5926 if ac_fn_c_try_link "$LINENO"; then :
5927 ac_cv_lib_ossaudio__oss_ioctl=yes
5928 else
5929 ac_cv_lib_ossaudio__oss_ioctl=no
5931 rm -f core conftest.err conftest.$ac_objext \
5932 conftest$ac_exeext conftest.$ac_ext
5933 LIBS=$ac_check_lib_save_LIBS
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5936 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5937 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5938 cat >>confdefs.h <<_ACEOF
5939 #define HAVE_LIBOSSAUDIO 1
5940 _ACEOF
5942 LIBS="-lossaudio $LIBS"
5947 XLIB=""
5949 OPENGL_LIBS=""
5953 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5955 # Check whether --enable-largefile was given.
5956 if test "${enable_largefile+set}" = set; then :
5957 enableval=$enable_largefile;
5960 if test "$enable_largefile" != no; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5963 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5964 if ${ac_cv_sys_largefile_CC+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 ac_cv_sys_largefile_CC=no
5968 if test "$GCC" != yes; then
5969 ac_save_CC=$CC
5970 while :; do
5971 # IRIX 6.2 and later do not support large files by default,
5972 # so use the C compiler's -n32 option if that helps.
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5975 #include <sys/types.h>
5976 /* Check that off_t can represent 2**63 - 1 correctly.
5977 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5978 since some C++ compilers masquerading as C compilers
5979 incorrectly reject 9223372036854775807. */
5980 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5981 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5982 && LARGE_OFF_T % 2147483647 == 1)
5983 ? 1 : -1];
5985 main ()
5989 return 0;
5991 _ACEOF
5992 if ac_fn_c_try_compile "$LINENO"; then :
5993 break
5995 rm -f core conftest.err conftest.$ac_objext
5996 CC="$CC -n32"
5997 if ac_fn_c_try_compile "$LINENO"; then :
5998 ac_cv_sys_largefile_CC=' -n32'; break
6000 rm -f core conftest.err conftest.$ac_objext
6001 break
6002 done
6003 CC=$ac_save_CC
6004 rm -f conftest.$ac_ext
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6008 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6009 if test "$ac_cv_sys_largefile_CC" != no; then
6010 CC=$CC$ac_cv_sys_largefile_CC
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6014 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6015 if ${ac_cv_sys_file_offset_bits+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017 else
6018 while :; do
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 #include <sys/types.h>
6022 /* Check that off_t can represent 2**63 - 1 correctly.
6023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6024 since some C++ compilers masquerading as C compilers
6025 incorrectly reject 9223372036854775807. */
6026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6028 && LARGE_OFF_T % 2147483647 == 1)
6029 ? 1 : -1];
6031 main ()
6035 return 0;
6037 _ACEOF
6038 if ac_fn_c_try_compile "$LINENO"; then :
6039 ac_cv_sys_file_offset_bits=no; break
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 #define _FILE_OFFSET_BITS 64
6045 #include <sys/types.h>
6046 /* Check that off_t can represent 2**63 - 1 correctly.
6047 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6048 since some C++ compilers masquerading as C compilers
6049 incorrectly reject 9223372036854775807. */
6050 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6051 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6052 && LARGE_OFF_T % 2147483647 == 1)
6053 ? 1 : -1];
6055 main ()
6059 return 0;
6061 _ACEOF
6062 if ac_fn_c_try_compile "$LINENO"; then :
6063 ac_cv_sys_file_offset_bits=64; break
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 ac_cv_sys_file_offset_bits=unknown
6067 break
6068 done
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6071 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6072 case $ac_cv_sys_file_offset_bits in #(
6073 no | unknown) ;;
6075 cat >>confdefs.h <<_ACEOF
6076 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6077 _ACEOF
6079 esac
6080 rm -rf conftest*
6081 if test $ac_cv_sys_file_offset_bits = unknown; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6083 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6084 if ${ac_cv_sys_large_files+:} false; then :
6085 $as_echo_n "(cached) " >&6
6086 else
6087 while :; do
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6090 #include <sys/types.h>
6091 /* Check that off_t can represent 2**63 - 1 correctly.
6092 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6093 since some C++ compilers masquerading as C compilers
6094 incorrectly reject 9223372036854775807. */
6095 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6097 && LARGE_OFF_T % 2147483647 == 1)
6098 ? 1 : -1];
6100 main ()
6104 return 0;
6106 _ACEOF
6107 if ac_fn_c_try_compile "$LINENO"; then :
6108 ac_cv_sys_large_files=no; break
6110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #define _LARGE_FILES 1
6114 #include <sys/types.h>
6115 /* Check that off_t can represent 2**63 - 1 correctly.
6116 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6117 since some C++ compilers masquerading as C compilers
6118 incorrectly reject 9223372036854775807. */
6119 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6121 && LARGE_OFF_T % 2147483647 == 1)
6122 ? 1 : -1];
6124 main ()
6128 return 0;
6130 _ACEOF
6131 if ac_fn_c_try_compile "$LINENO"; then :
6132 ac_cv_sys_large_files=1; break
6134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 ac_cv_sys_large_files=unknown
6136 break
6137 done
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6140 $as_echo "$ac_cv_sys_large_files" >&6; }
6141 case $ac_cv_sys_large_files in #(
6142 no | unknown) ;;
6144 cat >>confdefs.h <<_ACEOF
6145 #define _LARGE_FILES $ac_cv_sys_large_files
6146 _ACEOF
6148 esac
6149 rm -rf conftest*
6156 ac_ext=c
6157 ac_cpp='$CPP $CPPFLAGS'
6158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6162 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6163 # On Suns, sometimes $CPP names a directory.
6164 if test -n "$CPP" && test -d "$CPP"; then
6165 CPP=
6167 if test -z "$CPP"; then
6168 if ${ac_cv_prog_CPP+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 # Double quotes because CPP needs to be expanded
6172 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6174 ac_preproc_ok=false
6175 for ac_c_preproc_warn_flag in '' yes
6177 # Use a header file that comes with gcc, so configuring glibc
6178 # with a fresh cross-compiler works.
6179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6180 # <limits.h> exists even on freestanding compilers.
6181 # On the NeXT, cc -E runs the code through the compiler's parser,
6182 # not just through cpp. "Syntax error" is here to catch this case.
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6185 #ifdef __STDC__
6186 # include <limits.h>
6187 #else
6188 # include <assert.h>
6189 #endif
6190 Syntax error
6191 _ACEOF
6192 if ac_fn_c_try_cpp "$LINENO"; then :
6194 else
6195 # Broken: fails on valid input.
6196 continue
6198 rm -f conftest.err conftest.i conftest.$ac_ext
6200 # OK, works on sane cases. Now check whether nonexistent headers
6201 # can be detected and how.
6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203 /* end confdefs.h. */
6204 #include <ac_nonexistent.h>
6205 _ACEOF
6206 if ac_fn_c_try_cpp "$LINENO"; then :
6207 # Broken: success on invalid input.
6208 continue
6209 else
6210 # Passes both tests.
6211 ac_preproc_ok=:
6212 break
6214 rm -f conftest.err conftest.i conftest.$ac_ext
6216 done
6217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6218 rm -f conftest.i conftest.err conftest.$ac_ext
6219 if $ac_preproc_ok; then :
6220 break
6223 done
6224 ac_cv_prog_CPP=$CPP
6227 CPP=$ac_cv_prog_CPP
6228 else
6229 ac_cv_prog_CPP=$CPP
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6232 $as_echo "$CPP" >&6; }
6233 ac_preproc_ok=false
6234 for ac_c_preproc_warn_flag in '' yes
6236 # Use a header file that comes with gcc, so configuring glibc
6237 # with a fresh cross-compiler works.
6238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6239 # <limits.h> exists even on freestanding compilers.
6240 # On the NeXT, cc -E runs the code through the compiler's parser,
6241 # not just through cpp. "Syntax error" is here to catch this case.
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6244 #ifdef __STDC__
6245 # include <limits.h>
6246 #else
6247 # include <assert.h>
6248 #endif
6249 Syntax error
6250 _ACEOF
6251 if ac_fn_c_try_cpp "$LINENO"; then :
6253 else
6254 # Broken: fails on valid input.
6255 continue
6257 rm -f conftest.err conftest.i conftest.$ac_ext
6259 # OK, works on sane cases. Now check whether nonexistent headers
6260 # can be detected and how.
6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262 /* end confdefs.h. */
6263 #include <ac_nonexistent.h>
6264 _ACEOF
6265 if ac_fn_c_try_cpp "$LINENO"; then :
6266 # Broken: success on invalid input.
6267 continue
6268 else
6269 # Passes both tests.
6270 ac_preproc_ok=:
6271 break
6273 rm -f conftest.err conftest.i conftest.$ac_ext
6275 done
6276 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6277 rm -f conftest.i conftest.err conftest.$ac_ext
6278 if $ac_preproc_ok; then :
6280 else
6281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6283 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6284 See \`config.log' for more details" "$LINENO" 5; }
6287 ac_ext=c
6288 ac_cpp='$CPP $CPPFLAGS'
6289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6295 $as_echo_n "checking for ANSI C header files... " >&6; }
6296 if ${ac_cv_header_stdc+:} false; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6301 #include <stdlib.h>
6302 #include <stdarg.h>
6303 #include <string.h>
6304 #include <float.h>
6307 main ()
6311 return 0;
6313 _ACEOF
6314 if ac_fn_c_try_compile "$LINENO"; then :
6315 ac_cv_header_stdc=yes
6316 else
6317 ac_cv_header_stdc=no
6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 if test $ac_cv_header_stdc = yes; then
6322 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6325 #include <string.h>
6327 _ACEOF
6328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6329 $EGREP "memchr" >/dev/null 2>&1; then :
6331 else
6332 ac_cv_header_stdc=no
6334 rm -f conftest*
6338 if test $ac_cv_header_stdc = yes; then
6339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341 /* end confdefs.h. */
6342 #include <stdlib.h>
6344 _ACEOF
6345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6346 $EGREP "free" >/dev/null 2>&1; then :
6348 else
6349 ac_cv_header_stdc=no
6351 rm -f conftest*
6355 if test $ac_cv_header_stdc = yes; then
6356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6357 if test "$cross_compiling" = yes; then :
6359 else
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362 #include <ctype.h>
6363 #include <stdlib.h>
6364 #if ((' ' & 0x0FF) == 0x020)
6365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6367 #else
6368 # define ISLOWER(c) \
6369 (('a' <= (c) && (c) <= 'i') \
6370 || ('j' <= (c) && (c) <= 'r') \
6371 || ('s' <= (c) && (c) <= 'z'))
6372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6373 #endif
6375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6377 main ()
6379 int i;
6380 for (i = 0; i < 256; i++)
6381 if (XOR (islower (i), ISLOWER (i))
6382 || toupper (i) != TOUPPER (i))
6383 return 2;
6384 return 0;
6386 _ACEOF
6387 if ac_fn_c_try_run "$LINENO"; then :
6389 else
6390 ac_cv_header_stdc=no
6392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6393 conftest.$ac_objext conftest.beam conftest.$ac_ext
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6399 $as_echo "$ac_cv_header_stdc" >&6; }
6400 if test $ac_cv_header_stdc = yes; then
6402 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6406 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6408 inttypes.h stdint.h unistd.h
6409 do :
6410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6411 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6413 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6414 cat >>confdefs.h <<_ACEOF
6415 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6416 _ACEOF
6420 done
6423 for ac_header in \
6424 AL/al.h \
6425 ApplicationServices/ApplicationServices.h \
6426 AudioToolbox/AudioConverter.h \
6427 AudioUnit/AudioUnit.h \
6428 AudioUnit/AudioComponent.h \
6429 CL/cl.h \
6430 Carbon/Carbon.h \
6431 CoreAudio/CoreAudio.h \
6432 CoreServices/CoreServices.h \
6433 DiskArbitration/DiskArbitration.h \
6434 IOKit/IOKitLib.h \
6435 IOKit/hid/IOHIDLib.h \
6436 OpenAL/al.h \
6437 OpenCL/opencl.h \
6438 QuickTime/ImageCompression.h \
6439 Security/Security.h \
6440 alias.h \
6441 alsa/asoundlib.h \
6442 arpa/inet.h \
6443 arpa/nameser.h \
6444 asm/types.h \
6445 asm/user.h \
6446 curses.h \
6447 direct.h \
6448 dirent.h \
6449 dlfcn.h \
6450 elf.h \
6451 float.h \
6452 fnmatch.h \
6453 fontconfig/fontconfig.h \
6454 getopt.h \
6455 gettext-po.h \
6456 grp.h \
6457 gsm.h \
6458 gsm/gsm.h \
6459 ieeefp.h \
6460 inet/mib2.h \
6461 io.h \
6462 kstat.h \
6463 lber.h \
6464 ldap.h \
6465 libproc.h \
6466 link.h \
6467 linux/cdrom.h \
6468 linux/compiler.h \
6469 linux/filter.h \
6470 linux/hdreg.h \
6471 linux/input.h \
6472 linux/ioctl.h \
6473 linux/joystick.h \
6474 linux/major.h \
6475 linux/param.h \
6476 linux/serial.h \
6477 linux/types.h \
6478 linux/ucdrom.h \
6479 lwp.h \
6480 mach-o/nlist.h \
6481 mach-o/loader.h \
6482 mach/mach.h \
6483 mach/machine.h \
6484 machine/cpu.h \
6485 machine/limits.h \
6486 machine/sysarch.h \
6487 mntent.h \
6488 ncurses.h \
6489 netdb.h \
6490 netinet/in.h \
6491 netinet/in_systm.h \
6492 netinet/tcp.h \
6493 netinet/tcp_fsm.h \
6494 poll.h \
6495 port.h \
6496 process.h \
6497 pthread.h \
6498 pwd.h \
6499 sched.h \
6500 scsi/scsi.h \
6501 scsi/scsi_ioctl.h \
6502 scsi/sg.h \
6503 stdbool.h \
6504 stdint.h \
6505 stropts.h \
6506 sys/asoundlib.h \
6507 sys/attr.h \
6508 sys/cdio.h \
6509 sys/elf32.h \
6510 sys/epoll.h \
6511 sys/event.h \
6512 sys/exec_elf.h \
6513 sys/filio.h \
6514 sys/inotify.h \
6515 sys/ioctl.h \
6516 sys/ipc.h \
6517 sys/limits.h \
6518 sys/link.h \
6519 sys/mman.h \
6520 sys/modem.h \
6521 sys/msg.h \
6522 sys/mtio.h \
6523 sys/param.h \
6524 sys/poll.h \
6525 sys/prctl.h \
6526 sys/protosw.h \
6527 sys/ptrace.h \
6528 sys/queue.h \
6529 sys/resource.h \
6530 sys/scsiio.h \
6531 sys/shm.h \
6532 sys/signal.h \
6533 sys/socket.h \
6534 sys/socketvar.h \
6535 sys/sockio.h \
6536 sys/statvfs.h \
6537 sys/strtio.h \
6538 sys/syscall.h \
6539 sys/tihdr.h \
6540 sys/time.h \
6541 sys/timeout.h \
6542 sys/times.h \
6543 sys/uio.h \
6544 sys/user.h \
6545 sys/utsname.h \
6546 sys/vm86.h \
6547 sys/wait.h \
6548 syscall.h \
6549 termios.h \
6550 unistd.h \
6551 utime.h \
6552 valgrind/memcheck.h \
6553 valgrind/valgrind.h \
6554 zlib.h
6556 do :
6557 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6558 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6559 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6560 cat >>confdefs.h <<_ACEOF
6561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6562 _ACEOF
6566 done
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6569 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6570 if ${ac_cv_header_stat_broken+:} false; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #include <sys/types.h>
6576 #include <sys/stat.h>
6578 #if defined S_ISBLK && defined S_IFDIR
6579 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6580 #endif
6582 #if defined S_ISBLK && defined S_IFCHR
6583 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6584 #endif
6586 #if defined S_ISLNK && defined S_IFREG
6587 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6588 #endif
6590 #if defined S_ISSOCK && defined S_IFREG
6591 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6592 #endif
6594 _ACEOF
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596 ac_cv_header_stat_broken=no
6597 else
6598 ac_cv_header_stat_broken=yes
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6603 $as_echo "$ac_cv_header_stat_broken" >&6; }
6604 if test $ac_cv_header_stat_broken = yes; then
6606 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6612 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6613 do :
6614 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6615 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6616 #ifdef HAVE_SYS_PARAM_H
6617 # include <sys/param.h>
6618 #endif
6620 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6621 cat >>confdefs.h <<_ACEOF
6622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6623 _ACEOF
6627 done
6630 for ac_header in \
6631 netinet/ip.h \
6632 net/if.h \
6633 net/if_arp.h \
6634 net/if_dl.h \
6635 net/if_types.h \
6636 net/route.h \
6637 netinet/if_ether.h \
6638 netinet/if_inarp.h \
6639 netinet/in_pcb.h \
6640 netinet/ip_icmp.h \
6641 netinet/ip_var.h \
6642 netinet/udp.h \
6643 netipx/ipx.h \
6644 sys/un.h \
6646 do :
6647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6648 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6649 #ifdef HAVE_SYS_SOCKET_H
6650 # include <sys/socket.h>
6651 #endif
6652 #ifdef HAVE_SYS_SOCKETVAR_H
6653 # include <sys/socketvar.h>
6654 #endif
6655 #ifdef HAVE_NET_ROUTE_H
6656 # include <net/route.h>
6657 #endif
6658 #ifdef HAVE_NETINET_IN_H
6659 # include <netinet/in.h>
6660 #endif
6661 #ifdef HAVE_NETINET_IN_SYSTM_H
6662 # include <netinet/in_systm.h>
6663 #endif
6664 #ifdef HAVE_NET_IF_H
6665 # include <net/if.h>
6666 #endif
6667 #ifdef HAVE_NETINET_IP_H
6668 # include <netinet/ip.h>
6669 #endif
6671 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6672 cat >>confdefs.h <<_ACEOF
6673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6674 _ACEOF
6678 done
6681 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6682 do :
6683 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6684 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6685 #ifdef HAVE_ALIAS_H
6686 # include <alias.h>
6687 #endif
6688 #ifdef HAVE_SYS_SOCKET_H
6689 # include <sys/socket.h>
6690 #endif
6691 #ifdef HAVE_SYS_SOCKETVAR_H
6692 # include <sys/socketvar.h>
6693 #endif
6694 #ifdef HAVE_SYS_TIMEOUT_H
6695 # include <sys/timeout.h>
6696 #endif
6697 #ifdef HAVE_NETINET_IN_H
6698 # include <netinet/in.h>
6699 #endif
6700 #ifdef HAVE_NETINET_IN_SYSTM_H
6701 # include <netinet/in_systm.h>
6702 #endif
6703 #ifdef HAVE_NETINET_IP_H
6704 # include <netinet/ip.h>
6705 #endif
6706 #ifdef HAVE_NETINET_IP_VAR_H
6707 # include <netinet/ip_var.h>
6708 #endif
6709 #ifdef HAVE_NETINET_IP_ICMP_H
6710 # include <netinet/ip_icmp.h>
6711 #endif
6712 #ifdef HAVE_NETINET_UDP_H
6713 # include <netinet/udp.h>
6714 #endif
6715 #ifdef HAVE_NETINET_TCP_H
6716 # include <netinet/tcp.h>
6717 #endif
6718 #ifdef HAVE_NETINET_TCP_TIMER_H
6719 #include <netinet/tcp_timer.h>
6720 #endif
6722 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6723 cat >>confdefs.h <<_ACEOF
6724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6725 _ACEOF
6729 done
6732 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6733 do :
6734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6735 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6736 #ifdef HAVE_ASM_TYPES_H
6737 # include <asm/types.h>
6738 #endif
6739 #ifdef HAVE_SYS_SOCKET_H
6740 # include <sys/socket.h>
6741 #endif
6742 #ifdef HAVE_LINUX_TYPES_H
6743 # include <linux/types.h>
6744 #endif
6746 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6747 cat >>confdefs.h <<_ACEOF
6748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6749 _ACEOF
6753 done
6756 for ac_header in mach-o/dyld_images.h
6757 do :
6758 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6759 # include <stdbool.h>
6760 #endif
6761 #ifdef HAVE_STDINT_H
6762 # include <stdint.h>
6763 #endif
6765 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6766 cat >>confdefs.h <<_ACEOF
6767 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6768 _ACEOF
6772 done
6775 for ac_header in resolv.h
6776 do :
6777 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6778 #ifdef HAVE_SYS_SOCKET_H
6779 # include <sys/socket.h>
6780 #endif
6781 #ifdef HAVE_NETINET_IN_H
6782 # include <netinet/in.h>
6783 #endif
6784 #ifdef HAVE_ARPA_NAMESER_H
6785 # include <arpa/nameser.h>
6786 #endif
6788 if test "x$ac_cv_header_resolv_h" = xyes; then :
6789 cat >>confdefs.h <<_ACEOF
6790 #define HAVE_RESOLV_H 1
6791 _ACEOF
6795 done
6798 for ac_header in ifaddrs.h
6799 do :
6800 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6802 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6803 cat >>confdefs.h <<_ACEOF
6804 #define HAVE_IFADDRS_H 1
6805 _ACEOF
6809 done
6812 for ac_header in ucontext.h
6813 do :
6814 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6816 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6817 cat >>confdefs.h <<_ACEOF
6818 #define HAVE_UCONTEXT_H 1
6819 _ACEOF
6823 done
6826 for ac_header in sys/thr.h
6827 do :
6828 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6829 #ifdef HAVE_UCONTEXT_H
6830 #include <ucontext.h>
6831 #endif
6833 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6834 cat >>confdefs.h <<_ACEOF
6835 #define HAVE_SYS_THR_H 1
6836 _ACEOF
6840 done
6843 for ac_header in pthread_np.h
6844 do :
6845 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6846 #include <pthread.h>
6847 #endif
6849 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6850 cat >>confdefs.h <<_ACEOF
6851 #define HAVE_PTHREAD_NP_H 1
6852 _ACEOF
6856 done
6859 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6860 do :
6861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6862 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6863 #include <sys/time.h>
6864 #endif
6865 #include <sys/types.h>
6866 #ifdef HAVE_ASM_TYPES_H
6867 #include <asm/types.h>
6868 #endif
6870 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6871 cat >>confdefs.h <<_ACEOF
6872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6873 _ACEOF
6877 done
6880 for ac_header in libprocstat.h
6881 do :
6882 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
6883 #include <sys/param.h>
6884 #endif
6885 #ifdef HAVE_SYS_QUEUE_H
6886 #include <sys/queue.h>
6887 #endif
6888 #ifdef HAVE_SYS_SOCKET_H
6889 #include <sys/socket.h>
6890 #endif
6892 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
6893 cat >>confdefs.h <<_ACEOF
6894 #define HAVE_LIBPROCSTAT_H 1
6895 _ACEOF
6899 done
6903 dlldir="\${libdir}/wine"
6905 DLLPREFIX=""
6907 DLLFLAGS="-D_REENTRANT"
6909 LDRPATH_INSTALL=""
6911 LDRPATH_LOCAL=""
6913 LIBEXT="so"
6914 DLLEXT=".so"
6915 IMPLIBEXT="def"
6916 STATIC_IMPLIBEXT="def.a"
6917 # Extract the first word of "ldd", so it can be a program name with args.
6918 set dummy ldd; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if ${ac_cv_path_LDD+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 case $LDD in
6925 [\\/]* | ?:[\\/]*)
6926 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 as_dummy="/sbin:/usr/sbin:$PATH"
6931 for as_dir in $as_dummy
6933 IFS=$as_save_IFS
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6937 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 break 2
6941 done
6942 done
6943 IFS=$as_save_IFS
6945 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6947 esac
6949 LDD=$ac_cv_path_LDD
6950 if test -n "$LDD"; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6952 $as_echo "$LDD" >&6; }
6953 else
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6959 if test -n "$ac_tool_prefix"; then
6960 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6961 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if ${ac_cv_prog_READELF+:} false; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 if test -n "$READELF"; then
6968 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6981 done
6982 done
6983 IFS=$as_save_IFS
6987 READELF=$ac_cv_prog_READELF
6988 if test -n "$READELF"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6990 $as_echo "$READELF" >&6; }
6991 else
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6998 if test -z "$ac_cv_prog_READELF"; then
6999 ac_ct_READELF=$READELF
7000 # Extract the first word of "readelf", so it can be a program name with args.
7001 set dummy readelf; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 if test -n "$ac_ct_READELF"; then
7008 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017 ac_cv_prog_ac_ct_READELF="readelf"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7021 done
7022 done
7023 IFS=$as_save_IFS
7027 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
7028 if test -n "$ac_ct_READELF"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
7030 $as_echo "$ac_ct_READELF" >&6; }
7031 else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7036 if test "x$ac_ct_READELF" = x; then
7037 READELF="true"
7038 else
7039 case $cross_compiling:$ac_tool_warned in
7040 yes:)
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7043 ac_tool_warned=yes ;;
7044 esac
7045 READELF=$ac_ct_READELF
7047 else
7048 READELF="$ac_cv_prog_READELF"
7051 wine_rules_file=conf$$rules.make
7052 rm -f $wine_rules_file
7053 ALL_POT_FILES=""
7054 GITIGNORE="# Automatically generated by configure; DO NOT EDIT!!"
7055 ALL_TEST_RESOURCES=""
7058 wine_fn_append_file ()
7060 as_fn_append $1 " \\$as_nl $2"
7063 wine_fn_ignore_file ()
7065 case "$1" in
7066 */*) as_fn_append GITIGNORE "$as_nl$1" ;;
7067 \**) as_fn_append GITIGNORE "$as_nl$1" ;;
7068 *) as_fn_append GITIGNORE "$as_nl/$1" ;;
7069 esac
7072 wine_fn_append_rule ()
7074 $as_echo "$1" >>$wine_rules_file
7077 wine_fn_has_flag ()
7079 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
7082 wine_fn_depend_rules ()
7084 ac_alldeps=$1
7085 ac_makedep="\$(MAKEDEP)"
7086 ac_input=Make.vars.in:$ac_dir/Makefile.in
7087 case $1 in
7088 *.in)
7089 ac_input=$ac_input:$1
7090 test "$srcdir" = . || ac_alldeps="$srcdir/$ac_alldeps" ;;
7092 ac_makedep="$1 $ac_makedep" ;;
7093 esac
7095 wine_fn_append_rule \
7096 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in $srcdir/Make.vars.in config.status $ac_alldeps \$(MAKEDEP)
7097 @./config.status --file $ac_dir/Makefile:$ac_input && \$(MAKEDEP) -M $ac_dir
7098 depend: $ac_dir/depend
7099 .PHONY: $ac_dir/depend
7100 $ac_dir/depend: $ac_makedep dummy
7101 @./config.status --file $ac_dir/Makefile:$ac_input && \$(MAKEDEP) -M $ac_dir"
7104 wine_fn_pot_rules ()
7106 test "x$with_gettextpo" = xyes || return
7108 if wine_fn_has_flag mc
7109 then
7110 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
7111 wine_fn_append_rule \
7112 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
7113 @cd $ac_dir && \$(MAKE) msg.pot
7114 $ac_dir/msg.pot: tools/wmc include"
7116 if wine_fn_has_flag po
7117 then
7118 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
7119 wine_fn_append_rule \
7120 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
7121 @cd $ac_dir && \$(MAKE) rsrc.pot
7122 $ac_dir/rsrc.pot: tools/wrc include"
7126 wine_fn_all_rules ()
7128 ac_rules=$1
7130 wine_fn_depend_rules ${ac_rules:-Make.rules}
7131 wine_fn_append_rule \
7132 "all: $ac_dir
7133 .PHONY: $ac_dir
7134 $ac_dir: $ac_dir/Makefile dummy
7135 @cd $ac_dir && \$(MAKE)"
7138 wine_fn_install_rules ()
7140 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
7142 wine_fn_append_rule \
7143 ".PHONY: $ac_dir/install $ac_dir/uninstall
7144 $ac_dir/install:: $ac_dir
7145 @cd $ac_dir && \$(MAKE) install
7146 $ac_dir/uninstall:: $ac_dir/Makefile
7147 @cd $ac_dir && \$(MAKE) uninstall
7148 install:: $ac_dir/install
7149 __uninstall__: $ac_dir/uninstall"
7151 if wine_fn_has_flag install-lib
7152 then
7153 wine_fn_append_rule \
7154 ".PHONY: $ac_dir/install-lib
7155 $ac_dir/install-lib:: $ac_dir
7156 @cd $ac_dir && \$(MAKE) install-lib
7157 install-lib:: $ac_dir/install-lib"
7160 if wine_fn_has_flag install-dev
7161 then
7162 wine_fn_append_rule \
7163 ".PHONY: $ac_dir/install-dev
7164 $ac_dir/install-dev:: $ac_dir
7165 @cd $ac_dir && \$(MAKE) install-dev
7166 install-dev:: $ac_dir/install-dev"
7170 wine_fn_clean_rules ()
7172 ac_clean=$@
7173 ac_extraclean="$ac_dir/Makefile"
7174 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7176 if wine_fn_has_flag clean
7177 then
7178 wine_fn_append_rule \
7179 "__clean__: $ac_dir/clean
7180 .PHONY: $ac_dir/clean
7181 $ac_dir/clean: $ac_dir/Makefile
7182 @cd $ac_dir && \$(MAKE) clean
7183 \$(RM) $ac_extraclean"
7184 else
7185 wine_fn_append_rule \
7186 "__clean__: $ac_dir/clean
7187 .PHONY: $ac_dir/clean
7188 $ac_dir/clean: dummy
7189 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7193 wine_fn_disabled_rules ()
7195 ac_clean=$@
7196 ac_extraclean="$ac_dir/Makefile"
7197 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7199 wine_fn_append_rule \
7200 "__clean__: $ac_dir/clean
7201 .PHONY: $ac_dir/clean
7202 $ac_dir/clean: dummy
7203 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7206 wine_fn_config_makefile ()
7208 ac_dir=$1
7209 ac_enable=$2
7210 ac_flags=$3
7212 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7213 wine_fn_disabled_rules; return
7215 wine_fn_all_rules
7216 wine_fn_install_rules
7217 wine_fn_clean_rules
7220 wine_fn_config_lib ()
7222 ac_name=$1
7223 ac_flags=$2
7224 ac_dir=dlls/$ac_name
7225 ac_deps="include"
7227 if test "x$enable_tools" = xno; then :
7229 else
7230 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7232 wine_fn_all_rules Make.rules.in
7233 wine_fn_clean_rules
7235 wine_fn_append_rule \
7236 ".PHONY: $ac_dir/install $ac_dir/uninstall
7237 $ac_dir/install:: $ac_dir
7238 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7239 $ac_dir/uninstall::
7240 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7241 install install-dev:: $ac_dir/install
7242 __uninstall__: $ac_dir/uninstall
7243 __builddeps__: $ac_dir
7244 $ac_dir: $ac_deps"
7247 wine_fn_config_dll ()
7249 ac_name=$1
7250 ac_dir=dlls/$ac_name
7251 ac_enable=$2
7252 ac_flags=$3
7253 ac_implib=${4:-$ac_name}
7254 ac_file=$ac_dir/lib$ac_implib
7255 ac_dll=$ac_name
7256 ac_deps="include"
7257 ac_implibflags=""
7259 if test "x$enable_tools" = xno; then :
7261 else
7262 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7264 case $ac_name in
7265 *16) ac_implibflags=" -m16" ;;
7266 *.*) ;;
7267 *) ac_dll=$ac_dll.dll ;;
7268 esac
7270 ac_clean=
7271 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
7272 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7273 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7274 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
7276 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7277 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
7278 then
7279 wine_fn_depend_rules Make.rules.in
7280 wine_fn_clean_rules $ac_clean
7281 else
7282 wine_fn_disabled_rules $ac_clean
7283 return
7285 else
7286 wine_fn_all_rules Make.rules.in
7287 wine_fn_clean_rules $ac_clean
7288 wine_fn_append_rule \
7289 "$ac_dir: __builddeps__
7290 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
7291 @cd $ac_dir && \$(MAKE) \$@
7292 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
7293 install install-lib:: $ac_dir/install-lib
7294 __uninstall__: $ac_dir/uninstall"
7295 if test -n "$DLLEXT"
7296 then
7297 wine_fn_append_rule \
7298 "$ac_dir/install-lib:: $ac_dir
7299 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
7300 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
7301 $ac_dir/uninstall::
7302 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
7303 else
7304 wine_fn_append_rule \
7305 "$ac_dir/install-lib:: $ac_dir
7306 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
7307 $ac_dir/uninstall::
7308 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
7311 wine_fn_pot_rules
7314 if wine_fn_has_flag staticimplib
7315 then
7316 wine_fn_append_rule \
7317 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
7318 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
7319 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7320 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7321 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
7322 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
7323 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7324 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7325 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7326 $ac_dir/uninstall::
7327 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7328 install install-dev:: $ac_dir/install-dev
7329 __uninstall__: $ac_dir/uninstall"
7331 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
7332 then
7333 wine_fn_append_rule \
7334 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT __builddeps__
7335 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
7336 $ac_dir/uninstall::
7337 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
7340 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7341 then
7342 wine_fn_append_rule \
7343 "__builddeps__: $ac_file.cross.a
7344 $ac_file.cross.a: $ac_dir/Makefile dummy
7345 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
7348 elif wine_fn_has_flag implib
7349 then
7350 wine_fn_append_rule \
7351 "__builddeps__: $ac_file.$IMPLIBEXT
7352 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7353 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7354 $ac_file.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7355 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7356 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7357 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7358 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7359 $ac_dir/uninstall::
7360 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7361 install install-dev:: $ac_dir/install-dev
7362 __uninstall__: $ac_dir/uninstall"
7363 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7364 then
7365 wine_fn_append_rule \
7366 "__builddeps__: $ac_file.cross.a
7367 $ac_file.cross.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7368 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
7371 if test "$ac_name" != "$ac_implib"
7372 then
7373 wine_fn_append_rule \
7374 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
7375 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
7376 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
7377 clean::
7378 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
7379 wine_fn_ignore_file "dlls/lib$ac_implib.$IMPLIBEXT"
7380 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7381 then
7382 wine_fn_append_rule \
7383 "__builddeps__: dlls/lib$ac_implib.cross.a
7384 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
7385 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
7386 clean::
7387 \$(RM) dlls/lib$ac_implib.cross.a"
7388 wine_fn_ignore_file "dlls/lib$ac_implib.cross.a"
7394 wine_fn_config_program ()
7396 ac_name=$1
7397 ac_dir=programs/$ac_name
7398 ac_enable=$2
7399 ac_flags=$3
7400 ac_program=$ac_name
7402 case $ac_name in
7403 *.*) ;;
7404 *) ac_program=$ac_program.exe ;;
7405 esac
7407 ac_clean=
7408 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7409 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7410 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
7411 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
7413 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7414 wine_fn_disabled_rules $ac_clean; return
7417 wine_fn_all_rules Make.rules.in
7418 wine_fn_clean_rules $ac_clean
7419 wine_fn_append_rule "$ac_dir: __builddeps__"
7420 wine_fn_pot_rules
7422 wine_fn_has_flag install || return
7423 wine_fn_append_rule \
7424 ".PHONY: $ac_dir/install $ac_dir/uninstall
7425 install install-lib:: $ac_dir/install
7426 __uninstall__: $ac_dir/uninstall"
7428 if test -n "$DLLEXT"
7429 then
7430 wine_fn_append_rule \
7431 "$ac_dir/install:: $ac_dir
7432 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
7433 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
7434 $ac_dir/uninstall::
7435 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
7437 if test -z "$with_wine64" && wine_fn_has_flag installbin
7438 then
7439 wine_fn_append_rule \
7440 "$ac_dir/install:: __tooldeps__
7441 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
7442 $ac_dir/uninstall::
7443 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
7445 else
7446 wine_fn_append_rule \
7447 "$ac_dir/install:: $ac_dir
7448 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
7449 $ac_dir/uninstall::
7450 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
7453 if test -z "$with_wine64" && wine_fn_has_flag manpage
7454 then
7455 wine_fn_append_rule \
7456 "$ac_dir/install:: $ac_dir
7457 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
7458 $ac_dir/uninstall::
7459 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
7463 wine_fn_config_test ()
7465 ac_dir=$1
7466 ac_name=$2
7467 ac_flags=$3
7469 ac_clean=
7470 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
7471 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
7472 ac_clean="$ac_clean $ac_dir/testlist.c"
7474 if test "x$enable_tests" = xno; then :
7475 wine_fn_disabled_rules $ac_clean; return
7478 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
7479 wine_fn_all_rules Make.rules.in
7480 wine_fn_clean_rules $ac_clean
7482 wine_fn_append_rule \
7483 "$ac_dir: programs/winetest/Makefile __builddeps__
7484 programs/winetest: $ac_dir
7485 check test: $ac_dir/test
7486 .PHONY: $ac_dir/test
7487 $ac_dir/test: dummy
7488 @cd $ac_dir && \$(MAKE) test
7489 testclean::
7490 \$(RM) $ac_dir/*.ok"
7492 if test -n "$CROSSTARGET"
7493 then
7494 wine_fn_append_rule \
7495 "crosstest: $ac_dir/crosstest
7496 .PHONY: $ac_dir/crosstest
7497 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
7498 @cd $ac_dir && \$(MAKE) crosstest"
7502 wine_fn_config_tool ()
7504 ac_dir=$1
7505 ac_flags=$2
7506 if test "x$enable_tools" = xno; then :
7507 return
7510 wine_fn_all_rules
7511 wine_fn_install_rules
7512 wine_fn_clean_rules
7514 wine_fn_append_rule "__tooldeps__: $ac_dir"
7515 wine_fn_append_rule "$ac_dir: libs/port"
7516 case $ac_dir in
7517 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
7518 esac
7521 wine_fn_config_makerules ()
7523 ac_rules=$1
7524 ac_deps=$2
7525 wine_fn_append_rule \
7526 "$ac_rules: $srcdir/$ac_rules.in $ac_deps config.status
7527 @./config.status $ac_rules
7528 distclean::
7529 \$(RM) $ac_rules"
7530 wine_fn_ignore_file $ac_rules
7533 wine_fn_config_symlink ()
7535 ac_linkdir=
7536 if test "x$1" = "x-d"
7537 then
7538 ac_linkdir=$2
7539 shift; shift
7541 ac_links=$@
7542 wine_fn_append_rule \
7543 "$ac_links:
7544 @./config.status \$@
7545 distclean::
7546 \$(RM) $ac_links"
7547 for f in $ac_links; do wine_fn_ignore_file $f; done
7548 test -n "$ac_linkdir" || return
7549 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
7552 wine_binary="wine"
7553 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7554 loader_programs="$wine_binary wine-installed"
7555 libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'`
7557 LOADER_RULES="
7558 install install-lib:: wine-installed
7559 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7561 uninstall::
7562 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7566 case $host_os in
7567 cygwin*|mingw32*)
7568 if test -n "$ac_tool_prefix"; then
7569 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7570 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if ${ac_cv_prog_DLLTOOL+:} false; then :
7574 $as_echo_n "(cached) " >&6
7575 else
7576 if test -n "$DLLTOOL"; then
7577 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7578 else
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7582 IFS=$as_save_IFS
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 break 2
7590 done
7591 done
7592 IFS=$as_save_IFS
7596 DLLTOOL=$ac_cv_prog_DLLTOOL
7597 if test -n "$DLLTOOL"; then
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7599 $as_echo "$DLLTOOL" >&6; }
7600 else
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7607 if test -z "$ac_cv_prog_DLLTOOL"; then
7608 ac_ct_DLLTOOL=$DLLTOOL
7609 # Extract the first word of "dlltool", so it can be a program name with args.
7610 set dummy dlltool; ac_word=$2
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 $as_echo_n "checking for $ac_word... " >&6; }
7613 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7614 $as_echo_n "(cached) " >&6
7615 else
7616 if test -n "$ac_ct_DLLTOOL"; then
7617 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7618 else
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 for as_dir in $PATH
7622 IFS=$as_save_IFS
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 break 2
7630 done
7631 done
7632 IFS=$as_save_IFS
7636 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7637 if test -n "$ac_ct_DLLTOOL"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7639 $as_echo "$ac_ct_DLLTOOL" >&6; }
7640 else
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7645 if test "x$ac_ct_DLLTOOL" = x; then
7646 DLLTOOL="false"
7647 else
7648 case $cross_compiling:$ac_tool_warned in
7649 yes:)
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7652 ac_tool_warned=yes ;;
7653 esac
7654 DLLTOOL=$ac_ct_DLLTOOL
7656 else
7657 DLLTOOL="$ac_cv_prog_DLLTOOL"
7660 LIBEXT="dll"
7661 DLLEXT=""
7662 IMPLIBEXT="a"
7663 STATIC_IMPLIBEXT="a"
7664 enable_iphlpapi=${enable_iphlpapi:-no}
7665 enable_kernel32=${enable_kernel32:-no}
7666 enable_msvcrt=${enable_msvcrt:-no}
7667 enable_ntdll=${enable_ntdll:-no}
7668 enable_ws2_32=${enable_ws2_32:-no}
7669 enable_loader=${enable_loader:-no}
7670 enable_server=${enable_server:-no}
7671 with_x=${with_x:-no}
7672 with_pthread=${with_pthread:-no}
7674 crtlibs=""
7675 case $host_os in
7676 mingw32*)
7677 crtlibs="-lmsvcrt"
7678 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7680 esac
7682 libwine_targets="libwine.dll libwine.a"
7683 LIBWINE_RULES="
7684 all: libwine.dll libwine.a
7686 libwine.a: \$(srcdir)/wine.def
7687 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7689 libwine.dll: \$(OBJS) \$(srcdir)/wine.def
7690 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7692 install install-lib:: libwine.dll
7693 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7695 install install-dev:: libwine.a
7696 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7698 uninstall::
7699 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7704 darwin*|macosx*)
7705 LIBEXT="dylib"
7706 DLLFLAGS="$DLLFLAGS -fPIC"
7707 LIBWINE_LDFLAGS="-multiply_defined suppress"
7708 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7709 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7710 COREFOUNDATIONLIB="-framework CoreFoundation"
7712 IOKITLIB="-framework IOKit -framework CoreFoundation"
7714 FORCEFEEDBACKLIB="-framework ForceFeedback -framework CoreFoundation"
7716 APPLICATIONSERVICESLIB="-framework ApplicationServices"
7718 CORESERVICESLIB="-framework CoreServices"
7720 APPKITLIB="-framework AppKit"
7722 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7723 case $host_os in
7724 darwin11*) LDEXECFLAGS="-Wl,-macosx_version_min,10.6 $LDEXECFLAGS" ;;
7725 esac
7726 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7727 then
7728 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
7731 if test "$ac_cv_header_Security_Security_h" = "yes"
7732 then
7733 SECURITYLIB="-framework Security -framework CoreFoundation"
7735 ac_save_LIBS="$LIBS"
7736 LIBS="$LIBS $SECURITYLIB"
7737 for ac_func in SSLCopyPeerCertificates
7738 do :
7739 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7740 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7741 cat >>confdefs.h <<_ACEOF
7742 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7743 _ACEOF
7746 done
7748 LIBS="$ac_save_LIBS"
7749 with_gnutls=${with_gnutls:-no}
7751 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7752 then
7753 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7754 then
7755 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7757 else
7758 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7761 ac_save_LIBS="$LIBS"
7762 LIBS="$LIBS $COREAUDIO"
7763 for ac_func in AUGraphAddNode
7764 do :
7765 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7766 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7767 cat >>confdefs.h <<_ACEOF
7768 #define HAVE_AUGRAPHADDNODE 1
7769 _ACEOF
7772 done
7774 LIBS="$ac_save_LIBS"
7776 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7777 then
7778 FRAMEWORK_OPENAL="-framework OpenAL"
7781 cat >>confdefs.h <<_ACEOF
7782 #define HAVE_OPENAL 1
7783 _ACEOF
7785 ac_cv_lib_openal=yes
7787 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7788 then
7789 LIBOPENCL="-framework OpenCL"
7791 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7793 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7794 then
7795 ac_save_LIBS="$LIBS"
7796 LIBS="$LIBS $IOKITLIB"
7797 for ac_func in IOHIDManagerCreate
7798 do :
7799 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7800 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7801 cat >>confdefs.h <<_ACEOF
7802 #define HAVE_IOHIDMANAGERCREATE 1
7803 _ACEOF
7806 done
7808 LIBS="$ac_save_LIBS"
7810 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7811 then
7812 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
7814 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
7815 else
7816 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
7818 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
7819 then
7820 CARBONLIB="-framework Carbon"
7824 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
7825 then
7826 ac_save_LIBS="$LIBS"
7827 LIBS="$LIBS $APPLICATIONSERVICESLIB"
7828 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
7829 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
7830 enable_winemac_drv=${enable_winemac_drv:-yes}
7833 LIBS="$ac_save_LIBS"
7836 if test "x$enable_win16" = "xyes"
7837 then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
7839 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
7840 if test "$cross_compiling" = yes; then :
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
7842 $as_echo "cross-compiling, assuming yes" >&6; }
7843 else
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7846 asm(".text\n"
7847 "bad:\tnop;nop\n"
7848 "good:\tnop;nop\n\t"
7849 ".globl _testfunc\n"
7850 "_testfunc:\tcallw good");
7851 extern void testfunc();
7853 main ()
7855 unsigned short *p = (unsigned short *)testfunc;
7856 return p[0] != 0xe866 || p[1] != 0xfffa
7858 return 0;
7860 _ACEOF
7861 if ac_fn_c_try_run "$LINENO"; then :
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7863 $as_echo "yes" >&6; }
7864 else
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7867 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
7869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7870 conftest.$ac_objext conftest.beam conftest.$ac_ext
7875 libwine_targets="libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib"
7876 LIBWINE_RULES="
7877 all: libwine.dylib
7879 libwine.$libwine_version.dylib: \$(OBJS)
7880 \$(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 \$@
7882 libwine.$libwine_soversion.dylib: libwine.$libwine_version.dylib
7883 \$(RM) \$@ && \$(LN_S) libwine.$libwine_version.dylib \$@
7885 libwine.dylib: libwine.$libwine_soversion.dylib
7886 \$(RM) \$@ && \$(LN_S) libwine.$libwine_soversion.dylib \$@
7888 install install-lib:: libwine.$libwine_version.dylib
7889 \$(INSTALL_PROGRAM) libwine.$libwine_version.dylib \$(DESTDIR)\$(libdir)/libwine.$libwine_version.dylib
7890 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.$libwine_soversion.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.$libwine_soversion.dylib
7892 install install-dev::
7893 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.dylib
7895 uninstall::
7896 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib
7900 as_fn_append LOADER_RULES "
7901 $wine_binary: main.o wine_info.plist
7902 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
7904 wine-installed: main.o wine_info.plist
7905 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
7909 linux-android*)
7910 DLLFLAGS="$DLLFLAGS -fPIC"
7911 DLLPREFIX="lib"
7912 LDEXECFLAGS=""
7913 dlldir="\${libdir}"
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7915 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7916 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 ac_wine_try_cflags_saved=$CFLAGS
7920 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7923 int main(int argc, char **argv) { return 0; }
7924 _ACEOF
7925 if ac_fn_c_try_link "$LINENO"; then :
7926 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7927 else
7928 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7930 rm -f core conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 CFLAGS=$ac_wine_try_cflags_saved
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7935 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7936 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7937 LDEXECFLAGS="-Wl,--export-dynamic"
7939 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7941 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7942 if eval \${$as_ac_var+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 ac_wine_try_cflags_saved=$CFLAGS
7946 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h. */
7949 int main(int argc, char **argv) { return 0; }
7950 _ACEOF
7951 if ac_fn_c_try_link "$LINENO"; then :
7952 eval "$as_ac_var=yes"
7953 else
7954 eval "$as_ac_var=no"
7956 rm -f core conftest.err conftest.$ac_objext \
7957 conftest$ac_exeext conftest.$ac_ext
7958 CFLAGS=$ac_wine_try_cflags_saved
7960 eval ac_res=\$$as_ac_var
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7962 $as_echo "$ac_res" >&6; }
7963 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7964 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7965 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7966 else
7967 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7969 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7970 if eval \${$as_ac_var+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 ac_wine_try_cflags_saved=$CFLAGS
7974 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7977 int main(int argc, char **argv) { return 0; }
7978 _ACEOF
7979 if ac_fn_c_try_link "$LINENO"; then :
7980 eval "$as_ac_var=yes"
7981 else
7982 eval "$as_ac_var=no"
7984 rm -f core conftest.err conftest.$ac_objext \
7985 conftest$ac_exeext conftest.$ac_ext
7986 CFLAGS=$ac_wine_try_cflags_saved
7988 eval ac_res=\$$as_ac_var
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7990 $as_echo "$ac_res" >&6; }
7991 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7992 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7993 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7998 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7999 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8002 ac_wine_try_cflags_saved=$CFLAGS
8003 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 int main(int argc, char **argv) { return 0; }
8007 _ACEOF
8008 if ac_fn_c_try_link "$LINENO"; then :
8009 ac_cv_cflags__Wl___enable_new_dtags=yes
8010 else
8011 ac_cv_cflags__Wl___enable_new_dtags=no
8013 rm -f core conftest.err conftest.$ac_objext \
8014 conftest$ac_exeext conftest.$ac_ext
8015 CFLAGS=$ac_wine_try_cflags_saved
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8018 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8019 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
8020 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8023 case $host_cpu in
8024 *i[3456789]86* | x86_64)
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8026 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8027 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8028 $as_echo_n "(cached) " >&6
8029 else
8030 ac_wine_try_cflags_saved=$CFLAGS
8031 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8034 int main(int argc, char **argv) { return 0; }
8035 _ACEOF
8036 if ac_fn_c_try_link "$LINENO"; then :
8037 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8038 else
8039 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8041 rm -f core conftest.err conftest.$ac_objext \
8042 conftest$ac_exeext conftest.$ac_ext
8043 CFLAGS=$ac_wine_try_cflags_saved
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8046 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8047 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
8048 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
8051 esac
8053 libwine_targets="libwine.so"
8054 LIBWINE_RULES="
8055 all: libwine.so
8057 libwine.so: \$(OBJS)
8058 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8060 install install-lib:: libwine.so
8061 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
8063 uninstall::
8064 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
8068 as_fn_append LOADER_RULES "
8069 $wine_binary: main.o
8070 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8072 wine-installed: main.o
8073 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8078 DLLFLAGS="$DLLFLAGS -fPIC"
8079 LDEXECFLAGS=""
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
8081 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
8082 if ${ac_cv_c_dll_gnuelf+:} false; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 ac_wine_try_cflags_saved=$CFLAGS
8086 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8089 void myfunc() {}
8090 _ACEOF
8091 if ac_fn_c_try_link "$LINENO"; then :
8092 ac_cv_c_dll_gnuelf="yes"
8093 else
8094 ac_cv_c_dll_gnuelf="no"
8096 rm -f core conftest.err conftest.$ac_objext \
8097 conftest$ac_exeext conftest.$ac_ext
8098 CFLAGS=$ac_wine_try_cflags_saved
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
8101 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
8102 if test "$ac_cv_c_dll_gnuelf" = "yes"
8103 then
8104 LDSHARED="\$(CC) -shared"
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8106 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
8107 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 ac_wine_try_cflags_saved=$CFLAGS
8111 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 int main(int argc, char **argv) { return 0; }
8115 _ACEOF
8116 if ac_fn_c_try_link "$LINENO"; then :
8117 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8118 else
8119 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8121 rm -f core conftest.err conftest.$ac_objext \
8122 conftest$ac_exeext conftest.$ac_ext
8123 CFLAGS=$ac_wine_try_cflags_saved
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8126 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8127 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
8128 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.$libwine_soversion"
8129 else
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8131 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
8132 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 ac_wine_try_cflags_saved=$CFLAGS
8136 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
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__h_confest_so_1=yes
8143 else
8144 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=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__h_confest_so_1" >&5
8151 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8152 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
8153 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.$libwine_soversion"
8157 echo '{ global: *; };' >conftest.map
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8159 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
8160 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
8161 $as_echo_n "(cached) " >&6
8162 else
8163 ac_wine_try_cflags_saved=$CFLAGS
8164 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8167 int main(int argc, char **argv) { return 0; }
8168 _ACEOF
8169 if ac_fn_c_try_link "$LINENO"; then :
8170 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8171 else
8172 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8174 rm -f core conftest.err conftest.$ac_objext \
8175 conftest$ac_exeext conftest.$ac_ext
8176 CFLAGS=$ac_wine_try_cflags_saved
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8179 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8180 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
8181 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
8183 rm -f conftest.map
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8186 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8187 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8188 $as_echo_n "(cached) " >&6
8189 else
8190 ac_wine_try_cflags_saved=$CFLAGS
8191 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 int main(int argc, char **argv) { return 0; }
8195 _ACEOF
8196 if ac_fn_c_try_link "$LINENO"; then :
8197 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8198 else
8199 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8201 rm -f core conftest.err conftest.$ac_objext \
8202 conftest$ac_exeext conftest.$ac_ext
8203 CFLAGS=$ac_wine_try_cflags_saved
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8206 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8207 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
8208 LDEXECFLAGS="-Wl,--export-dynamic"
8211 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8213 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$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,--rpath,\$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 test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8236 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8237 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8238 else
8239 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8241 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8242 if eval \${$as_ac_var+:} false; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 ac_wine_try_cflags_saved=$CFLAGS
8246 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8249 int main(int argc, char **argv) { return 0; }
8250 _ACEOF
8251 if ac_fn_c_try_link "$LINENO"; then :
8252 eval "$as_ac_var=yes"
8253 else
8254 eval "$as_ac_var=no"
8256 rm -f core conftest.err conftest.$ac_objext \
8257 conftest$ac_exeext conftest.$ac_ext
8258 CFLAGS=$ac_wine_try_cflags_saved
8260 eval ac_res=\$$as_ac_var
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8262 $as_echo "$ac_res" >&6; }
8263 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
8264 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8265 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8270 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8271 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 ac_wine_try_cflags_saved=$CFLAGS
8275 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
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___enable_new_dtags=yes
8282 else
8283 ac_cv_cflags__Wl___enable_new_dtags=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___enable_new_dtags" >&5
8290 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8291 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
8292 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8295 case $host_cpu in
8296 *i[3456789]86* | x86_64)
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8298 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8299 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 ac_wine_try_cflags_saved=$CFLAGS
8303 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 int main(int argc, char **argv) { return 0; }
8307 _ACEOF
8308 if ac_fn_c_try_link "$LINENO"; then :
8309 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8310 else
8311 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8313 rm -f core conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315 CFLAGS=$ac_wine_try_cflags_saved
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8318 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8319 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
8320 case $host_os in
8321 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
8322 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
8323 esac
8326 # Extract the first word of "prelink", so it can be a program name with args.
8327 set dummy prelink; ac_word=$2
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329 $as_echo_n "checking for $ac_word... " >&6; }
8330 if ${ac_cv_path_PRELINK+:} false; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 case $PRELINK in
8334 [\\/]* | ?:[\\/]*)
8335 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in /sbin /usr/sbin $PATH
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8345 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8349 done
8350 done
8351 IFS=$as_save_IFS
8353 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
8355 esac
8357 PRELINK=$ac_cv_path_PRELINK
8358 if test -n "$PRELINK"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
8360 $as_echo "$PRELINK" >&6; }
8361 else
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363 $as_echo "no" >&6; }
8367 if test "x$PRELINK" = xfalse
8368 then
8369 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
8372 esac
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
8376 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
8377 if ${ac_cv_c_dll_unixware+:} false; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 ac_wine_try_cflags_saved=$CFLAGS
8381 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8383 /* end confdefs.h. */
8384 void myfunc() {}
8385 _ACEOF
8386 if ac_fn_c_try_link "$LINENO"; then :
8387 ac_cv_c_dll_unixware="yes"
8388 else
8389 ac_cv_c_dll_unixware="no"
8391 rm -f core conftest.err conftest.$ac_objext \
8392 conftest$ac_exeext conftest.$ac_ext
8393 CFLAGS=$ac_wine_try_cflags_saved
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
8396 $as_echo "$ac_cv_c_dll_unixware" >&6; }
8397 if test "$ac_cv_c_dll_unixware" = "yes"
8398 then
8399 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.$libwine_soversion"
8402 libwine_targets="libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version"
8403 LIBWINE_RULES="
8404 all: libwine.so
8406 libwine.so.$libwine_version: \$(OBJS) \$(srcdir)/wine.map
8407 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8409 libwine.so.$libwine_soversion: libwine.so.$libwine_version
8410 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_version \$@
8412 libwine.so: libwine.so.$libwine_soversion
8413 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_soversion \$@
8415 install install-lib:: libwine.so.$libwine_version
8416 \$(INSTALL_PROGRAM) libwine.so.$libwine_version \$(DESTDIR)\$(libdir)/libwine.so.$libwine_version
8417 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.$libwine_soversion && \$(LN_S) libwine.so.$libwine_version libwine.so.$libwine_soversion
8419 install install-dev::
8420 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.$libwine_version libwine.so
8422 uninstall::
8423 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version
8427 as_fn_append LOADER_RULES "
8428 $wine_binary: main.o
8429 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8431 wine-installed: main.o
8432 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8435 esac
8437 as_fn_append LIBWINE_RULES "
8438 EXTRA_TARGETS = $libwine_targets
8441 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8442 enable_winemac_drv=${enable_winemac_drv:-no}
8444 CROSSTARGET=""
8446 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8447 then
8448 case "$host_cpu" in
8449 i[3456789]86*)
8450 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
8451 mingw32-gcc" ;;
8452 x86_64)
8453 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 " ;;
8455 ac_prefix_list="" ;;
8456 esac
8457 for ac_prog in $ac_prefix_list
8459 # Extract the first word of "$ac_prog", so it can be a program name with args.
8460 set dummy $ac_prog; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_prog_CROSSCC+:} false; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 if test -n "$CROSSCC"; then
8467 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8468 else
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 for as_dir in $PATH
8472 IFS=$as_save_IFS
8473 test -z "$as_dir" && as_dir=.
8474 for ac_exec_ext in '' $ac_executable_extensions; do
8475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8476 ac_cv_prog_CROSSCC="$ac_prog"
8477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 break 2
8480 done
8481 done
8482 IFS=$as_save_IFS
8486 CROSSCC=$ac_cv_prog_CROSSCC
8487 if test -n "$CROSSCC"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8489 $as_echo "$CROSSCC" >&6; }
8490 else
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8496 test -n "$CROSSCC" && break
8497 done
8498 test -n "$CROSSCC" || CROSSCC="false"
8500 if test "$CROSSCC" != "false"
8501 then
8502 ac_save_CC="$CC"
8503 CC="$CROSSCC"
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8505 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8510 main ()
8514 return 0;
8516 _ACEOF
8517 if ac_fn_c_try_compile "$LINENO"; then :
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8519 $as_echo "yes" >&6; }
8520 set x $CROSSCC
8521 shift
8522 while test $# -ge 1
8524 case "$1" in
8525 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8526 esac
8527 shift
8528 done
8529 else
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 CC="$ac_save_CC"
8539 if test "$ac_cv_header_pthread_h" = "yes"
8540 then
8541 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8542 if test "x$ac_cv_func_pthread_create" = xyes; then :
8544 else
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8546 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8547 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8548 $as_echo_n "(cached) " >&6
8549 else
8550 ac_check_lib_save_LIBS=$LIBS
8551 LIBS="-lpthread $LIBS"
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8555 /* Override any GCC internal prototype to avoid an error.
8556 Use char because int might match the return type of a GCC
8557 builtin and then its argument prototype would still apply. */
8558 #ifdef __cplusplus
8559 extern "C"
8560 #endif
8561 char pthread_create ();
8563 main ()
8565 return pthread_create ();
8567 return 0;
8569 _ACEOF
8570 if ac_fn_c_try_link "$LINENO"; then :
8571 ac_cv_lib_pthread_pthread_create=yes
8572 else
8573 ac_cv_lib_pthread_pthread_create=no
8575 rm -f core conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
8577 LIBS=$ac_check_lib_save_LIBS
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8580 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8581 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8582 LIBPTHREAD="-lpthread"
8589 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
8590 case "x$with_pthread" in
8591 xno) ;;
8592 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8593 Wine cannot support threads without libpthread.
8594 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8595 esac
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8600 $as_echo_n "checking for X... " >&6; }
8603 # Check whether --with-x was given.
8604 if test "${with_x+set}" = set; then :
8605 withval=$with_x;
8608 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8609 if test "x$with_x" = xno; then
8610 # The user explicitly disabled X.
8611 have_x=disabled
8612 else
8613 case $x_includes,$x_libraries in #(
8614 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8615 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618 # One or both of the vars are not set, and there is no cached value.
8619 ac_x_includes=no ac_x_libraries=no
8620 rm -f -r conftest.dir
8621 if mkdir conftest.dir; then
8622 cd conftest.dir
8623 cat >Imakefile <<'_ACEOF'
8624 incroot:
8625 @echo incroot='${INCROOT}'
8626 usrlibdir:
8627 @echo usrlibdir='${USRLIBDIR}'
8628 libdir:
8629 @echo libdir='${LIBDIR}'
8630 _ACEOF
8631 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8632 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8633 for ac_var in incroot usrlibdir libdir; do
8634 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8635 done
8636 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8637 for ac_extension in a so sl dylib la dll; do
8638 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8639 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8640 ac_im_usrlibdir=$ac_im_libdir; break
8642 done
8643 # Screen out bogus values from the imake configuration. They are
8644 # bogus both because they are the default anyway, and because
8645 # using them would break gcc on systems where it needs fixed includes.
8646 case $ac_im_incroot in
8647 /usr/include) ac_x_includes= ;;
8648 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8649 esac
8650 case $ac_im_usrlibdir in
8651 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8652 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8653 esac
8655 cd ..
8656 rm -f -r conftest.dir
8659 # Standard set of common directories for X headers.
8660 # Check X11 before X11Rn because it is often a symlink to the current release.
8661 ac_x_header_dirs='
8662 /usr/X11/include
8663 /usr/X11R7/include
8664 /usr/X11R6/include
8665 /usr/X11R5/include
8666 /usr/X11R4/include
8668 /usr/include/X11
8669 /usr/include/X11R7
8670 /usr/include/X11R6
8671 /usr/include/X11R5
8672 /usr/include/X11R4
8674 /usr/local/X11/include
8675 /usr/local/X11R7/include
8676 /usr/local/X11R6/include
8677 /usr/local/X11R5/include
8678 /usr/local/X11R4/include
8680 /usr/local/include/X11
8681 /usr/local/include/X11R7
8682 /usr/local/include/X11R6
8683 /usr/local/include/X11R5
8684 /usr/local/include/X11R4
8686 /usr/X386/include
8687 /usr/x386/include
8688 /usr/XFree86/include/X11
8690 /usr/include
8691 /usr/local/include
8692 /usr/unsupported/include
8693 /usr/athena/include
8694 /usr/local/x11r5/include
8695 /usr/lpp/Xamples/include
8697 /usr/openwin/include
8698 /usr/openwin/share/include'
8700 if test "$ac_x_includes" = no; then
8701 # Guess where to find include files, by looking for Xlib.h.
8702 # First, try using that file with no special directory specified.
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705 #include <X11/Xlib.h>
8706 _ACEOF
8707 if ac_fn_c_try_cpp "$LINENO"; then :
8708 # We can compile using X headers with no special include directory.
8709 ac_x_includes=
8710 else
8711 for ac_dir in $ac_x_header_dirs; do
8712 if test -r "$ac_dir/X11/Xlib.h"; then
8713 ac_x_includes=$ac_dir
8714 break
8716 done
8718 rm -f conftest.err conftest.i conftest.$ac_ext
8719 fi # $ac_x_includes = no
8721 if test "$ac_x_libraries" = no; then
8722 # Check for the libraries.
8723 # See if we find them without any special options.
8724 # Don't add to $LIBS permanently.
8725 ac_save_LIBS=$LIBS
8726 LIBS="-lX11 $LIBS"
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729 #include <X11/Xlib.h>
8731 main ()
8733 XrmInitialize ()
8735 return 0;
8737 _ACEOF
8738 if ac_fn_c_try_link "$LINENO"; then :
8739 LIBS=$ac_save_LIBS
8740 # We can link X programs with no special library path.
8741 ac_x_libraries=
8742 else
8743 LIBS=$ac_save_LIBS
8744 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8746 # Don't even attempt the hair of trying to link an X program!
8747 for ac_extension in a so sl dylib la dll; do
8748 if test -r "$ac_dir/libX11.$ac_extension"; then
8749 ac_x_libraries=$ac_dir
8750 break 2
8752 done
8753 done
8755 rm -f core conftest.err conftest.$ac_objext \
8756 conftest$ac_exeext conftest.$ac_ext
8757 fi # $ac_x_libraries = no
8759 case $ac_x_includes,$ac_x_libraries in #(
8760 no,* | *,no | *\'*)
8761 # Didn't find X, or a directory has "'" in its name.
8762 ac_cv_have_x="have_x=no";; #(
8764 # Record where we found X for the cache.
8765 ac_cv_have_x="have_x=yes\
8766 ac_x_includes='$ac_x_includes'\
8767 ac_x_libraries='$ac_x_libraries'"
8768 esac
8770 ;; #(
8771 *) have_x=yes;;
8772 esac
8773 eval "$ac_cv_have_x"
8774 fi # $with_x != no
8776 if test "$have_x" != yes; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8778 $as_echo "$have_x" >&6; }
8779 no_x=yes
8780 else
8781 # If each of the values was on the command line, it overrides each guess.
8782 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8783 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8784 # Update the cache value to reflect the command line values.
8785 ac_cv_have_x="have_x=yes\
8786 ac_x_includes='$x_includes'\
8787 ac_x_libraries='$x_libraries'"
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8789 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8792 if test "$no_x" = yes; then
8793 # Not all programs may use this symbol, but it does not hurt to define it.
8795 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8797 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8798 else
8799 if test -n "$x_includes"; then
8800 X_CFLAGS="$X_CFLAGS -I$x_includes"
8803 # It would also be nice to do this for all -L options, not just this one.
8804 if test -n "$x_libraries"; then
8805 X_LIBS="$X_LIBS -L$x_libraries"
8806 # For Solaris; some versions of Sun CC require a space after -R and
8807 # others require no space. Words are not sufficient . . . .
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8809 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
8810 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8811 ac_xsave_c_werror_flag=$ac_c_werror_flag
8812 ac_c_werror_flag=yes
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8817 main ()
8821 return 0;
8823 _ACEOF
8824 if ac_fn_c_try_link "$LINENO"; then :
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 $as_echo "no" >&6; }
8827 X_LIBS="$X_LIBS -R$x_libraries"
8828 else
8829 LIBS="$ac_xsave_LIBS -R $x_libraries"
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8834 main ()
8838 return 0;
8840 _ACEOF
8841 if ac_fn_c_try_link "$LINENO"; then :
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8843 $as_echo "yes" >&6; }
8844 X_LIBS="$X_LIBS -R $x_libraries"
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8847 $as_echo "neither works" >&6; }
8849 rm -f core conftest.err conftest.$ac_objext \
8850 conftest$ac_exeext conftest.$ac_ext
8852 rm -f core conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8854 ac_c_werror_flag=$ac_xsave_c_werror_flag
8855 LIBS=$ac_xsave_LIBS
8858 # Check for system-dependent libraries X programs must link with.
8859 # Do this before checking for the system-independent R6 libraries
8860 # (-lICE), since we may need -lsocket or whatever for X linking.
8862 if test "$ISC" = yes; then
8863 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8864 else
8865 # Martyn Johnson says this is needed for Ultrix, if the X
8866 # libraries were built with DECnet support. And Karl Berry says
8867 # the Alpha needs dnet_stub (dnet does not exist).
8868 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8872 /* Override any GCC internal prototype to avoid an error.
8873 Use char because int might match the return type of a GCC
8874 builtin and then its argument prototype would still apply. */
8875 #ifdef __cplusplus
8876 extern "C"
8877 #endif
8878 char XOpenDisplay ();
8880 main ()
8882 return XOpenDisplay ();
8884 return 0;
8886 _ACEOF
8887 if ac_fn_c_try_link "$LINENO"; then :
8889 else
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8891 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8892 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 ac_check_lib_save_LIBS=$LIBS
8896 LIBS="-ldnet $LIBS"
8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8900 /* Override any GCC internal prototype to avoid an error.
8901 Use char because int might match the return type of a GCC
8902 builtin and then its argument prototype would still apply. */
8903 #ifdef __cplusplus
8904 extern "C"
8905 #endif
8906 char dnet_ntoa ();
8908 main ()
8910 return dnet_ntoa ();
8912 return 0;
8914 _ACEOF
8915 if ac_fn_c_try_link "$LINENO"; then :
8916 ac_cv_lib_dnet_dnet_ntoa=yes
8917 else
8918 ac_cv_lib_dnet_dnet_ntoa=no
8920 rm -f core conftest.err conftest.$ac_objext \
8921 conftest$ac_exeext conftest.$ac_ext
8922 LIBS=$ac_check_lib_save_LIBS
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8925 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8926 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8927 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8930 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8932 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8933 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 ac_check_lib_save_LIBS=$LIBS
8937 LIBS="-ldnet_stub $LIBS"
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8941 /* Override any GCC internal prototype to avoid an error.
8942 Use char because int might match the return type of a GCC
8943 builtin and then its argument prototype would still apply. */
8944 #ifdef __cplusplus
8945 extern "C"
8946 #endif
8947 char dnet_ntoa ();
8949 main ()
8951 return dnet_ntoa ();
8953 return 0;
8955 _ACEOF
8956 if ac_fn_c_try_link "$LINENO"; then :
8957 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8958 else
8959 ac_cv_lib_dnet_stub_dnet_ntoa=no
8961 rm -f core conftest.err conftest.$ac_objext \
8962 conftest$ac_exeext conftest.$ac_ext
8963 LIBS=$ac_check_lib_save_LIBS
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8966 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8967 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8968 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8973 rm -f core conftest.err conftest.$ac_objext \
8974 conftest$ac_exeext conftest.$ac_ext
8975 LIBS="$ac_xsave_LIBS"
8977 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8978 # to get the SysV transport functions.
8979 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8980 # needs -lnsl.
8981 # The nsl library prevents programs from opening the X display
8982 # on Irix 5.2, according to T.E. Dickey.
8983 # The functions gethostbyname, getservbyname, and inet_addr are
8984 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8985 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8986 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8990 if test $ac_cv_func_gethostbyname = no; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8992 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8993 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8994 $as_echo_n "(cached) " >&6
8995 else
8996 ac_check_lib_save_LIBS=$LIBS
8997 LIBS="-lnsl $LIBS"
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9001 /* Override any GCC internal prototype to avoid an error.
9002 Use char because int might match the return type of a GCC
9003 builtin and then its argument prototype would still apply. */
9004 #ifdef __cplusplus
9005 extern "C"
9006 #endif
9007 char gethostbyname ();
9009 main ()
9011 return gethostbyname ();
9013 return 0;
9015 _ACEOF
9016 if ac_fn_c_try_link "$LINENO"; then :
9017 ac_cv_lib_nsl_gethostbyname=yes
9018 else
9019 ac_cv_lib_nsl_gethostbyname=no
9021 rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023 LIBS=$ac_check_lib_save_LIBS
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
9026 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
9027 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
9028 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9031 if test $ac_cv_lib_nsl_gethostbyname = no; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
9033 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
9034 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 ac_check_lib_save_LIBS=$LIBS
9038 LIBS="-lbsd $LIBS"
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9042 /* Override any GCC internal prototype to avoid an error.
9043 Use char because int might match the return type of a GCC
9044 builtin and then its argument prototype would still apply. */
9045 #ifdef __cplusplus
9046 extern "C"
9047 #endif
9048 char gethostbyname ();
9050 main ()
9052 return gethostbyname ();
9054 return 0;
9056 _ACEOF
9057 if ac_fn_c_try_link "$LINENO"; then :
9058 ac_cv_lib_bsd_gethostbyname=yes
9059 else
9060 ac_cv_lib_bsd_gethostbyname=no
9062 rm -f core conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 LIBS=$ac_check_lib_save_LIBS
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
9067 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9068 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
9069 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9075 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9076 # socket/setsockopt and other routines are undefined under SCO ODT
9077 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9078 # on later versions), says Simon Leinen: it contains gethostby*
9079 # variants that don't use the name server (or something). -lsocket
9080 # must be given before -lnsl if both are needed. We assume that
9081 # if connect needs -lnsl, so does gethostbyname.
9082 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9083 if test "x$ac_cv_func_connect" = xyes; then :
9087 if test $ac_cv_func_connect = no; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9089 $as_echo_n "checking for connect in -lsocket... " >&6; }
9090 if ${ac_cv_lib_socket_connect+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 ac_check_lib_save_LIBS=$LIBS
9094 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h. */
9098 /* Override any GCC internal prototype to avoid an error.
9099 Use char because int might match the return type of a GCC
9100 builtin and then its argument prototype would still apply. */
9101 #ifdef __cplusplus
9102 extern "C"
9103 #endif
9104 char connect ();
9106 main ()
9108 return connect ();
9110 return 0;
9112 _ACEOF
9113 if ac_fn_c_try_link "$LINENO"; then :
9114 ac_cv_lib_socket_connect=yes
9115 else
9116 ac_cv_lib_socket_connect=no
9118 rm -f core conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120 LIBS=$ac_check_lib_save_LIBS
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9123 $as_echo "$ac_cv_lib_socket_connect" >&6; }
9124 if test "x$ac_cv_lib_socket_connect" = xyes; then :
9125 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9130 # Guillermo Gomez says -lposix is necessary on A/UX.
9131 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9132 if test "x$ac_cv_func_remove" = xyes; then :
9136 if test $ac_cv_func_remove = no; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9138 $as_echo_n "checking for remove in -lposix... " >&6; }
9139 if ${ac_cv_lib_posix_remove+:} false; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 ac_check_lib_save_LIBS=$LIBS
9143 LIBS="-lposix $LIBS"
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9147 /* Override any GCC internal prototype to avoid an error.
9148 Use char because int might match the return type of a GCC
9149 builtin and then its argument prototype would still apply. */
9150 #ifdef __cplusplus
9151 extern "C"
9152 #endif
9153 char remove ();
9155 main ()
9157 return remove ();
9159 return 0;
9161 _ACEOF
9162 if ac_fn_c_try_link "$LINENO"; then :
9163 ac_cv_lib_posix_remove=yes
9164 else
9165 ac_cv_lib_posix_remove=no
9167 rm -f core conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext conftest.$ac_ext
9169 LIBS=$ac_check_lib_save_LIBS
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9172 $as_echo "$ac_cv_lib_posix_remove" >&6; }
9173 if test "x$ac_cv_lib_posix_remove" = xyes; then :
9174 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9179 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9180 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9181 if test "x$ac_cv_func_shmat" = xyes; then :
9185 if test $ac_cv_func_shmat = no; then
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9187 $as_echo_n "checking for shmat in -lipc... " >&6; }
9188 if ${ac_cv_lib_ipc_shmat+:} false; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 ac_check_lib_save_LIBS=$LIBS
9192 LIBS="-lipc $LIBS"
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9196 /* Override any GCC internal prototype to avoid an error.
9197 Use char because int might match the return type of a GCC
9198 builtin and then its argument prototype would still apply. */
9199 #ifdef __cplusplus
9200 extern "C"
9201 #endif
9202 char shmat ();
9204 main ()
9206 return shmat ();
9208 return 0;
9210 _ACEOF
9211 if ac_fn_c_try_link "$LINENO"; then :
9212 ac_cv_lib_ipc_shmat=yes
9213 else
9214 ac_cv_lib_ipc_shmat=no
9216 rm -f core conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9218 LIBS=$ac_check_lib_save_LIBS
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9221 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9222 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9223 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9229 # Check for libraries that X11R6 Xt/Xaw programs need.
9230 ac_save_LDFLAGS=$LDFLAGS
9231 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9232 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9233 # check for ICE first), but we must link in the order -lSM -lICE or
9234 # we get undefined symbols. So assume we have SM if we have ICE.
9235 # These have to be linked with before -lX11, unlike the other
9236 # libraries we check for below, so use a different variable.
9237 # John Interrante, Karl Berry
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9239 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9240 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9241 $as_echo_n "(cached) " >&6
9242 else
9243 ac_check_lib_save_LIBS=$LIBS
9244 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9248 /* Override any GCC internal prototype to avoid an error.
9249 Use char because int might match the return type of a GCC
9250 builtin and then its argument prototype would still apply. */
9251 #ifdef __cplusplus
9252 extern "C"
9253 #endif
9254 char IceConnectionNumber ();
9256 main ()
9258 return IceConnectionNumber ();
9260 return 0;
9262 _ACEOF
9263 if ac_fn_c_try_link "$LINENO"; then :
9264 ac_cv_lib_ICE_IceConnectionNumber=yes
9265 else
9266 ac_cv_lib_ICE_IceConnectionNumber=no
9268 rm -f core conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270 LIBS=$ac_check_lib_save_LIBS
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9273 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9274 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9275 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9278 LDFLAGS=$ac_save_LDFLAGS
9283 if test "$have_x" = "yes"
9284 then
9285 XLIB="-lX11"
9286 ac_save_CPPFLAGS="$CPPFLAGS"
9287 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
9290 $as_echo_n "checking for -lX11... " >&6; }
9291 if ${ac_cv_lib_soname_X11+:} false; then :
9292 $as_echo_n "(cached) " >&6
9293 else
9294 ac_check_soname_save_LIBS=$LIBS
9295 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9299 /* Override any GCC internal prototype to avoid an error.
9300 Use char because int might match the return type of a GCC
9301 builtin and then its argument prototype would still apply. */
9302 #ifdef __cplusplus
9303 extern "C"
9304 #endif
9305 char XCreateWindow ();
9307 main ()
9309 return XCreateWindow ();
9311 return 0;
9313 _ACEOF
9314 if ac_fn_c_try_link "$LINENO"; then :
9315 case "$LIBEXT" in
9316 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9317 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'` ;;
9318 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9319 if test "x$ac_cv_lib_soname_X11" = x; then :
9320 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9321 fi ;;
9322 esac
9324 rm -f core conftest.err conftest.$ac_objext \
9325 conftest$ac_exeext conftest.$ac_ext
9326 LIBS=$ac_check_soname_save_LIBS
9328 if test "x$ac_cv_lib_soname_X11" = "x"; then :
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9330 $as_echo "not found" >&6; }
9332 else
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
9334 $as_echo "$ac_cv_lib_soname_X11" >&6; }
9336 cat >>confdefs.h <<_ACEOF
9337 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9338 _ACEOF
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
9343 $as_echo_n "checking for -lXext... " >&6; }
9344 if ${ac_cv_lib_soname_Xext+:} false; then :
9345 $as_echo_n "(cached) " >&6
9346 else
9347 ac_check_soname_save_LIBS=$LIBS
9348 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9352 /* Override any GCC internal prototype to avoid an error.
9353 Use char because int might match the return type of a GCC
9354 builtin and then its argument prototype would still apply. */
9355 #ifdef __cplusplus
9356 extern "C"
9357 #endif
9358 char XextCreateExtension ();
9360 main ()
9362 return XextCreateExtension ();
9364 return 0;
9366 _ACEOF
9367 if ac_fn_c_try_link "$LINENO"; then :
9368 case "$LIBEXT" in
9369 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9370 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'` ;;
9371 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9372 if test "x$ac_cv_lib_soname_Xext" = x; then :
9373 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9374 fi ;;
9375 esac
9377 rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
9379 LIBS=$ac_check_soname_save_LIBS
9381 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9383 $as_echo "not found" >&6; }
9385 else
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
9387 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
9389 cat >>confdefs.h <<_ACEOF
9390 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9391 _ACEOF
9393 XLIB="-lXext $XLIB"
9396 for ac_header in X11/Xlib.h \
9397 X11/XKBlib.h \
9398 X11/Xutil.h \
9399 X11/Xcursor/Xcursor.h \
9400 X11/extensions/shape.h \
9401 X11/extensions/XInput.h \
9402 X11/extensions/XInput2.h \
9403 X11/extensions/XShm.h \
9404 X11/extensions/Xcomposite.h \
9405 X11/extensions/Xinerama.h \
9406 X11/extensions/Xrandr.h \
9407 X11/extensions/Xrender.h \
9408 X11/extensions/xf86vmode.h \
9409 X11/extensions/xf86vmproto.h
9410 do :
9411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9412 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9413 # include <X11/Xlib.h>
9414 #endif
9415 #ifdef HAVE_X11_XUTIL_H
9416 # include <X11/Xutil.h>
9417 #endif
9419 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9420 cat >>confdefs.h <<_ACEOF
9421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9422 _ACEOF
9426 done
9429 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9430 then
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9432 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9433 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 ac_check_lib_save_LIBS=$LIBS
9437 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h. */
9441 /* Override any GCC internal prototype to avoid an error.
9442 Use char because int might match the return type of a GCC
9443 builtin and then its argument prototype would still apply. */
9444 #ifdef __cplusplus
9445 extern "C"
9446 #endif
9447 char XkbQueryExtension ();
9449 main ()
9451 return XkbQueryExtension ();
9453 return 0;
9455 _ACEOF
9456 if ac_fn_c_try_link "$LINENO"; then :
9457 ac_cv_lib_X11_XkbQueryExtension=yes
9458 else
9459 ac_cv_lib_X11_XkbQueryExtension=no
9461 rm -f core conftest.err conftest.$ac_objext \
9462 conftest$ac_exeext conftest.$ac_ext
9463 LIBS=$ac_check_lib_save_LIBS
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9466 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9467 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9469 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9475 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9476 then
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9478 $as_echo_n "checking for -lXcursor... " >&6; }
9479 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9480 $as_echo_n "(cached) " >&6
9481 else
9482 ac_check_soname_save_LIBS=$LIBS
9483 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9487 /* Override any GCC internal prototype to avoid an error.
9488 Use char because int might match the return type of a GCC
9489 builtin and then its argument prototype would still apply. */
9490 #ifdef __cplusplus
9491 extern "C"
9492 #endif
9493 char XcursorImageLoadCursor ();
9495 main ()
9497 return XcursorImageLoadCursor ();
9499 return 0;
9501 _ACEOF
9502 if ac_fn_c_try_link "$LINENO"; then :
9503 case "$LIBEXT" in
9504 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9505 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'` ;;
9506 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9507 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
9508 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9509 fi ;;
9510 esac
9512 rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9514 LIBS=$ac_check_soname_save_LIBS
9516 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9518 $as_echo "not found" >&6; }
9520 else
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9522 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9524 cat >>confdefs.h <<_ACEOF
9525 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9526 _ACEOF
9531 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9532 case "x$with_xcursor" in
9533 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9534 xno) ;;
9535 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9536 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9537 esac
9540 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9541 then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9543 $as_echo_n "checking for -lXi... " >&6; }
9544 if ${ac_cv_lib_soname_Xi+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 ac_check_soname_save_LIBS=$LIBS
9548 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9552 /* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9555 #ifdef __cplusplus
9556 extern "C"
9557 #endif
9558 char XOpenDevice ();
9560 main ()
9562 return XOpenDevice ();
9564 return 0;
9566 _ACEOF
9567 if ac_fn_c_try_link "$LINENO"; then :
9568 case "$LIBEXT" in
9569 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9570 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'` ;;
9571 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9572 if test "x$ac_cv_lib_soname_Xi" = x; then :
9573 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9574 fi ;;
9575 esac
9577 rm -f core conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
9579 LIBS=$ac_check_soname_save_LIBS
9581 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9583 $as_echo "not found" >&6; }
9585 else
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9587 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9589 cat >>confdefs.h <<_ACEOF
9590 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9591 _ACEOF
9596 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9597 case "x$with_xinput" in
9598 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9599 xno) ;;
9600 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9601 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9602 esac
9605 if test "x$ac_cv_lib_soname_Xi" != x
9606 then
9607 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9608 case "x$with_xinput2" in
9609 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9610 xno) ;;
9611 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9612 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9613 esac
9617 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9618 then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9620 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9621 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9622 $as_echo_n "(cached) " >&6
9623 else
9624 ac_check_lib_save_LIBS=$LIBS
9625 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9629 /* Override any GCC internal prototype to avoid an error.
9630 Use char because int might match the return type of a GCC
9631 builtin and then its argument prototype would still apply. */
9632 #ifdef __cplusplus
9633 extern "C"
9634 #endif
9635 char XShmQueryExtension ();
9637 main ()
9639 return XShmQueryExtension ();
9641 return 0;
9643 _ACEOF
9644 if ac_fn_c_try_link "$LINENO"; then :
9645 ac_cv_lib_Xext_XShmQueryExtension=yes
9646 else
9647 ac_cv_lib_Xext_XShmQueryExtension=no
9649 rm -f core conftest.err conftest.$ac_objext \
9650 conftest$ac_exeext conftest.$ac_ext
9651 LIBS=$ac_check_lib_save_LIBS
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9654 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9655 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9657 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9662 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9663 case "x$with_xshm" in
9664 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9665 xno) ;;
9666 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9667 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9668 esac
9671 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9672 then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9674 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9675 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 ac_check_lib_save_LIBS=$LIBS
9679 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681 /* end confdefs.h. */
9683 /* Override any GCC internal prototype to avoid an error.
9684 Use char because int might match the return type of a GCC
9685 builtin and then its argument prototype would still apply. */
9686 #ifdef __cplusplus
9687 extern "C"
9688 #endif
9689 char XShapeQueryExtension ();
9691 main ()
9693 return XShapeQueryExtension ();
9695 return 0;
9697 _ACEOF
9698 if ac_fn_c_try_link "$LINENO"; then :
9699 ac_cv_lib_Xext_XShapeQueryExtension=yes
9700 else
9701 ac_cv_lib_Xext_XShapeQueryExtension=no
9703 rm -f core conftest.err conftest.$ac_objext \
9704 conftest$ac_exeext conftest.$ac_ext
9705 LIBS=$ac_check_lib_save_LIBS
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9708 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9709 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9711 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9716 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9717 case "x$with_xshape" in
9718 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9719 xno) ;;
9720 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9721 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9722 esac
9725 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9726 then
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9728 $as_echo_n "checking for -lXxf86vm... " >&6; }
9729 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 ac_check_soname_save_LIBS=$LIBS
9733 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9737 /* Override any GCC internal prototype to avoid an error.
9738 Use char because int might match the return type of a GCC
9739 builtin and then its argument prototype would still apply. */
9740 #ifdef __cplusplus
9741 extern "C"
9742 #endif
9743 char XF86VidModeQueryExtension ();
9745 main ()
9747 return XF86VidModeQueryExtension ();
9749 return 0;
9751 _ACEOF
9752 if ac_fn_c_try_link "$LINENO"; then :
9753 case "$LIBEXT" in
9754 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9755 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'` ;;
9756 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9757 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
9758 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9759 fi ;;
9760 esac
9762 rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_soname_save_LIBS
9766 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9768 $as_echo "not found" >&6; }
9770 else
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9772 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9774 cat >>confdefs.h <<_ACEOF
9775 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9776 _ACEOF
9781 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9782 case "x$with_xxf86vm" in
9783 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9784 xno) ;;
9785 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9786 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9787 esac
9790 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"
9791 then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9793 $as_echo_n "checking for -lXrender... " >&6; }
9794 if ${ac_cv_lib_soname_Xrender+:} false; then :
9795 $as_echo_n "(cached) " >&6
9796 else
9797 ac_check_soname_save_LIBS=$LIBS
9798 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800 /* end confdefs.h. */
9802 /* Override any GCC internal prototype to avoid an error.
9803 Use char because int might match the return type of a GCC
9804 builtin and then its argument prototype would still apply. */
9805 #ifdef __cplusplus
9806 extern "C"
9807 #endif
9808 char XRenderQueryExtension ();
9810 main ()
9812 return XRenderQueryExtension ();
9814 return 0;
9816 _ACEOF
9817 if ac_fn_c_try_link "$LINENO"; then :
9818 case "$LIBEXT" in
9819 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9820 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'` ;;
9821 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9822 if test "x$ac_cv_lib_soname_Xrender" = x; then :
9823 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9824 fi ;;
9825 esac
9827 rm -f core conftest.err conftest.$ac_objext \
9828 conftest$ac_exeext conftest.$ac_ext
9829 LIBS=$ac_check_soname_save_LIBS
9831 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9833 $as_echo "not found" >&6; }
9835 else
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
9837 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
9839 cat >>confdefs.h <<_ACEOF
9840 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
9841 _ACEOF
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
9844 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
9845 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
9846 $as_echo_n "(cached) " >&6
9847 else
9848 ac_check_lib_save_LIBS=$LIBS
9849 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9853 /* Override any GCC internal prototype to avoid an error.
9854 Use char because int might match the return type of a GCC
9855 builtin and then its argument prototype would still apply. */
9856 #ifdef __cplusplus
9857 extern "C"
9858 #endif
9859 char XRenderSetPictureTransform ();
9861 main ()
9863 return XRenderSetPictureTransform ();
9865 return 0;
9867 _ACEOF
9868 if ac_fn_c_try_link "$LINENO"; then :
9869 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9870 else
9871 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9873 rm -f core conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875 LIBS=$ac_check_lib_save_LIBS
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9878 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9879 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
9881 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
9886 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
9887 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889 else
9890 ac_check_lib_save_LIBS=$LIBS
9891 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9895 /* Override any GCC internal prototype to avoid an error.
9896 Use char because int might match the return type of a GCC
9897 builtin and then its argument prototype would still apply. */
9898 #ifdef __cplusplus
9899 extern "C"
9900 #endif
9901 char XRenderCreateLinearGradient ();
9903 main ()
9905 return XRenderCreateLinearGradient ();
9907 return 0;
9909 _ACEOF
9910 if ac_fn_c_try_link "$LINENO"; then :
9911 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
9912 else
9913 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
9915 rm -f core conftest.err conftest.$ac_objext \
9916 conftest$ac_exeext conftest.$ac_ext
9917 LIBS=$ac_check_lib_save_LIBS
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
9920 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
9921 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
9923 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
9930 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9931 case "x$with_xrender" in
9932 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
9933 xno) ;;
9934 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
9935 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
9936 esac
9939 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9940 then
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9943 #include <X11/Xlib.h>
9944 #include <X11/extensions/Xrandr.h>
9946 main ()
9948 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9950 return 0;
9952 _ACEOF
9953 if ac_fn_c_try_compile "$LINENO"; then :
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9955 $as_echo_n "checking for -lXrandr... " >&6; }
9956 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9957 $as_echo_n "(cached) " >&6
9958 else
9959 ac_check_soname_save_LIBS=$LIBS
9960 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9964 /* Override any GCC internal prototype to avoid an error.
9965 Use char because int might match the return type of a GCC
9966 builtin and then its argument prototype would still apply. */
9967 #ifdef __cplusplus
9968 extern "C"
9969 #endif
9970 char XRRQueryExtension ();
9972 main ()
9974 return XRRQueryExtension ();
9976 return 0;
9978 _ACEOF
9979 if ac_fn_c_try_link "$LINENO"; then :
9980 case "$LIBEXT" in
9981 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9982 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'` ;;
9983 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9984 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
9985 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9986 fi ;;
9987 esac
9989 rm -f core conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 LIBS=$ac_check_soname_save_LIBS
9993 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9995 $as_echo "not found" >&6; }
9997 else
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9999 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
10001 cat >>confdefs.h <<_ACEOF
10002 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
10003 _ACEOF
10005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10007 #include <X11/Xlib.h>
10008 #include <X11/extensions/Xrandr.h>
10010 main ()
10012 static typeof(XRRGetScreenResources) *f; if (f) return 0;
10014 return 0;
10016 _ACEOF
10017 if ac_fn_c_try_compile "$LINENO"; then :
10019 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
10022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10027 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
10028 case "x$with_xrandr" in
10029 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
10030 xno) ;;
10031 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
10032 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
10033 esac
10036 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10037 then
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10040 #include <X11/Xlib.h>
10041 #include <X11/extensions/Xinerama.h>
10043 main ()
10045 static typeof(XineramaQueryScreens) * func; if (func) return 0;
10047 return 0;
10049 _ACEOF
10050 if ac_fn_c_try_compile "$LINENO"; then :
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
10052 $as_echo_n "checking for -lXinerama... " >&6; }
10053 if ${ac_cv_lib_soname_Xinerama+:} false; then :
10054 $as_echo_n "(cached) " >&6
10055 else
10056 ac_check_soname_save_LIBS=$LIBS
10057 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10061 /* Override any GCC internal prototype to avoid an error.
10062 Use char because int might match the return type of a GCC
10063 builtin and then its argument prototype would still apply. */
10064 #ifdef __cplusplus
10065 extern "C"
10066 #endif
10067 char XineramaQueryScreens ();
10069 main ()
10071 return XineramaQueryScreens ();
10073 return 0;
10075 _ACEOF
10076 if ac_fn_c_try_link "$LINENO"; then :
10077 case "$LIBEXT" in
10078 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10079 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'` ;;
10080 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10081 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
10082 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10083 fi ;;
10084 esac
10086 rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088 LIBS=$ac_check_soname_save_LIBS
10090 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10092 $as_echo "not found" >&6; }
10094 else
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
10096 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
10098 cat >>confdefs.h <<_ACEOF
10099 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10100 _ACEOF
10105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10107 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10108 case "x$with_xinerama" in
10109 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
10110 xno) ;;
10111 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
10112 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
10113 esac
10116 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10117 then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
10119 $as_echo_n "checking for -lXcomposite... " >&6; }
10120 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 ac_check_soname_save_LIBS=$LIBS
10124 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10128 /* Override any GCC internal prototype to avoid an error.
10129 Use char because int might match the return type of a GCC
10130 builtin and then its argument prototype would still apply. */
10131 #ifdef __cplusplus
10132 extern "C"
10133 #endif
10134 char XCompositeRedirectWindow ();
10136 main ()
10138 return XCompositeRedirectWindow ();
10140 return 0;
10142 _ACEOF
10143 if ac_fn_c_try_link "$LINENO"; then :
10144 case "$LIBEXT" in
10145 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10146 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'` ;;
10147 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10148 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
10149 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10150 fi ;;
10151 esac
10153 rm -f core conftest.err conftest.$ac_objext \
10154 conftest$ac_exeext conftest.$ac_ext
10155 LIBS=$ac_check_soname_save_LIBS
10157 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10159 $as_echo "not found" >&6; }
10161 else
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
10163 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
10165 cat >>confdefs.h <<_ACEOF
10166 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10167 _ACEOF
10172 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10173 case "x$with_xcomposite" in
10174 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
10175 xno) ;;
10176 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
10177 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
10178 esac
10181 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
10182 #include <X11/Xlib.h>
10183 #endif
10185 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
10187 cat >>confdefs.h <<_ACEOF
10188 #define HAVE_XICCALLBACK_CALLBACK 1
10189 _ACEOF
10193 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
10194 #include <X11/Xlib.h>
10195 #endif
10197 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
10199 cat >>confdefs.h <<_ACEOF
10200 #define HAVE_XEVENT_XCOOKIE 1
10201 _ACEOF
10208 opengl_msg=""
10209 if test "x$with_opengl" != "xno"
10210 then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10212 $as_echo_n "checking for -lGL... " >&6; }
10213 if ${ac_cv_lib_soname_GL+:} false; then :
10214 $as_echo_n "(cached) " >&6
10215 else
10216 ac_check_soname_save_LIBS=$LIBS
10217 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10221 /* Override any GCC internal prototype to avoid an error.
10222 Use char because int might match the return type of a GCC
10223 builtin and then its argument prototype would still apply. */
10224 #ifdef __cplusplus
10225 extern "C"
10226 #endif
10227 char glXCreateContext ();
10229 main ()
10231 return glXCreateContext ();
10233 return 0;
10235 _ACEOF
10236 if ac_fn_c_try_link "$LINENO"; then :
10237 case "$LIBEXT" in
10238 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10239 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'` ;;
10240 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10241 if test "x$ac_cv_lib_soname_GL" = x; then :
10242 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10243 fi ;;
10244 esac
10246 rm -f core conftest.err conftest.$ac_objext \
10247 conftest$ac_exeext conftest.$ac_ext
10248 LIBS=$ac_check_soname_save_LIBS
10250 if test "x$ac_cv_lib_soname_GL" = "x"; then :
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10252 $as_echo "not found" >&6; }
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10254 $as_echo_n "checking for -lGL... " >&6; }
10255 if ${ac_cv_lib_soname_GL+:} false; then :
10256 $as_echo_n "(cached) " >&6
10257 else
10258 ac_check_soname_save_LIBS=$LIBS
10259 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib $LIBS"
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10263 /* Override any GCC internal prototype to avoid an error.
10264 Use char because int might match the return type of a GCC
10265 builtin and then its argument prototype would still apply. */
10266 #ifdef __cplusplus
10267 extern "C"
10268 #endif
10269 char glXCreateContext ();
10271 main ()
10273 return glXCreateContext ();
10275 return 0;
10277 _ACEOF
10278 if ac_fn_c_try_link "$LINENO"; then :
10279 case "$LIBEXT" in
10280 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10281 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'` ;;
10282 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10283 if test "x$ac_cv_lib_soname_GL" = x; then :
10284 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10285 fi ;;
10286 esac
10288 rm -f core conftest.err conftest.$ac_objext \
10289 conftest$ac_exeext conftest.$ac_ext
10290 LIBS=$ac_check_soname_save_LIBS
10292 if test "x$ac_cv_lib_soname_GL" = "x"; then :
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10294 $as_echo "not found" >&6; }
10295 if test -f /usr/X11R6/lib/libGL.a
10296 then
10297 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
10298 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10299 else
10300 opengl_msg="No OpenGL library found on this system."
10302 else
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10304 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10306 cat >>confdefs.h <<_ACEOF
10307 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10308 _ACEOF
10310 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"
10312 else
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10314 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10316 cat >>confdefs.h <<_ACEOF
10317 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10318 _ACEOF
10320 OPENGL_LIBS="-lGL"
10322 if test "x$with_glu" != "xno"
10323 then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
10325 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
10326 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
10327 $as_echo_n "(cached) " >&6
10328 else
10329 ac_check_lib_save_LIBS=$LIBS
10330 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10334 /* Override any GCC internal prototype to avoid an error.
10335 Use char because int might match the return type of a GCC
10336 builtin and then its argument prototype would still apply. */
10337 #ifdef __cplusplus
10338 extern "C"
10339 #endif
10340 char gluLookAt ();
10342 main ()
10344 return gluLookAt ();
10346 return 0;
10348 _ACEOF
10349 if ac_fn_c_try_link "$LINENO"; then :
10350 ac_cv_lib_GLU_gluLookAt=yes
10351 else
10352 ac_cv_lib_GLU_gluLookAt=no
10354 rm -f core conftest.err conftest.$ac_objext \
10355 conftest$ac_exeext conftest.$ac_ext
10356 LIBS=$ac_check_lib_save_LIBS
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
10359 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
10360 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
10364 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
10365 case "x$with_glu" in
10366 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
10367 xno) ;;
10368 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
10369 This is an error since --with-glu was requested." "$LINENO" 5 ;;
10370 esac
10374 if test "x$with_osmesa" != "xno"
10375 then
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
10377 $as_echo_n "checking for -lOSMesa... " >&6; }
10378 if ${ac_cv_lib_soname_OSMesa+:} false; then :
10379 $as_echo_n "(cached) " >&6
10380 else
10381 ac_check_soname_save_LIBS=$LIBS
10382 LIBS="-lOSMesa $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10386 /* Override any GCC internal prototype to avoid an error.
10387 Use char because int might match the return type of a GCC
10388 builtin and then its argument prototype would still apply. */
10389 #ifdef __cplusplus
10390 extern "C"
10391 #endif
10392 char glAccum ();
10394 main ()
10396 return glAccum ();
10398 return 0;
10400 _ACEOF
10401 if ac_fn_c_try_link "$LINENO"; then :
10402 case "$LIBEXT" in
10403 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10404 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'` ;;
10405 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10406 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
10407 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10408 fi ;;
10409 esac
10411 rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413 LIBS=$ac_check_soname_save_LIBS
10415 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10417 $as_echo "not found" >&6; }
10419 else
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10421 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10423 cat >>confdefs.h <<_ACEOF
10424 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10425 _ACEOF
10429 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10430 case "x$with_osmesa" in
10431 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10432 xno) ;;
10433 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10434 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10435 esac
10439 if test -n "$opengl_msg"; then :
10440 case "x$with_opengl" in
10441 x) as_fn_append wine_warnings "|$opengl_msg
10442 OpenGL and Direct3D won't be supported." ;;
10443 xno) ;;
10444 *) as_fn_error $? "$opengl_msg
10445 OpenGL and Direct3D won't be supported.
10446 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10447 esac
10450 CPPFLAGS="$ac_save_CPPFLAGS"
10451 else
10452 XLIB=""
10453 X_CFLAGS=""
10454 X_LIBS=""
10455 enable_winex11_drv=${enable_winex11_drv:-no}
10457 if test "x$XLIB" = "x"; then :
10458 case "x$with_x" in
10459 xno) ;;
10460 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10461 without X support, which probably isn't what you want. You will need
10462 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10463 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10464 esac
10467 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10469 if test "$ac_cv_header_CL_cl_h" = "yes"
10470 then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10472 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10473 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10474 $as_echo_n "(cached) " >&6
10475 else
10476 ac_check_lib_save_LIBS=$LIBS
10477 LIBS="-lOpenCL $LIBS"
10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h. */
10481 /* Override any GCC internal prototype to avoid an error.
10482 Use char because int might match the return type of a GCC
10483 builtin and then its argument prototype would still apply. */
10484 #ifdef __cplusplus
10485 extern "C"
10486 #endif
10487 char clGetPlatformInfo ();
10489 main ()
10491 return clGetPlatformInfo ();
10493 return 0;
10495 _ACEOF
10496 if ac_fn_c_try_link "$LINENO"; then :
10497 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10498 else
10499 ac_cv_lib_OpenCL_clGetPlatformInfo=no
10501 rm -f core conftest.err conftest.$ac_objext \
10502 conftest$ac_exeext conftest.$ac_ext
10503 LIBS=$ac_check_lib_save_LIBS
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
10506 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10507 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10508 LIBOPENCL="-lOpenCL"
10513 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10514 case "x$with_opencl" in
10515 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10516 xno) ;;
10517 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10518 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10519 esac
10521 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10524 if test "x$with_xml" != "xno"
10525 then
10526 if test -n "$XML2_CFLAGS"; then :
10528 elif test -n "$PKG_CONFIG"; then :
10529 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10531 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10532 if test -n "$XML2_LIBS"; then :
10534 elif test -n "$PKG_CONFIG"; then :
10535 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10537 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10538 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10539 ac_save_CPPFLAGS=$CPPFLAGS
10540 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10541 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10542 do :
10543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10544 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10546 cat >>confdefs.h <<_ACEOF
10547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10548 _ACEOF
10552 done
10554 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"
10555 then
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10557 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10558 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10559 $as_echo_n "(cached) " >&6
10560 else
10561 ac_check_lib_save_LIBS=$LIBS
10562 LIBS="-lxml2 $XML2_LIBS $LIBS"
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10566 /* Override any GCC internal prototype to avoid an error.
10567 Use char because int might match the return type of a GCC
10568 builtin and then its argument prototype would still apply. */
10569 #ifdef __cplusplus
10570 extern "C"
10571 #endif
10572 char xmlParseMemory ();
10574 main ()
10576 return xmlParseMemory ();
10578 return 0;
10580 _ACEOF
10581 if ac_fn_c_try_link "$LINENO"; then :
10582 ac_cv_lib_xml2_xmlParseMemory=yes
10583 else
10584 ac_cv_lib_xml2_xmlParseMemory=no
10586 rm -f core conftest.err conftest.$ac_objext \
10587 conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_lib_save_LIBS
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10591 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10592 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10594 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10596 else
10597 XML2_LIBS=""
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10601 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10602 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 ac_check_lib_save_LIBS=$LIBS
10606 LIBS="-lxml2 $XML2_LIBS $LIBS"
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10610 /* Override any GCC internal prototype to avoid an error.
10611 Use char because int might match the return type of a GCC
10612 builtin and then its argument prototype would still apply. */
10613 #ifdef __cplusplus
10614 extern "C"
10615 #endif
10616 char xmlReadMemory ();
10618 main ()
10620 return xmlReadMemory ();
10622 return 0;
10624 _ACEOF
10625 if ac_fn_c_try_link "$LINENO"; then :
10626 ac_cv_lib_xml2_xmlReadMemory=yes
10627 else
10628 ac_cv_lib_xml2_xmlReadMemory=no
10630 rm -f core conftest.err conftest.$ac_objext \
10631 conftest$ac_exeext conftest.$ac_ext
10632 LIBS=$ac_check_lib_save_LIBS
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10635 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10636 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10638 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10643 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10644 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647 ac_check_lib_save_LIBS=$LIBS
10648 LIBS="-lxml2 $XML2_LIBS $LIBS"
10649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10652 /* Override any GCC internal prototype to avoid an error.
10653 Use char because int might match the return type of a GCC
10654 builtin and then its argument prototype would still apply. */
10655 #ifdef __cplusplus
10656 extern "C"
10657 #endif
10658 char xmlNewDocPI ();
10660 main ()
10662 return xmlNewDocPI ();
10664 return 0;
10666 _ACEOF
10667 if ac_fn_c_try_link "$LINENO"; then :
10668 ac_cv_lib_xml2_xmlNewDocPI=yes
10669 else
10670 ac_cv_lib_xml2_xmlNewDocPI=no
10672 rm -f core conftest.err conftest.$ac_objext \
10673 conftest$ac_exeext conftest.$ac_ext
10674 LIBS=$ac_check_lib_save_LIBS
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10677 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10678 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10680 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10685 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10686 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
10687 $as_echo_n "(cached) " >&6
10688 else
10689 ac_check_lib_save_LIBS=$LIBS
10690 LIBS="-lxml2 $XML2_LIBS $LIBS"
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10694 /* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
10697 #ifdef __cplusplus
10698 extern "C"
10699 #endif
10700 char xmlSchemaSetParserStructuredErrors ();
10702 main ()
10704 return xmlSchemaSetParserStructuredErrors ();
10706 return 0;
10708 _ACEOF
10709 if ac_fn_c_try_link "$LINENO"; then :
10710 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10711 else
10712 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
10714 rm -f core conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
10716 LIBS=$ac_check_lib_save_LIBS
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
10719 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10720 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10722 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10727 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10728 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-lxml2 $XML2_LIBS $LIBS"
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 char xmlSchemaSetValidStructuredErrors ();
10744 main ()
10746 return xmlSchemaSetValidStructuredErrors ();
10748 return 0;
10750 _ACEOF
10751 if ac_fn_c_try_link "$LINENO"; then :
10752 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
10753 else
10754 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 LIBS=$ac_check_lib_save_LIBS
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
10761 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
10762 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
10764 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
10769 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
10770 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
10771 $as_echo_n "(cached) " >&6
10772 else
10773 ac_check_lib_save_LIBS=$LIBS
10774 LIBS="-lxml2 $XML2_LIBS $LIBS"
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h. */
10778 /* Override any GCC internal prototype to avoid an error.
10779 Use char because int might match the return type of a GCC
10780 builtin and then its argument prototype would still apply. */
10781 #ifdef __cplusplus
10782 extern "C"
10783 #endif
10784 char xmlFirstElementChild ();
10786 main ()
10788 return xmlFirstElementChild ();
10790 return 0;
10792 _ACEOF
10793 if ac_fn_c_try_link "$LINENO"; then :
10794 ac_cv_lib_xml2_xmlFirstElementChild=yes
10795 else
10796 ac_cv_lib_xml2_xmlFirstElementChild=no
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 LIBS=$ac_check_lib_save_LIBS
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
10803 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
10804 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
10806 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
10810 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
10812 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
10814 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
10818 else
10819 XML2_CFLAGS=""
10820 XML2_LIBS=""
10822 CPPFLAGS=$ac_save_CPPFLAGS
10823 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10824 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10827 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
10828 case "x$with_xml" in
10829 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
10830 xno) ;;
10831 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
10832 This is an error since --with-xml was requested." "$LINENO" 5 ;;
10833 esac
10836 if test "x$with_xslt" != "xno"
10837 then
10838 if test -n "$XSLT_CFLAGS"; then :
10840 elif test -n "$PKG_CONFIG"; then :
10841 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
10843 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
10844 if test -n "$XSLT_LIBS"; then :
10846 elif test -n "$PKG_CONFIG"; then :
10847 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
10849 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
10850 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
10851 ac_save_CPPFLAGS=$CPPFLAGS
10852 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
10853 for ac_header in libxslt/pattern.h libxslt/transform.h
10854 do :
10855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10856 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
10857 # include <libxslt/pattern.h>
10858 #endif
10860 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10861 cat >>confdefs.h <<_ACEOF
10862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10863 _ACEOF
10867 done
10869 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10870 then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10872 $as_echo_n "checking for -lxslt... " >&6; }
10873 if ${ac_cv_lib_soname_xslt+:} false; then :
10874 $as_echo_n "(cached) " >&6
10875 else
10876 ac_check_soname_save_LIBS=$LIBS
10877 LIBS="-lxslt $XSLT_LIBS $LIBS"
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h. */
10881 /* Override any GCC internal prototype to avoid an error.
10882 Use char because int might match the return type of a GCC
10883 builtin and then its argument prototype would still apply. */
10884 #ifdef __cplusplus
10885 extern "C"
10886 #endif
10887 char xsltCompilePattern ();
10889 main ()
10891 return xsltCompilePattern ();
10893 return 0;
10895 _ACEOF
10896 if ac_fn_c_try_link "$LINENO"; then :
10897 case "$LIBEXT" in
10898 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10899 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'` ;;
10900 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10901 if test "x$ac_cv_lib_soname_xslt" = x; then :
10902 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10903 fi ;;
10904 esac
10906 rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908 LIBS=$ac_check_soname_save_LIBS
10910 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10912 $as_echo "not found" >&6; }
10914 else
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10916 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10918 cat >>confdefs.h <<_ACEOF
10919 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10920 _ACEOF
10924 else
10925 XSLT_CFLAGS=""
10927 CPPFLAGS=$ac_save_CPPFLAGS
10928 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10929 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10932 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10933 case "x$with_xslt" in
10934 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10935 xno) ;;
10936 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10937 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10938 esac
10941 if test "x$with_dbus" != "xno"
10942 then
10943 if test -n "$DBUS_CFLAGS"; then :
10945 elif test -n "$PKG_CONFIG"; then :
10946 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10949 if test -n "$DBUS_LIBS"; then :
10951 elif test -n "$PKG_CONFIG"; then :
10952 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10956 ac_save_CPPFLAGS=$CPPFLAGS
10957 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10958 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10959 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10961 $as_echo_n "checking for -ldbus-1... " >&6; }
10962 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10963 $as_echo_n "(cached) " >&6
10964 else
10965 ac_check_soname_save_LIBS=$LIBS
10966 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10973 #ifdef __cplusplus
10974 extern "C"
10975 #endif
10976 char dbus_connection_close ();
10978 main ()
10980 return dbus_connection_close ();
10982 return 0;
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10986 case "$LIBEXT" in
10987 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10988 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'` ;;
10989 *) 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'`
10990 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10991 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10992 fi ;;
10993 esac
10995 rm -f core conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
10997 LIBS=$ac_check_soname_save_LIBS
10999 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11001 $as_echo "not found" >&6; }
11002 DBUS_CFLAGS=""
11003 else
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
11005 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
11007 cat >>confdefs.h <<_ACEOF
11008 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
11009 _ACEOF
11013 else
11014 DBUS_CFLAGS=""
11018 CPPFLAGS=$ac_save_CPPFLAGS
11019 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11020 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11023 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
11024 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11025 case "x$with_dbus" in
11026 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
11027 xno) ;;
11028 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
11029 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
11030 esac
11033 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
11034 then
11035 if test -n "$HAL_CFLAGS"; then :
11037 elif test -n "$PKG_CONFIG"; then :
11038 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
11041 if test -n "$HAL_LIBS"; then :
11043 elif test -n "$PKG_CONFIG"; then :
11044 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
11047 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
11048 ac_save_CPPFLAGS=$CPPFLAGS
11049 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
11050 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
11051 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
11053 $as_echo_n "checking for -lhal... " >&6; }
11054 if ${ac_cv_lib_soname_hal+:} false; then :
11055 $as_echo_n "(cached) " >&6
11056 else
11057 ac_check_soname_save_LIBS=$LIBS
11058 LIBS="-lhal $HAL_LIBS $LIBS"
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11062 /* Override any GCC internal prototype to avoid an error.
11063 Use char because int might match the return type of a GCC
11064 builtin and then its argument prototype would still apply. */
11065 #ifdef __cplusplus
11066 extern "C"
11067 #endif
11068 char libhal_ctx_new ();
11070 main ()
11072 return libhal_ctx_new ();
11074 return 0;
11076 _ACEOF
11077 if ac_fn_c_try_link "$LINENO"; then :
11078 case "$LIBEXT" in
11079 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11080 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'` ;;
11081 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11082 if test "x$ac_cv_lib_soname_hal" = x; then :
11083 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11084 fi ;;
11085 esac
11087 rm -f core conftest.err conftest.$ac_objext \
11088 conftest$ac_exeext conftest.$ac_ext
11089 LIBS=$ac_check_soname_save_LIBS
11091 if test "x$ac_cv_lib_soname_hal" = "x"; then :
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11093 $as_echo "not found" >&6; }
11094 HAL_CFLAGS=""
11095 else
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
11097 $as_echo "$ac_cv_lib_soname_hal" >&6; }
11099 cat >>confdefs.h <<_ACEOF
11100 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11101 _ACEOF
11105 else
11106 HAL_CFLAGS=""
11110 CPPFLAGS=$ac_save_CPPFLAGS
11111 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11112 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11114 if test "x$ac_cv_lib_soname_hal" = "x" -a \
11115 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11116 case "x$with_hal" in
11117 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
11118 xno) ;;
11119 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
11120 This is an error since --with-hal was requested." "$LINENO" 5 ;;
11121 esac
11125 if test "x$with_gnutls" != "xno"
11126 then
11127 if test -n "$GNUTLS_CFLAGS"; then :
11129 elif test -n "$PKG_CONFIG"; then :
11130 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
11133 if test -n "$GNUTLS_LIBS"; then :
11135 elif test -n "$PKG_CONFIG"; then :
11136 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
11140 ac_save_CPPFLAGS=$CPPFLAGS
11141 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
11142 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
11143 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146 #include <gnutls/gnutls.h>
11147 #include <gnutls/crypto.h>
11149 main ()
11151 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
11153 return 0;
11155 _ACEOF
11156 if ac_fn_c_try_compile "$LINENO"; then :
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
11158 $as_echo_n "checking for -lgnutls... " >&6; }
11159 if ${ac_cv_lib_soname_gnutls+:} false; then :
11160 $as_echo_n "(cached) " >&6
11161 else
11162 ac_check_soname_save_LIBS=$LIBS
11163 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
11164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h. */
11167 /* Override any GCC internal prototype to avoid an error.
11168 Use char because int might match the return type of a GCC
11169 builtin and then its argument prototype would still apply. */
11170 #ifdef __cplusplus
11171 extern "C"
11172 #endif
11173 char gnutls_global_init ();
11175 main ()
11177 return gnutls_global_init ();
11179 return 0;
11181 _ACEOF
11182 if ac_fn_c_try_link "$LINENO"; then :
11183 case "$LIBEXT" in
11184 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11185 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'` ;;
11186 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11187 if test "x$ac_cv_lib_soname_gnutls" = x; then :
11188 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11189 fi ;;
11190 esac
11192 rm -f core conftest.err conftest.$ac_objext \
11193 conftest$ac_exeext conftest.$ac_ext
11194 LIBS=$ac_check_soname_save_LIBS
11196 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11198 $as_echo "not found" >&6; }
11199 GNUTLS_CFLAGS=""
11200 else
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
11202 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
11204 cat >>confdefs.h <<_ACEOF
11205 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
11206 _ACEOF
11211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11212 else
11213 GNUTLS_CFLAGS=""
11217 CPPFLAGS=$ac_save_CPPFLAGS
11218 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11219 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11222 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11223 case "x$with_gnutls" in
11224 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
11225 xno) ;;
11226 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
11227 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
11228 esac
11231 CURSESLIBS=""
11232 if test "$ac_cv_header_ncurses_h" = "yes"
11233 then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
11235 $as_echo_n "checking for -lncurses... " >&6; }
11236 if ${ac_cv_lib_soname_ncurses+:} false; then :
11237 $as_echo_n "(cached) " >&6
11238 else
11239 ac_check_soname_save_LIBS=$LIBS
11240 LIBS="-lncurses $LIBS"
11241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11244 /* Override any GCC internal prototype to avoid an error.
11245 Use char because int might match the return type of a GCC
11246 builtin and then its argument prototype would still apply. */
11247 #ifdef __cplusplus
11248 extern "C"
11249 #endif
11250 char waddch ();
11252 main ()
11254 return waddch ();
11256 return 0;
11258 _ACEOF
11259 if ac_fn_c_try_link "$LINENO"; then :
11260 case "$LIBEXT" in
11261 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11262 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'` ;;
11263 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11264 if test "x$ac_cv_lib_soname_ncurses" = x; then :
11265 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11266 fi ;;
11267 esac
11269 rm -f core conftest.err conftest.$ac_objext \
11270 conftest$ac_exeext conftest.$ac_ext
11271 LIBS=$ac_check_soname_save_LIBS
11273 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11275 $as_echo "not found" >&6; }
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
11279 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
11281 cat >>confdefs.h <<_ACEOF
11282 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11283 _ACEOF
11285 CURSESLIBS="-lncurses"
11287 elif test "$ac_cv_header_curses_h" = "yes"
11288 then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
11290 $as_echo_n "checking for -lcurses... " >&6; }
11291 if ${ac_cv_lib_soname_curses+:} false; then :
11292 $as_echo_n "(cached) " >&6
11293 else
11294 ac_check_soname_save_LIBS=$LIBS
11295 LIBS="-lcurses $LIBS"
11296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11302 #ifdef __cplusplus
11303 extern "C"
11304 #endif
11305 char waddch ();
11307 main ()
11309 return waddch ();
11311 return 0;
11313 _ACEOF
11314 if ac_fn_c_try_link "$LINENO"; then :
11315 case "$LIBEXT" in
11316 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11317 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'` ;;
11318 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11319 if test "x$ac_cv_lib_soname_curses" = x; then :
11320 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11321 fi ;;
11322 esac
11324 rm -f core conftest.err conftest.$ac_objext \
11325 conftest$ac_exeext conftest.$ac_ext
11326 LIBS=$ac_check_soname_save_LIBS
11328 if test "x$ac_cv_lib_soname_curses" = "x"; then :
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11330 $as_echo "not found" >&6; }
11332 else
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
11334 $as_echo "$ac_cv_lib_soname_curses" >&6; }
11336 cat >>confdefs.h <<_ACEOF
11337 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11338 _ACEOF
11340 CURSESLIBS="-lcurses"
11343 ac_save_LIBS="$LIBS"
11344 LIBS="$LIBS $CURSESLIBS"
11345 for ac_func in mousemask
11346 do :
11347 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
11348 if test "x$ac_cv_func_mousemask" = xyes; then :
11349 cat >>confdefs.h <<_ACEOF
11350 #define HAVE_MOUSEMASK 1
11351 _ACEOF
11354 done
11356 LIBS="$ac_save_LIBS"
11357 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
11358 case "x$with_curses" in
11359 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
11360 xno) ;;
11361 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
11362 This is an error since --with-curses was requested." "$LINENO" 5 ;;
11363 esac
11366 if test "x$with_sane" != "xno"
11367 then
11368 if test -n "$SANE_CFLAGS"; then :
11370 elif test -n "$PKG_CONFIG"; then :
11371 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
11373 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
11374 if test -n "$SANE_LIBS"; then :
11376 elif test -n "$PKG_CONFIG"; then :
11377 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
11379 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
11381 ac_save_CPPFLAGS=$CPPFLAGS
11382 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
11383 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
11384 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
11386 $as_echo_n "checking for -lsane... " >&6; }
11387 if ${ac_cv_lib_soname_sane+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 ac_check_soname_save_LIBS=$LIBS
11391 LIBS="-lsane $SANE_LIBS $LIBS"
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11395 /* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11398 #ifdef __cplusplus
11399 extern "C"
11400 #endif
11401 char sane_init ();
11403 main ()
11405 return sane_init ();
11407 return 0;
11409 _ACEOF
11410 if ac_fn_c_try_link "$LINENO"; then :
11411 case "$LIBEXT" in
11412 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11413 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'` ;;
11414 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11415 if test "x$ac_cv_lib_soname_sane" = x; then :
11416 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11417 fi ;;
11418 esac
11420 rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
11422 LIBS=$ac_check_soname_save_LIBS
11424 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11426 $as_echo "not found" >&6; }
11427 SANE_CFLAGS=""
11428 else
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11430 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11432 cat >>confdefs.h <<_ACEOF
11433 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11434 _ACEOF
11438 else
11439 SANE_CFLAGS=""
11443 CPPFLAGS=$ac_save_CPPFLAGS
11444 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11445 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11448 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11449 case "x$with_sane" in
11450 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11451 xno) ;;
11452 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11453 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11454 esac
11457 if test "x$with_v4l" != "xno"
11458 then
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11460 $as_echo_n "checking for -lv4l1... " >&6; }
11461 if ${ac_cv_lib_soname_v4l1+:} false; then :
11462 $as_echo_n "(cached) " >&6
11463 else
11464 ac_check_soname_save_LIBS=$LIBS
11465 LIBS="-lv4l1 $LIBS"
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11469 /* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11472 #ifdef __cplusplus
11473 extern "C"
11474 #endif
11475 char v4l1_open ();
11477 main ()
11479 return v4l1_open ();
11481 return 0;
11483 _ACEOF
11484 if ac_fn_c_try_link "$LINENO"; then :
11485 case "$LIBEXT" in
11486 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11487 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'` ;;
11488 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11489 if test "x$ac_cv_lib_soname_v4l1" = x; then :
11490 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11491 fi ;;
11492 esac
11494 rm -f core conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496 LIBS=$ac_check_soname_save_LIBS
11498 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11500 $as_echo "not found" >&6; }
11502 else
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11504 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11506 cat >>confdefs.h <<_ACEOF
11507 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11508 _ACEOF
11513 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11514 case "x$with_v4l" in
11515 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11516 xno) ;;
11517 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11518 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11519 esac
11522 if test "x$with_gphoto" != "xno"
11523 then
11524 if test -n "$GPHOTO2_CFLAGS"; then :
11526 elif test -n "$PKG_CONFIG"; then :
11527 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11529 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11530 if test -n "$GPHOTO2_LIBS"; then :
11532 elif test -n "$PKG_CONFIG"; then :
11533 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11535 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11536 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11537 ac_save_CPPFLAGS=$CPPFLAGS
11538 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11539 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11540 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11542 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11543 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11544 $as_echo_n "(cached) " >&6
11545 else
11546 ac_check_lib_save_LIBS=$LIBS
11547 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11551 /* Override any GCC internal prototype to avoid an error.
11552 Use char because int might match the return type of a GCC
11553 builtin and then its argument prototype would still apply. */
11554 #ifdef __cplusplus
11555 extern "C"
11556 #endif
11557 char gp_camera_new ();
11559 main ()
11561 return gp_camera_new ();
11563 return 0;
11565 _ACEOF
11566 if ac_fn_c_try_link "$LINENO"; then :
11567 ac_cv_lib_gphoto2_gp_camera_new=yes
11568 else
11569 ac_cv_lib_gphoto2_gp_camera_new=no
11571 rm -f core conftest.err conftest.$ac_objext \
11572 conftest$ac_exeext conftest.$ac_ext
11573 LIBS=$ac_check_lib_save_LIBS
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11576 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11577 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11579 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11581 else
11582 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11585 else
11586 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11590 CPPFLAGS=$ac_save_CPPFLAGS
11591 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11592 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11594 if test -n "$GPHOTO2_PORT_CFLAGS"; then :
11596 elif test -n "$PKG_CONFIG"; then :
11597 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11599 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11600 if test -n "$GPHOTO2_PORT_LIBS"; then :
11602 elif test -n "$PKG_CONFIG"; then :
11603 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11605 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11606 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11607 ac_save_CPPFLAGS=$CPPFLAGS
11608 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11609 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11610 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11612 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11613 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 ac_check_lib_save_LIBS=$LIBS
11617 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11619 /* end confdefs.h. */
11621 /* Override any GCC internal prototype to avoid an error.
11622 Use char because int might match the return type of a GCC
11623 builtin and then its argument prototype would still apply. */
11624 #ifdef __cplusplus
11625 extern "C"
11626 #endif
11627 char gp_port_info_list_new ();
11629 main ()
11631 return gp_port_info_list_new ();
11633 return 0;
11635 _ACEOF
11636 if ac_fn_c_try_link "$LINENO"; then :
11637 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11638 else
11639 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11641 rm -f core conftest.err conftest.$ac_objext \
11642 conftest$ac_exeext conftest.$ac_ext
11643 LIBS=$ac_check_lib_save_LIBS
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11646 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11647 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11649 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11651 else
11652 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11655 else
11656 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11660 CPPFLAGS=$ac_save_CPPFLAGS
11661 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11662 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11665 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11666 case "x$with_gphoto" in
11667 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11668 xno) ;;
11669 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11670 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11671 esac
11673 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11674 case "x$with_gphoto" in
11675 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11676 xno) ;;
11677 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11678 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11679 esac
11683 if test "$ac_cv_header_resolv_h" = "yes"
11684 then
11685 ac_save_LIBS="$LIBS"
11686 for lib in '' -lresolv
11688 LIBS="$lib $ac_save_LIBS"
11689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h. */
11691 #ifdef HAVE_NETINET_IN_H
11692 #include <netinet/in.h>
11693 #endif
11694 #include <resolv.h>
11696 main ()
11698 res_query("foo",ns_c_in,0,0,0);
11700 return 0;
11702 _ACEOF
11703 if ac_fn_c_try_link "$LINENO"; then :
11705 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11707 RESOLVLIBS="$lib"
11710 rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712 if test "${RESOLVLIBS+set}" = set; then
11713 break
11715 done
11716 LIBS="$ac_save_LIBS"
11719 if test "x$with_lcms2" != "xno"
11720 then
11721 if test -n "$LCMS2_CFLAGS"; then :
11723 elif test -n "$PKG_CONFIG"; then :
11724 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
11727 if test -n "$LCMS2_LIBS"; then :
11729 elif test -n "$PKG_CONFIG"; then :
11730 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
11733 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
11734 ac_save_CPPFLAGS=$CPPFLAGS
11735 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
11736 for ac_header in lcms2.h
11737 do :
11738 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
11739 if test "x$ac_cv_header_lcms2_h" = xyes; then :
11740 cat >>confdefs.h <<_ACEOF
11741 #define HAVE_LCMS2_H 1
11742 _ACEOF
11746 done
11748 if test "$ac_cv_header_lcms2_h" = "yes"
11749 then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
11751 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
11752 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 ac_check_lib_save_LIBS=$LIBS
11756 LIBS="-llcms2 $LIBS"
11757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h. */
11760 /* Override any GCC internal prototype to avoid an error.
11761 Use char because int might match the return type of a GCC
11762 builtin and then its argument prototype would still apply. */
11763 #ifdef __cplusplus
11764 extern "C"
11765 #endif
11766 char cmsOpenProfileFromFile ();
11768 main ()
11770 return cmsOpenProfileFromFile ();
11772 return 0;
11774 _ACEOF
11775 if ac_fn_c_try_link "$LINENO"; then :
11776 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
11777 else
11778 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
11780 rm -f core conftest.err conftest.$ac_objext \
11781 conftest$ac_exeext conftest.$ac_ext
11782 LIBS=$ac_check_lib_save_LIBS
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
11785 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
11786 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
11788 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
11790 else
11791 LCMS2_LIBS=""
11794 else
11795 LCMS2_CFLAGS=""
11796 LCMS2_LIBS=""
11798 CPPFLAGS=$ac_save_CPPFLAGS
11799 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11800 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11803 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
11804 case "x$with_cms" in
11805 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
11806 xno) ;;
11807 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
11808 This is an error since --with-cms was requested." "$LINENO" 5 ;;
11809 esac
11812 if test "x$with_freetype" != "xno"
11813 then
11814 if test -n "$FREETYPE_CFLAGS"; then :
11816 elif test -n "$PKG_CONFIG"; then :
11817 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
11819 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
11820 if test -n "$FREETYPE_LIBS"; then :
11822 elif test -n "$PKG_CONFIG"; then :
11823 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
11825 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
11826 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
11827 ac_save_CPPFLAGS=$CPPFLAGS
11828 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
11829 for ac_header in ft2build.h
11830 do :
11831 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
11832 if test "x$ac_cv_header_ft2build_h" = xyes; then :
11833 cat >>confdefs.h <<_ACEOF
11834 #define HAVE_FT2BUILD_H 1
11835 _ACEOF
11839 done
11841 if test "$ac_cv_header_ft2build_h" = "yes"
11842 then
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
11844 $as_echo_n "checking for -lfreetype... " >&6; }
11845 if ${ac_cv_lib_soname_freetype+:} false; then :
11846 $as_echo_n "(cached) " >&6
11847 else
11848 ac_check_soname_save_LIBS=$LIBS
11849 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11853 /* Override any GCC internal prototype to avoid an error.
11854 Use char because int might match the return type of a GCC
11855 builtin and then its argument prototype would still apply. */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 char FT_Init_FreeType ();
11861 main ()
11863 return FT_Init_FreeType ();
11865 return 0;
11867 _ACEOF
11868 if ac_fn_c_try_link "$LINENO"; then :
11869 case "$LIBEXT" in
11870 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11871 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'` ;;
11872 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11873 if test "x$ac_cv_lib_soname_freetype" = x; then :
11874 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11875 fi ;;
11876 esac
11878 rm -f core conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11880 LIBS=$ac_check_soname_save_LIBS
11882 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11884 $as_echo "not found" >&6; }
11885 FREETYPE_LIBS=""
11886 else
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
11888 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
11890 cat >>confdefs.h <<_ACEOF
11891 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11892 _ACEOF
11895 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11897 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <ft2build.h>
11898 #include FT_MODULE_H
11900 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
11902 cat >>confdefs.h <<_ACEOF
11903 #define HAVE_FT_TRUETYPEENGINETYPE 1
11904 _ACEOF
11910 else
11911 FREETYPE_CFLAGS=""
11912 FREETYPE_LIBS=""
11914 CPPFLAGS=$ac_save_CPPFLAGS
11915 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11916 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11919 if test "x$ac_cv_lib_soname_freetype" = x; then :
11920 case "x$with_freetype" in
11921 xno) ;;
11922 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
11923 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
11924 esac
11926 test "x$ac_cv_lib_soname_freetype" = x && enable_fonts=${enable_fonts:-no}
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
11929 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
11930 if ${ac_cv_c_ppdev+:} false; then :
11931 $as_echo_n "(cached) " >&6
11932 else
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h. */
11935 #ifdef HAVE_SYS_IOCTL_H
11936 # include <sys/ioctl.h>
11937 #endif
11938 #include <linux/ppdev.h>
11940 main ()
11942 ioctl (1,PPCLAIM,0)
11944 return 0;
11946 _ACEOF
11947 if ac_fn_c_try_compile "$LINENO"; then :
11948 ac_cv_c_ppdev="yes"
11949 else
11950 ac_cv_c_ppdev="no"
11952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11955 $as_echo "$ac_cv_c_ppdev" >&6; }
11956 if test "$ac_cv_c_ppdev" = "yes"
11957 then
11959 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11963 ac_wine_check_funcs_save_LIBS="$LIBS"
11964 LIBS="$LIBS $LIBPTHREAD"
11965 for ac_func in \
11966 pthread_attr_get_np \
11967 pthread_getattr_np \
11968 pthread_getthreadid_np \
11969 pthread_get_stackaddr_np \
11970 pthread_get_stacksize_np
11971 do :
11972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11973 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11974 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11975 cat >>confdefs.h <<_ACEOF
11976 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11977 _ACEOF
11980 done
11982 LIBS="$ac_wine_check_funcs_save_LIBS"
11984 if test "$ac_cv_header_zlib_h" = "yes"
11985 then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11987 $as_echo_n "checking for inflate in -lz... " >&6; }
11988 if ${ac_cv_lib_z_inflate+:} false; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 ac_check_lib_save_LIBS=$LIBS
11992 LIBS="-lz $LIBS"
11993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11996 /* Override any GCC internal prototype to avoid an error.
11997 Use char because int might match the return type of a GCC
11998 builtin and then its argument prototype would still apply. */
11999 #ifdef __cplusplus
12000 extern "C"
12001 #endif
12002 char inflate ();
12004 main ()
12006 return inflate ();
12008 return 0;
12010 _ACEOF
12011 if ac_fn_c_try_link "$LINENO"; then :
12012 ac_cv_lib_z_inflate=yes
12013 else
12014 ac_cv_lib_z_inflate=no
12016 rm -f core conftest.err conftest.$ac_objext \
12017 conftest$ac_exeext conftest.$ac_ext
12018 LIBS=$ac_check_lib_save_LIBS
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12021 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12022 if test "x$ac_cv_lib_z_inflate" = xyes; then :
12024 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12026 ZLIB="-lz"
12031 if test "x$ZLIB" = "x"; then :
12032 case "x$with_zlib" in
12033 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
12034 xno) ;;
12035 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
12036 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
12037 esac
12040 if test "x$enable_tools" != xno
12041 then
12042 if test "$ac_cv_header_gettext_po_h" = "yes"
12043 then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
12045 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
12046 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 ac_check_lib_save_LIBS=$LIBS
12050 LIBS="-lgettextpo $LIBS"
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12054 /* Override any GCC internal prototype to avoid an error.
12055 Use char because int might match the return type of a GCC
12056 builtin and then its argument prototype would still apply. */
12057 #ifdef __cplusplus
12058 extern "C"
12059 #endif
12060 char po_message_msgctxt ();
12062 main ()
12064 return po_message_msgctxt ();
12066 return 0;
12068 _ACEOF
12069 if ac_fn_c_try_link "$LINENO"; then :
12070 ac_cv_lib_gettextpo_po_message_msgctxt=yes
12071 else
12072 ac_cv_lib_gettextpo_po_message_msgctxt=no
12074 rm -f core conftest.err conftest.$ac_objext \
12075 conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
12079 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
12080 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
12082 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
12084 LIBGETTEXTPO="-lgettextpo"
12089 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
12090 case "x$with_gettextpo" in
12091 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
12092 xno) ;;
12093 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
12094 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
12095 esac
12099 if test "x$with_gstreamer" != "xno"
12100 then
12101 if test -n "$GSTREAMER_CFLAGS"; then :
12103 elif test -n "$PKG_CONFIG"; then :
12104 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
12107 if test -n "$GSTREAMER_LIBS"; then :
12109 elif test -n "$PKG_CONFIG"; then :
12110 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
12114 ac_save_CPPFLAGS=$CPPFLAGS
12115 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
12116 ac_gst_incl=""
12117 for i in $GSTREAMER_CFLAGS
12119 case "$i" in
12120 -I*) ac_gst_incl="$ac_gst_incl $i";;
12121 esac
12122 done
12123 GSTREAMER_CFLAGS=$ac_gst_incl
12124 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
12125 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
12126 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
12127 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
12128 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
12130 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133 #include <gst/app/gstappsink.h>
12135 main ()
12137 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
12139 return 0;
12141 _ACEOF
12142 if ac_fn_c_try_compile "$LINENO"; then :
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12144 $as_echo "yes" >&6; }
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
12146 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
12147 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
12148 $as_echo_n "(cached) " >&6
12149 else
12150 ac_check_lib_save_LIBS=$LIBS
12151 LIBS="-lgstreamer-0.10 $LIBS"
12152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h. */
12155 /* Override any GCC internal prototype to avoid an error.
12156 Use char because int might match the return type of a GCC
12157 builtin and then its argument prototype would still apply. */
12158 #ifdef __cplusplus
12159 extern "C"
12160 #endif
12161 char gst_pad_get_caps_reffed ();
12163 main ()
12165 return gst_pad_get_caps_reffed ();
12167 return 0;
12169 _ACEOF
12170 if ac_fn_c_try_link "$LINENO"; then :
12171 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
12172 else
12173 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
12175 rm -f core conftest.err conftest.$ac_objext \
12176 conftest$ac_exeext conftest.$ac_ext
12177 LIBS=$ac_check_lib_save_LIBS
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
12180 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
12181 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
12183 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
12184 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 ac_check_lib_save_LIBS=$LIBS
12188 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12192 /* Override any GCC internal prototype to avoid an error.
12193 Use char because int might match the return type of a GCC
12194 builtin and then its argument prototype would still apply. */
12195 #ifdef __cplusplus
12196 extern "C"
12197 #endif
12198 char gst_app_buffer_new ();
12200 main ()
12202 return gst_app_buffer_new ();
12204 return 0;
12206 _ACEOF
12207 if ac_fn_c_try_link "$LINENO"; then :
12208 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
12209 else
12210 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
12212 rm -f core conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12214 LIBS=$ac_check_lib_save_LIBS
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
12217 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
12218 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
12224 else
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12226 $as_echo "no" >&6; }
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232 else
12233 GSTREAMER_CFLAGS=""
12237 CPPFLAGS=$ac_save_CPPFLAGS
12238 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12239 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12242 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
12243 case "x$with_gstreamer" in
12244 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
12245 xno) ;;
12246 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
12247 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
12248 esac
12250 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
12252 ALSALIBS=""
12254 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12255 then
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
12257 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
12258 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 ac_check_lib_save_LIBS=$LIBS
12262 LIBS="-lasound $LIBS"
12263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12264 /* end confdefs.h. */
12266 /* Override any GCC internal prototype to avoid an error.
12267 Use char because int might match the return type of a GCC
12268 builtin and then its argument prototype would still apply. */
12269 #ifdef __cplusplus
12270 extern "C"
12271 #endif
12272 char snd_pcm_hw_params_get_access_mask ();
12274 main ()
12276 return snd_pcm_hw_params_get_access_mask ();
12278 return 0;
12280 _ACEOF
12281 if ac_fn_c_try_link "$LINENO"; then :
12282 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
12283 else
12284 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
12286 rm -f core conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12288 LIBS=$ac_check_lib_save_LIBS
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
12291 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
12292 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12295 #ifdef HAVE_ALSA_ASOUNDLIB_H
12296 #include <alsa/asoundlib.h>
12297 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12298 #include <sys/asoundlib.h>
12299 #endif
12301 main ()
12303 snd_pcm_hw_params_get_access_mask(NULL, NULL)
12305 return 0;
12307 _ACEOF
12308 if ac_fn_c_try_compile "$LINENO"; then :
12309 ALSALIBS="-lasound"
12311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12316 if test "x$with_oss" != xno
12317 then
12318 ac_save_CPPFLAGS="$CPPFLAGS"
12319 if test -f /etc/oss.conf
12320 then
12321 . /etc/oss.conf
12323 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
12324 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
12325 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12326 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12327 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
12329 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
12331 cat >>confdefs.h <<_ACEOF
12332 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
12333 _ACEOF
12335 OSS4INCL="$ac_oss_incl"
12342 CPPFLAGS="$ac_save_CPPFLAGS"
12343 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
12344 then
12345 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
12349 if test "x$with_capi" != "xno"
12350 then
12351 if test -n "$CAPI20_CFLAGS"; then :
12353 elif test -n "$PKG_CONFIG"; then :
12354 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
12357 if test -n "$CAPI20_LIBS"; then :
12359 elif test -n "$PKG_CONFIG"; then :
12360 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
12364 ac_save_CPPFLAGS=$CPPFLAGS
12365 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
12366 for ac_header in capi20.h linux/capi.h
12367 do :
12368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12369 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
12371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12372 cat >>confdefs.h <<_ACEOF
12373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12374 _ACEOF
12378 done
12380 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12381 then
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12383 $as_echo_n "checking for -lcapi20... " >&6; }
12384 if ${ac_cv_lib_soname_capi20+:} false; then :
12385 $as_echo_n "(cached) " >&6
12386 else
12387 ac_check_soname_save_LIBS=$LIBS
12388 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h. */
12392 /* Override any GCC internal prototype to avoid an error.
12393 Use char because int might match the return type of a GCC
12394 builtin and then its argument prototype would still apply. */
12395 #ifdef __cplusplus
12396 extern "C"
12397 #endif
12398 char capi20_register ();
12400 main ()
12402 return capi20_register ();
12404 return 0;
12406 _ACEOF
12407 if ac_fn_c_try_link "$LINENO"; then :
12408 case "$LIBEXT" in
12409 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12410 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'` ;;
12411 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12412 if test "x$ac_cv_lib_soname_capi20" = x; then :
12413 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12414 fi ;;
12415 esac
12417 rm -f core conftest.err conftest.$ac_objext \
12418 conftest$ac_exeext conftest.$ac_ext
12419 LIBS=$ac_check_soname_save_LIBS
12421 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12423 $as_echo "not found" >&6; }
12425 else
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12427 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12429 cat >>confdefs.h <<_ACEOF
12430 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12431 _ACEOF
12436 CPPFLAGS=$ac_save_CPPFLAGS
12437 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12438 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12441 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12442 case "x$with_capi" in
12443 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12444 xno) ;;
12445 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12446 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12447 esac
12450 CUPSINCL=""
12452 if test "x$with_cups" != "xno"
12453 then
12454 ac_save_CPPFLAGS="$CPPFLAGS"
12455 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12456 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12457 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12458 for ac_header in cups/cups.h
12459 do :
12460 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12461 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12462 cat >>confdefs.h <<_ACEOF
12463 #define HAVE_CUPS_CUPS_H 1
12464 _ACEOF
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12466 $as_echo_n "checking for -lcups... " >&6; }
12467 if ${ac_cv_lib_soname_cups+:} false; then :
12468 $as_echo_n "(cached) " >&6
12469 else
12470 ac_check_soname_save_LIBS=$LIBS
12471 LIBS="-lcups $ac_cups_libs $LIBS"
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12475 /* Override any GCC internal prototype to avoid an error.
12476 Use char because int might match the return type of a GCC
12477 builtin and then its argument prototype would still apply. */
12478 #ifdef __cplusplus
12479 extern "C"
12480 #endif
12481 char cupsGetDefault ();
12483 main ()
12485 return cupsGetDefault ();
12487 return 0;
12489 _ACEOF
12490 if ac_fn_c_try_link "$LINENO"; then :
12491 case "$LIBEXT" in
12492 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12493 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'` ;;
12494 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12495 if test "x$ac_cv_lib_soname_cups" = x; then :
12496 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12497 fi ;;
12498 esac
12500 rm -f core conftest.err conftest.$ac_objext \
12501 conftest$ac_exeext conftest.$ac_ext
12502 LIBS=$ac_check_soname_save_LIBS
12504 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12506 $as_echo "not found" >&6; }
12508 else
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12510 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12512 cat >>confdefs.h <<_ACEOF
12513 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12514 _ACEOF
12516 CUPSINCL="$ac_cups_cflags"
12520 done
12522 CPPFLAGS="$ac_save_CPPFLAGS"
12524 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12525 case "x$with_cups" in
12526 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12527 xno) ;;
12528 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12529 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12530 esac
12533 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12534 then
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12536 $as_echo_n "checking for -lfontconfig... " >&6; }
12537 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12538 $as_echo_n "(cached) " >&6
12539 else
12540 ac_check_soname_save_LIBS=$LIBS
12541 LIBS="-lfontconfig $LIBS"
12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h. */
12545 /* Override any GCC internal prototype to avoid an error.
12546 Use char because int might match the return type of a GCC
12547 builtin and then its argument prototype would still apply. */
12548 #ifdef __cplusplus
12549 extern "C"
12550 #endif
12551 char FcInit ();
12553 main ()
12555 return FcInit ();
12557 return 0;
12559 _ACEOF
12560 if ac_fn_c_try_link "$LINENO"; then :
12561 case "$LIBEXT" in
12562 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12563 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'` ;;
12564 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12565 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12566 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12567 fi ;;
12568 esac
12570 rm -f core conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
12572 LIBS=$ac_check_soname_save_LIBS
12574 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12576 $as_echo "not found" >&6; }
12578 else
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12580 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12582 cat >>confdefs.h <<_ACEOF
12583 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12584 _ACEOF
12588 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
12589 then
12590 ac_save_CPPFLAGS="$CPPFLAGS"
12591 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12592 $as_unset ac_cv_header_fontconfig_fontconfig_h
12593 for ac_header in fontconfig/fontconfig.h
12594 do :
12595 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12596 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12597 cat >>confdefs.h <<_ACEOF
12598 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12599 _ACEOF
12603 done
12605 CPPFLAGS="$ac_save_CPPFLAGS"
12606 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12607 then
12608 FONTCONFIGINCL="$X_CFLAGS"
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12611 $as_echo_n "checking for -lfontconfig... " >&6; }
12612 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12613 $as_echo_n "(cached) " >&6
12614 else
12615 ac_check_soname_save_LIBS=$LIBS
12616 LIBS="-lfontconfig $X_LIBS $LIBS"
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12620 /* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12623 #ifdef __cplusplus
12624 extern "C"
12625 #endif
12626 char FcInit ();
12628 main ()
12630 return FcInit ();
12632 return 0;
12634 _ACEOF
12635 if ac_fn_c_try_link "$LINENO"; then :
12636 case "$LIBEXT" in
12637 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12638 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'` ;;
12639 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12640 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12641 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12642 fi ;;
12643 esac
12645 rm -f core conftest.err conftest.$ac_objext \
12646 conftest$ac_exeext conftest.$ac_ext
12647 LIBS=$ac_check_soname_save_LIBS
12649 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12651 $as_echo "not found" >&6; }
12653 else
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12655 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12657 cat >>confdefs.h <<_ACEOF
12658 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12659 _ACEOF
12665 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12666 case "x$with_fontconfig" in
12667 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12668 xno) ;;
12669 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12670 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12671 esac
12674 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12675 then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12677 $as_echo_n "checking for -lgsm... " >&6; }
12678 if ${ac_cv_lib_soname_gsm+:} false; then :
12679 $as_echo_n "(cached) " >&6
12680 else
12681 ac_check_soname_save_LIBS=$LIBS
12682 LIBS="-lgsm $LIBS"
12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h. */
12686 /* Override any GCC internal prototype to avoid an error.
12687 Use char because int might match the return type of a GCC
12688 builtin and then its argument prototype would still apply. */
12689 #ifdef __cplusplus
12690 extern "C"
12691 #endif
12692 char gsm_create ();
12694 main ()
12696 return gsm_create ();
12698 return 0;
12700 _ACEOF
12701 if ac_fn_c_try_link "$LINENO"; then :
12702 case "$LIBEXT" in
12703 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12704 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'` ;;
12705 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12706 if test "x$ac_cv_lib_soname_gsm" = x; then :
12707 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12708 fi ;;
12709 esac
12711 rm -f core conftest.err conftest.$ac_objext \
12712 conftest$ac_exeext conftest.$ac_ext
12713 LIBS=$ac_check_soname_save_LIBS
12715 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12717 $as_echo "not found" >&6; }
12719 else
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12721 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12723 cat >>confdefs.h <<_ACEOF
12724 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12725 _ACEOF
12730 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12731 case "x$with_gsm" in
12732 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12733 xno) ;;
12734 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12735 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12736 esac
12739 if test "x$with_jpeg" != "xno"
12740 then
12741 if test -n "$JPEG_CFLAGS"; then :
12743 elif test -n "$PKG_CONFIG"; then :
12744 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
12747 if test -n "$JPEG_LIBS"; then :
12749 elif test -n "$PKG_CONFIG"; then :
12750 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
12754 ac_save_CPPFLAGS=$CPPFLAGS
12755 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
12756 for ac_header in jpeglib.h
12757 do :
12758 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12759 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12760 cat >>confdefs.h <<_ACEOF
12761 #define HAVE_JPEGLIB_H 1
12762 _ACEOF
12766 done
12768 if test "$ac_cv_header_jpeglib_h" = "yes"
12769 then
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
12771 $as_echo_n "checking for -ljpeg... " >&6; }
12772 if ${ac_cv_lib_soname_jpeg+:} false; then :
12773 $as_echo_n "(cached) " >&6
12774 else
12775 ac_check_soname_save_LIBS=$LIBS
12776 LIBS="-ljpeg $JPEG_LIBS $LIBS"
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12780 /* Override any GCC internal prototype to avoid an error.
12781 Use char because int might match the return type of a GCC
12782 builtin and then its argument prototype would still apply. */
12783 #ifdef __cplusplus
12784 extern "C"
12785 #endif
12786 char jpeg_start_decompress ();
12788 main ()
12790 return jpeg_start_decompress ();
12792 return 0;
12794 _ACEOF
12795 if ac_fn_c_try_link "$LINENO"; then :
12796 case "$LIBEXT" in
12797 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12798 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'` ;;
12799 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12800 if test "x$ac_cv_lib_soname_jpeg" = x; then :
12801 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12802 fi ;;
12803 esac
12805 rm -f core conftest.err conftest.$ac_objext \
12806 conftest$ac_exeext conftest.$ac_ext
12807 LIBS=$ac_check_soname_save_LIBS
12809 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12811 $as_echo "not found" >&6; }
12812 JPEG_CFLAGS=""
12813 else
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
12815 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
12817 cat >>confdefs.h <<_ACEOF
12818 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
12819 _ACEOF
12823 else
12824 JPEG_CFLAGS=""
12826 CPPFLAGS=$ac_save_CPPFLAGS
12827 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12828 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12831 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12832 case "x$with_jpeg" in
12833 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
12834 xno) ;;
12835 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
12836 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
12837 esac
12840 if test "x$with_png" != "xno"
12841 then
12842 if test -n "$PNG_CFLAGS"; then :
12844 elif test -n "$PKG_CONFIG"; then :
12845 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
12847 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
12848 if test -n "$PNG_LIBS"; then :
12850 elif test -n "$PKG_CONFIG"; then :
12851 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
12853 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
12855 ac_save_CPPFLAGS=$CPPFLAGS
12856 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
12857 for ac_header in png.h
12858 do :
12859 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12860 if test "x$ac_cv_header_png_h" = xyes; then :
12861 cat >>confdefs.h <<_ACEOF
12862 #define HAVE_PNG_H 1
12863 _ACEOF
12867 done
12869 if test "$ac_cv_header_png_h" = "yes"
12870 then
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
12872 $as_echo_n "checking for -lpng... " >&6; }
12873 if ${ac_cv_lib_soname_png+:} false; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 ac_check_soname_save_LIBS=$LIBS
12877 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12881 /* Override any GCC internal prototype to avoid an error.
12882 Use char because int might match the return type of a GCC
12883 builtin and then its argument prototype would still apply. */
12884 #ifdef __cplusplus
12885 extern "C"
12886 #endif
12887 char png_create_read_struct ();
12889 main ()
12891 return png_create_read_struct ();
12893 return 0;
12895 _ACEOF
12896 if ac_fn_c_try_link "$LINENO"; then :
12897 case "$LIBEXT" in
12898 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12899 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'` ;;
12900 *) 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'`
12901 if test "x$ac_cv_lib_soname_png" = x; then :
12902 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12903 fi ;;
12904 esac
12906 rm -f core conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12908 LIBS=$ac_check_soname_save_LIBS
12910 if test "x$ac_cv_lib_soname_png" = "x"; then :
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12912 $as_echo "not found" >&6; }
12913 PNG_CFLAGS=""
12914 else
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
12916 $as_echo "$ac_cv_lib_soname_png" >&6; }
12918 cat >>confdefs.h <<_ACEOF
12919 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
12920 _ACEOF
12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923 /* end confdefs.h. */
12924 #include <png.h>
12926 main ()
12928 typeof(png_set_expand_gray_1_2_4_to_8) *p
12930 return 0;
12932 _ACEOF
12933 if ac_fn_c_try_compile "$LINENO"; then :
12935 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12940 else
12941 PNG_CFLAGS=""
12943 CPPFLAGS=$ac_save_CPPFLAGS
12944 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12945 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12948 if test "x$ac_cv_lib_soname_png" = "x"; then :
12949 case "x$with_png" in
12950 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12951 xno) ;;
12952 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12953 This is an error since --with-png was requested." "$LINENO" 5 ;;
12954 esac
12957 if test "x$with_tiff" != "xno"
12958 then
12959 if test -n "$TIFF_CFLAGS"; then :
12961 elif test -n "$PKG_CONFIG"; then :
12962 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
12965 if test -n "$TIFF_LIBS"; then :
12967 elif test -n "$PKG_CONFIG"; then :
12968 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
12972 ac_save_CPPFLAGS=$CPPFLAGS
12973 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
12974 for ac_header in tiffio.h
12975 do :
12976 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12977 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12978 cat >>confdefs.h <<_ACEOF
12979 #define HAVE_TIFFIO_H 1
12980 _ACEOF
12984 done
12986 if test "$ac_cv_header_tiffio_h" = "yes"
12987 then
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12989 $as_echo_n "checking for -ltiff... " >&6; }
12990 if ${ac_cv_lib_soname_tiff+:} false; then :
12991 $as_echo_n "(cached) " >&6
12992 else
12993 ac_check_soname_save_LIBS=$LIBS
12994 LIBS="-ltiff $TIFF_LIBS $LIBS"
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12998 /* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13001 #ifdef __cplusplus
13002 extern "C"
13003 #endif
13004 char TIFFClientOpen ();
13006 main ()
13008 return TIFFClientOpen ();
13010 return 0;
13012 _ACEOF
13013 if ac_fn_c_try_link "$LINENO"; then :
13014 case "$LIBEXT" in
13015 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13016 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'` ;;
13017 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13018 if test "x$ac_cv_lib_soname_tiff" = x; then :
13019 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13020 fi ;;
13021 esac
13023 rm -f core conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
13025 LIBS=$ac_check_soname_save_LIBS
13027 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13029 $as_echo "not found" >&6; }
13031 else
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
13033 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
13035 cat >>confdefs.h <<_ACEOF
13036 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
13037 _ACEOF
13042 CPPFLAGS=$ac_save_CPPFLAGS
13043 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13044 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13047 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13048 case "x$with_tiff" in
13049 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
13050 xno) ;;
13051 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
13052 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
13053 esac
13056 if test "x$with_mpg123" != "xno"
13057 then
13058 if test -n "$MPG123_CFLAGS"; then :
13060 elif test -n "$PKG_CONFIG"; then :
13061 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
13064 if test -n "$MPG123_LIBS"; then :
13066 elif test -n "$PKG_CONFIG"; then :
13067 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
13070 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
13071 ac_save_CPPFLAGS=$CPPFLAGS
13072 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
13073 for ac_header in mpg123.h
13074 do :
13075 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
13076 if test "x$ac_cv_header_mpg123_h" = xyes; then :
13077 cat >>confdefs.h <<_ACEOF
13078 #define HAVE_MPG123_H 1
13079 _ACEOF
13083 done
13085 if test "$ac_cv_header_mpg123_h" = "yes"
13086 then
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
13088 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
13089 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092 ac_check_lib_save_LIBS=$LIBS
13093 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13097 /* Override any GCC internal prototype to avoid an error.
13098 Use char because int might match the return type of a GCC
13099 builtin and then its argument prototype would still apply. */
13100 #ifdef __cplusplus
13101 extern "C"
13102 #endif
13103 char mpg123_feed ();
13105 main ()
13107 return mpg123_feed ();
13109 return 0;
13111 _ACEOF
13112 if ac_fn_c_try_link "$LINENO"; then :
13113 ac_cv_lib_mpg123_mpg123_feed=yes
13114 else
13115 ac_cv_lib_mpg123_mpg123_feed=no
13117 rm -f core conftest.err conftest.$ac_objext \
13118 conftest$ac_exeext conftest.$ac_ext
13119 LIBS=$ac_check_lib_save_LIBS
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
13122 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
13123 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
13125 else
13126 MPG123_LIBS=""
13129 else
13130 MPG123_CFLAGS=""
13131 MPG123_LIBS=""
13133 CPPFLAGS=$ac_save_CPPFLAGS
13134 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13135 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13138 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
13139 case "x$with_mpg123" in
13140 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
13141 xno) ;;
13142 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
13143 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
13144 esac
13146 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}
13148 if test "$ac_cv_header_AL_al_h" = "yes"
13149 then
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
13151 $as_echo_n "checking for -lopenal... " >&6; }
13152 if ${ac_cv_lib_soname_openal+:} false; then :
13153 $as_echo_n "(cached) " >&6
13154 else
13155 ac_check_soname_save_LIBS=$LIBS
13156 LIBS="-lopenal $LIBS"
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13160 /* Override any GCC internal prototype to avoid an error.
13161 Use char because int might match the return type of a GCC
13162 builtin and then its argument prototype would still apply. */
13163 #ifdef __cplusplus
13164 extern "C"
13165 #endif
13166 char alGetSource3i ();
13168 main ()
13170 return alGetSource3i ();
13172 return 0;
13174 _ACEOF
13175 if ac_fn_c_try_link "$LINENO"; then :
13176 case "$LIBEXT" in
13177 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13178 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'` ;;
13179 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13180 if test "x$ac_cv_lib_soname_openal" = x; then :
13181 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13182 fi ;;
13183 esac
13185 rm -f core conftest.err conftest.$ac_objext \
13186 conftest$ac_exeext conftest.$ac_ext
13187 LIBS=$ac_check_soname_save_LIBS
13189 if test "x$ac_cv_lib_soname_openal" = "x"; then :
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13191 $as_echo "not found" >&6; }
13193 else
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
13195 $as_echo "$ac_cv_lib_soname_openal" >&6; }
13197 cat >>confdefs.h <<_ACEOF
13198 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
13199 _ACEOF
13201 LIBOPENAL="-lopenal"
13203 ac_cv_lib_openal=yes
13205 cat >>confdefs.h <<_ACEOF
13206 #define HAVE_OPENAL 1
13207 _ACEOF
13211 if test "x$ac_cv_lib_openal" != xyes; then :
13212 case "x$with_openal" in
13213 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
13214 xno) ;;
13215 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
13216 This is an error since --with-openal was requested." "$LINENO" 5 ;;
13217 esac
13219 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
13221 if test "$ac_cv_header_kstat_h" = "yes"
13222 then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13224 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13225 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13226 $as_echo_n "(cached) " >&6
13227 else
13228 ac_check_lib_save_LIBS=$LIBS
13229 LIBS="-lkstat $LIBS"
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h. */
13233 /* Override any GCC internal prototype to avoid an error.
13234 Use char because int might match the return type of a GCC
13235 builtin and then its argument prototype would still apply. */
13236 #ifdef __cplusplus
13237 extern "C"
13238 #endif
13239 char kstat_open ();
13241 main ()
13243 return kstat_open ();
13245 return 0;
13247 _ACEOF
13248 if ac_fn_c_try_link "$LINENO"; then :
13249 ac_cv_lib_kstat_kstat_open=yes
13250 else
13251 ac_cv_lib_kstat_kstat_open=no
13253 rm -f core conftest.err conftest.$ac_objext \
13254 conftest$ac_exeext conftest.$ac_ext
13255 LIBS=$ac_check_lib_save_LIBS
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13258 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13259 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13261 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
13263 LIBKSTAT="-lkstat"
13269 if test "$ac_cv_header_libprocstat_h" = "yes"
13270 then
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
13272 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
13273 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
13274 $as_echo_n "(cached) " >&6
13275 else
13276 ac_check_lib_save_LIBS=$LIBS
13277 LIBS="-lprocstat $LIBS"
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13281 /* Override any GCC internal prototype to avoid an error.
13282 Use char because int might match the return type of a GCC
13283 builtin and then its argument prototype would still apply. */
13284 #ifdef __cplusplus
13285 extern "C"
13286 #endif
13287 char procstat_open_sysctl ();
13289 main ()
13291 return procstat_open_sysctl ();
13293 return 0;
13295 _ACEOF
13296 if ac_fn_c_try_link "$LINENO"; then :
13297 ac_cv_lib_procstat_procstat_open_sysctl=yes
13298 else
13299 ac_cv_lib_procstat_procstat_open_sysctl=no
13301 rm -f core conftest.err conftest.$ac_objext \
13302 conftest$ac_exeext conftest.$ac_ext
13303 LIBS=$ac_check_lib_save_LIBS
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
13306 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
13307 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
13309 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
13311 LIBPROCSTAT="-lprocstat"
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
13318 $as_echo_n "checking for -lodbc... " >&6; }
13319 if ${ac_cv_lib_soname_odbc+:} false; then :
13320 $as_echo_n "(cached) " >&6
13321 else
13322 ac_check_soname_save_LIBS=$LIBS
13323 LIBS="-lodbc $LIBS"
13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325 /* end confdefs.h. */
13327 /* Override any GCC internal prototype to avoid an error.
13328 Use char because int might match the return type of a GCC
13329 builtin and then its argument prototype would still apply. */
13330 #ifdef __cplusplus
13331 extern "C"
13332 #endif
13333 char SQLConnect ();
13335 main ()
13337 return SQLConnect ();
13339 return 0;
13341 _ACEOF
13342 if ac_fn_c_try_link "$LINENO"; then :
13343 case "$LIBEXT" in
13344 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13345 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'` ;;
13346 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13347 if test "x$ac_cv_lib_soname_odbc" = x; then :
13348 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13349 fi ;;
13350 esac
13352 rm -f core conftest.err conftest.$ac_objext \
13353 conftest$ac_exeext conftest.$ac_ext
13354 LIBS=$ac_check_soname_save_LIBS
13356 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13358 $as_echo "not found" >&6; }
13359 cat >>confdefs.h <<_ACEOF
13360 #define SONAME_LIBODBC "libodbc.$LIBEXT"
13361 _ACEOF
13363 else
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
13365 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
13367 cat >>confdefs.h <<_ACEOF
13368 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
13369 _ACEOF
13374 if test "x$with_netapi" != "xno"
13375 then
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13377 $as_echo_n "checking for -lnetapi... " >&6; }
13378 if ${ac_cv_lib_soname_netapi+:} false; then :
13379 $as_echo_n "(cached) " >&6
13380 else
13381 ac_check_soname_save_LIBS=$LIBS
13382 LIBS="-lnetapi $LIBS"
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13386 /* Override any GCC internal prototype to avoid an error.
13387 Use char because int might match the return type of a GCC
13388 builtin and then its argument prototype would still apply. */
13389 #ifdef __cplusplus
13390 extern "C"
13391 #endif
13392 char libnetapi_init ();
13394 main ()
13396 return libnetapi_init ();
13398 return 0;
13400 _ACEOF
13401 if ac_fn_c_try_link "$LINENO"; then :
13402 case "$LIBEXT" in
13403 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13404 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'` ;;
13405 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13406 if test "x$ac_cv_lib_soname_netapi" = x; then :
13407 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13408 fi ;;
13409 esac
13411 rm -f core conftest.err conftest.$ac_objext \
13412 conftest$ac_exeext conftest.$ac_ext
13413 LIBS=$ac_check_soname_save_LIBS
13415 if test "x$ac_cv_lib_soname_netapi" = "x"; then :
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13417 $as_echo "not found" >&6; }
13418 cat >>confdefs.h <<_ACEOF
13419 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13420 _ACEOF
13422 else
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13424 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13426 cat >>confdefs.h <<_ACEOF
13427 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13428 _ACEOF
13434 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13435 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13436 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13437 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13439 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
13440 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13441 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13442 then
13443 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13447 EXTRACFLAGS=""
13449 if test "x${GCC}" = "xyes"
13450 then
13451 EXTRACFLAGS="-Wall -pipe"
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13454 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13455 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13456 $as_echo_n "(cached) " >&6
13457 else
13458 if test "$cross_compiling" = yes; then :
13459 ac_cv_c_gcc_strength_bug="yes"
13460 else
13461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13462 /* end confdefs.h. */
13463 int L[4] = {0,1,2,3};
13465 main ()
13467 static int Array[3];
13468 unsigned int B = 3;
13469 int i;
13470 for(i=0; i<B; i++) Array[i] = i - 3;
13471 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13472 L[i] = 4;
13473 return (Array[1] != -2 || L[2] != 3)
13475 return 0;
13477 _ACEOF
13478 if ac_fn_c_try_run "$LINENO"; then :
13479 ac_cv_c_gcc_strength_bug="no"
13480 else
13481 ac_cv_c_gcc_strength_bug="yes"
13483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13484 conftest.$ac_objext conftest.beam conftest.$ac_ext
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13489 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13490 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13491 then
13492 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13496 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13497 if ${ac_cv_cflags__fno_builtin+:} false; then :
13498 $as_echo_n "(cached) " >&6
13499 else
13500 ac_wine_try_cflags_saved=$CFLAGS
13501 CFLAGS="$CFLAGS -fno-builtin"
13502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13503 /* end confdefs.h. */
13504 int main(int argc, char **argv) { return 0; }
13505 _ACEOF
13506 if ac_fn_c_try_link "$LINENO"; then :
13507 ac_cv_cflags__fno_builtin=yes
13508 else
13509 ac_cv_cflags__fno_builtin=no
13511 rm -f core conftest.err conftest.$ac_objext \
13512 conftest$ac_exeext conftest.$ac_ext
13513 CFLAGS=$ac_wine_try_cflags_saved
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13516 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13517 if test $ac_cv_cflags__fno_builtin = yes; then :
13518 BUILTINFLAG="-fno-builtin"
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13522 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13523 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 ac_wine_try_cflags_saved=$CFLAGS
13527 CFLAGS="$CFLAGS -fno-strict-aliasing"
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530 int main(int argc, char **argv) { return 0; }
13531 _ACEOF
13532 if ac_fn_c_try_link "$LINENO"; then :
13533 ac_cv_cflags__fno_strict_aliasing=yes
13534 else
13535 ac_cv_cflags__fno_strict_aliasing=no
13537 rm -f core conftest.err conftest.$ac_objext \
13538 conftest$ac_exeext conftest.$ac_ext
13539 CFLAGS=$ac_wine_try_cflags_saved
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13542 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13543 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
13544 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13546 saved_CFLAGS=$CFLAGS
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13548 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13549 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13550 $as_echo_n "(cached) " >&6
13551 else
13552 ac_wine_try_cflags_saved=$CFLAGS
13553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556 int main(int argc, char **argv) { return 0; }
13557 _ACEOF
13558 if ac_fn_c_try_link "$LINENO"; then :
13559 ac_cv_cflags__Werror_unknown_warning_option=yes
13560 else
13561 ac_cv_cflags__Werror_unknown_warning_option=no
13563 rm -f core conftest.err conftest.$ac_objext \
13564 conftest$ac_exeext conftest.$ac_ext
13565 CFLAGS=$ac_wine_try_cflags_saved
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
13568 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13569 if test $ac_cv_cflags__Werror_unknown_warning_option = yes; then :
13570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13573 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13574 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13575 $as_echo_n "(cached) " >&6
13576 else
13577 ac_wine_try_cflags_saved=$CFLAGS
13578 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13580 /* end confdefs.h. */
13581 int main(int argc, char **argv) { return 0; }
13582 _ACEOF
13583 if ac_fn_c_try_link "$LINENO"; then :
13584 ac_cv_cflags__Wdeclaration_after_statement=yes
13585 else
13586 ac_cv_cflags__Wdeclaration_after_statement=no
13588 rm -f core conftest.err conftest.$ac_objext \
13589 conftest$ac_exeext conftest.$ac_ext
13590 CFLAGS=$ac_wine_try_cflags_saved
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13593 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13594 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
13595 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13598 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13599 if ${ac_cv_cflags__Wempty_body+:} false; then :
13600 $as_echo_n "(cached) " >&6
13601 else
13602 ac_wine_try_cflags_saved=$CFLAGS
13603 CFLAGS="$CFLAGS -Wempty-body"
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606 int main(int argc, char **argv) { return 0; }
13607 _ACEOF
13608 if ac_fn_c_try_link "$LINENO"; then :
13609 ac_cv_cflags__Wempty_body=yes
13610 else
13611 ac_cv_cflags__Wempty_body=no
13613 rm -f core conftest.err conftest.$ac_objext \
13614 conftest$ac_exeext conftest.$ac_ext
13615 CFLAGS=$ac_wine_try_cflags_saved
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13618 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13619 if test $ac_cv_cflags__Wempty_body = yes; then :
13620 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13623 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13624 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13625 $as_echo_n "(cached) " >&6
13626 else
13627 ac_wine_try_cflags_saved=$CFLAGS
13628 CFLAGS="$CFLAGS -Wignored-qualifiers"
13629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630 /* end confdefs.h. */
13631 int main(int argc, char **argv) { return 0; }
13632 _ACEOF
13633 if ac_fn_c_try_link "$LINENO"; then :
13634 ac_cv_cflags__Wignored_qualifiers=yes
13635 else
13636 ac_cv_cflags__Wignored_qualifiers=no
13638 rm -f core conftest.err conftest.$ac_objext \
13639 conftest$ac_exeext conftest.$ac_ext
13640 CFLAGS=$ac_wine_try_cflags_saved
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13643 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13644 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
13645 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13648 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13649 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 ac_wine_try_cflags_saved=$CFLAGS
13653 CFLAGS="$CFLAGS -Wstrict-prototypes"
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656 int main(int argc, char **argv) { return 0; }
13657 _ACEOF
13658 if ac_fn_c_try_link "$LINENO"; then :
13659 ac_cv_cflags__Wstrict_prototypes=yes
13660 else
13661 ac_cv_cflags__Wstrict_prototypes=no
13663 rm -f core conftest.err conftest.$ac_objext \
13664 conftest$ac_exeext conftest.$ac_ext
13665 CFLAGS=$ac_wine_try_cflags_saved
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13668 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13669 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
13670 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13673 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13674 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677 ac_wine_try_cflags_saved=$CFLAGS
13678 CFLAGS="$CFLAGS -Wtype-limits"
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681 int main(int argc, char **argv) { return 0; }
13682 _ACEOF
13683 if ac_fn_c_try_link "$LINENO"; then :
13684 ac_cv_cflags__Wtype_limits=yes
13685 else
13686 ac_cv_cflags__Wtype_limits=no
13688 rm -f core conftest.err conftest.$ac_objext \
13689 conftest$ac_exeext conftest.$ac_ext
13690 CFLAGS=$ac_wine_try_cflags_saved
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13693 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13694 if test $ac_cv_cflags__Wtype_limits = yes; then :
13695 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13698 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13699 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13700 $as_echo_n "(cached) " >&6
13701 else
13702 ac_wine_try_cflags_saved=$CFLAGS
13703 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h. */
13706 int main(int argc, char **argv) { return 0; }
13707 _ACEOF
13708 if ac_fn_c_try_link "$LINENO"; then :
13709 ac_cv_cflags__Wunused_but_set_parameter=yes
13710 else
13711 ac_cv_cflags__Wunused_but_set_parameter=no
13713 rm -f core conftest.err conftest.$ac_objext \
13714 conftest$ac_exeext conftest.$ac_ext
13715 CFLAGS=$ac_wine_try_cflags_saved
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13718 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13719 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
13720 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
13723 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
13724 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
13725 $as_echo_n "(cached) " >&6
13726 else
13727 ac_wine_try_cflags_saved=$CFLAGS
13728 CFLAGS="$CFLAGS -Wwrite-strings"
13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13731 int main(int argc, char **argv) { return 0; }
13732 _ACEOF
13733 if ac_fn_c_try_link "$LINENO"; then :
13734 ac_cv_cflags__Wwrite_strings=yes
13735 else
13736 ac_cv_cflags__Wwrite_strings=no
13738 rm -f core conftest.err conftest.$ac_objext \
13739 conftest$ac_exeext conftest.$ac_ext
13740 CFLAGS=$ac_wine_try_cflags_saved
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
13743 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
13744 if test $ac_cv_cflags__Wwrite_strings = yes; then :
13745 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
13749 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
13750 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 ac_wine_try_cflags_saved=$CFLAGS
13754 CFLAGS="$CFLAGS -Wpointer-arith"
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13757 int main(int argc, char **argv) { return 0; }
13758 _ACEOF
13759 if ac_fn_c_try_link "$LINENO"; then :
13760 ac_cv_cflags__Wpointer_arith=yes
13761 else
13762 ac_cv_cflags__Wpointer_arith=no
13764 rm -f core conftest.err conftest.$ac_objext \
13765 conftest$ac_exeext conftest.$ac_ext
13766 CFLAGS=$ac_wine_try_cflags_saved
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
13769 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
13770 if test $ac_cv_cflags__Wpointer_arith = yes; then :
13771 saved_string_h_CFLAGS=$CFLAGS
13772 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
13774 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
13775 if ${ac_cv_c_string_h_warnings+:} false; then :
13776 $as_echo_n "(cached) " >&6
13777 else
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13780 #include <string.h>
13782 main ()
13786 return 0;
13788 _ACEOF
13789 if ac_fn_c_try_compile "$LINENO"; then :
13790 ac_cv_c_string_h_warnings=no
13791 else
13792 ac_cv_c_string_h_warnings=yes
13794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
13797 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
13798 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
13799 CFLAGS=$saved_string_h_CFLAGS
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
13803 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
13804 if ${ac_cv_cflags__Wlogical_op+:} false; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 ac_wine_try_cflags_saved=$CFLAGS
13808 CFLAGS="$CFLAGS -Wlogical-op"
13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13811 int main(int argc, char **argv) { return 0; }
13812 _ACEOF
13813 if ac_fn_c_try_link "$LINENO"; then :
13814 ac_cv_cflags__Wlogical_op=yes
13815 else
13816 ac_cv_cflags__Wlogical_op=no
13818 rm -f core conftest.err conftest.$ac_objext \
13819 conftest$ac_exeext conftest.$ac_ext
13820 CFLAGS=$ac_wine_try_cflags_saved
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
13823 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
13824 if test $ac_cv_cflags__Wlogical_op = yes; then :
13825 saved_string_h_CFLAGS=$CFLAGS
13826 CFLAGS="$CFLAGS -Wlogical-op -Werror"
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
13828 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
13829 if ${ac_cv_c_logicalop_noisy+:} false; then :
13830 $as_echo_n "(cached) " >&6
13831 else
13832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833 /* end confdefs.h. */
13834 #include <string.h>
13835 char*f(const char *h,char n) {return strchr(h,n);}
13837 main ()
13841 return 0;
13843 _ACEOF
13844 if ac_fn_c_try_compile "$LINENO"; then :
13845 ac_cv_c_logicalop_noisy=no
13846 else
13847 ac_cv_c_logicalop_noisy=yes
13849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
13852 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
13853 CFLAGS=$saved_string_h_CFLAGS
13854 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
13857 CFLAGS=$saved_CFLAGS
13859 for ac_flag in $CFLAGS; do
13860 case $ac_flag in
13861 -g) case $host_os in
13862 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
13863 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
13864 if ${ac_cv_cflags__gstabsp+:} false; then :
13865 $as_echo_n "(cached) " >&6
13866 else
13867 ac_wine_try_cflags_saved=$CFLAGS
13868 CFLAGS="$CFLAGS -gstabs+"
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13871 int main(int argc, char **argv) { return 0; }
13872 _ACEOF
13873 if ac_fn_c_try_link "$LINENO"; then :
13874 ac_cv_cflags__gstabsp=yes
13875 else
13876 ac_cv_cflags__gstabsp=no
13878 rm -f core conftest.err conftest.$ac_objext \
13879 conftest$ac_exeext conftest.$ac_ext
13880 CFLAGS=$ac_wine_try_cflags_saved
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
13883 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
13884 if test $ac_cv_cflags__gstabsp = yes; then :
13885 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
13886 fi ;;
13887 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
13888 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
13889 if ${ac_cv_cflags__gdwarf_2+:} false; then :
13890 $as_echo_n "(cached) " >&6
13891 else
13892 ac_wine_try_cflags_saved=$CFLAGS
13893 CFLAGS="$CFLAGS -gdwarf-2"
13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13895 /* end confdefs.h. */
13896 int main(int argc, char **argv) { return 0; }
13897 _ACEOF
13898 if ac_fn_c_try_link "$LINENO"; then :
13899 ac_cv_cflags__gdwarf_2=yes
13900 else
13901 ac_cv_cflags__gdwarf_2=no
13903 rm -f core conftest.err conftest.$ac_objext \
13904 conftest$ac_exeext conftest.$ac_ext
13905 CFLAGS=$ac_wine_try_cflags_saved
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
13908 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
13909 if test $ac_cv_cflags__gdwarf_2 = yes; then :
13910 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
13913 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
13914 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
13915 $as_echo_n "(cached) " >&6
13916 else
13917 ac_wine_try_cflags_saved=$CFLAGS
13918 CFLAGS="$CFLAGS -gstrict-dwarf"
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13921 int main(int argc, char **argv) { return 0; }
13922 _ACEOF
13923 if ac_fn_c_try_link "$LINENO"; then :
13924 ac_cv_cflags__gstrict_dwarf=yes
13925 else
13926 ac_cv_cflags__gstrict_dwarf=no
13928 rm -f core conftest.err conftest.$ac_objext \
13929 conftest$ac_exeext conftest.$ac_ext
13930 CFLAGS=$ac_wine_try_cflags_saved
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
13933 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
13934 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
13935 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
13936 fi ;;
13937 esac ;;
13938 esac
13939 done
13941 case $host_cpu in
13942 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
13943 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
13944 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
13945 $as_echo_n "(cached) " >&6
13946 else
13947 ac_wine_try_cflags_saved=$CFLAGS
13948 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h. */
13951 int main(int argc, char **argv) { return 0; }
13952 _ACEOF
13953 if ac_fn_c_try_link "$LINENO"; then :
13954 ac_cv_cflags__fno_omit_frame_pointer=yes
13955 else
13956 ac_cv_cflags__fno_omit_frame_pointer=no
13958 rm -f core conftest.err conftest.$ac_objext \
13959 conftest$ac_exeext conftest.$ac_ext
13960 CFLAGS=$ac_wine_try_cflags_saved
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
13963 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
13964 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
13965 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
13966 fi ;;
13967 esac
13969 case $host in
13970 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
13971 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
13972 if ${ac_cv_cflags__Wno_format+:} false; then :
13973 $as_echo_n "(cached) " >&6
13974 else
13975 ac_wine_try_cflags_saved=$CFLAGS
13976 CFLAGS="$CFLAGS -Wno-format"
13977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13978 /* end confdefs.h. */
13979 int main(int argc, char **argv) { return 0; }
13980 _ACEOF
13981 if ac_fn_c_try_link "$LINENO"; then :
13982 ac_cv_cflags__Wno_format=yes
13983 else
13984 ac_cv_cflags__Wno_format=no
13986 rm -f core conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
13988 CFLAGS=$ac_wine_try_cflags_saved
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
13991 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
13992 if test $ac_cv_cflags__Wno_format = yes; then :
13993 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
13994 fi ;;
13995 esac
13997 if test "x$enable_maintainer_mode" = "xyes"
13998 then
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
14000 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
14001 if ${ac_cv_cflags__Werror+:} false; then :
14002 $as_echo_n "(cached) " >&6
14003 else
14004 ac_wine_try_cflags_saved=$CFLAGS
14005 CFLAGS="$CFLAGS -Werror"
14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h. */
14008 int main(int argc, char **argv) { return 0; }
14009 _ACEOF
14010 if ac_fn_c_try_link "$LINENO"; then :
14011 ac_cv_cflags__Werror=yes
14012 else
14013 ac_cv_cflags__Werror=no
14015 rm -f core conftest.err conftest.$ac_objext \
14016 conftest$ac_exeext conftest.$ac_ext
14017 CFLAGS=$ac_wine_try_cflags_saved
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
14020 $as_echo "$ac_cv_cflags__Werror" >&6; }
14021 if test $ac_cv_cflags__Werror = yes; then :
14022 EXTRACFLAGS="$EXTRACFLAGS -Werror"
14026 saved_CFLAGS="$CFLAGS"
14027 CFLAGS="$CFLAGS -Werror"
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
14029 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
14030 if ${ac_cv_have_ms_hook_prologue+:} false; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14034 /* end confdefs.h. */
14035 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
14037 main ()
14041 return 0;
14043 _ACEOF
14044 if ac_fn_c_try_compile "$LINENO"; then :
14045 ac_cv_have_ms_hook_prologue="yes"
14046 else
14047 ac_cv_have_ms_hook_prologue="no"
14049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
14052 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
14053 CFLAGS="$saved_CFLAGS"
14054 if test "$ac_cv_have_ms_hook_prologue" = "yes"
14055 then
14057 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
14059 else
14060 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
14067 $as_echo_n "checking for the need to disable Fortify... " >&6; }
14068 if ${ac_cv_c_fortify_enabled+:} false; then :
14069 $as_echo_n "(cached) " >&6
14070 else
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14073 #include <string.h>
14075 main ()
14077 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
14078 #error Fortify enabled
14079 #endif
14081 return 0;
14083 _ACEOF
14084 if ac_fn_c_try_compile "$LINENO"; then :
14085 ac_cv_c_fortify_enabled=no
14086 else
14087 ac_cv_c_fortify_enabled=yes
14089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
14092 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
14093 if test "$ac_cv_c_fortify_enabled" = yes
14094 then
14095 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
14100 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
14101 if ${ac_cv_c_extern_prefix+:} false; then :
14102 $as_echo_n "(cached) " >&6
14103 else
14104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14105 /* end confdefs.h. */
14106 extern int ac_test;
14108 main ()
14110 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14112 return 0;
14114 _ACEOF
14115 if ac_fn_c_try_link "$LINENO"; then :
14116 ac_cv_c_extern_prefix="yes"
14117 else
14118 ac_cv_c_extern_prefix="no"
14120 rm -f core conftest.err conftest.$ac_objext \
14121 conftest$ac_exeext conftest.$ac_ext
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
14124 $as_echo "$ac_cv_c_extern_prefix" >&6; }
14126 case $host_cpu in
14127 *i[3456789]86*)
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
14129 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
14130 if ${ac_cv_c_stdcall_suffix+:} false; then :
14131 $as_echo_n "(cached) " >&6
14132 else
14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h. */
14135 #ifndef _MSC_VER
14136 #define __stdcall __attribute__((__stdcall__))
14137 #endif
14138 int __stdcall ac_test(int i) { return i; }
14140 main ()
14142 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
14144 return 0;
14146 _ACEOF
14147 if ac_fn_c_try_link "$LINENO"; then :
14148 ac_cv_c_stdcall_suffix="yes"
14149 else
14150 ac_cv_c_stdcall_suffix="no"
14152 rm -f core conftest.err conftest.$ac_objext \
14153 conftest$ac_exeext conftest.$ac_ext
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
14156 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
14157 *) ac_cv_c_stdcall_suffix="no" ;;
14158 esac
14161 if test "$ac_cv_c_extern_prefix" = "yes"
14162 then
14163 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
14165 asm_name_prefix="_"
14166 else
14167 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
14169 asm_name_prefix=""
14173 if test "$ac_cv_c_stdcall_suffix" = "yes"
14174 then
14175 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
14177 else
14178 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
14184 $as_echo_n "checking how to define a function in assembly code... " >&6; }
14185 if ${ac_cv_asm_func_def+:} false; then :
14186 $as_echo_n "(cached) " >&6
14187 else
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14192 main ()
14194 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14196 return 0;
14198 _ACEOF
14199 if ac_fn_c_try_link "$LINENO"; then :
14200 ac_cv_asm_func_def=".def"
14201 else
14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h. */
14206 main ()
14208 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14210 return 0;
14212 _ACEOF
14213 if ac_fn_c_try_link "$LINENO"; then :
14214 ac_cv_asm_func_def=".type @function"
14215 else
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14220 main ()
14222 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14224 return 0;
14226 _ACEOF
14227 if ac_fn_c_try_link "$LINENO"; then :
14228 ac_cv_asm_func_def=".type 2"
14229 else
14230 ac_cv_asm_func_def="unknown"
14232 rm -f core conftest.err conftest.$ac_objext \
14233 conftest$ac_exeext conftest.$ac_ext
14235 rm -f core conftest.err conftest.$ac_objext \
14236 conftest$ac_exeext conftest.$ac_ext
14238 rm -f core conftest.err conftest.$ac_objext \
14239 conftest$ac_exeext conftest.$ac_ext
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
14242 $as_echo "$ac_cv_asm_func_def" >&6; }
14245 case "$ac_cv_asm_func_def" in
14246 ".def")
14247 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
14249 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
14250 ".type @function")
14251 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
14253 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
14254 ".type 2")
14255 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
14257 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
14259 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
14261 asm_func_header="" ;;
14262 esac
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
14265 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
14266 if ${ac_cv_c_asm_outside_funcs+:} false; then :
14267 $as_echo_n "(cached) " >&6
14268 else
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271 asm(".text\n\t.long 0");
14273 main ()
14277 return 0;
14279 _ACEOF
14280 if ac_fn_c_try_compile "$LINENO"; then :
14281 ac_cv_c_asm_outside_funcs="yes"
14282 else
14283 ac_cv_c_asm_outside_funcs="no"
14285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
14288 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
14291 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
14292 if ${ac_cv_c_dot_previous+:} false; then :
14293 $as_echo_n "(cached) " >&6
14294 else
14295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h. */
14299 main ()
14301 asm(".text\nac_test:\t.long 0\n\t.previous");
14303 return 0;
14305 _ACEOF
14306 if ac_fn_c_try_link "$LINENO"; then :
14307 ac_cv_c_dot_previous="yes"
14308 else
14309 ac_cv_c_dot_previous="no"
14311 rm -f core conftest.err conftest.$ac_objext \
14312 conftest$ac_exeext conftest.$ac_ext
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
14315 $as_echo "$ac_cv_c_dot_previous" >&6; }
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
14318 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
14319 if ${ac_cv_c_cfi_support+:} false; then :
14320 $as_echo_n "(cached) " >&6
14321 else
14322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14324 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
14326 main ()
14330 return 0;
14332 _ACEOF
14333 if ac_fn_c_try_compile "$LINENO"; then :
14334 ac_cv_c_cfi_support="yes"
14335 else
14336 ac_cv_c_cfi_support="no"
14338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
14341 $as_echo "$ac_cv_c_cfi_support" >&6; }
14343 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
14344 asm_func_trailer=""
14345 if test "$ac_cv_c_dot_previous" = "yes"
14346 then
14347 asm_func_trailer="\\n\\t.previous"
14349 if test "$ac_cv_c_cfi_support" = "yes"
14350 then
14351 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
14352 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
14354 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
14356 UNWINDFLAGS=-fasynchronous-unwind-tables
14358 else
14359 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
14363 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
14366 if test "$ac_cv_c_asm_outside_funcs" = "yes"
14367 then
14368 cat >>confdefs.h <<_ACEOF
14369 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
14370 _ACEOF
14372 else
14373 cat >>confdefs.h <<_ACEOF
14374 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
14375 _ACEOF
14379 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14382 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14386 case $build_os in
14387 cygwin*|mingw32*) TOOLSEXT=".exe"
14389 esac
14391 case $host_os in
14392 linux*)
14393 case $host_cpu in
14394 *i[3456789]86*|x86_64*)
14395 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine-preloader"
14396 loader_programs="$loader_programs $wine_binary-preloader"
14397 as_fn_append LOADER_RULES "
14398 $wine_binary-preloader: preloader.o
14399 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14401 install install-lib:: $wine_binary-preloader
14402 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14404 uninstall::
14405 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14406 " ;;
14407 esac
14409 esac
14410 as_fn_append LOADER_RULES "
14411 PROGRAMS = $loader_programs
14415 ac_save_CFLAGS="$CFLAGS"
14416 CFLAGS="$CFLAGS $BUILTINFLAG"
14417 for ac_func in \
14418 __res_get_state \
14419 __res_getservers \
14420 _finite \
14421 _isnan \
14422 _pclose \
14423 _popen \
14424 _snprintf \
14425 _spawnvp \
14426 _strdup \
14427 _stricmp \
14428 _strnicmp \
14429 _strtoi64 \
14430 _strtoui64 \
14431 _vsnprintf \
14432 asctime_r \
14433 chsize \
14434 dlopen \
14435 epoll_create \
14436 ffs \
14437 fnmatch \
14438 fork \
14439 fpclass \
14440 fstatfs \
14441 fstatvfs \
14442 ftruncate \
14443 futimens \
14444 futimes \
14445 futimesat \
14446 getattrlist \
14447 getdirentries \
14448 getopt_long_only \
14449 getpwuid \
14450 gettimeofday \
14451 getuid \
14452 if_nameindex \
14453 kqueue \
14454 lstat \
14455 memmove \
14456 mmap \
14457 pclose \
14458 pipe2 \
14459 poll \
14460 popen \
14461 port_create \
14462 prctl \
14463 pread \
14464 proc_pidinfo \
14465 pwrite \
14466 readdir \
14467 readlink \
14468 sched_yield \
14469 select \
14470 setproctitle \
14471 setrlimit \
14472 settimeofday \
14473 sigaltstack \
14474 sigprocmask \
14475 snprintf \
14476 statfs \
14477 statvfs \
14478 strcasecmp \
14479 strdup \
14480 strerror \
14481 strncasecmp \
14482 strtold \
14483 strtoll \
14484 strtoull \
14485 symlink \
14486 tcdrain \
14487 thr_kill2 \
14488 timegm \
14489 usleep \
14490 vsnprintf
14492 do :
14493 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14494 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14495 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14496 cat >>confdefs.h <<_ACEOF
14497 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14498 _ACEOF
14501 done
14503 CFLAGS="$ac_save_CFLAGS"
14505 if test "$ac_cv_func_dlopen" = no
14506 then
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14508 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14509 if ${ac_cv_lib_dl_dlopen+:} false; then :
14510 $as_echo_n "(cached) " >&6
14511 else
14512 ac_check_lib_save_LIBS=$LIBS
14513 LIBS="-ldl $LIBS"
14514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14515 /* end confdefs.h. */
14517 /* Override any GCC internal prototype to avoid an error.
14518 Use char because int might match the return type of a GCC
14519 builtin and then its argument prototype would still apply. */
14520 #ifdef __cplusplus
14521 extern "C"
14522 #endif
14523 char dlopen ();
14525 main ()
14527 return dlopen ();
14529 return 0;
14531 _ACEOF
14532 if ac_fn_c_try_link "$LINENO"; then :
14533 ac_cv_lib_dl_dlopen=yes
14534 else
14535 ac_cv_lib_dl_dlopen=no
14537 rm -f core conftest.err conftest.$ac_objext \
14538 conftest$ac_exeext conftest.$ac_ext
14539 LIBS=$ac_check_lib_save_LIBS
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14542 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14543 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14544 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14545 LIBDL="-ldl"
14550 ac_wine_check_funcs_save_LIBS="$LIBS"
14551 LIBS="$LIBS $LIBDL"
14552 for ac_func in dladdr
14553 do :
14554 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14555 if test "x$ac_cv_func_dladdr" = xyes; then :
14556 cat >>confdefs.h <<_ACEOF
14557 #define HAVE_DLADDR 1
14558 _ACEOF
14561 done
14563 LIBS="$ac_wine_check_funcs_save_LIBS"
14565 if test "$ac_cv_func_poll" = no
14566 then
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14568 $as_echo_n "checking for poll in -lpoll... " >&6; }
14569 if ${ac_cv_lib_poll_poll+:} false; then :
14570 $as_echo_n "(cached) " >&6
14571 else
14572 ac_check_lib_save_LIBS=$LIBS
14573 LIBS="-lpoll $LIBS"
14574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14575 /* end confdefs.h. */
14577 /* Override any GCC internal prototype to avoid an error.
14578 Use char because int might match the return type of a GCC
14579 builtin and then its argument prototype would still apply. */
14580 #ifdef __cplusplus
14581 extern "C"
14582 #endif
14583 char poll ();
14585 main ()
14587 return poll ();
14589 return 0;
14591 _ACEOF
14592 if ac_fn_c_try_link "$LINENO"; then :
14593 ac_cv_lib_poll_poll=yes
14594 else
14595 ac_cv_lib_poll_poll=no
14597 rm -f core conftest.err conftest.$ac_objext \
14598 conftest$ac_exeext conftest.$ac_ext
14599 LIBS=$ac_check_lib_save_LIBS
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14602 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14603 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14604 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14605 LIBPOLL="-lpoll"
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14612 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14613 if ${ac_cv_search_gethostbyname+:} false; then :
14614 $as_echo_n "(cached) " >&6
14615 else
14616 ac_func_search_save_LIBS=$LIBS
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14620 /* Override any GCC internal prototype to avoid an error.
14621 Use char because int might match the return type of a GCC
14622 builtin and then its argument prototype would still apply. */
14623 #ifdef __cplusplus
14624 extern "C"
14625 #endif
14626 char gethostbyname ();
14628 main ()
14630 return gethostbyname ();
14632 return 0;
14634 _ACEOF
14635 for ac_lib in '' nsl; do
14636 if test -z "$ac_lib"; then
14637 ac_res="none required"
14638 else
14639 ac_res=-l$ac_lib
14640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14642 if ac_fn_c_try_link "$LINENO"; then :
14643 ac_cv_search_gethostbyname=$ac_res
14645 rm -f core conftest.err conftest.$ac_objext \
14646 conftest$ac_exeext
14647 if ${ac_cv_search_gethostbyname+:} false; then :
14648 break
14650 done
14651 if ${ac_cv_search_gethostbyname+:} false; then :
14653 else
14654 ac_cv_search_gethostbyname=no
14656 rm conftest.$ac_ext
14657 LIBS=$ac_func_search_save_LIBS
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14660 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14661 ac_res=$ac_cv_search_gethostbyname
14662 if test "$ac_res" != no; then :
14663 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14669 $as_echo_n "checking for library containing connect... " >&6; }
14670 if ${ac_cv_search_connect+:} false; then :
14671 $as_echo_n "(cached) " >&6
14672 else
14673 ac_func_search_save_LIBS=$LIBS
14674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675 /* end confdefs.h. */
14677 /* Override any GCC internal prototype to avoid an error.
14678 Use char because int might match the return type of a GCC
14679 builtin and then its argument prototype would still apply. */
14680 #ifdef __cplusplus
14681 extern "C"
14682 #endif
14683 char connect ();
14685 main ()
14687 return connect ();
14689 return 0;
14691 _ACEOF
14692 for ac_lib in '' socket; do
14693 if test -z "$ac_lib"; then
14694 ac_res="none required"
14695 else
14696 ac_res=-l$ac_lib
14697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14699 if ac_fn_c_try_link "$LINENO"; then :
14700 ac_cv_search_connect=$ac_res
14702 rm -f core conftest.err conftest.$ac_objext \
14703 conftest$ac_exeext
14704 if ${ac_cv_search_connect+:} false; then :
14705 break
14707 done
14708 if ${ac_cv_search_connect+:} false; then :
14710 else
14711 ac_cv_search_connect=no
14713 rm conftest.$ac_ext
14714 LIBS=$ac_func_search_save_LIBS
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14717 $as_echo "$ac_cv_search_connect" >&6; }
14718 ac_res=$ac_cv_search_connect
14719 if test "$ac_res" != no; then :
14720 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
14726 $as_echo_n "checking for library containing inet_aton... " >&6; }
14727 if ${ac_cv_search_inet_aton+:} false; then :
14728 $as_echo_n "(cached) " >&6
14729 else
14730 ac_func_search_save_LIBS=$LIBS
14731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h. */
14734 /* Override any GCC internal prototype to avoid an error.
14735 Use char because int might match the return type of a GCC
14736 builtin and then its argument prototype would still apply. */
14737 #ifdef __cplusplus
14738 extern "C"
14739 #endif
14740 char inet_aton ();
14742 main ()
14744 return inet_aton ();
14746 return 0;
14748 _ACEOF
14749 for ac_lib in '' resolv; do
14750 if test -z "$ac_lib"; then
14751 ac_res="none required"
14752 else
14753 ac_res=-l$ac_lib
14754 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14756 if ac_fn_c_try_link "$LINENO"; then :
14757 ac_cv_search_inet_aton=$ac_res
14759 rm -f core conftest.err conftest.$ac_objext \
14760 conftest$ac_exeext
14761 if ${ac_cv_search_inet_aton+:} false; then :
14762 break
14764 done
14765 if ${ac_cv_search_inet_aton+:} false; then :
14767 else
14768 ac_cv_search_inet_aton=no
14770 rm conftest.$ac_ext
14771 LIBS=$ac_func_search_save_LIBS
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
14774 $as_echo "$ac_cv_search_inet_aton" >&6; }
14775 ac_res=$ac_cv_search_inet_aton
14776 if test "$ac_res" != no; then :
14777 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14782 for ac_func in \
14783 getaddrinfo \
14784 getnameinfo \
14785 getnetbyname \
14786 getprotobyname \
14787 getprotobynumber \
14788 getservbyport \
14789 inet_addr \
14790 inet_network \
14791 inet_ntop \
14792 inet_pton \
14793 sendmsg \
14794 socketpair \
14796 do :
14797 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14798 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14799 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14800 cat >>confdefs.h <<_ACEOF
14801 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14802 _ACEOF
14805 done
14808 ac_save_LIBS=$LIBS
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14810 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14811 if ${ac_cv_search_clock_gettime+:} false; then :
14812 $as_echo_n "(cached) " >&6
14813 else
14814 ac_func_search_save_LIBS=$LIBS
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14818 /* Override any GCC internal prototype to avoid an error.
14819 Use char because int might match the return type of a GCC
14820 builtin and then its argument prototype would still apply. */
14821 #ifdef __cplusplus
14822 extern "C"
14823 #endif
14824 char clock_gettime ();
14826 main ()
14828 return clock_gettime ();
14830 return 0;
14832 _ACEOF
14833 for ac_lib in '' rt; do
14834 if test -z "$ac_lib"; then
14835 ac_res="none required"
14836 else
14837 ac_res=-l$ac_lib
14838 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14840 if ac_fn_c_try_link "$LINENO"; then :
14841 ac_cv_search_clock_gettime=$ac_res
14843 rm -f core conftest.err conftest.$ac_objext \
14844 conftest$ac_exeext
14845 if ${ac_cv_search_clock_gettime+:} false; then :
14846 break
14848 done
14849 if ${ac_cv_search_clock_gettime+:} false; then :
14851 else
14852 ac_cv_search_clock_gettime=no
14854 rm conftest.$ac_ext
14855 LIBS=$ac_func_search_save_LIBS
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14858 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14859 ac_res=$ac_cv_search_clock_gettime
14860 if test "$ac_res" != no; then :
14861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14863 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14865 test "$ac_res" = "none required" || LIBRT="$ac_res"
14869 LIBS=$ac_save_LIBS
14871 LDAPLIBS=""
14873 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
14874 then
14875 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
14877 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
14879 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
14880 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
14881 $as_echo_n "(cached) " >&6
14882 else
14883 ac_check_lib_save_LIBS=$LIBS
14884 LIBS="-lldap_r $LIBPTHREAD $LIBS"
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14888 /* Override any GCC internal prototype to avoid an error.
14889 Use char because int might match the return type of a GCC
14890 builtin and then its argument prototype would still apply. */
14891 #ifdef __cplusplus
14892 extern "C"
14893 #endif
14894 char ldap_initialize ();
14896 main ()
14898 return ldap_initialize ();
14900 return 0;
14902 _ACEOF
14903 if ac_fn_c_try_link "$LINENO"; then :
14904 ac_cv_lib_ldap_r_ldap_initialize=yes
14905 else
14906 ac_cv_lib_ldap_r_ldap_initialize=no
14908 rm -f core conftest.err conftest.$ac_objext \
14909 conftest$ac_exeext conftest.$ac_ext
14910 LIBS=$ac_check_lib_save_LIBS
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
14913 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
14914 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
14916 $as_echo_n "checking for ber_init in -llber... " >&6; }
14917 if ${ac_cv_lib_lber_ber_init+:} false; then :
14918 $as_echo_n "(cached) " >&6
14919 else
14920 ac_check_lib_save_LIBS=$LIBS
14921 LIBS="-llber $LIBPTHREAD $LIBS"
14922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14923 /* end confdefs.h. */
14925 /* Override any GCC internal prototype to avoid an error.
14926 Use char because int might match the return type of a GCC
14927 builtin and then its argument prototype would still apply. */
14928 #ifdef __cplusplus
14929 extern "C"
14930 #endif
14931 char ber_init ();
14933 main ()
14935 return ber_init ();
14937 return 0;
14939 _ACEOF
14940 if ac_fn_c_try_link "$LINENO"; then :
14941 ac_cv_lib_lber_ber_init=yes
14942 else
14943 ac_cv_lib_lber_ber_init=no
14945 rm -f core conftest.err conftest.$ac_objext \
14946 conftest$ac_exeext conftest.$ac_ext
14947 LIBS=$ac_check_lib_save_LIBS
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
14950 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
14951 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
14953 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
14955 LDAPLIBS="-lldap_r -llber"
14962 ac_wine_check_funcs_save_LIBS="$LIBS"
14963 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
14964 for ac_func in \
14965 ldap_count_references \
14966 ldap_first_reference \
14967 ldap_next_reference \
14968 ldap_parse_reference \
14969 ldap_parse_sort_control \
14970 ldap_parse_sortresponse_control \
14971 ldap_parse_vlv_control \
14972 ldap_parse_vlvresponse_control
14973 do :
14974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14975 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14976 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14977 cat >>confdefs.h <<_ACEOF
14978 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14979 _ACEOF
14982 done
14984 LIBS="$ac_wine_check_funcs_save_LIBS"
14986 if test "x$LDAPLIBS" = "x"; then :
14987 case "x$with_ldap" in
14988 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
14989 xno) ;;
14990 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
14991 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
14992 esac
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
14996 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
14997 if ${wine_cv_one_arg_mkdir+:} false; then :
14998 $as_echo_n "(cached) " >&6
14999 else
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002 #include <sys/stat.h>
15004 main ()
15006 mkdir("foo");
15008 return 0;
15010 _ACEOF
15011 if ac_fn_c_try_compile "$LINENO"; then :
15012 wine_cv_one_arg_mkdir=yes
15013 else
15014 wine_cv_one_arg_mkdir=no
15016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
15019 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
15020 if test "$wine_cv_one_arg_mkdir" = "yes"
15021 then
15023 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
15028 $as_echo_n "checking for sched_setaffinity... " >&6; }
15029 if ${wine_cv_have_sched_setaffinity+:} false; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 #define _GNU_SOURCE
15035 #include <sched.h>
15037 main ()
15039 sched_setaffinity(0, 0, 0);
15041 return 0;
15043 _ACEOF
15044 if ac_fn_c_try_link "$LINENO"; then :
15045 wine_cv_have_sched_setaffinity=yes
15046 else
15047 wine_cv_have_sched_setaffinity=no
15049 rm -f core conftest.err conftest.$ac_objext \
15050 conftest$ac_exeext conftest.$ac_ext
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
15053 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
15054 if test "$wine_cv_have_sched_setaffinity" = "yes"
15055 then
15057 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
15062 $as_echo_n "checking for fallocate... " >&6; }
15063 if ${wine_cv_have_fallocate+:} false; then :
15064 $as_echo_n "(cached) " >&6
15065 else
15066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15067 /* end confdefs.h. */
15068 #define _GNU_SOURCE
15069 #include <fcntl.h>
15071 main ()
15073 fallocate(-1, 0, 0, 0);
15075 return 0;
15077 _ACEOF
15078 if ac_fn_c_try_link "$LINENO"; then :
15079 wine_cv_have_fallocate=yes
15080 else
15081 wine_cv_have_fallocate=no
15083 rm -f core conftest.err conftest.$ac_objext \
15084 conftest$ac_exeext conftest.$ac_ext
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
15087 $as_echo "$wine_cv_have_fallocate" >&6; }
15088 if test "$wine_cv_have_fallocate" = "yes"
15089 then
15091 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15097 $as_echo_n "checking for inline... " >&6; }
15098 if ${ac_cv_c_inline+:} false; then :
15099 $as_echo_n "(cached) " >&6
15100 else
15101 ac_cv_c_inline=no
15102 for ac_kw in inline __inline__ __inline; do
15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104 /* end confdefs.h. */
15105 #ifndef __cplusplus
15106 typedef int foo_t;
15107 static $ac_kw foo_t static_foo () {return 0; }
15108 $ac_kw foo_t foo () {return 0; }
15109 #endif
15111 _ACEOF
15112 if ac_fn_c_try_compile "$LINENO"; then :
15113 ac_cv_c_inline=$ac_kw
15115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15116 test "$ac_cv_c_inline" != no && break
15117 done
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15121 $as_echo "$ac_cv_c_inline" >&6; }
15123 case $ac_cv_c_inline in
15124 inline | yes) ;;
15126 case $ac_cv_c_inline in
15127 no) ac_val=;;
15128 *) ac_val=$ac_cv_c_inline;;
15129 esac
15130 cat >>confdefs.h <<_ACEOF
15131 #ifndef __cplusplus
15132 #define inline $ac_val
15133 #endif
15134 _ACEOF
15136 esac
15138 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15139 if test "x$ac_cv_type_mode_t" = xyes; then :
15141 cat >>confdefs.h <<_ACEOF
15142 #define HAVE_MODE_T 1
15143 _ACEOF
15147 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15148 if test "x$ac_cv_type_off_t" = xyes; then :
15150 cat >>confdefs.h <<_ACEOF
15151 #define HAVE_OFF_T 1
15152 _ACEOF
15156 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15157 if test "x$ac_cv_type_pid_t" = xyes; then :
15159 cat >>confdefs.h <<_ACEOF
15160 #define HAVE_PID_T 1
15161 _ACEOF
15165 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15166 if test "x$ac_cv_type_size_t" = xyes; then :
15168 cat >>confdefs.h <<_ACEOF
15169 #define HAVE_SIZE_T 1
15170 _ACEOF
15174 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15175 if test "x$ac_cv_type_ssize_t" = xyes; then :
15177 cat >>confdefs.h <<_ACEOF
15178 #define HAVE_SSIZE_T 1
15179 _ACEOF
15183 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15184 if test "x$ac_cv_type_long_long" = xyes; then :
15186 cat >>confdefs.h <<_ACEOF
15187 #define HAVE_LONG_LONG 1
15188 _ACEOF
15192 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
15193 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15195 cat >>confdefs.h <<_ACEOF
15196 #define HAVE_FSBLKCNT_T 1
15197 _ACEOF
15201 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
15202 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15204 cat >>confdefs.h <<_ACEOF
15205 #define HAVE_FSFILCNT_T 1
15206 _ACEOF
15211 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
15212 #include <signal.h>
15214 if test "x$ac_cv_type_sigset_t" = xyes; then :
15216 cat >>confdefs.h <<_ACEOF
15217 #define HAVE_SIGSET_T 1
15218 _ACEOF
15223 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
15225 if test "x$ac_cv_type_request_sense" = xyes; then :
15227 cat >>confdefs.h <<_ACEOF
15228 #define HAVE_REQUEST_SENSE 1
15229 _ACEOF
15235 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
15236 #ifdef HAVE_SYS_SOCKET_H
15237 #include <sys/socket.h>
15238 #endif
15239 #ifdef HAVE_SYS_SOCKETVAR_H
15240 #include <sys/socketvar.h>
15241 #endif
15242 #ifdef HAVE_NET_ROUTE_H
15243 #include <net/route.h>
15244 #endif
15245 #ifdef HAVE_NETINET_IN_H
15246 #include <netinet/in.h>
15247 #endif
15248 #ifdef HAVE_NETINET_IN_SYSTM_H
15249 #include <netinet/in_systm.h>
15250 #endif
15251 #ifdef HAVE_NETINET_IP_H
15252 #include <netinet/ip.h>
15253 #endif
15254 #ifdef HAVE_NETINET_IN_PCB_H
15255 #include <netinet/in_pcb.h>
15256 #endif
15258 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
15260 cat >>confdefs.h <<_ACEOF
15261 #define HAVE_STRUCT_XINPGEN 1
15262 _ACEOF
15268 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#ifdef HAVE_LINK_H
15269 #include <link.h>
15270 #endif
15271 #ifdef HAVE_SYS_LINK_H
15272 #include <sys/link.h>
15273 #endif
15275 if test "x$ac_cv_type_struct_r_debug" = xyes; then :
15277 cat >>confdefs.h <<_ACEOF
15278 #define HAVE_STRUCT_R_DEBUG 1
15279 _ACEOF
15283 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
15284 #include <link.h>
15285 #endif
15286 #ifdef HAVE_SYS_LINK_H
15287 #include <sys/link.h>
15288 #endif
15290 if test "x$ac_cv_type_struct_link_map" = xyes; then :
15292 cat >>confdefs.h <<_ACEOF
15293 #define HAVE_STRUCT_LINK_MAP 1
15294 _ACEOF
15300 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
15301 #include <linux/input.h>
15302 #endif
15304 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
15306 cat >>confdefs.h <<_ACEOF
15307 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15308 _ACEOF
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
15315 $as_echo_n "checking for sigaddset... " >&6; }
15316 if ${wine_cv_have_sigaddset+:} false; then :
15317 $as_echo_n "(cached) " >&6
15318 else
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321 #include <signal.h>
15323 main ()
15325 sigset_t set; sigaddset(&set,SIGTERM);
15327 return 0;
15329 _ACEOF
15330 if ac_fn_c_try_link "$LINENO"; then :
15331 wine_cv_have_sigaddset=yes
15332 else
15333 wine_cv_have_sigaddset=no
15335 rm -f core conftest.err conftest.$ac_objext \
15336 conftest$ac_exeext conftest.$ac_ext
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
15339 $as_echo "$wine_cv_have_sigaddset" >&6; }
15340 if test "$wine_cv_have_sigaddset" = "yes"
15341 then
15343 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15349 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
15350 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
15351 $as_echo_n "(cached) " >&6
15352 else
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15355 #include <netdb.h>
15357 main ()
15360 char *name=0;
15361 struct hostent he;
15362 struct hostent *result;
15363 char *buf=0;
15364 int bufsize=0;
15365 int errnr;
15366 char *addr=0;
15367 int addrlen=0;
15368 int addrtype=0;
15369 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15370 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15373 return 0;
15375 _ACEOF
15376 if ac_fn_c_try_link "$LINENO"; then :
15377 wine_cv_linux_gethostbyname_r_6=yes
15378 else
15379 wine_cv_linux_gethostbyname_r_6=no
15382 rm -f core conftest.err conftest.$ac_objext \
15383 conftest$ac_exeext conftest.$ac_ext
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15387 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15388 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15389 then
15391 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15395 if test "$ac_cv_header_linux_joystick_h" = "yes"
15396 then
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15398 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15399 if ${wine_cv_linux_joystick_22_api+:} false; then :
15400 $as_echo_n "(cached) " >&6
15401 else
15402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15403 /* end confdefs.h. */
15405 #include <sys/ioctl.h>
15406 #include <sys/types.h>
15407 #include <linux/joystick.h>
15409 struct js_event blub;
15410 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15411 #error "no 2.2 header"
15412 #endif
15415 main ()
15417 /*empty*/
15419 return 0;
15421 _ACEOF
15422 if ac_fn_c_try_compile "$LINENO"; then :
15423 wine_cv_linux_joystick_22_api=yes
15424 else
15425 wine_cv_linux_joystick_22_api=no
15427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15431 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15432 if test "$wine_cv_linux_joystick_22_api" = "yes"
15433 then
15435 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15441 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15442 #ifdef HAVE_SYS_PARAM_H
15443 # include <sys/param.h>
15444 #endif
15445 #ifdef HAVE_SYS_MOUNT_H
15446 # include <sys/mount.h>
15447 #endif
15448 #ifdef HAVE_SYS_VFS_H
15449 # include <sys/vfs.h>
15450 #endif
15451 #ifdef HAVE_SYS_STATFS_H
15452 # include <sys/statfs.h>
15453 #endif
15455 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15457 cat >>confdefs.h <<_ACEOF
15458 #define HAVE_STRUCT_STATFS_F_BFREE 1
15459 _ACEOF
15463 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15464 #ifdef HAVE_SYS_PARAM_H
15465 # include <sys/param.h>
15466 #endif
15467 #ifdef HAVE_SYS_MOUNT_H
15468 # include <sys/mount.h>
15469 #endif
15470 #ifdef HAVE_SYS_VFS_H
15471 # include <sys/vfs.h>
15472 #endif
15473 #ifdef HAVE_SYS_STATFS_H
15474 # include <sys/statfs.h>
15475 #endif
15477 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15479 cat >>confdefs.h <<_ACEOF
15480 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15481 _ACEOF
15485 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15486 #ifdef HAVE_SYS_PARAM_H
15487 # include <sys/param.h>
15488 #endif
15489 #ifdef HAVE_SYS_MOUNT_H
15490 # include <sys/mount.h>
15491 #endif
15492 #ifdef HAVE_SYS_VFS_H
15493 # include <sys/vfs.h>
15494 #endif
15495 #ifdef HAVE_SYS_STATFS_H
15496 # include <sys/statfs.h>
15497 #endif
15499 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15501 cat >>confdefs.h <<_ACEOF
15502 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15503 _ACEOF
15507 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15508 #ifdef HAVE_SYS_PARAM_H
15509 # include <sys/param.h>
15510 #endif
15511 #ifdef HAVE_SYS_MOUNT_H
15512 # include <sys/mount.h>
15513 #endif
15514 #ifdef HAVE_SYS_VFS_H
15515 # include <sys/vfs.h>
15516 #endif
15517 #ifdef HAVE_SYS_STATFS_H
15518 # include <sys/statfs.h>
15519 #endif
15521 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15523 cat >>confdefs.h <<_ACEOF
15524 #define HAVE_STRUCT_STATFS_F_FFREE 1
15525 _ACEOF
15529 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15530 #ifdef HAVE_SYS_PARAM_H
15531 # include <sys/param.h>
15532 #endif
15533 #ifdef HAVE_SYS_MOUNT_H
15534 # include <sys/mount.h>
15535 #endif
15536 #ifdef HAVE_SYS_VFS_H
15537 # include <sys/vfs.h>
15538 #endif
15539 #ifdef HAVE_SYS_STATFS_H
15540 # include <sys/statfs.h>
15541 #endif
15543 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15545 cat >>confdefs.h <<_ACEOF
15546 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15547 _ACEOF
15551 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15552 #ifdef HAVE_SYS_PARAM_H
15553 # include <sys/param.h>
15554 #endif
15555 #ifdef HAVE_SYS_MOUNT_H
15556 # include <sys/mount.h>
15557 #endif
15558 #ifdef HAVE_SYS_VFS_H
15559 # include <sys/vfs.h>
15560 #endif
15561 #ifdef HAVE_SYS_STATFS_H
15562 # include <sys/statfs.h>
15563 #endif
15565 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15567 cat >>confdefs.h <<_ACEOF
15568 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15569 _ACEOF
15575 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15576 #include <sys/statvfs.h>
15577 #endif
15579 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15581 cat >>confdefs.h <<_ACEOF
15582 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15583 _ACEOF
15589 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15590 #include <dirent.h>
15591 #endif
15593 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15595 cat >>confdefs.h <<_ACEOF
15596 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15597 _ACEOF
15603 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15604 #ifdef HAVE_SYS_SOCKET_H
15605 # include <sys/socket.h>
15606 #endif
15607 #ifdef HAVE_SYS_UN_H
15608 # include <sys/un.h>
15609 #endif
15611 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15613 cat >>confdefs.h <<_ACEOF
15614 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15615 _ACEOF
15619 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15620 #ifdef HAVE_SYS_SOCKET_H
15621 # include <sys/socket.h>
15622 #endif
15623 #ifdef HAVE_SYS_UN_H
15624 # include <sys/un.h>
15625 #endif
15627 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15629 cat >>confdefs.h <<_ACEOF
15630 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15631 _ACEOF
15635 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15636 #ifdef HAVE_SYS_SOCKET_H
15637 # include <sys/socket.h>
15638 #endif
15639 #ifdef HAVE_SYS_UN_H
15640 # include <sys/un.h>
15641 #endif
15643 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15645 cat >>confdefs.h <<_ACEOF
15646 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15647 _ACEOF
15653 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15654 #ifdef HAVE_SCSI_SG_H
15655 #include <scsi/sg.h>
15656 #endif
15658 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15660 cat >>confdefs.h <<_ACEOF
15661 #define HAVE_SCSIREQ_T_CMD 1
15662 _ACEOF
15666 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>
15667 #ifdef HAVE_SCSI_SG_H
15668 #include <scsi/sg.h>
15669 #endif
15671 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15673 cat >>confdefs.h <<_ACEOF
15674 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15675 _ACEOF
15681 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15683 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15685 cat >>confdefs.h <<_ACEOF
15686 #define HAVE_SIGINFO_T_SI_FD 1
15687 _ACEOF
15693 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15694 #ifdef HAVE_SYS_MTIO_H
15695 #include <sys/mtio.h>
15696 #endif
15698 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15700 cat >>confdefs.h <<_ACEOF
15701 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15702 _ACEOF
15706 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
15707 #ifdef HAVE_SYS_MTIO_H
15708 #include <sys/mtio.h>
15709 #endif
15711 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
15713 cat >>confdefs.h <<_ACEOF
15714 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
15715 _ACEOF
15719 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
15720 #ifdef HAVE_SYS_MTIO_H
15721 #include <sys/mtio.h>
15722 #endif
15724 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
15726 cat >>confdefs.h <<_ACEOF
15727 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
15728 _ACEOF
15734 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
15735 #include <getopt.h>
15736 #endif
15738 if test "x$ac_cv_member_struct_option_name" = xyes; then :
15740 cat >>confdefs.h <<_ACEOF
15741 #define HAVE_STRUCT_OPTION_NAME 1
15742 _ACEOF
15748 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
15749 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
15751 cat >>confdefs.h <<_ACEOF
15752 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15753 _ACEOF
15757 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15758 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
15760 cat >>confdefs.h <<_ACEOF
15761 #define HAVE_STRUCT_STAT_ST_MTIM 1
15762 _ACEOF
15766 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15767 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
15769 cat >>confdefs.h <<_ACEOF
15770 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
15771 _ACEOF
15775 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
15776 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
15778 cat >>confdefs.h <<_ACEOF
15779 #define HAVE_STRUCT_STAT_ST_CTIM 1
15780 _ACEOF
15784 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
15785 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
15787 cat >>confdefs.h <<_ACEOF
15788 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
15789 _ACEOF
15793 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
15794 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
15796 cat >>confdefs.h <<_ACEOF
15797 #define HAVE_STRUCT_STAT_ST_ATIM 1
15798 _ACEOF
15802 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
15803 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
15805 cat >>confdefs.h <<_ACEOF
15806 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
15807 _ACEOF
15811 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
15812 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
15814 cat >>confdefs.h <<_ACEOF
15815 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
15816 _ACEOF
15820 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
15821 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
15823 cat >>confdefs.h <<_ACEOF
15824 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
15825 _ACEOF
15829 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
15830 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
15832 cat >>confdefs.h <<_ACEOF
15833 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
15834 _ACEOF
15838 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
15839 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
15841 cat >>confdefs.h <<_ACEOF
15842 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
15843 _ACEOF
15847 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
15848 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
15850 cat >>confdefs.h <<_ACEOF
15851 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
15852 _ACEOF
15858 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
15859 #include <sys/types.h>
15860 #endif
15861 #ifdef HAVE_NETINET_IN_H
15862 #include <netinet/in.h>
15863 #endif
15865 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15867 cat >>confdefs.h <<_ACEOF
15868 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15869 _ACEOF
15875 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
15876 #include <resolv.h>
15877 #endif
15879 if test "x$ac_cv_type_struct___res_state" = xyes; then :
15881 cat >>confdefs.h <<_ACEOF
15882 #define HAVE_STRUCT___RES_STATE 1
15883 _ACEOF
15889 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
15890 #include <resolv.h>
15891 #endif
15893 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
15895 cat >>confdefs.h <<_ACEOF
15896 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
15897 _ACEOF
15903 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
15904 #include <sys/types.h>
15905 #endif
15906 #ifdef HAVE_NETINET_IN_H
15907 # include <netinet/in.h>
15908 #endif
15909 #ifdef HAVE_ARPA_NAMESER_H
15910 # include <arpa/nameser.h>
15911 #endif
15913 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
15915 cat >>confdefs.h <<_ACEOF
15916 #define HAVE_NS_MSG__MSG_PTR 1
15917 _ACEOF
15923 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
15924 #include <sys/types.h>
15925 #endif
15926 #ifdef HAVE_NETINET_IP_H
15927 #include <netinet/ip.h>
15928 #endif
15929 #ifdef HAVE_NETINET_IP_ICMP_H
15930 #include <netinet/ip_icmp.h>
15931 #endif
15932 #ifdef HAVE_NETINET_ICMP_VAR_H
15933 #include <netinet/icmp_var.h>
15934 #endif
15936 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
15938 cat >>confdefs.h <<_ACEOF
15939 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
15940 _ACEOF
15946 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
15947 #include <sys/types.h>
15948 #endif
15949 #ifdef HAVE_ALIAS_H
15950 #include <alias.h>
15951 #endif
15952 #ifdef HAVE_SYS_SOCKET_H
15953 #include <sys/socket.h>
15954 #endif
15955 #ifdef HAVE_SYS_SOCKETVAR_H
15956 #include <sys/socketvar.h>
15957 #endif
15958 #ifdef HAVE_SYS_TIMEOUT_H
15959 #include <sys/timeout.h>
15960 #endif
15961 #ifdef HAVE_NETINET_IN_H
15962 #include <netinet/in.h>
15963 #endif
15964 #ifdef HAVE_NETINET_IN_SYSTM_H
15965 #include <netinet/in_systm.h>
15966 #endif
15967 #ifdef HAVE_NETINET_IP_H
15968 #include <netinet/ip.h>
15969 #endif
15970 #ifdef HAVE_NETINET_IP_VAR_H
15971 #include <netinet/ip_var.h>
15972 #endif
15973 #ifdef HAVE_NETINET_IP_ICMP_H
15974 #include <netinet/ip_icmp.h>
15975 #endif
15976 #ifdef HAVE_NETINET_ICMP_VAR_H
15977 #include <netinet/icmp_var.h>
15978 #endif
15980 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
15982 cat >>confdefs.h <<_ACEOF
15983 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
15984 _ACEOF
15990 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
15991 #include <sys/types.h>
15992 #endif
15993 #ifdef HAVE_SYS_SOCKETVAR_H
15994 #include <sys/socketvar.h>
15995 #endif
15996 #ifdef HAVE_NETINET_IN_H
15997 #include <netinet/in.h>
15998 #endif
15999 #ifdef HAVE_NETINET_IP_VAR_H
16000 #include <netinet/ip_var.h>
16001 #endif
16003 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
16005 cat >>confdefs.h <<_ACEOF
16006 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
16007 _ACEOF
16013 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
16014 #include <netinet/ip_var.h>
16015 #endif
16017 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
16019 cat >>confdefs.h <<_ACEOF
16020 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
16021 _ACEOF
16027 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
16028 #include <sys/types.h>
16029 #endif
16030 #ifdef HAVE_SYS_SOCKETVAR_H
16031 #include <sys/socketvar.h>
16032 #endif
16033 #ifdef HAVE_NETINET_IN_H
16034 #include <netinet/in.h>
16035 #endif
16036 #ifdef HAVE_NETINET_TCP_H
16037 #include <netinet/tcp.h>
16038 #endif
16039 #ifdef HAVE_NETINET_TCP_VAR_H
16040 #include <netinet/tcp_var.h>
16041 #endif
16043 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
16045 cat >>confdefs.h <<_ACEOF
16046 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
16047 _ACEOF
16053 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
16054 #include <netinet/tcp_var.h>
16055 #endif
16057 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
16059 cat >>confdefs.h <<_ACEOF
16060 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
16061 _ACEOF
16067 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
16068 #include <sys/types.h>
16069 #endif
16070 #ifdef HAVE_NETINET_IN_H
16071 #include <netinet/in.h>
16072 #endif
16073 #ifdef HAVE_NETINET_IP_VAR_H
16074 #include <netinet/ip_var.h>
16075 #endif
16076 #ifdef HAVE_NETINET_UDP_H
16077 #include <netinet/udp.h>
16078 #endif
16079 #ifdef HAVE_NETINET_UDP_VAR_H
16080 #include <netinet/udp_var.h>
16081 #endif
16083 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
16085 cat >>confdefs.h <<_ACEOF
16086 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
16087 _ACEOF
16093 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
16094 #include <sys/types.h>
16095 #endif
16096 #ifdef HAVE_NET_IF_H
16097 # include <net/if.h>
16098 #endif
16100 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
16102 cat >>confdefs.h <<_ACEOF
16103 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16104 _ACEOF
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16111 $as_echo_n "checking for timezone variable... " >&6; }
16112 if ${ac_cv_have_timezone+:} false; then :
16113 $as_echo_n "(cached) " >&6
16114 else
16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16116 /* end confdefs.h. */
16117 #include <time.h>
16119 main ()
16121 timezone = 1
16123 return 0;
16125 _ACEOF
16126 if ac_fn_c_try_link "$LINENO"; then :
16127 ac_cv_have_timezone="yes"
16128 else
16129 ac_cv_have_timezone="no"
16131 rm -f core conftest.err conftest.$ac_objext \
16132 conftest$ac_exeext conftest.$ac_ext
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
16135 $as_echo "$ac_cv_have_timezone" >&6; }
16136 if test "$ac_cv_have_timezone" = "yes"
16137 then
16139 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
16143 $as_echo_n "checking for daylight variable... " >&6; }
16144 if ${ac_cv_have_daylight+:} false; then :
16145 $as_echo_n "(cached) " >&6
16146 else
16147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16148 /* end confdefs.h. */
16149 #include <time.h>
16151 main ()
16153 daylight = 1
16155 return 0;
16157 _ACEOF
16158 if ac_fn_c_try_link "$LINENO"; then :
16159 ac_cv_have_daylight="yes"
16160 else
16161 ac_cv_have_daylight="no"
16163 rm -f core conftest.err conftest.$ac_objext \
16164 conftest$ac_exeext conftest.$ac_ext
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
16167 $as_echo "$ac_cv_have_daylight" >&6; }
16168 if test "$ac_cv_have_daylight" = "yes"
16169 then
16171 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16175 ac_save_LIBS="$LIBS"
16176 LIBS="$LIBS -lm"
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
16178 $as_echo_n "checking for isfinite... " >&6; }
16179 if ${ac_cv_have_isfinite+:} false; then :
16180 $as_echo_n "(cached) " >&6
16181 else
16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h. */
16184 #define _GNU_SOURCE
16185 #include <math.h>
16187 main ()
16189 float f = 0.0; return isfinite(f)
16191 return 0;
16193 _ACEOF
16194 if ac_fn_c_try_link "$LINENO"; then :
16195 ac_cv_have_isfinite="yes"
16196 else
16197 ac_cv_have_isfinite="no"
16199 rm -f core conftest.err conftest.$ac_objext \
16200 conftest$ac_exeext conftest.$ac_ext
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isfinite" >&5
16203 $as_echo "$ac_cv_have_isfinite" >&6; }
16204 if test "$ac_cv_have_isfinite" = "yes"
16205 then
16207 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16211 ac_save_LIBS="$LIBS"
16212 LIBS="$LIBS -lm"
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16214 $as_echo_n "checking for isinf... " >&6; }
16215 if ${ac_cv_have_isinf+:} false; then :
16216 $as_echo_n "(cached) " >&6
16217 else
16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16219 /* end confdefs.h. */
16220 #include <math.h>
16222 main ()
16224 float f = 0.0; return isinf(f)
16226 return 0;
16228 _ACEOF
16229 if ac_fn_c_try_link "$LINENO"; then :
16230 ac_cv_have_isinf="yes"
16231 else
16232 ac_cv_have_isinf="no"
16234 rm -f core conftest.err conftest.$ac_objext \
16235 conftest$ac_exeext conftest.$ac_ext
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
16238 $as_echo "$ac_cv_have_isinf" >&6; }
16239 if test "$ac_cv_have_isinf" = "yes"
16240 then
16242 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16247 $as_echo_n "checking for isnan... " >&6; }
16248 if ${ac_cv_have_isnan+:} false; then :
16249 $as_echo_n "(cached) " >&6
16250 else
16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16252 /* end confdefs.h. */
16253 #include <math.h>
16255 main ()
16257 float f = 0.0; return isnan(f)
16259 return 0;
16261 _ACEOF
16262 if ac_fn_c_try_link "$LINENO"; then :
16263 ac_cv_have_isnan="yes"
16264 else
16265 ac_cv_have_isnan="no"
16267 rm -f core conftest.err conftest.$ac_objext \
16268 conftest$ac_exeext conftest.$ac_ext
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
16271 $as_echo "$ac_cv_have_isnan" >&6; }
16272 if test "$ac_cv_have_isnan" = "yes"
16273 then
16275 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16278 LIBS="$ac_save_LIBS"
16281 case $host_cpu in
16282 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
16283 $as_echo_n "checking whether we need to define __i386__... " >&6; }
16284 if ${ac_cv_cpp_def___i386__+:} false; then :
16285 $as_echo_n "(cached) " >&6
16286 else
16287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288 /* end confdefs.h. */
16289 #ifndef __i386__
16291 #endif
16292 _ACEOF
16293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16294 $EGREP "yes" >/dev/null 2>&1; then :
16295 ac_cv_cpp_def___i386__=yes
16296 else
16297 ac_cv_cpp_def___i386__=no
16299 rm -f conftest*
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
16303 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
16304 if test $ac_cv_cpp_def___i386__ = yes; then :
16305 CFLAGS="$CFLAGS -D__i386__"
16306 LINTFLAGS="$LINTFLAGS -D__i386__"
16307 fi ;;
16308 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
16309 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
16310 if ${ac_cv_cpp_def___x86_64__+:} false; then :
16311 $as_echo_n "(cached) " >&6
16312 else
16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314 /* end confdefs.h. */
16315 #ifndef __x86_64__
16317 #endif
16318 _ACEOF
16319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16320 $EGREP "yes" >/dev/null 2>&1; then :
16321 ac_cv_cpp_def___x86_64__=yes
16322 else
16323 ac_cv_cpp_def___x86_64__=no
16325 rm -f conftest*
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
16329 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
16330 if test $ac_cv_cpp_def___x86_64__ = yes; then :
16331 CFLAGS="$CFLAGS -D__x86_64__"
16332 LINTFLAGS="$LINTFLAGS -D__x86_64__"
16333 fi ;;
16334 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
16335 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
16336 if ${ac_cv_cpp_def___sparc64__+:} false; then :
16337 $as_echo_n "(cached) " >&6
16338 else
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h. */
16341 #ifndef __sparc64__
16343 #endif
16344 _ACEOF
16345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16346 $EGREP "yes" >/dev/null 2>&1; then :
16347 ac_cv_cpp_def___sparc64__=yes
16348 else
16349 ac_cv_cpp_def___sparc64__=no
16351 rm -f conftest*
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
16355 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
16356 if test $ac_cv_cpp_def___sparc64__ = yes; then :
16357 CFLAGS="$CFLAGS -D__sparc64__"
16358 LINTFLAGS="$LINTFLAGS -D__sparc64__"
16359 fi ;;
16360 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
16361 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
16362 if ${ac_cv_cpp_def___sparc__+:} false; then :
16363 $as_echo_n "(cached) " >&6
16364 else
16365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16366 /* end confdefs.h. */
16367 #ifndef __sparc__
16369 #endif
16370 _ACEOF
16371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16372 $EGREP "yes" >/dev/null 2>&1; then :
16373 ac_cv_cpp_def___sparc__=yes
16374 else
16375 ac_cv_cpp_def___sparc__=no
16377 rm -f conftest*
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
16381 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
16382 if test $ac_cv_cpp_def___sparc__ = yes; then :
16383 CFLAGS="$CFLAGS -D__sparc__"
16384 LINTFLAGS="$LINTFLAGS -D__sparc__"
16385 fi ;;
16386 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
16387 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
16388 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
16389 $as_echo_n "(cached) " >&6
16390 else
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16393 #ifndef __powerpc64__
16395 #endif
16396 _ACEOF
16397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16398 $EGREP "yes" >/dev/null 2>&1; then :
16399 ac_cv_cpp_def___powerpc64__=yes
16400 else
16401 ac_cv_cpp_def___powerpc64__=no
16403 rm -f conftest*
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
16407 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
16408 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
16409 CFLAGS="$CFLAGS -D__powerpc64__"
16410 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
16411 fi ;;
16412 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
16413 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16414 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16415 $as_echo_n "(cached) " >&6
16416 else
16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418 /* end confdefs.h. */
16419 #ifndef __powerpc__
16421 #endif
16422 _ACEOF
16423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16424 $EGREP "yes" >/dev/null 2>&1; then :
16425 ac_cv_cpp_def___powerpc__=yes
16426 else
16427 ac_cv_cpp_def___powerpc__=no
16429 rm -f conftest*
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16433 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16434 if test $ac_cv_cpp_def___powerpc__ = yes; then :
16435 CFLAGS="$CFLAGS -D__powerpc__"
16436 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16437 fi ;;
16438 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16439 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16440 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16441 $as_echo_n "(cached) " >&6
16442 else
16443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16444 /* end confdefs.h. */
16445 #ifndef __aarch64__
16447 #endif
16448 _ACEOF
16449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16450 $EGREP "yes" >/dev/null 2>&1; then :
16451 ac_cv_cpp_def___aarch64__=yes
16452 else
16453 ac_cv_cpp_def___aarch64__=no
16455 rm -f conftest*
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16459 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16460 if test $ac_cv_cpp_def___aarch64__ = yes; then :
16461 CFLAGS="$CFLAGS -D__aarch64__"
16462 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16463 fi ;;
16464 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16465 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16466 if ${ac_cv_cpp_def___arm__+:} false; then :
16467 $as_echo_n "(cached) " >&6
16468 else
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16471 #ifndef __arm__
16473 #endif
16474 _ACEOF
16475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16476 $EGREP "yes" >/dev/null 2>&1; then :
16477 ac_cv_cpp_def___arm__=yes
16478 else
16479 ac_cv_cpp_def___arm__=no
16481 rm -f conftest*
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16485 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16486 if test $ac_cv_cpp_def___arm__ = yes; then :
16487 CFLAGS="$CFLAGS -D__arm__"
16488 LINTFLAGS="$LINTFLAGS -D__arm__"
16489 fi ;;
16490 esac
16492 case $host_vendor in
16493 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16494 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16495 if ${ac_cv_cpp_def___sun__+:} false; then :
16496 $as_echo_n "(cached) " >&6
16497 else
16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h. */
16500 #ifndef __sun__
16502 #endif
16503 _ACEOF
16504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16505 $EGREP "yes" >/dev/null 2>&1; then :
16506 ac_cv_cpp_def___sun__=yes
16507 else
16508 ac_cv_cpp_def___sun__=no
16510 rm -f conftest*
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16514 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16515 if test $ac_cv_cpp_def___sun__ = yes; then :
16516 CFLAGS="$CFLAGS -D__sun__"
16517 LINTFLAGS="$LINTFLAGS -D__sun__"
16518 fi ;;
16519 esac
16525 ac_config_commands="$ac_config_commands include/stamp-h"
16527 $as_echo_n "creating Makefile rules..." >&6
16530 MAKE_TEST_RULES="
16531 RUNTESTFLAGS = -q -P wine
16536 wine_fn_append_rule "
16537 # Rules automatically generated by configure
16539 .INIT: Makefile
16540 .MAKEFILEDEPS:
16541 all: Makefile
16542 Makefile: $srcdir/Makefile.in $srcdir/Make.vars.in config.status
16543 @./config.status Make.tmp Makefile"
16545 test "$srcdir" = . && wine_fn_append_rule "all: .gitignore
16546 .gitignore: config.status
16547 @./config.status .gitignore"
16549 test -n "$CROSSTARGET" || wine_fn_append_rule "crosstest:
16550 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16552 if test "x$enable_fonts" != xno; then
16553 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16554 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16555 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16556 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16557 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16559 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16560 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16561 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16562 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16563 ac_config_links="$ac_config_links wine:tools/winewrapper"
16564 wine_fn_config_symlink wine
16565 if test "x$enable_win64" != xno; then
16566 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16567 wine_fn_config_symlink wine64
16570 wine_fn_config_makerules Make.rules
16571 MAKE_RULES=Make.rules
16572 ac_config_files="$ac_config_files Make.rules"
16575 wine_fn_config_dll acledit enable_acledit
16576 wine_fn_config_dll aclui enable_aclui implib
16577 wine_fn_config_dll activeds enable_activeds implib
16578 wine_fn_config_dll actxprxy enable_actxprxy clean
16579 wine_fn_config_lib adsiid
16580 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
16581 wine_fn_config_test dlls/advapi32/tests advapi32_test
16582 wine_fn_config_dll advpack enable_advpack implib
16583 wine_fn_config_test dlls/advpack/tests advpack_test
16584 wine_fn_config_dll amstream enable_amstream clean
16585 wine_fn_config_test dlls/amstream/tests amstream_test
16586 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
16587 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
16588 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
16589 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
16590 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
16591 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
16592 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
16593 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
16594 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
16595 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
16596 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
16597 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
16598 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
16599 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
16600 wine_fn_config_dll apphelp enable_apphelp
16601 wine_fn_config_test dlls/apphelp/tests apphelp_test
16602 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
16603 wine_fn_config_dll atl enable_atl clean,implib
16604 wine_fn_config_test dlls/atl/tests atl_test
16605 wine_fn_config_dll atl100 enable_atl100 implib
16606 wine_fn_config_test dlls/atl100/tests atl100_test
16607 wine_fn_config_dll atl110 enable_atl110
16608 wine_fn_config_dll atl80 enable_atl80 implib
16609 wine_fn_config_test dlls/atl80/tests atl80_test
16610 wine_fn_config_dll atl90 enable_atl90
16611 wine_fn_config_dll authz enable_authz
16612 wine_fn_config_dll avicap32 enable_avicap32 implib
16613 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
16614 wine_fn_config_test dlls/avifil32/tests avifil32_test
16615 wine_fn_config_dll avifile.dll16 enable_win16
16616 wine_fn_config_dll avrt enable_avrt implib
16617 wine_fn_config_dll bcrypt enable_bcrypt
16618 wine_fn_config_dll browseui enable_browseui clean,po
16619 wine_fn_config_test dlls/browseui/tests browseui_test
16620 wine_fn_config_dll cabinet enable_cabinet implib
16621 wine_fn_config_test dlls/cabinet/tests cabinet_test
16622 wine_fn_config_dll capi2032 enable_capi2032 implib
16623 wine_fn_config_dll cards enable_cards implib
16624 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
16625 wine_fn_config_dll clusapi enable_clusapi implib
16626 wine_fn_config_dll comcat enable_comcat
16627 wine_fn_config_test dlls/comcat/tests comcat_test
16628 wine_fn_config_dll comctl32 enable_comctl32 implib,po
16629 wine_fn_config_test dlls/comctl32/tests comctl32_test
16630 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
16631 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
16632 wine_fn_config_dll comm.drv16 enable_win16
16633 wine_fn_config_dll commdlg.dll16 enable_win16
16634 wine_fn_config_dll compobj.dll16 enable_win16
16635 wine_fn_config_dll compstui enable_compstui implib
16636 wine_fn_config_dll comsvcs enable_comsvcs implib
16637 wine_fn_config_dll credui enable_credui implib,po
16638 wine_fn_config_test dlls/credui/tests credui_test
16639 wine_fn_config_dll crtdll enable_crtdll implib
16640 wine_fn_config_dll crypt32 enable_crypt32 implib,po
16641 wine_fn_config_test dlls/crypt32/tests crypt32_test
16642 wine_fn_config_dll cryptdlg enable_cryptdlg po
16643 wine_fn_config_dll cryptdll enable_cryptdll implib
16644 wine_fn_config_dll cryptnet enable_cryptnet implib
16645 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
16646 wine_fn_config_dll cryptui enable_cryptui implib,po
16647 wine_fn_config_test dlls/cryptui/tests cryptui_test
16648 wine_fn_config_dll ctapi32 enable_ctapi32
16649 wine_fn_config_dll ctl3d.dll16 enable_win16
16650 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
16651 wine_fn_config_dll ctl3dv2.dll16 enable_win16
16652 wine_fn_config_dll d3d10 enable_d3d10 implib
16653 wine_fn_config_test dlls/d3d10/tests d3d10_test
16654 wine_fn_config_dll d3d10core enable_d3d10core implib
16655 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
16656 wine_fn_config_dll d3d11 enable_d3d11
16657 wine_fn_config_dll d3d8 enable_d3d8 implib
16658 wine_fn_config_test dlls/d3d8/tests d3d8_test
16659 wine_fn_config_dll d3d9 enable_d3d9 implib
16660 wine_fn_config_test dlls/d3d9/tests d3d9_test
16661 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
16662 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
16663 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
16664 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
16665 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
16666 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
16667 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
16668 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
16669 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
16670 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
16671 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
16672 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
16673 wine_fn_config_dll d3dim enable_d3dim implib
16674 wine_fn_config_dll d3drm enable_d3drm implib
16675 wine_fn_config_test dlls/d3drm/tests d3drm_test
16676 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
16677 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
16678 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
16679 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
16680 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
16681 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
16682 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
16683 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
16684 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
16685 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
16686 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
16687 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
16688 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
16689 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
16690 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
16691 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
16692 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
16693 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
16694 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
16695 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
16696 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
16697 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
16698 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
16699 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
16700 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
16701 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
16702 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
16703 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
16704 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
16705 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
16706 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
16707 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
16708 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
16709 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
16710 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
16711 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
16712 wine_fn_config_dll dbgeng enable_dbgeng implib
16713 wine_fn_config_dll dbghelp enable_dbghelp implib
16714 wine_fn_config_dll dciman32 enable_dciman32 implib
16715 wine_fn_config_dll ddeml.dll16 enable_win16
16716 wine_fn_config_dll ddraw enable_ddraw clean,implib
16717 wine_fn_config_test dlls/ddraw/tests ddraw_test
16718 wine_fn_config_dll ddrawex enable_ddrawex clean
16719 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
16720 wine_fn_config_dll devenum enable_devenum clean,po
16721 wine_fn_config_test dlls/devenum/tests devenum_test
16722 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
16723 wine_fn_config_dll difxapi enable_difxapi
16724 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
16725 wine_fn_config_test dlls/dinput/tests dinput_test
16726 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
16727 wine_fn_config_test dlls/dinput8/tests dinput8_test
16728 wine_fn_config_dll dispdib.dll16 enable_win16
16729 wine_fn_config_dll dispex enable_dispex clean
16730 wine_fn_config_test dlls/dispex/tests dispex_test
16731 wine_fn_config_dll display.drv16 enable_win16
16732 wine_fn_config_dll dmband enable_dmband clean
16733 wine_fn_config_test dlls/dmband/tests dmband_test
16734 wine_fn_config_dll dmcompos enable_dmcompos clean
16735 wine_fn_config_dll dmime enable_dmime clean
16736 wine_fn_config_test dlls/dmime/tests dmime_test
16737 wine_fn_config_dll dmloader enable_dmloader clean
16738 wine_fn_config_test dlls/dmloader/tests dmloader_test
16739 wine_fn_config_dll dmscript enable_dmscript clean
16740 wine_fn_config_dll dmstyle enable_dmstyle clean
16741 wine_fn_config_dll dmsynth enable_dmsynth clean
16742 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
16743 wine_fn_config_dll dmusic enable_dmusic clean
16744 wine_fn_config_test dlls/dmusic/tests dmusic_test
16745 wine_fn_config_dll dmusic32 enable_dmusic32 implib
16746 wine_fn_config_dll dnsapi enable_dnsapi implib
16747 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
16748 wine_fn_config_dll dplay enable_dplay implib
16749 wine_fn_config_dll dplayx enable_dplayx clean,implib
16750 wine_fn_config_test dlls/dplayx/tests dplayx_test
16751 wine_fn_config_dll dpnaddr enable_dpnaddr
16752 wine_fn_config_dll dpnet enable_dpnet clean,implib
16753 wine_fn_config_test dlls/dpnet/tests dpnet_test
16754 wine_fn_config_dll dpnhpast enable_dpnhpast
16755 wine_fn_config_dll dpnlobby enable_dpnlobby
16756 wine_fn_config_dll dpwsockx enable_dpwsockx
16757 wine_fn_config_dll drmclien enable_drmclien
16758 wine_fn_config_dll dsound enable_dsound clean,implib
16759 wine_fn_config_test dlls/dsound/tests dsound_test
16760 wine_fn_config_dll dssenh enable_dssenh
16761 wine_fn_config_test dlls/dssenh/tests dssenh_test
16762 wine_fn_config_dll dswave enable_dswave clean
16763 wine_fn_config_dll dwmapi enable_dwmapi implib
16764 wine_fn_config_dll dwrite enable_dwrite implib
16765 wine_fn_config_test dlls/dwrite/tests dwrite_test
16766 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
16767 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
16768 wine_fn_config_lib dxerr8
16769 wine_fn_config_lib dxerr9
16770 wine_fn_config_dll dxgi enable_dxgi implib
16771 wine_fn_config_test dlls/dxgi/tests dxgi_test
16772 wine_fn_config_lib dxguid
16773 wine_fn_config_dll explorerframe enable_explorerframe clean
16774 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
16775 wine_fn_config_dll faultrep enable_faultrep implib
16776 wine_fn_config_test dlls/faultrep/tests faultrep_test
16777 wine_fn_config_dll fltlib enable_fltlib
16778 wine_fn_config_dll fusion enable_fusion
16779 wine_fn_config_test dlls/fusion/tests fusion_test
16780 wine_fn_config_dll fwpuclnt enable_fwpuclnt
16781 wine_fn_config_dll gameux enable_gameux clean
16782 wine_fn_config_test dlls/gameux/tests gameux_test
16783 wine_fn_config_dll gdi.exe16 enable_win16
16784 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
16785 wine_fn_config_test dlls/gdi32/tests gdi32_test
16786 wine_fn_config_dll gdiplus enable_gdiplus implib
16787 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
16788 wine_fn_config_dll glu32 enable_glu32 implib
16789 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
16790 wine_fn_config_dll gpkcsp enable_gpkcsp
16791 wine_fn_config_dll hal enable_hal
16792 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
16793 wine_fn_config_dll hid enable_hid implib
16794 wine_fn_config_dll hlink enable_hlink clean,implib
16795 wine_fn_config_test dlls/hlink/tests hlink_test
16796 wine_fn_config_dll hnetcfg enable_hnetcfg clean
16797 wine_fn_config_dll httpapi enable_httpapi
16798 wine_fn_config_dll iccvid enable_iccvid po
16799 wine_fn_config_dll icmp enable_icmp
16800 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
16801 wine_fn_config_test dlls/ieframe/tests ieframe_test
16802 wine_fn_config_dll ifsmgr.vxd enable_win16
16803 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
16804 wine_fn_config_dll imagehlp enable_imagehlp implib
16805 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
16806 wine_fn_config_dll imm.dll16 enable_win16
16807 wine_fn_config_dll imm32 enable_imm32 implib
16808 wine_fn_config_test dlls/imm32/tests imm32_test
16809 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
16810 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16811 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16812 wine_fn_config_dll inetmib1 enable_inetmib1
16813 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16814 wine_fn_config_dll infosoft enable_infosoft clean
16815 wine_fn_config_test dlls/infosoft/tests infosoft_test
16816 wine_fn_config_dll initpki enable_initpki
16817 wine_fn_config_dll inkobj enable_inkobj
16818 wine_fn_config_dll inseng enable_inseng clean
16819 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16820 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16821 wine_fn_config_dll itircl enable_itircl
16822 wine_fn_config_dll itss enable_itss clean
16823 wine_fn_config_test dlls/itss/tests itss_test
16824 wine_fn_config_dll joy.cpl enable_joy_cpl po
16825 wine_fn_config_dll jscript enable_jscript clean,po
16826 wine_fn_config_test dlls/jscript/tests jscript_test
16827 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
16828 wine_fn_config_test dlls/kernel32/tests kernel32_test
16829 wine_fn_config_dll keyboard.drv16 enable_win16
16830 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16831 wine_fn_config_dll ktmw32 enable_ktmw32
16832 wine_fn_config_dll loadperf enable_loadperf implib
16833 wine_fn_config_dll localspl enable_localspl po
16834 wine_fn_config_test dlls/localspl/tests localspl_test
16835 wine_fn_config_dll localui enable_localui po
16836 wine_fn_config_test dlls/localui/tests localui_test
16837 wine_fn_config_dll lz32 enable_lz32 implib
16838 wine_fn_config_test dlls/lz32/tests lz32_test
16839 wine_fn_config_dll lzexpand.dll16 enable_win16
16840 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16841 wine_fn_config_test dlls/mapi32/tests mapi32_test
16842 wine_fn_config_dll mapistub enable_mapistub
16843 wine_fn_config_dll mciavi32 enable_mciavi32
16844 wine_fn_config_dll mcicda enable_mcicda
16845 wine_fn_config_dll mciqtz32 enable_mciqtz32
16846 wine_fn_config_dll mciseq enable_mciseq
16847 wine_fn_config_dll mciwave enable_mciwave
16848 wine_fn_config_dll mgmtapi enable_mgmtapi
16849 wine_fn_config_dll midimap enable_midimap
16850 wine_fn_config_dll mlang enable_mlang clean,implib
16851 wine_fn_config_test dlls/mlang/tests mlang_test
16852 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
16853 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16854 wine_fn_config_dll mmdevapi enable_mmdevapi clean
16855 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16856 wine_fn_config_dll mmdevldr.vxd enable_win16
16857 wine_fn_config_dll mmsystem.dll16 enable_win16
16858 wine_fn_config_dll monodebg.vxd enable_win16
16859 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16860 wine_fn_config_dll mouse.drv16 enable_win16
16861 wine_fn_config_dll mpr enable_mpr implib,po
16862 wine_fn_config_test dlls/mpr/tests mpr_test
16863 wine_fn_config_dll mprapi enable_mprapi implib
16864 wine_fn_config_dll msacm.dll16 enable_win16
16865 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16866 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16867 wine_fn_config_test dlls/msacm32/tests msacm32_test
16868 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16869 wine_fn_config_dll mscat32 enable_mscat32
16870 wine_fn_config_dll mscms enable_mscms implib
16871 wine_fn_config_test dlls/mscms/tests mscms_test
16872 wine_fn_config_dll mscoree enable_mscoree clean
16873 wine_fn_config_test dlls/mscoree/tests mscoree_test
16874 wine_fn_config_dll msctf enable_msctf clean
16875 wine_fn_config_test dlls/msctf/tests msctf_test
16876 wine_fn_config_dll msdaps enable_msdaps clean
16877 wine_fn_config_dll msdmo enable_msdmo implib
16878 wine_fn_config_dll msftedit enable_msftedit
16879 wine_fn_config_dll msg711.acm enable_msg711_acm
16880 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16881 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
16882 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
16883 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
16884 wine_fn_config_dll msi enable_msi clean,implib,po
16885 wine_fn_config_test dlls/msi/tests msi_test
16886 wine_fn_config_dll msident enable_msident clean
16887 wine_fn_config_dll msimg32 enable_msimg32 implib
16888 wine_fn_config_dll msimsg enable_msimsg
16889 wine_fn_config_dll msimtf enable_msimtf clean
16890 wine_fn_config_dll msisip enable_msisip
16891 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16892 wine_fn_config_dll msls31 enable_msls31
16893 wine_fn_config_dll msnet32 enable_msnet32
16894 wine_fn_config_dll mspatcha enable_mspatcha
16895 wine_fn_config_dll msrle32 enable_msrle32 po
16896 wine_fn_config_test dlls/msrle32/tests msrle32_test
16897 wine_fn_config_dll mssign32 enable_mssign32
16898 wine_fn_config_dll mssip32 enable_mssip32
16899 wine_fn_config_dll mstask enable_mstask clean
16900 wine_fn_config_test dlls/mstask/tests mstask_test
16901 wine_fn_config_dll msvcirt enable_msvcirt
16902 wine_fn_config_dll msvcm80 enable_msvcm80
16903 wine_fn_config_dll msvcm90 enable_msvcm90
16904 wine_fn_config_dll msvcp100 enable_msvcp100
16905 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16906 wine_fn_config_dll msvcp110 enable_msvcp110
16907 wine_fn_config_dll msvcp60 enable_msvcp60
16908 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16909 wine_fn_config_dll msvcp70 enable_msvcp70
16910 wine_fn_config_dll msvcp71 enable_msvcp71
16911 wine_fn_config_dll msvcp80 enable_msvcp80
16912 wine_fn_config_dll msvcp90 enable_msvcp90
16913 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16914 wine_fn_config_dll msvcr100 enable_msvcr100 implib
16915 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16916 wine_fn_config_dll msvcr110 enable_msvcr110 implib
16917 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16918 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16919 wine_fn_config_dll msvcr80 enable_msvcr80 implib
16920 wine_fn_config_dll msvcr90 enable_msvcr90 implib
16921 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16922 wine_fn_config_dll msvcrt enable_msvcrt implib
16923 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16924 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16925 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16926 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16927 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16928 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16929 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16930 wine_fn_config_dll msvidc32 enable_msvidc32 po
16931 wine_fn_config_dll msvideo.dll16 enable_win16
16932 wine_fn_config_dll mswsock enable_mswsock implib
16933 wine_fn_config_dll msxml enable_msxml clean
16934 wine_fn_config_dll msxml2 enable_msxml2 clean
16935 wine_fn_config_dll msxml3 enable_msxml3 clean
16936 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
16937 wine_fn_config_dll msxml4 enable_msxml4 clean
16938 wine_fn_config_dll msxml6 enable_msxml6 clean
16939 wine_fn_config_dll nddeapi enable_nddeapi implib
16940 wine_fn_config_dll netapi32 enable_netapi32 implib
16941 wine_fn_config_test dlls/netapi32/tests netapi32_test
16942 wine_fn_config_dll netcfgx enable_netcfgx
16943 wine_fn_config_dll newdev enable_newdev implib
16944 wine_fn_config_dll normaliz enable_normaliz implib
16945 wine_fn_config_dll npmshtml enable_npmshtml
16946 wine_fn_config_dll ntdll enable_ntdll implib
16947 wine_fn_config_test dlls/ntdll/tests ntdll_test
16948 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16949 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16950 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16951 wine_fn_config_dll ntprint enable_ntprint
16952 wine_fn_config_test dlls/ntprint/tests ntprint_test
16953 wine_fn_config_dll objsel enable_objsel clean
16954 wine_fn_config_dll odbc32 enable_odbc32 implib
16955 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16956 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16957 wine_fn_config_dll odbccu32 enable_odbccu32
16958 wine_fn_config_dll ole2.dll16 enable_win16
16959 wine_fn_config_dll ole2conv.dll16 enable_win16
16960 wine_fn_config_dll ole2disp.dll16 enable_win16
16961 wine_fn_config_dll ole2nls.dll16 enable_win16
16962 wine_fn_config_dll ole2prox.dll16 enable_win16
16963 wine_fn_config_dll ole2thk.dll16 enable_win16
16964 wine_fn_config_dll ole32 enable_ole32 clean,implib
16965 wine_fn_config_test dlls/ole32/tests ole32_test
16966 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
16967 wine_fn_config_test dlls/oleacc/tests oleacc_test
16968 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
16969 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
16970 wine_fn_config_dll olecli.dll16 enable_win16
16971 wine_fn_config_dll olecli32 enable_olecli32 implib
16972 wine_fn_config_dll oledb32 enable_oledb32 clean
16973 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
16974 wine_fn_config_dll oledlg enable_oledlg implib,po
16975 wine_fn_config_dll olepro32 enable_olepro32 implib
16976 wine_fn_config_dll olesvr.dll16 enable_win16
16977 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16978 wine_fn_config_dll olethk32 enable_olethk32
16979 wine_fn_config_dll openal32 enable_openal32
16980 wine_fn_config_dll opencl enable_opencl
16981 wine_fn_config_dll opengl32 enable_opengl32 implib
16982 wine_fn_config_test dlls/opengl32/tests opengl32_test
16983 wine_fn_config_dll pdh enable_pdh implib
16984 wine_fn_config_test dlls/pdh/tests pdh_test
16985 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16986 wine_fn_config_dll pidgen enable_pidgen
16987 wine_fn_config_dll powrprof enable_powrprof implib
16988 wine_fn_config_dll printui enable_printui
16989 wine_fn_config_dll propsys enable_propsys clean,implib
16990 wine_fn_config_test dlls/propsys/tests propsys_test
16991 wine_fn_config_dll psapi enable_psapi implib
16992 wine_fn_config_test dlls/psapi/tests psapi_test
16993 wine_fn_config_dll pstorec enable_pstorec clean
16994 wine_fn_config_dll qcap enable_qcap
16995 wine_fn_config_test dlls/qcap/tests qcap_test
16996 wine_fn_config_dll qedit enable_qedit clean
16997 wine_fn_config_test dlls/qedit/tests qedit_test
16998 wine_fn_config_dll qmgr enable_qmgr clean
16999 wine_fn_config_test dlls/qmgr/tests qmgr_test
17000 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
17001 wine_fn_config_dll quartz enable_quartz clean,implib
17002 wine_fn_config_test dlls/quartz/tests quartz_test clean
17003 wine_fn_config_dll query enable_query
17004 wine_fn_config_dll rasapi16.dll16 enable_win16
17005 wine_fn_config_dll rasapi32 enable_rasapi32 implib
17006 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
17007 wine_fn_config_dll rasdlg enable_rasdlg implib
17008 wine_fn_config_dll regapi enable_regapi
17009 wine_fn_config_dll resutils enable_resutils implib
17010 wine_fn_config_dll riched20 enable_riched20 implib
17011 wine_fn_config_test dlls/riched20/tests riched20_test
17012 wine_fn_config_dll riched32 enable_riched32
17013 wine_fn_config_test dlls/riched32/tests riched32_test
17014 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
17015 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
17016 wine_fn_config_dll rsabase enable_rsabase
17017 wine_fn_config_dll rsaenh enable_rsaenh implib
17018 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
17019 wine_fn_config_dll rstrtmgr enable_rstrtmgr
17020 wine_fn_config_dll rtutils enable_rtutils implib
17021 wine_fn_config_dll samlib enable_samlib
17022 wine_fn_config_dll sane.ds enable_sane_ds po
17023 wine_fn_config_dll scarddlg enable_scarddlg
17024 wine_fn_config_dll sccbase enable_sccbase
17025 wine_fn_config_dll schannel enable_schannel
17026 wine_fn_config_test dlls/schannel/tests schannel_test
17027 wine_fn_config_dll scrrun enable_scrrun clean
17028 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
17029 wine_fn_config_dll scsiport.sys enable_scsiport_sys
17030 wine_fn_config_dll secur32 enable_secur32 implib
17031 wine_fn_config_test dlls/secur32/tests secur32_test
17032 wine_fn_config_dll security enable_security
17033 wine_fn_config_dll sensapi enable_sensapi implib
17034 wine_fn_config_dll serialui enable_serialui implib,po
17035 wine_fn_config_test dlls/serialui/tests serialui_test
17036 wine_fn_config_dll setupapi enable_setupapi implib,po
17037 wine_fn_config_test dlls/setupapi/tests setupapi_test
17038 wine_fn_config_dll setupx.dll16 enable_win16
17039 wine_fn_config_dll sfc enable_sfc implib
17040 wine_fn_config_dll sfc_os enable_sfc_os implib
17041 wine_fn_config_dll shdoclc enable_shdoclc po
17042 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
17043 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
17044 wine_fn_config_dll shell.dll16 enable_win16
17045 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
17046 wine_fn_config_test dlls/shell32/tests shell32_test
17047 wine_fn_config_dll shfolder enable_shfolder implib
17048 wine_fn_config_dll shlwapi enable_shlwapi implib,po
17049 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
17050 wine_fn_config_dll slbcsp enable_slbcsp
17051 wine_fn_config_dll slc enable_slc implib
17052 wine_fn_config_dll snmpapi enable_snmpapi implib
17053 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
17054 wine_fn_config_dll softpub enable_softpub
17055 wine_fn_config_dll sound.drv16 enable_win16
17056 wine_fn_config_dll spoolss enable_spoolss implib
17057 wine_fn_config_test dlls/spoolss/tests spoolss_test
17058 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
17059 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
17060 wine_fn_config_dll sti enable_sti clean,implib
17061 wine_fn_config_test dlls/sti/tests sti_test
17062 wine_fn_config_dll storage.dll16 enable_win16
17063 wine_fn_config_dll stress.dll16 enable_win16
17064 wine_fn_config_lib strmbase
17065 wine_fn_config_lib strmiids
17066 wine_fn_config_dll svrapi enable_svrapi
17067 wine_fn_config_dll sxs enable_sxs implib
17068 wine_fn_config_test dlls/sxs/tests sxs_test
17069 wine_fn_config_dll system.drv16 enable_win16
17070 wine_fn_config_dll t2embed enable_t2embed
17071 wine_fn_config_dll tapi32 enable_tapi32 implib
17072 wine_fn_config_dll taskschd enable_taskschd clean
17073 wine_fn_config_dll toolhelp.dll16 enable_win16
17074 wine_fn_config_dll traffic enable_traffic
17075 wine_fn_config_dll twain.dll16 enable_win16
17076 wine_fn_config_dll twain_32 enable_twain_32
17077 wine_fn_config_test dlls/twain_32/tests twain_32_test
17078 wine_fn_config_dll typelib.dll16 enable_win16
17079 wine_fn_config_dll unicows enable_unicows implib
17080 wine_fn_config_dll updspapi enable_updspapi
17081 wine_fn_config_dll url enable_url implib
17082 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17083 wine_fn_config_test dlls/urlmon/tests urlmon_test
17084 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17085 wine_fn_config_dll user.exe16 enable_win16
17086 wine_fn_config_dll user32 enable_user32 clean,implib,po
17087 wine_fn_config_test dlls/user32/tests user32_test
17088 wine_fn_config_dll userenv enable_userenv implib
17089 wine_fn_config_test dlls/userenv/tests userenv_test
17090 wine_fn_config_dll usp10 enable_usp10 implib
17091 wine_fn_config_test dlls/usp10/tests usp10_test
17092 wine_fn_config_lib uuid
17093 wine_fn_config_dll uxtheme enable_uxtheme implib
17094 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17095 wine_fn_config_dll vbscript enable_vbscript clean
17096 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17097 wine_fn_config_dll vcomp enable_vcomp
17098 wine_fn_config_dll vcomp100 enable_vcomp100
17099 wine_fn_config_dll vcomp90 enable_vcomp90
17100 wine_fn_config_dll vdhcp.vxd enable_win16
17101 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17102 wine_fn_config_dll ver.dll16 enable_win16
17103 wine_fn_config_dll version enable_version implib
17104 wine_fn_config_test dlls/version/tests version_test
17105 wine_fn_config_dll vmm.vxd enable_win16
17106 wine_fn_config_dll vnbt.vxd enable_win16
17107 wine_fn_config_dll vnetbios.vxd enable_win16
17108 wine_fn_config_dll vtdapi.vxd enable_win16
17109 wine_fn_config_dll vwin32.vxd enable_win16
17110 wine_fn_config_dll w32skrnl enable_win16
17111 wine_fn_config_dll w32sys.dll16 enable_win16
17112 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17113 wine_fn_config_dll wbemprox enable_wbemprox clean
17114 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17115 wine_fn_config_dll webservices enable_webservices implib
17116 wine_fn_config_dll wer enable_wer implib
17117 wine_fn_config_test dlls/wer/tests wer_test
17118 wine_fn_config_dll wevtapi enable_wevtapi
17119 wine_fn_config_dll wiaservc enable_wiaservc clean
17120 wine_fn_config_dll win32s16.dll16 enable_win16
17121 wine_fn_config_dll win87em.dll16 enable_win16
17122 wine_fn_config_dll winaspi.dll16 enable_win16
17123 wine_fn_config_dll windebug.dll16 enable_win16
17124 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17125 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17126 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17127 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17128 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17129 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17130 wine_fn_config_lib winecrt0
17131 wine_fn_config_dll wined3d enable_wined3d implib
17132 wine_fn_config_dll winegstreamer enable_winegstreamer
17133 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17134 wine_fn_config_dll winemac.drv enable_winemac_drv
17135 wine_fn_config_dll winemapi enable_winemapi
17136 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17137 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17138 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17139 wine_fn_config_dll wineps16.drv16 enable_win16
17140 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17141 wine_fn_config_dll winex11.drv enable_winex11_drv
17142 wine_fn_config_dll wing.dll16 enable_win16
17143 wine_fn_config_dll wing32 enable_wing32
17144 wine_fn_config_dll winhttp enable_winhttp clean,implib
17145 wine_fn_config_test dlls/winhttp/tests winhttp_test
17146 wine_fn_config_dll wininet enable_wininet implib,po
17147 wine_fn_config_test dlls/wininet/tests wininet_test
17148 wine_fn_config_dll winmm enable_winmm implib,po
17149 wine_fn_config_test dlls/winmm/tests winmm_test
17150 wine_fn_config_dll winnls.dll16 enable_win16
17151 wine_fn_config_dll winnls32 enable_winnls32 implib
17152 wine_fn_config_dll winscard enable_winscard implib
17153 wine_fn_config_dll winsock.dll16 enable_win16
17154 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17155 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17156 wine_fn_config_dll winsta enable_winsta
17157 wine_fn_config_dll wintab.dll16 enable_win16
17158 wine_fn_config_dll wintab32 enable_wintab32 implib
17159 wine_fn_config_test dlls/wintab32/tests wintab32_test
17160 wine_fn_config_dll wintrust enable_wintrust implib
17161 wine_fn_config_test dlls/wintrust/tests wintrust_test
17162 wine_fn_config_dll wlanapi enable_wlanapi
17163 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17164 wine_fn_config_test dlls/wldap32/tests wldap32_test
17165 wine_fn_config_dll wmi enable_wmi
17166 wine_fn_config_dll wmiutils enable_wmiutils clean
17167 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17168 wine_fn_config_dll wmvcore enable_wmvcore
17169 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17170 wine_fn_config_dll wow32 enable_win16 implib
17171 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17172 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17173 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17174 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17175 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17176 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17177 wine_fn_config_dll wsock32 enable_wsock32 implib
17178 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17179 wine_fn_config_dll wuapi enable_wuapi clean
17180 wine_fn_config_dll wuaueng enable_wuaueng
17181 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17182 wine_fn_config_dll xinput1_1 enable_xinput1_1
17183 wine_fn_config_dll xinput1_2 enable_xinput1_2
17184 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17185 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17186 wine_fn_config_dll xinput1_4 enable_xinput1_4
17187 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17188 wine_fn_config_dll xmllite enable_xmllite
17189 wine_fn_config_test dlls/xmllite/tests xmllite_test
17190 wine_fn_config_dll xolehlp enable_xolehlp
17191 wine_fn_config_dll xpsprint enable_xpsprint
17192 wine_fn_config_dll xpssvcs enable_xpssvcs
17193 wine_fn_config_makefile documentation enable_documentation clean
17194 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17195 wine_fn_config_makefile include enable_include clean,install-dev
17196 wine_fn_config_makefile libs/port enable_libs_port
17197 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17198 wine_fn_config_makefile libs/wpp enable_libs_wpp
17199 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17200 wine_fn_config_program arp enable_arp install
17201 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17202 wine_fn_config_program attrib enable_attrib install,po
17203 wine_fn_config_program cabarc enable_cabarc install
17204 wine_fn_config_program cacls enable_cacls install
17205 wine_fn_config_program clock enable_clock install,po
17206 wine_fn_config_program cmd enable_cmd install,po
17207 wine_fn_config_test programs/cmd/tests cmd.exe_test
17208 wine_fn_config_program conhost enable_conhost install
17209 wine_fn_config_program control enable_control install
17210 wine_fn_config_program cscript enable_cscript install
17211 wine_fn_config_program dxdiag enable_dxdiag install,po
17212 wine_fn_config_program eject enable_eject install
17213 wine_fn_config_program expand enable_expand install
17214 wine_fn_config_program explorer enable_explorer install,po
17215 wine_fn_config_program extrac32 enable_extrac32 install
17216 wine_fn_config_program findstr enable_findstr install
17217 wine_fn_config_program hh enable_hh install
17218 wine_fn_config_program hostname enable_hostname install,po
17219 wine_fn_config_program icinfo enable_icinfo install
17220 wine_fn_config_program iexplore enable_iexplore install
17221 wine_fn_config_program ipconfig enable_ipconfig install,po
17222 wine_fn_config_program lodctr enable_lodctr install
17223 wine_fn_config_program mofcomp enable_mofcomp install
17224 wine_fn_config_program mshta enable_mshta install
17225 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17226 wine_fn_config_program net enable_net install,po
17227 wine_fn_config_program netsh enable_netsh install
17228 wine_fn_config_program netstat enable_netstat install,po
17229 wine_fn_config_program ngen enable_ngen install
17230 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17231 wine_fn_config_program oleview enable_oleview install,po
17232 wine_fn_config_program ping enable_ping install
17233 wine_fn_config_program plugplay enable_plugplay install
17234 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17235 wine_fn_config_program progman enable_progman install,po
17236 wine_fn_config_program reg enable_reg install,po
17237 wine_fn_config_program regasm enable_regasm install
17238 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17239 wine_fn_config_test programs/regedit/tests regedit.exe_test
17240 wine_fn_config_program regsvcs enable_regsvcs install
17241 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
17242 wine_fn_config_program rpcss enable_rpcss clean,install
17243 wine_fn_config_program rundll.exe16 enable_win16 install
17244 wine_fn_config_program rundll32 enable_rundll32 install
17245 wine_fn_config_program sc enable_sc install
17246 wine_fn_config_program schtasks enable_schtasks install
17247 wine_fn_config_program secedit enable_secedit install
17248 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17249 wine_fn_config_program services enable_services clean,install
17250 wine_fn_config_test programs/services/tests services.exe_test
17251 wine_fn_config_program spoolsv enable_spoolsv install
17252 wine_fn_config_program start enable_start install,po
17253 wine_fn_config_program svchost enable_svchost install
17254 wine_fn_config_program taskkill enable_taskkill install,po
17255 wine_fn_config_program tasklist enable_tasklist install
17256 wine_fn_config_program taskmgr enable_taskmgr install,po
17257 wine_fn_config_program termsv enable_termsv install
17258 wine_fn_config_program uninstaller enable_uninstaller install,po
17259 wine_fn_config_program unlodctr enable_unlodctr install
17260 wine_fn_config_program view enable_view install,po
17261 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17262 wine_fn_config_program winebrowser enable_winebrowser install
17263 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17264 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17265 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17266 wine_fn_config_program winedevice enable_winedevice install
17267 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17268 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17269 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17270 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17271 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17272 wine_fn_config_program winetest enable_winetest clean
17273 wine_fn_config_program winevdm enable_win16 install
17274 wine_fn_config_program winhelp.exe16 enable_win16 install
17275 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17276 wine_fn_config_program winoldap.mod16 enable_win16 install
17277 wine_fn_config_program winver enable_winver install
17278 wine_fn_config_program wmic enable_wmic install,po
17279 wine_fn_config_program wordpad enable_wordpad install,po
17280 wine_fn_config_program write enable_write install,po
17281 wine_fn_config_program wscript enable_wscript clean,install
17282 wine_fn_config_test programs/wscript/tests wscript.exe_test
17283 wine_fn_config_program wusa enable_wusa install
17284 wine_fn_config_program xcopy enable_xcopy install,po
17285 wine_fn_config_test programs/xcopy/tests xcopy.exe_test
17286 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17287 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17288 wine_fn_config_tool tools/widl clean,install-dev,manpage
17289 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17290 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17291 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17292 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17293 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17295 LINGUAS="\
17296 ar \
17297 bg \
17298 ca \
17299 cs \
17300 da \
17301 de \
17302 el \
17303 en \
17304 en_US \
17305 eo \
17306 es \
17307 fa \
17308 fi \
17309 fr \
17310 he \
17311 hi \
17312 hr \
17313 hu \
17314 it \
17315 ja \
17316 ko \
17317 lt \
17318 ml \
17319 nb_NO \
17320 nl \
17321 or \
17322 pa \
17323 pl \
17324 pt_BR \
17325 pt_PT \
17326 rm \
17327 ro \
17328 ru \
17329 sk \
17330 sl \
17331 sr_RS@cyrillic \
17332 sr_RS@latin \
17333 sv \
17334 te \
17335 th \
17336 tr \
17337 uk \
17338 wa \
17339 zh_CN \
17340 zh_TW"
17345 wine_fn_ignore_file ".gitignore"
17346 wine_fn_ignore_file "Makefile"
17347 wine_fn_ignore_file "TAGS"
17348 wine_fn_ignore_file "tags"
17349 wine_fn_ignore_file "autom4te.cache"
17350 wine_fn_ignore_file "config.cache"
17351 wine_fn_ignore_file "config.log"
17352 wine_fn_ignore_file "config.status"
17353 wine_fn_ignore_file "configure.lineno"
17354 wine_fn_ignore_file "include/config.h"
17355 wine_fn_ignore_file "include/stamp-h"
17356 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine"
17358 ac_config_commands="$ac_config_commands Makefile"
17361 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17365 if test "x$enable_maintainer_mode" = xyes
17366 then
17367 wine_fn_append_rule "configure: configure.ac aclocal.m4
17368 autoconf --warnings=all
17369 include/config.h.in: include/stamp-h.in
17370 include/stamp-h.in: configure.ac aclocal.m4
17371 autoheader --warnings=all
17372 @echo timestamp > \$@"
17375 if test "x$with_gettextpo" = xyes
17376 then
17377 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17378 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17379 \$(LINGUAS:%=po/%.po): po/wine.pot
17380 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17381 po/wine.pot: \$(ALL_POT_FILES)
17382 msgcat -o \$@ \$(ALL_POT_FILES)"
17385 if test "$MSGFMT" != false
17386 then
17387 PORCFLAGS="--po-dir=\$(top_builddir)/po"
17389 wine_fn_append_rule "__builddeps__: \$(ALL_MO_FILES)
17390 clean::
17391 \$(RM) \$(ALL_MO_FILES)"
17393 posrc="po"
17394 test "$srcdir" = . || posrc="$srcdir/po"
17395 for i in $LINGUAS
17397 wine_fn_ignore_file "po/$i.mo"
17398 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17399 \$(MSGFMT) -o \$@ $posrc/$i.po"
17400 done
17401 else
17402 LINGUAS=
17405 if test "x$enable_tools" != xno
17406 then
17407 ac_config_commands="$ac_config_commands tools"
17409 wine_fn_ignore_file "tools/makedep$ac_exeext"
17410 wine_fn_append_rule "tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h
17411 \$(CC) -Iinclude -I$srcdir/include -D__WINESRC__ \$(EXTRACFLAGS) \$(CPPFLAGS) \$(CFLAGS) -o \$@ $srcdir/tools/makedep.c \$(LDFLAGS)
17412 clean:: __clean__
17413 \$(RM) tools/makedep$ac_exeext"
17414 else
17415 wine_fn_append_rule "\$(MAKEDEP):
17416 @echo \"You need to run make in $TOOLSDIR first\" && false"
17419 if test -n "$with_wine64"
17420 then
17421 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17422 fonts server tools:
17423 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17424 $with_wine64/loader/wine:
17425 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17426 $with_wine64/loader/wine-preloader:
17427 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17428 clean::
17429 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17430 else
17431 as_fn_append LOADER_RULES "
17432 all: wine.inf
17434 install install-lib:: wine.inf install-man-pages
17435 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17436 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17438 uninstall::
17439 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17443 if test "$srcdir" = .
17444 then
17445 ac_config_commands="$ac_config_commands .gitignore"
17449 $as_echo " done" >&6
17450 cat >confcache <<\_ACEOF
17451 # This file is a shell script that caches the results of configure
17452 # tests run on this system so they can be shared between configure
17453 # scripts and configure runs, see configure's option --config-cache.
17454 # It is not useful on other systems. If it contains results you don't
17455 # want to keep, you may remove or edit it.
17457 # config.status only pays attention to the cache file if you give it
17458 # the --recheck option to rerun configure.
17460 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17461 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17462 # following values.
17464 _ACEOF
17466 # The following way of writing the cache mishandles newlines in values,
17467 # but we know of no workaround that is simple, portable, and efficient.
17468 # So, we kill variables containing newlines.
17469 # Ultrix sh set writes to stderr and can't be redirected directly,
17470 # and sets the high bit in the cache file unless we assign to the vars.
17472 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17473 eval ac_val=\$$ac_var
17474 case $ac_val in #(
17475 *${as_nl}*)
17476 case $ac_var in #(
17477 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17478 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17479 esac
17480 case $ac_var in #(
17481 _ | IFS | as_nl) ;; #(
17482 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17483 *) { eval $ac_var=; unset $ac_var;} ;;
17484 esac ;;
17485 esac
17486 done
17488 (set) 2>&1 |
17489 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17490 *${as_nl}ac_space=\ *)
17491 # `set' does not quote correctly, so add quotes: double-quote
17492 # substitution turns \\\\ into \\, and sed turns \\ into \.
17493 sed -n \
17494 "s/'/'\\\\''/g;
17495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17496 ;; #(
17498 # `set' quotes correctly as required by POSIX, so do not add quotes.
17499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17501 esac |
17502 sort
17504 sed '
17505 /^ac_cv_env_/b end
17506 t clear
17507 :clear
17508 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17509 t end
17510 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17511 :end' >>confcache
17512 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17513 if test -w "$cache_file"; then
17514 if test "x$cache_file" != "x/dev/null"; then
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17516 $as_echo "$as_me: updating cache $cache_file" >&6;}
17517 if test ! -f "$cache_file" || test -h "$cache_file"; then
17518 cat confcache >"$cache_file"
17519 else
17520 case $cache_file in #(
17521 */* | ?:*)
17522 mv -f confcache "$cache_file"$$ &&
17523 mv -f "$cache_file"$$ "$cache_file" ;; #(
17525 mv -f confcache "$cache_file" ;;
17526 esac
17529 else
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17531 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17534 rm -f confcache
17536 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17537 # Let make expand exec_prefix.
17538 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17540 DEFS=-DHAVE_CONFIG_H
17542 ac_libobjs=
17543 ac_ltlibobjs=
17545 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17546 # 1. Remove the extension, and $U if already installed.
17547 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17548 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17549 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17550 # will be set to the directory where LIBOBJS objects are built.
17551 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17552 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17553 done
17554 LIBOBJS=$ac_libobjs
17556 LTLIBOBJS=$ac_ltlibobjs
17560 : "${CONFIG_STATUS=./config.status}"
17561 ac_write_fail=0
17562 ac_clean_files_save=$ac_clean_files
17563 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17565 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17566 as_write_fail=0
17567 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17568 #! $SHELL
17569 # Generated by $as_me.
17570 # Run this file to recreate the current configuration.
17571 # Compiler output produced by configure, useful for debugging
17572 # configure, is in config.log if it exists.
17574 debug=false
17575 ac_cs_recheck=false
17576 ac_cs_silent=false
17578 SHELL=\${CONFIG_SHELL-$SHELL}
17579 export SHELL
17580 _ASEOF
17581 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17582 ## -------------------- ##
17583 ## M4sh Initialization. ##
17584 ## -------------------- ##
17586 # Be more Bourne compatible
17587 DUALCASE=1; export DUALCASE # for MKS sh
17588 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17589 emulate sh
17590 NULLCMD=:
17591 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17592 # is contrary to our usage. Disable this feature.
17593 alias -g '${1+"$@"}'='"$@"'
17594 setopt NO_GLOB_SUBST
17595 else
17596 case `(set -o) 2>/dev/null` in #(
17597 *posix*) :
17598 set -o posix ;; #(
17599 *) :
17601 esac
17605 as_nl='
17607 export as_nl
17608 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17609 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17610 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17611 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17612 # Prefer a ksh shell builtin over an external printf program on Solaris,
17613 # but without wasting forks for bash or zsh.
17614 if test -z "$BASH_VERSION$ZSH_VERSION" \
17615 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17616 as_echo='print -r --'
17617 as_echo_n='print -rn --'
17618 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17619 as_echo='printf %s\n'
17620 as_echo_n='printf %s'
17621 else
17622 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17623 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17624 as_echo_n='/usr/ucb/echo -n'
17625 else
17626 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17627 as_echo_n_body='eval
17628 arg=$1;
17629 case $arg in #(
17630 *"$as_nl"*)
17631 expr "X$arg" : "X\\(.*\\)$as_nl";
17632 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17633 esac;
17634 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17636 export as_echo_n_body
17637 as_echo_n='sh -c $as_echo_n_body as_echo'
17639 export as_echo_body
17640 as_echo='sh -c $as_echo_body as_echo'
17643 # The user is always right.
17644 if test "${PATH_SEPARATOR+set}" != set; then
17645 PATH_SEPARATOR=:
17646 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17647 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17648 PATH_SEPARATOR=';'
17653 # IFS
17654 # We need space, tab and new line, in precisely that order. Quoting is
17655 # there to prevent editors from complaining about space-tab.
17656 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17657 # splitting by setting IFS to empty value.)
17658 IFS=" "" $as_nl"
17660 # Find who we are. Look in the path if we contain no directory separator.
17661 as_myself=
17662 case $0 in #((
17663 *[\\/]* ) as_myself=$0 ;;
17664 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17665 for as_dir in $PATH
17667 IFS=$as_save_IFS
17668 test -z "$as_dir" && as_dir=.
17669 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17670 done
17671 IFS=$as_save_IFS
17674 esac
17675 # We did not find ourselves, most probably we were run as `sh COMMAND'
17676 # in which case we are not to be found in the path.
17677 if test "x$as_myself" = x; then
17678 as_myself=$0
17680 if test ! -f "$as_myself"; then
17681 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17682 exit 1
17685 # Unset variables that we do not need and which cause bugs (e.g. in
17686 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17687 # suppresses any "Segmentation fault" message there. '((' could
17688 # trigger a bug in pdksh 5.2.14.
17689 for as_var in BASH_ENV ENV MAIL MAILPATH
17690 do eval test x\${$as_var+set} = xset \
17691 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17692 done
17693 PS1='$ '
17694 PS2='> '
17695 PS4='+ '
17697 # NLS nuisances.
17698 LC_ALL=C
17699 export LC_ALL
17700 LANGUAGE=C
17701 export LANGUAGE
17703 # CDPATH.
17704 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17707 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17708 # ----------------------------------------
17709 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17710 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17711 # script with STATUS, using 1 if that was 0.
17712 as_fn_error ()
17714 as_status=$1; test $as_status -eq 0 && as_status=1
17715 if test "$4"; then
17716 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17717 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17719 $as_echo "$as_me: error: $2" >&2
17720 as_fn_exit $as_status
17721 } # as_fn_error
17724 # as_fn_set_status STATUS
17725 # -----------------------
17726 # Set $? to STATUS, without forking.
17727 as_fn_set_status ()
17729 return $1
17730 } # as_fn_set_status
17732 # as_fn_exit STATUS
17733 # -----------------
17734 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17735 as_fn_exit ()
17737 set +e
17738 as_fn_set_status $1
17739 exit $1
17740 } # as_fn_exit
17742 # as_fn_unset VAR
17743 # ---------------
17744 # Portably unset VAR.
17745 as_fn_unset ()
17747 { eval $1=; unset $1;}
17749 as_unset=as_fn_unset
17750 # as_fn_append VAR VALUE
17751 # ----------------------
17752 # Append the text in VALUE to the end of the definition contained in VAR. Take
17753 # advantage of any shell optimizations that allow amortized linear growth over
17754 # repeated appends, instead of the typical quadratic growth present in naive
17755 # implementations.
17756 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17757 eval 'as_fn_append ()
17759 eval $1+=\$2
17761 else
17762 as_fn_append ()
17764 eval $1=\$$1\$2
17766 fi # as_fn_append
17768 # as_fn_arith ARG...
17769 # ------------------
17770 # Perform arithmetic evaluation on the ARGs, and store the result in the
17771 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17772 # must be portable across $(()) and expr.
17773 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17774 eval 'as_fn_arith ()
17776 as_val=$(( $* ))
17778 else
17779 as_fn_arith ()
17781 as_val=`expr "$@" || test $? -eq 1`
17783 fi # as_fn_arith
17786 if expr a : '\(a\)' >/dev/null 2>&1 &&
17787 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17788 as_expr=expr
17789 else
17790 as_expr=false
17793 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17794 as_basename=basename
17795 else
17796 as_basename=false
17799 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17800 as_dirname=dirname
17801 else
17802 as_dirname=false
17805 as_me=`$as_basename -- "$0" ||
17806 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17807 X"$0" : 'X\(//\)$' \| \
17808 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17809 $as_echo X/"$0" |
17810 sed '/^.*\/\([^/][^/]*\)\/*$/{
17811 s//\1/
17814 /^X\/\(\/\/\)$/{
17815 s//\1/
17818 /^X\/\(\/\).*/{
17819 s//\1/
17822 s/.*/./; q'`
17824 # Avoid depending upon Character Ranges.
17825 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17826 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17827 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17828 as_cr_digits='0123456789'
17829 as_cr_alnum=$as_cr_Letters$as_cr_digits
17831 ECHO_C= ECHO_N= ECHO_T=
17832 case `echo -n x` in #(((((
17833 -n*)
17834 case `echo 'xy\c'` in
17835 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17836 xy) ECHO_C='\c';;
17837 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17838 ECHO_T=' ';;
17839 esac;;
17841 ECHO_N='-n';;
17842 esac
17844 rm -f conf$$ conf$$.exe conf$$.file
17845 if test -d conf$$.dir; then
17846 rm -f conf$$.dir/conf$$.file
17847 else
17848 rm -f conf$$.dir
17849 mkdir conf$$.dir 2>/dev/null
17851 if (echo >conf$$.file) 2>/dev/null; then
17852 if ln -s conf$$.file conf$$ 2>/dev/null; then
17853 as_ln_s='ln -s'
17854 # ... but there are two gotchas:
17855 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17856 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17857 # In both cases, we have to default to `cp -pR'.
17858 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17859 as_ln_s='cp -pR'
17860 elif ln conf$$.file conf$$ 2>/dev/null; then
17861 as_ln_s=ln
17862 else
17863 as_ln_s='cp -pR'
17865 else
17866 as_ln_s='cp -pR'
17868 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17869 rmdir conf$$.dir 2>/dev/null
17872 # as_fn_mkdir_p
17873 # -------------
17874 # Create "$as_dir" as a directory, including parents if necessary.
17875 as_fn_mkdir_p ()
17878 case $as_dir in #(
17879 -*) as_dir=./$as_dir;;
17880 esac
17881 test -d "$as_dir" || eval $as_mkdir_p || {
17882 as_dirs=
17883 while :; do
17884 case $as_dir in #(
17885 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17886 *) as_qdir=$as_dir;;
17887 esac
17888 as_dirs="'$as_qdir' $as_dirs"
17889 as_dir=`$as_dirname -- "$as_dir" ||
17890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17891 X"$as_dir" : 'X\(//\)[^/]' \| \
17892 X"$as_dir" : 'X\(//\)$' \| \
17893 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17894 $as_echo X"$as_dir" |
17895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17896 s//\1/
17899 /^X\(\/\/\)[^/].*/{
17900 s//\1/
17903 /^X\(\/\/\)$/{
17904 s//\1/
17907 /^X\(\/\).*/{
17908 s//\1/
17911 s/.*/./; q'`
17912 test -d "$as_dir" && break
17913 done
17914 test -z "$as_dirs" || eval "mkdir $as_dirs"
17915 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17918 } # as_fn_mkdir_p
17919 if mkdir -p . 2>/dev/null; then
17920 as_mkdir_p='mkdir -p "$as_dir"'
17921 else
17922 test -d ./-p && rmdir ./-p
17923 as_mkdir_p=false
17927 # as_fn_executable_p FILE
17928 # -----------------------
17929 # Test if FILE is an executable regular file.
17930 as_fn_executable_p ()
17932 test -f "$1" && test -x "$1"
17933 } # as_fn_executable_p
17934 as_test_x='test -x'
17935 as_executable_p=as_fn_executable_p
17937 # Sed expression to map a string onto a valid CPP name.
17938 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17940 # Sed expression to map a string onto a valid variable name.
17941 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17944 exec 6>&1
17945 ## ----------------------------------- ##
17946 ## Main body of $CONFIG_STATUS script. ##
17947 ## ----------------------------------- ##
17948 _ASEOF
17949 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17952 # Save the log message, to keep $0 and so on meaningful, and to
17953 # report actual input values of CONFIG_FILES etc. instead of their
17954 # values after options handling.
17955 ac_log="
17956 This file was extended by Wine $as_me 1.7.9, which was
17957 generated by GNU Autoconf 2.69. Invocation command line was
17959 CONFIG_FILES = $CONFIG_FILES
17960 CONFIG_HEADERS = $CONFIG_HEADERS
17961 CONFIG_LINKS = $CONFIG_LINKS
17962 CONFIG_COMMANDS = $CONFIG_COMMANDS
17963 $ $0 $@
17965 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17968 _ACEOF
17970 case $ac_config_files in *"
17971 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17972 esac
17974 case $ac_config_headers in *"
17975 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17976 esac
17979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17980 # Files that config.status was made for.
17981 config_files="$ac_config_files"
17982 config_headers="$ac_config_headers"
17983 config_links="$ac_config_links"
17984 config_commands="$ac_config_commands"
17986 _ACEOF
17988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17989 ac_cs_usage="\
17990 \`$as_me' instantiates files and other configuration actions
17991 from templates according to the current configuration. Unless the files
17992 and actions are specified as TAGs, all are instantiated by default.
17994 Usage: $0 [OPTION]... [TAG]...
17996 -h, --help print this help, then exit
17997 -V, --version print version number and configuration settings, then exit
17998 --config print configuration, then exit
17999 -q, --quiet, --silent
18000 do not print progress messages
18001 -d, --debug don't remove temporary files
18002 --recheck update $as_me by reconfiguring in the same conditions
18003 --file=FILE[:TEMPLATE]
18004 instantiate the configuration file FILE
18005 --header=FILE[:TEMPLATE]
18006 instantiate the configuration header FILE
18008 Configuration files:
18009 $config_files
18011 Configuration headers:
18012 $config_headers
18014 Configuration links:
18015 $config_links
18017 Configuration commands:
18018 $config_commands
18020 Report bugs to <wine-devel@winehq.org>.
18021 Wine home page: <http://www.winehq.org>."
18023 _ACEOF
18024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18025 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18026 ac_cs_version="\\
18027 Wine config.status 1.7.9
18028 configured by $0, generated by GNU Autoconf 2.69,
18029 with options \\"\$ac_cs_config\\"
18031 Copyright (C) 2012 Free Software Foundation, Inc.
18032 This config.status script is free software; the Free Software Foundation
18033 gives unlimited permission to copy, distribute and modify it."
18035 ac_pwd='$ac_pwd'
18036 srcdir='$srcdir'
18037 MKDIR_P='$MKDIR_P'
18038 test -n "\$AWK" || AWK=awk
18039 _ACEOF
18041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18042 # The default lists apply if the user does not specify any file.
18043 ac_need_defaults=:
18044 while test $# != 0
18046 case $1 in
18047 --*=?*)
18048 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18049 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18050 ac_shift=:
18052 --*=)
18053 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18054 ac_optarg=
18055 ac_shift=:
18058 ac_option=$1
18059 ac_optarg=$2
18060 ac_shift=shift
18062 esac
18064 case $ac_option in
18065 # Handling of the options.
18066 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18067 ac_cs_recheck=: ;;
18068 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18069 $as_echo "$ac_cs_version"; exit ;;
18070 --config | --confi | --conf | --con | --co | --c )
18071 $as_echo "$ac_cs_config"; exit ;;
18072 --debug | --debu | --deb | --de | --d | -d )
18073 debug=: ;;
18074 --file | --fil | --fi | --f )
18075 $ac_shift
18076 case $ac_optarg in
18077 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18078 '') as_fn_error $? "missing file argument" ;;
18079 esac
18080 as_fn_append CONFIG_FILES " '$ac_optarg'"
18081 ac_need_defaults=false;;
18082 --header | --heade | --head | --hea )
18083 $ac_shift
18084 case $ac_optarg in
18085 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18086 esac
18087 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18088 ac_need_defaults=false;;
18089 --he | --h)
18090 # Conflict between --help and --header
18091 as_fn_error $? "ambiguous option: \`$1'
18092 Try \`$0 --help' for more information.";;
18093 --help | --hel | -h )
18094 $as_echo "$ac_cs_usage"; exit ;;
18095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18096 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18097 ac_cs_silent=: ;;
18099 # This is an error.
18100 -*) as_fn_error $? "unrecognized option: \`$1'
18101 Try \`$0 --help' for more information." ;;
18103 *) as_fn_append ac_config_targets " $1"
18104 ac_need_defaults=false ;;
18106 esac
18107 shift
18108 done
18110 ac_configure_extra_args=
18112 if $ac_cs_silent; then
18113 exec 6>/dev/null
18114 ac_configure_extra_args="$ac_configure_extra_args --silent"
18117 _ACEOF
18118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18119 if \$ac_cs_recheck; then
18120 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18121 shift
18122 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18123 CONFIG_SHELL='$SHELL'
18124 export CONFIG_SHELL
18125 exec "\$@"
18128 _ACEOF
18129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18130 exec 5>>config.log
18132 echo
18133 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18134 ## Running $as_me. ##
18135 _ASBOX
18136 $as_echo "$ac_log"
18137 } >&5
18139 _ACEOF
18140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18142 # INIT-COMMANDS
18144 wine_fn_output_makefile ()
18146 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
18147 `cat $wine_rules_file`
18148 _WINE_EOF
18149 as_fn_error $? "could not create Makefile" "$LINENO" 5
18151 wine_fn_output_gitignore ()
18153 sort <<\_WINE_EOF >\$tmp/gitignore && mv -f \$tmp/gitignore \$1 && return
18154 $GITIGNORE
18155 _WINE_EOF
18156 as_fn_error $? "could not create .gitignore" "$LINENO" 5
18159 _ACEOF
18161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18163 # Handling of arguments.
18164 for ac_config_target in $ac_config_targets
18166 case $ac_config_target in
18167 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18168 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18169 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18170 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18171 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18172 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18173 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18174 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18175 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18176 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18177 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
18178 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18179 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18180 "tools") CONFIG_COMMANDS="$CONFIG_COMMANDS tools" ;;
18181 ".gitignore") CONFIG_COMMANDS="$CONFIG_COMMANDS .gitignore" ;;
18183 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18184 esac
18185 done
18188 # If the user did not use the arguments to specify the items to instantiate,
18189 # then the envvar interface is used. Set only those that are not.
18190 # We use the long form for the default assignment because of an extremely
18191 # bizarre bug on SunOS 4.1.3.
18192 if $ac_need_defaults; then
18193 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18194 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18195 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18196 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18199 # Have a temporary directory for convenience. Make it in the build tree
18200 # simply because there is no reason against having it here, and in addition,
18201 # creating and moving files from /tmp can sometimes cause problems.
18202 # Hook for its removal unless debugging.
18203 # Note that there is a small window in which the directory will not be cleaned:
18204 # after its creation but before its name has been assigned to `$tmp'.
18205 $debug ||
18207 tmp= ac_tmp=
18208 trap 'exit_status=$?
18209 : "${ac_tmp:=$tmp}"
18210 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18212 trap 'as_fn_exit 1' 1 2 13 15
18214 # Create a (secure) tmp directory for tmp files.
18217 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18218 test -d "$tmp"
18219 } ||
18221 tmp=./conf$$-$RANDOM
18222 (umask 077 && mkdir "$tmp")
18223 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18224 ac_tmp=$tmp
18226 # Set up the scripts for CONFIG_FILES section.
18227 # No need to generate them if there are no CONFIG_FILES.
18228 # This happens for instance with `./config.status config.h'.
18229 if test -n "$CONFIG_FILES"; then
18231 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18232 ac_cs_awk_getline=:
18233 ac_cs_awk_pipe_init=
18234 ac_cs_awk_read_file='
18235 while ((getline aline < (F[key])) > 0)
18236 print(aline)
18237 close(F[key])'
18238 ac_cs_awk_pipe_fini=
18239 else
18240 ac_cs_awk_getline=false
18241 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18242 ac_cs_awk_read_file='
18243 print "|#_!!_#|"
18244 print "cat " F[key] " &&"
18245 '$ac_cs_awk_pipe_init
18246 # The final `:' finishes the AND list.
18247 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18249 ac_cr=`echo X | tr X '\015'`
18250 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18251 # But we know of no other shell where ac_cr would be empty at this
18252 # point, so we can use a bashism as a fallback.
18253 if test "x$ac_cr" = x; then
18254 eval ac_cr=\$\'\\r\'
18256 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18257 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18258 ac_cs_awk_cr='\\r'
18259 else
18260 ac_cs_awk_cr=$ac_cr
18263 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18264 _ACEOF
18266 # Create commands to substitute file output variables.
18268 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18269 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18270 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18271 echo "_ACAWK" &&
18272 echo "_ACEOF"
18273 } >conf$$files.sh &&
18274 . ./conf$$files.sh ||
18275 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18276 rm -f conf$$files.sh
18279 echo "cat >conf$$subs.awk <<_ACEOF" &&
18280 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18281 echo "_ACEOF"
18282 } >conf$$subs.sh ||
18283 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18284 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18285 ac_delim='%!_!# '
18286 for ac_last_try in false false false false false :; do
18287 . ./conf$$subs.sh ||
18288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18290 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18291 if test $ac_delim_n = $ac_delim_num; then
18292 break
18293 elif $ac_last_try; then
18294 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18295 else
18296 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18298 done
18299 rm -f conf$$subs.sh
18301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18302 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18303 _ACEOF
18304 sed -n '
18306 s/^/S["/; s/!.*/"]=/
18309 s/^[^!]*!//
18310 :repl
18311 t repl
18312 s/'"$ac_delim"'$//
18313 t delim
18316 s/\(.\{148\}\)..*/\1/
18317 t more1
18318 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18321 b repl
18322 :more1
18323 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18326 s/.\{148\}//
18327 t nl
18328 :delim
18330 s/\(.\{148\}\)..*/\1/
18331 t more2
18332 s/["\\]/\\&/g; s/^/"/; s/$/"/
18335 :more2
18336 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18339 s/.\{148\}//
18340 t delim
18341 ' <conf$$subs.awk | sed '
18342 /^[^""]/{
18344 s/\n//
18346 ' >>$CONFIG_STATUS || ac_write_fail=1
18347 rm -f conf$$subs.awk
18348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18349 _ACAWK
18350 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18351 for (key in S) S_is_set[key] = 1
18352 FS = "\a"
18353 \$ac_cs_awk_pipe_init
18356 line = $ 0
18357 nfields = split(line, field, "@")
18358 substed = 0
18359 len = length(field[1])
18360 for (i = 2; i < nfields; i++) {
18361 key = field[i]
18362 keylen = length(key)
18363 if (S_is_set[key]) {
18364 value = S[key]
18365 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18366 len += length(value) + length(field[++i])
18367 substed = 1
18368 } else
18369 len += 1 + keylen
18371 if (nfields == 3 && !substed) {
18372 key = field[2]
18373 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18374 \$ac_cs_awk_read_file
18375 next
18378 print line
18380 \$ac_cs_awk_pipe_fini
18381 _ACAWK
18382 _ACEOF
18383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18384 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18385 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18386 else
18388 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18389 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18390 _ACEOF
18392 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18393 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18394 # trailing colons and then remove the whole line if VPATH becomes empty
18395 # (actually we leave an empty line to preserve line numbers).
18396 if test "x$srcdir" = x.; then
18397 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18399 s///
18400 s/^/:/
18401 s/[ ]*$/:/
18402 s/:\$(srcdir):/:/g
18403 s/:\${srcdir}:/:/g
18404 s/:@srcdir@:/:/g
18405 s/^:*//
18406 s/:*$//
18408 s/\(=[ ]*\).*/\1/
18410 s/\n//
18411 s/^[^=]*=[ ]*$//
18415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18416 fi # test -n "$CONFIG_FILES"
18418 # Set up the scripts for CONFIG_HEADERS section.
18419 # No need to generate them if there are no CONFIG_HEADERS.
18420 # This happens for instance with `./config.status Makefile'.
18421 if test -n "$CONFIG_HEADERS"; then
18422 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18423 BEGIN {
18424 _ACEOF
18426 # Transform confdefs.h into an awk script `defines.awk', embedded as
18427 # here-document in config.status, that substitutes the proper values into
18428 # config.h.in to produce config.h.
18430 # Create a delimiter string that does not exist in confdefs.h, to ease
18431 # handling of long lines.
18432 ac_delim='%!_!# '
18433 for ac_last_try in false false :; do
18434 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18435 if test -z "$ac_tt"; then
18436 break
18437 elif $ac_last_try; then
18438 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18439 else
18440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18442 done
18444 # For the awk script, D is an array of macro values keyed by name,
18445 # likewise P contains macro parameters if any. Preserve backslash
18446 # newline sequences.
18448 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18449 sed -n '
18450 s/.\{148\}/&'"$ac_delim"'/g
18451 t rset
18452 :rset
18453 s/^[ ]*#[ ]*define[ ][ ]*/ /
18454 t def
18456 :def
18457 s/\\$//
18458 t bsnl
18459 s/["\\]/\\&/g
18460 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18461 D["\1"]=" \3"/p
18462 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18464 :bsnl
18465 s/["\\]/\\&/g
18466 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18467 D["\1"]=" \3\\\\\\n"\\/p
18468 t cont
18469 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18470 t cont
18472 :cont
18474 s/.\{148\}/&'"$ac_delim"'/g
18475 t clear
18476 :clear
18477 s/\\$//
18478 t bsnlc
18479 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18481 :bsnlc
18482 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18483 b cont
18484 ' <confdefs.h | sed '
18485 s/'"$ac_delim"'/"\\\
18486 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18489 for (key in D) D_is_set[key] = 1
18490 FS = "\a"
18492 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18493 line = \$ 0
18494 split(line, arg, " ")
18495 if (arg[1] == "#") {
18496 defundef = arg[2]
18497 mac1 = arg[3]
18498 } else {
18499 defundef = substr(arg[1], 2)
18500 mac1 = arg[2]
18502 split(mac1, mac2, "(") #)
18503 macro = mac2[1]
18504 prefix = substr(line, 1, index(line, defundef) - 1)
18505 if (D_is_set[macro]) {
18506 # Preserve the white space surrounding the "#".
18507 print prefix "define", macro P[macro] D[macro]
18508 next
18509 } else {
18510 # Replace #undef with comments. This is necessary, for example,
18511 # in the case of _POSIX_SOURCE, which is predefined and required
18512 # on some systems where configure will not decide to define it.
18513 if (defundef == "undef") {
18514 print "/*", prefix defundef, macro, "*/"
18515 next
18519 { print }
18520 _ACAWK
18521 _ACEOF
18522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18523 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18524 fi # test -n "$CONFIG_HEADERS"
18527 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18528 shift
18529 for ac_tag
18531 case $ac_tag in
18532 :[FHLC]) ac_mode=$ac_tag; continue;;
18533 esac
18534 case $ac_mode$ac_tag in
18535 :[FHL]*:*);;
18536 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18537 :[FH]-) ac_tag=-:-;;
18538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18539 esac
18540 ac_save_IFS=$IFS
18541 IFS=:
18542 set x $ac_tag
18543 IFS=$ac_save_IFS
18544 shift
18545 ac_file=$1
18546 shift
18548 case $ac_mode in
18549 :L) ac_source=$1;;
18550 :[FH])
18551 ac_file_inputs=
18552 for ac_f
18554 case $ac_f in
18555 -) ac_f="$ac_tmp/stdin";;
18556 *) # Look for the file first in the build tree, then in the source tree
18557 # (if the path is not absolute). The absolute path cannot be DOS-style,
18558 # because $ac_f cannot contain `:'.
18559 test -f "$ac_f" ||
18560 case $ac_f in
18561 [\\/$]*) false;;
18562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18563 esac ||
18564 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18565 esac
18566 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18567 as_fn_append ac_file_inputs " '$ac_f'"
18568 done
18570 # Let's still pretend it is `configure' which instantiates (i.e., don't
18571 # use $as_me), people would be surprised to read:
18572 # /* config.h. Generated by config.status. */
18573 configure_input='Generated from '`
18574 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18575 `' by configure.'
18576 if test x"$ac_file" != x-; then
18577 configure_input="$ac_file. $configure_input"
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18579 $as_echo "$as_me: creating $ac_file" >&6;}
18581 # Neutralize special characters interpreted by sed in replacement strings.
18582 case $configure_input in #(
18583 *\&* | *\|* | *\\* )
18584 ac_sed_conf_input=`$as_echo "$configure_input" |
18585 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18586 *) ac_sed_conf_input=$configure_input;;
18587 esac
18589 case $ac_tag in
18590 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18591 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18592 esac
18594 esac
18596 ac_dir=`$as_dirname -- "$ac_file" ||
18597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18598 X"$ac_file" : 'X\(//\)[^/]' \| \
18599 X"$ac_file" : 'X\(//\)$' \| \
18600 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18601 $as_echo X"$ac_file" |
18602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18603 s//\1/
18606 /^X\(\/\/\)[^/].*/{
18607 s//\1/
18610 /^X\(\/\/\)$/{
18611 s//\1/
18614 /^X\(\/\).*/{
18615 s//\1/
18618 s/.*/./; q'`
18619 as_dir="$ac_dir"; as_fn_mkdir_p
18620 ac_builddir=.
18622 case "$ac_dir" in
18623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18626 # A ".." for each directory in $ac_dir_suffix.
18627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18628 case $ac_top_builddir_sub in
18629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18631 esac ;;
18632 esac
18633 ac_abs_top_builddir=$ac_pwd
18634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18635 # for backward compatibility:
18636 ac_top_builddir=$ac_top_build_prefix
18638 case $srcdir in
18639 .) # We are building in place.
18640 ac_srcdir=.
18641 ac_top_srcdir=$ac_top_builddir_sub
18642 ac_abs_top_srcdir=$ac_pwd ;;
18643 [\\/]* | ?:[\\/]* ) # Absolute name.
18644 ac_srcdir=$srcdir$ac_dir_suffix;
18645 ac_top_srcdir=$srcdir
18646 ac_abs_top_srcdir=$srcdir ;;
18647 *) # Relative name.
18648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18649 ac_top_srcdir=$ac_top_build_prefix$srcdir
18650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18651 esac
18652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18655 case $ac_mode in
18658 # CONFIG_FILE
18661 ac_MKDIR_P=$MKDIR_P
18662 case $MKDIR_P in
18663 [\\/$]* | ?:[\\/]* ) ;;
18664 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18665 esac
18666 _ACEOF
18668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18669 # If the template does not know about datarootdir, expand it.
18670 # FIXME: This hack should be removed a few years after 2.60.
18671 ac_datarootdir_hack=; ac_datarootdir_seen=
18672 ac_sed_dataroot='
18673 /datarootdir/ {
18677 /@datadir@/p
18678 /@docdir@/p
18679 /@infodir@/p
18680 /@localedir@/p
18681 /@mandir@/p'
18682 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18683 *datarootdir*) ac_datarootdir_seen=yes;;
18684 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18686 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18687 _ACEOF
18688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18689 ac_datarootdir_hack='
18690 s&@datadir@&$datadir&g
18691 s&@docdir@&$docdir&g
18692 s&@infodir@&$infodir&g
18693 s&@localedir@&$localedir&g
18694 s&@mandir@&$mandir&g
18695 s&\\\${datarootdir}&$datarootdir&g' ;;
18696 esac
18697 _ACEOF
18699 # Neutralize VPATH when `$srcdir' = `.'.
18700 # Shell code in configure.ac might set extrasub.
18701 # FIXME: do we really want to maintain this feature?
18702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18703 ac_sed_extra="$ac_vpsub
18704 $extrasub
18705 _ACEOF
18706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18709 s|@configure_input@|$ac_sed_conf_input|;t t
18710 s&@top_builddir@&$ac_top_builddir_sub&;t t
18711 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18712 s&@srcdir@&$ac_srcdir&;t t
18713 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18714 s&@top_srcdir@&$ac_top_srcdir&;t t
18715 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18716 s&@builddir@&$ac_builddir&;t t
18717 s&@abs_builddir@&$ac_abs_builddir&;t t
18718 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18719 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18720 $ac_datarootdir_hack
18722 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18723 if $ac_cs_awk_getline; then
18724 $AWK -f "$ac_tmp/subs.awk"
18725 else
18726 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18727 fi \
18728 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18730 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18731 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18732 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18733 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18735 which seems to be undefined. Please make sure it is defined" >&5
18736 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18737 which seems to be undefined. Please make sure it is defined" >&2;}
18739 rm -f "$ac_tmp/stdin"
18740 case $ac_file in
18741 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18742 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18743 esac \
18744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18748 # CONFIG_HEADER
18750 if test x"$ac_file" != x-; then
18752 $as_echo "/* $configure_input */" \
18753 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18754 } >"$ac_tmp/config.h" \
18755 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18756 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18758 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18759 else
18760 rm -f "$ac_file"
18761 mv "$ac_tmp/config.h" "$ac_file" \
18762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18764 else
18765 $as_echo "/* $configure_input */" \
18766 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18767 || as_fn_error $? "could not create -" "$LINENO" 5
18772 # CONFIG_LINK
18775 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18777 else
18778 # Prefer the file from the source tree if names are identical.
18779 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18780 ac_source=$srcdir/$ac_source
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18784 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18786 if test ! -r "$ac_source"; then
18787 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18789 rm -f "$ac_file"
18791 # Try a relative symlink, then a hard link, then a copy.
18792 case $ac_source in
18793 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18794 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18795 esac
18796 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18797 ln "$ac_source" "$ac_file" 2>/dev/null ||
18798 cp -p "$ac_source" "$ac_file" ||
18799 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18802 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18803 $as_echo "$as_me: executing $ac_file commands" >&6;}
18805 esac
18808 case $ac_file$ac_mode in
18809 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
18810 "Makefile":C) wine_fn_output_makefile Makefile ;;
18811 "tools":C) as_dir=tools; as_fn_mkdir_p ;;
18812 ".gitignore":C) wine_fn_output_gitignore .gitignore ;;
18814 esac
18815 done # for ac_tag
18818 as_fn_exit 0
18819 _ACEOF
18820 ac_clean_files=$ac_clean_files_save
18822 test $ac_write_fail = 0 ||
18823 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18826 # configure is writing to config.log, and then calls config.status.
18827 # config.status does its own redirection, appending to config.log.
18828 # Unfortunately, on DOS this fails, as config.log is still kept open
18829 # by configure, so config.status won't be able to write to it; its
18830 # output is simply discarded. So we exec the FD to /dev/null,
18831 # effectively closing config.log, so it can be properly (re)opened and
18832 # appended to by config.status. When coming back to configure, we
18833 # need to make the FD available again.
18834 if test "$no_create" != yes; then
18835 ac_cs_success=:
18836 ac_config_status_args=
18837 test "$silent" = yes &&
18838 ac_config_status_args="$ac_config_status_args --quiet"
18839 exec 5>/dev/null
18840 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18841 exec 5>>config.log
18842 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18843 # would make configure fail if this is the last instruction.
18844 $ac_cs_success || as_fn_exit 1
18846 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18848 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18852 if test "$no_create" = "yes"
18853 then
18854 exit 0
18857 ac_save_IFS="$IFS"
18858 if test "x$wine_notices != "x; then
18859 echo >&6
18860 IFS="|"
18861 for msg in $wine_notices; do
18862 IFS="$ac_save_IFS"
18863 if test -n "$msg"; then
18864 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18865 $as_echo "$as_me: $msg" >&6;}
18867 done
18869 IFS="|"
18870 for msg in $wine_warnings; do
18871 IFS="$ac_save_IFS"
18872 if test -n "$msg"; then
18873 echo >&2
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18875 $as_echo "$as_me: WARNING: $msg" >&2;}
18877 done
18878 IFS="$ac_save_IFS"
18880 $as_echo "
18881 $as_me: Finished. Do '${ac_make}' to compile Wine.
18882 " >&6