dsound/tests: Use wine_dbgstr_guid for printing GUIDs.
[wine/multimedia.git] / configure
blob20285690d3f12e8481928aae0d0b61930be3a9bb
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.12.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: wine-devel@winehq.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='Wine'
582 PACKAGE_TARNAME='wine'
583 PACKAGE_VERSION='1.7.12'
584 PACKAGE_STRING='Wine 1.7.12'
585 PACKAGE_BUGREPORT='wine-devel@winehq.org'
586 PACKAGE_URL='http://www.winehq.org'
588 ac_unique_file="server/atom.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 LINGUAS
628 ALL_VARS_RULES
629 LDAP_LIBS
630 RT_LIBS
631 POLL_LIBS
632 DL_LIBS
633 TOOLSEXT
634 UNWINDFLAGS
635 BUILTINFLAG
636 EXTRACFLAGS
637 PROCSTAT_LIBS
638 KSTAT_LIBS
639 MPG123_LIBS
640 MPG123_CFLAGS
641 TIFF_LIBS
642 TIFF_CFLAGS
643 PNG_LIBS
644 PNG_CFLAGS
645 JPEG_LIBS
646 JPEG_CFLAGS
647 FONTCONFIG_LIBS
648 FONTCONFIG_CFLAGS
649 CUPS_CFLAGS
650 CAPI20_LIBS
651 CAPI20_CFLAGS
652 OSS4_CFLAGS
653 ALSA_LIBS
654 GSTREAMER_LIBS
655 GSTREAMER_CFLAGS
656 GETTEXTPO_LIBS
657 Z_LIBS
658 FREETYPE_LIBS
659 FREETYPE_CFLAGS
660 LCMS2_LIBS
661 LCMS2_CFLAGS
662 RESOLV_LIBS
663 GPHOTO2_PORT_LIBS
664 GPHOTO2_PORT_CFLAGS
665 GPHOTO2_LIBS
666 GPHOTO2_CFLAGS
667 SANE_LIBS
668 SANE_CFLAGS
669 GNUTLS_LIBS
670 GNUTLS_CFLAGS
671 HAL_LIBS
672 HAL_CFLAGS
673 DBUS_LIBS
674 DBUS_CFLAGS
675 XSLT_LIBS
676 XSLT_CFLAGS
677 XML2_LIBS
678 XML2_CFLAGS
679 X_EXTRA_LIBS
680 X_LIBS
681 X_PRE_LIBS
682 X_CFLAGS
683 XMKMF
684 PTHREAD_LIBS
685 CROSSCC
686 CROSSTARGET
687 PRELINK
688 CARBON_LIBS
689 QUICKTIME_LIBS
690 OPENCL_LIBS
691 OPENAL_LIBS
692 COREAUDIO_LIBS
693 SECURITY_LIBS
694 DISKARBITRATION_LIBS
695 APPKIT_LIBS
696 CORESERVICES_LIBS
697 APPLICATIONSERVICES_LIBS
698 FORCEFEEDBACK_LIBS
699 IOKIT_LIBS
700 COREFOUNDATION_LIBS
701 LIBWINE_RULES
702 SOCKET_LIBS
703 DLLTOOL
704 LOADER_RULES
705 ALL_TEST_RESOURCES
706 READELF
708 LDRPATH_LOCAL
709 LDRPATH_INSTALL
710 DLLFLAGS
711 DLLPREFIX
712 dlldir
714 OPENGL_LIBS
715 ICOTOOL
716 CONVERT
717 RSVG
718 FONTFORGE
719 PKG_CONFIG
720 MSGFMT
721 LDCONFIG
722 EGREP
723 GREP
724 LN_S
725 RANLIB
726 ARFLAGS
727 STRIP
728 ac_ct_AR
730 BISON
731 FLEX
732 TOOLSDIR
733 TARGETFLAGS
734 CPPBIN
735 ac_ct_CXX
736 CXXFLAGS
738 OBJEXT
739 EXEEXT
740 ac_ct_CC
741 CPPFLAGS
742 LDFLAGS
743 CFLAGS
745 SET_MAKE
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_win16
796 enable_win64
797 enable_tests
798 enable_maintainer_mode
799 with_alsa
800 with_capi
801 with_cms
802 with_coreaudio
803 with_cups
804 with_curses
805 with_dbus
806 with_fontconfig
807 with_freetype
808 with_gettext
809 with_gettextpo
810 with_gphoto
811 with_glu
812 with_gnutls
813 with_gsm
814 with_gstreamer
815 with_hal
816 with_jpeg
817 with_ldap
818 with_mpg123
819 with_netapi
820 with_openal
821 with_opencl
822 with_opengl
823 with_osmesa
824 with_oss
825 with_png
826 with_pthread
827 with_sane
828 with_tiff
829 with_v4l
830 with_xcomposite
831 with_xcursor
832 with_xinerama
833 with_xinput
834 with_xinput2
835 with_xml
836 with_xrandr
837 with_xrender
838 with_xshape
839 with_xshm
840 with_xslt
841 with_xxf86vm
842 with_zlib
843 with_wine_tools
844 with_wine64
845 enable_largefile
846 with_x
847 enable_acledit
848 enable_aclui
849 enable_activeds
850 enable_actxprxy
851 enable_advapi32
852 enable_advpack
853 enable_amstream
854 enable_api_ms_win_core_com_l1_1_0
855 enable_api_ms_win_core_console_l1_1_0
856 enable_api_ms_win_core_debug_l1_1_1
857 enable_api_ms_win_core_errorhandling_l1_1_1
858 enable_api_ms_win_core_file_l1_2_0
859 enable_api_ms_win_core_handle_l1_1_0
860 enable_api_ms_win_core_heap_l1_2_0
861 enable_api_ms_win_core_heap_obsolete_l1_1_0
862 enable_api_ms_win_core_interlocked_l1_2_0
863 enable_api_ms_win_core_io_l1_1_1
864 enable_api_ms_win_core_kernel32_legacy_l1_1_0
865 enable_api_ms_win_core_libraryloader_l1_1_1
866 enable_api_ms_win_core_localization_l1_2_0
867 enable_api_ms_win_core_localization_obsolete_l1_1_0
868 enable_api_ms_win_core_localregistry_l1_1_0
869 enable_api_ms_win_core_memory_l1_1_1
870 enable_api_ms_win_core_namedpipe_l1_2_0
871 enable_api_ms_win_core_processenvironment_l1_2_0
872 enable_api_ms_win_core_processthreads_l1_1_0
873 enable_api_ms_win_core_processthreads_l1_1_1
874 enable_api_ms_win_core_profile_l1_1_0
875 enable_api_ms_win_core_psapi_l1_1_0
876 enable_api_ms_win_core_registry_l1_1_0
877 enable_api_ms_win_core_rtlsupport_l1_2_0
878 enable_api_ms_win_core_shlwapi_legacy_l1_1_0
879 enable_api_ms_win_core_string_l1_1_0
880 enable_api_ms_win_core_synch_l1_2_0
881 enable_api_ms_win_core_sysinfo_l1_2_0
882 enable_api_ms_win_core_threadpool_legacy_l1_1_0
883 enable_api_ms_win_core_timezone_l1_1_0
884 enable_api_ms_win_core_url_l1_1_0
885 enable_api_ms_win_core_util_l1_1_0
886 enable_api_ms_win_core_winrt_error_l1_1_0
887 enable_api_ms_win_core_winrt_string_l1_1_0
888 enable_api_ms_win_downlevel_advapi32_l1_1_0
889 enable_api_ms_win_downlevel_advapi32_l2_1_0
890 enable_api_ms_win_downlevel_normaliz_l1_1_0
891 enable_api_ms_win_downlevel_ole32_l1_1_0
892 enable_api_ms_win_downlevel_shell32_l1_1_0
893 enable_api_ms_win_downlevel_shlwapi_l1_1_0
894 enable_api_ms_win_downlevel_shlwapi_l2_1_0
895 enable_api_ms_win_downlevel_user32_l1_1_0
896 enable_api_ms_win_downlevel_version_l1_1_0
897 enable_api_ms_win_eventing_provider_l1_1_0
898 enable_api_ms_win_ntuser_dc_access_l1_1_0
899 enable_api_ms_win_security_base_l1_1_0
900 enable_api_ms_win_security_base_l1_2_0
901 enable_api_ms_win_security_sddl_l1_1_0
902 enable_api_ms_win_service_core_l1_1_1
903 enable_api_ms_win_service_management_l1_1_0
904 enable_api_ms_win_service_winsvc_l1_2_0
905 enable_apphelp
906 enable_appwiz_cpl
907 enable_atl
908 enable_atl100
909 enable_atl110
910 enable_atl80
911 enable_atl90
912 enable_authz
913 enable_avicap32
914 enable_avifil32
915 enable_avrt
916 enable_bcrypt
917 enable_browseui
918 enable_cabinet
919 enable_capi2032
920 enable_cards
921 enable_cfgmgr32
922 enable_clusapi
923 enable_comcat
924 enable_comctl32
925 enable_comdlg32
926 enable_compstui
927 enable_comsvcs
928 enable_credui
929 enable_crtdll
930 enable_crypt32
931 enable_cryptdlg
932 enable_cryptdll
933 enable_cryptnet
934 enable_cryptui
935 enable_ctapi32
936 enable_ctl3d32
937 enable_d3d10
938 enable_d3d10_1
939 enable_d3d10core
940 enable_d3d11
941 enable_d3d8
942 enable_d3d9
943 enable_d3dcompiler_33
944 enable_d3dcompiler_34
945 enable_d3dcompiler_35
946 enable_d3dcompiler_36
947 enable_d3dcompiler_37
948 enable_d3dcompiler_38
949 enable_d3dcompiler_39
950 enable_d3dcompiler_40
951 enable_d3dcompiler_41
952 enable_d3dcompiler_42
953 enable_d3dcompiler_43
954 enable_d3dim
955 enable_d3drm
956 enable_d3dx10_33
957 enable_d3dx10_34
958 enable_d3dx10_35
959 enable_d3dx10_36
960 enable_d3dx10_37
961 enable_d3dx10_38
962 enable_d3dx10_39
963 enable_d3dx10_40
964 enable_d3dx10_41
965 enable_d3dx10_42
966 enable_d3dx10_43
967 enable_d3dx11_42
968 enable_d3dx11_43
969 enable_d3dx9_24
970 enable_d3dx9_25
971 enable_d3dx9_26
972 enable_d3dx9_27
973 enable_d3dx9_28
974 enable_d3dx9_29
975 enable_d3dx9_30
976 enable_d3dx9_31
977 enable_d3dx9_32
978 enable_d3dx9_33
979 enable_d3dx9_34
980 enable_d3dx9_35
981 enable_d3dx9_36
982 enable_d3dx9_37
983 enable_d3dx9_38
984 enable_d3dx9_39
985 enable_d3dx9_40
986 enable_d3dx9_41
987 enable_d3dx9_42
988 enable_d3dx9_43
989 enable_d3dxof
990 enable_dbgeng
991 enable_dbghelp
992 enable_dciman32
993 enable_ddraw
994 enable_ddrawex
995 enable_devenum
996 enable_dhcpcsvc
997 enable_difxapi
998 enable_dinput
999 enable_dinput8
1000 enable_dispex
1001 enable_dmband
1002 enable_dmcompos
1003 enable_dmime
1004 enable_dmloader
1005 enable_dmscript
1006 enable_dmstyle
1007 enable_dmsynth
1008 enable_dmusic
1009 enable_dmusic32
1010 enable_dnsapi
1011 enable_dplay
1012 enable_dplayx
1013 enable_dpnaddr
1014 enable_dpnet
1015 enable_dpnhpast
1016 enable_dpnlobby
1017 enable_dpwsockx
1018 enable_drmclien
1019 enable_dsound
1020 enable_dssenh
1021 enable_dswave
1022 enable_dwmapi
1023 enable_dwrite
1024 enable_dxdiagn
1025 enable_dxgi
1026 enable_explorerframe
1027 enable_ext_ms_win_gdi_devcaps_l1_1_0
1028 enable_faultrep
1029 enable_fltlib
1030 enable_fusion
1031 enable_fwpuclnt
1032 enable_gameux
1033 enable_gdi32
1034 enable_gdiplus
1035 enable_glu32
1036 enable_gphoto2_ds
1037 enable_gpkcsp
1038 enable_hal
1039 enable_hhctrl_ocx
1040 enable_hid
1041 enable_hlink
1042 enable_hnetcfg
1043 enable_httpapi
1044 enable_iccvid
1045 enable_icmp
1046 enable_ieframe
1047 enable_imaadp32_acm
1048 enable_imagehlp
1049 enable_imm32
1050 enable_inetcomm
1051 enable_inetcpl_cpl
1052 enable_inetmib1
1053 enable_infosoft
1054 enable_initpki
1055 enable_inkobj
1056 enable_inseng
1057 enable_iphlpapi
1058 enable_itircl
1059 enable_itss
1060 enable_joy_cpl
1061 enable_jscript
1062 enable_kernel32
1063 enable_ktmw32
1064 enable_loadperf
1065 enable_localspl
1066 enable_localui
1067 enable_lz32
1068 enable_mapi32
1069 enable_mapistub
1070 enable_mciavi32
1071 enable_mcicda
1072 enable_mciqtz32
1073 enable_mciseq
1074 enable_mciwave
1075 enable_mgmtapi
1076 enable_midimap
1077 enable_mlang
1078 enable_mmcndmgr
1079 enable_mmdevapi
1080 enable_mountmgr_sys
1081 enable_mpr
1082 enable_mprapi
1083 enable_msacm32_drv
1084 enable_msacm32
1085 enable_msadp32_acm
1086 enable_mscat32
1087 enable_mscms
1088 enable_mscoree
1089 enable_msctf
1090 enable_msdaps
1091 enable_msdmo
1092 enable_msftedit
1093 enable_msg711_acm
1094 enable_msgsm32_acm
1095 enable_mshtml_tlb
1096 enable_mshtml
1097 enable_msi
1098 enable_msident
1099 enable_msimg32
1100 enable_msimsg
1101 enable_msimtf
1102 enable_msisip
1103 enable_msisys_ocx
1104 enable_msls31
1105 enable_msnet32
1106 enable_mspatcha
1107 enable_msrle32
1108 enable_mssign32
1109 enable_mssip32
1110 enable_mstask
1111 enable_msvcirt
1112 enable_msvcm80
1113 enable_msvcm90
1114 enable_msvcp100
1115 enable_msvcp110
1116 enable_msvcp60
1117 enable_msvcp70
1118 enable_msvcp71
1119 enable_msvcp80
1120 enable_msvcp90
1121 enable_msvcr100
1122 enable_msvcr110
1123 enable_msvcr70
1124 enable_msvcr71
1125 enable_msvcr80
1126 enable_msvcr90
1127 enable_msvcrt
1128 enable_msvcrt20
1129 enable_msvcrt40
1130 enable_msvcrtd
1131 enable_msvfw32
1132 enable_msvidc32
1133 enable_mswsock
1134 enable_msxml
1135 enable_msxml2
1136 enable_msxml3
1137 enable_msxml4
1138 enable_msxml6
1139 enable_nddeapi
1140 enable_netapi32
1141 enable_netcfgx
1142 enable_newdev
1143 enable_normaliz
1144 enable_npmshtml
1145 enable_ntdll
1146 enable_ntdsapi
1147 enable_ntoskrnl_exe
1148 enable_ntprint
1149 enable_objsel
1150 enable_odbc32
1151 enable_odbccp32
1152 enable_odbccu32
1153 enable_ole32
1154 enable_oleacc
1155 enable_oleaut32
1156 enable_olecli32
1157 enable_oledb32
1158 enable_oledlg
1159 enable_olepro32
1160 enable_olesvr32
1161 enable_olethk32
1162 enable_openal32
1163 enable_opencl
1164 enable_opengl32
1165 enable_pdh
1166 enable_photometadatahandler
1167 enable_pidgen
1168 enable_powrprof
1169 enable_printui
1170 enable_propsys
1171 enable_psapi
1172 enable_pstorec
1173 enable_qcap
1174 enable_qedit
1175 enable_qmgr
1176 enable_qmgrprxy
1177 enable_quartz
1178 enable_query
1179 enable_rasapi32
1180 enable_rasdlg
1181 enable_regapi
1182 enable_resutils
1183 enable_riched20
1184 enable_riched32
1185 enable_rpcrt4
1186 enable_rsabase
1187 enable_rsaenh
1188 enable_rstrtmgr
1189 enable_rtutils
1190 enable_samlib
1191 enable_sane_ds
1192 enable_scarddlg
1193 enable_sccbase
1194 enable_schannel
1195 enable_scrrun
1196 enable_scsiport_sys
1197 enable_secur32
1198 enable_security
1199 enable_sensapi
1200 enable_serialui
1201 enable_setupapi
1202 enable_sfc
1203 enable_sfc_os
1204 enable_shdoclc
1205 enable_shdocvw
1206 enable_shell32
1207 enable_shfolder
1208 enable_shlwapi
1209 enable_slbcsp
1210 enable_slc
1211 enable_snmpapi
1212 enable_softpub
1213 enable_spoolss
1214 enable_stdole2_tlb
1215 enable_stdole32_tlb
1216 enable_sti
1217 enable_svrapi
1218 enable_sxs
1219 enable_t2embed
1220 enable_tapi32
1221 enable_taskschd
1222 enable_traffic
1223 enable_twain_32
1224 enable_unicows
1225 enable_updspapi
1226 enable_url
1227 enable_urlmon
1228 enable_usbd_sys
1229 enable_user32
1230 enable_userenv
1231 enable_usp10
1232 enable_uxtheme
1233 enable_vbscript
1234 enable_vcomp
1235 enable_vcomp100
1236 enable_vcomp90
1237 enable_vdmdbg
1238 enable_version
1239 enable_wbemdisp
1240 enable_wbemprox
1241 enable_webservices
1242 enable_wer
1243 enable_wevtapi
1244 enable_wiaservc
1245 enable_windowscodecs
1246 enable_windowscodecsext
1247 enable_winealsa_drv
1248 enable_winecoreaudio_drv
1249 enable_wined3d
1250 enable_winegstreamer
1251 enable_winejoystick_drv
1252 enable_winemac_drv
1253 enable_winemapi
1254 enable_winemp3_acm
1255 enable_wineoss_drv
1256 enable_wineps_drv
1257 enable_wineqtdecoder
1258 enable_winex11_drv
1259 enable_wing32
1260 enable_winhttp
1261 enable_wininet
1262 enable_winmm
1263 enable_winnls32
1264 enable_winscard
1265 enable_winspool_drv
1266 enable_winsta
1267 enable_wintab32
1268 enable_wintrust
1269 enable_wlanapi
1270 enable_wldap32
1271 enable_wmi
1272 enable_wmiutils
1273 enable_wmp
1274 enable_wmvcore
1275 enable_wnaspi32
1276 enable_ws2_32
1277 enable_wshom_ocx
1278 enable_wsnmp32
1279 enable_wsock32
1280 enable_wtsapi32
1281 enable_wuapi
1282 enable_wuaueng
1283 enable_xapofx1_1
1284 enable_xinput1_1
1285 enable_xinput1_2
1286 enable_xinput1_3
1287 enable_xinput1_4
1288 enable_xinput9_1_0
1289 enable_xmllite
1290 enable_xolehlp
1291 enable_xpsprint
1292 enable_xpssvcs
1293 enable_documentation
1294 enable_fonts
1295 enable_include
1296 enable_libs_port
1297 enable_libs_wine
1298 enable_libs_wpp
1299 enable_loader
1300 enable_arp
1301 enable_aspnet_regiis
1302 enable_attrib
1303 enable_cabarc
1304 enable_cacls
1305 enable_clock
1306 enable_cmd
1307 enable_conhost
1308 enable_control
1309 enable_cscript
1310 enable_dxdiag
1311 enable_eject
1312 enable_expand
1313 enable_explorer
1314 enable_extrac32
1315 enable_findstr
1316 enable_hh
1317 enable_hostname
1318 enable_icinfo
1319 enable_iexplore
1320 enable_ipconfig
1321 enable_lodctr
1322 enable_mofcomp
1323 enable_mshta
1324 enable_msiexec
1325 enable_net
1326 enable_netsh
1327 enable_netstat
1328 enable_ngen
1329 enable_notepad
1330 enable_oleview
1331 enable_ping
1332 enable_plugplay
1333 enable_presentationfontcache
1334 enable_progman
1335 enable_reg
1336 enable_regasm
1337 enable_regedit
1338 enable_regsvcs
1339 enable_regsvr32
1340 enable_rpcss
1341 enable_rundll32
1342 enable_sc
1343 enable_schtasks
1344 enable_secedit
1345 enable_servicemodelreg
1346 enable_services
1347 enable_spoolsv
1348 enable_start
1349 enable_svchost
1350 enable_taskkill
1351 enable_tasklist
1352 enable_taskmgr
1353 enable_termsv
1354 enable_uninstaller
1355 enable_unlodctr
1356 enable_view
1357 enable_wineboot
1358 enable_winebrowser
1359 enable_winecfg
1360 enable_wineconsole
1361 enable_winedbg
1362 enable_winedevice
1363 enable_winefile
1364 enable_winemenubuilder
1365 enable_winemine
1366 enable_winemsibuilder
1367 enable_winepath
1368 enable_winetest
1369 enable_winhlp32
1370 enable_winver
1371 enable_wmic
1372 enable_wordpad
1373 enable_write
1374 enable_wscript
1375 enable_wusa
1376 enable_xcopy
1377 enable_server
1378 enable_tools
1380 ac_precious_vars='build_alias
1381 host_alias
1382 target_alias
1384 CFLAGS
1385 LDFLAGS
1386 LIBS
1387 CPPFLAGS
1389 CXXFLAGS
1392 XMKMF
1393 XML2_CFLAGS
1394 XML2_LIBS
1395 XSLT_CFLAGS
1396 XSLT_LIBS
1397 DBUS_CFLAGS
1398 DBUS_LIBS
1399 HAL_CFLAGS
1400 HAL_LIBS
1401 GNUTLS_CFLAGS
1402 GNUTLS_LIBS
1403 SANE_CFLAGS
1404 SANE_LIBS
1405 GPHOTO2_CFLAGS
1406 GPHOTO2_LIBS
1407 GPHOTO2_PORT_CFLAGS
1408 GPHOTO2_PORT_LIBS
1409 LCMS2_CFLAGS
1410 LCMS2_LIBS
1411 FREETYPE_CFLAGS
1412 FREETYPE_LIBS
1413 GSTREAMER_CFLAGS
1414 GSTREAMER_LIBS
1415 CAPI20_CFLAGS
1416 CAPI20_LIBS
1417 FONTCONFIG_CFLAGS
1418 FONTCONFIG_LIBS
1419 JPEG_CFLAGS
1420 JPEG_LIBS
1421 PNG_CFLAGS
1422 PNG_LIBS
1423 TIFF_CFLAGS
1424 TIFF_LIBS
1425 MPG123_CFLAGS
1426 MPG123_LIBS'
1429 # Initialize some variables set by options.
1430 ac_init_help=
1431 ac_init_version=false
1432 ac_unrecognized_opts=
1433 ac_unrecognized_sep=
1434 # The variables have the same names as the options, with
1435 # dashes changed to underlines.
1436 cache_file=/dev/null
1437 exec_prefix=NONE
1438 no_create=
1439 no_recursion=
1440 prefix=NONE
1441 program_prefix=NONE
1442 program_suffix=NONE
1443 program_transform_name=s,x,x,
1444 silent=
1445 site=
1446 srcdir=
1447 verbose=
1448 x_includes=NONE
1449 x_libraries=NONE
1451 # Installation directory options.
1452 # These are left unexpanded so users can "make install exec_prefix=/foo"
1453 # and all the variables that are supposed to be based on exec_prefix
1454 # by default will actually change.
1455 # Use braces instead of parens because sh, perl, etc. also accept them.
1456 # (The list follows the same order as the GNU Coding Standards.)
1457 bindir='${exec_prefix}/bin'
1458 sbindir='${exec_prefix}/sbin'
1459 libexecdir='${exec_prefix}/libexec'
1460 datarootdir='${prefix}/share'
1461 datadir='${datarootdir}'
1462 sysconfdir='${prefix}/etc'
1463 sharedstatedir='${prefix}/com'
1464 localstatedir='${prefix}/var'
1465 includedir='${prefix}/include'
1466 oldincludedir='/usr/include'
1467 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1468 infodir='${datarootdir}/info'
1469 htmldir='${docdir}'
1470 dvidir='${docdir}'
1471 pdfdir='${docdir}'
1472 psdir='${docdir}'
1473 libdir='${exec_prefix}/lib'
1474 localedir='${datarootdir}/locale'
1475 mandir='${datarootdir}/man'
1477 ac_prev=
1478 ac_dashdash=
1479 for ac_option
1481 # If the previous option needs an argument, assign it.
1482 if test -n "$ac_prev"; then
1483 eval $ac_prev=\$ac_option
1484 ac_prev=
1485 continue
1488 case $ac_option in
1489 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1490 *=) ac_optarg= ;;
1491 *) ac_optarg=yes ;;
1492 esac
1494 # Accept the important Cygnus configure options, so we can diagnose typos.
1496 case $ac_dashdash$ac_option in
1498 ac_dashdash=yes ;;
1500 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1501 ac_prev=bindir ;;
1502 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1503 bindir=$ac_optarg ;;
1505 -build | --build | --buil | --bui | --bu)
1506 ac_prev=build_alias ;;
1507 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1508 build_alias=$ac_optarg ;;
1510 -cache-file | --cache-file | --cache-fil | --cache-fi \
1511 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1512 ac_prev=cache_file ;;
1513 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1514 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1515 cache_file=$ac_optarg ;;
1517 --config-cache | -C)
1518 cache_file=config.cache ;;
1520 -datadir | --datadir | --datadi | --datad)
1521 ac_prev=datadir ;;
1522 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1523 datadir=$ac_optarg ;;
1525 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1526 | --dataroo | --dataro | --datar)
1527 ac_prev=datarootdir ;;
1528 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1529 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1530 datarootdir=$ac_optarg ;;
1532 -disable-* | --disable-*)
1533 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1534 # Reject names that are not valid shell variable names.
1535 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1536 as_fn_error $? "invalid feature name: $ac_useropt"
1537 ac_useropt_orig=$ac_useropt
1538 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1539 case $ac_user_opts in
1541 "enable_$ac_useropt"
1542 "*) ;;
1543 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1544 ac_unrecognized_sep=', ';;
1545 esac
1546 eval enable_$ac_useropt=no ;;
1548 -docdir | --docdir | --docdi | --doc | --do)
1549 ac_prev=docdir ;;
1550 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1551 docdir=$ac_optarg ;;
1553 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1554 ac_prev=dvidir ;;
1555 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1556 dvidir=$ac_optarg ;;
1558 -enable-* | --enable-*)
1559 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1560 # Reject names that are not valid shell variable names.
1561 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1562 as_fn_error $? "invalid feature name: $ac_useropt"
1563 ac_useropt_orig=$ac_useropt
1564 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1565 case $ac_user_opts in
1567 "enable_$ac_useropt"
1568 "*) ;;
1569 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1570 ac_unrecognized_sep=', ';;
1571 esac
1572 eval enable_$ac_useropt=\$ac_optarg ;;
1574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1576 | --exec | --exe | --ex)
1577 ac_prev=exec_prefix ;;
1578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1580 | --exec=* | --exe=* | --ex=*)
1581 exec_prefix=$ac_optarg ;;
1583 -gas | --gas | --ga | --g)
1584 # Obsolete; use --with-gas.
1585 with_gas=yes ;;
1587 -help | --help | --hel | --he | -h)
1588 ac_init_help=long ;;
1589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1590 ac_init_help=recursive ;;
1591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1592 ac_init_help=short ;;
1594 -host | --host | --hos | --ho)
1595 ac_prev=host_alias ;;
1596 -host=* | --host=* | --hos=* | --ho=*)
1597 host_alias=$ac_optarg ;;
1599 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1600 ac_prev=htmldir ;;
1601 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1602 | --ht=*)
1603 htmldir=$ac_optarg ;;
1605 -includedir | --includedir | --includedi | --included | --include \
1606 | --includ | --inclu | --incl | --inc)
1607 ac_prev=includedir ;;
1608 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1609 | --includ=* | --inclu=* | --incl=* | --inc=*)
1610 includedir=$ac_optarg ;;
1612 -infodir | --infodir | --infodi | --infod | --info | --inf)
1613 ac_prev=infodir ;;
1614 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1615 infodir=$ac_optarg ;;
1617 -libdir | --libdir | --libdi | --libd)
1618 ac_prev=libdir ;;
1619 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1620 libdir=$ac_optarg ;;
1622 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1623 | --libexe | --libex | --libe)
1624 ac_prev=libexecdir ;;
1625 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1626 | --libexe=* | --libex=* | --libe=*)
1627 libexecdir=$ac_optarg ;;
1629 -localedir | --localedir | --localedi | --localed | --locale)
1630 ac_prev=localedir ;;
1631 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1632 localedir=$ac_optarg ;;
1634 -localstatedir | --localstatedir | --localstatedi | --localstated \
1635 | --localstate | --localstat | --localsta | --localst | --locals)
1636 ac_prev=localstatedir ;;
1637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1638 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1639 localstatedir=$ac_optarg ;;
1641 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1642 ac_prev=mandir ;;
1643 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1644 mandir=$ac_optarg ;;
1646 -nfp | --nfp | --nf)
1647 # Obsolete; use --without-fp.
1648 with_fp=no ;;
1650 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1651 | --no-cr | --no-c | -n)
1652 no_create=yes ;;
1654 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1655 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1656 no_recursion=yes ;;
1658 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1659 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1660 | --oldin | --oldi | --old | --ol | --o)
1661 ac_prev=oldincludedir ;;
1662 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1663 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1664 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1665 oldincludedir=$ac_optarg ;;
1667 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1668 ac_prev=prefix ;;
1669 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1670 prefix=$ac_optarg ;;
1672 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1673 | --program-pre | --program-pr | --program-p)
1674 ac_prev=program_prefix ;;
1675 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1676 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1677 program_prefix=$ac_optarg ;;
1679 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1680 | --program-suf | --program-su | --program-s)
1681 ac_prev=program_suffix ;;
1682 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1683 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1684 program_suffix=$ac_optarg ;;
1686 -program-transform-name | --program-transform-name \
1687 | --program-transform-nam | --program-transform-na \
1688 | --program-transform-n | --program-transform- \
1689 | --program-transform | --program-transfor \
1690 | --program-transfo | --program-transf \
1691 | --program-trans | --program-tran \
1692 | --progr-tra | --program-tr | --program-t)
1693 ac_prev=program_transform_name ;;
1694 -program-transform-name=* | --program-transform-name=* \
1695 | --program-transform-nam=* | --program-transform-na=* \
1696 | --program-transform-n=* | --program-transform-=* \
1697 | --program-transform=* | --program-transfor=* \
1698 | --program-transfo=* | --program-transf=* \
1699 | --program-trans=* | --program-tran=* \
1700 | --progr-tra=* | --program-tr=* | --program-t=*)
1701 program_transform_name=$ac_optarg ;;
1703 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1704 ac_prev=pdfdir ;;
1705 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1706 pdfdir=$ac_optarg ;;
1708 -psdir | --psdir | --psdi | --psd | --ps)
1709 ac_prev=psdir ;;
1710 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1711 psdir=$ac_optarg ;;
1713 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1714 | -silent | --silent | --silen | --sile | --sil)
1715 silent=yes ;;
1717 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1718 ac_prev=sbindir ;;
1719 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1720 | --sbi=* | --sb=*)
1721 sbindir=$ac_optarg ;;
1723 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1724 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1725 | --sharedst | --shareds | --shared | --share | --shar \
1726 | --sha | --sh)
1727 ac_prev=sharedstatedir ;;
1728 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1729 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1730 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1731 | --sha=* | --sh=*)
1732 sharedstatedir=$ac_optarg ;;
1734 -site | --site | --sit)
1735 ac_prev=site ;;
1736 -site=* | --site=* | --sit=*)
1737 site=$ac_optarg ;;
1739 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1740 ac_prev=srcdir ;;
1741 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1742 srcdir=$ac_optarg ;;
1744 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1745 | --syscon | --sysco | --sysc | --sys | --sy)
1746 ac_prev=sysconfdir ;;
1747 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1748 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1749 sysconfdir=$ac_optarg ;;
1751 -target | --target | --targe | --targ | --tar | --ta | --t)
1752 ac_prev=target_alias ;;
1753 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1754 target_alias=$ac_optarg ;;
1756 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1757 verbose=yes ;;
1759 -version | --version | --versio | --versi | --vers | -V)
1760 ac_init_version=: ;;
1762 -with-* | --with-*)
1763 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1764 # Reject names that are not valid shell variable names.
1765 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1766 as_fn_error $? "invalid package name: $ac_useropt"
1767 ac_useropt_orig=$ac_useropt
1768 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1769 case $ac_user_opts in
1771 "with_$ac_useropt"
1772 "*) ;;
1773 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1774 ac_unrecognized_sep=', ';;
1775 esac
1776 eval with_$ac_useropt=\$ac_optarg ;;
1778 -without-* | --without-*)
1779 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1780 # Reject names that are not valid shell variable names.
1781 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1782 as_fn_error $? "invalid package name: $ac_useropt"
1783 ac_useropt_orig=$ac_useropt
1784 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1785 case $ac_user_opts in
1787 "with_$ac_useropt"
1788 "*) ;;
1789 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1790 ac_unrecognized_sep=', ';;
1791 esac
1792 eval with_$ac_useropt=no ;;
1794 --x)
1795 # Obsolete; use --with-x.
1796 with_x=yes ;;
1798 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1799 | --x-incl | --x-inc | --x-in | --x-i)
1800 ac_prev=x_includes ;;
1801 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1802 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1803 x_includes=$ac_optarg ;;
1805 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1806 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1807 ac_prev=x_libraries ;;
1808 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1809 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1810 x_libraries=$ac_optarg ;;
1812 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1813 Try \`$0 --help' for more information"
1816 *=*)
1817 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1818 # Reject names that are not valid shell variable names.
1819 case $ac_envvar in #(
1820 '' | [0-9]* | *[!_$as_cr_alnum]* )
1821 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1822 esac
1823 eval $ac_envvar=\$ac_optarg
1824 export $ac_envvar ;;
1827 # FIXME: should be removed in autoconf 3.0.
1828 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1829 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1830 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1831 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1834 esac
1835 done
1837 if test -n "$ac_prev"; then
1838 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1839 as_fn_error $? "missing argument to $ac_option"
1842 if test -n "$ac_unrecognized_opts"; then
1843 case $enable_option_checking in
1844 no) ;;
1845 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1846 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1847 esac
1850 # Check all directory arguments for consistency.
1851 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1852 datadir sysconfdir sharedstatedir localstatedir includedir \
1853 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1854 libdir localedir mandir
1856 eval ac_val=\$$ac_var
1857 # Remove trailing slashes.
1858 case $ac_val in
1859 */ )
1860 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1861 eval $ac_var=\$ac_val;;
1862 esac
1863 # Be sure to have absolute directory names.
1864 case $ac_val in
1865 [\\/$]* | ?:[\\/]* ) continue;;
1866 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1867 esac
1868 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1869 done
1871 # There might be people who depend on the old broken behavior: `$host'
1872 # used to hold the argument of --host etc.
1873 # FIXME: To remove some day.
1874 build=$build_alias
1875 host=$host_alias
1876 target=$target_alias
1878 # FIXME: To remove some day.
1879 if test "x$host_alias" != x; then
1880 if test "x$build_alias" = x; then
1881 cross_compiling=maybe
1882 elif test "x$build_alias" != "x$host_alias"; then
1883 cross_compiling=yes
1887 ac_tool_prefix=
1888 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1890 test "$silent" = yes && exec 6>/dev/null
1893 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1894 ac_ls_di=`ls -di .` &&
1895 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1896 as_fn_error $? "working directory cannot be determined"
1897 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1898 as_fn_error $? "pwd does not report name of working directory"
1901 # Find the source files, if location was not specified.
1902 if test -z "$srcdir"; then
1903 ac_srcdir_defaulted=yes
1904 # Try the directory containing this script, then the parent directory.
1905 ac_confdir=`$as_dirname -- "$as_myself" ||
1906 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1907 X"$as_myself" : 'X\(//\)[^/]' \| \
1908 X"$as_myself" : 'X\(//\)$' \| \
1909 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1910 $as_echo X"$as_myself" |
1911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1912 s//\1/
1915 /^X\(\/\/\)[^/].*/{
1916 s//\1/
1919 /^X\(\/\/\)$/{
1920 s//\1/
1923 /^X\(\/\).*/{
1924 s//\1/
1927 s/.*/./; q'`
1928 srcdir=$ac_confdir
1929 if test ! -r "$srcdir/$ac_unique_file"; then
1930 srcdir=..
1932 else
1933 ac_srcdir_defaulted=no
1935 if test ! -r "$srcdir/$ac_unique_file"; then
1936 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1937 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1939 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1940 ac_abs_confdir=`(
1941 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1942 pwd)`
1943 # When building in place, set srcdir=.
1944 if test "$ac_abs_confdir" = "$ac_pwd"; then
1945 srcdir=.
1947 # Remove unnecessary trailing slashes from srcdir.
1948 # Double slashes in file names in object file debugging info
1949 # mess up M-x gdb in Emacs.
1950 case $srcdir in
1951 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1952 esac
1953 for ac_var in $ac_precious_vars; do
1954 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1955 eval ac_env_${ac_var}_value=\$${ac_var}
1956 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1957 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1958 done
1961 # Report the --help message.
1963 if test "$ac_init_help" = "long"; then
1964 # Omit some internal or obsolete options to make the list less imposing.
1965 # This message is too long to be a string in the A/UX 3.1 sh.
1966 cat <<_ACEOF
1967 \`configure' configures Wine 1.7.12 to adapt to many kinds of systems.
1969 Usage: $0 [OPTION]... [VAR=VALUE]...
1971 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1972 VAR=VALUE. See below for descriptions of some of the useful variables.
1974 Defaults for the options are specified in brackets.
1976 Configuration:
1977 -h, --help display this help and exit
1978 --help=short display options specific to this package
1979 --help=recursive display the short help of all the included packages
1980 -V, --version display version information and exit
1981 -q, --quiet, --silent do not print \`checking ...' messages
1982 --cache-file=FILE cache test results in FILE [disabled]
1983 -C, --config-cache alias for \`--cache-file=config.cache'
1984 -n, --no-create do not create output files
1985 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1987 Installation directories:
1988 --prefix=PREFIX install architecture-independent files in PREFIX
1989 [$ac_default_prefix]
1990 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1991 [PREFIX]
1993 By default, \`make install' will install all the files in
1994 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1995 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1996 for instance \`--prefix=\$HOME'.
1998 For better control, use the options below.
2000 Fine tuning of the installation directories:
2001 --bindir=DIR user executables [EPREFIX/bin]
2002 --sbindir=DIR system admin executables [EPREFIX/sbin]
2003 --libexecdir=DIR program executables [EPREFIX/libexec]
2004 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2005 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2006 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2007 --libdir=DIR object code libraries [EPREFIX/lib]
2008 --includedir=DIR C header files [PREFIX/include]
2009 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2010 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2011 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2012 --infodir=DIR info documentation [DATAROOTDIR/info]
2013 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2014 --mandir=DIR man documentation [DATAROOTDIR/man]
2015 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
2016 --htmldir=DIR html documentation [DOCDIR]
2017 --dvidir=DIR dvi documentation [DOCDIR]
2018 --pdfdir=DIR pdf documentation [DOCDIR]
2019 --psdir=DIR ps documentation [DOCDIR]
2020 _ACEOF
2022 cat <<\_ACEOF
2024 X features:
2025 --x-includes=DIR X include files are in DIR
2026 --x-libraries=DIR X library files are in DIR
2028 System types:
2029 --build=BUILD configure for building on BUILD [guessed]
2030 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2031 _ACEOF
2034 if test -n "$ac_init_help"; then
2035 case $ac_init_help in
2036 short | recursive ) echo "Configuration of Wine 1.7.12:";;
2037 esac
2038 cat <<\_ACEOF
2040 Optional Features:
2041 --disable-option-checking ignore unrecognized --enable/--with options
2042 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2043 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2044 --disable-win16 do not include Win16 support
2045 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2046 binaries)
2047 --disable-tests do not build the regression tests
2048 --enable-maintainer-mode
2049 enable maintainer-specific build rules
2050 --disable-largefile omit support for large files
2052 Optional Packages:
2053 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2054 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2055 --without-alsa do not use the Alsa sound support
2056 --without-capi do not use CAPI (ISDN support)
2057 --without-cms do not use CMS (color management support)
2058 --without-coreaudio do not use the CoreAudio sound support
2059 --without-cups do not use CUPS
2060 --without-curses do not use (n)curses
2061 --without-dbus do not use DBus (dynamic device support)
2062 --without-fontconfig do not use fontconfig
2063 --without-freetype do not use the FreeType library
2064 --without-gettext do not use gettext
2065 --with-gettextpo use the GetTextPO library to rebuild po files
2066 --without-gphoto do not use gphoto (Digital Camera support)
2067 --without-glu do not use the GLU library
2068 --without-gnutls do not use GnuTLS (schannel support)
2069 --without-gsm do not use libgsm (GSM 06.10 codec support)
2070 --without-gstreamer do not use GStreamer (codecs support)
2071 --without-hal do not use HAL (dynamic device support)
2072 --without-jpeg do not use JPEG
2073 --without-ldap do not use LDAP
2074 --without-mpg123 do not use the mpg123 library
2075 --without-netapi do not use the Samba NetAPI library
2076 --without-openal do not use OpenAL
2077 --without-opencl do not use OpenCL
2078 --without-opengl do not use OpenGL
2079 --without-osmesa do not use the OSMesa library
2080 --without-oss do not use the OSS sound support
2081 --without-png do not use PNG
2082 --without-pthread do not use the pthread library
2083 --without-sane do not use SANE (scanner support)
2084 --without-tiff do not use TIFF
2085 --without-v4l do not use v4l1 (v4l support)
2086 --without-xcomposite do not use the Xcomposite extension
2087 --without-xcursor do not use the Xcursor extension
2088 --without-xinerama do not use Xinerama (multi-monitor support)
2089 --without-xinput do not use the Xinput extension
2090 --without-xinput2 do not use the Xinput 2 extension
2091 --without-xml do not use XML
2092 --without-xrandr do not use Xrandr (resolution changes)
2093 --without-xrender do not use the Xrender extension
2094 --without-xshape do not use the Xshape extension
2095 --without-xshm do not use XShm (shared memory extension)
2096 --without-xslt do not use XSLT
2097 --without-xxf86vm do not use XFree video mode extension
2098 --without-zlib do not use Zlib (data compression)
2099 --with-wine-tools=DIR use Wine tools from directory DIR
2100 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2101 --with-x use the X Window System
2103 Some influential environment variables:
2104 CC C compiler command
2105 CFLAGS C compiler flags
2106 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2107 nonstandard directory <lib dir>
2108 LIBS libraries to pass to the linker, e.g. -l<library>
2109 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2110 you have headers in a nonstandard directory <include dir>
2111 CXX C++ compiler command
2112 CXXFLAGS C++ compiler flags
2113 CPP C preprocessor
2114 XMKMF Path to xmkmf, Makefile generator for X Window System
2115 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2116 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2117 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2118 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2119 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2120 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2121 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2122 HAL_LIBS Linker flags for hal, overriding pkg-config
2123 GNUTLS_CFLAGS
2124 C compiler flags for gnutls, overriding pkg-config
2125 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2126 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2127 SANE_LIBS Linker flags for libsane, overriding pkg-config
2128 GPHOTO2_CFLAGS
2129 C compiler flags for libgphoto2, overriding pkg-config
2130 GPHOTO2_LIBS
2131 Linker flags for libgphoto2, overriding pkg-config
2132 GPHOTO2_PORT_CFLAGS
2133 C compiler flags for libgphoto2_port, overriding pkg-config
2134 GPHOTO2_PORT_LIBS
2135 Linker flags for libgphoto2_port, overriding pkg-config
2136 LCMS2_CFLAGS
2137 C compiler flags for lcms2, overriding pkg-config
2138 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2139 FREETYPE_CFLAGS
2140 C compiler flags for freetype2, overriding pkg-config
2141 FREETYPE_LIBS
2142 Linker flags for freetype2, overriding pkg-config
2143 GSTREAMER_CFLAGS
2144 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2145 GSTREAMER_LIBS
2146 Linker flags for gstreamer-app-0.10, overriding pkg-config
2147 CAPI20_CFLAGS
2148 C compiler flags for capi20, overriding pkg-config
2149 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2150 FONTCONFIG_CFLAGS
2151 C compiler flags for fontconfig, overriding pkg-config
2152 FONTCONFIG_LIBS
2153 Linker flags for fontconfig, overriding pkg-config
2154 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2155 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2156 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2157 PNG_LIBS Linker flags for libpng, overriding pkg-config
2158 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2159 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2160 MPG123_CFLAGS
2161 C compiler flags for libmpg123, overriding pkg-config
2162 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2164 Use these variables to override the choices made by `configure' or to help
2165 it to find libraries and programs with nonstandard names/locations.
2167 Report bugs to <wine-devel@winehq.org>.
2168 Wine home page: <http://www.winehq.org>.
2169 _ACEOF
2170 ac_status=$?
2173 if test "$ac_init_help" = "recursive"; then
2174 # If there are subdirs, report their specific --help.
2175 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2176 test -d "$ac_dir" ||
2177 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2178 continue
2179 ac_builddir=.
2181 case "$ac_dir" in
2182 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2184 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2185 # A ".." for each directory in $ac_dir_suffix.
2186 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2187 case $ac_top_builddir_sub in
2188 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2189 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2190 esac ;;
2191 esac
2192 ac_abs_top_builddir=$ac_pwd
2193 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2194 # for backward compatibility:
2195 ac_top_builddir=$ac_top_build_prefix
2197 case $srcdir in
2198 .) # We are building in place.
2199 ac_srcdir=.
2200 ac_top_srcdir=$ac_top_builddir_sub
2201 ac_abs_top_srcdir=$ac_pwd ;;
2202 [\\/]* | ?:[\\/]* ) # Absolute name.
2203 ac_srcdir=$srcdir$ac_dir_suffix;
2204 ac_top_srcdir=$srcdir
2205 ac_abs_top_srcdir=$srcdir ;;
2206 *) # Relative name.
2207 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2208 ac_top_srcdir=$ac_top_build_prefix$srcdir
2209 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2210 esac
2211 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2213 cd "$ac_dir" || { ac_status=$?; continue; }
2214 # Check for guested configure.
2215 if test -f "$ac_srcdir/configure.gnu"; then
2216 echo &&
2217 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2218 elif test -f "$ac_srcdir/configure"; then
2219 echo &&
2220 $SHELL "$ac_srcdir/configure" --help=recursive
2221 else
2222 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2223 fi || ac_status=$?
2224 cd "$ac_pwd" || { ac_status=$?; break; }
2225 done
2228 test -n "$ac_init_help" && exit $ac_status
2229 if $ac_init_version; then
2230 cat <<\_ACEOF
2231 Wine configure 1.7.12
2232 generated by GNU Autoconf 2.69
2234 Copyright (C) 2012 Free Software Foundation, Inc.
2235 This configure script is free software; the Free Software Foundation
2236 gives unlimited permission to copy, distribute and modify it.
2237 _ACEOF
2238 exit
2241 ## ------------------------ ##
2242 ## Autoconf initialization. ##
2243 ## ------------------------ ##
2245 # ac_fn_c_try_compile LINENO
2246 # --------------------------
2247 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2248 ac_fn_c_try_compile ()
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 rm -f conftest.$ac_objext
2252 if { { ac_try="$ac_compile"
2253 case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256 esac
2257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258 $as_echo "$ac_try_echo"; } >&5
2259 (eval "$ac_compile") 2>conftest.err
2260 ac_status=$?
2261 if test -s conftest.err; then
2262 grep -v '^ *+' conftest.err >conftest.er1
2263 cat conftest.er1 >&5
2264 mv -f conftest.er1 conftest.err
2266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 test $ac_status = 0; } && {
2268 test -z "$ac_c_werror_flag" ||
2269 test ! -s conftest.err
2270 } && test -s conftest.$ac_objext; then :
2271 ac_retval=0
2272 else
2273 $as_echo "$as_me: failed program was:" >&5
2274 sed 's/^/| /' conftest.$ac_ext >&5
2276 ac_retval=1
2278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2279 as_fn_set_status $ac_retval
2281 } # ac_fn_c_try_compile
2283 # ac_fn_cxx_try_compile LINENO
2284 # ----------------------------
2285 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2286 ac_fn_cxx_try_compile ()
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 rm -f conftest.$ac_objext
2290 if { { ac_try="$ac_compile"
2291 case "(($ac_try" in
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2294 esac
2295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2296 $as_echo "$ac_try_echo"; } >&5
2297 (eval "$ac_compile") 2>conftest.err
2298 ac_status=$?
2299 if test -s conftest.err; then
2300 grep -v '^ *+' conftest.err >conftest.er1
2301 cat conftest.er1 >&5
2302 mv -f conftest.er1 conftest.err
2304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2305 test $ac_status = 0; } && {
2306 test -z "$ac_cxx_werror_flag" ||
2307 test ! -s conftest.err
2308 } && test -s conftest.$ac_objext; then :
2309 ac_retval=0
2310 else
2311 $as_echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2314 ac_retval=1
2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 as_fn_set_status $ac_retval
2319 } # ac_fn_cxx_try_compile
2321 # ac_fn_c_try_link LINENO
2322 # -----------------------
2323 # Try to link conftest.$ac_ext, and return whether this succeeded.
2324 ac_fn_c_try_link ()
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 rm -f conftest.$ac_objext conftest$ac_exeext
2328 if { { ac_try="$ac_link"
2329 case "(($ac_try" in
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2332 esac
2333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2334 $as_echo "$ac_try_echo"; } >&5
2335 (eval "$ac_link") 2>conftest.err
2336 ac_status=$?
2337 if test -s conftest.err; then
2338 grep -v '^ *+' conftest.err >conftest.er1
2339 cat conftest.er1 >&5
2340 mv -f conftest.er1 conftest.err
2342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2343 test $ac_status = 0; } && {
2344 test -z "$ac_c_werror_flag" ||
2345 test ! -s conftest.err
2346 } && test -s conftest$ac_exeext && {
2347 test "$cross_compiling" = yes ||
2348 test -x conftest$ac_exeext
2349 }; then :
2350 ac_retval=0
2351 else
2352 $as_echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2355 ac_retval=1
2357 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2358 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2359 # interfere with the next link command; also delete a directory that is
2360 # left behind by Apple's compiler. We do this before executing the actions.
2361 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363 as_fn_set_status $ac_retval
2365 } # ac_fn_c_try_link
2367 # ac_fn_c_try_cpp LINENO
2368 # ----------------------
2369 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2370 ac_fn_c_try_cpp ()
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 if { { ac_try="$ac_cpp conftest.$ac_ext"
2374 case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377 esac
2378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2379 $as_echo "$ac_try_echo"; } >&5
2380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2381 ac_status=$?
2382 if test -s conftest.err; then
2383 grep -v '^ *+' conftest.err >conftest.er1
2384 cat conftest.er1 >&5
2385 mv -f conftest.er1 conftest.err
2387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2388 test $ac_status = 0; } > conftest.i && {
2389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2390 test ! -s conftest.err
2391 }; then :
2392 ac_retval=0
2393 else
2394 $as_echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2397 ac_retval=1
2399 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400 as_fn_set_status $ac_retval
2402 } # ac_fn_c_try_cpp
2404 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2405 # -------------------------------------------------------
2406 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2407 # the include files in INCLUDES and setting the cache variable VAR
2408 # accordingly.
2409 ac_fn_c_check_header_mongrel ()
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 if eval \${$3+:} false; then :
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2414 $as_echo_n "checking for $2... " >&6; }
2415 if eval \${$3+:} false; then :
2416 $as_echo_n "(cached) " >&6
2418 eval ac_res=\$$3
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420 $as_echo "$ac_res" >&6; }
2421 else
2422 # Is the header compilable?
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2424 $as_echo_n "checking $2 usability... " >&6; }
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2428 #include <$2>
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431 ac_header_compiler=yes
2432 else
2433 ac_header_compiler=no
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2437 $as_echo "$ac_header_compiler" >&6; }
2439 # Is the header present?
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2441 $as_echo_n "checking $2 presence... " >&6; }
2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443 /* end confdefs.h. */
2444 #include <$2>
2445 _ACEOF
2446 if ac_fn_c_try_cpp "$LINENO"; then :
2447 ac_header_preproc=yes
2448 else
2449 ac_header_preproc=no
2451 rm -f conftest.err conftest.i conftest.$ac_ext
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2453 $as_echo "$ac_header_preproc" >&6; }
2455 # So? What about this header?
2456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2457 yes:no: )
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2459 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2461 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2463 no:yes:* )
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2465 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2467 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2469 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2471 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2473 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2474 ( $as_echo "## ------------------------------------ ##
2475 ## Report this to wine-devel@winehq.org ##
2476 ## ------------------------------------ ##"
2477 ) | sed "s/^/$as_me: WARNING: /" >&2
2479 esac
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2481 $as_echo_n "checking for $2... " >&6; }
2482 if eval \${$3+:} false; then :
2483 $as_echo_n "(cached) " >&6
2484 else
2485 eval "$3=\$ac_header_compiler"
2487 eval ac_res=\$$3
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2489 $as_echo "$ac_res" >&6; }
2491 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2493 } # ac_fn_c_check_header_mongrel
2495 # ac_fn_c_try_run LINENO
2496 # ----------------------
2497 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2498 # that executables *can* be run.
2499 ac_fn_c_try_run ()
2501 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2502 if { { ac_try="$ac_link"
2503 case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2506 esac
2507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2508 $as_echo "$ac_try_echo"; } >&5
2509 (eval "$ac_link") 2>&5
2510 ac_status=$?
2511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2512 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2513 { { case "(($ac_try" in
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2516 esac
2517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2518 $as_echo "$ac_try_echo"; } >&5
2519 (eval "$ac_try") 2>&5
2520 ac_status=$?
2521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2522 test $ac_status = 0; }; }; then :
2523 ac_retval=0
2524 else
2525 $as_echo "$as_me: program exited with status $ac_status" >&5
2526 $as_echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2529 ac_retval=$ac_status
2531 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533 as_fn_set_status $ac_retval
2535 } # ac_fn_c_try_run
2537 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2538 # -------------------------------------------------------
2539 # Tests whether HEADER exists and can be compiled using the include files in
2540 # INCLUDES, setting the cache variable VAR accordingly.
2541 ac_fn_c_check_header_compile ()
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545 $as_echo_n "checking for $2... " >&6; }
2546 if eval \${$3+:} false; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2552 #include <$2>
2553 _ACEOF
2554 if ac_fn_c_try_compile "$LINENO"; then :
2555 eval "$3=yes"
2556 else
2557 eval "$3=no"
2559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 eval ac_res=\$$3
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563 $as_echo "$ac_res" >&6; }
2564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2566 } # ac_fn_c_check_header_compile
2568 # ac_fn_c_check_func LINENO FUNC VAR
2569 # ----------------------------------
2570 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2571 ac_fn_c_check_func ()
2573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2575 $as_echo_n "checking for $2... " >&6; }
2576 if eval \${$3+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2581 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2583 #define $2 innocuous_$2
2585 /* System header to define __stub macros and hopefully few prototypes,
2586 which can conflict with char $2 (); below.
2587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2588 <limits.h> exists even on freestanding compilers. */
2590 #ifdef __STDC__
2591 # include <limits.h>
2592 #else
2593 # include <assert.h>
2594 #endif
2596 #undef $2
2598 /* Override any GCC internal prototype to avoid an error.
2599 Use char because int might match the return type of a GCC
2600 builtin and then its argument prototype would still apply. */
2601 #ifdef __cplusplus
2602 extern "C"
2603 #endif
2604 char $2 ();
2605 /* The GNU C library defines this for functions which it implements
2606 to always fail with ENOSYS. Some functions are actually named
2607 something starting with __ and the normal name is an alias. */
2608 #if defined __stub_$2 || defined __stub___$2
2609 choke me
2610 #endif
2613 main ()
2615 return $2 ();
2617 return 0;
2619 _ACEOF
2620 if ac_fn_c_try_link "$LINENO"; then :
2621 eval "$3=yes"
2622 else
2623 eval "$3=no"
2625 rm -f core conftest.err conftest.$ac_objext \
2626 conftest$ac_exeext conftest.$ac_ext
2628 eval ac_res=\$$3
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2630 $as_echo "$ac_res" >&6; }
2631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2633 } # ac_fn_c_check_func
2635 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2636 # ----------------------------------------------------
2637 # Tries to find if the field MEMBER exists in type AGGR, after including
2638 # INCLUDES, setting cache variable VAR accordingly.
2639 ac_fn_c_check_member ()
2641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2643 $as_echo_n "checking for $2.$3... " >&6; }
2644 if eval \${$4+:} false; then :
2645 $as_echo_n "(cached) " >&6
2646 else
2647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2648 /* end confdefs.h. */
2651 main ()
2653 static $2 ac_aggr;
2654 if (ac_aggr.$3)
2655 return 0;
2657 return 0;
2659 _ACEOF
2660 if ac_fn_c_try_compile "$LINENO"; then :
2661 eval "$4=yes"
2662 else
2663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2664 /* end confdefs.h. */
2667 main ()
2669 static $2 ac_aggr;
2670 if (sizeof ac_aggr.$3)
2671 return 0;
2673 return 0;
2675 _ACEOF
2676 if ac_fn_c_try_compile "$LINENO"; then :
2677 eval "$4=yes"
2678 else
2679 eval "$4=no"
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 eval ac_res=\$$4
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2690 } # ac_fn_c_check_member
2692 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2693 # -------------------------------------------
2694 # Tests whether TYPE exists after having included INCLUDES, setting cache
2695 # variable VAR accordingly.
2696 ac_fn_c_check_type ()
2698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2700 $as_echo_n "checking for $2... " >&6; }
2701 if eval \${$3+:} false; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 eval "$3=no"
2705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h. */
2709 main ()
2711 if (sizeof ($2))
2712 return 0;
2714 return 0;
2716 _ACEOF
2717 if ac_fn_c_try_compile "$LINENO"; then :
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2722 main ()
2724 if (sizeof (($2)))
2725 return 0;
2727 return 0;
2729 _ACEOF
2730 if ac_fn_c_try_compile "$LINENO"; then :
2732 else
2733 eval "$3=yes"
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 eval ac_res=\$$3
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2741 $as_echo "$ac_res" >&6; }
2742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2744 } # ac_fn_c_check_type
2745 cat >config.log <<_ACEOF
2746 This file contains any messages produced by compilers while
2747 running configure, to aid debugging if configure makes a mistake.
2749 It was created by Wine $as_me 1.7.12, which was
2750 generated by GNU Autoconf 2.69. Invocation command line was
2752 $ $0 $@
2754 _ACEOF
2755 exec 5>>config.log
2757 cat <<_ASUNAME
2758 ## --------- ##
2759 ## Platform. ##
2760 ## --------- ##
2762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2774 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2779 _ASUNAME
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 $as_echo "PATH: $as_dir"
2787 done
2788 IFS=$as_save_IFS
2790 } >&5
2792 cat >&5 <<_ACEOF
2795 ## ----------- ##
2796 ## Core tests. ##
2797 ## ----------- ##
2799 _ACEOF
2802 # Keep a trace of the command line.
2803 # Strip out --no-create and --no-recursion so they do not pile up.
2804 # Strip out --silent because we don't want to record it for future runs.
2805 # Also quote any args containing shell meta-characters.
2806 # Make two passes to allow for proper duplicate-argument suppression.
2807 ac_configure_args=
2808 ac_configure_args0=
2809 ac_configure_args1=
2810 ac_must_keep_next=false
2811 for ac_pass in 1 2
2813 for ac_arg
2815 case $ac_arg in
2816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2818 | -silent | --silent | --silen | --sile | --sil)
2819 continue ;;
2820 *\'*)
2821 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2822 esac
2823 case $ac_pass in
2824 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2826 as_fn_append ac_configure_args1 " '$ac_arg'"
2827 if test $ac_must_keep_next = true; then
2828 ac_must_keep_next=false # Got value, back to normal.
2829 else
2830 case $ac_arg in
2831 *=* | --config-cache | -C | -disable-* | --disable-* \
2832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2834 | -with-* | --with-* | -without-* | --without-* | --x)
2835 case "$ac_configure_args0 " in
2836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2837 esac
2839 -* ) ac_must_keep_next=true ;;
2840 esac
2842 as_fn_append ac_configure_args " '$ac_arg'"
2844 esac
2845 done
2846 done
2847 { ac_configure_args0=; unset ac_configure_args0;}
2848 { ac_configure_args1=; unset ac_configure_args1;}
2850 # When interrupted or exit'd, cleanup temporary files, and complete
2851 # config.log. We remove comments because anyway the quotes in there
2852 # would cause problems or look ugly.
2853 # WARNING: Use '\'' to represent an apostrophe within the trap.
2854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2855 trap 'exit_status=$?
2856 # Save into config.log some information that might help in debugging.
2858 echo
2860 $as_echo "## ---------------- ##
2861 ## Cache variables. ##
2862 ## ---------------- ##"
2863 echo
2864 # The following way of writing the cache mishandles newlines in values,
2866 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2867 eval ac_val=\$$ac_var
2868 case $ac_val in #(
2869 *${as_nl}*)
2870 case $ac_var in #(
2871 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2872 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2873 esac
2874 case $ac_var in #(
2875 _ | IFS | as_nl) ;; #(
2876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2877 *) { eval $ac_var=; unset $ac_var;} ;;
2878 esac ;;
2879 esac
2880 done
2881 (set) 2>&1 |
2882 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2883 *${as_nl}ac_space=\ *)
2884 sed -n \
2885 "s/'\''/'\''\\\\'\'''\''/g;
2886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2887 ;; #(
2889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2891 esac |
2892 sort
2894 echo
2896 $as_echo "## ----------------- ##
2897 ## Output variables. ##
2898 ## ----------------- ##"
2899 echo
2900 for ac_var in $ac_subst_vars
2902 eval ac_val=\$$ac_var
2903 case $ac_val in
2904 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2905 esac
2906 $as_echo "$ac_var='\''$ac_val'\''"
2907 done | sort
2908 echo
2910 if test -n "$ac_subst_files"; then
2911 $as_echo "## ------------------- ##
2912 ## File substitutions. ##
2913 ## ------------------- ##"
2914 echo
2915 for ac_var in $ac_subst_files
2917 eval ac_val=\$$ac_var
2918 case $ac_val in
2919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2920 esac
2921 $as_echo "$ac_var='\''$ac_val'\''"
2922 done | sort
2923 echo
2926 if test -s confdefs.h; then
2927 $as_echo "## ----------- ##
2928 ## confdefs.h. ##
2929 ## ----------- ##"
2930 echo
2931 cat confdefs.h
2932 echo
2934 test "$ac_signal" != 0 &&
2935 $as_echo "$as_me: caught signal $ac_signal"
2936 $as_echo "$as_me: exit $exit_status"
2937 } >&5
2938 rm -f core *.core core.conftest.* &&
2939 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2940 exit $exit_status
2942 for ac_signal in 1 2 13 15; do
2943 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2944 done
2945 ac_signal=0
2947 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2948 rm -f -r conftest* confdefs.h
2950 $as_echo "/* confdefs.h */" > confdefs.h
2952 # Predefined preprocessor variables.
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE_NAME "$PACKAGE_NAME"
2956 _ACEOF
2958 cat >>confdefs.h <<_ACEOF
2959 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2960 _ACEOF
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2964 _ACEOF
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE_STRING "$PACKAGE_STRING"
2968 _ACEOF
2970 cat >>confdefs.h <<_ACEOF
2971 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2972 _ACEOF
2974 cat >>confdefs.h <<_ACEOF
2975 #define PACKAGE_URL "$PACKAGE_URL"
2976 _ACEOF
2979 # Let the site file select an alternate cache file if it wants to.
2980 # Prefer an explicitly selected file to automatically selected ones.
2981 ac_site_file1=NONE
2982 ac_site_file2=NONE
2983 if test -n "$CONFIG_SITE"; then
2984 # We do not want a PATH search for config.site.
2985 case $CONFIG_SITE in #((
2986 -*) ac_site_file1=./$CONFIG_SITE;;
2987 */*) ac_site_file1=$CONFIG_SITE;;
2988 *) ac_site_file1=./$CONFIG_SITE;;
2989 esac
2990 elif test "x$prefix" != xNONE; then
2991 ac_site_file1=$prefix/share/config.site
2992 ac_site_file2=$prefix/etc/config.site
2993 else
2994 ac_site_file1=$ac_default_prefix/share/config.site
2995 ac_site_file2=$ac_default_prefix/etc/config.site
2997 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2999 test "x$ac_site_file" = xNONE && continue
3000 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3002 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3003 sed 's/^/| /' "$ac_site_file" >&5
3004 . "$ac_site_file" \
3005 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 as_fn_error $? "failed to load site script $ac_site_file
3008 See \`config.log' for more details" "$LINENO" 5; }
3010 done
3012 if test -r "$cache_file"; then
3013 # Some versions of bash will fail to source /dev/null (special files
3014 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3015 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3017 $as_echo "$as_me: loading cache $cache_file" >&6;}
3018 case $cache_file in
3019 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3020 *) . "./$cache_file";;
3021 esac
3023 else
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3025 $as_echo "$as_me: creating cache $cache_file" >&6;}
3026 >$cache_file
3029 # Check that the precious variables saved in the cache have kept the same
3030 # value.
3031 ac_cache_corrupted=false
3032 for ac_var in $ac_precious_vars; do
3033 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3034 eval ac_new_set=\$ac_env_${ac_var}_set
3035 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3036 eval ac_new_val=\$ac_env_${ac_var}_value
3037 case $ac_old_set,$ac_new_set in
3038 set,)
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3040 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3041 ac_cache_corrupted=: ;;
3042 ,set)
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3044 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3045 ac_cache_corrupted=: ;;
3046 ,);;
3048 if test "x$ac_old_val" != "x$ac_new_val"; then
3049 # differences in whitespace do not lead to failure.
3050 ac_old_val_w=`echo x $ac_old_val`
3051 ac_new_val_w=`echo x $ac_new_val`
3052 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3054 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3055 ac_cache_corrupted=:
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3058 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3059 eval $ac_var=\$ac_old_val
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3062 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3064 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3065 fi;;
3066 esac
3067 # Pass precious variables to config.status.
3068 if test "$ac_new_set" = set; then
3069 case $ac_new_val in
3070 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3071 *) ac_arg=$ac_var=$ac_new_val ;;
3072 esac
3073 case " $ac_configure_args " in
3074 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3075 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3076 esac
3078 done
3079 if $ac_cache_corrupted; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3083 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3084 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3086 ## -------------------- ##
3087 ## Main body of script. ##
3088 ## -------------------- ##
3090 ac_ext=c
3091 ac_cpp='$CPP $CPPFLAGS'
3092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098 ac_config_headers="$ac_config_headers include/config.h"
3100 ac_aux_dir=
3101 for ac_dir in tools "$srcdir"/tools; do
3102 if test -f "$ac_dir/install-sh"; then
3103 ac_aux_dir=$ac_dir
3104 ac_install_sh="$ac_aux_dir/install-sh -c"
3105 break
3106 elif test -f "$ac_dir/install.sh"; then
3107 ac_aux_dir=$ac_dir
3108 ac_install_sh="$ac_aux_dir/install.sh -c"
3109 break
3110 elif test -f "$ac_dir/shtool"; then
3111 ac_aux_dir=$ac_dir
3112 ac_install_sh="$ac_aux_dir/shtool install -c"
3113 break
3115 done
3116 if test -z "$ac_aux_dir"; then
3117 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3120 # These three variables are undocumented and unsupported,
3121 # and are intended to be withdrawn in a future Autoconf release.
3122 # They can cause serious problems if a builder's source tree is in a directory
3123 # whose full name contains unusual characters.
3124 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3125 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3126 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3130 libwine_version="1.0"
3134 # Check whether --enable-win16 was given.
3135 if test "${enable_win16+set}" = set; then :
3136 enableval=$enable_win16;
3139 # Check whether --enable-win64 was given.
3140 if test "${enable_win64+set}" = set; then :
3141 enableval=$enable_win64;
3144 # Check whether --enable-tests was given.
3145 if test "${enable_tests+set}" = set; then :
3146 enableval=$enable_tests;
3149 # Check whether --enable-maintainer-mode was given.
3150 if test "${enable_maintainer_mode+set}" = set; then :
3151 enableval=$enable_maintainer_mode;
3156 # Check whether --with-alsa was given.
3157 if test "${with_alsa+set}" = set; then :
3158 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
3162 # Check whether --with-capi was given.
3163 if test "${with_capi+set}" = set; then :
3164 withval=$with_capi;
3168 # Check whether --with-cms was given.
3169 if test "${with_cms+set}" = set; then :
3170 withval=$with_cms;
3174 # Check whether --with-coreaudio was given.
3175 if test "${with_coreaudio+set}" = set; then :
3176 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
3180 # Check whether --with-cups was given.
3181 if test "${with_cups+set}" = set; then :
3182 withval=$with_cups;
3186 # Check whether --with-curses was given.
3187 if test "${with_curses+set}" = set; then :
3188 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
3192 # Check whether --with-dbus was given.
3193 if test "${with_dbus+set}" = set; then :
3194 withval=$with_dbus;
3198 # Check whether --with-fontconfig was given.
3199 if test "${with_fontconfig+set}" = set; then :
3200 withval=$with_fontconfig;
3204 # Check whether --with-freetype was given.
3205 if test "${with_freetype+set}" = set; then :
3206 withval=$with_freetype;
3210 # Check whether --with-gettext was given.
3211 if test "${with_gettext+set}" = set; then :
3212 withval=$with_gettext;
3216 # Check whether --with-gettextpo was given.
3217 if test "${with_gettextpo+set}" = set; then :
3218 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
3222 # Check whether --with-gphoto was given.
3223 if test "${with_gphoto+set}" = set; then :
3224 withval=$with_gphoto;
3228 # Check whether --with-glu was given.
3229 if test "${with_glu+set}" = set; then :
3230 withval=$with_glu;
3234 # Check whether --with-gnutls was given.
3235 if test "${with_gnutls+set}" = set; then :
3236 withval=$with_gnutls;
3240 # Check whether --with-gsm was given.
3241 if test "${with_gsm+set}" = set; then :
3242 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
3246 # Check whether --with-gstreamer was given.
3247 if test "${with_gstreamer+set}" = set; then :
3248 withval=$with_gstreamer;
3252 # Check whether --with-hal was given.
3253 if test "${with_hal+set}" = set; then :
3254 withval=$with_hal;
3258 # Check whether --with-jpeg was given.
3259 if test "${with_jpeg+set}" = set; then :
3260 withval=$with_jpeg;
3264 # Check whether --with-ldap was given.
3265 if test "${with_ldap+set}" = set; then :
3266 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
3270 # Check whether --with-mpg123 was given.
3271 if test "${with_mpg123+set}" = set; then :
3272 withval=$with_mpg123;
3276 # Check whether --with-netapi was given.
3277 if test "${with_netapi+set}" = set; then :
3278 withval=$with_netapi;
3282 # Check whether --with-openal was given.
3283 if test "${with_openal+set}" = set; then :
3284 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
3288 # Check whether --with-opencl was given.
3289 if test "${with_opencl+set}" = set; then :
3290 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
3294 # Check whether --with-opengl was given.
3295 if test "${with_opengl+set}" = set; then :
3296 withval=$with_opengl;
3300 # Check whether --with-osmesa was given.
3301 if test "${with_osmesa+set}" = set; then :
3302 withval=$with_osmesa;
3306 # Check whether --with-oss was given.
3307 if test "${with_oss+set}" = set; then :
3308 withval=$with_oss;
3312 # Check whether --with-png was given.
3313 if test "${with_png+set}" = set; then :
3314 withval=$with_png;
3318 # Check whether --with-pthread was given.
3319 if test "${with_pthread+set}" = set; then :
3320 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
3324 # Check whether --with-sane was given.
3325 if test "${with_sane+set}" = set; then :
3326 withval=$with_sane;
3330 # Check whether --with-tiff was given.
3331 if test "${with_tiff+set}" = set; then :
3332 withval=$with_tiff;
3336 # Check whether --with-v4l was given.
3337 if test "${with_v4l+set}" = set; then :
3338 withval=$with_v4l;
3342 # Check whether --with-xcomposite was given.
3343 if test "${with_xcomposite+set}" = set; then :
3344 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
3348 # Check whether --with-xcursor was given.
3349 if test "${with_xcursor+set}" = set; then :
3350 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
3354 # Check whether --with-xinerama was given.
3355 if test "${with_xinerama+set}" = set; then :
3356 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
3360 # Check whether --with-xinput was given.
3361 if test "${with_xinput+set}" = set; then :
3362 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
3366 # Check whether --with-xinput2 was given.
3367 if test "${with_xinput2+set}" = set; then :
3368 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
3372 # Check whether --with-xml was given.
3373 if test "${with_xml+set}" = set; then :
3374 withval=$with_xml;
3378 # Check whether --with-xrandr was given.
3379 if test "${with_xrandr+set}" = set; then :
3380 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
3384 # Check whether --with-xrender was given.
3385 if test "${with_xrender+set}" = set; then :
3386 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
3390 # Check whether --with-xshape was given.
3391 if test "${with_xshape+set}" = set; then :
3392 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
3396 # Check whether --with-xshm was given.
3397 if test "${with_xshm+set}" = set; then :
3398 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
3402 # Check whether --with-xslt was given.
3403 if test "${with_xslt+set}" = set; then :
3404 withval=$with_xslt;
3408 # Check whether --with-xxf86vm was given.
3409 if test "${with_xxf86vm+set}" = set; then :
3410 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
3414 # Check whether --with-zlib was given.
3415 if test "${with_zlib+set}" = set; then :
3416 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
3421 # Check whether --with-wine-tools was given.
3422 if test "${with_wine_tools+set}" = set; then :
3423 withval=$with_wine_tools;
3427 # Check whether --with-wine64 was given.
3428 if test "${with_wine64+set}" = set; then :
3429 withval=$with_wine64;
3433 # Make sure we can run config.sub.
3434 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3435 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3438 $as_echo_n "checking build system type... " >&6; }
3439 if ${ac_cv_build+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441 else
3442 ac_build_alias=$build_alias
3443 test "x$ac_build_alias" = x &&
3444 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3445 test "x$ac_build_alias" = x &&
3446 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3447 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3452 $as_echo "$ac_cv_build" >&6; }
3453 case $ac_cv_build in
3454 *-*-*) ;;
3455 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3456 esac
3457 build=$ac_cv_build
3458 ac_save_IFS=$IFS; IFS='-'
3459 set x $ac_cv_build
3460 shift
3461 build_cpu=$1
3462 build_vendor=$2
3463 shift; shift
3464 # Remember, the first character of IFS is used to create $*,
3465 # except with old shells:
3466 build_os=$*
3467 IFS=$ac_save_IFS
3468 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3472 $as_echo_n "checking host system type... " >&6; }
3473 if ${ac_cv_host+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test "x$host_alias" = x; then
3477 ac_cv_host=$ac_cv_build
3478 else
3479 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3480 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3485 $as_echo "$ac_cv_host" >&6; }
3486 case $ac_cv_host in
3487 *-*-*) ;;
3488 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3489 esac
3490 host=$ac_cv_host
3491 ac_save_IFS=$IFS; IFS='-'
3492 set x $ac_cv_host
3493 shift
3494 host_cpu=$1
3495 host_vendor=$2
3496 shift; shift
3497 # Remember, the first character of IFS is used to create $*,
3498 # except with old shells:
3499 host_os=$*
3500 IFS=$ac_save_IFS
3501 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3505 case "$srcdir" in
3506 .) ;;
3507 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
3508 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
3509 You need to run 'make distclean' in the source tree first." "$LINENO" 5
3510 fi ;;
3511 esac
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3515 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3516 set x ${MAKE-make}
3517 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3518 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 cat >conftest.make <<\_ACEOF
3522 SHELL = /bin/sh
3523 all:
3524 @echo '@@@%%%=$(MAKE)=@@@%%%'
3525 _ACEOF
3526 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3527 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3528 *@@@%%%=?*=@@@%%%*)
3529 eval ac_cv_prog_make_${ac_make}_set=yes;;
3531 eval ac_cv_prog_make_${ac_make}_set=no;;
3532 esac
3533 rm -f conftest.make
3535 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3537 $as_echo "yes" >&6; }
3538 SET_MAKE=
3539 else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3542 SET_MAKE="MAKE=${MAKE-make}"
3545 ac_ext=c
3546 ac_cpp='$CPP $CPPFLAGS'
3547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if ${ac_cv_prog_CC+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3572 done
3573 done
3574 IFS=$as_save_IFS
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3589 if test -z "$ac_cv_prog_CC"; then
3590 ac_ct_CC=$CC
3591 # Extract the first word of "gcc", so it can be a program name with args.
3592 set dummy gcc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="gcc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3612 done
3613 done
3614 IFS=$as_save_IFS
3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3621 $as_echo "$ac_ct_CC" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3627 if test "x$ac_ct_CC" = x; then
3628 CC=""
3629 else
3630 case $cross_compiling:$ac_tool_warned in
3631 yes:)
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3634 ac_tool_warned=yes ;;
3635 esac
3636 CC=$ac_ct_CC
3638 else
3639 CC="$ac_cv_prog_CC"
3642 if test -z "$CC"; then
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}cc; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if ${ac_cv_prog_CC+:} false; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3661 ac_cv_prog_CC="${ac_tool_prefix}cc"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3665 done
3666 done
3667 IFS=$as_save_IFS
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 # Extract the first word of "cc", so it can be a program name with args.
3685 set dummy cc; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if ${ac_cv_prog_CC+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 if test -n "$CC"; then
3692 ac_cv_prog_CC="$CC" # Let the user override the test.
3693 else
3694 ac_prog_rejected=no
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3703 ac_prog_rejected=yes
3704 continue
3706 ac_cv_prog_CC="cc"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3710 done
3711 done
3712 IFS=$as_save_IFS
3714 if test $ac_prog_rejected = yes; then
3715 # We found a bogon in the path, so make sure we never use it.
3716 set dummy $ac_cv_prog_CC
3717 shift
3718 if test $# != 0; then
3719 # We chose a different compiler from the bogus one.
3720 # However, it has the same basename, so the bogon will be chosen
3721 # first if we set CC to just the basename; use the full file name.
3722 shift
3723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3739 if test -z "$CC"; then
3740 if test -n "$ac_tool_prefix"; then
3741 for ac_prog in cl.exe
3743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_CC+:} false; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC="$CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 CC=$ac_cv_prog_CC
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3780 test -n "$CC" && break
3781 done
3783 if test -z "$CC"; then
3784 ac_ct_CC=$CC
3785 for ac_prog in cl.exe
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788 set dummy $ac_prog; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3804 ac_cv_prog_ac_ct_CC="$ac_prog"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3808 done
3809 done
3810 IFS=$as_save_IFS
3814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815 if test -n "$ac_ct_CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817 $as_echo "$ac_ct_CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3824 test -n "$ac_ct_CC" && break
3825 done
3827 if test "x$ac_ct_CC" = x; then
3828 CC=""
3829 else
3830 case $cross_compiling:$ac_tool_warned in
3831 yes:)
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3834 ac_tool_warned=yes ;;
3835 esac
3836 CC=$ac_ct_CC
3843 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error $? "no acceptable C compiler found in \$PATH
3846 See \`config.log' for more details" "$LINENO" 5; }
3848 # Provide some information about the compiler.
3849 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3850 set X $ac_compile
3851 ac_compiler=$2
3852 for ac_option in --version -v -V -qversion; do
3853 { { ac_try="$ac_compiler $ac_option >&5"
3854 case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3861 ac_status=$?
3862 if test -s conftest.err; then
3863 sed '10a\
3864 ... rest of stderr output deleted ...
3865 10q' conftest.err >conftest.er1
3866 cat conftest.er1 >&5
3868 rm -f conftest.er1 conftest.err
3869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870 test $ac_status = 0; }
3871 done
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3877 main ()
3881 return 0;
3883 _ACEOF
3884 ac_clean_files_save=$ac_clean_files
3885 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3886 # Try to create an executable without -o first, disregard a.out.
3887 # It will help us diagnose broken compilers, and finding out an intuition
3888 # of exeext.
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3890 $as_echo_n "checking whether the C compiler works... " >&6; }
3891 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3893 # The possible output files:
3894 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3896 ac_rmfiles=
3897 for ac_file in $ac_files
3899 case $ac_file in
3900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3901 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3902 esac
3903 done
3904 rm -f $ac_rmfiles
3906 if { { ac_try="$ac_link_default"
3907 case "(($ac_try" in
3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909 *) ac_try_echo=$ac_try;;
3910 esac
3911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912 $as_echo "$ac_try_echo"; } >&5
3913 (eval "$ac_link_default") 2>&5
3914 ac_status=$?
3915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916 test $ac_status = 0; }; then :
3917 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3918 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3919 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3920 # so that the user can short-circuit this test for compilers unknown to
3921 # Autoconf.
3922 for ac_file in $ac_files ''
3924 test -f "$ac_file" || continue
3925 case $ac_file in
3926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3928 [ab].out )
3929 # We found the default executable, but exeext='' is most
3930 # certainly right.
3931 break;;
3932 *.* )
3933 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3934 then :; else
3935 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3937 # We set ac_cv_exeext here because the later test for it is not
3938 # safe: cross compilers may not add the suffix if given an `-o'
3939 # argument, so we may need to know it at that point already.
3940 # Even if this section looks crufty: it has the advantage of
3941 # actually working.
3942 break;;
3944 break;;
3945 esac
3946 done
3947 test "$ac_cv_exeext" = no && ac_cv_exeext=
3949 else
3950 ac_file=''
3952 if test -z "$ac_file"; then :
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955 $as_echo "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3960 as_fn_error 77 "C compiler cannot create executables
3961 See \`config.log' for more details" "$LINENO" 5; }
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3964 $as_echo "yes" >&6; }
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3967 $as_echo_n "checking for C compiler default output file name... " >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3969 $as_echo "$ac_file" >&6; }
3970 ac_exeext=$ac_cv_exeext
3972 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3973 ac_clean_files=$ac_clean_files_save
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3975 $as_echo_n "checking for suffix of executables... " >&6; }
3976 if { { ac_try="$ac_link"
3977 case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980 esac
3981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982 $as_echo "$ac_try_echo"; } >&5
3983 (eval "$ac_link") 2>&5
3984 ac_status=$?
3985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986 test $ac_status = 0; }; then :
3987 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3988 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3989 # work properly (i.e., refer to `conftest.exe'), while it won't with
3990 # `rm'.
3991 for ac_file in conftest.exe conftest conftest.*; do
3992 test -f "$ac_file" || continue
3993 case $ac_file in
3994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3995 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3996 break;;
3997 * ) break;;
3998 esac
3999 done
4000 else
4001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4003 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4004 See \`config.log' for more details" "$LINENO" 5; }
4006 rm -f conftest conftest$ac_cv_exeext
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4008 $as_echo "$ac_cv_exeext" >&6; }
4010 rm -f conftest.$ac_ext
4011 EXEEXT=$ac_cv_exeext
4012 ac_exeext=$EXEEXT
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4015 #include <stdio.h>
4017 main ()
4019 FILE *f = fopen ("conftest.out", "w");
4020 return ferror (f) || fclose (f) != 0;
4023 return 0;
4025 _ACEOF
4026 ac_clean_files="$ac_clean_files conftest.out"
4027 # Check that the compiler produces executables we can run. If not, either
4028 # the compiler is broken, or we cross compile.
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4030 $as_echo_n "checking whether we are cross compiling... " >&6; }
4031 if test "$cross_compiling" != yes; then
4032 { { ac_try="$ac_link"
4033 case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036 esac
4037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039 (eval "$ac_link") 2>&5
4040 ac_status=$?
4041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042 test $ac_status = 0; }
4043 if { ac_try='./conftest$ac_cv_exeext'
4044 { { case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049 $as_echo "$ac_try_echo"; } >&5
4050 (eval "$ac_try") 2>&5
4051 ac_status=$?
4052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053 test $ac_status = 0; }; }; then
4054 cross_compiling=no
4055 else
4056 if test "$cross_compiling" = maybe; then
4057 cross_compiling=yes
4058 else
4059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061 as_fn_error $? "cannot run C compiled programs.
4062 If you meant to cross compile, use \`--host'.
4063 See \`config.log' for more details" "$LINENO" 5; }
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4068 $as_echo "$cross_compiling" >&6; }
4070 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4071 ac_clean_files=$ac_clean_files_save
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4073 $as_echo_n "checking for suffix of object files... " >&6; }
4074 if ${ac_cv_objext+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4081 main ()
4085 return 0;
4087 _ACEOF
4088 rm -f conftest.o conftest.obj
4089 if { { ac_try="$ac_compile"
4090 case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093 esac
4094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095 $as_echo "$ac_try_echo"; } >&5
4096 (eval "$ac_compile") 2>&5
4097 ac_status=$?
4098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4099 test $ac_status = 0; }; then :
4100 for ac_file in conftest.o conftest.obj conftest.*; do
4101 test -f "$ac_file" || continue;
4102 case $ac_file in
4103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4104 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4105 break;;
4106 esac
4107 done
4108 else
4109 $as_echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4114 as_fn_error $? "cannot compute suffix of object files: cannot compile
4115 See \`config.log' for more details" "$LINENO" 5; }
4117 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4120 $as_echo "$ac_cv_objext" >&6; }
4121 OBJEXT=$ac_cv_objext
4122 ac_objext=$OBJEXT
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4124 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4125 if ${ac_cv_c_compiler_gnu+:} false; then :
4126 $as_echo_n "(cached) " >&6
4127 else
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4132 main ()
4134 #ifndef __GNUC__
4135 choke me
4136 #endif
4139 return 0;
4141 _ACEOF
4142 if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_compiler_gnu=yes
4144 else
4145 ac_compiler_gnu=no
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4152 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4153 if test $ac_compiler_gnu = yes; then
4154 GCC=yes
4155 else
4156 GCC=
4158 ac_test_CFLAGS=${CFLAGS+set}
4159 ac_save_CFLAGS=$CFLAGS
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4161 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4162 if ${ac_cv_prog_cc_g+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164 else
4165 ac_save_c_werror_flag=$ac_c_werror_flag
4166 ac_c_werror_flag=yes
4167 ac_cv_prog_cc_g=no
4168 CFLAGS="-g"
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4173 main ()
4177 return 0;
4179 _ACEOF
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181 ac_cv_prog_cc_g=yes
4182 else
4183 CFLAGS=""
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4188 main ()
4192 return 0;
4194 _ACEOF
4195 if ac_fn_c_try_compile "$LINENO"; then :
4197 else
4198 ac_c_werror_flag=$ac_save_c_werror_flag
4199 CFLAGS="-g"
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4204 main ()
4208 return 0;
4210 _ACEOF
4211 if ac_fn_c_try_compile "$LINENO"; then :
4212 ac_cv_prog_cc_g=yes
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 ac_c_werror_flag=$ac_save_c_werror_flag
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4222 $as_echo "$ac_cv_prog_cc_g" >&6; }
4223 if test "$ac_test_CFLAGS" = set; then
4224 CFLAGS=$ac_save_CFLAGS
4225 elif test $ac_cv_prog_cc_g = yes; then
4226 if test "$GCC" = yes; then
4227 CFLAGS="-g -O2"
4228 else
4229 CFLAGS="-g"
4231 else
4232 if test "$GCC" = yes; then
4233 CFLAGS="-O2"
4234 else
4235 CFLAGS=
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4239 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4240 if ${ac_cv_prog_cc_c89+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 ac_cv_prog_cc_c89=no
4244 ac_save_CC=$CC
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247 #include <stdarg.h>
4248 #include <stdio.h>
4249 struct stat;
4250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4251 struct buf { int x; };
4252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4253 static char *e (p, i)
4254 char **p;
4255 int i;
4257 return p[i];
4259 static char *f (char * (*g) (char **, int), char **p, ...)
4261 char *s;
4262 va_list v;
4263 va_start (v,p);
4264 s = g (p, va_arg (v,int));
4265 va_end (v);
4266 return s;
4269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4270 function prototypes and stuff, but not '\xHH' hex character constants.
4271 These don't provoke an error unfortunately, instead are silently treated
4272 as 'x'. The following induces an error, until -std is added to get
4273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4274 array size at least. It's necessary to write '\x00'==0 to get something
4275 that's true only with -std. */
4276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4279 inside strings and character constants. */
4280 #define FOO(x) 'x'
4281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4283 int test (int i, double x);
4284 struct s1 {int (*f) (int a);};
4285 struct s2 {int (*f) (double a);};
4286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4287 int argc;
4288 char **argv;
4290 main ()
4292 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4294 return 0;
4296 _ACEOF
4297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4300 CC="$ac_save_CC $ac_arg"
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_prog_cc_c89=$ac_arg
4304 rm -f core conftest.err conftest.$ac_objext
4305 test "x$ac_cv_prog_cc_c89" != "xno" && break
4306 done
4307 rm -f conftest.$ac_ext
4308 CC=$ac_save_CC
4311 # AC_CACHE_VAL
4312 case "x$ac_cv_prog_cc_c89" in
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315 $as_echo "none needed" >&6; } ;;
4316 xno)
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318 $as_echo "unsupported" >&6; } ;;
4320 CC="$CC $ac_cv_prog_cc_c89"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4323 esac
4324 if test "x$ac_cv_prog_cc_c89" != xno; then :
4328 ac_ext=c
4329 ac_cpp='$CPP $CPPFLAGS'
4330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334 ac_ext=cpp
4335 ac_cpp='$CXXCPP $CPPFLAGS'
4336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4339 if test -z "$CXX"; then
4340 if test -n "$CCC"; then
4341 CXX=$CCC
4342 else
4343 if test -n "$ac_tool_prefix"; then
4344 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349 $as_echo_n "checking for $ac_word... " >&6; }
4350 if ${ac_cv_prog_CXX+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 if test -n "$CXX"; then
4354 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4355 else
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4363 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4367 done
4368 done
4369 IFS=$as_save_IFS
4373 CXX=$ac_cv_prog_CXX
4374 if test -n "$CXX"; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4376 $as_echo "$CXX" >&6; }
4377 else
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379 $as_echo "no" >&6; }
4383 test -n "$CXX" && break
4384 done
4386 if test -z "$CXX"; then
4387 ac_ct_CXX=$CXX
4388 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4390 # Extract the first word of "$ac_prog", so it can be a program name with args.
4391 set dummy $ac_prog; ac_word=$2
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4393 $as_echo_n "checking for $ac_word... " >&6; }
4394 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4395 $as_echo_n "(cached) " >&6
4396 else
4397 if test -n "$ac_ct_CXX"; then
4398 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407 ac_cv_prog_ac_ct_CXX="$ac_prog"
4408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4411 done
4412 done
4413 IFS=$as_save_IFS
4417 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4418 if test -n "$ac_ct_CXX"; then
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4420 $as_echo "$ac_ct_CXX" >&6; }
4421 else
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4423 $as_echo "no" >&6; }
4427 test -n "$ac_ct_CXX" && break
4428 done
4430 if test "x$ac_ct_CXX" = x; then
4431 CXX="g++"
4432 else
4433 case $cross_compiling:$ac_tool_warned in
4434 yes:)
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4437 ac_tool_warned=yes ;;
4438 esac
4439 CXX=$ac_ct_CXX
4445 # Provide some information about the compiler.
4446 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4447 set X $ac_compile
4448 ac_compiler=$2
4449 for ac_option in --version -v -V -qversion; do
4450 { { ac_try="$ac_compiler $ac_option >&5"
4451 case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454 esac
4455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4456 $as_echo "$ac_try_echo"; } >&5
4457 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4458 ac_status=$?
4459 if test -s conftest.err; then
4460 sed '10a\
4461 ... rest of stderr output deleted ...
4462 10q' conftest.err >conftest.er1
4463 cat conftest.er1 >&5
4465 rm -f conftest.er1 conftest.err
4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }
4468 done
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4471 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4472 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4479 main ()
4481 #ifndef __GNUC__
4482 choke me
4483 #endif
4486 return 0;
4488 _ACEOF
4489 if ac_fn_cxx_try_compile "$LINENO"; then :
4490 ac_compiler_gnu=yes
4491 else
4492 ac_compiler_gnu=no
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4499 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4500 if test $ac_compiler_gnu = yes; then
4501 GXX=yes
4502 else
4503 GXX=
4505 ac_test_CXXFLAGS=${CXXFLAGS+set}
4506 ac_save_CXXFLAGS=$CXXFLAGS
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4508 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4509 if ${ac_cv_prog_cxx_g+:} false; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4513 ac_cxx_werror_flag=yes
4514 ac_cv_prog_cxx_g=no
4515 CXXFLAGS="-g"
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4520 main ()
4524 return 0;
4526 _ACEOF
4527 if ac_fn_cxx_try_compile "$LINENO"; then :
4528 ac_cv_prog_cxx_g=yes
4529 else
4530 CXXFLAGS=""
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4535 main ()
4539 return 0;
4541 _ACEOF
4542 if ac_fn_cxx_try_compile "$LINENO"; then :
4544 else
4545 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4546 CXXFLAGS="-g"
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4551 main ()
4555 return 0;
4557 _ACEOF
4558 if ac_fn_cxx_try_compile "$LINENO"; then :
4559 ac_cv_prog_cxx_g=yes
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4569 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4570 if test "$ac_test_CXXFLAGS" = set; then
4571 CXXFLAGS=$ac_save_CXXFLAGS
4572 elif test $ac_cv_prog_cxx_g = yes; then
4573 if test "$GXX" = yes; then
4574 CXXFLAGS="-g -O2"
4575 else
4576 CXXFLAGS="-g"
4578 else
4579 if test "$GXX" = yes; then
4580 CXXFLAGS="-O2"
4581 else
4582 CXXFLAGS=
4585 ac_ext=c
4586 ac_cpp='$CPP $CPPFLAGS'
4587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591 if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if ${ac_cv_prog_CPPBIN+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if test -n "$CPPBIN"; then
4600 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4613 done
4614 done
4615 IFS=$as_save_IFS
4619 CPPBIN=$ac_cv_prog_CPPBIN
4620 if test -n "$CPPBIN"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4622 $as_echo "$CPPBIN" >&6; }
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4630 if test -z "$ac_cv_prog_CPPBIN"; then
4631 ac_ct_CPPBIN=$CPPBIN
4632 # Extract the first word of "cpp", so it can be a program name with args.
4633 set dummy cpp; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$ac_ct_CPPBIN"; then
4640 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_prog_ac_ct_CPPBIN="cpp"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4653 done
4654 done
4655 IFS=$as_save_IFS
4659 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4660 if test -n "$ac_ct_CPPBIN"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4662 $as_echo "$ac_ct_CPPBIN" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4668 if test "x$ac_ct_CPPBIN" = x; then
4669 CPPBIN="cpp"
4670 else
4671 case $cross_compiling:$ac_tool_warned in
4672 yes:)
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675 ac_tool_warned=yes ;;
4676 esac
4677 CPPBIN=$ac_ct_CPPBIN
4679 else
4680 CPPBIN="$ac_cv_prog_CPPBIN"
4684 cat >>confdefs.h <<_ACEOF
4685 #define EXEEXT "$ac_exeext"
4686 _ACEOF
4689 case $host in
4690 *-darwin*)
4691 if test "x$enable_win64" = "xyes"
4692 then
4693 CC="$CC -m64"
4694 CXX="$CXX -m64"
4695 host_cpu="x86_64"
4696 notice_platform="64-bit "
4697 TARGETFLAGS="-m64"
4699 else
4700 CC="$CC -m32"
4701 CXX="$CXX -m32"
4702 host_cpu="i386"
4703 notice_platform="32-bit "
4704 TARGETFLAGS="-m32"
4706 enable_win16=${enable_win16:-yes}
4708 with_fontconfig=${with_fontconfig:-no}
4710 x86_64*)
4711 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4712 then
4713 CC="$CC -m32"
4714 CXX="$CXX -m32"
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4716 $as_echo_n "checking whether $CC works... " >&6; }
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4722 main ()
4726 return 0;
4728 _ACEOF
4729 if ac_fn_c_try_link "$LINENO"; then :
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4731 $as_echo "yes" >&6; }
4732 else
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4735 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4737 rm -f core conftest.err conftest.$ac_objext \
4738 conftest$ac_exeext conftest.$ac_ext
4739 host_cpu="i386"
4740 notice_platform="32-bit "
4741 TARGETFLAGS="-m32"
4743 enable_win16=${enable_win16:-yes}
4744 else
4745 if test "x${GCC}" = "xyes"
4746 then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4748 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4751 #include <stdarg.h>
4753 main ()
4755 void func(__builtin_ms_va_list *args);
4757 return 0;
4759 _ACEOF
4760 if ac_fn_c_try_compile "$LINENO"; then :
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4762 $as_echo "yes" >&6; }
4763 else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4766 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 TARGETFLAGS="-m64"
4774 arm*)
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4776 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779 int ac_test(int i) { return i; }
4781 main ()
4783 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4785 return 0;
4787 _ACEOF
4788 if ac_fn_c_try_link "$LINENO"; then :
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4790 $as_echo "yes" >&6; }
4791 else
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4794 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4796 rm -f core conftest.err conftest.$ac_objext \
4797 conftest$ac_exeext conftest.$ac_ext
4798 CFLAGS="$CFLAGS -marm"
4800 *-mingw32*|*-cygwin*)
4801 enable_win16=${enable_win16:-no}
4802 CFLAGS="$CFLAGS -D_WIN32"
4804 i[3456789]86*)
4805 enable_win16=${enable_win16:-yes}
4807 esac
4809 enable_win16=${enable_win16:-no}
4810 enable_win64=${enable_win64:-no}
4812 enable_winetest=${enable_winetest:-$enable_tests}
4814 if test -n "$with_wine64"
4815 then
4816 if test "x$enable_win64" = "xyes"
4817 then
4818 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4819 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4821 enable_fonts=${enable_fonts:-no}
4822 enable_server=${enable_server:-no}
4823 elif test "x$enable_win64" = "xyes"
4824 then
4825 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4829 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4830 if ${wine_cv_toolsdir+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 wine_cv_toolsdir="$with_wine_tools"
4834 if test -z "$with_wine_tools"; then
4835 if test "$cross_compiling" = "yes"; then
4836 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4837 elif test -n "$with_wine64"; then
4838 wine_cv_toolsdir="$with_wine64"
4841 if test -z "$wine_cv_toolsdir"; then
4842 wine_cv_toolsdir="\$(top_builddir)"
4843 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4844 case "$wine_cv_toolsdir" in
4845 /*) ;;
4846 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4847 esac
4848 enable_tools=${enable_tools:-no}
4849 else
4850 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4854 $as_echo "$wine_cv_toolsdir" >&6; }
4855 TOOLSDIR=$wine_cv_toolsdir
4857 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4858 then
4859 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4863 for ac_prog in flex
4865 # Extract the first word of "$ac_prog", so it can be a program name with args.
4866 set dummy $ac_prog; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if ${ac_cv_prog_FLEX+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 if test -n "$FLEX"; then
4873 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_FLEX="$ac_prog"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4886 done
4887 done
4888 IFS=$as_save_IFS
4892 FLEX=$ac_cv_prog_FLEX
4893 if test -n "$FLEX"; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4895 $as_echo "$FLEX" >&6; }
4896 else
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4902 test -n "$FLEX" && break
4903 done
4904 test -n "$FLEX" || FLEX="none"
4906 if test "$FLEX" = "none"
4907 then
4908 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4911 $as_echo_n "checking whether flex is recent enough... " >&6; }
4912 cat >conftest.l <<EOF
4913 %top{
4914 #include "prediluvian.h"
4918 if $FLEX -t conftest.l >/dev/null 2>&5
4919 then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4921 $as_echo "yes" >&6; }
4922 else
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4925 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4928 for ac_prog in bison
4930 # Extract the first word of "$ac_prog", so it can be a program name with args.
4931 set dummy $ac_prog; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if ${ac_cv_prog_BISON+:} false; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 if test -n "$BISON"; then
4938 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4939 else
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 for as_dir in $PATH
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_prog_BISON="$ac_prog"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 break 2
4951 done
4952 done
4953 IFS=$as_save_IFS
4957 BISON=$ac_cv_prog_BISON
4958 if test -n "$BISON"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4960 $as_echo "$BISON" >&6; }
4961 else
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4967 test -n "$BISON" && break
4968 done
4969 test -n "$BISON" || BISON="none"
4971 if test "$BISON" = "none"
4972 then
4973 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4976 if test -n "$ac_tool_prefix"; then
4977 for ac_prog in ar gar
4979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_AR+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -n "$AR"; then
4987 ac_cv_prog_AR="$AR" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
5000 done
5001 done
5002 IFS=$as_save_IFS
5006 AR=$ac_cv_prog_AR
5007 if test -n "$AR"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5009 $as_echo "$AR" >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5016 test -n "$AR" && break
5017 done
5019 if test -z "$AR"; then
5020 ac_ct_AR=$AR
5021 for ac_prog in ar gar
5023 # Extract the first word of "$ac_prog", so it can be a program name with args.
5024 set dummy $ac_prog; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 if test -n "$ac_ct_AR"; then
5031 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040 ac_cv_prog_ac_ct_AR="$ac_prog"
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5044 done
5045 done
5046 IFS=$as_save_IFS
5050 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5051 if test -n "$ac_ct_AR"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5053 $as_echo "$ac_ct_AR" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5060 test -n "$ac_ct_AR" && break
5061 done
5063 if test "x$ac_ct_AR" = x; then
5064 AR="ar"
5065 else
5066 case $cross_compiling:$ac_tool_warned in
5067 yes:)
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5070 ac_tool_warned=yes ;;
5071 esac
5072 AR=$ac_ct_AR
5076 if test -n "$ac_tool_prefix"; then
5077 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5078 set dummy ${ac_tool_prefix}strip; ac_word=$2
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if ${ac_cv_prog_STRIP+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 if test -n "$STRIP"; then
5085 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5098 done
5099 done
5100 IFS=$as_save_IFS
5104 STRIP=$ac_cv_prog_STRIP
5105 if test -n "$STRIP"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5107 $as_echo "$STRIP" >&6; }
5108 else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5115 if test -z "$ac_cv_prog_STRIP"; then
5116 ac_ct_STRIP=$STRIP
5117 # Extract the first word of "strip", so it can be a program name with args.
5118 set dummy strip; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 if test -n "$ac_ct_STRIP"; then
5125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5134 ac_cv_prog_ac_ct_STRIP="strip"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5138 done
5139 done
5140 IFS=$as_save_IFS
5144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5145 if test -n "$ac_ct_STRIP"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5147 $as_echo "$ac_ct_STRIP" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5153 if test "x$ac_ct_STRIP" = x; then
5154 STRIP="strip"
5155 else
5156 case $cross_compiling:$ac_tool_warned in
5157 yes:)
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160 ac_tool_warned=yes ;;
5161 esac
5162 STRIP=$ac_ct_STRIP
5164 else
5165 STRIP="$ac_cv_prog_STRIP"
5168 ARFLAGS=rc
5170 if test -n "$ac_tool_prefix"; then
5171 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_prog_RANLIB+:} false; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if test -n "$RANLIB"; then
5179 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5180 else
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5192 done
5193 done
5194 IFS=$as_save_IFS
5198 RANLIB=$ac_cv_prog_RANLIB
5199 if test -n "$RANLIB"; then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5201 $as_echo "$RANLIB" >&6; }
5202 else
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204 $as_echo "no" >&6; }
5209 if test -z "$ac_cv_prog_RANLIB"; then
5210 ac_ct_RANLIB=$RANLIB
5211 # Extract the first word of "ranlib", so it can be a program name with args.
5212 set dummy ranlib; ac_word=$2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218 if test -n "$ac_ct_RANLIB"; then
5219 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_ac_ct_RANLIB="ranlib"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5232 done
5233 done
5234 IFS=$as_save_IFS
5238 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5239 if test -n "$ac_ct_RANLIB"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5241 $as_echo "$ac_ct_RANLIB" >&6; }
5242 else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5247 if test "x$ac_ct_RANLIB" = x; then
5248 RANLIB=":"
5249 else
5250 case $cross_compiling:$ac_tool_warned in
5251 yes:)
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5254 ac_tool_warned=yes ;;
5255 esac
5256 RANLIB=$ac_ct_RANLIB
5258 else
5259 RANLIB="$ac_cv_prog_RANLIB"
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5263 $as_echo_n "checking whether ln -s works... " >&6; }
5264 LN_S=$as_ln_s
5265 if test "$LN_S" = "ln -s"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5267 $as_echo "yes" >&6; }
5268 else
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5270 $as_echo "no, using $LN_S" >&6; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5274 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5275 if ${ac_cv_path_GREP+:} false; then :
5276 $as_echo_n "(cached) " >&6
5277 else
5278 if test -z "$GREP"; then
5279 ac_path_GREP_found=false
5280 # Loop through the user's path and test for each of PROGNAME-LIST
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5284 IFS=$as_save_IFS
5285 test -z "$as_dir" && as_dir=.
5286 for ac_prog in grep ggrep; do
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5289 as_fn_executable_p "$ac_path_GREP" || continue
5290 # Check for GNU ac_path_GREP and select it if it is found.
5291 # Check for GNU $ac_path_GREP
5292 case `"$ac_path_GREP" --version 2>&1` in
5293 *GNU*)
5294 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5296 ac_count=0
5297 $as_echo_n 0123456789 >"conftest.in"
5298 while :
5300 cat "conftest.in" "conftest.in" >"conftest.tmp"
5301 mv "conftest.tmp" "conftest.in"
5302 cp "conftest.in" "conftest.nl"
5303 $as_echo 'GREP' >> "conftest.nl"
5304 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5305 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5306 as_fn_arith $ac_count + 1 && ac_count=$as_val
5307 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5308 # Best one so far, save it but keep looking for a better one
5309 ac_cv_path_GREP="$ac_path_GREP"
5310 ac_path_GREP_max=$ac_count
5312 # 10*(2^10) chars as input seems more than enough
5313 test $ac_count -gt 10 && break
5314 done
5315 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5316 esac
5318 $ac_path_GREP_found && break 3
5319 done
5320 done
5321 done
5322 IFS=$as_save_IFS
5323 if test -z "$ac_cv_path_GREP"; then
5324 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5326 else
5327 ac_cv_path_GREP=$GREP
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5332 $as_echo "$ac_cv_path_GREP" >&6; }
5333 GREP="$ac_cv_path_GREP"
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5337 $as_echo_n "checking for egrep... " >&6; }
5338 if ${ac_cv_path_EGREP+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5342 then ac_cv_path_EGREP="$GREP -E"
5343 else
5344 if test -z "$EGREP"; then
5345 ac_path_EGREP_found=false
5346 # Loop through the user's path and test for each of PROGNAME-LIST
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_prog in egrep; do
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5355 as_fn_executable_p "$ac_path_EGREP" || continue
5356 # Check for GNU ac_path_EGREP and select it if it is found.
5357 # Check for GNU $ac_path_EGREP
5358 case `"$ac_path_EGREP" --version 2>&1` in
5359 *GNU*)
5360 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5362 ac_count=0
5363 $as_echo_n 0123456789 >"conftest.in"
5364 while :
5366 cat "conftest.in" "conftest.in" >"conftest.tmp"
5367 mv "conftest.tmp" "conftest.in"
5368 cp "conftest.in" "conftest.nl"
5369 $as_echo 'EGREP' >> "conftest.nl"
5370 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5372 as_fn_arith $ac_count + 1 && ac_count=$as_val
5373 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5374 # Best one so far, save it but keep looking for a better one
5375 ac_cv_path_EGREP="$ac_path_EGREP"
5376 ac_path_EGREP_max=$ac_count
5378 # 10*(2^10) chars as input seems more than enough
5379 test $ac_count -gt 10 && break
5380 done
5381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5382 esac
5384 $ac_path_EGREP_found && break 3
5385 done
5386 done
5387 done
5388 IFS=$as_save_IFS
5389 if test -z "$ac_cv_path_EGREP"; then
5390 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5392 else
5393 ac_cv_path_EGREP=$EGREP
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5399 $as_echo "$ac_cv_path_EGREP" >&6; }
5400 EGREP="$ac_cv_path_EGREP"
5403 # Extract the first word of "ldconfig", so it can be a program name with args.
5404 set dummy ldconfig; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if ${ac_cv_path_LDCONFIG+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 case $LDCONFIG in
5411 [\\/]* | ?:[\\/]*)
5412 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in /sbin /usr/sbin $PATH
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5426 done
5427 done
5428 IFS=$as_save_IFS
5430 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5432 esac
5434 LDCONFIG=$ac_cv_path_LDCONFIG
5435 if test -n "$LDCONFIG"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
5437 $as_echo "$LDCONFIG" >&6; }
5438 else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5444 for ac_prog in msgfmt
5446 # Extract the first word of "$ac_prog", so it can be a program name with args.
5447 set dummy $ac_prog; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_MSGFMT+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 if test -n "$MSGFMT"; then
5454 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_MSGFMT="$ac_prog"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5467 done
5468 done
5469 IFS=$as_save_IFS
5473 MSGFMT=$ac_cv_prog_MSGFMT
5474 if test -n "$MSGFMT"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5476 $as_echo "$MSGFMT" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5483 test -n "$MSGFMT" && break
5484 done
5485 test -n "$MSGFMT" || MSGFMT="false"
5487 if ${ac_tool_prefix+:} false; then :
5488 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5489 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; }
5492 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 if test -n "$PKG_CONFIG"; then
5496 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5497 else
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 break 2
5509 done
5510 done
5511 IFS=$as_save_IFS
5515 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5516 if test -n "$PKG_CONFIG"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5518 $as_echo "$PKG_CONFIG" >&6; }
5519 else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5526 if ${ac_cv_prog_PKG_CONFIG:+false} :; then :
5527 if test "x$cross_compiling" = xyes; then :
5529 else
5530 { ac_cv_prog_PKG_CONFIG=; unset ac_cv_prog_PKG_CONFIG;}
5531 # Extract the first word of "pkg-config", so it can be a program name with args.
5532 set dummy pkg-config; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$PKG_CONFIG"; then
5539 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_PKG_CONFIG="pkg-config"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5552 done
5553 done
5554 IFS=$as_save_IFS
5558 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5559 if test -n "$PKG_CONFIG"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5561 $as_echo "$PKG_CONFIG" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5569 else
5570 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5573 if test "x$enable_maintainer_mode" != "xyes"
5574 then
5575 FONTFORGE=""
5576 RSVG=""
5577 CONVERT=""
5578 ICOTOOL=""
5579 else
5580 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5581 for ac_prog in fontforge
5583 # Extract the first word of "$ac_prog", so it can be a program name with args.
5584 set dummy $ac_prog; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_FONTFORGE+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -n "$FONTFORGE"; then
5591 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600 ac_cv_prog_FONTFORGE="$ac_prog"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5604 done
5605 done
5606 IFS=$as_save_IFS
5610 FONTFORGE=$ac_cv_prog_FONTFORGE
5611 if test -n "$FONTFORGE"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5613 $as_echo "$FONTFORGE" >&6; }
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5620 test -n "$FONTFORGE" && break
5621 done
5622 test -n "$FONTFORGE" || FONTFORGE="false"
5624 for ac_prog in rsvg
5626 # Extract the first word of "$ac_prog", so it can be a program name with args.
5627 set dummy $ac_prog; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if ${ac_cv_prog_RSVG+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 if test -n "$RSVG"; then
5634 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5635 else
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5639 IFS=$as_save_IFS
5640 test -z "$as_dir" && as_dir=.
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5643 ac_cv_prog_RSVG="$ac_prog"
5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 break 2
5647 done
5648 done
5649 IFS=$as_save_IFS
5653 RSVG=$ac_cv_prog_RSVG
5654 if test -n "$RSVG"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5656 $as_echo "$RSVG" >&6; }
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5663 test -n "$RSVG" && break
5664 done
5665 test -n "$RSVG" || RSVG="false"
5667 for ac_prog in convert
5669 # Extract the first word of "$ac_prog", so it can be a program name with args.
5670 set dummy $ac_prog; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_prog_CONVERT+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 if test -n "$CONVERT"; then
5677 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5678 else
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 for as_dir in $PATH
5682 IFS=$as_save_IFS
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5686 ac_cv_prog_CONVERT="$ac_prog"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5688 break 2
5690 done
5691 done
5692 IFS=$as_save_IFS
5696 CONVERT=$ac_cv_prog_CONVERT
5697 if test -n "$CONVERT"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5699 $as_echo "$CONVERT" >&6; }
5700 else
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5706 test -n "$CONVERT" && break
5707 done
5708 test -n "$CONVERT" || CONVERT="false"
5710 for ac_prog in icotool
5712 # Extract the first word of "$ac_prog", so it can be a program name with args.
5713 set dummy $ac_prog; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if ${ac_cv_prog_ICOTOOL+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 if test -n "$ICOTOOL"; then
5720 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_ICOTOOL="$ac_prog"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5733 done
5734 done
5735 IFS=$as_save_IFS
5739 ICOTOOL=$ac_cv_prog_ICOTOOL
5740 if test -n "$ICOTOOL"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5742 $as_echo "$ICOTOOL" >&6; }
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5749 test -n "$ICOTOOL" && break
5750 done
5751 test -n "$ICOTOOL" || ICOTOOL="false"
5753 test "$FONTFORGE" != "false" || as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5
5754 test "$RSVG" != "false" || as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5
5756 if test "$CONVERT" = false
5757 then
5758 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5759 else
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5761 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5762 convert_version=`convert --version | head -n1`
5763 if test "x$convert_version" != "x"
5764 then
5765 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5766 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5767 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5768 then
5769 CONVERT=false
5772 if test "$CONVERT" = false
5773 then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5775 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5776 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5777 else
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5779 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5783 if test "$ICOTOOL" = false
5784 then
5785 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5788 $as_echo_n "checking for recent enough icotool... " >&6; }
5789 icotool_version=`icotool --version | head -n1`
5790 if test "x$icotool_version" != "x"
5791 then
5792 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5793 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5794 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5795 then
5796 ICOTOOL=false
5797 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5800 if test "$ICOTOOL" = false
5801 then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5803 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5804 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5805 else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5807 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5811 with_gettext=yes
5812 with_gettextpo=yes
5813 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5816 test "x$with_gettext" != xno || MSGFMT=false
5817 if test "$MSGFMT" != "false"
5818 then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5820 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5821 cat >conftest.po <<EOF
5822 # comment
5823 msgctxt "ctxt"
5824 msgid "id"
5825 msgstr "str"
5827 if $MSGFMT -o /dev/null conftest.po 2>&5
5828 then
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5830 $as_echo "yes" >&6; }
5831 else
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 MSGFMT=false
5837 if test "$MSGFMT" = false; then :
5838 case "x$with_gettext" in
5839 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5840 xno) ;;
5841 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5842 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5843 esac
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5848 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5849 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851 else
5852 ac_check_lib_save_LIBS=$LIBS
5853 LIBS="-li386 $LIBS"
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5857 /* Override any GCC internal prototype to avoid an error.
5858 Use char because int might match the return type of a GCC
5859 builtin and then its argument prototype would still apply. */
5860 #ifdef __cplusplus
5861 extern "C"
5862 #endif
5863 char i386_set_ldt ();
5865 main ()
5867 return i386_set_ldt ();
5869 return 0;
5871 _ACEOF
5872 if ac_fn_c_try_link "$LINENO"; then :
5873 ac_cv_lib_i386_i386_set_ldt=yes
5874 else
5875 ac_cv_lib_i386_i386_set_ldt=no
5877 rm -f core conftest.err conftest.$ac_objext \
5878 conftest$ac_exeext conftest.$ac_ext
5879 LIBS=$ac_check_lib_save_LIBS
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5882 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5883 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5884 cat >>confdefs.h <<_ACEOF
5885 #define HAVE_LIBI386 1
5886 _ACEOF
5888 LIBS="-li386 $LIBS"
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5893 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5894 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 ac_check_lib_save_LIBS=$LIBS
5898 LIBS="-lossaudio $LIBS"
5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5900 /* end confdefs.h. */
5902 /* Override any GCC internal prototype to avoid an error.
5903 Use char because int might match the return type of a GCC
5904 builtin and then its argument prototype would still apply. */
5905 #ifdef __cplusplus
5906 extern "C"
5907 #endif
5908 char _oss_ioctl ();
5910 main ()
5912 return _oss_ioctl ();
5914 return 0;
5916 _ACEOF
5917 if ac_fn_c_try_link "$LINENO"; then :
5918 ac_cv_lib_ossaudio__oss_ioctl=yes
5919 else
5920 ac_cv_lib_ossaudio__oss_ioctl=no
5922 rm -f core conftest.err conftest.$ac_objext \
5923 conftest$ac_exeext conftest.$ac_ext
5924 LIBS=$ac_check_lib_save_LIBS
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5927 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5928 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5929 cat >>confdefs.h <<_ACEOF
5930 #define HAVE_LIBOSSAUDIO 1
5931 _ACEOF
5933 LIBS="-lossaudio $LIBS"
5938 OPENGL_LIBS=""
5942 # Check whether --enable-largefile was given.
5943 if test "${enable_largefile+set}" = set; then :
5944 enableval=$enable_largefile;
5947 if test "$enable_largefile" != no; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5950 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5951 if ${ac_cv_sys_largefile_CC+:} false; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 ac_cv_sys_largefile_CC=no
5955 if test "$GCC" != yes; then
5956 ac_save_CC=$CC
5957 while :; do
5958 # IRIX 6.2 and later do not support large files by default,
5959 # so use the C compiler's -n32 option if that helps.
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5962 #include <sys/types.h>
5963 /* Check that off_t can represent 2**63 - 1 correctly.
5964 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5965 since some C++ compilers masquerading as C compilers
5966 incorrectly reject 9223372036854775807. */
5967 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5968 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5969 && LARGE_OFF_T % 2147483647 == 1)
5970 ? 1 : -1];
5972 main ()
5976 return 0;
5978 _ACEOF
5979 if ac_fn_c_try_compile "$LINENO"; then :
5980 break
5982 rm -f core conftest.err conftest.$ac_objext
5983 CC="$CC -n32"
5984 if ac_fn_c_try_compile "$LINENO"; then :
5985 ac_cv_sys_largefile_CC=' -n32'; break
5987 rm -f core conftest.err conftest.$ac_objext
5988 break
5989 done
5990 CC=$ac_save_CC
5991 rm -f conftest.$ac_ext
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5995 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5996 if test "$ac_cv_sys_largefile_CC" != no; then
5997 CC=$CC$ac_cv_sys_largefile_CC
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6001 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6002 if ${ac_cv_sys_file_offset_bits+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 while :; do
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6008 #include <sys/types.h>
6009 /* Check that off_t can represent 2**63 - 1 correctly.
6010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6011 since some C++ compilers masquerading as C compilers
6012 incorrectly reject 9223372036854775807. */
6013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6015 && LARGE_OFF_T % 2147483647 == 1)
6016 ? 1 : -1];
6018 main ()
6022 return 0;
6024 _ACEOF
6025 if ac_fn_c_try_compile "$LINENO"; then :
6026 ac_cv_sys_file_offset_bits=no; break
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 #define _FILE_OFFSET_BITS 64
6032 #include <sys/types.h>
6033 /* Check that off_t can represent 2**63 - 1 correctly.
6034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6035 since some C++ compilers masquerading as C compilers
6036 incorrectly reject 9223372036854775807. */
6037 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6039 && LARGE_OFF_T % 2147483647 == 1)
6040 ? 1 : -1];
6042 main ()
6046 return 0;
6048 _ACEOF
6049 if ac_fn_c_try_compile "$LINENO"; then :
6050 ac_cv_sys_file_offset_bits=64; break
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 ac_cv_sys_file_offset_bits=unknown
6054 break
6055 done
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6058 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6059 case $ac_cv_sys_file_offset_bits in #(
6060 no | unknown) ;;
6062 cat >>confdefs.h <<_ACEOF
6063 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6064 _ACEOF
6066 esac
6067 rm -rf conftest*
6068 if test $ac_cv_sys_file_offset_bits = unknown; then
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6070 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6071 if ${ac_cv_sys_large_files+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 while :; do
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6077 #include <sys/types.h>
6078 /* Check that off_t can represent 2**63 - 1 correctly.
6079 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6080 since some C++ compilers masquerading as C compilers
6081 incorrectly reject 9223372036854775807. */
6082 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6083 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6084 && LARGE_OFF_T % 2147483647 == 1)
6085 ? 1 : -1];
6087 main ()
6091 return 0;
6093 _ACEOF
6094 if ac_fn_c_try_compile "$LINENO"; then :
6095 ac_cv_sys_large_files=no; break
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100 #define _LARGE_FILES 1
6101 #include <sys/types.h>
6102 /* Check that off_t can represent 2**63 - 1 correctly.
6103 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6104 since some C++ compilers masquerading as C compilers
6105 incorrectly reject 9223372036854775807. */
6106 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6107 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6108 && LARGE_OFF_T % 2147483647 == 1)
6109 ? 1 : -1];
6111 main ()
6115 return 0;
6117 _ACEOF
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119 ac_cv_sys_large_files=1; break
6121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122 ac_cv_sys_large_files=unknown
6123 break
6124 done
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6127 $as_echo "$ac_cv_sys_large_files" >&6; }
6128 case $ac_cv_sys_large_files in #(
6129 no | unknown) ;;
6131 cat >>confdefs.h <<_ACEOF
6132 #define _LARGE_FILES $ac_cv_sys_large_files
6133 _ACEOF
6135 esac
6136 rm -rf conftest*
6143 ac_ext=c
6144 ac_cpp='$CPP $CPPFLAGS'
6145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6149 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6150 # On Suns, sometimes $CPP names a directory.
6151 if test -n "$CPP" && test -d "$CPP"; then
6152 CPP=
6154 if test -z "$CPP"; then
6155 if ${ac_cv_prog_CPP+:} false; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 # Double quotes because CPP needs to be expanded
6159 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6161 ac_preproc_ok=false
6162 for ac_c_preproc_warn_flag in '' yes
6164 # Use a header file that comes with gcc, so configuring glibc
6165 # with a fresh cross-compiler works.
6166 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6167 # <limits.h> exists even on freestanding compilers.
6168 # On the NeXT, cc -E runs the code through the compiler's parser,
6169 # not just through cpp. "Syntax error" is here to catch this case.
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h. */
6172 #ifdef __STDC__
6173 # include <limits.h>
6174 #else
6175 # include <assert.h>
6176 #endif
6177 Syntax error
6178 _ACEOF
6179 if ac_fn_c_try_cpp "$LINENO"; then :
6181 else
6182 # Broken: fails on valid input.
6183 continue
6185 rm -f conftest.err conftest.i conftest.$ac_ext
6187 # OK, works on sane cases. Now check whether nonexistent headers
6188 # can be detected and how.
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 #include <ac_nonexistent.h>
6192 _ACEOF
6193 if ac_fn_c_try_cpp "$LINENO"; then :
6194 # Broken: success on invalid input.
6195 continue
6196 else
6197 # Passes both tests.
6198 ac_preproc_ok=:
6199 break
6201 rm -f conftest.err conftest.i conftest.$ac_ext
6203 done
6204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6205 rm -f conftest.i conftest.err conftest.$ac_ext
6206 if $ac_preproc_ok; then :
6207 break
6210 done
6211 ac_cv_prog_CPP=$CPP
6214 CPP=$ac_cv_prog_CPP
6215 else
6216 ac_cv_prog_CPP=$CPP
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6219 $as_echo "$CPP" >&6; }
6220 ac_preproc_ok=false
6221 for ac_c_preproc_warn_flag in '' yes
6223 # Use a header file that comes with gcc, so configuring glibc
6224 # with a fresh cross-compiler works.
6225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226 # <limits.h> exists even on freestanding compilers.
6227 # On the NeXT, cc -E runs the code through the compiler's parser,
6228 # not just through cpp. "Syntax error" is here to catch this case.
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6231 #ifdef __STDC__
6232 # include <limits.h>
6233 #else
6234 # include <assert.h>
6235 #endif
6236 Syntax error
6237 _ACEOF
6238 if ac_fn_c_try_cpp "$LINENO"; then :
6240 else
6241 # Broken: fails on valid input.
6242 continue
6244 rm -f conftest.err conftest.i conftest.$ac_ext
6246 # OK, works on sane cases. Now check whether nonexistent headers
6247 # can be detected and how.
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 #include <ac_nonexistent.h>
6251 _ACEOF
6252 if ac_fn_c_try_cpp "$LINENO"; then :
6253 # Broken: success on invalid input.
6254 continue
6255 else
6256 # Passes both tests.
6257 ac_preproc_ok=:
6258 break
6260 rm -f conftest.err conftest.i conftest.$ac_ext
6262 done
6263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6264 rm -f conftest.i conftest.err conftest.$ac_ext
6265 if $ac_preproc_ok; then :
6267 else
6268 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6270 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6271 See \`config.log' for more details" "$LINENO" 5; }
6274 ac_ext=c
6275 ac_cpp='$CPP $CPPFLAGS'
6276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6282 $as_echo_n "checking for ANSI C header files... " >&6; }
6283 if ${ac_cv_header_stdc+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 #include <stdlib.h>
6289 #include <stdarg.h>
6290 #include <string.h>
6291 #include <float.h>
6294 main ()
6298 return 0;
6300 _ACEOF
6301 if ac_fn_c_try_compile "$LINENO"; then :
6302 ac_cv_header_stdc=yes
6303 else
6304 ac_cv_header_stdc=no
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308 if test $ac_cv_header_stdc = yes; then
6309 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312 #include <string.h>
6314 _ACEOF
6315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6316 $EGREP "memchr" >/dev/null 2>&1; then :
6318 else
6319 ac_cv_header_stdc=no
6321 rm -f conftest*
6325 if test $ac_cv_header_stdc = yes; then
6326 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6329 #include <stdlib.h>
6331 _ACEOF
6332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6333 $EGREP "free" >/dev/null 2>&1; then :
6335 else
6336 ac_cv_header_stdc=no
6338 rm -f conftest*
6342 if test $ac_cv_header_stdc = yes; then
6343 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6344 if test "$cross_compiling" = yes; then :
6346 else
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6349 #include <ctype.h>
6350 #include <stdlib.h>
6351 #if ((' ' & 0x0FF) == 0x020)
6352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6354 #else
6355 # define ISLOWER(c) \
6356 (('a' <= (c) && (c) <= 'i') \
6357 || ('j' <= (c) && (c) <= 'r') \
6358 || ('s' <= (c) && (c) <= 'z'))
6359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6360 #endif
6362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6364 main ()
6366 int i;
6367 for (i = 0; i < 256; i++)
6368 if (XOR (islower (i), ISLOWER (i))
6369 || toupper (i) != TOUPPER (i))
6370 return 2;
6371 return 0;
6373 _ACEOF
6374 if ac_fn_c_try_run "$LINENO"; then :
6376 else
6377 ac_cv_header_stdc=no
6379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6380 conftest.$ac_objext conftest.beam conftest.$ac_ext
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6386 $as_echo "$ac_cv_header_stdc" >&6; }
6387 if test $ac_cv_header_stdc = yes; then
6389 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6393 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6394 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6395 inttypes.h stdint.h unistd.h
6396 do :
6397 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6398 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6400 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6401 cat >>confdefs.h <<_ACEOF
6402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6403 _ACEOF
6407 done
6410 for ac_header in \
6411 AL/al.h \
6412 ApplicationServices/ApplicationServices.h \
6413 AudioToolbox/AudioConverter.h \
6414 AudioUnit/AudioUnit.h \
6415 AudioUnit/AudioComponent.h \
6416 CL/cl.h \
6417 Carbon/Carbon.h \
6418 CoreAudio/CoreAudio.h \
6419 CoreServices/CoreServices.h \
6420 DiskArbitration/DiskArbitration.h \
6421 IOKit/IOKitLib.h \
6422 IOKit/hid/IOHIDLib.h \
6423 OpenAL/al.h \
6424 OpenCL/opencl.h \
6425 QuickTime/ImageCompression.h \
6426 Security/Security.h \
6427 alias.h \
6428 alsa/asoundlib.h \
6429 arpa/inet.h \
6430 arpa/nameser.h \
6431 asm/types.h \
6432 asm/user.h \
6433 curses.h \
6434 direct.h \
6435 dirent.h \
6436 dlfcn.h \
6437 elf.h \
6438 float.h \
6439 fnmatch.h \
6440 getopt.h \
6441 gettext-po.h \
6442 grp.h \
6443 gsm.h \
6444 gsm/gsm.h \
6445 ieeefp.h \
6446 inet/mib2.h \
6447 io.h \
6448 kstat.h \
6449 lber.h \
6450 ldap.h \
6451 libproc.h \
6452 link.h \
6453 linux/cdrom.h \
6454 linux/compiler.h \
6455 linux/filter.h \
6456 linux/hdreg.h \
6457 linux/input.h \
6458 linux/ioctl.h \
6459 linux/joystick.h \
6460 linux/major.h \
6461 linux/param.h \
6462 linux/serial.h \
6463 linux/types.h \
6464 linux/ucdrom.h \
6465 lwp.h \
6466 mach-o/nlist.h \
6467 mach-o/loader.h \
6468 mach/mach.h \
6469 mach/machine.h \
6470 machine/cpu.h \
6471 machine/limits.h \
6472 machine/sysarch.h \
6473 mntent.h \
6474 ncurses.h \
6475 netdb.h \
6476 netinet/in.h \
6477 netinet/in_systm.h \
6478 netinet/tcp.h \
6479 netinet/tcp_fsm.h \
6480 poll.h \
6481 port.h \
6482 process.h \
6483 pthread.h \
6484 pwd.h \
6485 sched.h \
6486 scsi/scsi.h \
6487 scsi/scsi_ioctl.h \
6488 scsi/sg.h \
6489 stdbool.h \
6490 stdint.h \
6491 stropts.h \
6492 sys/asoundlib.h \
6493 sys/attr.h \
6494 sys/cdio.h \
6495 sys/elf32.h \
6496 sys/epoll.h \
6497 sys/event.h \
6498 sys/exec_elf.h \
6499 sys/filio.h \
6500 sys/inotify.h \
6501 sys/ioctl.h \
6502 sys/ipc.h \
6503 sys/limits.h \
6504 sys/link.h \
6505 sys/mman.h \
6506 sys/modem.h \
6507 sys/msg.h \
6508 sys/mtio.h \
6509 sys/param.h \
6510 sys/poll.h \
6511 sys/prctl.h \
6512 sys/protosw.h \
6513 sys/ptrace.h \
6514 sys/queue.h \
6515 sys/resource.h \
6516 sys/scsiio.h \
6517 sys/shm.h \
6518 sys/signal.h \
6519 sys/socket.h \
6520 sys/socketvar.h \
6521 sys/sockio.h \
6522 sys/statvfs.h \
6523 sys/strtio.h \
6524 sys/syscall.h \
6525 sys/tihdr.h \
6526 sys/time.h \
6527 sys/timeout.h \
6528 sys/times.h \
6529 sys/uio.h \
6530 sys/user.h \
6531 sys/utsname.h \
6532 sys/vm86.h \
6533 sys/wait.h \
6534 syscall.h \
6535 termios.h \
6536 unistd.h \
6537 utime.h \
6538 valgrind/memcheck.h \
6539 valgrind/valgrind.h \
6540 zlib.h
6542 do :
6543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6544 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6546 cat >>confdefs.h <<_ACEOF
6547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6548 _ACEOF
6552 done
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6555 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6556 if ${ac_cv_header_stat_broken+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 #include <sys/types.h>
6562 #include <sys/stat.h>
6564 #if defined S_ISBLK && defined S_IFDIR
6565 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6566 #endif
6568 #if defined S_ISBLK && defined S_IFCHR
6569 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6570 #endif
6572 #if defined S_ISLNK && defined S_IFREG
6573 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6574 #endif
6576 #if defined S_ISSOCK && defined S_IFREG
6577 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6578 #endif
6580 _ACEOF
6581 if ac_fn_c_try_compile "$LINENO"; then :
6582 ac_cv_header_stat_broken=no
6583 else
6584 ac_cv_header_stat_broken=yes
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6589 $as_echo "$ac_cv_header_stat_broken" >&6; }
6590 if test $ac_cv_header_stat_broken = yes; then
6592 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6598 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6599 do :
6600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6601 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6602 #ifdef HAVE_SYS_PARAM_H
6603 # include <sys/param.h>
6604 #endif
6606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6607 cat >>confdefs.h <<_ACEOF
6608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6609 _ACEOF
6613 done
6616 for ac_header in \
6617 netinet/ip.h \
6618 net/if.h \
6619 net/if_arp.h \
6620 net/if_dl.h \
6621 net/if_types.h \
6622 net/route.h \
6623 netinet/if_ether.h \
6624 netinet/if_inarp.h \
6625 netinet/in_pcb.h \
6626 netinet/ip_icmp.h \
6627 netinet/ip_var.h \
6628 netinet/udp.h \
6629 netipx/ipx.h \
6630 sys/un.h \
6632 do :
6633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6634 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6635 #ifdef HAVE_SYS_SOCKET_H
6636 # include <sys/socket.h>
6637 #endif
6638 #ifdef HAVE_SYS_SOCKETVAR_H
6639 # include <sys/socketvar.h>
6640 #endif
6641 #ifdef HAVE_NET_ROUTE_H
6642 # include <net/route.h>
6643 #endif
6644 #ifdef HAVE_NETINET_IN_H
6645 # include <netinet/in.h>
6646 #endif
6647 #ifdef HAVE_NETINET_IN_SYSTM_H
6648 # include <netinet/in_systm.h>
6649 #endif
6650 #ifdef HAVE_NET_IF_H
6651 # include <net/if.h>
6652 #endif
6653 #ifdef HAVE_NETINET_IP_H
6654 # include <netinet/ip.h>
6655 #endif
6657 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6658 cat >>confdefs.h <<_ACEOF
6659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6660 _ACEOF
6664 done
6667 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6668 do :
6669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6670 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6671 #ifdef HAVE_ALIAS_H
6672 # include <alias.h>
6673 #endif
6674 #ifdef HAVE_SYS_SOCKET_H
6675 # include <sys/socket.h>
6676 #endif
6677 #ifdef HAVE_SYS_SOCKETVAR_H
6678 # include <sys/socketvar.h>
6679 #endif
6680 #ifdef HAVE_SYS_TIMEOUT_H
6681 # include <sys/timeout.h>
6682 #endif
6683 #ifdef HAVE_NETINET_IN_H
6684 # include <netinet/in.h>
6685 #endif
6686 #ifdef HAVE_NETINET_IN_SYSTM_H
6687 # include <netinet/in_systm.h>
6688 #endif
6689 #ifdef HAVE_NETINET_IP_H
6690 # include <netinet/ip.h>
6691 #endif
6692 #ifdef HAVE_NETINET_IP_VAR_H
6693 # include <netinet/ip_var.h>
6694 #endif
6695 #ifdef HAVE_NETINET_IP_ICMP_H
6696 # include <netinet/ip_icmp.h>
6697 #endif
6698 #ifdef HAVE_NETINET_UDP_H
6699 # include <netinet/udp.h>
6700 #endif
6701 #ifdef HAVE_NETINET_TCP_H
6702 # include <netinet/tcp.h>
6703 #endif
6704 #ifdef HAVE_NETINET_TCP_TIMER_H
6705 #include <netinet/tcp_timer.h>
6706 #endif
6708 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6709 cat >>confdefs.h <<_ACEOF
6710 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6711 _ACEOF
6715 done
6718 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6719 do :
6720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6721 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6722 #ifdef HAVE_ASM_TYPES_H
6723 # include <asm/types.h>
6724 #endif
6725 #ifdef HAVE_SYS_SOCKET_H
6726 # include <sys/socket.h>
6727 #endif
6728 #ifdef HAVE_LINUX_TYPES_H
6729 # include <linux/types.h>
6730 #endif
6732 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6733 cat >>confdefs.h <<_ACEOF
6734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6735 _ACEOF
6739 done
6742 for ac_header in mach-o/dyld_images.h
6743 do :
6744 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6745 # include <stdbool.h>
6746 #endif
6747 #ifdef HAVE_STDINT_H
6748 # include <stdint.h>
6749 #endif
6751 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6752 cat >>confdefs.h <<_ACEOF
6753 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6754 _ACEOF
6758 done
6761 for ac_header in resolv.h
6762 do :
6763 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6764 #ifdef HAVE_SYS_SOCKET_H
6765 # include <sys/socket.h>
6766 #endif
6767 #ifdef HAVE_NETINET_IN_H
6768 # include <netinet/in.h>
6769 #endif
6770 #ifdef HAVE_ARPA_NAMESER_H
6771 # include <arpa/nameser.h>
6772 #endif
6774 if test "x$ac_cv_header_resolv_h" = xyes; then :
6775 cat >>confdefs.h <<_ACEOF
6776 #define HAVE_RESOLV_H 1
6777 _ACEOF
6781 done
6784 for ac_header in ifaddrs.h
6785 do :
6786 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6788 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6789 cat >>confdefs.h <<_ACEOF
6790 #define HAVE_IFADDRS_H 1
6791 _ACEOF
6795 done
6798 for ac_header in ucontext.h
6799 do :
6800 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6802 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6803 cat >>confdefs.h <<_ACEOF
6804 #define HAVE_UCONTEXT_H 1
6805 _ACEOF
6809 done
6812 for ac_header in sys/thr.h
6813 do :
6814 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6815 #ifdef HAVE_UCONTEXT_H
6816 #include <ucontext.h>
6817 #endif
6819 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6820 cat >>confdefs.h <<_ACEOF
6821 #define HAVE_SYS_THR_H 1
6822 _ACEOF
6826 done
6829 for ac_header in pthread_np.h
6830 do :
6831 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6832 #include <pthread.h>
6833 #endif
6835 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6836 cat >>confdefs.h <<_ACEOF
6837 #define HAVE_PTHREAD_NP_H 1
6838 _ACEOF
6842 done
6845 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6846 do :
6847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6848 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6849 #include <sys/time.h>
6850 #endif
6851 #include <sys/types.h>
6852 #ifdef HAVE_ASM_TYPES_H
6853 #include <asm/types.h>
6854 #endif
6856 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6857 cat >>confdefs.h <<_ACEOF
6858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6859 _ACEOF
6863 done
6866 for ac_header in libprocstat.h
6867 do :
6868 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
6869 #include <sys/param.h>
6870 #endif
6871 #ifdef HAVE_SYS_QUEUE_H
6872 #include <sys/queue.h>
6873 #endif
6874 #ifdef HAVE_SYS_SOCKET_H
6875 #include <sys/socket.h>
6876 #endif
6878 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
6879 cat >>confdefs.h <<_ACEOF
6880 #define HAVE_LIBPROCSTAT_H 1
6881 _ACEOF
6885 done
6889 dlldir="\${libdir}/wine"
6891 DLLPREFIX=""
6893 DLLFLAGS="-D_REENTRANT"
6895 LDRPATH_INSTALL=""
6897 LDRPATH_LOCAL=""
6899 LIBEXT="so"
6900 DLLEXT=".so"
6901 IMPLIBEXT="def"
6902 STATIC_IMPLIBEXT="def.a"
6903 # Extract the first word of "ldd", so it can be a program name with args.
6904 set dummy ldd; ac_word=$2
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if ${ac_cv_path_LDD+:} false; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 case $LDD in
6911 [\\/]* | ?:[\\/]*)
6912 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 as_dummy="/sbin:/usr/sbin:$PATH"
6917 for as_dir in $as_dummy
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6923 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6927 done
6928 done
6929 IFS=$as_save_IFS
6931 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6933 esac
6935 LDD=$ac_cv_path_LDD
6936 if test -n "$LDD"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6938 $as_echo "$LDD" >&6; }
6939 else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6945 if test -n "$ac_tool_prefix"; then
6946 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6947 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6949 $as_echo_n "checking for $ac_word... " >&6; }
6950 if ${ac_cv_prog_READELF+:} false; then :
6951 $as_echo_n "(cached) " >&6
6952 else
6953 if test -n "$READELF"; then
6954 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6955 else
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6959 IFS=$as_save_IFS
6960 test -z "$as_dir" && as_dir=.
6961 for ac_exec_ext in '' $ac_executable_extensions; do
6962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6965 break 2
6967 done
6968 done
6969 IFS=$as_save_IFS
6973 READELF=$ac_cv_prog_READELF
6974 if test -n "$READELF"; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6976 $as_echo "$READELF" >&6; }
6977 else
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6984 if test -z "$ac_cv_prog_READELF"; then
6985 ac_ct_READELF=$READELF
6986 # Extract the first word of "readelf", so it can be a program name with args.
6987 set dummy readelf; ac_word=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 if test -n "$ac_ct_READELF"; then
6994 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6995 else
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003 ac_cv_prog_ac_ct_READELF="readelf"
7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7007 done
7008 done
7009 IFS=$as_save_IFS
7013 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
7014 if test -n "$ac_ct_READELF"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
7016 $as_echo "$ac_ct_READELF" >&6; }
7017 else
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7022 if test "x$ac_ct_READELF" = x; then
7023 READELF="true"
7024 else
7025 case $cross_compiling:$ac_tool_warned in
7026 yes:)
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7029 ac_tool_warned=yes ;;
7030 esac
7031 READELF=$ac_ct_READELF
7033 else
7034 READELF="$ac_cv_prog_READELF"
7037 wine_rules_file=conf$$rules.make
7038 rm -f $wine_rules_file
7039 ALL_POT_FILES=""
7040 GITIGNORE="# Automatically generated by configure; DO NOT EDIT!!"
7041 ALL_TEST_RESOURCES=""
7044 wine_fn_append_file ()
7046 as_fn_append $1 " \\$as_nl $2"
7049 wine_fn_ignore_file ()
7051 case "$1" in
7052 */*) as_fn_append GITIGNORE "$as_nl$1" ;;
7053 \**) as_fn_append GITIGNORE "$as_nl$1" ;;
7054 *) as_fn_append GITIGNORE "$as_nl/$1" ;;
7055 esac
7058 wine_fn_append_rule ()
7060 $as_echo "$1" >>$wine_rules_file
7063 wine_fn_has_flag ()
7065 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
7068 wine_fn_depend_rules ()
7070 wine_fn_append_rule \
7071 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
7072 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir
7073 depend: $ac_dir/depend
7074 .PHONY: $ac_dir/depend
7075 $ac_dir/depend: \$(MAKEDEP) dummy
7076 @./config.status --file $ac_dir/Makefile:Make.vars.in:$ac_dir/Makefile.in && \$(MAKEDEP) $ac_dir"
7079 wine_fn_pot_rules ()
7081 test "x$with_gettextpo" = xyes || return
7083 if wine_fn_has_flag mc
7084 then
7085 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
7086 wine_fn_append_rule \
7087 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
7088 @cd $ac_dir && \$(MAKE) msg.pot
7089 $ac_dir/msg.pot: tools/wmc include"
7091 if wine_fn_has_flag po
7092 then
7093 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
7094 wine_fn_append_rule \
7095 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
7096 @cd $ac_dir && \$(MAKE) rsrc.pot
7097 $ac_dir/rsrc.pot: tools/wrc include"
7101 wine_fn_all_rules ()
7103 wine_fn_depend_rules
7104 wine_fn_append_rule \
7105 "all: $ac_dir
7106 .PHONY: $ac_dir
7107 $ac_dir: $ac_dir/Makefile dummy
7108 @cd $ac_dir && \$(MAKE)"
7111 wine_fn_install_rules ()
7113 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
7115 wine_fn_append_rule \
7116 ".PHONY: $ac_dir/install $ac_dir/uninstall
7117 $ac_dir/install:: $ac_dir
7118 @cd $ac_dir && \$(MAKE) install
7119 $ac_dir/uninstall:: $ac_dir/Makefile
7120 @cd $ac_dir && \$(MAKE) uninstall
7121 install:: $ac_dir/install
7122 __uninstall__: $ac_dir/uninstall"
7124 if wine_fn_has_flag install-lib
7125 then
7126 wine_fn_append_rule \
7127 ".PHONY: $ac_dir/install-lib
7128 $ac_dir/install-lib:: $ac_dir
7129 @cd $ac_dir && \$(MAKE) install-lib
7130 install-lib:: $ac_dir/install-lib"
7133 if wine_fn_has_flag install-dev
7134 then
7135 wine_fn_append_rule \
7136 ".PHONY: $ac_dir/install-dev
7137 $ac_dir/install-dev:: $ac_dir
7138 @cd $ac_dir && \$(MAKE) install-dev
7139 install-dev:: $ac_dir/install-dev"
7143 wine_fn_clean_rules ()
7145 ac_clean=$@
7146 ac_extraclean="$ac_dir/Makefile"
7147 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7148 case $ac_dir in
7149 */tests) ac_extraclean="$ac_extraclean $ac_dir/testlist.c" ;;
7150 esac
7152 if wine_fn_has_flag clean
7153 then
7154 wine_fn_append_rule \
7155 "__clean__: $ac_dir/clean
7156 .PHONY: $ac_dir/clean
7157 $ac_dir/clean: $ac_dir/Makefile
7158 @cd $ac_dir && \$(MAKE) clean
7159 \$(RM) $ac_extraclean"
7160 else
7161 wine_fn_append_rule \
7162 "__clean__: $ac_dir/clean
7163 .PHONY: $ac_dir/clean
7164 $ac_dir/clean: dummy
7165 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7169 wine_fn_disabled_rules ()
7171 ac_clean=$@
7172 ac_extraclean="$ac_dir/Makefile"
7173 test "$srcdir" = . && ac_extraclean="$ac_extraclean $ac_dir/.gitignore"
7175 wine_fn_append_rule \
7176 "__clean__: $ac_dir/clean
7177 .PHONY: $ac_dir/clean
7178 $ac_dir/clean: dummy
7179 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_extraclean"
7182 wine_fn_config_makefile ()
7184 ac_dir=$1
7185 ac_enable=$2
7186 ac_flags=$3
7188 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7189 wine_fn_disabled_rules; return
7191 wine_fn_all_rules
7192 wine_fn_install_rules
7193 wine_fn_clean_rules
7196 wine_fn_config_lib ()
7198 ac_name=$1
7199 ac_flags=$2
7200 ac_dir=dlls/$ac_name
7201 ac_deps="include"
7203 if test "x$enable_tools" = xno; then :
7205 else
7206 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7208 wine_fn_all_rules
7209 wine_fn_clean_rules
7211 wine_fn_append_rule \
7212 ".PHONY: $ac_dir/install $ac_dir/uninstall
7213 $ac_dir/install:: $ac_dir
7214 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7215 $ac_dir/uninstall::
7216 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
7217 install install-dev:: $ac_dir/install
7218 __uninstall__: $ac_dir/uninstall
7219 __builddeps__: $ac_dir
7220 $ac_dir: $ac_deps"
7223 wine_fn_config_dll ()
7225 ac_name=$1
7226 ac_dir=dlls/$ac_name
7227 ac_enable=$2
7228 ac_flags=$3
7229 ac_implib=${4:-$ac_name}
7230 ac_file=$ac_dir/lib$ac_implib
7231 ac_dll=$ac_name
7232 ac_deps="include"
7233 ac_implibflags=""
7235 if test "x$enable_tools" = xno; then :
7237 else
7238 ac_deps="tools/widl tools/winebuild tools/winegcc $ac_deps"
7240 case $ac_name in
7241 *16) ac_implibflags=" -m16" ;;
7242 *.*) ;;
7243 *) ac_dll=$ac_dll.dll ;;
7244 esac
7246 ac_clean=
7247 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
7248 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7249 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7250 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
7252 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7253 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
7254 then
7255 wine_fn_depend_rules
7256 wine_fn_clean_rules $ac_clean
7257 else
7258 wine_fn_disabled_rules $ac_clean
7259 return
7261 else
7262 wine_fn_all_rules
7263 wine_fn_clean_rules $ac_clean
7264 wine_fn_append_rule \
7265 "$ac_dir: __builddeps__
7266 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
7267 @cd $ac_dir && \$(MAKE) \$@
7268 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
7269 install install-lib:: $ac_dir/install-lib
7270 __uninstall__: $ac_dir/uninstall"
7271 if test -n "$DLLEXT"
7272 then
7273 wine_fn_append_rule \
7274 "$ac_dir/install-lib:: $ac_dir
7275 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
7276 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
7277 $ac_dir/uninstall::
7278 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
7279 else
7280 wine_fn_append_rule \
7281 "$ac_dir/install-lib:: $ac_dir
7282 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
7283 $ac_dir/uninstall::
7284 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
7287 wine_fn_pot_rules
7290 if wine_fn_has_flag staticimplib
7291 then
7292 wine_fn_append_rule \
7293 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
7294 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
7295 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7296 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7297 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
7298 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
7299 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7300 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7301 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7302 $ac_dir/uninstall::
7303 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7304 install install-dev:: $ac_dir/install-dev
7305 __uninstall__: $ac_dir/uninstall"
7307 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
7308 then
7309 wine_fn_append_rule \
7310 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT __builddeps__
7311 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
7312 $ac_dir/uninstall::
7313 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
7316 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7317 then
7318 wine_fn_append_rule \
7319 "__builddeps__: $ac_file.cross.a
7320 $ac_file.cross.a: $ac_dir/Makefile dummy
7321 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
7324 elif wine_fn_has_flag implib
7325 then
7326 wine_fn_append_rule \
7327 "__builddeps__: $ac_file.$IMPLIBEXT
7328 $ac_file.def: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7329 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7330 $ac_file.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7331 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
7332 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
7333 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT
7334 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7335 $ac_dir/uninstall::
7336 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
7337 install install-dev:: $ac_dir/install-dev
7338 __uninstall__: $ac_dir/uninstall"
7339 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7340 then
7341 wine_fn_append_rule \
7342 "__builddeps__: $ac_file.cross.a
7343 $ac_file.cross.a: $srcdir/$ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
7344 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
7347 if test "$ac_name" != "$ac_implib"
7348 then
7349 wine_fn_append_rule \
7350 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
7351 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
7352 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
7353 clean::
7354 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
7355 wine_fn_ignore_file "dlls/lib$ac_implib.$IMPLIBEXT"
7356 if test -n "$CROSSTARGET" -a -z "$ac_implibflags"
7357 then
7358 wine_fn_append_rule \
7359 "__builddeps__: dlls/lib$ac_implib.cross.a
7360 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
7361 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
7362 clean::
7363 \$(RM) dlls/lib$ac_implib.cross.a"
7364 wine_fn_ignore_file "dlls/lib$ac_implib.cross.a"
7370 wine_fn_config_program ()
7372 ac_name=$1
7373 ac_dir=programs/$ac_name
7374 ac_enable=$2
7375 ac_flags=$3
7376 ac_program=$ac_name
7378 case $ac_name in
7379 *.*) ;;
7380 *) ac_program=$ac_program.exe ;;
7381 esac
7383 ac_clean=
7384 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
7385 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
7386 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
7387 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
7389 if eval test \"x\$"$ac_enable"\" = x"no"; then :
7390 wine_fn_disabled_rules $ac_clean; return
7393 wine_fn_all_rules
7394 wine_fn_clean_rules $ac_clean
7395 wine_fn_append_rule "$ac_dir: __builddeps__"
7396 wine_fn_pot_rules
7398 wine_fn_has_flag install || return
7399 wine_fn_append_rule \
7400 ".PHONY: $ac_dir/install $ac_dir/uninstall
7401 install install-lib:: $ac_dir/install
7402 __uninstall__: $ac_dir/uninstall"
7404 if test -n "$DLLEXT"
7405 then
7406 wine_fn_append_rule \
7407 "$ac_dir/install:: $ac_dir
7408 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
7409 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
7410 $ac_dir/uninstall::
7411 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
7413 if test -z "$with_wine64" && wine_fn_has_flag installbin
7414 then
7415 wine_fn_append_rule \
7416 "$ac_dir/install:: __tooldeps__
7417 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
7418 $ac_dir/uninstall::
7419 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
7421 else
7422 wine_fn_append_rule \
7423 "$ac_dir/install:: $ac_dir
7424 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
7425 $ac_dir/uninstall::
7426 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
7429 if test -z "$with_wine64" && wine_fn_has_flag manpage
7430 then
7431 wine_fn_append_rule \
7432 "$ac_dir/install:: $ac_dir
7433 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
7434 $ac_dir/uninstall::
7435 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
7439 wine_fn_config_test ()
7441 ac_dir=$1
7442 ac_name=$2
7443 ac_flags=$3
7445 ac_clean=
7446 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
7447 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
7449 if test "x$enable_tests" = xno; then :
7450 wine_fn_disabled_rules $ac_clean; return
7453 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
7454 wine_fn_all_rules
7455 wine_fn_clean_rules $ac_clean
7457 wine_fn_append_rule \
7458 "$ac_dir: programs/winetest/Makefile __builddeps__
7459 programs/winetest: $ac_dir
7460 check test: $ac_dir/test
7461 .PHONY: $ac_dir/test
7462 $ac_dir/test: dummy
7463 @cd $ac_dir && \$(MAKE) test
7464 testclean::
7465 \$(RM) $ac_dir/*.ok"
7467 if test -n "$CROSSTARGET"
7468 then
7469 wine_fn_append_rule \
7470 "crosstest: $ac_dir/crosstest
7471 .PHONY: $ac_dir/crosstest
7472 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
7473 @cd $ac_dir && \$(MAKE) crosstest"
7477 wine_fn_config_tool ()
7479 ac_dir=$1
7480 ac_flags=$2
7481 if test "x$enable_tools" = xno; then :
7482 return
7485 wine_fn_all_rules
7486 wine_fn_install_rules
7487 wine_fn_clean_rules
7489 wine_fn_append_rule "__tooldeps__: $ac_dir"
7490 wine_fn_append_rule "$ac_dir: libs/port"
7491 case $ac_dir in
7492 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
7493 esac
7496 wine_fn_config_symlink ()
7498 ac_linkdir=
7499 if test "x$1" = "x-d"
7500 then
7501 ac_linkdir=$2
7502 shift; shift
7504 ac_links=$@
7505 wine_fn_append_rule \
7506 "$ac_links:
7507 @./config.status \$@
7508 distclean::
7509 \$(RM) $ac_links"
7510 for f in $ac_links; do wine_fn_ignore_file $f; done
7511 test -n "$ac_linkdir" || return
7512 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
7515 wine_binary="wine"
7516 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7517 loader_programs="$wine_binary wine-installed"
7518 libwine_soversion=`expr $libwine_version : '\([0-9]*\)\..*'`
7520 LOADER_RULES="
7521 install install-lib:: wine-installed
7522 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7524 uninstall::
7525 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7529 case $host_os in
7530 cygwin*|mingw32*)
7531 if test -n "$ac_tool_prefix"; then
7532 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7533 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535 $as_echo_n "checking for $ac_word... " >&6; }
7536 if ${ac_cv_prog_DLLTOOL+:} false; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7539 if test -n "$DLLTOOL"; then
7540 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7541 else
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543 for as_dir in $PATH
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 break 2
7553 done
7554 done
7555 IFS=$as_save_IFS
7559 DLLTOOL=$ac_cv_prog_DLLTOOL
7560 if test -n "$DLLTOOL"; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7562 $as_echo "$DLLTOOL" >&6; }
7563 else
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7570 if test -z "$ac_cv_prog_DLLTOOL"; then
7571 ac_ct_DLLTOOL=$DLLTOOL
7572 # Extract the first word of "dlltool", so it can be a program name with args.
7573 set dummy dlltool; ac_word=$2
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575 $as_echo_n "checking for $ac_word... " >&6; }
7576 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7577 $as_echo_n "(cached) " >&6
7578 else
7579 if test -n "$ac_ct_DLLTOOL"; then
7580 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7581 else
7582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 for as_dir in $PATH
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7589 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 break 2
7593 done
7594 done
7595 IFS=$as_save_IFS
7599 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7600 if test -n "$ac_ct_DLLTOOL"; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7602 $as_echo "$ac_ct_DLLTOOL" >&6; }
7603 else
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605 $as_echo "no" >&6; }
7608 if test "x$ac_ct_DLLTOOL" = x; then
7609 DLLTOOL="false"
7610 else
7611 case $cross_compiling:$ac_tool_warned in
7612 yes:)
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7615 ac_tool_warned=yes ;;
7616 esac
7617 DLLTOOL=$ac_ct_DLLTOOL
7619 else
7620 DLLTOOL="$ac_cv_prog_DLLTOOL"
7623 LIBEXT="dll"
7624 DLLEXT=""
7625 IMPLIBEXT="a"
7626 STATIC_IMPLIBEXT="a"
7627 enable_iphlpapi=${enable_iphlpapi:-no}
7628 enable_kernel32=${enable_kernel32:-no}
7629 enable_msvcrt=${enable_msvcrt:-no}
7630 enable_ntdll=${enable_ntdll:-no}
7631 enable_ws2_32=${enable_ws2_32:-no}
7632 enable_loader=${enable_loader:-no}
7633 enable_server=${enable_server:-no}
7634 with_x=${with_x:-no}
7635 with_pthread=${with_pthread:-no}
7637 crtlibs=""
7638 case $host_os in
7639 mingw32*)
7640 crtlibs="-lmsvcrt"
7641 SOCKET_LIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7643 esac
7645 libwine_targets="libwine.dll libwine.a"
7646 LIBWINE_RULES="
7647 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7649 all: libwine.dll libwine.a
7651 libwine.a: \$(srcdir)/wine.def
7652 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7654 libwine.dll: \$(OBJS) \$(srcdir)/wine.def
7655 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7657 install install-lib:: libwine.dll
7658 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7660 install install-dev:: libwine.a
7661 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7663 uninstall::
7664 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7669 darwin*|macosx*)
7670 LIBEXT="dylib"
7671 DLLFLAGS="$DLLFLAGS -fPIC"
7672 LIBWINE_LDFLAGS="-multiply_defined suppress"
7673 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7674 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7675 COREFOUNDATION_LIBS="-framework CoreFoundation"
7677 IOKIT_LIBS="-framework IOKit -framework CoreFoundation"
7679 FORCEFEEDBACK_LIBS="-framework ForceFeedback -framework CoreFoundation"
7681 APPLICATIONSERVICES_LIBS="-framework ApplicationServices"
7683 CORESERVICES_LIBS="-framework CoreServices"
7685 APPKIT_LIBS="-framework AppKit"
7687 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7688 case $host_os in
7689 darwin11*) LDEXECFLAGS="-Wl,-macosx_version_min,10.6 $LDEXECFLAGS" ;;
7690 esac
7691 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7692 then
7693 DISKARBITRATION_LIBS="-framework DiskArbitration -framework CoreFoundation"
7696 if test "$ac_cv_header_Security_Security_h" = "yes"
7697 then
7698 SECURITY_LIBS="-framework Security -framework CoreFoundation"
7700 ac_save_LIBS="$LIBS"
7701 LIBS="$LIBS $SECURITY_LIBS"
7702 for ac_func in SSLCopyPeerCertificates
7703 do :
7704 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7705 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7706 cat >>confdefs.h <<_ACEOF
7707 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7708 _ACEOF
7711 done
7713 LIBS="$ac_save_LIBS"
7714 with_gnutls=${with_gnutls:-no}
7716 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7717 then
7718 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7719 then
7720 COREAUDIO_LIBS="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7722 else
7723 COREAUDIO_LIBS="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7726 ac_save_LIBS="$LIBS"
7727 LIBS="$LIBS $COREAUDIO_LIBS"
7728 for ac_func in AUGraphAddNode
7729 do :
7730 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7731 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7732 cat >>confdefs.h <<_ACEOF
7733 #define HAVE_AUGRAPHADDNODE 1
7734 _ACEOF
7737 done
7739 LIBS="$ac_save_LIBS"
7741 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7742 then
7743 OPENAL_LIBS="-framework OpenAL"
7746 cat >>confdefs.h <<_ACEOF
7747 #define HAVE_OPENAL 1
7748 _ACEOF
7750 ac_cv_lib_openal=yes
7752 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7753 then
7754 OPENCL_LIBS="-framework OpenCL"
7756 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7758 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7759 then
7760 ac_save_LIBS="$LIBS"
7761 LIBS="$LIBS $IOKIT_LIBS"
7762 for ac_func in IOHIDManagerCreate
7763 do :
7764 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7765 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7766 cat >>confdefs.h <<_ACEOF
7767 #define HAVE_IOHIDMANAGERCREATE 1
7768 _ACEOF
7771 done
7773 LIBS="$ac_save_LIBS"
7775 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7776 then
7777 QUICKTIME_LIBS="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
7779 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
7780 else
7781 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
7783 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
7784 then
7785 CARBON_LIBS="-framework Carbon"
7789 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
7790 then
7791 ac_save_LIBS="$LIBS"
7792 LIBS="$LIBS $APPLICATIONSERVICES_LIBS"
7793 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
7794 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
7795 enable_winemac_drv=${enable_winemac_drv:-yes}
7798 LIBS="$ac_save_LIBS"
7801 if test "x$enable_win16" = "xyes"
7802 then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
7804 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
7805 if test "$cross_compiling" = yes; then :
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
7807 $as_echo "cross-compiling, assuming yes" >&6; }
7808 else
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7811 asm(".text\n"
7812 "bad:\tnop;nop\n"
7813 "good:\tnop;nop\n\t"
7814 ".globl _testfunc\n"
7815 "_testfunc:\tcallw good");
7816 extern void testfunc();
7818 main ()
7820 unsigned short *p = (unsigned short *)testfunc;
7821 return p[0] != 0xe866 || p[1] != 0xfffa
7823 return 0;
7825 _ACEOF
7826 if ac_fn_c_try_run "$LINENO"; then :
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7828 $as_echo "yes" >&6; }
7829 else
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7832 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
7834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7835 conftest.$ac_objext conftest.beam conftest.$ac_ext
7840 libwine_targets="libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib"
7841 LIBWINE_RULES="
7842 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
7844 all: libwine.dylib
7846 libwine.$libwine_version.dylib: \$(OBJS)
7847 \$(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 \$@
7849 libwine.$libwine_soversion.dylib: libwine.$libwine_version.dylib
7850 \$(RM) \$@ && \$(LN_S) libwine.$libwine_version.dylib \$@
7852 libwine.dylib: libwine.$libwine_soversion.dylib
7853 \$(RM) \$@ && \$(LN_S) libwine.$libwine_soversion.dylib \$@
7855 install install-lib:: libwine.$libwine_version.dylib
7856 \$(INSTALL_PROGRAM) libwine.$libwine_version.dylib \$(DESTDIR)\$(libdir)/libwine.$libwine_version.dylib
7857 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.$libwine_soversion.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.$libwine_soversion.dylib
7859 install install-dev::
7860 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.$libwine_version.dylib libwine.dylib
7862 uninstall::
7863 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.$libwine_soversion.dylib libwine.$libwine_version.dylib
7867 as_fn_append LOADER_RULES "
7868 $wine_binary: main.o wine_info.plist
7869 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
7871 wine-installed: main.o wine_info.plist
7872 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
7876 linux-android*)
7877 DLLFLAGS="$DLLFLAGS -fPIC"
7878 DLLPREFIX="lib"
7879 LDEXECFLAGS=""
7880 dlldir="\${libdir}"
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7882 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7883 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 ac_wine_try_cflags_saved=$CFLAGS
7887 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890 int main(int argc, char **argv) { return 0; }
7891 _ACEOF
7892 if ac_fn_c_try_link "$LINENO"; then :
7893 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7894 else
7895 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7897 rm -f core conftest.err conftest.$ac_objext \
7898 conftest$ac_exeext conftest.$ac_ext
7899 CFLAGS=$ac_wine_try_cflags_saved
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7902 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7903 if test "x$ac_cv_cflags__fPIC__Wl___export_dynamic" = xyes; then :
7904 LDEXECFLAGS="-Wl,--export-dynamic"
7906 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7908 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7909 if eval \${$as_ac_var+:} false; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 ac_wine_try_cflags_saved=$CFLAGS
7913 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7916 int main(int argc, char **argv) { return 0; }
7917 _ACEOF
7918 if ac_fn_c_try_link "$LINENO"; then :
7919 eval "$as_ac_var=yes"
7920 else
7921 eval "$as_ac_var=no"
7923 rm -f core conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
7925 CFLAGS=$ac_wine_try_cflags_saved
7927 eval ac_res=\$$as_ac_var
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7929 $as_echo "$ac_res" >&6; }
7930 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7931 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7932 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7933 else
7934 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7936 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7937 if eval \${$as_ac_var+:} false; then :
7938 $as_echo_n "(cached) " >&6
7939 else
7940 ac_wine_try_cflags_saved=$CFLAGS
7941 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7944 int main(int argc, char **argv) { return 0; }
7945 _ACEOF
7946 if ac_fn_c_try_link "$LINENO"; then :
7947 eval "$as_ac_var=yes"
7948 else
7949 eval "$as_ac_var=no"
7951 rm -f core conftest.err conftest.$ac_objext \
7952 conftest$ac_exeext conftest.$ac_ext
7953 CFLAGS=$ac_wine_try_cflags_saved
7955 eval ac_res=\$$as_ac_var
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7957 $as_echo "$ac_res" >&6; }
7958 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7959 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7960 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7965 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7966 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 ac_wine_try_cflags_saved=$CFLAGS
7970 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7973 int main(int argc, char **argv) { return 0; }
7974 _ACEOF
7975 if ac_fn_c_try_link "$LINENO"; then :
7976 ac_cv_cflags__Wl___enable_new_dtags=yes
7977 else
7978 ac_cv_cflags__Wl___enable_new_dtags=no
7980 rm -f core conftest.err conftest.$ac_objext \
7981 conftest$ac_exeext conftest.$ac_ext
7982 CFLAGS=$ac_wine_try_cflags_saved
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7985 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7986 if test "x$ac_cv_cflags__Wl___enable_new_dtags" = xyes; then :
7987 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7990 case $host_cpu in
7991 *i[3456789]86* | x86_64)
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7993 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7994 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 ac_wine_try_cflags_saved=$CFLAGS
7998 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8001 int main(int argc, char **argv) { return 0; }
8002 _ACEOF
8003 if ac_fn_c_try_link "$LINENO"; then :
8004 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8005 else
8006 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8008 rm -f core conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
8010 CFLAGS=$ac_wine_try_cflags_saved
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8013 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8014 if test "x$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" = xyes; then :
8015 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
8018 esac
8020 libwine_targets="libwine.so"
8021 LIBWINE_RULES="
8022 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8024 all: libwine.so
8026 libwine.so: \$(OBJS)
8027 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8029 install install-lib:: libwine.so
8030 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
8032 uninstall::
8033 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
8037 as_fn_append LOADER_RULES "
8038 $wine_binary: main.o
8039 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8041 wine-installed: main.o
8042 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8047 DLLFLAGS="$DLLFLAGS -fPIC"
8048 LDEXECFLAGS=""
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
8050 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
8051 if ${ac_cv_c_dll_gnuelf+:} false; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 ac_wine_try_cflags_saved=$CFLAGS
8055 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 void myfunc() {}
8059 _ACEOF
8060 if ac_fn_c_try_link "$LINENO"; then :
8061 ac_cv_c_dll_gnuelf="yes"
8062 else
8063 ac_cv_c_dll_gnuelf="no"
8065 rm -f core conftest.err conftest.$ac_objext \
8066 conftest$ac_exeext conftest.$ac_ext
8067 CFLAGS=$ac_wine_try_cflags_saved
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
8070 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
8071 if test "$ac_cv_c_dll_gnuelf" = "yes"
8072 then
8073 LDSHARED="\$(CC) -shared"
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8075 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
8076 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 ac_wine_try_cflags_saved=$CFLAGS
8080 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 int main(int argc, char **argv) { return 0; }
8084 _ACEOF
8085 if ac_fn_c_try_link "$LINENO"; then :
8086 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
8087 else
8088 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
8090 rm -f core conftest.err conftest.$ac_objext \
8091 conftest$ac_exeext conftest.$ac_ext
8092 CFLAGS=$ac_wine_try_cflags_saved
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8095 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8096 if test "x$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" = xyes; then :
8097 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.$libwine_soversion"
8098 else
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8100 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
8101 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 ac_wine_try_cflags_saved=$CFLAGS
8105 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108 int main(int argc, char **argv) { return 0; }
8109 _ACEOF
8110 if ac_fn_c_try_link "$LINENO"; then :
8111 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
8112 else
8113 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
8115 rm -f core conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8117 CFLAGS=$ac_wine_try_cflags_saved
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8120 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8121 if test "x$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" = xyes; then :
8122 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.$libwine_soversion"
8126 echo '{ global: *; };' >conftest.map
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8128 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
8129 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 ac_wine_try_cflags_saved=$CFLAGS
8133 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 int main(int argc, char **argv) { return 0; }
8137 _ACEOF
8138 if ac_fn_c_try_link "$LINENO"; then :
8139 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
8140 else
8141 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
8143 rm -f core conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 CFLAGS=$ac_wine_try_cflags_saved
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8148 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8149 if test "x$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" = xyes; then :
8150 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
8152 rm -f conftest.map
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8155 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
8156 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 ac_wine_try_cflags_saved=$CFLAGS
8160 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 int main(int argc, char **argv) { return 0; }
8164 _ACEOF
8165 if ac_fn_c_try_link "$LINENO"; then :
8166 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
8167 else
8168 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8170 rm -f core conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
8172 CFLAGS=$ac_wine_try_cflags_saved
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8175 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8176 if test "x$ac_cv_cflags__fPIC__Wl___export_dynamic" = xyes; then :
8177 LDEXECFLAGS="-Wl,--export-dynamic"
8180 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8182 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
8183 if eval \${$as_ac_var+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 ac_wine_try_cflags_saved=$CFLAGS
8187 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
8188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8189 /* end confdefs.h. */
8190 int main(int argc, char **argv) { return 0; }
8191 _ACEOF
8192 if ac_fn_c_try_link "$LINENO"; then :
8193 eval "$as_ac_var=yes"
8194 else
8195 eval "$as_ac_var=no"
8197 rm -f core conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
8199 CFLAGS=$ac_wine_try_cflags_saved
8201 eval ac_res=\$$as_ac_var
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8203 $as_echo "$ac_res" >&6; }
8204 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8205 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8206 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8207 else
8208 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8210 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
8211 if eval \${$as_ac_var+:} false; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 ac_wine_try_cflags_saved=$CFLAGS
8215 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 int main(int argc, char **argv) { return 0; }
8219 _ACEOF
8220 if ac_fn_c_try_link "$LINENO"; then :
8221 eval "$as_ac_var=yes"
8222 else
8223 eval "$as_ac_var=no"
8225 rm -f core conftest.err conftest.$ac_objext \
8226 conftest$ac_exeext conftest.$ac_ext
8227 CFLAGS=$ac_wine_try_cflags_saved
8229 eval ac_res=\$$as_ac_var
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8231 $as_echo "$ac_res" >&6; }
8232 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8233 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
8234 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8239 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
8240 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 ac_wine_try_cflags_saved=$CFLAGS
8244 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8247 int main(int argc, char **argv) { return 0; }
8248 _ACEOF
8249 if ac_fn_c_try_link "$LINENO"; then :
8250 ac_cv_cflags__Wl___enable_new_dtags=yes
8251 else
8252 ac_cv_cflags__Wl___enable_new_dtags=no
8254 rm -f core conftest.err conftest.$ac_objext \
8255 conftest$ac_exeext conftest.$ac_ext
8256 CFLAGS=$ac_wine_try_cflags_saved
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8259 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8260 if test "x$ac_cv_cflags__Wl___enable_new_dtags" = xyes; then :
8261 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8264 case $host_cpu in
8265 *i[3456789]86* | x86_64)
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8267 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
8268 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270 else
8271 ac_wine_try_cflags_saved=$CFLAGS
8272 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
8273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8275 int main(int argc, char **argv) { return 0; }
8276 _ACEOF
8277 if ac_fn_c_try_link "$LINENO"; then :
8278 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
8279 else
8280 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
8282 rm -f core conftest.err conftest.$ac_objext \
8283 conftest$ac_exeext conftest.$ac_ext
8284 CFLAGS=$ac_wine_try_cflags_saved
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8287 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8288 if test "x$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" = xyes; then :
8289 case $host_os in
8290 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
8291 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
8292 esac
8295 # Extract the first word of "prelink", so it can be a program name with args.
8296 set dummy prelink; ac_word=$2
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8298 $as_echo_n "checking for $ac_word... " >&6; }
8299 if ${ac_cv_path_PRELINK+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 case $PRELINK in
8303 [\\/]* | ?:[\\/]*)
8304 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
8307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 for as_dir in /sbin /usr/sbin $PATH
8310 IFS=$as_save_IFS
8311 test -z "$as_dir" && as_dir=.
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8314 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316 break 2
8318 done
8319 done
8320 IFS=$as_save_IFS
8322 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
8324 esac
8326 PRELINK=$ac_cv_path_PRELINK
8327 if test -n "$PRELINK"; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
8329 $as_echo "$PRELINK" >&6; }
8330 else
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8336 if test "x$PRELINK" = xfalse
8337 then
8338 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
8341 esac
8343 else
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
8345 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
8346 if ${ac_cv_c_dll_unixware+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 ac_wine_try_cflags_saved=$CFLAGS
8350 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 void myfunc() {}
8354 _ACEOF
8355 if ac_fn_c_try_link "$LINENO"; then :
8356 ac_cv_c_dll_unixware="yes"
8357 else
8358 ac_cv_c_dll_unixware="no"
8360 rm -f core conftest.err conftest.$ac_objext \
8361 conftest$ac_exeext conftest.$ac_ext
8362 CFLAGS=$ac_wine_try_cflags_saved
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
8365 $as_echo "$ac_cv_c_dll_unixware" >&6; }
8366 if test "$ac_cv_c_dll_unixware" = "yes"
8367 then
8368 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.$libwine_soversion"
8371 libwine_targets="libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version"
8372 LIBWINE_RULES="
8373 OBJS = \$(C_SRCS:.c=.o) \$(EXTRA_OBJS)
8375 all: libwine.so
8377 libwine.so.$libwine_version: \$(OBJS) \$(srcdir)/wine.map
8378 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8380 libwine.so.$libwine_soversion: libwine.so.$libwine_version
8381 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_version \$@
8383 libwine.so: libwine.so.$libwine_soversion
8384 \$(RM) \$@ && \$(LN_S) libwine.so.$libwine_soversion \$@
8386 install install-lib:: libwine.so.$libwine_version
8387 \$(INSTALL_PROGRAM) libwine.so.$libwine_version \$(DESTDIR)\$(libdir)/libwine.so.$libwine_version
8388 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.$libwine_soversion && \$(LN_S) libwine.so.$libwine_version libwine.so.$libwine_soversion
8390 install install-dev::
8391 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.$libwine_version libwine.so
8393 uninstall::
8394 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.$libwine_soversion libwine.so.$libwine_version
8398 as_fn_append LOADER_RULES "
8399 $wine_binary: main.o
8400 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8402 wine-installed: main.o
8403 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8406 esac
8408 as_fn_append LIBWINE_RULES "
8409 EXTRA_TARGETS = $libwine_targets
8412 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8413 enable_winemac_drv=${enable_winemac_drv:-no}
8415 CROSSTARGET=""
8417 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8418 then
8419 case "$host_cpu" in
8420 i[3456789]86*)
8421 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
8422 mingw32-gcc" ;;
8423 x86_64)
8424 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 " ;;
8426 ac_prefix_list="" ;;
8427 esac
8428 for ac_prog in $ac_prefix_list
8430 # Extract the first word of "$ac_prog", so it can be a program name with args.
8431 set dummy $ac_prog; ac_word=$2
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 $as_echo_n "checking for $ac_word... " >&6; }
8434 if ${ac_cv_prog_CROSSCC+:} false; then :
8435 $as_echo_n "(cached) " >&6
8436 else
8437 if test -n "$CROSSCC"; then
8438 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8439 else
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441 for as_dir in $PATH
8443 IFS=$as_save_IFS
8444 test -z "$as_dir" && as_dir=.
8445 for ac_exec_ext in '' $ac_executable_extensions; do
8446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8447 ac_cv_prog_CROSSCC="$ac_prog"
8448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8449 break 2
8451 done
8452 done
8453 IFS=$as_save_IFS
8457 CROSSCC=$ac_cv_prog_CROSSCC
8458 if test -n "$CROSSCC"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8460 $as_echo "$CROSSCC" >&6; }
8461 else
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8467 test -n "$CROSSCC" && break
8468 done
8469 test -n "$CROSSCC" || CROSSCC="false"
8471 if test "$CROSSCC" != "false"
8472 then
8473 ac_save_CC="$CC"
8474 CC="$CROSSCC"
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8476 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8478 /* end confdefs.h. */
8481 main ()
8485 return 0;
8487 _ACEOF
8488 if ac_fn_c_try_compile "$LINENO"; then :
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8490 $as_echo "yes" >&6; }
8491 set x $CROSSCC
8492 shift
8493 while test $# -ge 1
8495 case "$1" in
8496 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8497 esac
8498 shift
8499 done
8500 else
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 CC="$ac_save_CC"
8510 if test "$ac_cv_header_pthread_h" = "yes"
8511 then
8512 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8513 if test "x$ac_cv_func_pthread_create" = xyes; then :
8515 else
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8517 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8518 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 ac_check_lib_save_LIBS=$LIBS
8522 LIBS="-lpthread $LIBS"
8523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8526 /* Override any GCC internal prototype to avoid an error.
8527 Use char because int might match the return type of a GCC
8528 builtin and then its argument prototype would still apply. */
8529 #ifdef __cplusplus
8530 extern "C"
8531 #endif
8532 char pthread_create ();
8534 main ()
8536 return pthread_create ();
8538 return 0;
8540 _ACEOF
8541 if ac_fn_c_try_link "$LINENO"; then :
8542 ac_cv_lib_pthread_pthread_create=yes
8543 else
8544 ac_cv_lib_pthread_pthread_create=no
8546 rm -f core conftest.err conftest.$ac_objext \
8547 conftest$ac_exeext conftest.$ac_ext
8548 LIBS=$ac_check_lib_save_LIBS
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8551 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8552 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8553 PTHREAD_LIBS="-lpthread"
8560 if test "x$ac_cv_func_pthread_create" != xyes -a "x$PTHREAD_LIBS" = x; then :
8561 case "x$with_pthread" in
8562 xno) ;;
8563 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8564 Wine cannot support threads without libpthread.
8565 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8566 esac
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8571 $as_echo_n "checking for X... " >&6; }
8574 # Check whether --with-x was given.
8575 if test "${with_x+set}" = set; then :
8576 withval=$with_x;
8579 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8580 if test "x$with_x" = xno; then
8581 # The user explicitly disabled X.
8582 have_x=disabled
8583 else
8584 case $x_includes,$x_libraries in #(
8585 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8586 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8587 $as_echo_n "(cached) " >&6
8588 else
8589 # One or both of the vars are not set, and there is no cached value.
8590 ac_x_includes=no ac_x_libraries=no
8591 rm -f -r conftest.dir
8592 if mkdir conftest.dir; then
8593 cd conftest.dir
8594 cat >Imakefile <<'_ACEOF'
8595 incroot:
8596 @echo incroot='${INCROOT}'
8597 usrlibdir:
8598 @echo usrlibdir='${USRLIBDIR}'
8599 libdir:
8600 @echo libdir='${LIBDIR}'
8601 _ACEOF
8602 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8603 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8604 for ac_var in incroot usrlibdir libdir; do
8605 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8606 done
8607 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8608 for ac_extension in a so sl dylib la dll; do
8609 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8610 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8611 ac_im_usrlibdir=$ac_im_libdir; break
8613 done
8614 # Screen out bogus values from the imake configuration. They are
8615 # bogus both because they are the default anyway, and because
8616 # using them would break gcc on systems where it needs fixed includes.
8617 case $ac_im_incroot in
8618 /usr/include) ac_x_includes= ;;
8619 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8620 esac
8621 case $ac_im_usrlibdir in
8622 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8623 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8624 esac
8626 cd ..
8627 rm -f -r conftest.dir
8630 # Standard set of common directories for X headers.
8631 # Check X11 before X11Rn because it is often a symlink to the current release.
8632 ac_x_header_dirs='
8633 /usr/X11/include
8634 /usr/X11R7/include
8635 /usr/X11R6/include
8636 /usr/X11R5/include
8637 /usr/X11R4/include
8639 /usr/include/X11
8640 /usr/include/X11R7
8641 /usr/include/X11R6
8642 /usr/include/X11R5
8643 /usr/include/X11R4
8645 /usr/local/X11/include
8646 /usr/local/X11R7/include
8647 /usr/local/X11R6/include
8648 /usr/local/X11R5/include
8649 /usr/local/X11R4/include
8651 /usr/local/include/X11
8652 /usr/local/include/X11R7
8653 /usr/local/include/X11R6
8654 /usr/local/include/X11R5
8655 /usr/local/include/X11R4
8657 /usr/X386/include
8658 /usr/x386/include
8659 /usr/XFree86/include/X11
8661 /usr/include
8662 /usr/local/include
8663 /usr/unsupported/include
8664 /usr/athena/include
8665 /usr/local/x11r5/include
8666 /usr/lpp/Xamples/include
8668 /usr/openwin/include
8669 /usr/openwin/share/include'
8671 if test "$ac_x_includes" = no; then
8672 # Guess where to find include files, by looking for Xlib.h.
8673 # First, try using that file with no special directory specified.
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676 #include <X11/Xlib.h>
8677 _ACEOF
8678 if ac_fn_c_try_cpp "$LINENO"; then :
8679 # We can compile using X headers with no special include directory.
8680 ac_x_includes=
8681 else
8682 for ac_dir in $ac_x_header_dirs; do
8683 if test -r "$ac_dir/X11/Xlib.h"; then
8684 ac_x_includes=$ac_dir
8685 break
8687 done
8689 rm -f conftest.err conftest.i conftest.$ac_ext
8690 fi # $ac_x_includes = no
8692 if test "$ac_x_libraries" = no; then
8693 # Check for the libraries.
8694 # See if we find them without any special options.
8695 # Don't add to $LIBS permanently.
8696 ac_save_LIBS=$LIBS
8697 LIBS="-lX11 $LIBS"
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 #include <X11/Xlib.h>
8702 main ()
8704 XrmInitialize ()
8706 return 0;
8708 _ACEOF
8709 if ac_fn_c_try_link "$LINENO"; then :
8710 LIBS=$ac_save_LIBS
8711 # We can link X programs with no special library path.
8712 ac_x_libraries=
8713 else
8714 LIBS=$ac_save_LIBS
8715 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8717 # Don't even attempt the hair of trying to link an X program!
8718 for ac_extension in a so sl dylib la dll; do
8719 if test -r "$ac_dir/libX11.$ac_extension"; then
8720 ac_x_libraries=$ac_dir
8721 break 2
8723 done
8724 done
8726 rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 fi # $ac_x_libraries = no
8730 case $ac_x_includes,$ac_x_libraries in #(
8731 no,* | *,no | *\'*)
8732 # Didn't find X, or a directory has "'" in its name.
8733 ac_cv_have_x="have_x=no";; #(
8735 # Record where we found X for the cache.
8736 ac_cv_have_x="have_x=yes\
8737 ac_x_includes='$ac_x_includes'\
8738 ac_x_libraries='$ac_x_libraries'"
8739 esac
8741 ;; #(
8742 *) have_x=yes;;
8743 esac
8744 eval "$ac_cv_have_x"
8745 fi # $with_x != no
8747 if test "$have_x" != yes; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8749 $as_echo "$have_x" >&6; }
8750 no_x=yes
8751 else
8752 # If each of the values was on the command line, it overrides each guess.
8753 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8754 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8755 # Update the cache value to reflect the command line values.
8756 ac_cv_have_x="have_x=yes\
8757 ac_x_includes='$x_includes'\
8758 ac_x_libraries='$x_libraries'"
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8760 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8763 if test "$no_x" = yes; then
8764 # Not all programs may use this symbol, but it does not hurt to define it.
8766 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8768 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8769 else
8770 if test -n "$x_includes"; then
8771 X_CFLAGS="$X_CFLAGS -I$x_includes"
8774 # It would also be nice to do this for all -L options, not just this one.
8775 if test -n "$x_libraries"; then
8776 X_LIBS="$X_LIBS -L$x_libraries"
8777 # For Solaris; some versions of Sun CC require a space after -R and
8778 # others require no space. Words are not sufficient . . . .
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8780 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
8781 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8782 ac_xsave_c_werror_flag=$ac_c_werror_flag
8783 ac_c_werror_flag=yes
8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8788 main ()
8792 return 0;
8794 _ACEOF
8795 if ac_fn_c_try_link "$LINENO"; then :
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8798 X_LIBS="$X_LIBS -R$x_libraries"
8799 else
8800 LIBS="$ac_xsave_LIBS -R $x_libraries"
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8805 main ()
8809 return 0;
8811 _ACEOF
8812 if ac_fn_c_try_link "$LINENO"; then :
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8814 $as_echo "yes" >&6; }
8815 X_LIBS="$X_LIBS -R $x_libraries"
8816 else
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8818 $as_echo "neither works" >&6; }
8820 rm -f core conftest.err conftest.$ac_objext \
8821 conftest$ac_exeext conftest.$ac_ext
8823 rm -f core conftest.err conftest.$ac_objext \
8824 conftest$ac_exeext conftest.$ac_ext
8825 ac_c_werror_flag=$ac_xsave_c_werror_flag
8826 LIBS=$ac_xsave_LIBS
8829 # Check for system-dependent libraries X programs must link with.
8830 # Do this before checking for the system-independent R6 libraries
8831 # (-lICE), since we may need -lsocket or whatever for X linking.
8833 if test "$ISC" = yes; then
8834 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8835 else
8836 # Martyn Johnson says this is needed for Ultrix, if the X
8837 # libraries were built with DECnet support. And Karl Berry says
8838 # the Alpha needs dnet_stub (dnet does not exist).
8839 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8843 /* Override any GCC internal prototype to avoid an error.
8844 Use char because int might match the return type of a GCC
8845 builtin and then its argument prototype would still apply. */
8846 #ifdef __cplusplus
8847 extern "C"
8848 #endif
8849 char XOpenDisplay ();
8851 main ()
8853 return XOpenDisplay ();
8855 return 0;
8857 _ACEOF
8858 if ac_fn_c_try_link "$LINENO"; then :
8860 else
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8862 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8863 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 ac_check_lib_save_LIBS=$LIBS
8867 LIBS="-ldnet $LIBS"
8868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8869 /* end confdefs.h. */
8871 /* Override any GCC internal prototype to avoid an error.
8872 Use char because int might match the return type of a GCC
8873 builtin and then its argument prototype would still apply. */
8874 #ifdef __cplusplus
8875 extern "C"
8876 #endif
8877 char dnet_ntoa ();
8879 main ()
8881 return dnet_ntoa ();
8883 return 0;
8885 _ACEOF
8886 if ac_fn_c_try_link "$LINENO"; then :
8887 ac_cv_lib_dnet_dnet_ntoa=yes
8888 else
8889 ac_cv_lib_dnet_dnet_ntoa=no
8891 rm -f core conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8893 LIBS=$ac_check_lib_save_LIBS
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8896 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8897 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8898 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8901 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8903 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8904 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 ac_check_lib_save_LIBS=$LIBS
8908 LIBS="-ldnet_stub $LIBS"
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8912 /* Override any GCC internal prototype to avoid an error.
8913 Use char because int might match the return type of a GCC
8914 builtin and then its argument prototype would still apply. */
8915 #ifdef __cplusplus
8916 extern "C"
8917 #endif
8918 char dnet_ntoa ();
8920 main ()
8922 return dnet_ntoa ();
8924 return 0;
8926 _ACEOF
8927 if ac_fn_c_try_link "$LINENO"; then :
8928 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8929 else
8930 ac_cv_lib_dnet_stub_dnet_ntoa=no
8932 rm -f core conftest.err conftest.$ac_objext \
8933 conftest$ac_exeext conftest.$ac_ext
8934 LIBS=$ac_check_lib_save_LIBS
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8937 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8938 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8939 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8944 rm -f core conftest.err conftest.$ac_objext \
8945 conftest$ac_exeext conftest.$ac_ext
8946 LIBS="$ac_xsave_LIBS"
8948 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8949 # to get the SysV transport functions.
8950 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8951 # needs -lnsl.
8952 # The nsl library prevents programs from opening the X display
8953 # on Irix 5.2, according to T.E. Dickey.
8954 # The functions gethostbyname, getservbyname, and inet_addr are
8955 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8956 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8957 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8961 if test $ac_cv_func_gethostbyname = no; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8963 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8964 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 ac_check_lib_save_LIBS=$LIBS
8968 LIBS="-lnsl $LIBS"
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8972 /* Override any GCC internal prototype to avoid an error.
8973 Use char because int might match the return type of a GCC
8974 builtin and then its argument prototype would still apply. */
8975 #ifdef __cplusplus
8976 extern "C"
8977 #endif
8978 char gethostbyname ();
8980 main ()
8982 return gethostbyname ();
8984 return 0;
8986 _ACEOF
8987 if ac_fn_c_try_link "$LINENO"; then :
8988 ac_cv_lib_nsl_gethostbyname=yes
8989 else
8990 ac_cv_lib_nsl_gethostbyname=no
8992 rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 LIBS=$ac_check_lib_save_LIBS
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8997 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8998 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8999 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9002 if test $ac_cv_lib_nsl_gethostbyname = no; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
9004 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
9005 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 ac_check_lib_save_LIBS=$LIBS
9009 LIBS="-lbsd $LIBS"
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9013 /* Override any GCC internal prototype to avoid an error.
9014 Use char because int might match the return type of a GCC
9015 builtin and then its argument prototype would still apply. */
9016 #ifdef __cplusplus
9017 extern "C"
9018 #endif
9019 char gethostbyname ();
9021 main ()
9023 return gethostbyname ();
9025 return 0;
9027 _ACEOF
9028 if ac_fn_c_try_link "$LINENO"; then :
9029 ac_cv_lib_bsd_gethostbyname=yes
9030 else
9031 ac_cv_lib_bsd_gethostbyname=no
9033 rm -f core conftest.err conftest.$ac_objext \
9034 conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
9038 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
9039 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
9040 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9046 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9047 # socket/setsockopt and other routines are undefined under SCO ODT
9048 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9049 # on later versions), says Simon Leinen: it contains gethostby*
9050 # variants that don't use the name server (or something). -lsocket
9051 # must be given before -lnsl if both are needed. We assume that
9052 # if connect needs -lnsl, so does gethostbyname.
9053 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
9054 if test "x$ac_cv_func_connect" = xyes; then :
9058 if test $ac_cv_func_connect = no; then
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
9060 $as_echo_n "checking for connect in -lsocket... " >&6; }
9061 if ${ac_cv_lib_socket_connect+:} false; then :
9062 $as_echo_n "(cached) " >&6
9063 else
9064 ac_check_lib_save_LIBS=$LIBS
9065 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9069 /* Override any GCC internal prototype to avoid an error.
9070 Use char because int might match the return type of a GCC
9071 builtin and then its argument prototype would still apply. */
9072 #ifdef __cplusplus
9073 extern "C"
9074 #endif
9075 char connect ();
9077 main ()
9079 return connect ();
9081 return 0;
9083 _ACEOF
9084 if ac_fn_c_try_link "$LINENO"; then :
9085 ac_cv_lib_socket_connect=yes
9086 else
9087 ac_cv_lib_socket_connect=no
9089 rm -f core conftest.err conftest.$ac_objext \
9090 conftest$ac_exeext conftest.$ac_ext
9091 LIBS=$ac_check_lib_save_LIBS
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
9094 $as_echo "$ac_cv_lib_socket_connect" >&6; }
9095 if test "x$ac_cv_lib_socket_connect" = xyes; then :
9096 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9101 # Guillermo Gomez says -lposix is necessary on A/UX.
9102 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
9103 if test "x$ac_cv_func_remove" = xyes; then :
9107 if test $ac_cv_func_remove = no; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
9109 $as_echo_n "checking for remove in -lposix... " >&6; }
9110 if ${ac_cv_lib_posix_remove+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 ac_check_lib_save_LIBS=$LIBS
9114 LIBS="-lposix $LIBS"
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9118 /* Override any GCC internal prototype to avoid an error.
9119 Use char because int might match the return type of a GCC
9120 builtin and then its argument prototype would still apply. */
9121 #ifdef __cplusplus
9122 extern "C"
9123 #endif
9124 char remove ();
9126 main ()
9128 return remove ();
9130 return 0;
9132 _ACEOF
9133 if ac_fn_c_try_link "$LINENO"; then :
9134 ac_cv_lib_posix_remove=yes
9135 else
9136 ac_cv_lib_posix_remove=no
9138 rm -f core conftest.err conftest.$ac_objext \
9139 conftest$ac_exeext conftest.$ac_ext
9140 LIBS=$ac_check_lib_save_LIBS
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
9143 $as_echo "$ac_cv_lib_posix_remove" >&6; }
9144 if test "x$ac_cv_lib_posix_remove" = xyes; then :
9145 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9150 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9151 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
9152 if test "x$ac_cv_func_shmat" = xyes; then :
9156 if test $ac_cv_func_shmat = no; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
9158 $as_echo_n "checking for shmat in -lipc... " >&6; }
9159 if ${ac_cv_lib_ipc_shmat+:} false; then :
9160 $as_echo_n "(cached) " >&6
9161 else
9162 ac_check_lib_save_LIBS=$LIBS
9163 LIBS="-lipc $LIBS"
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9167 /* Override any GCC internal prototype to avoid an error.
9168 Use char because int might match the return type of a GCC
9169 builtin and then its argument prototype would still apply. */
9170 #ifdef __cplusplus
9171 extern "C"
9172 #endif
9173 char shmat ();
9175 main ()
9177 return shmat ();
9179 return 0;
9181 _ACEOF
9182 if ac_fn_c_try_link "$LINENO"; then :
9183 ac_cv_lib_ipc_shmat=yes
9184 else
9185 ac_cv_lib_ipc_shmat=no
9187 rm -f core conftest.err conftest.$ac_objext \
9188 conftest$ac_exeext conftest.$ac_ext
9189 LIBS=$ac_check_lib_save_LIBS
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
9192 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
9193 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
9194 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9200 # Check for libraries that X11R6 Xt/Xaw programs need.
9201 ac_save_LDFLAGS=$LDFLAGS
9202 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9203 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9204 # check for ICE first), but we must link in the order -lSM -lICE or
9205 # we get undefined symbols. So assume we have SM if we have ICE.
9206 # These have to be linked with before -lX11, unlike the other
9207 # libraries we check for below, so use a different variable.
9208 # John Interrante, Karl Berry
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
9210 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
9211 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
9212 $as_echo_n "(cached) " >&6
9213 else
9214 ac_check_lib_save_LIBS=$LIBS
9215 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9219 /* Override any GCC internal prototype to avoid an error.
9220 Use char because int might match the return type of a GCC
9221 builtin and then its argument prototype would still apply. */
9222 #ifdef __cplusplus
9223 extern "C"
9224 #endif
9225 char IceConnectionNumber ();
9227 main ()
9229 return IceConnectionNumber ();
9231 return 0;
9233 _ACEOF
9234 if ac_fn_c_try_link "$LINENO"; then :
9235 ac_cv_lib_ICE_IceConnectionNumber=yes
9236 else
9237 ac_cv_lib_ICE_IceConnectionNumber=no
9239 rm -f core conftest.err conftest.$ac_objext \
9240 conftest$ac_exeext conftest.$ac_ext
9241 LIBS=$ac_check_lib_save_LIBS
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9244 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9245 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
9246 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9249 LDFLAGS=$ac_save_LDFLAGS
9254 if test "$have_x" = "yes"
9255 then
9256 ac_save_CPPFLAGS="$CPPFLAGS"
9257 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
9260 $as_echo_n "checking for -lX11... " >&6; }
9261 if ${ac_cv_lib_soname_X11+:} false; then :
9262 $as_echo_n "(cached) " >&6
9263 else
9264 ac_check_soname_save_LIBS=$LIBS
9265 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9269 /* Override any GCC internal prototype to avoid an error.
9270 Use char because int might match the return type of a GCC
9271 builtin and then its argument prototype would still apply. */
9272 #ifdef __cplusplus
9273 extern "C"
9274 #endif
9275 char XCreateWindow ();
9277 main ()
9279 return XCreateWindow ();
9281 return 0;
9283 _ACEOF
9284 if ac_fn_c_try_link "$LINENO"; then :
9285 case "$LIBEXT" in
9286 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9287 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'` ;;
9288 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9289 if ${ac_cv_lib_soname_X11:+false} :; then :
9290 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9291 fi ;;
9292 esac
9294 rm -f core conftest.err conftest.$ac_objext \
9295 conftest$ac_exeext conftest.$ac_ext
9296 LIBS=$ac_check_soname_save_LIBS
9298 if ${ac_cv_lib_soname_X11:+false} :; then :
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9300 $as_echo "not found" >&6; }
9302 else
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
9304 $as_echo "$ac_cv_lib_soname_X11" >&6; }
9306 cat >>confdefs.h <<_ACEOF
9307 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9308 _ACEOF
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
9313 $as_echo_n "checking for -lXext... " >&6; }
9314 if ${ac_cv_lib_soname_Xext+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 ac_check_soname_save_LIBS=$LIBS
9318 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9322 /* Override any GCC internal prototype to avoid an error.
9323 Use char because int might match the return type of a GCC
9324 builtin and then its argument prototype would still apply. */
9325 #ifdef __cplusplus
9326 extern "C"
9327 #endif
9328 char XextCreateExtension ();
9330 main ()
9332 return XextCreateExtension ();
9334 return 0;
9336 _ACEOF
9337 if ac_fn_c_try_link "$LINENO"; then :
9338 case "$LIBEXT" in
9339 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9340 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'` ;;
9341 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9342 if ${ac_cv_lib_soname_Xext:+false} :; then :
9343 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9344 fi ;;
9345 esac
9347 rm -f core conftest.err conftest.$ac_objext \
9348 conftest$ac_exeext conftest.$ac_ext
9349 LIBS=$ac_check_soname_save_LIBS
9351 if ${ac_cv_lib_soname_Xext:+false} :; then :
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9353 $as_echo "not found" >&6; }
9355 else
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
9357 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
9359 cat >>confdefs.h <<_ACEOF
9360 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9361 _ACEOF
9363 X_LIBS="$X_LIBS -lXext"
9365 X_LIBS="$X_LIBS -lX11"
9367 for ac_header in X11/Xlib.h \
9368 X11/XKBlib.h \
9369 X11/Xutil.h \
9370 X11/Xcursor/Xcursor.h \
9371 X11/extensions/shape.h \
9372 X11/extensions/XInput.h \
9373 X11/extensions/XInput2.h \
9374 X11/extensions/XShm.h \
9375 X11/extensions/Xcomposite.h \
9376 X11/extensions/Xinerama.h \
9377 X11/extensions/Xrandr.h \
9378 X11/extensions/Xrender.h \
9379 X11/extensions/xf86vmode.h \
9380 X11/extensions/xf86vmproto.h
9381 do :
9382 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9383 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9384 # include <X11/Xlib.h>
9385 #endif
9386 #ifdef HAVE_X11_XUTIL_H
9387 # include <X11/Xutil.h>
9388 #endif
9390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9391 cat >>confdefs.h <<_ACEOF
9392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9393 _ACEOF
9397 done
9400 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9401 then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9403 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9404 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 ac_check_lib_save_LIBS=$LIBS
9408 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9412 /* Override any GCC internal prototype to avoid an error.
9413 Use char because int might match the return type of a GCC
9414 builtin and then its argument prototype would still apply. */
9415 #ifdef __cplusplus
9416 extern "C"
9417 #endif
9418 char XkbQueryExtension ();
9420 main ()
9422 return XkbQueryExtension ();
9424 return 0;
9426 _ACEOF
9427 if ac_fn_c_try_link "$LINENO"; then :
9428 ac_cv_lib_X11_XkbQueryExtension=yes
9429 else
9430 ac_cv_lib_X11_XkbQueryExtension=no
9432 rm -f core conftest.err conftest.$ac_objext \
9433 conftest$ac_exeext conftest.$ac_ext
9434 LIBS=$ac_check_lib_save_LIBS
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9437 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9438 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9440 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9446 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9447 then
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9449 $as_echo_n "checking for -lXcursor... " >&6; }
9450 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 ac_check_soname_save_LIBS=$LIBS
9454 LIBS="-lXcursor $X_LIBS $X_EXTRA_LIBS $LIBS"
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9458 /* Override any GCC internal prototype to avoid an error.
9459 Use char because int might match the return type of a GCC
9460 builtin and then its argument prototype would still apply. */
9461 #ifdef __cplusplus
9462 extern "C"
9463 #endif
9464 char XcursorImageLoadCursor ();
9466 main ()
9468 return XcursorImageLoadCursor ();
9470 return 0;
9472 _ACEOF
9473 if ac_fn_c_try_link "$LINENO"; then :
9474 case "$LIBEXT" in
9475 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9476 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'` ;;
9477 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9478 if ${ac_cv_lib_soname_Xcursor:+false} :; then :
9479 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9480 fi ;;
9481 esac
9483 rm -f core conftest.err conftest.$ac_objext \
9484 conftest$ac_exeext conftest.$ac_ext
9485 LIBS=$ac_check_soname_save_LIBS
9487 if ${ac_cv_lib_soname_Xcursor:+false} :; then :
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9489 $as_echo "not found" >&6; }
9491 else
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9493 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9495 cat >>confdefs.h <<_ACEOF
9496 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9497 _ACEOF
9502 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9503 case "x$with_xcursor" in
9504 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9505 xno) ;;
9506 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9507 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9508 esac
9511 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9512 then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9514 $as_echo_n "checking for -lXi... " >&6; }
9515 if ${ac_cv_lib_soname_Xi+:} false; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 ac_check_soname_save_LIBS=$LIBS
9519 LIBS="-lXi $X_LIBS $X_EXTRA_LIBS $LIBS"
9520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h. */
9523 /* Override any GCC internal prototype to avoid an error.
9524 Use char because int might match the return type of a GCC
9525 builtin and then its argument prototype would still apply. */
9526 #ifdef __cplusplus
9527 extern "C"
9528 #endif
9529 char XOpenDevice ();
9531 main ()
9533 return XOpenDevice ();
9535 return 0;
9537 _ACEOF
9538 if ac_fn_c_try_link "$LINENO"; then :
9539 case "$LIBEXT" in
9540 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9541 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'` ;;
9542 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9543 if ${ac_cv_lib_soname_Xi:+false} :; then :
9544 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9545 fi ;;
9546 esac
9548 rm -f core conftest.err conftest.$ac_objext \
9549 conftest$ac_exeext conftest.$ac_ext
9550 LIBS=$ac_check_soname_save_LIBS
9552 if ${ac_cv_lib_soname_Xi:+false} :; then :
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9554 $as_echo "not found" >&6; }
9556 else
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9558 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9560 cat >>confdefs.h <<_ACEOF
9561 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9562 _ACEOF
9567 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9568 case "x$with_xinput" in
9569 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9570 xno) ;;
9571 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9572 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9573 esac
9576 if test "x$ac_cv_lib_soname_Xi" != x
9577 then
9578 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9579 case "x$with_xinput2" in
9580 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9581 xno) ;;
9582 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9583 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9584 esac
9588 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9589 then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9591 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9592 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9593 $as_echo_n "(cached) " >&6
9594 else
9595 ac_check_lib_save_LIBS=$LIBS
9596 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS $LIBS"
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9600 /* Override any GCC internal prototype to avoid an error.
9601 Use char because int might match the return type of a GCC
9602 builtin and then its argument prototype would still apply. */
9603 #ifdef __cplusplus
9604 extern "C"
9605 #endif
9606 char XShmQueryExtension ();
9608 main ()
9610 return XShmQueryExtension ();
9612 return 0;
9614 _ACEOF
9615 if ac_fn_c_try_link "$LINENO"; then :
9616 ac_cv_lib_Xext_XShmQueryExtension=yes
9617 else
9618 ac_cv_lib_Xext_XShmQueryExtension=no
9620 rm -f core conftest.err conftest.$ac_objext \
9621 conftest$ac_exeext conftest.$ac_ext
9622 LIBS=$ac_check_lib_save_LIBS
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9625 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9626 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9628 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9633 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9634 case "x$with_xshm" in
9635 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9636 xno) ;;
9637 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9638 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9639 esac
9642 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9643 then
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9645 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9646 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9647 $as_echo_n "(cached) " >&6
9648 else
9649 ac_check_lib_save_LIBS=$LIBS
9650 LIBS="-lXext $X_LIBS $X_EXTRA_LIBS $LIBS"
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9654 /* Override any GCC internal prototype to avoid an error.
9655 Use char because int might match the return type of a GCC
9656 builtin and then its argument prototype would still apply. */
9657 #ifdef __cplusplus
9658 extern "C"
9659 #endif
9660 char XShapeQueryExtension ();
9662 main ()
9664 return XShapeQueryExtension ();
9666 return 0;
9668 _ACEOF
9669 if ac_fn_c_try_link "$LINENO"; then :
9670 ac_cv_lib_Xext_XShapeQueryExtension=yes
9671 else
9672 ac_cv_lib_Xext_XShapeQueryExtension=no
9674 rm -f core conftest.err conftest.$ac_objext \
9675 conftest$ac_exeext conftest.$ac_ext
9676 LIBS=$ac_check_lib_save_LIBS
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9679 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9680 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9682 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9687 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9688 case "x$with_xshape" in
9689 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9690 xno) ;;
9691 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9692 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9693 esac
9696 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9697 then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9699 $as_echo_n "checking for -lXxf86vm... " >&6; }
9700 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9701 $as_echo_n "(cached) " >&6
9702 else
9703 ac_check_soname_save_LIBS=$LIBS
9704 LIBS="-lXxf86vm $X_LIBS $X_EXTRA_LIBS $LIBS"
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9708 /* Override any GCC internal prototype to avoid an error.
9709 Use char because int might match the return type of a GCC
9710 builtin and then its argument prototype would still apply. */
9711 #ifdef __cplusplus
9712 extern "C"
9713 #endif
9714 char XF86VidModeQueryExtension ();
9716 main ()
9718 return XF86VidModeQueryExtension ();
9720 return 0;
9722 _ACEOF
9723 if ac_fn_c_try_link "$LINENO"; then :
9724 case "$LIBEXT" in
9725 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9726 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'` ;;
9727 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9728 if ${ac_cv_lib_soname_Xxf86vm:+false} :; then :
9729 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9730 fi ;;
9731 esac
9733 rm -f core conftest.err conftest.$ac_objext \
9734 conftest$ac_exeext conftest.$ac_ext
9735 LIBS=$ac_check_soname_save_LIBS
9737 if ${ac_cv_lib_soname_Xxf86vm:+false} :; then :
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9739 $as_echo "not found" >&6; }
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9743 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9745 cat >>confdefs.h <<_ACEOF
9746 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9747 _ACEOF
9752 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9753 case "x$with_xxf86vm" in
9754 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9755 xno) ;;
9756 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9757 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9758 esac
9761 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"
9762 then
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9764 $as_echo_n "checking for -lXrender... " >&6; }
9765 if ${ac_cv_lib_soname_Xrender+:} false; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 ac_check_soname_save_LIBS=$LIBS
9769 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9773 /* Override any GCC internal prototype to avoid an error.
9774 Use char because int might match the return type of a GCC
9775 builtin and then its argument prototype would still apply. */
9776 #ifdef __cplusplus
9777 extern "C"
9778 #endif
9779 char XRenderQueryExtension ();
9781 main ()
9783 return XRenderQueryExtension ();
9785 return 0;
9787 _ACEOF
9788 if ac_fn_c_try_link "$LINENO"; then :
9789 case "$LIBEXT" in
9790 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9791 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'` ;;
9792 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9793 if ${ac_cv_lib_soname_Xrender:+false} :; then :
9794 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9795 fi ;;
9796 esac
9798 rm -f core conftest.err conftest.$ac_objext \
9799 conftest$ac_exeext conftest.$ac_ext
9800 LIBS=$ac_check_soname_save_LIBS
9802 if ${ac_cv_lib_soname_Xrender:+false} :; then :
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9804 $as_echo "not found" >&6; }
9806 else
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
9808 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
9810 cat >>confdefs.h <<_ACEOF
9811 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
9812 _ACEOF
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
9815 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
9816 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
9817 $as_echo_n "(cached) " >&6
9818 else
9819 ac_check_lib_save_LIBS=$LIBS
9820 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h. */
9824 /* Override any GCC internal prototype to avoid an error.
9825 Use char because int might match the return type of a GCC
9826 builtin and then its argument prototype would still apply. */
9827 #ifdef __cplusplus
9828 extern "C"
9829 #endif
9830 char XRenderSetPictureTransform ();
9832 main ()
9834 return XRenderSetPictureTransform ();
9836 return 0;
9838 _ACEOF
9839 if ac_fn_c_try_link "$LINENO"; then :
9840 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9841 else
9842 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9844 rm -f core conftest.err conftest.$ac_objext \
9845 conftest$ac_exeext conftest.$ac_ext
9846 LIBS=$ac_check_lib_save_LIBS
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9849 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9850 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
9852 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
9857 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
9858 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
9859 $as_echo_n "(cached) " >&6
9860 else
9861 ac_check_lib_save_LIBS=$LIBS
9862 LIBS="-lXrender $X_LIBS $X_EXTRA_LIBS $LIBS"
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9866 /* Override any GCC internal prototype to avoid an error.
9867 Use char because int might match the return type of a GCC
9868 builtin and then its argument prototype would still apply. */
9869 #ifdef __cplusplus
9870 extern "C"
9871 #endif
9872 char XRenderCreateLinearGradient ();
9874 main ()
9876 return XRenderCreateLinearGradient ();
9878 return 0;
9880 _ACEOF
9881 if ac_fn_c_try_link "$LINENO"; then :
9882 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
9883 else
9884 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
9886 rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
9891 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
9892 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
9894 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
9901 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9902 case "x$with_xrender" in
9903 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
9904 xno) ;;
9905 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
9906 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
9907 esac
9910 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9911 then
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914 #include <X11/Xlib.h>
9915 #include <X11/extensions/Xrandr.h>
9917 main ()
9919 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9921 return 0;
9923 _ACEOF
9924 if ac_fn_c_try_compile "$LINENO"; then :
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9926 $as_echo_n "checking for -lXrandr... " >&6; }
9927 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9928 $as_echo_n "(cached) " >&6
9929 else
9930 ac_check_soname_save_LIBS=$LIBS
9931 LIBS="-lXrandr $X_LIBS $X_EXTRA_LIBS $LIBS"
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9935 /* Override any GCC internal prototype to avoid an error.
9936 Use char because int might match the return type of a GCC
9937 builtin and then its argument prototype would still apply. */
9938 #ifdef __cplusplus
9939 extern "C"
9940 #endif
9941 char XRRQueryExtension ();
9943 main ()
9945 return XRRQueryExtension ();
9947 return 0;
9949 _ACEOF
9950 if ac_fn_c_try_link "$LINENO"; then :
9951 case "$LIBEXT" in
9952 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9953 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'` ;;
9954 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9955 if ${ac_cv_lib_soname_Xrandr:+false} :; then :
9956 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9957 fi ;;
9958 esac
9960 rm -f core conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962 LIBS=$ac_check_soname_save_LIBS
9964 if ${ac_cv_lib_soname_Xrandr:+false} :; then :
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9966 $as_echo "not found" >&6; }
9968 else
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9970 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9972 cat >>confdefs.h <<_ACEOF
9973 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9974 _ACEOF
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h. */
9978 #include <X11/Xlib.h>
9979 #include <X11/extensions/Xrandr.h>
9981 main ()
9983 static typeof(XRRGetScreenResources) *f; if (f) return 0;
9985 return 0;
9987 _ACEOF
9988 if ac_fn_c_try_compile "$LINENO"; then :
9990 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
9993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9998 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9999 case "x$with_xrandr" in
10000 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
10001 xno) ;;
10002 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
10003 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
10004 esac
10007 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10008 then
10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10011 #include <X11/Xlib.h>
10012 #include <X11/extensions/Xinerama.h>
10014 main ()
10016 static typeof(XineramaQueryScreens) * func; if (func) return 0;
10018 return 0;
10020 _ACEOF
10021 if ac_fn_c_try_compile "$LINENO"; then :
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
10023 $as_echo_n "checking for -lXinerama... " >&6; }
10024 if ${ac_cv_lib_soname_Xinerama+:} false; then :
10025 $as_echo_n "(cached) " >&6
10026 else
10027 ac_check_soname_save_LIBS=$LIBS
10028 LIBS="-lXinerama $X_LIBS $X_EXTRA_LIBS $LIBS"
10029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030 /* end confdefs.h. */
10032 /* Override any GCC internal prototype to avoid an error.
10033 Use char because int might match the return type of a GCC
10034 builtin and then its argument prototype would still apply. */
10035 #ifdef __cplusplus
10036 extern "C"
10037 #endif
10038 char XineramaQueryScreens ();
10040 main ()
10042 return XineramaQueryScreens ();
10044 return 0;
10046 _ACEOF
10047 if ac_fn_c_try_link "$LINENO"; then :
10048 case "$LIBEXT" in
10049 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10050 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'` ;;
10051 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10052 if ${ac_cv_lib_soname_Xinerama:+false} :; then :
10053 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10054 fi ;;
10055 esac
10057 rm -f core conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059 LIBS=$ac_check_soname_save_LIBS
10061 if ${ac_cv_lib_soname_Xinerama:+false} :; then :
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10063 $as_echo "not found" >&6; }
10065 else
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
10067 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
10069 cat >>confdefs.h <<_ACEOF
10070 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
10071 _ACEOF
10076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10078 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
10079 case "x$with_xinerama" in
10080 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
10081 xno) ;;
10082 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
10083 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
10084 esac
10087 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10088 then
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
10090 $as_echo_n "checking for -lXcomposite... " >&6; }
10091 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 ac_check_soname_save_LIBS=$LIBS
10095 LIBS="-lXcomposite $X_LIBS $X_EXTRA_LIBS $LIBS"
10096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097 /* end confdefs.h. */
10099 /* Override any GCC internal prototype to avoid an error.
10100 Use char because int might match the return type of a GCC
10101 builtin and then its argument prototype would still apply. */
10102 #ifdef __cplusplus
10103 extern "C"
10104 #endif
10105 char XCompositeRedirectWindow ();
10107 main ()
10109 return XCompositeRedirectWindow ();
10111 return 0;
10113 _ACEOF
10114 if ac_fn_c_try_link "$LINENO"; then :
10115 case "$LIBEXT" in
10116 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10117 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'` ;;
10118 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10119 if ${ac_cv_lib_soname_Xcomposite:+false} :; then :
10120 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10121 fi ;;
10122 esac
10124 rm -f core conftest.err conftest.$ac_objext \
10125 conftest$ac_exeext conftest.$ac_ext
10126 LIBS=$ac_check_soname_save_LIBS
10128 if ${ac_cv_lib_soname_Xcomposite:+false} :; then :
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10130 $as_echo "not found" >&6; }
10132 else
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
10134 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
10136 cat >>confdefs.h <<_ACEOF
10137 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10138 _ACEOF
10143 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
10144 case "x$with_xcomposite" in
10145 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
10146 xno) ;;
10147 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
10148 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
10149 esac
10152 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
10153 #include <X11/Xlib.h>
10154 #endif
10156 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
10158 cat >>confdefs.h <<_ACEOF
10159 #define HAVE_XICCALLBACK_CALLBACK 1
10160 _ACEOF
10164 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
10165 #include <X11/Xlib.h>
10166 #endif
10168 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
10170 cat >>confdefs.h <<_ACEOF
10171 #define HAVE_XEVENT_XCOOKIE 1
10172 _ACEOF
10179 opengl_msg=""
10180 if test "x$with_opengl" != "xno"
10181 then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10183 $as_echo_n "checking for -lGL... " >&6; }
10184 if ${ac_cv_lib_soname_GL+:} false; then :
10185 $as_echo_n "(cached) " >&6
10186 else
10187 ac_check_soname_save_LIBS=$LIBS
10188 LIBS="-lGL $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190 /* end confdefs.h. */
10192 /* Override any GCC internal prototype to avoid an error.
10193 Use char because int might match the return type of a GCC
10194 builtin and then its argument prototype would still apply. */
10195 #ifdef __cplusplus
10196 extern "C"
10197 #endif
10198 char glXCreateContext ();
10200 main ()
10202 return glXCreateContext ();
10204 return 0;
10206 _ACEOF
10207 if ac_fn_c_try_link "$LINENO"; then :
10208 case "$LIBEXT" in
10209 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10210 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'` ;;
10211 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10212 if ${ac_cv_lib_soname_GL:+false} :; then :
10213 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10214 fi ;;
10215 esac
10217 rm -f core conftest.err conftest.$ac_objext \
10218 conftest$ac_exeext conftest.$ac_ext
10219 LIBS=$ac_check_soname_save_LIBS
10221 if ${ac_cv_lib_soname_GL:+false} :; then :
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10223 $as_echo "not found" >&6; }
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
10225 $as_echo_n "checking for -lGL... " >&6; }
10226 if ${ac_cv_lib_soname_GL+:} false; then :
10227 $as_echo_n "(cached) " >&6
10228 else
10229 ac_check_soname_save_LIBS=$LIBS
10230 LIBS="-lGL $X_LIBS -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib $LIBS"
10231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10232 /* end confdefs.h. */
10234 /* Override any GCC internal prototype to avoid an error.
10235 Use char because int might match the return type of a GCC
10236 builtin and then its argument prototype would still apply. */
10237 #ifdef __cplusplus
10238 extern "C"
10239 #endif
10240 char glXCreateContext ();
10242 main ()
10244 return glXCreateContext ();
10246 return 0;
10248 _ACEOF
10249 if ac_fn_c_try_link "$LINENO"; then :
10250 case "$LIBEXT" in
10251 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10252 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'` ;;
10253 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10254 if ${ac_cv_lib_soname_GL:+false} :; then :
10255 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10256 fi ;;
10257 esac
10259 rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261 LIBS=$ac_check_soname_save_LIBS
10263 if ${ac_cv_lib_soname_GL:+false} :; then :
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10265 $as_echo "not found" >&6; }
10266 if test -f /usr/X11R6/lib/libGL.a
10267 then
10268 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
10269 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10270 else
10271 opengl_msg="No OpenGL library found on this system."
10273 else
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10275 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10277 cat >>confdefs.h <<_ACEOF
10278 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10279 _ACEOF
10281 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"
10283 else
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
10285 $as_echo "$ac_cv_lib_soname_GL" >&6; }
10287 cat >>confdefs.h <<_ACEOF
10288 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10289 _ACEOF
10291 OPENGL_LIBS="-lGL"
10293 if test "x$with_glu" != "xno"
10294 then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
10296 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
10297 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
10298 $as_echo_n "(cached) " >&6
10299 else
10300 ac_check_lib_save_LIBS=$LIBS
10301 LIBS="-lGLU $OPENGL_LIBS $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10305 /* Override any GCC internal prototype to avoid an error.
10306 Use char because int might match the return type of a GCC
10307 builtin and then its argument prototype would still apply. */
10308 #ifdef __cplusplus
10309 extern "C"
10310 #endif
10311 char gluLookAt ();
10313 main ()
10315 return gluLookAt ();
10317 return 0;
10319 _ACEOF
10320 if ac_fn_c_try_link "$LINENO"; then :
10321 ac_cv_lib_GLU_gluLookAt=yes
10322 else
10323 ac_cv_lib_GLU_gluLookAt=no
10325 rm -f core conftest.err conftest.$ac_objext \
10326 conftest$ac_exeext conftest.$ac_ext
10327 LIBS=$ac_check_lib_save_LIBS
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
10330 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
10331 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
10335 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
10336 case "x$with_glu" in
10337 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
10338 xno) ;;
10339 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
10340 This is an error since --with-glu was requested." "$LINENO" 5 ;;
10341 esac
10345 if test "x$with_osmesa" != "xno"
10346 then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
10348 $as_echo_n "checking for -lOSMesa... " >&6; }
10349 if ${ac_cv_lib_soname_OSMesa+:} false; then :
10350 $as_echo_n "(cached) " >&6
10351 else
10352 ac_check_soname_save_LIBS=$LIBS
10353 LIBS="-lOSMesa $X_LIBS -lm $X_EXTRA_LIBS $LIBS"
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10357 /* Override any GCC internal prototype to avoid an error.
10358 Use char because int might match the return type of a GCC
10359 builtin and then its argument prototype would still apply. */
10360 #ifdef __cplusplus
10361 extern "C"
10362 #endif
10363 char glAccum ();
10365 main ()
10367 return glAccum ();
10369 return 0;
10371 _ACEOF
10372 if ac_fn_c_try_link "$LINENO"; then :
10373 case "$LIBEXT" in
10374 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10375 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'` ;;
10376 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10377 if ${ac_cv_lib_soname_OSMesa:+false} :; then :
10378 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10379 fi ;;
10380 esac
10382 rm -f core conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_soname_save_LIBS
10386 if ${ac_cv_lib_soname_OSMesa:+false} :; then :
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10388 $as_echo "not found" >&6; }
10390 else
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10392 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10394 cat >>confdefs.h <<_ACEOF
10395 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10396 _ACEOF
10400 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10401 case "x$with_osmesa" in
10402 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10403 xno) ;;
10404 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10405 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10406 esac
10410 if test -n "$opengl_msg"; then :
10411 case "x$with_opengl" in
10412 x) as_fn_append wine_warnings "|$opengl_msg
10413 OpenGL and Direct3D won't be supported." ;;
10414 xno) ;;
10415 *) as_fn_error $? "$opengl_msg
10416 OpenGL and Direct3D won't be supported.
10417 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10418 esac
10421 CPPFLAGS="$ac_save_CPPFLAGS"
10422 else
10423 X_CFLAGS=""
10424 X_LIBS=""
10425 enable_winex11_drv=${enable_winex11_drv:-no}
10427 if test "x$X_LIBS" = "x"; then :
10428 case "x$with_x" in
10429 xno) ;;
10430 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10431 without X support, which probably isn't what you want. You will need
10432 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10433 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10434 esac
10437 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10439 if test "$ac_cv_header_CL_cl_h" = "yes"
10440 then
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10442 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10443 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 ac_check_lib_save_LIBS=$LIBS
10447 LIBS="-lOpenCL $LIBS"
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10451 /* Override any GCC internal prototype to avoid an error.
10452 Use char because int might match the return type of a GCC
10453 builtin and then its argument prototype would still apply. */
10454 #ifdef __cplusplus
10455 extern "C"
10456 #endif
10457 char clGetPlatformInfo ();
10459 main ()
10461 return clGetPlatformInfo ();
10463 return 0;
10465 _ACEOF
10466 if ac_fn_c_try_link "$LINENO"; then :
10467 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10468 else
10469 ac_cv_lib_OpenCL_clGetPlatformInfo=no
10471 rm -f core conftest.err conftest.$ac_objext \
10472 conftest$ac_exeext conftest.$ac_ext
10473 LIBS=$ac_check_lib_save_LIBS
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
10476 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10477 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10478 OPENCL_LIBS="-lOpenCL"
10483 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10484 case "x$with_opencl" in
10485 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10486 xno) ;;
10487 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10488 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10489 esac
10491 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10494 if test "x$with_xml" != "xno"
10495 then
10496 if ${XML2_CFLAGS:+false} :; then :
10497 if ${PKG_CONFIG+:} false; then :
10498 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10501 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10502 if ${XML2_LIBS:+false} :; then :
10503 if ${PKG_CONFIG+:} false; then :
10504 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10507 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10508 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10509 $as_echo "$as_me:${as_lineno-$LINENO}: libxml-2.0 cflags: $XML2_CFLAGS" >&5
10510 $as_echo "$as_me:${as_lineno-$LINENO}: libxml-2.0 libs: $XML2_LIBS" >&5
10511 ac_save_CPPFLAGS=$CPPFLAGS
10512 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10513 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10514 do :
10515 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10516 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10517 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10518 cat >>confdefs.h <<_ACEOF
10519 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10520 _ACEOF
10524 done
10526 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"
10527 then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10529 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10530 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10531 $as_echo_n "(cached) " >&6
10532 else
10533 ac_check_lib_save_LIBS=$LIBS
10534 LIBS="-lxml2 $XML2_LIBS $LIBS"
10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10538 /* Override any GCC internal prototype to avoid an error.
10539 Use char because int might match the return type of a GCC
10540 builtin and then its argument prototype would still apply. */
10541 #ifdef __cplusplus
10542 extern "C"
10543 #endif
10544 char xmlParseMemory ();
10546 main ()
10548 return xmlParseMemory ();
10550 return 0;
10552 _ACEOF
10553 if ac_fn_c_try_link "$LINENO"; then :
10554 ac_cv_lib_xml2_xmlParseMemory=yes
10555 else
10556 ac_cv_lib_xml2_xmlParseMemory=no
10558 rm -f core conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 LIBS=$ac_check_lib_save_LIBS
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10563 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10564 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10566 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10568 else
10569 XML2_LIBS=""
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10573 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10574 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
10575 $as_echo_n "(cached) " >&6
10576 else
10577 ac_check_lib_save_LIBS=$LIBS
10578 LIBS="-lxml2 $XML2_LIBS $LIBS"
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10582 /* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10585 #ifdef __cplusplus
10586 extern "C"
10587 #endif
10588 char xmlReadMemory ();
10590 main ()
10592 return xmlReadMemory ();
10594 return 0;
10596 _ACEOF
10597 if ac_fn_c_try_link "$LINENO"; then :
10598 ac_cv_lib_xml2_xmlReadMemory=yes
10599 else
10600 ac_cv_lib_xml2_xmlReadMemory=no
10602 rm -f core conftest.err conftest.$ac_objext \
10603 conftest$ac_exeext conftest.$ac_ext
10604 LIBS=$ac_check_lib_save_LIBS
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10607 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10608 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10610 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10615 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10616 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619 ac_check_lib_save_LIBS=$LIBS
10620 LIBS="-lxml2 $XML2_LIBS $LIBS"
10621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622 /* end confdefs.h. */
10624 /* Override any GCC internal prototype to avoid an error.
10625 Use char because int might match the return type of a GCC
10626 builtin and then its argument prototype would still apply. */
10627 #ifdef __cplusplus
10628 extern "C"
10629 #endif
10630 char xmlNewDocPI ();
10632 main ()
10634 return xmlNewDocPI ();
10636 return 0;
10638 _ACEOF
10639 if ac_fn_c_try_link "$LINENO"; then :
10640 ac_cv_lib_xml2_xmlNewDocPI=yes
10641 else
10642 ac_cv_lib_xml2_xmlNewDocPI=no
10644 rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 LIBS=$ac_check_lib_save_LIBS
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10649 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10650 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10652 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10657 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10658 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
10659 $as_echo_n "(cached) " >&6
10660 else
10661 ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-lxml2 $XML2_LIBS $LIBS"
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10666 /* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10669 #ifdef __cplusplus
10670 extern "C"
10671 #endif
10672 char xmlSchemaSetParserStructuredErrors ();
10674 main ()
10676 return xmlSchemaSetParserStructuredErrors ();
10678 return 0;
10680 _ACEOF
10681 if ac_fn_c_try_link "$LINENO"; then :
10682 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10683 else
10684 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
10686 rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
10688 LIBS=$ac_check_lib_save_LIBS
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
10691 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10692 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10694 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10699 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10700 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
10701 $as_echo_n "(cached) " >&6
10702 else
10703 ac_check_lib_save_LIBS=$LIBS
10704 LIBS="-lxml2 $XML2_LIBS $LIBS"
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10708 /* Override any GCC internal prototype to avoid an error.
10709 Use char because int might match the return type of a GCC
10710 builtin and then its argument prototype would still apply. */
10711 #ifdef __cplusplus
10712 extern "C"
10713 #endif
10714 char xmlSchemaSetValidStructuredErrors ();
10716 main ()
10718 return xmlSchemaSetValidStructuredErrors ();
10720 return 0;
10722 _ACEOF
10723 if ac_fn_c_try_link "$LINENO"; then :
10724 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
10725 else
10726 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
10728 rm -f core conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_check_lib_save_LIBS
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
10733 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
10734 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
10736 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
10741 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
10742 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
10743 $as_echo_n "(cached) " >&6
10744 else
10745 ac_check_lib_save_LIBS=$LIBS
10746 LIBS="-lxml2 $XML2_LIBS $LIBS"
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10750 /* Override any GCC internal prototype to avoid an error.
10751 Use char because int might match the return type of a GCC
10752 builtin and then its argument prototype would still apply. */
10753 #ifdef __cplusplus
10754 extern "C"
10755 #endif
10756 char xmlFirstElementChild ();
10758 main ()
10760 return xmlFirstElementChild ();
10762 return 0;
10764 _ACEOF
10765 if ac_fn_c_try_link "$LINENO"; then :
10766 ac_cv_lib_xml2_xmlFirstElementChild=yes
10767 else
10768 ac_cv_lib_xml2_xmlFirstElementChild=no
10770 rm -f core conftest.err conftest.$ac_objext \
10771 conftest$ac_exeext conftest.$ac_ext
10772 LIBS=$ac_check_lib_save_LIBS
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
10775 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
10776 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
10778 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
10782 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
10784 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
10786 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
10790 else
10791 XML2_CFLAGS=""
10792 XML2_LIBS=""
10794 CPPFLAGS=$ac_save_CPPFLAGS
10795 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10796 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10799 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
10800 case "x$with_xml" in
10801 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
10802 xno) ;;
10803 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
10804 This is an error since --with-xml was requested." "$LINENO" 5 ;;
10805 esac
10808 if test "x$with_xslt" != "xno"
10809 then
10810 if ${XSLT_CFLAGS:+false} :; then :
10811 if ${PKG_CONFIG+:} false; then :
10812 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
10815 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
10816 if ${XSLT_LIBS:+false} :; then :
10817 if ${PKG_CONFIG+:} false; then :
10818 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
10821 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
10822 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
10823 $as_echo "$as_me:${as_lineno-$LINENO}: libxslt cflags: $XSLT_CFLAGS" >&5
10824 $as_echo "$as_me:${as_lineno-$LINENO}: libxslt libs: $XSLT_LIBS" >&5
10825 ac_save_CPPFLAGS=$CPPFLAGS
10826 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
10827 for ac_header in libxslt/pattern.h libxslt/transform.h
10828 do :
10829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10830 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
10831 # include <libxslt/pattern.h>
10832 #endif
10834 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10835 cat >>confdefs.h <<_ACEOF
10836 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10837 _ACEOF
10841 done
10843 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10844 then
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10846 $as_echo_n "checking for -lxslt... " >&6; }
10847 if ${ac_cv_lib_soname_xslt+:} false; then :
10848 $as_echo_n "(cached) " >&6
10849 else
10850 ac_check_soname_save_LIBS=$LIBS
10851 LIBS="-lxslt $XSLT_LIBS $LIBS"
10852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10853 /* end confdefs.h. */
10855 /* Override any GCC internal prototype to avoid an error.
10856 Use char because int might match the return type of a GCC
10857 builtin and then its argument prototype would still apply. */
10858 #ifdef __cplusplus
10859 extern "C"
10860 #endif
10861 char xsltCompilePattern ();
10863 main ()
10865 return xsltCompilePattern ();
10867 return 0;
10869 _ACEOF
10870 if ac_fn_c_try_link "$LINENO"; then :
10871 case "$LIBEXT" in
10872 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10873 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'` ;;
10874 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10875 if ${ac_cv_lib_soname_xslt:+false} :; then :
10876 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10877 fi ;;
10878 esac
10880 rm -f core conftest.err conftest.$ac_objext \
10881 conftest$ac_exeext conftest.$ac_ext
10882 LIBS=$ac_check_soname_save_LIBS
10884 if ${ac_cv_lib_soname_xslt:+false} :; then :
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10886 $as_echo "not found" >&6; }
10888 else
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10890 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10892 cat >>confdefs.h <<_ACEOF
10893 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10894 _ACEOF
10898 else
10899 XSLT_CFLAGS=""
10901 CPPFLAGS=$ac_save_CPPFLAGS
10902 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10903 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10906 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10907 case "x$with_xslt" in
10908 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10909 xno) ;;
10910 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10911 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10912 esac
10915 if test "x$with_dbus" != "xno"
10916 then
10917 if ${DBUS_CFLAGS:+false} :; then :
10918 if ${PKG_CONFIG+:} false; then :
10919 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10923 if ${DBUS_LIBS:+false} :; then :
10924 if ${PKG_CONFIG+:} false; then :
10925 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10930 $as_echo "$as_me:${as_lineno-$LINENO}: dbus-1 cflags: $DBUS_CFLAGS" >&5
10931 $as_echo "$as_me:${as_lineno-$LINENO}: dbus-1 libs: $DBUS_LIBS" >&5
10932 ac_save_CPPFLAGS=$CPPFLAGS
10933 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10934 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10935 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10937 $as_echo_n "checking for -ldbus-1... " >&6; }
10938 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10939 $as_echo_n "(cached) " >&6
10940 else
10941 ac_check_soname_save_LIBS=$LIBS
10942 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10946 /* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
10949 #ifdef __cplusplus
10950 extern "C"
10951 #endif
10952 char dbus_connection_close ();
10954 main ()
10956 return dbus_connection_close ();
10958 return 0;
10960 _ACEOF
10961 if ac_fn_c_try_link "$LINENO"; then :
10962 case "$LIBEXT" in
10963 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10964 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'` ;;
10965 *) 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'`
10966 if ${ac_cv_lib_soname_dbus_1:+false} :; then :
10967 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10968 fi ;;
10969 esac
10971 rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
10973 LIBS=$ac_check_soname_save_LIBS
10975 if ${ac_cv_lib_soname_dbus_1:+false} :; then :
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10977 $as_echo "not found" >&6; }
10978 DBUS_CFLAGS=""
10979 else
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10981 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10983 cat >>confdefs.h <<_ACEOF
10984 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10985 _ACEOF
10989 else
10990 DBUS_CFLAGS=""
10994 CPPFLAGS=$ac_save_CPPFLAGS
10995 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10996 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10999 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
11000 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11001 case "x$with_dbus" in
11002 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
11003 xno) ;;
11004 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
11005 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
11006 esac
11009 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
11010 then
11011 if ${HAL_CFLAGS:+false} :; then :
11012 if ${PKG_CONFIG+:} false; then :
11013 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
11017 if ${HAL_LIBS:+false} :; then :
11018 if ${PKG_CONFIG+:} false; then :
11019 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
11023 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
11024 $as_echo "$as_me:${as_lineno-$LINENO}: hal cflags: $HAL_CFLAGS" >&5
11025 $as_echo "$as_me:${as_lineno-$LINENO}: hal libs: $HAL_LIBS" >&5
11026 ac_save_CPPFLAGS=$CPPFLAGS
11027 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
11028 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
11029 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
11031 $as_echo_n "checking for -lhal... " >&6; }
11032 if ${ac_cv_lib_soname_hal+:} false; then :
11033 $as_echo_n "(cached) " >&6
11034 else
11035 ac_check_soname_save_LIBS=$LIBS
11036 LIBS="-lhal $HAL_LIBS $LIBS"
11037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h. */
11040 /* Override any GCC internal prototype to avoid an error.
11041 Use char because int might match the return type of a GCC
11042 builtin and then its argument prototype would still apply. */
11043 #ifdef __cplusplus
11044 extern "C"
11045 #endif
11046 char libhal_ctx_new ();
11048 main ()
11050 return libhal_ctx_new ();
11052 return 0;
11054 _ACEOF
11055 if ac_fn_c_try_link "$LINENO"; then :
11056 case "$LIBEXT" in
11057 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11058 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'` ;;
11059 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11060 if ${ac_cv_lib_soname_hal:+false} :; then :
11061 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11062 fi ;;
11063 esac
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_soname_save_LIBS
11069 if ${ac_cv_lib_soname_hal:+false} :; then :
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11071 $as_echo "not found" >&6; }
11072 HAL_CFLAGS=""
11073 else
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
11075 $as_echo "$ac_cv_lib_soname_hal" >&6; }
11077 cat >>confdefs.h <<_ACEOF
11078 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
11079 _ACEOF
11083 else
11084 HAL_CFLAGS=""
11088 CPPFLAGS=$ac_save_CPPFLAGS
11089 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11090 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11092 if test "x$ac_cv_lib_soname_hal" = "x" -a \
11093 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
11094 case "x$with_hal" in
11095 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
11096 xno) ;;
11097 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
11098 This is an error since --with-hal was requested." "$LINENO" 5 ;;
11099 esac
11103 if test "x$with_gnutls" != "xno"
11104 then
11105 if ${GNUTLS_CFLAGS:+false} :; then :
11106 if ${PKG_CONFIG+:} false; then :
11107 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
11111 if ${GNUTLS_LIBS:+false} :; then :
11112 if ${PKG_CONFIG+:} false; then :
11113 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
11118 $as_echo "$as_me:${as_lineno-$LINENO}: gnutls cflags: $GNUTLS_CFLAGS" >&5
11119 $as_echo "$as_me:${as_lineno-$LINENO}: gnutls libs: $GNUTLS_LIBS" >&5
11120 ac_save_CPPFLAGS=$CPPFLAGS
11121 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
11122 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
11123 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11126 #include <gnutls/gnutls.h>
11127 #include <gnutls/crypto.h>
11129 main ()
11131 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
11133 return 0;
11135 _ACEOF
11136 if ac_fn_c_try_compile "$LINENO"; then :
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
11138 $as_echo_n "checking for -lgnutls... " >&6; }
11139 if ${ac_cv_lib_soname_gnutls+:} false; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 ac_check_soname_save_LIBS=$LIBS
11143 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 /* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11150 #ifdef __cplusplus
11151 extern "C"
11152 #endif
11153 char gnutls_global_init ();
11155 main ()
11157 return gnutls_global_init ();
11159 return 0;
11161 _ACEOF
11162 if ac_fn_c_try_link "$LINENO"; then :
11163 case "$LIBEXT" in
11164 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11165 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'` ;;
11166 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11167 if ${ac_cv_lib_soname_gnutls:+false} :; then :
11168 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11169 fi ;;
11170 esac
11172 rm -f core conftest.err conftest.$ac_objext \
11173 conftest$ac_exeext conftest.$ac_ext
11174 LIBS=$ac_check_soname_save_LIBS
11176 if ${ac_cv_lib_soname_gnutls:+false} :; then :
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11178 $as_echo "not found" >&6; }
11179 GNUTLS_CFLAGS=""
11180 else
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
11182 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
11184 cat >>confdefs.h <<_ACEOF
11185 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
11186 _ACEOF
11191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11192 else
11193 GNUTLS_CFLAGS=""
11197 CPPFLAGS=$ac_save_CPPFLAGS
11198 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11199 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11202 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
11203 case "x$with_gnutls" in
11204 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
11205 xno) ;;
11206 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
11207 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
11208 esac
11211 CURSES_LIBS=""
11212 if test "$ac_cv_header_ncurses_h" = "yes"
11213 then
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
11215 $as_echo_n "checking for -lncurses... " >&6; }
11216 if ${ac_cv_lib_soname_ncurses+:} false; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 ac_check_soname_save_LIBS=$LIBS
11220 LIBS="-lncurses $LIBS"
11221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11224 /* Override any GCC internal prototype to avoid an error.
11225 Use char because int might match the return type of a GCC
11226 builtin and then its argument prototype would still apply. */
11227 #ifdef __cplusplus
11228 extern "C"
11229 #endif
11230 char waddch ();
11232 main ()
11234 return waddch ();
11236 return 0;
11238 _ACEOF
11239 if ac_fn_c_try_link "$LINENO"; then :
11240 case "$LIBEXT" in
11241 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11242 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'` ;;
11243 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11244 if ${ac_cv_lib_soname_ncurses:+false} :; then :
11245 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11246 fi ;;
11247 esac
11249 rm -f core conftest.err conftest.$ac_objext \
11250 conftest$ac_exeext conftest.$ac_ext
11251 LIBS=$ac_check_soname_save_LIBS
11253 if ${ac_cv_lib_soname_ncurses:+false} :; then :
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11255 $as_echo "not found" >&6; }
11257 else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
11259 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
11261 cat >>confdefs.h <<_ACEOF
11262 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11263 _ACEOF
11265 CURSES_LIBS="-lncurses"
11267 elif test "$ac_cv_header_curses_h" = "yes"
11268 then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
11270 $as_echo_n "checking for -lcurses... " >&6; }
11271 if ${ac_cv_lib_soname_curses+:} false; then :
11272 $as_echo_n "(cached) " >&6
11273 else
11274 ac_check_soname_save_LIBS=$LIBS
11275 LIBS="-lcurses $LIBS"
11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h. */
11279 /* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
11282 #ifdef __cplusplus
11283 extern "C"
11284 #endif
11285 char waddch ();
11287 main ()
11289 return waddch ();
11291 return 0;
11293 _ACEOF
11294 if ac_fn_c_try_link "$LINENO"; then :
11295 case "$LIBEXT" in
11296 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11297 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'` ;;
11298 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11299 if ${ac_cv_lib_soname_curses:+false} :; then :
11300 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11301 fi ;;
11302 esac
11304 rm -f core conftest.err conftest.$ac_objext \
11305 conftest$ac_exeext conftest.$ac_ext
11306 LIBS=$ac_check_soname_save_LIBS
11308 if ${ac_cv_lib_soname_curses:+false} :; then :
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11310 $as_echo "not found" >&6; }
11312 else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
11314 $as_echo "$ac_cv_lib_soname_curses" >&6; }
11316 cat >>confdefs.h <<_ACEOF
11317 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11318 _ACEOF
11320 CURSES_LIBS="-lcurses"
11323 ac_save_LIBS="$LIBS"
11324 LIBS="$LIBS $CURSES_LIBS"
11325 for ac_func in mousemask
11326 do :
11327 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
11328 if test "x$ac_cv_func_mousemask" = xyes; then :
11329 cat >>confdefs.h <<_ACEOF
11330 #define HAVE_MOUSEMASK 1
11331 _ACEOF
11334 done
11336 LIBS="$ac_save_LIBS"
11337 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
11338 case "x$with_curses" in
11339 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
11340 xno) ;;
11341 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
11342 This is an error since --with-curses was requested." "$LINENO" 5 ;;
11343 esac
11346 if test "x$with_sane" != "xno"
11347 then
11348 if ${SANE_CFLAGS:+false} :; then :
11349 if ${PKG_CONFIG+:} false; then :
11350 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
11353 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
11354 if ${SANE_LIBS:+false} :; then :
11355 if ${PKG_CONFIG+:} false; then :
11356 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
11359 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
11361 $as_echo "$as_me:${as_lineno-$LINENO}: libsane cflags: $SANE_CFLAGS" >&5
11362 $as_echo "$as_me:${as_lineno-$LINENO}: libsane libs: $SANE_LIBS" >&5
11363 ac_save_CPPFLAGS=$CPPFLAGS
11364 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
11365 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
11366 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
11368 $as_echo_n "checking for -lsane... " >&6; }
11369 if ${ac_cv_lib_soname_sane+:} false; then :
11370 $as_echo_n "(cached) " >&6
11371 else
11372 ac_check_soname_save_LIBS=$LIBS
11373 LIBS="-lsane $SANE_LIBS $LIBS"
11374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h. */
11377 /* Override any GCC internal prototype to avoid an error.
11378 Use char because int might match the return type of a GCC
11379 builtin and then its argument prototype would still apply. */
11380 #ifdef __cplusplus
11381 extern "C"
11382 #endif
11383 char sane_init ();
11385 main ()
11387 return sane_init ();
11389 return 0;
11391 _ACEOF
11392 if ac_fn_c_try_link "$LINENO"; then :
11393 case "$LIBEXT" in
11394 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11395 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'` ;;
11396 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11397 if ${ac_cv_lib_soname_sane:+false} :; then :
11398 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11399 fi ;;
11400 esac
11402 rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11404 LIBS=$ac_check_soname_save_LIBS
11406 if ${ac_cv_lib_soname_sane:+false} :; then :
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11408 $as_echo "not found" >&6; }
11409 SANE_CFLAGS=""
11410 else
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11412 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11414 cat >>confdefs.h <<_ACEOF
11415 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11416 _ACEOF
11420 else
11421 SANE_CFLAGS=""
11425 CPPFLAGS=$ac_save_CPPFLAGS
11426 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11427 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11430 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11431 case "x$with_sane" in
11432 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11433 xno) ;;
11434 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11435 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11436 esac
11439 if test "x$with_v4l" != "xno"
11440 then
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11442 $as_echo_n "checking for -lv4l1... " >&6; }
11443 if ${ac_cv_lib_soname_v4l1+:} false; then :
11444 $as_echo_n "(cached) " >&6
11445 else
11446 ac_check_soname_save_LIBS=$LIBS
11447 LIBS="-lv4l1 $LIBS"
11448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11449 /* end confdefs.h. */
11451 /* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
11454 #ifdef __cplusplus
11455 extern "C"
11456 #endif
11457 char v4l1_open ();
11459 main ()
11461 return v4l1_open ();
11463 return 0;
11465 _ACEOF
11466 if ac_fn_c_try_link "$LINENO"; then :
11467 case "$LIBEXT" in
11468 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11469 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'` ;;
11470 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11471 if ${ac_cv_lib_soname_v4l1:+false} :; then :
11472 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11473 fi ;;
11474 esac
11476 rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478 LIBS=$ac_check_soname_save_LIBS
11480 if ${ac_cv_lib_soname_v4l1:+false} :; then :
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11482 $as_echo "not found" >&6; }
11484 else
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11486 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11488 cat >>confdefs.h <<_ACEOF
11489 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11490 _ACEOF
11495 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11496 case "x$with_v4l" in
11497 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11498 xno) ;;
11499 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11500 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11501 esac
11504 if test "x$with_gphoto" != "xno"
11505 then
11506 if ${GPHOTO2_CFLAGS:+false} :; then :
11507 if ${PKG_CONFIG+:} false; then :
11508 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11511 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11512 if ${GPHOTO2_LIBS:+false} :; then :
11513 if ${PKG_CONFIG+:} false; then :
11514 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11517 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11518 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11519 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2 cflags: $GPHOTO2_CFLAGS" >&5
11520 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2 libs: $GPHOTO2_LIBS" >&5
11521 ac_save_CPPFLAGS=$CPPFLAGS
11522 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11523 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11524 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11526 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11527 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11528 $as_echo_n "(cached) " >&6
11529 else
11530 ac_check_lib_save_LIBS=$LIBS
11531 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11535 /* Override any GCC internal prototype to avoid an error.
11536 Use char because int might match the return type of a GCC
11537 builtin and then its argument prototype would still apply. */
11538 #ifdef __cplusplus
11539 extern "C"
11540 #endif
11541 char gp_camera_new ();
11543 main ()
11545 return gp_camera_new ();
11547 return 0;
11549 _ACEOF
11550 if ac_fn_c_try_link "$LINENO"; then :
11551 ac_cv_lib_gphoto2_gp_camera_new=yes
11552 else
11553 ac_cv_lib_gphoto2_gp_camera_new=no
11555 rm -f core conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext
11557 LIBS=$ac_check_lib_save_LIBS
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11560 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11561 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11563 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11565 else
11566 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11569 else
11570 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11574 CPPFLAGS=$ac_save_CPPFLAGS
11575 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11576 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11578 if ${GPHOTO2_PORT_CFLAGS:+false} :; then :
11579 if ${PKG_CONFIG+:} false; then :
11580 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11583 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11584 if ${GPHOTO2_PORT_LIBS:+false} :; then :
11585 if ${PKG_CONFIG+:} false; then :
11586 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11589 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11590 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11591 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2_port cflags: $GPHOTO2_PORT_CFLAGS" >&5
11592 $as_echo "$as_me:${as_lineno-$LINENO}: libgphoto2_port libs: $GPHOTO2_PORT_LIBS" >&5
11593 ac_save_CPPFLAGS=$CPPFLAGS
11594 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11595 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11596 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11598 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11599 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601 else
11602 ac_check_lib_save_LIBS=$LIBS
11603 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11607 /* Override any GCC internal prototype to avoid an error.
11608 Use char because int might match the return type of a GCC
11609 builtin and then its argument prototype would still apply. */
11610 #ifdef __cplusplus
11611 extern "C"
11612 #endif
11613 char gp_port_info_list_new ();
11615 main ()
11617 return gp_port_info_list_new ();
11619 return 0;
11621 _ACEOF
11622 if ac_fn_c_try_link "$LINENO"; then :
11623 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11624 else
11625 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11627 rm -f core conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext conftest.$ac_ext
11629 LIBS=$ac_check_lib_save_LIBS
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11632 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11633 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11635 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11637 else
11638 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11641 else
11642 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11646 CPPFLAGS=$ac_save_CPPFLAGS
11647 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11648 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11651 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11652 case "x$with_gphoto" in
11653 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11654 xno) ;;
11655 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11656 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11657 esac
11659 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11660 case "x$with_gphoto" in
11661 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11662 xno) ;;
11663 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11664 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11665 esac
11669 if test "$ac_cv_header_resolv_h" = "yes"
11670 then
11671 ac_save_LIBS="$LIBS"
11672 for lib in '' -lresolv
11674 LIBS="$lib $ac_save_LIBS"
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11677 #ifdef HAVE_NETINET_IN_H
11678 #include <netinet/in.h>
11679 #endif
11680 #include <resolv.h>
11682 main ()
11684 res_query("foo",ns_c_in,0,0,0);
11686 return 0;
11688 _ACEOF
11689 if ac_fn_c_try_link "$LINENO"; then :
11691 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11693 RESOLV_LIBS="$lib"
11696 rm -f core conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
11698 if test "${RESOLV_LIBS+set}" = set; then
11699 break
11701 done
11702 LIBS="$ac_save_LIBS"
11705 if test "x$with_lcms2" != "xno"
11706 then
11707 if ${LCMS2_CFLAGS:+false} :; then :
11708 if ${PKG_CONFIG+:} false; then :
11709 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
11713 if ${LCMS2_LIBS:+false} :; then :
11714 if ${PKG_CONFIG+:} false; then :
11715 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
11719 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
11720 $as_echo "$as_me:${as_lineno-$LINENO}: lcms2 cflags: $LCMS2_CFLAGS" >&5
11721 $as_echo "$as_me:${as_lineno-$LINENO}: lcms2 libs: $LCMS2_LIBS" >&5
11722 ac_save_CPPFLAGS=$CPPFLAGS
11723 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
11724 for ac_header in lcms2.h
11725 do :
11726 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
11727 if test "x$ac_cv_header_lcms2_h" = xyes; then :
11728 cat >>confdefs.h <<_ACEOF
11729 #define HAVE_LCMS2_H 1
11730 _ACEOF
11734 done
11736 if test "$ac_cv_header_lcms2_h" = "yes"
11737 then
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
11739 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
11740 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 ac_check_lib_save_LIBS=$LIBS
11744 LIBS="-llcms2 $LIBS"
11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h. */
11748 /* Override any GCC internal prototype to avoid an error.
11749 Use char because int might match the return type of a GCC
11750 builtin and then its argument prototype would still apply. */
11751 #ifdef __cplusplus
11752 extern "C"
11753 #endif
11754 char cmsOpenProfileFromFile ();
11756 main ()
11758 return cmsOpenProfileFromFile ();
11760 return 0;
11762 _ACEOF
11763 if ac_fn_c_try_link "$LINENO"; then :
11764 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
11765 else
11766 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
11768 rm -f core conftest.err conftest.$ac_objext \
11769 conftest$ac_exeext conftest.$ac_ext
11770 LIBS=$ac_check_lib_save_LIBS
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
11773 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
11774 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
11776 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
11778 else
11779 LCMS2_LIBS=""
11782 else
11783 LCMS2_CFLAGS=""
11784 LCMS2_LIBS=""
11786 CPPFLAGS=$ac_save_CPPFLAGS
11787 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11788 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11791 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
11792 case "x$with_cms" in
11793 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
11794 xno) ;;
11795 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
11796 This is an error since --with-cms was requested." "$LINENO" 5 ;;
11797 esac
11800 if test "x$with_freetype" != "xno"
11801 then
11802 if ${FREETYPE_CFLAGS:+false} :; then :
11803 if ${PKG_CONFIG+:} false; then :
11804 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
11807 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
11808 if ${FREETYPE_LIBS:+false} :; then :
11809 if ${PKG_CONFIG+:} false; then :
11810 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
11813 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
11814 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
11815 $as_echo "$as_me:${as_lineno-$LINENO}: freetype2 cflags: $FREETYPE_CFLAGS" >&5
11816 $as_echo "$as_me:${as_lineno-$LINENO}: freetype2 libs: $FREETYPE_LIBS" >&5
11817 ac_save_CPPFLAGS=$CPPFLAGS
11818 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
11819 for ac_header in ft2build.h
11820 do :
11821 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
11822 if test "x$ac_cv_header_ft2build_h" = xyes; then :
11823 cat >>confdefs.h <<_ACEOF
11824 #define HAVE_FT2BUILD_H 1
11825 _ACEOF
11829 done
11831 if test "$ac_cv_header_ft2build_h" = "yes"
11832 then
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
11834 $as_echo_n "checking for -lfreetype... " >&6; }
11835 if ${ac_cv_lib_soname_freetype+:} false; then :
11836 $as_echo_n "(cached) " >&6
11837 else
11838 ac_check_soname_save_LIBS=$LIBS
11839 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11843 /* Override any GCC internal prototype to avoid an error.
11844 Use char because int might match the return type of a GCC
11845 builtin and then its argument prototype would still apply. */
11846 #ifdef __cplusplus
11847 extern "C"
11848 #endif
11849 char FT_Init_FreeType ();
11851 main ()
11853 return FT_Init_FreeType ();
11855 return 0;
11857 _ACEOF
11858 if ac_fn_c_try_link "$LINENO"; then :
11859 case "$LIBEXT" in
11860 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11861 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'` ;;
11862 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11863 if ${ac_cv_lib_soname_freetype:+false} :; then :
11864 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11865 fi ;;
11866 esac
11868 rm -f core conftest.err conftest.$ac_objext \
11869 conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_soname_save_LIBS
11872 if ${ac_cv_lib_soname_freetype:+false} :; then :
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11874 $as_echo "not found" >&6; }
11875 FREETYPE_LIBS=""
11876 else
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
11878 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
11880 cat >>confdefs.h <<_ACEOF
11881 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11882 _ACEOF
11885 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11887 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <ft2build.h>
11888 #include FT_MODULE_H
11890 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
11892 cat >>confdefs.h <<_ACEOF
11893 #define HAVE_FT_TRUETYPEENGINETYPE 1
11894 _ACEOF
11900 else
11901 FREETYPE_CFLAGS=""
11902 FREETYPE_LIBS=""
11904 CPPFLAGS=$ac_save_CPPFLAGS
11905 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11906 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11909 if test "x$ac_cv_lib_soname_freetype" = x; then :
11910 case "x$with_freetype" in
11911 xno) ;;
11912 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
11913 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
11914 esac
11916 test "x$ac_cv_lib_soname_freetype" = x && enable_fonts=${enable_fonts:-no}
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
11919 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
11920 if ${ac_cv_c_ppdev+:} false; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11925 #ifdef HAVE_SYS_IOCTL_H
11926 # include <sys/ioctl.h>
11927 #endif
11928 #include <linux/ppdev.h>
11930 main ()
11932 ioctl (1,PPCLAIM,0)
11934 return 0;
11936 _ACEOF
11937 if ac_fn_c_try_compile "$LINENO"; then :
11938 ac_cv_c_ppdev="yes"
11939 else
11940 ac_cv_c_ppdev="no"
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11945 $as_echo "$ac_cv_c_ppdev" >&6; }
11946 if test "$ac_cv_c_ppdev" = "yes"
11947 then
11949 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11953 ac_wine_check_funcs_save_LIBS="$LIBS"
11954 LIBS="$LIBS $PTHREAD_LIBS"
11955 for ac_func in \
11956 pthread_attr_get_np \
11957 pthread_getattr_np \
11958 pthread_getthreadid_np \
11959 pthread_get_stackaddr_np \
11960 pthread_get_stacksize_np
11961 do :
11962 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11963 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11964 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11965 cat >>confdefs.h <<_ACEOF
11966 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11967 _ACEOF
11970 done
11972 LIBS="$ac_wine_check_funcs_save_LIBS"
11974 if test "$ac_cv_header_zlib_h" = "yes"
11975 then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11977 $as_echo_n "checking for inflate in -lz... " >&6; }
11978 if ${ac_cv_lib_z_inflate+:} false; then :
11979 $as_echo_n "(cached) " >&6
11980 else
11981 ac_check_lib_save_LIBS=$LIBS
11982 LIBS="-lz $LIBS"
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h. */
11986 /* Override any GCC internal prototype to avoid an error.
11987 Use char because int might match the return type of a GCC
11988 builtin and then its argument prototype would still apply. */
11989 #ifdef __cplusplus
11990 extern "C"
11991 #endif
11992 char inflate ();
11994 main ()
11996 return inflate ();
11998 return 0;
12000 _ACEOF
12001 if ac_fn_c_try_link "$LINENO"; then :
12002 ac_cv_lib_z_inflate=yes
12003 else
12004 ac_cv_lib_z_inflate=no
12006 rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008 LIBS=$ac_check_lib_save_LIBS
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
12011 $as_echo "$ac_cv_lib_z_inflate" >&6; }
12012 if test "x$ac_cv_lib_z_inflate" = xyes; then :
12014 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12016 Z_LIBS="-lz"
12021 if test "x$Z_LIBS" = "x"; then :
12022 case "x$with_zlib" in
12023 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
12024 xno) ;;
12025 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
12026 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
12027 esac
12030 if test "x$enable_tools" != xno
12031 then
12032 if test "$ac_cv_header_gettext_po_h" = "yes"
12033 then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
12035 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
12036 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 ac_check_lib_save_LIBS=$LIBS
12040 LIBS="-lgettextpo $LIBS"
12041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12042 /* end confdefs.h. */
12044 /* Override any GCC internal prototype to avoid an error.
12045 Use char because int might match the return type of a GCC
12046 builtin and then its argument prototype would still apply. */
12047 #ifdef __cplusplus
12048 extern "C"
12049 #endif
12050 char po_message_msgctxt ();
12052 main ()
12054 return po_message_msgctxt ();
12056 return 0;
12058 _ACEOF
12059 if ac_fn_c_try_link "$LINENO"; then :
12060 ac_cv_lib_gettextpo_po_message_msgctxt=yes
12061 else
12062 ac_cv_lib_gettextpo_po_message_msgctxt=no
12064 rm -f core conftest.err conftest.$ac_objext \
12065 conftest$ac_exeext conftest.$ac_ext
12066 LIBS=$ac_check_lib_save_LIBS
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
12069 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
12070 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
12072 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
12074 GETTEXTPO_LIBS="-lgettextpo"
12079 test "x$with_gettextpo" != xyes || if test "x$GETTEXTPO_LIBS" = "x"; then :
12080 case "x$with_gettextpo" in
12081 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
12082 xno) ;;
12083 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
12084 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
12085 esac
12089 if test "x$with_gstreamer" != "xno"
12090 then
12091 if ${GSTREAMER_CFLAGS:+false} :; then :
12092 if ${PKG_CONFIG+:} false; then :
12093 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
12097 if ${GSTREAMER_LIBS:+false} :; then :
12098 if ${PKG_CONFIG+:} false; then :
12099 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
12104 $as_echo "$as_me:${as_lineno-$LINENO}: gstreamer-app-0.10 cflags: $GSTREAMER_CFLAGS" >&5
12105 $as_echo "$as_me:${as_lineno-$LINENO}: gstreamer-app-0.10 libs: $GSTREAMER_LIBS" >&5
12106 ac_save_CPPFLAGS=$CPPFLAGS
12107 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
12108 ac_gst_incl=""
12109 for i in $GSTREAMER_CFLAGS
12111 case "$i" in
12112 -I*) ac_gst_incl="$ac_gst_incl $i";;
12113 esac
12114 done
12115 GSTREAMER_CFLAGS=$ac_gst_incl
12116 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
12117 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
12118 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
12119 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
12120 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
12122 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
12123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12124 /* end confdefs.h. */
12125 #include <gst/app/gstappsink.h>
12127 main ()
12129 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
12131 return 0;
12133 _ACEOF
12134 if ac_fn_c_try_compile "$LINENO"; then :
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12136 $as_echo "yes" >&6; }
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
12138 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
12139 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
12140 $as_echo_n "(cached) " >&6
12141 else
12142 ac_check_lib_save_LIBS=$LIBS
12143 LIBS="-lgstreamer-0.10 $LIBS"
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12147 /* Override any GCC internal prototype to avoid an error.
12148 Use char because int might match the return type of a GCC
12149 builtin and then its argument prototype would still apply. */
12150 #ifdef __cplusplus
12151 extern "C"
12152 #endif
12153 char gst_pad_get_caps_reffed ();
12155 main ()
12157 return gst_pad_get_caps_reffed ();
12159 return 0;
12161 _ACEOF
12162 if ac_fn_c_try_link "$LINENO"; then :
12163 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
12164 else
12165 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
12167 rm -f core conftest.err conftest.$ac_objext \
12168 conftest$ac_exeext conftest.$ac_ext
12169 LIBS=$ac_check_lib_save_LIBS
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
12172 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
12173 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
12175 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
12176 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178 else
12179 ac_check_lib_save_LIBS=$LIBS
12180 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
12181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h. */
12184 /* Override any GCC internal prototype to avoid an error.
12185 Use char because int might match the return type of a GCC
12186 builtin and then its argument prototype would still apply. */
12187 #ifdef __cplusplus
12188 extern "C"
12189 #endif
12190 char gst_app_buffer_new ();
12192 main ()
12194 return gst_app_buffer_new ();
12196 return 0;
12198 _ACEOF
12199 if ac_fn_c_try_link "$LINENO"; then :
12200 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
12201 else
12202 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
12204 rm -f core conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
12209 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
12210 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
12216 else
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218 $as_echo "no" >&6; }
12220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12224 else
12225 GSTREAMER_CFLAGS=""
12229 CPPFLAGS=$ac_save_CPPFLAGS
12230 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12231 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12234 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
12235 case "x$with_gstreamer" in
12236 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
12237 xno) ;;
12238 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
12239 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
12240 esac
12242 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
12244 ALSA_LIBS=""
12246 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
12247 then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
12249 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
12250 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
12251 $as_echo_n "(cached) " >&6
12252 else
12253 ac_check_lib_save_LIBS=$LIBS
12254 LIBS="-lasound $LIBS"
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h. */
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12261 #ifdef __cplusplus
12262 extern "C"
12263 #endif
12264 char snd_pcm_hw_params_get_access_mask ();
12266 main ()
12268 return snd_pcm_hw_params_get_access_mask ();
12270 return 0;
12272 _ACEOF
12273 if ac_fn_c_try_link "$LINENO"; then :
12274 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
12275 else
12276 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
12278 rm -f core conftest.err conftest.$ac_objext \
12279 conftest$ac_exeext conftest.$ac_ext
12280 LIBS=$ac_check_lib_save_LIBS
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
12283 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
12284 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
12285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h. */
12287 #ifdef HAVE_ALSA_ASOUNDLIB_H
12288 #include <alsa/asoundlib.h>
12289 #elif defined(HAVE_SYS_ASOUNDLIB_H)
12290 #include <sys/asoundlib.h>
12291 #endif
12293 main ()
12295 snd_pcm_hw_params_get_access_mask(NULL, NULL)
12297 return 0;
12299 _ACEOF
12300 if ac_fn_c_try_compile "$LINENO"; then :
12301 ALSA_LIBS="-lasound"
12303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308 if test "x$with_oss" != xno
12309 then
12310 ac_save_CPPFLAGS="$CPPFLAGS"
12311 if test -f /etc/oss.conf
12312 then
12313 . /etc/oss.conf
12315 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
12316 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
12317 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12318 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12319 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
12321 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
12323 cat >>confdefs.h <<_ACEOF
12324 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
12325 _ACEOF
12327 OSS4_CFLAGS="$ac_oss_incl"
12334 CPPFLAGS="$ac_save_CPPFLAGS"
12335 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
12336 then
12337 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
12341 if test "x$with_capi" != "xno"
12342 then
12343 if ${CAPI20_CFLAGS:+false} :; then :
12344 if ${PKG_CONFIG+:} false; then :
12345 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
12349 if ${CAPI20_LIBS:+false} :; then :
12350 if ${PKG_CONFIG+:} false; then :
12351 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
12356 $as_echo "$as_me:${as_lineno-$LINENO}: capi20 cflags: $CAPI20_CFLAGS" >&5
12357 $as_echo "$as_me:${as_lineno-$LINENO}: capi20 libs: $CAPI20_LIBS" >&5
12358 ac_save_CPPFLAGS=$CPPFLAGS
12359 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
12360 for ac_header in capi20.h linux/capi.h
12361 do :
12362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12363 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
12365 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12366 cat >>confdefs.h <<_ACEOF
12367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12368 _ACEOF
12372 done
12374 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12375 then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12377 $as_echo_n "checking for -lcapi20... " >&6; }
12378 if ${ac_cv_lib_soname_capi20+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380 else
12381 ac_check_soname_save_LIBS=$LIBS
12382 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12386 /* Override any GCC internal prototype to avoid an error.
12387 Use char because int might match the return type of a GCC
12388 builtin and then its argument prototype would still apply. */
12389 #ifdef __cplusplus
12390 extern "C"
12391 #endif
12392 char capi20_register ();
12394 main ()
12396 return capi20_register ();
12398 return 0;
12400 _ACEOF
12401 if ac_fn_c_try_link "$LINENO"; then :
12402 case "$LIBEXT" in
12403 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12404 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'` ;;
12405 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12406 if ${ac_cv_lib_soname_capi20:+false} :; then :
12407 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12408 fi ;;
12409 esac
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 LIBS=$ac_check_soname_save_LIBS
12415 if ${ac_cv_lib_soname_capi20:+false} :; then :
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12417 $as_echo "not found" >&6; }
12419 else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12421 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12423 cat >>confdefs.h <<_ACEOF
12424 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12425 _ACEOF
12430 CPPFLAGS=$ac_save_CPPFLAGS
12431 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12432 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12435 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12436 case "x$with_capi" in
12437 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12438 xno) ;;
12439 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12440 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12441 esac
12444 CUPS_CFLAGS=""
12446 if test "x$with_cups" != "xno"
12447 then
12448 ac_save_CPPFLAGS="$CPPFLAGS"
12449 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12450 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12451 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12452 for ac_header in cups/cups.h
12453 do :
12454 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12455 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12456 cat >>confdefs.h <<_ACEOF
12457 #define HAVE_CUPS_CUPS_H 1
12458 _ACEOF
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12460 $as_echo_n "checking for -lcups... " >&6; }
12461 if ${ac_cv_lib_soname_cups+:} false; then :
12462 $as_echo_n "(cached) " >&6
12463 else
12464 ac_check_soname_save_LIBS=$LIBS
12465 LIBS="-lcups $ac_cups_libs $LIBS"
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12469 /* Override any GCC internal prototype to avoid an error.
12470 Use char because int might match the return type of a GCC
12471 builtin and then its argument prototype would still apply. */
12472 #ifdef __cplusplus
12473 extern "C"
12474 #endif
12475 char cupsGetDefault ();
12477 main ()
12479 return cupsGetDefault ();
12481 return 0;
12483 _ACEOF
12484 if ac_fn_c_try_link "$LINENO"; then :
12485 case "$LIBEXT" in
12486 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12487 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'` ;;
12488 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12489 if ${ac_cv_lib_soname_cups:+false} :; then :
12490 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12491 fi ;;
12492 esac
12494 rm -f core conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12496 LIBS=$ac_check_soname_save_LIBS
12498 if ${ac_cv_lib_soname_cups:+false} :; then :
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12500 $as_echo "not found" >&6; }
12502 else
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12504 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12506 cat >>confdefs.h <<_ACEOF
12507 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12508 _ACEOF
12510 CUPS_CFLAGS="$ac_cups_cflags"
12514 done
12516 CPPFLAGS="$ac_save_CPPFLAGS"
12518 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12519 case "x$with_cups" in
12520 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12521 xno) ;;
12522 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12523 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12524 esac
12527 if test "x$with_fontconfig" != "xno"
12528 then
12529 if ${FONTCONFIG_CFLAGS:+false} :; then :
12530 if ${PKG_CONFIG+:} false; then :
12531 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags fontconfig 2>/dev/null`
12534 test "$cross_compiling" = yes || FONTCONFIG_CFLAGS=${FONTCONFIG_CFLAGS:-$X_CFLAGS}
12535 if ${FONTCONFIG_LIBS:+false} :; then :
12536 if ${PKG_CONFIG+:} false; then :
12537 FONTCONFIG_LIBS=`$PKG_CONFIG --libs fontconfig 2>/dev/null`
12540 test "$cross_compiling" = yes || FONTCONFIG_LIBS=${FONTCONFIG_LIBS:-$X_LIBS}
12542 $as_echo "$as_me:${as_lineno-$LINENO}: fontconfig cflags: $FONTCONFIG_CFLAGS" >&5
12543 $as_echo "$as_me:${as_lineno-$LINENO}: fontconfig libs: $FONTCONFIG_LIBS" >&5
12544 ac_save_CPPFLAGS=$CPPFLAGS
12545 CPPFLAGS="$CPPFLAGS $FONTCONFIG_CFLAGS"
12546 for ac_header in fontconfig/fontconfig.h
12547 do :
12548 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12549 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12550 cat >>confdefs.h <<_ACEOF
12551 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12552 _ACEOF
12556 done
12558 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12559 then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12561 $as_echo_n "checking for -lfontconfig... " >&6; }
12562 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12563 $as_echo_n "(cached) " >&6
12564 else
12565 ac_check_soname_save_LIBS=$LIBS
12566 LIBS="-lfontconfig $FONTCONFIG_LIBS $LIBS"
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12570 /* Override any GCC internal prototype to avoid an error.
12571 Use char because int might match the return type of a GCC
12572 builtin and then its argument prototype would still apply. */
12573 #ifdef __cplusplus
12574 extern "C"
12575 #endif
12576 char FcInit ();
12578 main ()
12580 return FcInit ();
12582 return 0;
12584 _ACEOF
12585 if ac_fn_c_try_link "$LINENO"; then :
12586 case "$LIBEXT" in
12587 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12588 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'` ;;
12589 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12590 if ${ac_cv_lib_soname_fontconfig:+false} :; then :
12591 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12592 fi ;;
12593 esac
12595 rm -f core conftest.err conftest.$ac_objext \
12596 conftest$ac_exeext conftest.$ac_ext
12597 LIBS=$ac_check_soname_save_LIBS
12599 if ${ac_cv_lib_soname_fontconfig:+false} :; then :
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12601 $as_echo "not found" >&6; }
12602 FONTCONFIG_CFLAGS=""
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12605 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12607 cat >>confdefs.h <<_ACEOF
12608 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12609 _ACEOF
12613 else
12614 FONTCONFIG_CFLAGS=""
12616 CPPFLAGS=$ac_save_CPPFLAGS
12617 test -z "$FONTCONFIG_CFLAGS" || FONTCONFIG_CFLAGS=`echo " $FONTCONFIG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12618 test -z "$FONTCONFIG_LIBS" || FONTCONFIG_LIBS=`echo " $FONTCONFIG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12621 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12622 case "x$with_fontconfig" in
12623 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12624 xno) ;;
12625 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12626 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12627 esac
12630 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12631 then
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12633 $as_echo_n "checking for -lgsm... " >&6; }
12634 if ${ac_cv_lib_soname_gsm+:} false; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12637 ac_check_soname_save_LIBS=$LIBS
12638 LIBS="-lgsm $LIBS"
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12642 /* Override any GCC internal prototype to avoid an error.
12643 Use char because int might match the return type of a GCC
12644 builtin and then its argument prototype would still apply. */
12645 #ifdef __cplusplus
12646 extern "C"
12647 #endif
12648 char gsm_create ();
12650 main ()
12652 return gsm_create ();
12654 return 0;
12656 _ACEOF
12657 if ac_fn_c_try_link "$LINENO"; then :
12658 case "$LIBEXT" in
12659 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12660 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'` ;;
12661 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12662 if ${ac_cv_lib_soname_gsm:+false} :; then :
12663 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12664 fi ;;
12665 esac
12667 rm -f core conftest.err conftest.$ac_objext \
12668 conftest$ac_exeext conftest.$ac_ext
12669 LIBS=$ac_check_soname_save_LIBS
12671 if ${ac_cv_lib_soname_gsm:+false} :; then :
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12673 $as_echo "not found" >&6; }
12675 else
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12677 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12679 cat >>confdefs.h <<_ACEOF
12680 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12681 _ACEOF
12686 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12687 case "x$with_gsm" in
12688 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12689 xno) ;;
12690 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12691 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12692 esac
12695 if test "x$with_jpeg" != "xno"
12696 then
12697 if ${JPEG_CFLAGS:+false} :; then :
12698 if ${PKG_CONFIG+:} false; then :
12699 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
12703 if ${JPEG_LIBS:+false} :; then :
12704 if ${PKG_CONFIG+:} false; then :
12705 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
12710 $as_echo "$as_me:${as_lineno-$LINENO}: libjpeg cflags: $JPEG_CFLAGS" >&5
12711 $as_echo "$as_me:${as_lineno-$LINENO}: libjpeg libs: $JPEG_LIBS" >&5
12712 ac_save_CPPFLAGS=$CPPFLAGS
12713 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
12714 for ac_header in jpeglib.h
12715 do :
12716 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12717 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12718 cat >>confdefs.h <<_ACEOF
12719 #define HAVE_JPEGLIB_H 1
12720 _ACEOF
12724 done
12726 if test "$ac_cv_header_jpeglib_h" = "yes"
12727 then
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
12729 $as_echo_n "checking for -ljpeg... " >&6; }
12730 if ${ac_cv_lib_soname_jpeg+:} false; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 ac_check_soname_save_LIBS=$LIBS
12734 LIBS="-ljpeg $JPEG_LIBS $LIBS"
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12738 /* Override any GCC internal prototype to avoid an error.
12739 Use char because int might match the return type of a GCC
12740 builtin and then its argument prototype would still apply. */
12741 #ifdef __cplusplus
12742 extern "C"
12743 #endif
12744 char jpeg_start_decompress ();
12746 main ()
12748 return jpeg_start_decompress ();
12750 return 0;
12752 _ACEOF
12753 if ac_fn_c_try_link "$LINENO"; then :
12754 case "$LIBEXT" in
12755 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12756 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'` ;;
12757 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12758 if ${ac_cv_lib_soname_jpeg:+false} :; then :
12759 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12760 fi ;;
12761 esac
12763 rm -f core conftest.err conftest.$ac_objext \
12764 conftest$ac_exeext conftest.$ac_ext
12765 LIBS=$ac_check_soname_save_LIBS
12767 if ${ac_cv_lib_soname_jpeg:+false} :; then :
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12769 $as_echo "not found" >&6; }
12770 JPEG_CFLAGS=""
12771 else
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
12773 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
12775 cat >>confdefs.h <<_ACEOF
12776 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
12777 _ACEOF
12781 else
12782 JPEG_CFLAGS=""
12784 CPPFLAGS=$ac_save_CPPFLAGS
12785 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12786 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12789 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12790 case "x$with_jpeg" in
12791 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
12792 xno) ;;
12793 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
12794 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
12795 esac
12798 if test "x$with_png" != "xno"
12799 then
12800 if ${PNG_CFLAGS:+false} :; then :
12801 if ${PKG_CONFIG+:} false; then :
12802 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
12805 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
12806 if ${PNG_LIBS:+false} :; then :
12807 if ${PKG_CONFIG+:} false; then :
12808 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
12811 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
12813 $as_echo "$as_me:${as_lineno-$LINENO}: libpng cflags: $PNG_CFLAGS" >&5
12814 $as_echo "$as_me:${as_lineno-$LINENO}: libpng libs: $PNG_LIBS" >&5
12815 ac_save_CPPFLAGS=$CPPFLAGS
12816 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
12817 for ac_header in png.h
12818 do :
12819 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12820 if test "x$ac_cv_header_png_h" = xyes; then :
12821 cat >>confdefs.h <<_ACEOF
12822 #define HAVE_PNG_H 1
12823 _ACEOF
12827 done
12829 if test "$ac_cv_header_png_h" = "yes"
12830 then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
12832 $as_echo_n "checking for -lpng... " >&6; }
12833 if ${ac_cv_lib_soname_png+:} false; then :
12834 $as_echo_n "(cached) " >&6
12835 else
12836 ac_check_soname_save_LIBS=$LIBS
12837 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12841 /* Override any GCC internal prototype to avoid an error.
12842 Use char because int might match the return type of a GCC
12843 builtin and then its argument prototype would still apply. */
12844 #ifdef __cplusplus
12845 extern "C"
12846 #endif
12847 char png_create_read_struct ();
12849 main ()
12851 return png_create_read_struct ();
12853 return 0;
12855 _ACEOF
12856 if ac_fn_c_try_link "$LINENO"; then :
12857 case "$LIBEXT" in
12858 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12859 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'` ;;
12860 *) 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'`
12861 if ${ac_cv_lib_soname_png:+false} :; then :
12862 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12863 fi ;;
12864 esac
12866 rm -f core conftest.err conftest.$ac_objext \
12867 conftest$ac_exeext conftest.$ac_ext
12868 LIBS=$ac_check_soname_save_LIBS
12870 if ${ac_cv_lib_soname_png:+false} :; then :
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12872 $as_echo "not found" >&6; }
12873 PNG_CFLAGS=""
12874 else
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
12876 $as_echo "$ac_cv_lib_soname_png" >&6; }
12878 cat >>confdefs.h <<_ACEOF
12879 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
12880 _ACEOF
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12884 #include <png.h>
12886 main ()
12888 typeof(png_set_expand_gray_1_2_4_to_8) *p
12890 return 0;
12892 _ACEOF
12893 if ac_fn_c_try_compile "$LINENO"; then :
12895 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 else
12901 PNG_CFLAGS=""
12903 CPPFLAGS=$ac_save_CPPFLAGS
12904 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12905 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12908 if test "x$ac_cv_lib_soname_png" = "x"; then :
12909 case "x$with_png" in
12910 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12911 xno) ;;
12912 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12913 This is an error since --with-png was requested." "$LINENO" 5 ;;
12914 esac
12917 if test "x$with_tiff" != "xno"
12918 then
12919 if ${TIFF_CFLAGS:+false} :; then :
12920 if ${PKG_CONFIG+:} false; then :
12921 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
12925 if ${TIFF_LIBS:+false} :; then :
12926 if ${PKG_CONFIG+:} false; then :
12927 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
12932 $as_echo "$as_me:${as_lineno-$LINENO}: libtiff cflags: $TIFF_CFLAGS" >&5
12933 $as_echo "$as_me:${as_lineno-$LINENO}: libtiff libs: $TIFF_LIBS" >&5
12934 ac_save_CPPFLAGS=$CPPFLAGS
12935 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
12936 for ac_header in tiffio.h
12937 do :
12938 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12939 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12940 cat >>confdefs.h <<_ACEOF
12941 #define HAVE_TIFFIO_H 1
12942 _ACEOF
12946 done
12948 if test "$ac_cv_header_tiffio_h" = "yes"
12949 then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12951 $as_echo_n "checking for -ltiff... " >&6; }
12952 if ${ac_cv_lib_soname_tiff+:} false; then :
12953 $as_echo_n "(cached) " >&6
12954 else
12955 ac_check_soname_save_LIBS=$LIBS
12956 LIBS="-ltiff $TIFF_LIBS $LIBS"
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12960 /* Override any GCC internal prototype to avoid an error.
12961 Use char because int might match the return type of a GCC
12962 builtin and then its argument prototype would still apply. */
12963 #ifdef __cplusplus
12964 extern "C"
12965 #endif
12966 char TIFFClientOpen ();
12968 main ()
12970 return TIFFClientOpen ();
12972 return 0;
12974 _ACEOF
12975 if ac_fn_c_try_link "$LINENO"; then :
12976 case "$LIBEXT" in
12977 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12978 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'` ;;
12979 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12980 if ${ac_cv_lib_soname_tiff:+false} :; then :
12981 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12982 fi ;;
12983 esac
12985 rm -f core conftest.err conftest.$ac_objext \
12986 conftest$ac_exeext conftest.$ac_ext
12987 LIBS=$ac_check_soname_save_LIBS
12989 if ${ac_cv_lib_soname_tiff:+false} :; then :
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12991 $as_echo "not found" >&6; }
12993 else
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
12995 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
12997 cat >>confdefs.h <<_ACEOF
12998 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
12999 _ACEOF
13004 CPPFLAGS=$ac_save_CPPFLAGS
13005 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13006 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13009 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
13010 case "x$with_tiff" in
13011 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
13012 xno) ;;
13013 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
13014 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
13015 esac
13018 if test "x$with_mpg123" != "xno"
13019 then
13020 if ${MPG123_CFLAGS:+false} :; then :
13021 if ${PKG_CONFIG+:} false; then :
13022 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
13026 if ${MPG123_LIBS:+false} :; then :
13027 if ${PKG_CONFIG+:} false; then :
13028 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
13032 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
13033 $as_echo "$as_me:${as_lineno-$LINENO}: libmpg123 cflags: $MPG123_CFLAGS" >&5
13034 $as_echo "$as_me:${as_lineno-$LINENO}: libmpg123 libs: $MPG123_LIBS" >&5
13035 ac_save_CPPFLAGS=$CPPFLAGS
13036 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
13037 for ac_header in mpg123.h
13038 do :
13039 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
13040 if test "x$ac_cv_header_mpg123_h" = xyes; then :
13041 cat >>confdefs.h <<_ACEOF
13042 #define HAVE_MPG123_H 1
13043 _ACEOF
13047 done
13049 if test "$ac_cv_header_mpg123_h" = "yes"
13050 then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
13052 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
13053 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
13054 $as_echo_n "(cached) " >&6
13055 else
13056 ac_check_lib_save_LIBS=$LIBS
13057 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13061 /* Override any GCC internal prototype to avoid an error.
13062 Use char because int might match the return type of a GCC
13063 builtin and then its argument prototype would still apply. */
13064 #ifdef __cplusplus
13065 extern "C"
13066 #endif
13067 char mpg123_feed ();
13069 main ()
13071 return mpg123_feed ();
13073 return 0;
13075 _ACEOF
13076 if ac_fn_c_try_link "$LINENO"; then :
13077 ac_cv_lib_mpg123_mpg123_feed=yes
13078 else
13079 ac_cv_lib_mpg123_mpg123_feed=no
13081 rm -f core conftest.err conftest.$ac_objext \
13082 conftest$ac_exeext conftest.$ac_ext
13083 LIBS=$ac_check_lib_save_LIBS
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
13086 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
13087 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
13089 else
13090 MPG123_LIBS=""
13093 else
13094 MPG123_CFLAGS=""
13095 MPG123_LIBS=""
13097 CPPFLAGS=$ac_save_CPPFLAGS
13098 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
13099 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
13102 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
13103 case "x$with_mpg123" in
13104 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
13105 xno) ;;
13106 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
13107 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
13108 esac
13110 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}
13112 if test "$ac_cv_header_AL_al_h" = "yes"
13113 then
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
13115 $as_echo_n "checking for -lopenal... " >&6; }
13116 if ${ac_cv_lib_soname_openal+:} false; then :
13117 $as_echo_n "(cached) " >&6
13118 else
13119 ac_check_soname_save_LIBS=$LIBS
13120 LIBS="-lopenal $LIBS"
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h. */
13124 /* Override any GCC internal prototype to avoid an error.
13125 Use char because int might match the return type of a GCC
13126 builtin and then its argument prototype would still apply. */
13127 #ifdef __cplusplus
13128 extern "C"
13129 #endif
13130 char alGetSource3i ();
13132 main ()
13134 return alGetSource3i ();
13136 return 0;
13138 _ACEOF
13139 if ac_fn_c_try_link "$LINENO"; then :
13140 case "$LIBEXT" in
13141 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13142 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'` ;;
13143 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13144 if ${ac_cv_lib_soname_openal:+false} :; then :
13145 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13146 fi ;;
13147 esac
13149 rm -f core conftest.err conftest.$ac_objext \
13150 conftest$ac_exeext conftest.$ac_ext
13151 LIBS=$ac_check_soname_save_LIBS
13153 if ${ac_cv_lib_soname_openal:+false} :; then :
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13155 $as_echo "not found" >&6; }
13157 else
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
13159 $as_echo "$ac_cv_lib_soname_openal" >&6; }
13161 cat >>confdefs.h <<_ACEOF
13162 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
13163 _ACEOF
13165 OPENAL_LIBS="-lopenal"
13167 ac_cv_lib_openal=yes
13169 cat >>confdefs.h <<_ACEOF
13170 #define HAVE_OPENAL 1
13171 _ACEOF
13175 if test "x$ac_cv_lib_openal" != xyes; then :
13176 case "x$with_openal" in
13177 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
13178 xno) ;;
13179 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
13180 This is an error since --with-openal was requested." "$LINENO" 5 ;;
13181 esac
13183 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
13185 if test "$ac_cv_header_kstat_h" = "yes"
13186 then
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13188 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13189 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13190 $as_echo_n "(cached) " >&6
13191 else
13192 ac_check_lib_save_LIBS=$LIBS
13193 LIBS="-lkstat $LIBS"
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13197 /* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */
13200 #ifdef __cplusplus
13201 extern "C"
13202 #endif
13203 char kstat_open ();
13205 main ()
13207 return kstat_open ();
13209 return 0;
13211 _ACEOF
13212 if ac_fn_c_try_link "$LINENO"; then :
13213 ac_cv_lib_kstat_kstat_open=yes
13214 else
13215 ac_cv_lib_kstat_kstat_open=no
13217 rm -f core conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13219 LIBS=$ac_check_lib_save_LIBS
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13222 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13223 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13225 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
13227 KSTAT_LIBS="-lkstat"
13233 if test "$ac_cv_header_libprocstat_h" = "yes"
13234 then
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
13236 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
13237 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 ac_check_lib_save_LIBS=$LIBS
13241 LIBS="-lprocstat $LIBS"
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h. */
13245 /* Override any GCC internal prototype to avoid an error.
13246 Use char because int might match the return type of a GCC
13247 builtin and then its argument prototype would still apply. */
13248 #ifdef __cplusplus
13249 extern "C"
13250 #endif
13251 char procstat_open_sysctl ();
13253 main ()
13255 return procstat_open_sysctl ();
13257 return 0;
13259 _ACEOF
13260 if ac_fn_c_try_link "$LINENO"; then :
13261 ac_cv_lib_procstat_procstat_open_sysctl=yes
13262 else
13263 ac_cv_lib_procstat_procstat_open_sysctl=no
13265 rm -f core conftest.err conftest.$ac_objext \
13266 conftest$ac_exeext conftest.$ac_ext
13267 LIBS=$ac_check_lib_save_LIBS
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
13270 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
13271 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
13273 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
13275 PROCSTAT_LIBS="-lprocstat"
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
13282 $as_echo_n "checking for -lodbc... " >&6; }
13283 if ${ac_cv_lib_soname_odbc+:} false; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 ac_check_soname_save_LIBS=$LIBS
13287 LIBS="-lodbc $LIBS"
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13291 /* Override any GCC internal prototype to avoid an error.
13292 Use char because int might match the return type of a GCC
13293 builtin and then its argument prototype would still apply. */
13294 #ifdef __cplusplus
13295 extern "C"
13296 #endif
13297 char SQLConnect ();
13299 main ()
13301 return SQLConnect ();
13303 return 0;
13305 _ACEOF
13306 if ac_fn_c_try_link "$LINENO"; then :
13307 case "$LIBEXT" in
13308 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13309 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'` ;;
13310 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13311 if ${ac_cv_lib_soname_odbc:+false} :; then :
13312 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13313 fi ;;
13314 esac
13316 rm -f core conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext conftest.$ac_ext
13318 LIBS=$ac_check_soname_save_LIBS
13320 if ${ac_cv_lib_soname_odbc:+false} :; then :
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13322 $as_echo "not found" >&6; }
13323 cat >>confdefs.h <<_ACEOF
13324 #define SONAME_LIBODBC "libodbc.$LIBEXT"
13325 _ACEOF
13327 else
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
13329 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
13331 cat >>confdefs.h <<_ACEOF
13332 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
13333 _ACEOF
13338 if test "x$with_netapi" != "xno"
13339 then
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13341 $as_echo_n "checking for -lnetapi... " >&6; }
13342 if ${ac_cv_lib_soname_netapi+:} false; then :
13343 $as_echo_n "(cached) " >&6
13344 else
13345 ac_check_soname_save_LIBS=$LIBS
13346 LIBS="-lnetapi $LIBS"
13347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 /* end confdefs.h. */
13350 /* Override any GCC internal prototype to avoid an error.
13351 Use char because int might match the return type of a GCC
13352 builtin and then its argument prototype would still apply. */
13353 #ifdef __cplusplus
13354 extern "C"
13355 #endif
13356 char libnetapi_init ();
13358 main ()
13360 return libnetapi_init ();
13362 return 0;
13364 _ACEOF
13365 if ac_fn_c_try_link "$LINENO"; then :
13366 case "$LIBEXT" in
13367 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13368 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'` ;;
13369 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13370 if ${ac_cv_lib_soname_netapi:+false} :; then :
13371 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13372 fi ;;
13373 esac
13375 rm -f core conftest.err conftest.$ac_objext \
13376 conftest$ac_exeext conftest.$ac_ext
13377 LIBS=$ac_check_soname_save_LIBS
13379 if ${ac_cv_lib_soname_netapi:+false} :; then :
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13381 $as_echo "not found" >&6; }
13382 cat >>confdefs.h <<_ACEOF
13383 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13384 _ACEOF
13386 else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13388 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13390 cat >>confdefs.h <<_ACEOF
13391 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13392 _ACEOF
13398 test -n "$ALSA_LIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13399 test -n "$COREAUDIO_LIBS" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13400 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13401 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13403 if test "x$ALSA_LIBS$COREAUDIO_LIBS" = "x" -a \
13404 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13405 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13406 then
13407 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13411 EXTRACFLAGS=""
13413 if test "x${GCC}" = "xyes"
13414 then
13415 EXTRACFLAGS="-Wall -pipe"
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13418 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13419 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13420 $as_echo_n "(cached) " >&6
13421 else
13422 if test "$cross_compiling" = yes; then :
13423 ac_cv_c_gcc_strength_bug="yes"
13424 else
13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13427 int L[4] = {0,1,2,3};
13429 main ()
13431 static int Array[3];
13432 unsigned int B = 3;
13433 int i;
13434 for(i=0; i<B; i++) Array[i] = i - 3;
13435 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13436 L[i] = 4;
13437 return (Array[1] != -2 || L[2] != 3)
13439 return 0;
13441 _ACEOF
13442 if ac_fn_c_try_run "$LINENO"; then :
13443 ac_cv_c_gcc_strength_bug="no"
13444 else
13445 ac_cv_c_gcc_strength_bug="yes"
13447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13448 conftest.$ac_objext conftest.beam conftest.$ac_ext
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13453 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13454 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13455 then
13456 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13460 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13461 if ${ac_cv_cflags__fno_builtin+:} false; then :
13462 $as_echo_n "(cached) " >&6
13463 else
13464 ac_wine_try_cflags_saved=$CFLAGS
13465 CFLAGS="$CFLAGS -fno-builtin"
13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13467 /* end confdefs.h. */
13468 int main(int argc, char **argv) { return 0; }
13469 _ACEOF
13470 if ac_fn_c_try_link "$LINENO"; then :
13471 ac_cv_cflags__fno_builtin=yes
13472 else
13473 ac_cv_cflags__fno_builtin=no
13475 rm -f core conftest.err conftest.$ac_objext \
13476 conftest$ac_exeext conftest.$ac_ext
13477 CFLAGS=$ac_wine_try_cflags_saved
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13480 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13481 if test "x$ac_cv_cflags__fno_builtin" = xyes; then :
13482 BUILTINFLAG="-fno-builtin"
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13486 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13487 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13488 $as_echo_n "(cached) " >&6
13489 else
13490 ac_wine_try_cflags_saved=$CFLAGS
13491 CFLAGS="$CFLAGS -fno-strict-aliasing"
13492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493 /* end confdefs.h. */
13494 int main(int argc, char **argv) { return 0; }
13495 _ACEOF
13496 if ac_fn_c_try_link "$LINENO"; then :
13497 ac_cv_cflags__fno_strict_aliasing=yes
13498 else
13499 ac_cv_cflags__fno_strict_aliasing=no
13501 rm -f core conftest.err conftest.$ac_objext \
13502 conftest$ac_exeext conftest.$ac_ext
13503 CFLAGS=$ac_wine_try_cflags_saved
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13506 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13507 if test "x$ac_cv_cflags__fno_strict_aliasing" = xyes; then :
13508 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13510 saved_CFLAGS=$CFLAGS
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13512 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13513 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516 ac_wine_try_cflags_saved=$CFLAGS
13517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13520 int main(int argc, char **argv) { return 0; }
13521 _ACEOF
13522 if ac_fn_c_try_link "$LINENO"; then :
13523 ac_cv_cflags__Werror_unknown_warning_option=yes
13524 else
13525 ac_cv_cflags__Werror_unknown_warning_option=no
13527 rm -f core conftest.err conftest.$ac_objext \
13528 conftest$ac_exeext conftest.$ac_ext
13529 CFLAGS=$ac_wine_try_cflags_saved
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
13532 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13533 if test "x$ac_cv_cflags__Werror_unknown_warning_option" = xyes; then :
13534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13537 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13538 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 ac_wine_try_cflags_saved=$CFLAGS
13542 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13545 int main(int argc, char **argv) { return 0; }
13546 _ACEOF
13547 if ac_fn_c_try_link "$LINENO"; then :
13548 ac_cv_cflags__Wdeclaration_after_statement=yes
13549 else
13550 ac_cv_cflags__Wdeclaration_after_statement=no
13552 rm -f core conftest.err conftest.$ac_objext \
13553 conftest$ac_exeext conftest.$ac_ext
13554 CFLAGS=$ac_wine_try_cflags_saved
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13557 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13558 if test "x$ac_cv_cflags__Wdeclaration_after_statement" = xyes; then :
13559 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13562 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13563 if ${ac_cv_cflags__Wempty_body+:} false; then :
13564 $as_echo_n "(cached) " >&6
13565 else
13566 ac_wine_try_cflags_saved=$CFLAGS
13567 CFLAGS="$CFLAGS -Wempty-body"
13568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569 /* end confdefs.h. */
13570 int main(int argc, char **argv) { return 0; }
13571 _ACEOF
13572 if ac_fn_c_try_link "$LINENO"; then :
13573 ac_cv_cflags__Wempty_body=yes
13574 else
13575 ac_cv_cflags__Wempty_body=no
13577 rm -f core conftest.err conftest.$ac_objext \
13578 conftest$ac_exeext conftest.$ac_ext
13579 CFLAGS=$ac_wine_try_cflags_saved
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13582 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13583 if test "x$ac_cv_cflags__Wempty_body" = xyes; then :
13584 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13587 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13588 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13589 $as_echo_n "(cached) " >&6
13590 else
13591 ac_wine_try_cflags_saved=$CFLAGS
13592 CFLAGS="$CFLAGS -Wignored-qualifiers"
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13595 int main(int argc, char **argv) { return 0; }
13596 _ACEOF
13597 if ac_fn_c_try_link "$LINENO"; then :
13598 ac_cv_cflags__Wignored_qualifiers=yes
13599 else
13600 ac_cv_cflags__Wignored_qualifiers=no
13602 rm -f core conftest.err conftest.$ac_objext \
13603 conftest$ac_exeext conftest.$ac_ext
13604 CFLAGS=$ac_wine_try_cflags_saved
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13607 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13608 if test "x$ac_cv_cflags__Wignored_qualifiers" = xyes; then :
13609 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13612 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13613 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13614 $as_echo_n "(cached) " >&6
13615 else
13616 ac_wine_try_cflags_saved=$CFLAGS
13617 CFLAGS="$CFLAGS -Wstrict-prototypes"
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13620 int main(int argc, char **argv) { return 0; }
13621 _ACEOF
13622 if ac_fn_c_try_link "$LINENO"; then :
13623 ac_cv_cflags__Wstrict_prototypes=yes
13624 else
13625 ac_cv_cflags__Wstrict_prototypes=no
13627 rm -f core conftest.err conftest.$ac_objext \
13628 conftest$ac_exeext conftest.$ac_ext
13629 CFLAGS=$ac_wine_try_cflags_saved
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13632 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13633 if test "x$ac_cv_cflags__Wstrict_prototypes" = xyes; then :
13634 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13637 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13638 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13639 $as_echo_n "(cached) " >&6
13640 else
13641 ac_wine_try_cflags_saved=$CFLAGS
13642 CFLAGS="$CFLAGS -Wtype-limits"
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645 int main(int argc, char **argv) { return 0; }
13646 _ACEOF
13647 if ac_fn_c_try_link "$LINENO"; then :
13648 ac_cv_cflags__Wtype_limits=yes
13649 else
13650 ac_cv_cflags__Wtype_limits=no
13652 rm -f core conftest.err conftest.$ac_objext \
13653 conftest$ac_exeext conftest.$ac_ext
13654 CFLAGS=$ac_wine_try_cflags_saved
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13657 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13658 if test "x$ac_cv_cflags__Wtype_limits" = xyes; then :
13659 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13662 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13663 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13664 $as_echo_n "(cached) " >&6
13665 else
13666 ac_wine_try_cflags_saved=$CFLAGS
13667 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13670 int main(int argc, char **argv) { return 0; }
13671 _ACEOF
13672 if ac_fn_c_try_link "$LINENO"; then :
13673 ac_cv_cflags__Wunused_but_set_parameter=yes
13674 else
13675 ac_cv_cflags__Wunused_but_set_parameter=no
13677 rm -f core conftest.err conftest.$ac_objext \
13678 conftest$ac_exeext conftest.$ac_ext
13679 CFLAGS=$ac_wine_try_cflags_saved
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13682 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13683 if test "x$ac_cv_cflags__Wunused_but_set_parameter" = xyes; then :
13684 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
13687 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
13688 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
13689 $as_echo_n "(cached) " >&6
13690 else
13691 ac_wine_try_cflags_saved=$CFLAGS
13692 CFLAGS="$CFLAGS -Wwrite-strings"
13693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13694 /* end confdefs.h. */
13695 int main(int argc, char **argv) { return 0; }
13696 _ACEOF
13697 if ac_fn_c_try_link "$LINENO"; then :
13698 ac_cv_cflags__Wwrite_strings=yes
13699 else
13700 ac_cv_cflags__Wwrite_strings=no
13702 rm -f core conftest.err conftest.$ac_objext \
13703 conftest$ac_exeext conftest.$ac_ext
13704 CFLAGS=$ac_wine_try_cflags_saved
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
13707 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
13708 if test "x$ac_cv_cflags__Wwrite_strings" = xyes; then :
13709 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
13713 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
13714 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
13715 $as_echo_n "(cached) " >&6
13716 else
13717 ac_wine_try_cflags_saved=$CFLAGS
13718 CFLAGS="$CFLAGS -Wpointer-arith"
13719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13720 /* end confdefs.h. */
13721 int main(int argc, char **argv) { return 0; }
13722 _ACEOF
13723 if ac_fn_c_try_link "$LINENO"; then :
13724 ac_cv_cflags__Wpointer_arith=yes
13725 else
13726 ac_cv_cflags__Wpointer_arith=no
13728 rm -f core conftest.err conftest.$ac_objext \
13729 conftest$ac_exeext conftest.$ac_ext
13730 CFLAGS=$ac_wine_try_cflags_saved
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
13733 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
13734 if test "x$ac_cv_cflags__Wpointer_arith" = xyes; then :
13735 saved_string_h_CFLAGS=$CFLAGS
13736 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
13738 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
13739 if ${ac_cv_c_string_h_warnings+:} false; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13744 #include <string.h>
13746 main ()
13750 return 0;
13752 _ACEOF
13753 if ac_fn_c_try_compile "$LINENO"; then :
13754 ac_cv_c_string_h_warnings=no
13755 else
13756 ac_cv_c_string_h_warnings=yes
13758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
13761 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
13762 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
13763 CFLAGS=$saved_string_h_CFLAGS
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
13767 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
13768 if ${ac_cv_cflags__Wlogical_op+:} false; then :
13769 $as_echo_n "(cached) " >&6
13770 else
13771 ac_wine_try_cflags_saved=$CFLAGS
13772 CFLAGS="$CFLAGS -Wlogical-op"
13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13775 int main(int argc, char **argv) { return 0; }
13776 _ACEOF
13777 if ac_fn_c_try_link "$LINENO"; then :
13778 ac_cv_cflags__Wlogical_op=yes
13779 else
13780 ac_cv_cflags__Wlogical_op=no
13782 rm -f core conftest.err conftest.$ac_objext \
13783 conftest$ac_exeext conftest.$ac_ext
13784 CFLAGS=$ac_wine_try_cflags_saved
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
13787 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
13788 if test "x$ac_cv_cflags__Wlogical_op" = xyes; then :
13789 saved_string_h_CFLAGS=$CFLAGS
13790 CFLAGS="$CFLAGS -Wlogical-op -Werror"
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
13792 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
13793 if ${ac_cv_c_logicalop_noisy+:} false; then :
13794 $as_echo_n "(cached) " >&6
13795 else
13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h. */
13798 #include <string.h>
13799 char*f(const char *h,char n) {return strchr(h,n);}
13801 main ()
13805 return 0;
13807 _ACEOF
13808 if ac_fn_c_try_compile "$LINENO"; then :
13809 ac_cv_c_logicalop_noisy=no
13810 else
13811 ac_cv_c_logicalop_noisy=yes
13813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
13816 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
13817 CFLAGS=$saved_string_h_CFLAGS
13818 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
13821 CFLAGS=$saved_CFLAGS
13823 for ac_flag in $CFLAGS; do
13824 case $ac_flag in
13825 -g) case $host_os in
13826 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
13827 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
13828 if ${ac_cv_cflags__gstabsp+:} false; then :
13829 $as_echo_n "(cached) " >&6
13830 else
13831 ac_wine_try_cflags_saved=$CFLAGS
13832 CFLAGS="$CFLAGS -gstabs+"
13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13835 int main(int argc, char **argv) { return 0; }
13836 _ACEOF
13837 if ac_fn_c_try_link "$LINENO"; then :
13838 ac_cv_cflags__gstabsp=yes
13839 else
13840 ac_cv_cflags__gstabsp=no
13842 rm -f core conftest.err conftest.$ac_objext \
13843 conftest$ac_exeext conftest.$ac_ext
13844 CFLAGS=$ac_wine_try_cflags_saved
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
13847 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
13848 if test "x$ac_cv_cflags__gstabsp" = xyes; then :
13849 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
13850 fi ;;
13851 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
13852 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
13853 if ${ac_cv_cflags__gdwarf_2+:} false; then :
13854 $as_echo_n "(cached) " >&6
13855 else
13856 ac_wine_try_cflags_saved=$CFLAGS
13857 CFLAGS="$CFLAGS -gdwarf-2"
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13860 int main(int argc, char **argv) { return 0; }
13861 _ACEOF
13862 if ac_fn_c_try_link "$LINENO"; then :
13863 ac_cv_cflags__gdwarf_2=yes
13864 else
13865 ac_cv_cflags__gdwarf_2=no
13867 rm -f core conftest.err conftest.$ac_objext \
13868 conftest$ac_exeext conftest.$ac_ext
13869 CFLAGS=$ac_wine_try_cflags_saved
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
13872 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
13873 if test "x$ac_cv_cflags__gdwarf_2" = xyes; then :
13874 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
13877 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
13878 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
13879 $as_echo_n "(cached) " >&6
13880 else
13881 ac_wine_try_cflags_saved=$CFLAGS
13882 CFLAGS="$CFLAGS -gstrict-dwarf"
13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884 /* end confdefs.h. */
13885 int main(int argc, char **argv) { return 0; }
13886 _ACEOF
13887 if ac_fn_c_try_link "$LINENO"; then :
13888 ac_cv_cflags__gstrict_dwarf=yes
13889 else
13890 ac_cv_cflags__gstrict_dwarf=no
13892 rm -f core conftest.err conftest.$ac_objext \
13893 conftest$ac_exeext conftest.$ac_ext
13894 CFLAGS=$ac_wine_try_cflags_saved
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
13897 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
13898 if test "x$ac_cv_cflags__gstrict_dwarf" = xyes; then :
13899 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
13900 fi ;;
13901 esac ;;
13902 esac
13903 done
13905 case $host_cpu in
13906 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
13907 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
13908 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
13909 $as_echo_n "(cached) " >&6
13910 else
13911 ac_wine_try_cflags_saved=$CFLAGS
13912 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h. */
13915 int main(int argc, char **argv) { return 0; }
13916 _ACEOF
13917 if ac_fn_c_try_link "$LINENO"; then :
13918 ac_cv_cflags__fno_omit_frame_pointer=yes
13919 else
13920 ac_cv_cflags__fno_omit_frame_pointer=no
13922 rm -f core conftest.err conftest.$ac_objext \
13923 conftest$ac_exeext conftest.$ac_ext
13924 CFLAGS=$ac_wine_try_cflags_saved
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
13927 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
13928 if test "x$ac_cv_cflags__fno_omit_frame_pointer" = xyes; then :
13929 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
13930 fi ;;
13931 esac
13933 case $host in
13934 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
13935 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
13936 if ${ac_cv_cflags__Wno_format+:} false; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939 ac_wine_try_cflags_saved=$CFLAGS
13940 CFLAGS="$CFLAGS -Wno-format"
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13943 int main(int argc, char **argv) { return 0; }
13944 _ACEOF
13945 if ac_fn_c_try_link "$LINENO"; then :
13946 ac_cv_cflags__Wno_format=yes
13947 else
13948 ac_cv_cflags__Wno_format=no
13950 rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13952 CFLAGS=$ac_wine_try_cflags_saved
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
13955 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
13956 if test "x$ac_cv_cflags__Wno_format" = xyes; then :
13957 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
13958 fi ;;
13959 esac
13961 if test "x$enable_maintainer_mode" = "xyes"
13962 then
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
13964 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
13965 if ${ac_cv_cflags__Werror+:} false; then :
13966 $as_echo_n "(cached) " >&6
13967 else
13968 ac_wine_try_cflags_saved=$CFLAGS
13969 CFLAGS="$CFLAGS -Werror"
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13972 int main(int argc, char **argv) { return 0; }
13973 _ACEOF
13974 if ac_fn_c_try_link "$LINENO"; then :
13975 ac_cv_cflags__Werror=yes
13976 else
13977 ac_cv_cflags__Werror=no
13979 rm -f core conftest.err conftest.$ac_objext \
13980 conftest$ac_exeext conftest.$ac_ext
13981 CFLAGS=$ac_wine_try_cflags_saved
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
13984 $as_echo "$ac_cv_cflags__Werror" >&6; }
13985 if test "x$ac_cv_cflags__Werror" = xyes; then :
13986 EXTRACFLAGS="$EXTRACFLAGS -Werror"
13990 saved_CFLAGS="$CFLAGS"
13991 CFLAGS="$CFLAGS -Werror"
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
13993 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
13994 if ${ac_cv_have_ms_hook_prologue+:} false; then :
13995 $as_echo_n "(cached) " >&6
13996 else
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
13999 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
14001 main ()
14005 return 0;
14007 _ACEOF
14008 if ac_fn_c_try_compile "$LINENO"; then :
14009 ac_cv_have_ms_hook_prologue="yes"
14010 else
14011 ac_cv_have_ms_hook_prologue="no"
14013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
14016 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
14017 CFLAGS="$saved_CFLAGS"
14018 if test "$ac_cv_have_ms_hook_prologue" = "yes"
14019 then
14021 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
14023 else
14024 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
14031 $as_echo_n "checking for the need to disable Fortify... " >&6; }
14032 if ${ac_cv_c_fortify_enabled+:} false; then :
14033 $as_echo_n "(cached) " >&6
14034 else
14035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14036 /* end confdefs.h. */
14037 #include <string.h>
14039 main ()
14041 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
14042 #error Fortify enabled
14043 #endif
14045 return 0;
14047 _ACEOF
14048 if ac_fn_c_try_compile "$LINENO"; then :
14049 ac_cv_c_fortify_enabled=no
14050 else
14051 ac_cv_c_fortify_enabled=yes
14053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
14056 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
14057 if test "$ac_cv_c_fortify_enabled" = yes
14058 then
14059 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
14064 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
14065 if ${ac_cv_c_extern_prefix+:} false; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070 extern int ac_test;
14072 main ()
14074 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
14076 return 0;
14078 _ACEOF
14079 if ac_fn_c_try_link "$LINENO"; then :
14080 ac_cv_c_extern_prefix="yes"
14081 else
14082 ac_cv_c_extern_prefix="no"
14084 rm -f core conftest.err conftest.$ac_objext \
14085 conftest$ac_exeext conftest.$ac_ext
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
14088 $as_echo "$ac_cv_c_extern_prefix" >&6; }
14090 case $host_cpu in
14091 *i[3456789]86*)
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
14093 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
14094 if ${ac_cv_c_stdcall_suffix+:} false; then :
14095 $as_echo_n "(cached) " >&6
14096 else
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099 #ifndef _MSC_VER
14100 #define __stdcall __attribute__((__stdcall__))
14101 #endif
14102 int __stdcall ac_test(int i) { return i; }
14104 main ()
14106 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
14108 return 0;
14110 _ACEOF
14111 if ac_fn_c_try_link "$LINENO"; then :
14112 ac_cv_c_stdcall_suffix="yes"
14113 else
14114 ac_cv_c_stdcall_suffix="no"
14116 rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
14120 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
14121 *) ac_cv_c_stdcall_suffix="no" ;;
14122 esac
14125 if test "$ac_cv_c_extern_prefix" = "yes"
14126 then
14127 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
14129 asm_name_prefix="_"
14130 else
14131 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
14133 asm_name_prefix=""
14137 if test "$ac_cv_c_stdcall_suffix" = "yes"
14138 then
14139 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
14141 else
14142 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
14148 $as_echo_n "checking how to define a function in assembly code... " >&6; }
14149 if ${ac_cv_asm_func_def+:} false; then :
14150 $as_echo_n "(cached) " >&6
14151 else
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14156 main ()
14158 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
14160 return 0;
14162 _ACEOF
14163 if ac_fn_c_try_link "$LINENO"; then :
14164 ac_cv_asm_func_def=".def"
14165 else
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h. */
14170 main ()
14172 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
14174 return 0;
14176 _ACEOF
14177 if ac_fn_c_try_link "$LINENO"; then :
14178 ac_cv_asm_func_def=".type @function"
14179 else
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14184 main ()
14186 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
14188 return 0;
14190 _ACEOF
14191 if ac_fn_c_try_link "$LINENO"; then :
14192 ac_cv_asm_func_def=".type 2"
14193 else
14194 ac_cv_asm_func_def="unknown"
14196 rm -f core conftest.err conftest.$ac_objext \
14197 conftest$ac_exeext conftest.$ac_ext
14199 rm -f core conftest.err conftest.$ac_objext \
14200 conftest$ac_exeext conftest.$ac_ext
14202 rm -f core conftest.err conftest.$ac_objext \
14203 conftest$ac_exeext conftest.$ac_ext
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
14206 $as_echo "$ac_cv_asm_func_def" >&6; }
14209 case "$ac_cv_asm_func_def" in
14210 ".def")
14211 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
14213 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
14214 ".type @function")
14215 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
14217 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
14218 ".type 2")
14219 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
14221 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
14223 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
14225 asm_func_header="" ;;
14226 esac
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
14229 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
14230 if ${ac_cv_c_asm_outside_funcs+:} false; then :
14231 $as_echo_n "(cached) " >&6
14232 else
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14235 asm(".text\n\t.long 0");
14237 main ()
14241 return 0;
14243 _ACEOF
14244 if ac_fn_c_try_compile "$LINENO"; then :
14245 ac_cv_c_asm_outside_funcs="yes"
14246 else
14247 ac_cv_c_asm_outside_funcs="no"
14249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
14252 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
14255 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
14256 if ${ac_cv_c_dot_previous+:} false; then :
14257 $as_echo_n "(cached) " >&6
14258 else
14259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14260 /* end confdefs.h. */
14263 main ()
14265 asm(".text\nac_test:\t.long 0\n\t.previous");
14267 return 0;
14269 _ACEOF
14270 if ac_fn_c_try_link "$LINENO"; then :
14271 ac_cv_c_dot_previous="yes"
14272 else
14273 ac_cv_c_dot_previous="no"
14275 rm -f core conftest.err conftest.$ac_objext \
14276 conftest$ac_exeext conftest.$ac_ext
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
14279 $as_echo "$ac_cv_c_dot_previous" >&6; }
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
14282 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
14283 if ${ac_cv_c_cfi_support+:} false; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14288 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
14290 main ()
14294 return 0;
14296 _ACEOF
14297 if ac_fn_c_try_compile "$LINENO"; then :
14298 ac_cv_c_cfi_support="yes"
14299 else
14300 ac_cv_c_cfi_support="no"
14302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
14305 $as_echo "$ac_cv_c_cfi_support" >&6; }
14307 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
14308 asm_func_trailer=""
14309 if test "$ac_cv_c_dot_previous" = "yes"
14310 then
14311 asm_func_trailer="\\n\\t.previous"
14313 if test "$ac_cv_c_cfi_support" = "yes"
14314 then
14315 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
14316 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
14318 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
14320 UNWINDFLAGS=-fasynchronous-unwind-tables
14322 else
14323 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
14327 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
14330 if test "$ac_cv_c_asm_outside_funcs" = "yes"
14331 then
14332 cat >>confdefs.h <<_ACEOF
14333 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
14334 _ACEOF
14336 else
14337 cat >>confdefs.h <<_ACEOF
14338 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
14339 _ACEOF
14343 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14346 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14350 case $build_os in
14351 cygwin*|mingw32*) TOOLSEXT=".exe"
14353 esac
14355 case $host_os in
14356 linux*)
14357 case $host_cpu in
14358 *i[3456789]86*|x86_64*)
14359 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine-preloader"
14360 loader_programs="$loader_programs $wine_binary-preloader"
14361 as_fn_append LOADER_RULES "
14362 $wine_binary-preloader: preloader.o
14363 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14365 install install-lib:: $wine_binary-preloader
14366 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14368 uninstall::
14369 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14371 preloader_EXTRADEFS = $BUILTINFLAG
14372 " ;;
14373 esac
14375 esac
14376 as_fn_append LOADER_RULES "
14377 PROGRAMS = $loader_programs
14381 ac_save_CFLAGS="$CFLAGS"
14382 CFLAGS="$CFLAGS $BUILTINFLAG"
14383 for ac_func in \
14384 __res_get_state \
14385 __res_getservers \
14386 _finite \
14387 _isnan \
14388 _pclose \
14389 _popen \
14390 _snprintf \
14391 _spawnvp \
14392 _strdup \
14393 _stricmp \
14394 _strnicmp \
14395 _strtoi64 \
14396 _strtoui64 \
14397 _vsnprintf \
14398 asctime_r \
14399 chsize \
14400 dlopen \
14401 epoll_create \
14402 ffs \
14403 fnmatch \
14404 fork \
14405 fpclass \
14406 fstatfs \
14407 fstatvfs \
14408 ftruncate \
14409 futimens \
14410 futimes \
14411 futimesat \
14412 getattrlist \
14413 getdirentries \
14414 getopt_long_only \
14415 getpwuid \
14416 gettimeofday \
14417 getuid \
14418 if_nameindex \
14419 kqueue \
14420 lstat \
14421 memmove \
14422 mmap \
14423 pclose \
14424 pipe2 \
14425 poll \
14426 popen \
14427 port_create \
14428 prctl \
14429 pread \
14430 proc_pidinfo \
14431 pwrite \
14432 readdir \
14433 readlink \
14434 sched_yield \
14435 select \
14436 setproctitle \
14437 setrlimit \
14438 settimeofday \
14439 sigaltstack \
14440 sigprocmask \
14441 snprintf \
14442 statfs \
14443 statvfs \
14444 strcasecmp \
14445 strdup \
14446 strerror \
14447 strncasecmp \
14448 strtold \
14449 strtoll \
14450 strtoull \
14451 symlink \
14452 tcdrain \
14453 thr_kill2 \
14454 timegm \
14455 usleep \
14456 vsnprintf
14458 do :
14459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14460 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14461 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14462 cat >>confdefs.h <<_ACEOF
14463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14464 _ACEOF
14467 done
14469 CFLAGS="$ac_save_CFLAGS"
14471 if test "$ac_cv_func_dlopen" = no
14472 then
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14474 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14475 if ${ac_cv_lib_dl_dlopen+:} false; then :
14476 $as_echo_n "(cached) " >&6
14477 else
14478 ac_check_lib_save_LIBS=$LIBS
14479 LIBS="-ldl $LIBS"
14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14483 /* Override any GCC internal prototype to avoid an error.
14484 Use char because int might match the return type of a GCC
14485 builtin and then its argument prototype would still apply. */
14486 #ifdef __cplusplus
14487 extern "C"
14488 #endif
14489 char dlopen ();
14491 main ()
14493 return dlopen ();
14495 return 0;
14497 _ACEOF
14498 if ac_fn_c_try_link "$LINENO"; then :
14499 ac_cv_lib_dl_dlopen=yes
14500 else
14501 ac_cv_lib_dl_dlopen=no
14503 rm -f core conftest.err conftest.$ac_objext \
14504 conftest$ac_exeext conftest.$ac_ext
14505 LIBS=$ac_check_lib_save_LIBS
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14508 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14509 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14510 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14511 DL_LIBS="-ldl"
14516 ac_wine_check_funcs_save_LIBS="$LIBS"
14517 LIBS="$LIBS $DL_LIBS"
14518 for ac_func in dladdr
14519 do :
14520 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14521 if test "x$ac_cv_func_dladdr" = xyes; then :
14522 cat >>confdefs.h <<_ACEOF
14523 #define HAVE_DLADDR 1
14524 _ACEOF
14527 done
14529 LIBS="$ac_wine_check_funcs_save_LIBS"
14531 if test "$ac_cv_func_poll" = no
14532 then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14534 $as_echo_n "checking for poll in -lpoll... " >&6; }
14535 if ${ac_cv_lib_poll_poll+:} false; then :
14536 $as_echo_n "(cached) " >&6
14537 else
14538 ac_check_lib_save_LIBS=$LIBS
14539 LIBS="-lpoll $LIBS"
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14543 /* Override any GCC internal prototype to avoid an error.
14544 Use char because int might match the return type of a GCC
14545 builtin and then its argument prototype would still apply. */
14546 #ifdef __cplusplus
14547 extern "C"
14548 #endif
14549 char poll ();
14551 main ()
14553 return poll ();
14555 return 0;
14557 _ACEOF
14558 if ac_fn_c_try_link "$LINENO"; then :
14559 ac_cv_lib_poll_poll=yes
14560 else
14561 ac_cv_lib_poll_poll=no
14563 rm -f core conftest.err conftest.$ac_objext \
14564 conftest$ac_exeext conftest.$ac_ext
14565 LIBS=$ac_check_lib_save_LIBS
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14568 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14569 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14570 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14571 POLL_LIBS="-lpoll"
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14578 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14579 if ${ac_cv_search_gethostbyname+:} false; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 ac_func_search_save_LIBS=$LIBS
14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14586 /* Override any GCC internal prototype to avoid an error.
14587 Use char because int might match the return type of a GCC
14588 builtin and then its argument prototype would still apply. */
14589 #ifdef __cplusplus
14590 extern "C"
14591 #endif
14592 char gethostbyname ();
14594 main ()
14596 return gethostbyname ();
14598 return 0;
14600 _ACEOF
14601 for ac_lib in '' nsl; do
14602 if test -z "$ac_lib"; then
14603 ac_res="none required"
14604 else
14605 ac_res=-l$ac_lib
14606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14608 if ac_fn_c_try_link "$LINENO"; then :
14609 ac_cv_search_gethostbyname=$ac_res
14611 rm -f core conftest.err conftest.$ac_objext \
14612 conftest$ac_exeext
14613 if ${ac_cv_search_gethostbyname+:} false; then :
14614 break
14616 done
14617 if ${ac_cv_search_gethostbyname+:} false; then :
14619 else
14620 ac_cv_search_gethostbyname=no
14622 rm conftest.$ac_ext
14623 LIBS=$ac_func_search_save_LIBS
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14626 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14627 ac_res=$ac_cv_search_gethostbyname
14628 if test "$ac_res" != no; then :
14629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14635 $as_echo_n "checking for library containing connect... " >&6; }
14636 if ${ac_cv_search_connect+:} false; then :
14637 $as_echo_n "(cached) " >&6
14638 else
14639 ac_func_search_save_LIBS=$LIBS
14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h. */
14643 /* Override any GCC internal prototype to avoid an error.
14644 Use char because int might match the return type of a GCC
14645 builtin and then its argument prototype would still apply. */
14646 #ifdef __cplusplus
14647 extern "C"
14648 #endif
14649 char connect ();
14651 main ()
14653 return connect ();
14655 return 0;
14657 _ACEOF
14658 for ac_lib in '' socket; do
14659 if test -z "$ac_lib"; then
14660 ac_res="none required"
14661 else
14662 ac_res=-l$ac_lib
14663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14665 if ac_fn_c_try_link "$LINENO"; then :
14666 ac_cv_search_connect=$ac_res
14668 rm -f core conftest.err conftest.$ac_objext \
14669 conftest$ac_exeext
14670 if ${ac_cv_search_connect+:} false; then :
14671 break
14673 done
14674 if ${ac_cv_search_connect+:} false; then :
14676 else
14677 ac_cv_search_connect=no
14679 rm conftest.$ac_ext
14680 LIBS=$ac_func_search_save_LIBS
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14683 $as_echo "$ac_cv_search_connect" >&6; }
14684 ac_res=$ac_cv_search_connect
14685 if test "$ac_res" != no; then :
14686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
14692 $as_echo_n "checking for library containing inet_aton... " >&6; }
14693 if ${ac_cv_search_inet_aton+:} false; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696 ac_func_search_save_LIBS=$LIBS
14697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698 /* end confdefs.h. */
14700 /* Override any GCC internal prototype to avoid an error.
14701 Use char because int might match the return type of a GCC
14702 builtin and then its argument prototype would still apply. */
14703 #ifdef __cplusplus
14704 extern "C"
14705 #endif
14706 char inet_aton ();
14708 main ()
14710 return inet_aton ();
14712 return 0;
14714 _ACEOF
14715 for ac_lib in '' resolv; do
14716 if test -z "$ac_lib"; then
14717 ac_res="none required"
14718 else
14719 ac_res=-l$ac_lib
14720 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14722 if ac_fn_c_try_link "$LINENO"; then :
14723 ac_cv_search_inet_aton=$ac_res
14725 rm -f core conftest.err conftest.$ac_objext \
14726 conftest$ac_exeext
14727 if ${ac_cv_search_inet_aton+:} false; then :
14728 break
14730 done
14731 if ${ac_cv_search_inet_aton+:} false; then :
14733 else
14734 ac_cv_search_inet_aton=no
14736 rm conftest.$ac_ext
14737 LIBS=$ac_func_search_save_LIBS
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
14740 $as_echo "$ac_cv_search_inet_aton" >&6; }
14741 ac_res=$ac_cv_search_inet_aton
14742 if test "$ac_res" != no; then :
14743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14748 for ac_func in \
14749 getaddrinfo \
14750 getnameinfo \
14751 getnetbyname \
14752 getprotobyname \
14753 getprotobynumber \
14754 getservbyport \
14755 inet_addr \
14756 inet_network \
14757 inet_ntop \
14758 inet_pton \
14759 sendmsg \
14760 socketpair \
14762 do :
14763 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14764 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14765 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14766 cat >>confdefs.h <<_ACEOF
14767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14768 _ACEOF
14771 done
14774 ac_save_LIBS=$LIBS
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14776 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14777 if ${ac_cv_search_clock_gettime+:} false; then :
14778 $as_echo_n "(cached) " >&6
14779 else
14780 ac_func_search_save_LIBS=$LIBS
14781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14782 /* end confdefs.h. */
14784 /* Override any GCC internal prototype to avoid an error.
14785 Use char because int might match the return type of a GCC
14786 builtin and then its argument prototype would still apply. */
14787 #ifdef __cplusplus
14788 extern "C"
14789 #endif
14790 char clock_gettime ();
14792 main ()
14794 return clock_gettime ();
14796 return 0;
14798 _ACEOF
14799 for ac_lib in '' rt; do
14800 if test -z "$ac_lib"; then
14801 ac_res="none required"
14802 else
14803 ac_res=-l$ac_lib
14804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14806 if ac_fn_c_try_link "$LINENO"; then :
14807 ac_cv_search_clock_gettime=$ac_res
14809 rm -f core conftest.err conftest.$ac_objext \
14810 conftest$ac_exeext
14811 if ${ac_cv_search_clock_gettime+:} false; then :
14812 break
14814 done
14815 if ${ac_cv_search_clock_gettime+:} false; then :
14817 else
14818 ac_cv_search_clock_gettime=no
14820 rm conftest.$ac_ext
14821 LIBS=$ac_func_search_save_LIBS
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14824 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14825 ac_res=$ac_cv_search_clock_gettime
14826 if test "$ac_res" != no; then :
14827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14829 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14831 test "$ac_res" = "none required" || RT_LIBS="$ac_res"
14835 LIBS=$ac_save_LIBS
14837 LDAP_LIBS=""
14839 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
14840 then
14841 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
14843 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
14845 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
14846 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
14847 $as_echo_n "(cached) " >&6
14848 else
14849 ac_check_lib_save_LIBS=$LIBS
14850 LIBS="-lldap_r $PTHREAD_LIBS $LIBS"
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14854 /* Override any GCC internal prototype to avoid an error.
14855 Use char because int might match the return type of a GCC
14856 builtin and then its argument prototype would still apply. */
14857 #ifdef __cplusplus
14858 extern "C"
14859 #endif
14860 char ldap_initialize ();
14862 main ()
14864 return ldap_initialize ();
14866 return 0;
14868 _ACEOF
14869 if ac_fn_c_try_link "$LINENO"; then :
14870 ac_cv_lib_ldap_r_ldap_initialize=yes
14871 else
14872 ac_cv_lib_ldap_r_ldap_initialize=no
14874 rm -f core conftest.err conftest.$ac_objext \
14875 conftest$ac_exeext conftest.$ac_ext
14876 LIBS=$ac_check_lib_save_LIBS
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
14879 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
14880 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
14882 $as_echo_n "checking for ber_init in -llber... " >&6; }
14883 if ${ac_cv_lib_lber_ber_init+:} false; then :
14884 $as_echo_n "(cached) " >&6
14885 else
14886 ac_check_lib_save_LIBS=$LIBS
14887 LIBS="-llber $PTHREAD_LIBS $LIBS"
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14891 /* Override any GCC internal prototype to avoid an error.
14892 Use char because int might match the return type of a GCC
14893 builtin and then its argument prototype would still apply. */
14894 #ifdef __cplusplus
14895 extern "C"
14896 #endif
14897 char ber_init ();
14899 main ()
14901 return ber_init ();
14903 return 0;
14905 _ACEOF
14906 if ac_fn_c_try_link "$LINENO"; then :
14907 ac_cv_lib_lber_ber_init=yes
14908 else
14909 ac_cv_lib_lber_ber_init=no
14911 rm -f core conftest.err conftest.$ac_objext \
14912 conftest$ac_exeext conftest.$ac_ext
14913 LIBS=$ac_check_lib_save_LIBS
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
14916 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
14917 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
14919 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
14921 LDAP_LIBS="-lldap_r -llber"
14928 ac_wine_check_funcs_save_LIBS="$LIBS"
14929 LIBS="$LIBS $LDAP_LIBS $PTHREAD_LIBS"
14930 for ac_func in \
14931 ldap_count_references \
14932 ldap_first_reference \
14933 ldap_next_reference \
14934 ldap_parse_reference \
14935 ldap_parse_sort_control \
14936 ldap_parse_sortresponse_control \
14937 ldap_parse_vlv_control \
14938 ldap_parse_vlvresponse_control
14939 do :
14940 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14941 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14942 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14943 cat >>confdefs.h <<_ACEOF
14944 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14945 _ACEOF
14948 done
14950 LIBS="$ac_wine_check_funcs_save_LIBS"
14952 if test "x$LDAP_LIBS" = "x"; then :
14953 case "x$with_ldap" in
14954 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
14955 xno) ;;
14956 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
14957 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
14958 esac
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
14962 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
14963 if ${wine_cv_one_arg_mkdir+:} false; then :
14964 $as_echo_n "(cached) " >&6
14965 else
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968 #include <sys/stat.h>
14970 main ()
14972 mkdir("foo");
14974 return 0;
14976 _ACEOF
14977 if ac_fn_c_try_compile "$LINENO"; then :
14978 wine_cv_one_arg_mkdir=yes
14979 else
14980 wine_cv_one_arg_mkdir=no
14982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
14985 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
14986 if test "$wine_cv_one_arg_mkdir" = "yes"
14987 then
14989 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
14994 $as_echo_n "checking for sched_setaffinity... " >&6; }
14995 if ${wine_cv_have_sched_setaffinity+:} false; then :
14996 $as_echo_n "(cached) " >&6
14997 else
14998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14999 /* end confdefs.h. */
15000 #define _GNU_SOURCE
15001 #include <sched.h>
15003 main ()
15005 sched_setaffinity(0, 0, 0);
15007 return 0;
15009 _ACEOF
15010 if ac_fn_c_try_link "$LINENO"; then :
15011 wine_cv_have_sched_setaffinity=yes
15012 else
15013 wine_cv_have_sched_setaffinity=no
15015 rm -f core conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
15019 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
15020 if test "$wine_cv_have_sched_setaffinity" = "yes"
15021 then
15023 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
15028 $as_echo_n "checking for fallocate... " >&6; }
15029 if ${wine_cv_have_fallocate+:} 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 <fcntl.h>
15037 main ()
15039 fallocate(-1, 0, 0, 0);
15041 return 0;
15043 _ACEOF
15044 if ac_fn_c_try_link "$LINENO"; then :
15045 wine_cv_have_fallocate=yes
15046 else
15047 wine_cv_have_fallocate=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_fallocate" >&5
15053 $as_echo "$wine_cv_have_fallocate" >&6; }
15054 if test "$wine_cv_have_fallocate" = "yes"
15055 then
15057 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15063 $as_echo_n "checking for inline... " >&6; }
15064 if ${ac_cv_c_inline+:} false; then :
15065 $as_echo_n "(cached) " >&6
15066 else
15067 ac_cv_c_inline=no
15068 for ac_kw in inline __inline__ __inline; do
15069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15071 #ifndef __cplusplus
15072 typedef int foo_t;
15073 static $ac_kw foo_t static_foo () {return 0; }
15074 $ac_kw foo_t foo () {return 0; }
15075 #endif
15077 _ACEOF
15078 if ac_fn_c_try_compile "$LINENO"; then :
15079 ac_cv_c_inline=$ac_kw
15081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082 test "$ac_cv_c_inline" != no && break
15083 done
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15087 $as_echo "$ac_cv_c_inline" >&6; }
15089 case $ac_cv_c_inline in
15090 inline | yes) ;;
15092 case $ac_cv_c_inline in
15093 no) ac_val=;;
15094 *) ac_val=$ac_cv_c_inline;;
15095 esac
15096 cat >>confdefs.h <<_ACEOF
15097 #ifndef __cplusplus
15098 #define inline $ac_val
15099 #endif
15100 _ACEOF
15102 esac
15104 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15105 if test "x$ac_cv_type_mode_t" = xyes; then :
15107 cat >>confdefs.h <<_ACEOF
15108 #define HAVE_MODE_T 1
15109 _ACEOF
15113 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15114 if test "x$ac_cv_type_off_t" = xyes; then :
15116 cat >>confdefs.h <<_ACEOF
15117 #define HAVE_OFF_T 1
15118 _ACEOF
15122 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15123 if test "x$ac_cv_type_pid_t" = xyes; then :
15125 cat >>confdefs.h <<_ACEOF
15126 #define HAVE_PID_T 1
15127 _ACEOF
15131 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15132 if test "x$ac_cv_type_size_t" = xyes; then :
15134 cat >>confdefs.h <<_ACEOF
15135 #define HAVE_SIZE_T 1
15136 _ACEOF
15140 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
15141 if test "x$ac_cv_type_ssize_t" = xyes; then :
15143 cat >>confdefs.h <<_ACEOF
15144 #define HAVE_SSIZE_T 1
15145 _ACEOF
15149 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
15150 if test "x$ac_cv_type_long_long" = xyes; then :
15152 cat >>confdefs.h <<_ACEOF
15153 #define HAVE_LONG_LONG 1
15154 _ACEOF
15158 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
15159 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
15161 cat >>confdefs.h <<_ACEOF
15162 #define HAVE_FSBLKCNT_T 1
15163 _ACEOF
15167 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
15168 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
15170 cat >>confdefs.h <<_ACEOF
15171 #define HAVE_FSFILCNT_T 1
15172 _ACEOF
15177 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
15178 #include <signal.h>
15180 if test "x$ac_cv_type_sigset_t" = xyes; then :
15182 cat >>confdefs.h <<_ACEOF
15183 #define HAVE_SIGSET_T 1
15184 _ACEOF
15189 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
15191 if test "x$ac_cv_type_request_sense" = xyes; then :
15193 cat >>confdefs.h <<_ACEOF
15194 #define HAVE_REQUEST_SENSE 1
15195 _ACEOF
15201 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
15202 #ifdef HAVE_SYS_SOCKET_H
15203 #include <sys/socket.h>
15204 #endif
15205 #ifdef HAVE_SYS_SOCKETVAR_H
15206 #include <sys/socketvar.h>
15207 #endif
15208 #ifdef HAVE_NET_ROUTE_H
15209 #include <net/route.h>
15210 #endif
15211 #ifdef HAVE_NETINET_IN_H
15212 #include <netinet/in.h>
15213 #endif
15214 #ifdef HAVE_NETINET_IN_SYSTM_H
15215 #include <netinet/in_systm.h>
15216 #endif
15217 #ifdef HAVE_NETINET_IP_H
15218 #include <netinet/ip.h>
15219 #endif
15220 #ifdef HAVE_NETINET_IN_PCB_H
15221 #include <netinet/in_pcb.h>
15222 #endif
15224 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
15226 cat >>confdefs.h <<_ACEOF
15227 #define HAVE_STRUCT_XINPGEN 1
15228 _ACEOF
15234 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#ifdef HAVE_LINK_H
15235 #include <link.h>
15236 #endif
15237 #ifdef HAVE_SYS_LINK_H
15238 #include <sys/link.h>
15239 #endif
15241 if test "x$ac_cv_type_struct_r_debug" = xyes; then :
15243 cat >>confdefs.h <<_ACEOF
15244 #define HAVE_STRUCT_R_DEBUG 1
15245 _ACEOF
15249 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
15250 #include <link.h>
15251 #endif
15252 #ifdef HAVE_SYS_LINK_H
15253 #include <sys/link.h>
15254 #endif
15256 if test "x$ac_cv_type_struct_link_map" = xyes; then :
15258 cat >>confdefs.h <<_ACEOF
15259 #define HAVE_STRUCT_LINK_MAP 1
15260 _ACEOF
15266 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
15267 #include <linux/input.h>
15268 #endif
15270 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
15272 cat >>confdefs.h <<_ACEOF
15273 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
15274 _ACEOF
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
15281 $as_echo_n "checking for sigaddset... " >&6; }
15282 if ${wine_cv_have_sigaddset+:} false; then :
15283 $as_echo_n "(cached) " >&6
15284 else
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h. */
15287 #include <signal.h>
15289 main ()
15291 sigset_t set; sigaddset(&set,SIGTERM);
15293 return 0;
15295 _ACEOF
15296 if ac_fn_c_try_link "$LINENO"; then :
15297 wine_cv_have_sigaddset=yes
15298 else
15299 wine_cv_have_sigaddset=no
15301 rm -f core conftest.err conftest.$ac_objext \
15302 conftest$ac_exeext conftest.$ac_ext
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
15305 $as_echo "$wine_cv_have_sigaddset" >&6; }
15306 if test "$wine_cv_have_sigaddset" = "yes"
15307 then
15309 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
15315 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
15316 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
15317 $as_echo_n "(cached) " >&6
15318 else
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321 #include <netdb.h>
15323 main ()
15326 char *name=0;
15327 struct hostent he;
15328 struct hostent *result;
15329 char *buf=0;
15330 int bufsize=0;
15331 int errnr;
15332 char *addr=0;
15333 int addrlen=0;
15334 int addrtype=0;
15335 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15336 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
15339 return 0;
15341 _ACEOF
15342 if ac_fn_c_try_link "$LINENO"; then :
15343 wine_cv_linux_gethostbyname_r_6=yes
15344 else
15345 wine_cv_linux_gethostbyname_r_6=no
15348 rm -f core conftest.err conftest.$ac_objext \
15349 conftest$ac_exeext conftest.$ac_ext
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15353 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15354 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15355 then
15357 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15361 if test "$ac_cv_header_linux_joystick_h" = "yes"
15362 then
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15364 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15365 if ${wine_cv_linux_joystick_22_api+:} false; then :
15366 $as_echo_n "(cached) " >&6
15367 else
15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h. */
15371 #include <sys/ioctl.h>
15372 #include <sys/types.h>
15373 #include <linux/joystick.h>
15375 struct js_event blub;
15376 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15377 #error "no 2.2 header"
15378 #endif
15381 main ()
15383 /*empty*/
15385 return 0;
15387 _ACEOF
15388 if ac_fn_c_try_compile "$LINENO"; then :
15389 wine_cv_linux_joystick_22_api=yes
15390 else
15391 wine_cv_linux_joystick_22_api=no
15393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15397 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15398 if test "$wine_cv_linux_joystick_22_api" = "yes"
15399 then
15401 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15407 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15408 #ifdef HAVE_SYS_PARAM_H
15409 # include <sys/param.h>
15410 #endif
15411 #ifdef HAVE_SYS_MOUNT_H
15412 # include <sys/mount.h>
15413 #endif
15414 #ifdef HAVE_SYS_VFS_H
15415 # include <sys/vfs.h>
15416 #endif
15417 #ifdef HAVE_SYS_STATFS_H
15418 # include <sys/statfs.h>
15419 #endif
15421 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15423 cat >>confdefs.h <<_ACEOF
15424 #define HAVE_STRUCT_STATFS_F_BFREE 1
15425 _ACEOF
15429 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15430 #ifdef HAVE_SYS_PARAM_H
15431 # include <sys/param.h>
15432 #endif
15433 #ifdef HAVE_SYS_MOUNT_H
15434 # include <sys/mount.h>
15435 #endif
15436 #ifdef HAVE_SYS_VFS_H
15437 # include <sys/vfs.h>
15438 #endif
15439 #ifdef HAVE_SYS_STATFS_H
15440 # include <sys/statfs.h>
15441 #endif
15443 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15445 cat >>confdefs.h <<_ACEOF
15446 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15447 _ACEOF
15451 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15452 #ifdef HAVE_SYS_PARAM_H
15453 # include <sys/param.h>
15454 #endif
15455 #ifdef HAVE_SYS_MOUNT_H
15456 # include <sys/mount.h>
15457 #endif
15458 #ifdef HAVE_SYS_VFS_H
15459 # include <sys/vfs.h>
15460 #endif
15461 #ifdef HAVE_SYS_STATFS_H
15462 # include <sys/statfs.h>
15463 #endif
15465 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15467 cat >>confdefs.h <<_ACEOF
15468 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15469 _ACEOF
15473 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15474 #ifdef HAVE_SYS_PARAM_H
15475 # include <sys/param.h>
15476 #endif
15477 #ifdef HAVE_SYS_MOUNT_H
15478 # include <sys/mount.h>
15479 #endif
15480 #ifdef HAVE_SYS_VFS_H
15481 # include <sys/vfs.h>
15482 #endif
15483 #ifdef HAVE_SYS_STATFS_H
15484 # include <sys/statfs.h>
15485 #endif
15487 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15489 cat >>confdefs.h <<_ACEOF
15490 #define HAVE_STRUCT_STATFS_F_FFREE 1
15491 _ACEOF
15495 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15496 #ifdef HAVE_SYS_PARAM_H
15497 # include <sys/param.h>
15498 #endif
15499 #ifdef HAVE_SYS_MOUNT_H
15500 # include <sys/mount.h>
15501 #endif
15502 #ifdef HAVE_SYS_VFS_H
15503 # include <sys/vfs.h>
15504 #endif
15505 #ifdef HAVE_SYS_STATFS_H
15506 # include <sys/statfs.h>
15507 #endif
15509 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15511 cat >>confdefs.h <<_ACEOF
15512 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15513 _ACEOF
15517 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15518 #ifdef HAVE_SYS_PARAM_H
15519 # include <sys/param.h>
15520 #endif
15521 #ifdef HAVE_SYS_MOUNT_H
15522 # include <sys/mount.h>
15523 #endif
15524 #ifdef HAVE_SYS_VFS_H
15525 # include <sys/vfs.h>
15526 #endif
15527 #ifdef HAVE_SYS_STATFS_H
15528 # include <sys/statfs.h>
15529 #endif
15531 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15533 cat >>confdefs.h <<_ACEOF
15534 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15535 _ACEOF
15541 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15542 #include <sys/statvfs.h>
15543 #endif
15545 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15547 cat >>confdefs.h <<_ACEOF
15548 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15549 _ACEOF
15555 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15556 #include <dirent.h>
15557 #endif
15559 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15561 cat >>confdefs.h <<_ACEOF
15562 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15563 _ACEOF
15569 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15570 #ifdef HAVE_SYS_SOCKET_H
15571 # include <sys/socket.h>
15572 #endif
15573 #ifdef HAVE_SYS_UN_H
15574 # include <sys/un.h>
15575 #endif
15577 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15579 cat >>confdefs.h <<_ACEOF
15580 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15581 _ACEOF
15585 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15586 #ifdef HAVE_SYS_SOCKET_H
15587 # include <sys/socket.h>
15588 #endif
15589 #ifdef HAVE_SYS_UN_H
15590 # include <sys/un.h>
15591 #endif
15593 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15595 cat >>confdefs.h <<_ACEOF
15596 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15597 _ACEOF
15601 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15602 #ifdef HAVE_SYS_SOCKET_H
15603 # include <sys/socket.h>
15604 #endif
15605 #ifdef HAVE_SYS_UN_H
15606 # include <sys/un.h>
15607 #endif
15609 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15611 cat >>confdefs.h <<_ACEOF
15612 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15613 _ACEOF
15619 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15620 #ifdef HAVE_SCSI_SG_H
15621 #include <scsi/sg.h>
15622 #endif
15624 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15626 cat >>confdefs.h <<_ACEOF
15627 #define HAVE_SCSIREQ_T_CMD 1
15628 _ACEOF
15632 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>
15633 #ifdef HAVE_SCSI_SG_H
15634 #include <scsi/sg.h>
15635 #endif
15637 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15639 cat >>confdefs.h <<_ACEOF
15640 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15641 _ACEOF
15647 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15649 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15651 cat >>confdefs.h <<_ACEOF
15652 #define HAVE_SIGINFO_T_SI_FD 1
15653 _ACEOF
15659 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15660 #ifdef HAVE_SYS_MTIO_H
15661 #include <sys/mtio.h>
15662 #endif
15664 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15666 cat >>confdefs.h <<_ACEOF
15667 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15668 _ACEOF
15672 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
15673 #ifdef HAVE_SYS_MTIO_H
15674 #include <sys/mtio.h>
15675 #endif
15677 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
15679 cat >>confdefs.h <<_ACEOF
15680 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
15681 _ACEOF
15685 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
15686 #ifdef HAVE_SYS_MTIO_H
15687 #include <sys/mtio.h>
15688 #endif
15690 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
15692 cat >>confdefs.h <<_ACEOF
15693 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
15694 _ACEOF
15700 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
15701 #include <getopt.h>
15702 #endif
15704 if test "x$ac_cv_member_struct_option_name" = xyes; then :
15706 cat >>confdefs.h <<_ACEOF
15707 #define HAVE_STRUCT_OPTION_NAME 1
15708 _ACEOF
15714 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
15715 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
15717 cat >>confdefs.h <<_ACEOF
15718 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15719 _ACEOF
15723 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15724 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
15726 cat >>confdefs.h <<_ACEOF
15727 #define HAVE_STRUCT_STAT_ST_MTIM 1
15728 _ACEOF
15732 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15733 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
15735 cat >>confdefs.h <<_ACEOF
15736 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
15737 _ACEOF
15741 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
15742 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
15744 cat >>confdefs.h <<_ACEOF
15745 #define HAVE_STRUCT_STAT_ST_CTIM 1
15746 _ACEOF
15750 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
15751 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
15753 cat >>confdefs.h <<_ACEOF
15754 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
15755 _ACEOF
15759 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
15760 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
15762 cat >>confdefs.h <<_ACEOF
15763 #define HAVE_STRUCT_STAT_ST_ATIM 1
15764 _ACEOF
15768 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
15769 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
15771 cat >>confdefs.h <<_ACEOF
15772 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
15773 _ACEOF
15777 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
15778 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
15780 cat >>confdefs.h <<_ACEOF
15781 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
15782 _ACEOF
15786 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
15787 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
15789 cat >>confdefs.h <<_ACEOF
15790 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
15791 _ACEOF
15795 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
15796 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
15798 cat >>confdefs.h <<_ACEOF
15799 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
15800 _ACEOF
15804 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
15805 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
15807 cat >>confdefs.h <<_ACEOF
15808 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
15809 _ACEOF
15813 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
15814 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
15816 cat >>confdefs.h <<_ACEOF
15817 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
15818 _ACEOF
15824 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
15825 #include <sys/types.h>
15826 #endif
15827 #ifdef HAVE_NETINET_IN_H
15828 #include <netinet/in.h>
15829 #endif
15831 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15833 cat >>confdefs.h <<_ACEOF
15834 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15835 _ACEOF
15841 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
15842 #include <resolv.h>
15843 #endif
15845 if test "x$ac_cv_type_struct___res_state" = xyes; then :
15847 cat >>confdefs.h <<_ACEOF
15848 #define HAVE_STRUCT___RES_STATE 1
15849 _ACEOF
15855 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
15856 #include <resolv.h>
15857 #endif
15859 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
15861 cat >>confdefs.h <<_ACEOF
15862 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
15863 _ACEOF
15869 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
15870 #include <sys/types.h>
15871 #endif
15872 #ifdef HAVE_NETINET_IN_H
15873 # include <netinet/in.h>
15874 #endif
15875 #ifdef HAVE_ARPA_NAMESER_H
15876 # include <arpa/nameser.h>
15877 #endif
15879 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
15881 cat >>confdefs.h <<_ACEOF
15882 #define HAVE_NS_MSG__MSG_PTR 1
15883 _ACEOF
15889 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
15890 #include <sys/types.h>
15891 #endif
15892 #ifdef HAVE_NETINET_IP_H
15893 #include <netinet/ip.h>
15894 #endif
15895 #ifdef HAVE_NETINET_IP_ICMP_H
15896 #include <netinet/ip_icmp.h>
15897 #endif
15898 #ifdef HAVE_NETINET_ICMP_VAR_H
15899 #include <netinet/icmp_var.h>
15900 #endif
15902 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
15904 cat >>confdefs.h <<_ACEOF
15905 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
15906 _ACEOF
15912 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
15913 #include <sys/types.h>
15914 #endif
15915 #ifdef HAVE_ALIAS_H
15916 #include <alias.h>
15917 #endif
15918 #ifdef HAVE_SYS_SOCKET_H
15919 #include <sys/socket.h>
15920 #endif
15921 #ifdef HAVE_SYS_SOCKETVAR_H
15922 #include <sys/socketvar.h>
15923 #endif
15924 #ifdef HAVE_SYS_TIMEOUT_H
15925 #include <sys/timeout.h>
15926 #endif
15927 #ifdef HAVE_NETINET_IN_H
15928 #include <netinet/in.h>
15929 #endif
15930 #ifdef HAVE_NETINET_IN_SYSTM_H
15931 #include <netinet/in_systm.h>
15932 #endif
15933 #ifdef HAVE_NETINET_IP_H
15934 #include <netinet/ip.h>
15935 #endif
15936 #ifdef HAVE_NETINET_IP_VAR_H
15937 #include <netinet/ip_var.h>
15938 #endif
15939 #ifdef HAVE_NETINET_IP_ICMP_H
15940 #include <netinet/ip_icmp.h>
15941 #endif
15942 #ifdef HAVE_NETINET_ICMP_VAR_H
15943 #include <netinet/icmp_var.h>
15944 #endif
15946 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
15948 cat >>confdefs.h <<_ACEOF
15949 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
15950 _ACEOF
15956 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
15957 #include <sys/types.h>
15958 #endif
15959 #ifdef HAVE_SYS_SOCKETVAR_H
15960 #include <sys/socketvar.h>
15961 #endif
15962 #ifdef HAVE_NETINET_IN_H
15963 #include <netinet/in.h>
15964 #endif
15965 #ifdef HAVE_NETINET_IP_VAR_H
15966 #include <netinet/ip_var.h>
15967 #endif
15969 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
15971 cat >>confdefs.h <<_ACEOF
15972 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
15973 _ACEOF
15979 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
15980 #include <netinet/ip_var.h>
15981 #endif
15983 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
15985 cat >>confdefs.h <<_ACEOF
15986 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
15987 _ACEOF
15993 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
15994 #include <sys/types.h>
15995 #endif
15996 #ifdef HAVE_SYS_SOCKETVAR_H
15997 #include <sys/socketvar.h>
15998 #endif
15999 #ifdef HAVE_NETINET_IN_H
16000 #include <netinet/in.h>
16001 #endif
16002 #ifdef HAVE_NETINET_TCP_H
16003 #include <netinet/tcp.h>
16004 #endif
16005 #ifdef HAVE_NETINET_TCP_VAR_H
16006 #include <netinet/tcp_var.h>
16007 #endif
16009 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
16011 cat >>confdefs.h <<_ACEOF
16012 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
16013 _ACEOF
16019 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
16020 #include <netinet/tcp_var.h>
16021 #endif
16023 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
16025 cat >>confdefs.h <<_ACEOF
16026 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
16027 _ACEOF
16033 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
16034 #include <sys/types.h>
16035 #endif
16036 #ifdef HAVE_NETINET_IN_H
16037 #include <netinet/in.h>
16038 #endif
16039 #ifdef HAVE_NETINET_IP_VAR_H
16040 #include <netinet/ip_var.h>
16041 #endif
16042 #ifdef HAVE_NETINET_UDP_H
16043 #include <netinet/udp.h>
16044 #endif
16045 #ifdef HAVE_NETINET_UDP_VAR_H
16046 #include <netinet/udp_var.h>
16047 #endif
16049 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
16051 cat >>confdefs.h <<_ACEOF
16052 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
16053 _ACEOF
16059 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
16060 #include <sys/types.h>
16061 #endif
16062 #ifdef HAVE_NET_IF_H
16063 # include <net/if.h>
16064 #endif
16066 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
16068 cat >>confdefs.h <<_ACEOF
16069 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
16070 _ACEOF
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
16077 $as_echo_n "checking for timezone variable... " >&6; }
16078 if ${ac_cv_have_timezone+:} false; then :
16079 $as_echo_n "(cached) " >&6
16080 else
16081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16082 /* end confdefs.h. */
16083 #include <time.h>
16085 main ()
16087 timezone = 1
16089 return 0;
16091 _ACEOF
16092 if ac_fn_c_try_link "$LINENO"; then :
16093 ac_cv_have_timezone="yes"
16094 else
16095 ac_cv_have_timezone="no"
16097 rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
16101 $as_echo "$ac_cv_have_timezone" >&6; }
16102 if test "$ac_cv_have_timezone" = "yes"
16103 then
16105 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
16109 $as_echo_n "checking for daylight variable... " >&6; }
16110 if ${ac_cv_have_daylight+:} false; then :
16111 $as_echo_n "(cached) " >&6
16112 else
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 #include <time.h>
16117 main ()
16119 daylight = 1
16121 return 0;
16123 _ACEOF
16124 if ac_fn_c_try_link "$LINENO"; then :
16125 ac_cv_have_daylight="yes"
16126 else
16127 ac_cv_have_daylight="no"
16129 rm -f core conftest.err conftest.$ac_objext \
16130 conftest$ac_exeext conftest.$ac_ext
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
16133 $as_echo "$ac_cv_have_daylight" >&6; }
16134 if test "$ac_cv_have_daylight" = "yes"
16135 then
16137 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
16141 ac_save_LIBS="$LIBS"
16142 LIBS="$LIBS -lm"
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
16144 $as_echo_n "checking for isfinite... " >&6; }
16145 if ${ac_cv_have_isfinite+:} false; then :
16146 $as_echo_n "(cached) " >&6
16147 else
16148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h. */
16150 #define _GNU_SOURCE
16151 #include <math.h>
16153 main ()
16155 float f = 0.0; return isfinite(f)
16157 return 0;
16159 _ACEOF
16160 if ac_fn_c_try_link "$LINENO"; then :
16161 ac_cv_have_isfinite="yes"
16162 else
16163 ac_cv_have_isfinite="no"
16165 rm -f core conftest.err conftest.$ac_objext \
16166 conftest$ac_exeext conftest.$ac_ext
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isfinite" >&5
16169 $as_echo "$ac_cv_have_isfinite" >&6; }
16170 if test "$ac_cv_have_isfinite" = "yes"
16171 then
16173 $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
16177 ac_save_LIBS="$LIBS"
16178 LIBS="$LIBS -lm"
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
16180 $as_echo_n "checking for isinf... " >&6; }
16181 if ${ac_cv_have_isinf+:} false; then :
16182 $as_echo_n "(cached) " >&6
16183 else
16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186 #include <math.h>
16188 main ()
16190 float f = 0.0; return isinf(f)
16192 return 0;
16194 _ACEOF
16195 if ac_fn_c_try_link "$LINENO"; then :
16196 ac_cv_have_isinf="yes"
16197 else
16198 ac_cv_have_isinf="no"
16200 rm -f core conftest.err conftest.$ac_objext \
16201 conftest$ac_exeext conftest.$ac_ext
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
16204 $as_echo "$ac_cv_have_isinf" >&6; }
16205 if test "$ac_cv_have_isinf" = "yes"
16206 then
16208 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
16213 $as_echo_n "checking for isnan... " >&6; }
16214 if ${ac_cv_have_isnan+:} false; then :
16215 $as_echo_n "(cached) " >&6
16216 else
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h. */
16219 #include <math.h>
16221 main ()
16223 float f = 0.0; return isnan(f)
16225 return 0;
16227 _ACEOF
16228 if ac_fn_c_try_link "$LINENO"; then :
16229 ac_cv_have_isnan="yes"
16230 else
16231 ac_cv_have_isnan="no"
16233 rm -f core conftest.err conftest.$ac_objext \
16234 conftest$ac_exeext conftest.$ac_ext
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
16237 $as_echo "$ac_cv_have_isnan" >&6; }
16238 if test "$ac_cv_have_isnan" = "yes"
16239 then
16241 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
16244 LIBS="$ac_save_LIBS"
16247 case $host_cpu in
16248 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
16249 $as_echo_n "checking whether we need to define __i386__... " >&6; }
16250 if ${ac_cv_cpp_def___i386__+:} false; then :
16251 $as_echo_n "(cached) " >&6
16252 else
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16255 #ifndef __i386__
16257 #endif
16258 _ACEOF
16259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16260 $EGREP "yes" >/dev/null 2>&1; then :
16261 ac_cv_cpp_def___i386__=yes
16262 else
16263 ac_cv_cpp_def___i386__=no
16265 rm -f conftest*
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
16269 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
16270 if test "x$ac_cv_cpp_def___i386__" = xyes; then :
16271 CFLAGS="$CFLAGS -D__i386__"
16272 LINTFLAGS="$LINTFLAGS -D__i386__"
16273 fi ;;
16274 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
16275 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
16276 if ${ac_cv_cpp_def___x86_64__+:} false; then :
16277 $as_echo_n "(cached) " >&6
16278 else
16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16281 #ifndef __x86_64__
16283 #endif
16284 _ACEOF
16285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16286 $EGREP "yes" >/dev/null 2>&1; then :
16287 ac_cv_cpp_def___x86_64__=yes
16288 else
16289 ac_cv_cpp_def___x86_64__=no
16291 rm -f conftest*
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
16295 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
16296 if test "x$ac_cv_cpp_def___x86_64__" = xyes; then :
16297 CFLAGS="$CFLAGS -D__x86_64__"
16298 LINTFLAGS="$LINTFLAGS -D__x86_64__"
16299 fi ;;
16300 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
16301 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
16302 if ${ac_cv_cpp_def___sparc64__+:} false; then :
16303 $as_echo_n "(cached) " >&6
16304 else
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h. */
16307 #ifndef __sparc64__
16309 #endif
16310 _ACEOF
16311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16312 $EGREP "yes" >/dev/null 2>&1; then :
16313 ac_cv_cpp_def___sparc64__=yes
16314 else
16315 ac_cv_cpp_def___sparc64__=no
16317 rm -f conftest*
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
16321 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
16322 if test "x$ac_cv_cpp_def___sparc64__" = xyes; then :
16323 CFLAGS="$CFLAGS -D__sparc64__"
16324 LINTFLAGS="$LINTFLAGS -D__sparc64__"
16325 fi ;;
16326 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
16327 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
16328 if ${ac_cv_cpp_def___sparc__+:} false; then :
16329 $as_echo_n "(cached) " >&6
16330 else
16331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16332 /* end confdefs.h. */
16333 #ifndef __sparc__
16335 #endif
16336 _ACEOF
16337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16338 $EGREP "yes" >/dev/null 2>&1; then :
16339 ac_cv_cpp_def___sparc__=yes
16340 else
16341 ac_cv_cpp_def___sparc__=no
16343 rm -f conftest*
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
16347 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
16348 if test "x$ac_cv_cpp_def___sparc__" = xyes; then :
16349 CFLAGS="$CFLAGS -D__sparc__"
16350 LINTFLAGS="$LINTFLAGS -D__sparc__"
16351 fi ;;
16352 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
16353 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
16354 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
16355 $as_echo_n "(cached) " >&6
16356 else
16357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16358 /* end confdefs.h. */
16359 #ifndef __powerpc64__
16361 #endif
16362 _ACEOF
16363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16364 $EGREP "yes" >/dev/null 2>&1; then :
16365 ac_cv_cpp_def___powerpc64__=yes
16366 else
16367 ac_cv_cpp_def___powerpc64__=no
16369 rm -f conftest*
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
16373 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
16374 if test "x$ac_cv_cpp_def___powerpc64__" = xyes; then :
16375 CFLAGS="$CFLAGS -D__powerpc64__"
16376 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
16377 fi ;;
16378 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
16379 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16380 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16381 $as_echo_n "(cached) " >&6
16382 else
16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384 /* end confdefs.h. */
16385 #ifndef __powerpc__
16387 #endif
16388 _ACEOF
16389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16390 $EGREP "yes" >/dev/null 2>&1; then :
16391 ac_cv_cpp_def___powerpc__=yes
16392 else
16393 ac_cv_cpp_def___powerpc__=no
16395 rm -f conftest*
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16399 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16400 if test "x$ac_cv_cpp_def___powerpc__" = xyes; then :
16401 CFLAGS="$CFLAGS -D__powerpc__"
16402 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16403 fi ;;
16404 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16405 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16406 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16407 $as_echo_n "(cached) " >&6
16408 else
16409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16410 /* end confdefs.h. */
16411 #ifndef __aarch64__
16413 #endif
16414 _ACEOF
16415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16416 $EGREP "yes" >/dev/null 2>&1; then :
16417 ac_cv_cpp_def___aarch64__=yes
16418 else
16419 ac_cv_cpp_def___aarch64__=no
16421 rm -f conftest*
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16425 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16426 if test "x$ac_cv_cpp_def___aarch64__" = xyes; then :
16427 CFLAGS="$CFLAGS -D__aarch64__"
16428 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16429 fi ;;
16430 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16431 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16432 if ${ac_cv_cpp_def___arm__+:} false; then :
16433 $as_echo_n "(cached) " >&6
16434 else
16435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h. */
16437 #ifndef __arm__
16439 #endif
16440 _ACEOF
16441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16442 $EGREP "yes" >/dev/null 2>&1; then :
16443 ac_cv_cpp_def___arm__=yes
16444 else
16445 ac_cv_cpp_def___arm__=no
16447 rm -f conftest*
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16451 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16452 if test "x$ac_cv_cpp_def___arm__" = xyes; then :
16453 CFLAGS="$CFLAGS -D__arm__"
16454 LINTFLAGS="$LINTFLAGS -D__arm__"
16455 fi ;;
16456 esac
16458 case $host_vendor in
16459 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16460 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16461 if ${ac_cv_cpp_def___sun__+:} false; then :
16462 $as_echo_n "(cached) " >&6
16463 else
16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16466 #ifndef __sun__
16468 #endif
16469 _ACEOF
16470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16471 $EGREP "yes" >/dev/null 2>&1; then :
16472 ac_cv_cpp_def___sun__=yes
16473 else
16474 ac_cv_cpp_def___sun__=no
16476 rm -f conftest*
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16480 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16481 if test "x$ac_cv_cpp_def___sun__" = xyes; then :
16482 CFLAGS="$CFLAGS -D__sun__"
16483 LINTFLAGS="$LINTFLAGS -D__sun__"
16484 fi ;;
16485 esac
16491 ac_config_commands="$ac_config_commands include/stamp-h"
16493 $as_echo_n "creating Makefile rules..." >&6
16495 ALL_VARS_RULES="OPENGL_LIBS = $OPENGL_LIBS
16496 SOCKET_LIBS = $SOCKET_LIBS
16497 COREFOUNDATION_LIBS = $COREFOUNDATION_LIBS
16498 IOKIT_LIBS = $IOKIT_LIBS
16499 FORCEFEEDBACK_LIBS = $FORCEFEEDBACK_LIBS
16500 APPLICATIONSERVICES_LIBS = $APPLICATIONSERVICES_LIBS
16501 CORESERVICES_LIBS = $CORESERVICES_LIBS
16502 APPKIT_LIBS = $APPKIT_LIBS
16503 DISKARBITRATION_LIBS = $DISKARBITRATION_LIBS
16504 SECURITY_LIBS = $SECURITY_LIBS
16505 COREAUDIO_LIBS = $COREAUDIO_LIBS
16506 OPENAL_LIBS = $OPENAL_LIBS
16507 OPENCL_LIBS = $OPENCL_LIBS
16508 QUICKTIME_LIBS = $QUICKTIME_LIBS
16509 CARBON_LIBS = $CARBON_LIBS
16510 PTHREAD_LIBS = $PTHREAD_LIBS
16511 X_CFLAGS = $X_CFLAGS
16512 X_PRE_LIBS = $X_PRE_LIBS
16513 X_LIBS = $X_LIBS
16514 X_EXTRA_LIBS = $X_EXTRA_LIBS
16515 XML2_CFLAGS = $XML2_CFLAGS
16516 XML2_LIBS = $XML2_LIBS
16517 XSLT_CFLAGS = $XSLT_CFLAGS
16518 XSLT_LIBS = $XSLT_LIBS
16519 DBUS_CFLAGS = $DBUS_CFLAGS
16520 DBUS_LIBS = $DBUS_LIBS
16521 HAL_CFLAGS = $HAL_CFLAGS
16522 HAL_LIBS = $HAL_LIBS
16523 GNUTLS_CFLAGS = $GNUTLS_CFLAGS
16524 GNUTLS_LIBS = $GNUTLS_LIBS
16525 SANE_CFLAGS = $SANE_CFLAGS
16526 SANE_LIBS = $SANE_LIBS
16527 GPHOTO2_CFLAGS = $GPHOTO2_CFLAGS
16528 GPHOTO2_LIBS = $GPHOTO2_LIBS
16529 GPHOTO2_PORT_CFLAGS = $GPHOTO2_PORT_CFLAGS
16530 GPHOTO2_PORT_LIBS = $GPHOTO2_PORT_LIBS
16531 RESOLV_LIBS = $RESOLV_LIBS
16532 LCMS2_CFLAGS = $LCMS2_CFLAGS
16533 LCMS2_LIBS = $LCMS2_LIBS
16534 FREETYPE_CFLAGS = $FREETYPE_CFLAGS
16535 FREETYPE_LIBS = $FREETYPE_LIBS
16536 Z_LIBS = $Z_LIBS
16537 GETTEXTPO_LIBS = $GETTEXTPO_LIBS
16538 GSTREAMER_CFLAGS = $GSTREAMER_CFLAGS
16539 GSTREAMER_LIBS = $GSTREAMER_LIBS
16540 ALSA_LIBS = $ALSA_LIBS
16541 OSS4_CFLAGS = $OSS4_CFLAGS
16542 CAPI20_CFLAGS = $CAPI20_CFLAGS
16543 CAPI20_LIBS = $CAPI20_LIBS
16544 CUPS_CFLAGS = $CUPS_CFLAGS
16545 FONTCONFIG_CFLAGS = $FONTCONFIG_CFLAGS
16546 FONTCONFIG_LIBS = $FONTCONFIG_LIBS
16547 JPEG_CFLAGS = $JPEG_CFLAGS
16548 JPEG_LIBS = $JPEG_LIBS
16549 PNG_CFLAGS = $PNG_CFLAGS
16550 PNG_LIBS = $PNG_LIBS
16551 TIFF_CFLAGS = $TIFF_CFLAGS
16552 TIFF_LIBS = $TIFF_LIBS
16553 MPG123_CFLAGS = $MPG123_CFLAGS
16554 MPG123_LIBS = $MPG123_LIBS
16555 KSTAT_LIBS = $KSTAT_LIBS
16556 PROCSTAT_LIBS = $PROCSTAT_LIBS
16557 DL_LIBS = $DL_LIBS
16558 POLL_LIBS = $POLL_LIBS
16559 RT_LIBS = $RT_LIBS
16560 LDAP_LIBS = $LDAP_LIBS
16565 wine_fn_append_rule "
16566 # Rules automatically generated by configure
16568 CLEAN_FILES = *.o *.a *.so *.res *.fake *.ok *.tab.[ch] *.yy.c
16570 .INIT: Makefile
16571 .MAKEFILEDEPS:
16572 all: Makefile
16573 Makefile: $srcdir/Makefile.in $srcdir/Make.vars.in config.status \$(MAKEDEP)
16574 @./config.status Make.tmp Makefile && \$(MAKEDEP) ."
16576 test "$srcdir" = . && wine_fn_append_rule "all: .gitignore
16577 .gitignore: config.status
16578 @./config.status .gitignore"
16580 test -n "$CROSSTARGET" || wine_fn_append_rule "crosstest:
16581 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16583 if test "x$enable_fonts" != xno; then
16584 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16585 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16586 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16587 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16588 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16590 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16591 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16592 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16593 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16594 ac_config_links="$ac_config_links wine:tools/winewrapper"
16595 wine_fn_config_symlink wine
16596 if test "x$enable_win64" != xno; then
16597 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16598 wine_fn_config_symlink wine64
16601 wine_fn_config_dll acledit enable_acledit
16602 wine_fn_config_dll aclui enable_aclui implib
16603 wine_fn_config_dll activeds enable_activeds implib
16604 wine_fn_config_dll actxprxy enable_actxprxy clean
16605 wine_fn_config_lib adsiid
16606 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
16607 wine_fn_config_test dlls/advapi32/tests advapi32_test
16608 wine_fn_config_dll advpack enable_advpack implib
16609 wine_fn_config_test dlls/advpack/tests advpack_test
16610 wine_fn_config_dll amstream enable_amstream clean
16611 wine_fn_config_test dlls/amstream/tests amstream_test
16612 wine_fn_config_dll api-ms-win-core-com-l1-1-0 enable_api_ms_win_core_com_l1_1_0
16613 wine_fn_config_dll api-ms-win-core-console-l1-1-0 enable_api_ms_win_core_console_l1_1_0
16614 wine_fn_config_dll api-ms-win-core-debug-l1-1-1 enable_api_ms_win_core_debug_l1_1_1
16615 wine_fn_config_dll api-ms-win-core-errorhandling-l1-1-1 enable_api_ms_win_core_errorhandling_l1_1_1
16616 wine_fn_config_dll api-ms-win-core-file-l1-2-0 enable_api_ms_win_core_file_l1_2_0
16617 wine_fn_config_dll api-ms-win-core-handle-l1-1-0 enable_api_ms_win_core_handle_l1_1_0
16618 wine_fn_config_dll api-ms-win-core-heap-l1-2-0 enable_api_ms_win_core_heap_l1_2_0
16619 wine_fn_config_dll api-ms-win-core-heap-obsolete-l1-1-0 enable_api_ms_win_core_heap_obsolete_l1_1_0
16620 wine_fn_config_dll api-ms-win-core-interlocked-l1-2-0 enable_api_ms_win_core_interlocked_l1_2_0
16621 wine_fn_config_dll api-ms-win-core-io-l1-1-1 enable_api_ms_win_core_io_l1_1_1
16622 wine_fn_config_dll api-ms-win-core-kernel32-legacy-l1-1-0 enable_api_ms_win_core_kernel32_legacy_l1_1_0
16623 wine_fn_config_dll api-ms-win-core-libraryloader-l1-1-1 enable_api_ms_win_core_libraryloader_l1_1_1
16624 wine_fn_config_dll api-ms-win-core-localization-l1-2-0 enable_api_ms_win_core_localization_l1_2_0
16625 wine_fn_config_dll api-ms-win-core-localization-obsolete-l1-1-0 enable_api_ms_win_core_localization_obsolete_l1_1_0
16626 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
16627 wine_fn_config_dll api-ms-win-core-memory-l1-1-1 enable_api_ms_win_core_memory_l1_1_1
16628 wine_fn_config_dll api-ms-win-core-namedpipe-l1-2-0 enable_api_ms_win_core_namedpipe_l1_2_0
16629 wine_fn_config_dll api-ms-win-core-processenvironment-l1-2-0 enable_api_ms_win_core_processenvironment_l1_2_0
16630 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
16631 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-1 enable_api_ms_win_core_processthreads_l1_1_1
16632 wine_fn_config_dll api-ms-win-core-profile-l1-1-0 enable_api_ms_win_core_profile_l1_1_0
16633 wine_fn_config_dll api-ms-win-core-psapi-l1-1-0 enable_api_ms_win_core_psapi_l1_1_0
16634 wine_fn_config_dll api-ms-win-core-registry-l1-1-0 enable_api_ms_win_core_registry_l1_1_0
16635 wine_fn_config_dll api-ms-win-core-rtlsupport-l1-2-0 enable_api_ms_win_core_rtlsupport_l1_2_0
16636 wine_fn_config_dll api-ms-win-core-shlwapi-legacy-l1-1-0 enable_api_ms_win_core_shlwapi_legacy_l1_1_0
16637 wine_fn_config_dll api-ms-win-core-string-l1-1-0 enable_api_ms_win_core_string_l1_1_0
16638 wine_fn_config_dll api-ms-win-core-synch-l1-2-0 enable_api_ms_win_core_synch_l1_2_0
16639 wine_fn_config_dll api-ms-win-core-sysinfo-l1-2-0 enable_api_ms_win_core_sysinfo_l1_2_0
16640 wine_fn_config_dll api-ms-win-core-threadpool-legacy-l1-1-0 enable_api_ms_win_core_threadpool_legacy_l1_1_0
16641 wine_fn_config_dll api-ms-win-core-timezone-l1-1-0 enable_api_ms_win_core_timezone_l1_1_0
16642 wine_fn_config_dll api-ms-win-core-url-l1-1-0 enable_api_ms_win_core_url_l1_1_0
16643 wine_fn_config_dll api-ms-win-core-util-l1-1-0 enable_api_ms_win_core_util_l1_1_0
16644 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
16645 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
16646 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
16647 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
16648 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
16649 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
16650 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
16651 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
16652 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
16653 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
16654 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
16655 wine_fn_config_dll api-ms-win-eventing-provider-l1-1-0 enable_api_ms_win_eventing_provider_l1_1_0
16656 wine_fn_config_dll api-ms-win-ntuser-dc-access-l1-1-0 enable_api_ms_win_ntuser_dc_access_l1_1_0
16657 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
16658 wine_fn_config_dll api-ms-win-security-base-l1-2-0 enable_api_ms_win_security_base_l1_2_0
16659 wine_fn_config_dll api-ms-win-security-sddl-l1-1-0 enable_api_ms_win_security_sddl_l1_1_0
16660 wine_fn_config_dll api-ms-win-service-core-l1-1-1 enable_api_ms_win_service_core_l1_1_1
16661 wine_fn_config_dll api-ms-win-service-management-l1-1-0 enable_api_ms_win_service_management_l1_1_0
16662 wine_fn_config_dll api-ms-win-service-winsvc-l1-2-0 enable_api_ms_win_service_winsvc_l1_2_0
16663 wine_fn_config_dll apphelp enable_apphelp
16664 wine_fn_config_test dlls/apphelp/tests apphelp_test
16665 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
16666 wine_fn_config_dll atl enable_atl clean,implib
16667 wine_fn_config_test dlls/atl/tests atl_test
16668 wine_fn_config_dll atl100 enable_atl100 implib
16669 wine_fn_config_test dlls/atl100/tests atl100_test
16670 wine_fn_config_dll atl110 enable_atl110
16671 wine_fn_config_dll atl80 enable_atl80 implib
16672 wine_fn_config_test dlls/atl80/tests atl80_test
16673 wine_fn_config_dll atl90 enable_atl90
16674 wine_fn_config_dll authz enable_authz
16675 wine_fn_config_dll avicap32 enable_avicap32 implib
16676 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
16677 wine_fn_config_test dlls/avifil32/tests avifil32_test
16678 wine_fn_config_dll avifile.dll16 enable_win16
16679 wine_fn_config_dll avrt enable_avrt implib
16680 wine_fn_config_dll bcrypt enable_bcrypt
16681 wine_fn_config_test dlls/bcrypt/tests bcrypt_test
16682 wine_fn_config_dll browseui enable_browseui clean,po
16683 wine_fn_config_test dlls/browseui/tests browseui_test
16684 wine_fn_config_dll cabinet enable_cabinet implib
16685 wine_fn_config_test dlls/cabinet/tests cabinet_test
16686 wine_fn_config_dll capi2032 enable_capi2032 implib
16687 wine_fn_config_dll cards enable_cards implib
16688 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
16689 wine_fn_config_dll clusapi enable_clusapi implib
16690 wine_fn_config_dll comcat enable_comcat
16691 wine_fn_config_test dlls/comcat/tests comcat_test
16692 wine_fn_config_dll comctl32 enable_comctl32 implib,po
16693 wine_fn_config_test dlls/comctl32/tests comctl32_test
16694 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
16695 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
16696 wine_fn_config_dll comm.drv16 enable_win16
16697 wine_fn_config_dll commdlg.dll16 enable_win16
16698 wine_fn_config_dll compobj.dll16 enable_win16
16699 wine_fn_config_dll compstui enable_compstui implib
16700 wine_fn_config_dll comsvcs enable_comsvcs implib
16701 wine_fn_config_dll credui enable_credui implib,po
16702 wine_fn_config_test dlls/credui/tests credui_test
16703 wine_fn_config_dll crtdll enable_crtdll implib
16704 wine_fn_config_dll crypt32 enable_crypt32 implib,po
16705 wine_fn_config_test dlls/crypt32/tests crypt32_test
16706 wine_fn_config_dll cryptdlg enable_cryptdlg po
16707 wine_fn_config_dll cryptdll enable_cryptdll implib
16708 wine_fn_config_dll cryptnet enable_cryptnet implib
16709 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
16710 wine_fn_config_dll cryptui enable_cryptui implib,po
16711 wine_fn_config_test dlls/cryptui/tests cryptui_test
16712 wine_fn_config_dll ctapi32 enable_ctapi32
16713 wine_fn_config_dll ctl3d.dll16 enable_win16
16714 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
16715 wine_fn_config_dll ctl3dv2.dll16 enable_win16
16716 wine_fn_config_dll d3d10 enable_d3d10 implib
16717 wine_fn_config_test dlls/d3d10/tests d3d10_test
16718 wine_fn_config_dll d3d10_1 enable_d3d10_1 implib
16719 wine_fn_config_dll d3d10core enable_d3d10core implib
16720 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
16721 wine_fn_config_dll d3d11 enable_d3d11
16722 wine_fn_config_dll d3d8 enable_d3d8 implib
16723 wine_fn_config_test dlls/d3d8/tests d3d8_test
16724 wine_fn_config_dll d3d9 enable_d3d9 implib
16725 wine_fn_config_test dlls/d3d9/tests d3d9_test
16726 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
16727 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
16728 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
16729 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
16730 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
16731 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
16732 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
16733 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
16734 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
16735 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
16736 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
16737 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
16738 wine_fn_config_dll d3dim enable_d3dim implib
16739 wine_fn_config_dll d3drm enable_d3drm implib
16740 wine_fn_config_test dlls/d3drm/tests d3drm_test
16741 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
16742 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
16743 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
16744 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
16745 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
16746 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
16747 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
16748 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
16749 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
16750 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
16751 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
16752 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
16753 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
16754 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
16755 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
16756 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
16757 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
16758 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
16759 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
16760 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
16761 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
16762 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
16763 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
16764 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
16765 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
16766 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
16767 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
16768 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
16769 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
16770 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
16771 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
16772 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
16773 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
16774 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
16775 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
16776 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
16777 wine_fn_config_dll dbgeng enable_dbgeng implib
16778 wine_fn_config_dll dbghelp enable_dbghelp implib
16779 wine_fn_config_dll dciman32 enable_dciman32 implib
16780 wine_fn_config_dll ddeml.dll16 enable_win16
16781 wine_fn_config_dll ddraw enable_ddraw clean,implib
16782 wine_fn_config_test dlls/ddraw/tests ddraw_test
16783 wine_fn_config_dll ddrawex enable_ddrawex clean
16784 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
16785 wine_fn_config_dll devenum enable_devenum clean,po
16786 wine_fn_config_test dlls/devenum/tests devenum_test
16787 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
16788 wine_fn_config_dll difxapi enable_difxapi
16789 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
16790 wine_fn_config_test dlls/dinput/tests dinput_test
16791 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
16792 wine_fn_config_test dlls/dinput8/tests dinput8_test
16793 wine_fn_config_dll dispdib.dll16 enable_win16
16794 wine_fn_config_dll dispex enable_dispex clean
16795 wine_fn_config_test dlls/dispex/tests dispex_test
16796 wine_fn_config_dll display.drv16 enable_win16
16797 wine_fn_config_dll dmband enable_dmband clean
16798 wine_fn_config_test dlls/dmband/tests dmband_test
16799 wine_fn_config_dll dmcompos enable_dmcompos clean
16800 wine_fn_config_test dlls/dmcompos/tests dmcompos_test
16801 wine_fn_config_dll dmime enable_dmime clean
16802 wine_fn_config_test dlls/dmime/tests dmime_test
16803 wine_fn_config_dll dmloader enable_dmloader clean
16804 wine_fn_config_test dlls/dmloader/tests dmloader_test
16805 wine_fn_config_dll dmscript enable_dmscript clean
16806 wine_fn_config_test dlls/dmscript/tests dmscript_test
16807 wine_fn_config_dll dmstyle enable_dmstyle clean
16808 wine_fn_config_test dlls/dmstyle/tests dmstyle_test
16809 wine_fn_config_dll dmsynth enable_dmsynth clean
16810 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
16811 wine_fn_config_dll dmusic enable_dmusic clean
16812 wine_fn_config_test dlls/dmusic/tests dmusic_test
16813 wine_fn_config_dll dmusic32 enable_dmusic32 implib
16814 wine_fn_config_dll dnsapi enable_dnsapi implib
16815 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
16816 wine_fn_config_dll dplay enable_dplay implib
16817 wine_fn_config_dll dplayx enable_dplayx clean,implib
16818 wine_fn_config_test dlls/dplayx/tests dplayx_test
16819 wine_fn_config_dll dpnaddr enable_dpnaddr
16820 wine_fn_config_dll dpnet enable_dpnet clean,implib
16821 wine_fn_config_test dlls/dpnet/tests dpnet_test
16822 wine_fn_config_dll dpnhpast enable_dpnhpast
16823 wine_fn_config_dll dpnlobby enable_dpnlobby
16824 wine_fn_config_dll dpwsockx enable_dpwsockx
16825 wine_fn_config_dll drmclien enable_drmclien
16826 wine_fn_config_dll dsound enable_dsound clean,implib
16827 wine_fn_config_test dlls/dsound/tests dsound_test
16828 wine_fn_config_dll dssenh enable_dssenh
16829 wine_fn_config_test dlls/dssenh/tests dssenh_test
16830 wine_fn_config_dll dswave enable_dswave clean
16831 wine_fn_config_dll dwmapi enable_dwmapi implib
16832 wine_fn_config_dll dwrite enable_dwrite implib
16833 wine_fn_config_test dlls/dwrite/tests dwrite_test
16834 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
16835 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
16836 wine_fn_config_lib dxerr8
16837 wine_fn_config_lib dxerr9
16838 wine_fn_config_dll dxgi enable_dxgi implib
16839 wine_fn_config_test dlls/dxgi/tests dxgi_test
16840 wine_fn_config_lib dxguid
16841 wine_fn_config_dll explorerframe enable_explorerframe clean
16842 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
16843 wine_fn_config_dll ext-ms-win-gdi-devcaps-l1-1-0 enable_ext_ms_win_gdi_devcaps_l1_1_0
16844 wine_fn_config_dll faultrep enable_faultrep implib
16845 wine_fn_config_test dlls/faultrep/tests faultrep_test
16846 wine_fn_config_dll fltlib enable_fltlib
16847 wine_fn_config_dll fusion enable_fusion
16848 wine_fn_config_test dlls/fusion/tests fusion_test
16849 wine_fn_config_dll fwpuclnt enable_fwpuclnt
16850 wine_fn_config_dll gameux enable_gameux clean
16851 wine_fn_config_test dlls/gameux/tests gameux_test
16852 wine_fn_config_dll gdi.exe16 enable_win16
16853 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
16854 wine_fn_config_test dlls/gdi32/tests gdi32_test
16855 wine_fn_config_dll gdiplus enable_gdiplus implib
16856 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
16857 wine_fn_config_dll glu32 enable_glu32 implib
16858 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
16859 wine_fn_config_dll gpkcsp enable_gpkcsp
16860 wine_fn_config_dll hal enable_hal
16861 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
16862 wine_fn_config_dll hid enable_hid implib
16863 wine_fn_config_dll hlink enable_hlink clean,implib
16864 wine_fn_config_test dlls/hlink/tests hlink_test
16865 wine_fn_config_dll hnetcfg enable_hnetcfg clean
16866 wine_fn_config_dll httpapi enable_httpapi
16867 wine_fn_config_dll iccvid enable_iccvid po
16868 wine_fn_config_dll icmp enable_icmp
16869 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
16870 wine_fn_config_test dlls/ieframe/tests ieframe_test
16871 wine_fn_config_dll ifsmgr.vxd enable_win16
16872 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
16873 wine_fn_config_dll imagehlp enable_imagehlp implib
16874 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
16875 wine_fn_config_dll imm.dll16 enable_win16
16876 wine_fn_config_dll imm32 enable_imm32 implib
16877 wine_fn_config_test dlls/imm32/tests imm32_test
16878 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
16879 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16880 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16881 wine_fn_config_dll inetmib1 enable_inetmib1
16882 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16883 wine_fn_config_dll infosoft enable_infosoft clean
16884 wine_fn_config_test dlls/infosoft/tests infosoft_test
16885 wine_fn_config_dll initpki enable_initpki
16886 wine_fn_config_dll inkobj enable_inkobj
16887 wine_fn_config_dll inseng enable_inseng clean
16888 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16889 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16890 wine_fn_config_dll itircl enable_itircl
16891 wine_fn_config_dll itss enable_itss clean
16892 wine_fn_config_test dlls/itss/tests itss_test
16893 wine_fn_config_dll joy.cpl enable_joy_cpl po
16894 wine_fn_config_dll jscript enable_jscript clean,po
16895 wine_fn_config_test dlls/jscript/tests jscript_test
16896 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
16897 wine_fn_config_test dlls/kernel32/tests kernel32_test
16898 wine_fn_config_dll keyboard.drv16 enable_win16
16899 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16900 wine_fn_config_dll ktmw32 enable_ktmw32
16901 wine_fn_config_dll loadperf enable_loadperf implib
16902 wine_fn_config_dll localspl enable_localspl po
16903 wine_fn_config_test dlls/localspl/tests localspl_test
16904 wine_fn_config_dll localui enable_localui po
16905 wine_fn_config_test dlls/localui/tests localui_test
16906 wine_fn_config_dll lz32 enable_lz32 implib
16907 wine_fn_config_test dlls/lz32/tests lz32_test
16908 wine_fn_config_dll lzexpand.dll16 enable_win16
16909 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16910 wine_fn_config_test dlls/mapi32/tests mapi32_test
16911 wine_fn_config_dll mapistub enable_mapistub
16912 wine_fn_config_dll mciavi32 enable_mciavi32
16913 wine_fn_config_dll mcicda enable_mcicda
16914 wine_fn_config_dll mciqtz32 enable_mciqtz32
16915 wine_fn_config_dll mciseq enable_mciseq
16916 wine_fn_config_dll mciwave enable_mciwave
16917 wine_fn_config_dll mgmtapi enable_mgmtapi
16918 wine_fn_config_dll midimap enable_midimap
16919 wine_fn_config_dll mlang enable_mlang clean,implib
16920 wine_fn_config_test dlls/mlang/tests mlang_test
16921 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
16922 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16923 wine_fn_config_dll mmdevapi enable_mmdevapi clean
16924 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16925 wine_fn_config_dll mmdevldr.vxd enable_win16
16926 wine_fn_config_dll mmsystem.dll16 enable_win16
16927 wine_fn_config_dll monodebg.vxd enable_win16
16928 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16929 wine_fn_config_dll mouse.drv16 enable_win16
16930 wine_fn_config_dll mpr enable_mpr implib,po
16931 wine_fn_config_test dlls/mpr/tests mpr_test
16932 wine_fn_config_dll mprapi enable_mprapi implib
16933 wine_fn_config_dll msacm.dll16 enable_win16
16934 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16935 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16936 wine_fn_config_test dlls/msacm32/tests msacm32_test
16937 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16938 wine_fn_config_dll mscat32 enable_mscat32
16939 wine_fn_config_dll mscms enable_mscms implib
16940 wine_fn_config_test dlls/mscms/tests mscms_test
16941 wine_fn_config_dll mscoree enable_mscoree clean
16942 wine_fn_config_test dlls/mscoree/tests mscoree_test
16943 wine_fn_config_dll msctf enable_msctf clean
16944 wine_fn_config_test dlls/msctf/tests msctf_test
16945 wine_fn_config_dll msdaps enable_msdaps clean
16946 wine_fn_config_dll msdmo enable_msdmo implib
16947 wine_fn_config_dll msftedit enable_msftedit
16948 wine_fn_config_dll msg711.acm enable_msg711_acm
16949 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16950 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
16951 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
16952 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
16953 wine_fn_config_dll msi enable_msi clean,implib,po
16954 wine_fn_config_test dlls/msi/tests msi_test
16955 wine_fn_config_dll msident enable_msident clean
16956 wine_fn_config_dll msimg32 enable_msimg32 implib
16957 wine_fn_config_dll msimsg enable_msimsg
16958 wine_fn_config_dll msimtf enable_msimtf clean
16959 wine_fn_config_dll msisip enable_msisip
16960 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16961 wine_fn_config_dll msls31 enable_msls31
16962 wine_fn_config_dll msnet32 enable_msnet32
16963 wine_fn_config_dll mspatcha enable_mspatcha
16964 wine_fn_config_dll msrle32 enable_msrle32 po
16965 wine_fn_config_test dlls/msrle32/tests msrle32_test
16966 wine_fn_config_dll mssign32 enable_mssign32
16967 wine_fn_config_dll mssip32 enable_mssip32
16968 wine_fn_config_dll mstask enable_mstask clean
16969 wine_fn_config_test dlls/mstask/tests mstask_test
16970 wine_fn_config_dll msvcirt enable_msvcirt
16971 wine_fn_config_dll msvcm80 enable_msvcm80
16972 wine_fn_config_dll msvcm90 enable_msvcm90
16973 wine_fn_config_dll msvcp100 enable_msvcp100
16974 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16975 wine_fn_config_dll msvcp110 enable_msvcp110
16976 wine_fn_config_dll msvcp60 enable_msvcp60
16977 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16978 wine_fn_config_dll msvcp70 enable_msvcp70
16979 wine_fn_config_dll msvcp71 enable_msvcp71
16980 wine_fn_config_dll msvcp80 enable_msvcp80
16981 wine_fn_config_dll msvcp90 enable_msvcp90
16982 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16983 wine_fn_config_dll msvcr100 enable_msvcr100 implib
16984 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16985 wine_fn_config_dll msvcr110 enable_msvcr110 implib
16986 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16987 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16988 wine_fn_config_dll msvcr80 enable_msvcr80 implib
16989 wine_fn_config_dll msvcr90 enable_msvcr90 implib
16990 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16991 wine_fn_config_dll msvcrt enable_msvcrt implib
16992 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16993 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16994 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16995 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16996 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16997 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16998 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16999 wine_fn_config_dll msvidc32 enable_msvidc32 po
17000 wine_fn_config_dll msvideo.dll16 enable_win16
17001 wine_fn_config_dll mswsock enable_mswsock implib
17002 wine_fn_config_dll msxml enable_msxml clean
17003 wine_fn_config_dll msxml2 enable_msxml2 clean
17004 wine_fn_config_dll msxml3 enable_msxml3 clean
17005 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
17006 wine_fn_config_dll msxml4 enable_msxml4 clean
17007 wine_fn_config_dll msxml6 enable_msxml6 clean
17008 wine_fn_config_dll nddeapi enable_nddeapi implib
17009 wine_fn_config_dll netapi32 enable_netapi32 implib
17010 wine_fn_config_test dlls/netapi32/tests netapi32_test
17011 wine_fn_config_dll netcfgx enable_netcfgx
17012 wine_fn_config_dll newdev enable_newdev implib
17013 wine_fn_config_dll normaliz enable_normaliz implib
17014 wine_fn_config_dll npmshtml enable_npmshtml
17015 wine_fn_config_dll ntdll enable_ntdll implib
17016 wine_fn_config_test dlls/ntdll/tests ntdll_test
17017 wine_fn_config_dll ntdsapi enable_ntdsapi implib
17018 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
17019 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
17020 wine_fn_config_dll ntprint enable_ntprint
17021 wine_fn_config_test dlls/ntprint/tests ntprint_test
17022 wine_fn_config_dll objsel enable_objsel clean
17023 wine_fn_config_dll odbc32 enable_odbc32 implib
17024 wine_fn_config_dll odbccp32 enable_odbccp32 implib
17025 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
17026 wine_fn_config_dll odbccu32 enable_odbccu32
17027 wine_fn_config_dll ole2.dll16 enable_win16
17028 wine_fn_config_dll ole2conv.dll16 enable_win16
17029 wine_fn_config_dll ole2disp.dll16 enable_win16
17030 wine_fn_config_dll ole2nls.dll16 enable_win16
17031 wine_fn_config_dll ole2prox.dll16 enable_win16
17032 wine_fn_config_dll ole2thk.dll16 enable_win16
17033 wine_fn_config_dll ole32 enable_ole32 clean,implib
17034 wine_fn_config_test dlls/ole32/tests ole32_test
17035 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
17036 wine_fn_config_test dlls/oleacc/tests oleacc_test
17037 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
17038 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
17039 wine_fn_config_dll olecli.dll16 enable_win16
17040 wine_fn_config_dll olecli32 enable_olecli32 implib
17041 wine_fn_config_dll oledb32 enable_oledb32 clean
17042 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
17043 wine_fn_config_dll oledlg enable_oledlg implib,po
17044 wine_fn_config_dll olepro32 enable_olepro32 implib
17045 wine_fn_config_dll olesvr.dll16 enable_win16
17046 wine_fn_config_dll olesvr32 enable_olesvr32 implib
17047 wine_fn_config_dll olethk32 enable_olethk32
17048 wine_fn_config_dll openal32 enable_openal32
17049 wine_fn_config_dll opencl enable_opencl
17050 wine_fn_config_dll opengl32 enable_opengl32 implib
17051 wine_fn_config_test dlls/opengl32/tests opengl32_test
17052 wine_fn_config_dll pdh enable_pdh implib
17053 wine_fn_config_test dlls/pdh/tests pdh_test
17054 wine_fn_config_dll photometadatahandler enable_photometadatahandler
17055 wine_fn_config_dll pidgen enable_pidgen
17056 wine_fn_config_dll powrprof enable_powrprof implib
17057 wine_fn_config_dll printui enable_printui
17058 wine_fn_config_dll propsys enable_propsys clean,implib
17059 wine_fn_config_test dlls/propsys/tests propsys_test
17060 wine_fn_config_dll psapi enable_psapi implib
17061 wine_fn_config_test dlls/psapi/tests psapi_test
17062 wine_fn_config_dll pstorec enable_pstorec clean
17063 wine_fn_config_dll qcap enable_qcap
17064 wine_fn_config_test dlls/qcap/tests qcap_test
17065 wine_fn_config_dll qedit enable_qedit clean
17066 wine_fn_config_test dlls/qedit/tests qedit_test
17067 wine_fn_config_dll qmgr enable_qmgr clean
17068 wine_fn_config_test dlls/qmgr/tests qmgr_test
17069 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
17070 wine_fn_config_dll quartz enable_quartz clean,implib
17071 wine_fn_config_test dlls/quartz/tests quartz_test clean
17072 wine_fn_config_dll query enable_query
17073 wine_fn_config_dll rasapi16.dll16 enable_win16
17074 wine_fn_config_dll rasapi32 enable_rasapi32 implib
17075 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
17076 wine_fn_config_dll rasdlg enable_rasdlg implib
17077 wine_fn_config_dll regapi enable_regapi
17078 wine_fn_config_dll resutils enable_resutils implib
17079 wine_fn_config_dll riched20 enable_riched20 implib
17080 wine_fn_config_test dlls/riched20/tests riched20_test
17081 wine_fn_config_dll riched32 enable_riched32
17082 wine_fn_config_test dlls/riched32/tests riched32_test
17083 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
17084 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
17085 wine_fn_config_dll rsabase enable_rsabase
17086 wine_fn_config_dll rsaenh enable_rsaenh implib
17087 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
17088 wine_fn_config_dll rstrtmgr enable_rstrtmgr
17089 wine_fn_config_dll rtutils enable_rtutils implib
17090 wine_fn_config_dll samlib enable_samlib
17091 wine_fn_config_dll sane.ds enable_sane_ds po
17092 wine_fn_config_dll scarddlg enable_scarddlg
17093 wine_fn_config_dll sccbase enable_sccbase
17094 wine_fn_config_dll schannel enable_schannel
17095 wine_fn_config_test dlls/schannel/tests schannel_test
17096 wine_fn_config_dll scrrun enable_scrrun clean
17097 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
17098 wine_fn_config_dll scsiport.sys enable_scsiport_sys
17099 wine_fn_config_dll secur32 enable_secur32 implib
17100 wine_fn_config_test dlls/secur32/tests secur32_test
17101 wine_fn_config_dll security enable_security
17102 wine_fn_config_dll sensapi enable_sensapi implib
17103 wine_fn_config_dll serialui enable_serialui implib,po
17104 wine_fn_config_test dlls/serialui/tests serialui_test
17105 wine_fn_config_dll setupapi enable_setupapi implib,po
17106 wine_fn_config_test dlls/setupapi/tests setupapi_test
17107 wine_fn_config_dll setupx.dll16 enable_win16
17108 wine_fn_config_dll sfc enable_sfc implib
17109 wine_fn_config_dll sfc_os enable_sfc_os implib
17110 wine_fn_config_dll shdoclc enable_shdoclc po
17111 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
17112 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
17113 wine_fn_config_dll shell.dll16 enable_win16
17114 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
17115 wine_fn_config_test dlls/shell32/tests shell32_test
17116 wine_fn_config_dll shfolder enable_shfolder implib
17117 wine_fn_config_dll shlwapi enable_shlwapi implib,po
17118 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
17119 wine_fn_config_dll slbcsp enable_slbcsp
17120 wine_fn_config_dll slc enable_slc implib
17121 wine_fn_config_dll snmpapi enable_snmpapi implib
17122 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
17123 wine_fn_config_dll softpub enable_softpub
17124 wine_fn_config_dll sound.drv16 enable_win16
17125 wine_fn_config_dll spoolss enable_spoolss implib
17126 wine_fn_config_test dlls/spoolss/tests spoolss_test
17127 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
17128 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
17129 wine_fn_config_dll sti enable_sti clean,implib
17130 wine_fn_config_test dlls/sti/tests sti_test
17131 wine_fn_config_dll storage.dll16 enable_win16
17132 wine_fn_config_dll stress.dll16 enable_win16
17133 wine_fn_config_lib strmbase
17134 wine_fn_config_lib strmiids
17135 wine_fn_config_dll svrapi enable_svrapi
17136 wine_fn_config_dll sxs enable_sxs implib
17137 wine_fn_config_test dlls/sxs/tests sxs_test
17138 wine_fn_config_dll system.drv16 enable_win16
17139 wine_fn_config_dll t2embed enable_t2embed
17140 wine_fn_config_dll tapi32 enable_tapi32 implib
17141 wine_fn_config_dll taskschd enable_taskschd clean
17142 wine_fn_config_test dlls/taskschd/tests taskschd_test
17143 wine_fn_config_dll toolhelp.dll16 enable_win16
17144 wine_fn_config_dll traffic enable_traffic
17145 wine_fn_config_dll twain.dll16 enable_win16
17146 wine_fn_config_dll twain_32 enable_twain_32
17147 wine_fn_config_test dlls/twain_32/tests twain_32_test
17148 wine_fn_config_dll typelib.dll16 enable_win16
17149 wine_fn_config_dll unicows enable_unicows implib
17150 wine_fn_config_dll updspapi enable_updspapi
17151 wine_fn_config_dll url enable_url implib
17152 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17153 wine_fn_config_test dlls/urlmon/tests urlmon_test
17154 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17155 wine_fn_config_dll user.exe16 enable_win16
17156 wine_fn_config_dll user32 enable_user32 clean,implib,po
17157 wine_fn_config_test dlls/user32/tests user32_test
17158 wine_fn_config_dll userenv enable_userenv implib
17159 wine_fn_config_test dlls/userenv/tests userenv_test
17160 wine_fn_config_dll usp10 enable_usp10 implib
17161 wine_fn_config_test dlls/usp10/tests usp10_test
17162 wine_fn_config_lib uuid
17163 wine_fn_config_dll uxtheme enable_uxtheme implib
17164 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17165 wine_fn_config_dll vbscript enable_vbscript clean
17166 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17167 wine_fn_config_dll vcomp enable_vcomp
17168 wine_fn_config_dll vcomp100 enable_vcomp100
17169 wine_fn_config_dll vcomp90 enable_vcomp90
17170 wine_fn_config_dll vdhcp.vxd enable_win16
17171 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17172 wine_fn_config_dll ver.dll16 enable_win16
17173 wine_fn_config_dll version enable_version implib
17174 wine_fn_config_test dlls/version/tests version_test
17175 wine_fn_config_dll vmm.vxd enable_win16
17176 wine_fn_config_dll vnbt.vxd enable_win16
17177 wine_fn_config_dll vnetbios.vxd enable_win16
17178 wine_fn_config_dll vtdapi.vxd enable_win16
17179 wine_fn_config_dll vwin32.vxd enable_win16
17180 wine_fn_config_dll w32skrnl enable_win16
17181 wine_fn_config_dll w32sys.dll16 enable_win16
17182 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17183 wine_fn_config_dll wbemprox enable_wbemprox clean
17184 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17185 wine_fn_config_dll webservices enable_webservices implib
17186 wine_fn_config_dll wer enable_wer implib
17187 wine_fn_config_test dlls/wer/tests wer_test
17188 wine_fn_config_dll wevtapi enable_wevtapi
17189 wine_fn_config_dll wiaservc enable_wiaservc clean
17190 wine_fn_config_dll win32s16.dll16 enable_win16
17191 wine_fn_config_dll win87em.dll16 enable_win16
17192 wine_fn_config_dll winaspi.dll16 enable_win16
17193 wine_fn_config_dll windebug.dll16 enable_win16
17194 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17195 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17196 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17197 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17198 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17199 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17200 wine_fn_config_lib winecrt0
17201 wine_fn_config_dll wined3d enable_wined3d implib
17202 wine_fn_config_dll winegstreamer enable_winegstreamer
17203 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17204 wine_fn_config_dll winemac.drv enable_winemac_drv
17205 wine_fn_config_dll winemapi enable_winemapi
17206 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17207 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17208 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17209 wine_fn_config_dll wineps16.drv16 enable_win16
17210 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17211 wine_fn_config_dll winex11.drv enable_winex11_drv
17212 wine_fn_config_dll wing.dll16 enable_win16
17213 wine_fn_config_dll wing32 enable_wing32
17214 wine_fn_config_dll winhttp enable_winhttp clean,implib
17215 wine_fn_config_test dlls/winhttp/tests winhttp_test
17216 wine_fn_config_dll wininet enable_wininet implib,po
17217 wine_fn_config_test dlls/wininet/tests wininet_test
17218 wine_fn_config_dll winmm enable_winmm implib,po
17219 wine_fn_config_test dlls/winmm/tests winmm_test
17220 wine_fn_config_dll winnls.dll16 enable_win16
17221 wine_fn_config_dll winnls32 enable_winnls32 implib
17222 wine_fn_config_dll winscard enable_winscard implib
17223 wine_fn_config_dll winsock.dll16 enable_win16
17224 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17225 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17226 wine_fn_config_dll winsta enable_winsta
17227 wine_fn_config_dll wintab.dll16 enable_win16
17228 wine_fn_config_dll wintab32 enable_wintab32 implib
17229 wine_fn_config_test dlls/wintab32/tests wintab32_test
17230 wine_fn_config_dll wintrust enable_wintrust implib
17231 wine_fn_config_test dlls/wintrust/tests wintrust_test
17232 wine_fn_config_dll wlanapi enable_wlanapi
17233 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17234 wine_fn_config_test dlls/wldap32/tests wldap32_test
17235 wine_fn_config_dll wmi enable_wmi
17236 wine_fn_config_dll wmiutils enable_wmiutils clean
17237 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17238 wine_fn_config_dll wmp enable_wmp clean
17239 wine_fn_config_test dlls/wmp/tests wmp_test
17240 wine_fn_config_dll wmvcore enable_wmvcore
17241 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17242 wine_fn_config_dll wow32 enable_win16 implib
17243 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17244 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17245 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17246 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17247 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17248 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17249 wine_fn_config_dll wsock32 enable_wsock32 implib
17250 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17251 wine_fn_config_dll wuapi enable_wuapi clean
17252 wine_fn_config_dll wuaueng enable_wuaueng
17253 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17254 wine_fn_config_dll xinput1_1 enable_xinput1_1
17255 wine_fn_config_dll xinput1_2 enable_xinput1_2
17256 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17257 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17258 wine_fn_config_dll xinput1_4 enable_xinput1_4
17259 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17260 wine_fn_config_dll xmllite enable_xmllite
17261 wine_fn_config_test dlls/xmllite/tests xmllite_test
17262 wine_fn_config_dll xolehlp enable_xolehlp
17263 wine_fn_config_dll xpsprint enable_xpsprint
17264 wine_fn_config_dll xpssvcs enable_xpssvcs
17265 wine_fn_config_makefile documentation enable_documentation clean
17266 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17267 wine_fn_config_makefile include enable_include clean,install-dev
17268 wine_fn_config_makefile libs/port enable_libs_port
17269 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17270 wine_fn_config_makefile libs/wpp enable_libs_wpp
17271 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17272 wine_fn_config_program arp enable_arp install
17273 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17274 wine_fn_config_program attrib enable_attrib install,po
17275 wine_fn_config_program cabarc enable_cabarc install
17276 wine_fn_config_program cacls enable_cacls install
17277 wine_fn_config_program clock enable_clock install,po
17278 wine_fn_config_program cmd enable_cmd install,po
17279 wine_fn_config_test programs/cmd/tests cmd.exe_test
17280 wine_fn_config_program conhost enable_conhost install
17281 wine_fn_config_program control enable_control install
17282 wine_fn_config_program cscript enable_cscript install
17283 wine_fn_config_program dxdiag enable_dxdiag install,po
17284 wine_fn_config_program eject enable_eject install
17285 wine_fn_config_program expand enable_expand install
17286 wine_fn_config_program explorer enable_explorer install,po
17287 wine_fn_config_program extrac32 enable_extrac32 install
17288 wine_fn_config_program findstr enable_findstr install
17289 wine_fn_config_program hh enable_hh install
17290 wine_fn_config_program hostname enable_hostname install,po
17291 wine_fn_config_program icinfo enable_icinfo install
17292 wine_fn_config_program iexplore enable_iexplore install
17293 wine_fn_config_program ipconfig enable_ipconfig install,po
17294 wine_fn_config_program lodctr enable_lodctr install
17295 wine_fn_config_program mofcomp enable_mofcomp install
17296 wine_fn_config_program mshta enable_mshta install
17297 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17298 wine_fn_config_program net enable_net install,po
17299 wine_fn_config_program netsh enable_netsh install
17300 wine_fn_config_program netstat enable_netstat install,po
17301 wine_fn_config_program ngen enable_ngen install
17302 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17303 wine_fn_config_program oleview enable_oleview install,po
17304 wine_fn_config_program ping enable_ping install
17305 wine_fn_config_program plugplay enable_plugplay install
17306 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17307 wine_fn_config_program progman enable_progman install,po
17308 wine_fn_config_program reg enable_reg install,po
17309 wine_fn_config_program regasm enable_regasm install
17310 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17311 wine_fn_config_test programs/regedit/tests regedit.exe_test
17312 wine_fn_config_program regsvcs enable_regsvcs install
17313 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
17314 wine_fn_config_program rpcss enable_rpcss clean,install
17315 wine_fn_config_program rundll.exe16 enable_win16 install
17316 wine_fn_config_program rundll32 enable_rundll32 install
17317 wine_fn_config_program sc enable_sc install
17318 wine_fn_config_program schtasks enable_schtasks install
17319 wine_fn_config_program secedit enable_secedit install
17320 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17321 wine_fn_config_program services enable_services clean,install
17322 wine_fn_config_test programs/services/tests services.exe_test
17323 wine_fn_config_program spoolsv enable_spoolsv install
17324 wine_fn_config_program start enable_start install,po
17325 wine_fn_config_program svchost enable_svchost install
17326 wine_fn_config_program taskkill enable_taskkill install,po
17327 wine_fn_config_program tasklist enable_tasklist install
17328 wine_fn_config_program taskmgr enable_taskmgr install,po
17329 wine_fn_config_program termsv enable_termsv install
17330 wine_fn_config_program uninstaller enable_uninstaller install,po
17331 wine_fn_config_program unlodctr enable_unlodctr install
17332 wine_fn_config_program view enable_view install,po
17333 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17334 wine_fn_config_program winebrowser enable_winebrowser install
17335 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17336 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17337 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17338 wine_fn_config_program winedevice enable_winedevice install
17339 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17340 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17341 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17342 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17343 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17344 wine_fn_config_program winetest enable_winetest clean
17345 wine_fn_config_program winevdm enable_win16 install
17346 wine_fn_config_program winhelp.exe16 enable_win16 install
17347 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17348 wine_fn_config_program winoldap.mod16 enable_win16 install
17349 wine_fn_config_program winver enable_winver install
17350 wine_fn_config_program wmic enable_wmic install,po
17351 wine_fn_config_program wordpad enable_wordpad install,po
17352 wine_fn_config_program write enable_write install,po
17353 wine_fn_config_program wscript enable_wscript clean,install
17354 wine_fn_config_test programs/wscript/tests wscript.exe_test
17355 wine_fn_config_program wusa enable_wusa install
17356 wine_fn_config_program xcopy enable_xcopy install,po
17357 wine_fn_config_test programs/xcopy/tests xcopy.exe_test
17358 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17359 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17360 wine_fn_config_tool tools/sfnt2fon clean
17361 wine_fn_config_tool tools/widl clean,install-dev,manpage
17362 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17363 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17364 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17365 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17366 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17368 LINGUAS="\
17369 ar \
17370 bg \
17371 ca \
17372 cs \
17373 da \
17374 de \
17375 el \
17376 en \
17377 en_US \
17378 eo \
17379 es \
17380 fa \
17381 fi \
17382 fr \
17383 he \
17384 hi \
17385 hr \
17386 hu \
17387 it \
17388 ja \
17389 ko \
17390 lt \
17391 ml \
17392 nb_NO \
17393 nl \
17394 or \
17395 pa \
17396 pl \
17397 pt_BR \
17398 pt_PT \
17399 rm \
17400 ro \
17401 ru \
17402 sk \
17403 sl \
17404 sr_RS@cyrillic \
17405 sr_RS@latin \
17406 sv \
17407 te \
17408 th \
17409 tr \
17410 uk \
17411 wa \
17412 zh_CN \
17413 zh_TW"
17418 wine_fn_ignore_file ".gitignore"
17419 wine_fn_ignore_file "Makefile"
17420 wine_fn_ignore_file "TAGS"
17421 wine_fn_ignore_file "tags"
17422 wine_fn_ignore_file "autom4te.cache"
17423 wine_fn_ignore_file "config.cache"
17424 wine_fn_ignore_file "config.log"
17425 wine_fn_ignore_file "config.status"
17426 wine_fn_ignore_file "configure.lineno"
17427 wine_fn_ignore_file "include/config.h"
17428 wine_fn_ignore_file "include/stamp-h"
17429 test "$wine_binary" = wine || wine_fn_ignore_file "loader/wine"
17431 if test "x$enable_tools" != xno
17432 then
17433 wine_fn_ignore_file "tools/makedep$ac_exeext"
17434 ac_config_commands="$ac_config_commands tools/makedep"
17438 ac_config_commands="$ac_config_commands Makefile"
17441 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17445 if test "x$enable_maintainer_mode" = xyes
17446 then
17447 wine_fn_append_rule "configure: configure.ac aclocal.m4
17448 autoconf --warnings=all
17449 include/config.h.in: include/stamp-h.in
17450 include/stamp-h.in: configure.ac aclocal.m4
17451 autoheader --warnings=all
17452 @echo timestamp > \$@"
17455 if test "x$with_gettextpo" = xyes
17456 then
17457 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17458 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17459 \$(LINGUAS:%=po/%.po): po/wine.pot
17460 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17461 po/wine.pot: \$(ALL_POT_FILES)
17462 msgcat -o \$@ \$(ALL_POT_FILES)"
17465 if test "$MSGFMT" != false
17466 then
17467 wine_fn_append_rule "__builddeps__: \$(LINGUAS:%=po/%.mo)
17468 clean::
17469 \$(RM) \$(LINGUAS:%=po/%.mo)"
17471 posrc="po"
17472 test "$srcdir" = . || posrc="$srcdir/po"
17473 for i in $LINGUAS
17475 wine_fn_ignore_file "po/$i.mo"
17476 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17477 \$(MSGFMT) -o \$@ $posrc/$i.po"
17478 done
17479 else
17480 LINGUAS=
17483 if test "x$enable_tools" != xno
17484 then
17485 wine_fn_append_rule "tools/makedep$ac_exeext: $srcdir/tools/makedep.c include/config.h config.status
17486 @./config.status tools/makedep
17487 Makefile: tools/makedep$ac_exeext
17488 distclean:: clean
17489 \$(RM) tools/makedep$ac_exeext"
17490 else
17491 wine_fn_append_rule "\$(MAKEDEP):
17492 @echo \"You need to run make in $TOOLSDIR first\" && false"
17495 if test -n "$with_wine64"
17496 then
17497 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17498 fonts server tools:
17499 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17500 $with_wine64/loader/wine:
17501 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17502 $with_wine64/loader/wine-preloader:
17503 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17504 clean::
17505 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17506 else
17507 as_fn_append LOADER_RULES "
17508 all: wine.inf
17510 install install-lib:: wine.inf install-man-pages
17511 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17512 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17514 uninstall::
17515 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17519 if test "$srcdir" = .
17520 then
17521 ac_config_commands="$ac_config_commands .gitignore"
17525 $as_echo " done" >&6
17526 cat >confcache <<\_ACEOF
17527 # This file is a shell script that caches the results of configure
17528 # tests run on this system so they can be shared between configure
17529 # scripts and configure runs, see configure's option --config-cache.
17530 # It is not useful on other systems. If it contains results you don't
17531 # want to keep, you may remove or edit it.
17533 # config.status only pays attention to the cache file if you give it
17534 # the --recheck option to rerun configure.
17536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17538 # following values.
17540 _ACEOF
17542 # The following way of writing the cache mishandles newlines in values,
17543 # but we know of no workaround that is simple, portable, and efficient.
17544 # So, we kill variables containing newlines.
17545 # Ultrix sh set writes to stderr and can't be redirected directly,
17546 # and sets the high bit in the cache file unless we assign to the vars.
17548 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17549 eval ac_val=\$$ac_var
17550 case $ac_val in #(
17551 *${as_nl}*)
17552 case $ac_var in #(
17553 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17554 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17555 esac
17556 case $ac_var in #(
17557 _ | IFS | as_nl) ;; #(
17558 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17559 *) { eval $ac_var=; unset $ac_var;} ;;
17560 esac ;;
17561 esac
17562 done
17564 (set) 2>&1 |
17565 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17566 *${as_nl}ac_space=\ *)
17567 # `set' does not quote correctly, so add quotes: double-quote
17568 # substitution turns \\\\ into \\, and sed turns \\ into \.
17569 sed -n \
17570 "s/'/'\\\\''/g;
17571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17572 ;; #(
17574 # `set' quotes correctly as required by POSIX, so do not add quotes.
17575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17577 esac |
17578 sort
17580 sed '
17581 /^ac_cv_env_/b end
17582 t clear
17583 :clear
17584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17585 t end
17586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17587 :end' >>confcache
17588 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17589 if test -w "$cache_file"; then
17590 if test "x$cache_file" != "x/dev/null"; then
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17592 $as_echo "$as_me: updating cache $cache_file" >&6;}
17593 if test ! -f "$cache_file" || test -h "$cache_file"; then
17594 cat confcache >"$cache_file"
17595 else
17596 case $cache_file in #(
17597 */* | ?:*)
17598 mv -f confcache "$cache_file"$$ &&
17599 mv -f "$cache_file"$$ "$cache_file" ;; #(
17601 mv -f confcache "$cache_file" ;;
17602 esac
17605 else
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17607 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17610 rm -f confcache
17612 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17613 # Let make expand exec_prefix.
17614 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17616 DEFS=-DHAVE_CONFIG_H
17618 ac_libobjs=
17619 ac_ltlibobjs=
17621 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17622 # 1. Remove the extension, and $U if already installed.
17623 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17624 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17625 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17626 # will be set to the directory where LIBOBJS objects are built.
17627 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17628 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17629 done
17630 LIBOBJS=$ac_libobjs
17632 LTLIBOBJS=$ac_ltlibobjs
17636 : "${CONFIG_STATUS=./config.status}"
17637 ac_write_fail=0
17638 ac_clean_files_save=$ac_clean_files
17639 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17641 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17642 as_write_fail=0
17643 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17644 #! $SHELL
17645 # Generated by $as_me.
17646 # Run this file to recreate the current configuration.
17647 # Compiler output produced by configure, useful for debugging
17648 # configure, is in config.log if it exists.
17650 debug=false
17651 ac_cs_recheck=false
17652 ac_cs_silent=false
17654 SHELL=\${CONFIG_SHELL-$SHELL}
17655 export SHELL
17656 _ASEOF
17657 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17658 ## -------------------- ##
17659 ## M4sh Initialization. ##
17660 ## -------------------- ##
17662 # Be more Bourne compatible
17663 DUALCASE=1; export DUALCASE # for MKS sh
17664 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17665 emulate sh
17666 NULLCMD=:
17667 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17668 # is contrary to our usage. Disable this feature.
17669 alias -g '${1+"$@"}'='"$@"'
17670 setopt NO_GLOB_SUBST
17671 else
17672 case `(set -o) 2>/dev/null` in #(
17673 *posix*) :
17674 set -o posix ;; #(
17675 *) :
17677 esac
17681 as_nl='
17683 export as_nl
17684 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17685 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17686 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17687 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17688 # Prefer a ksh shell builtin over an external printf program on Solaris,
17689 # but without wasting forks for bash or zsh.
17690 if test -z "$BASH_VERSION$ZSH_VERSION" \
17691 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17692 as_echo='print -r --'
17693 as_echo_n='print -rn --'
17694 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17695 as_echo='printf %s\n'
17696 as_echo_n='printf %s'
17697 else
17698 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17699 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17700 as_echo_n='/usr/ucb/echo -n'
17701 else
17702 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17703 as_echo_n_body='eval
17704 arg=$1;
17705 case $arg in #(
17706 *"$as_nl"*)
17707 expr "X$arg" : "X\\(.*\\)$as_nl";
17708 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17709 esac;
17710 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17712 export as_echo_n_body
17713 as_echo_n='sh -c $as_echo_n_body as_echo'
17715 export as_echo_body
17716 as_echo='sh -c $as_echo_body as_echo'
17719 # The user is always right.
17720 if test "${PATH_SEPARATOR+set}" != set; then
17721 PATH_SEPARATOR=:
17722 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17723 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17724 PATH_SEPARATOR=';'
17729 # IFS
17730 # We need space, tab and new line, in precisely that order. Quoting is
17731 # there to prevent editors from complaining about space-tab.
17732 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17733 # splitting by setting IFS to empty value.)
17734 IFS=" "" $as_nl"
17736 # Find who we are. Look in the path if we contain no directory separator.
17737 as_myself=
17738 case $0 in #((
17739 *[\\/]* ) as_myself=$0 ;;
17740 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17741 for as_dir in $PATH
17743 IFS=$as_save_IFS
17744 test -z "$as_dir" && as_dir=.
17745 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17746 done
17747 IFS=$as_save_IFS
17750 esac
17751 # We did not find ourselves, most probably we were run as `sh COMMAND'
17752 # in which case we are not to be found in the path.
17753 if test "x$as_myself" = x; then
17754 as_myself=$0
17756 if test ! -f "$as_myself"; then
17757 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17758 exit 1
17761 # Unset variables that we do not need and which cause bugs (e.g. in
17762 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17763 # suppresses any "Segmentation fault" message there. '((' could
17764 # trigger a bug in pdksh 5.2.14.
17765 for as_var in BASH_ENV ENV MAIL MAILPATH
17766 do eval test x\${$as_var+set} = xset \
17767 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17768 done
17769 PS1='$ '
17770 PS2='> '
17771 PS4='+ '
17773 # NLS nuisances.
17774 LC_ALL=C
17775 export LC_ALL
17776 LANGUAGE=C
17777 export LANGUAGE
17779 # CDPATH.
17780 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17783 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17784 # ----------------------------------------
17785 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17786 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17787 # script with STATUS, using 1 if that was 0.
17788 as_fn_error ()
17790 as_status=$1; test $as_status -eq 0 && as_status=1
17791 if test "$4"; then
17792 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17793 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17795 $as_echo "$as_me: error: $2" >&2
17796 as_fn_exit $as_status
17797 } # as_fn_error
17800 # as_fn_set_status STATUS
17801 # -----------------------
17802 # Set $? to STATUS, without forking.
17803 as_fn_set_status ()
17805 return $1
17806 } # as_fn_set_status
17808 # as_fn_exit STATUS
17809 # -----------------
17810 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17811 as_fn_exit ()
17813 set +e
17814 as_fn_set_status $1
17815 exit $1
17816 } # as_fn_exit
17818 # as_fn_unset VAR
17819 # ---------------
17820 # Portably unset VAR.
17821 as_fn_unset ()
17823 { eval $1=; unset $1;}
17825 as_unset=as_fn_unset
17826 # as_fn_append VAR VALUE
17827 # ----------------------
17828 # Append the text in VALUE to the end of the definition contained in VAR. Take
17829 # advantage of any shell optimizations that allow amortized linear growth over
17830 # repeated appends, instead of the typical quadratic growth present in naive
17831 # implementations.
17832 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17833 eval 'as_fn_append ()
17835 eval $1+=\$2
17837 else
17838 as_fn_append ()
17840 eval $1=\$$1\$2
17842 fi # as_fn_append
17844 # as_fn_arith ARG...
17845 # ------------------
17846 # Perform arithmetic evaluation on the ARGs, and store the result in the
17847 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17848 # must be portable across $(()) and expr.
17849 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17850 eval 'as_fn_arith ()
17852 as_val=$(( $* ))
17854 else
17855 as_fn_arith ()
17857 as_val=`expr "$@" || test $? -eq 1`
17859 fi # as_fn_arith
17862 if expr a : '\(a\)' >/dev/null 2>&1 &&
17863 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17864 as_expr=expr
17865 else
17866 as_expr=false
17869 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17870 as_basename=basename
17871 else
17872 as_basename=false
17875 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17876 as_dirname=dirname
17877 else
17878 as_dirname=false
17881 as_me=`$as_basename -- "$0" ||
17882 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17883 X"$0" : 'X\(//\)$' \| \
17884 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17885 $as_echo X/"$0" |
17886 sed '/^.*\/\([^/][^/]*\)\/*$/{
17887 s//\1/
17890 /^X\/\(\/\/\)$/{
17891 s//\1/
17894 /^X\/\(\/\).*/{
17895 s//\1/
17898 s/.*/./; q'`
17900 # Avoid depending upon Character Ranges.
17901 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17902 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17903 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17904 as_cr_digits='0123456789'
17905 as_cr_alnum=$as_cr_Letters$as_cr_digits
17907 ECHO_C= ECHO_N= ECHO_T=
17908 case `echo -n x` in #(((((
17909 -n*)
17910 case `echo 'xy\c'` in
17911 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17912 xy) ECHO_C='\c';;
17913 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17914 ECHO_T=' ';;
17915 esac;;
17917 ECHO_N='-n';;
17918 esac
17920 rm -f conf$$ conf$$.exe conf$$.file
17921 if test -d conf$$.dir; then
17922 rm -f conf$$.dir/conf$$.file
17923 else
17924 rm -f conf$$.dir
17925 mkdir conf$$.dir 2>/dev/null
17927 if (echo >conf$$.file) 2>/dev/null; then
17928 if ln -s conf$$.file conf$$ 2>/dev/null; then
17929 as_ln_s='ln -s'
17930 # ... but there are two gotchas:
17931 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17932 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17933 # In both cases, we have to default to `cp -pR'.
17934 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17935 as_ln_s='cp -pR'
17936 elif ln conf$$.file conf$$ 2>/dev/null; then
17937 as_ln_s=ln
17938 else
17939 as_ln_s='cp -pR'
17941 else
17942 as_ln_s='cp -pR'
17944 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17945 rmdir conf$$.dir 2>/dev/null
17948 # as_fn_mkdir_p
17949 # -------------
17950 # Create "$as_dir" as a directory, including parents if necessary.
17951 as_fn_mkdir_p ()
17954 case $as_dir in #(
17955 -*) as_dir=./$as_dir;;
17956 esac
17957 test -d "$as_dir" || eval $as_mkdir_p || {
17958 as_dirs=
17959 while :; do
17960 case $as_dir in #(
17961 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17962 *) as_qdir=$as_dir;;
17963 esac
17964 as_dirs="'$as_qdir' $as_dirs"
17965 as_dir=`$as_dirname -- "$as_dir" ||
17966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17967 X"$as_dir" : 'X\(//\)[^/]' \| \
17968 X"$as_dir" : 'X\(//\)$' \| \
17969 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17970 $as_echo X"$as_dir" |
17971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17972 s//\1/
17975 /^X\(\/\/\)[^/].*/{
17976 s//\1/
17979 /^X\(\/\/\)$/{
17980 s//\1/
17983 /^X\(\/\).*/{
17984 s//\1/
17987 s/.*/./; q'`
17988 test -d "$as_dir" && break
17989 done
17990 test -z "$as_dirs" || eval "mkdir $as_dirs"
17991 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17994 } # as_fn_mkdir_p
17995 if mkdir -p . 2>/dev/null; then
17996 as_mkdir_p='mkdir -p "$as_dir"'
17997 else
17998 test -d ./-p && rmdir ./-p
17999 as_mkdir_p=false
18003 # as_fn_executable_p FILE
18004 # -----------------------
18005 # Test if FILE is an executable regular file.
18006 as_fn_executable_p ()
18008 test -f "$1" && test -x "$1"
18009 } # as_fn_executable_p
18010 as_test_x='test -x'
18011 as_executable_p=as_fn_executable_p
18013 # Sed expression to map a string onto a valid CPP name.
18014 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18016 # Sed expression to map a string onto a valid variable name.
18017 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18020 exec 6>&1
18021 ## ----------------------------------- ##
18022 ## Main body of $CONFIG_STATUS script. ##
18023 ## ----------------------------------- ##
18024 _ASEOF
18025 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18028 # Save the log message, to keep $0 and so on meaningful, and to
18029 # report actual input values of CONFIG_FILES etc. instead of their
18030 # values after options handling.
18031 ac_log="
18032 This file was extended by Wine $as_me 1.7.12, which was
18033 generated by GNU Autoconf 2.69. Invocation command line was
18035 CONFIG_FILES = $CONFIG_FILES
18036 CONFIG_HEADERS = $CONFIG_HEADERS
18037 CONFIG_LINKS = $CONFIG_LINKS
18038 CONFIG_COMMANDS = $CONFIG_COMMANDS
18039 $ $0 $@
18041 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18044 _ACEOF
18046 case $ac_config_files in *"
18047 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18048 esac
18050 case $ac_config_headers in *"
18051 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18052 esac
18055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18056 # Files that config.status was made for.
18057 config_files="$ac_config_files"
18058 config_headers="$ac_config_headers"
18059 config_links="$ac_config_links"
18060 config_commands="$ac_config_commands"
18062 _ACEOF
18064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18065 ac_cs_usage="\
18066 \`$as_me' instantiates files and other configuration actions
18067 from templates according to the current configuration. Unless the files
18068 and actions are specified as TAGs, all are instantiated by default.
18070 Usage: $0 [OPTION]... [TAG]...
18072 -h, --help print this help, then exit
18073 -V, --version print version number and configuration settings, then exit
18074 --config print configuration, then exit
18075 -q, --quiet, --silent
18076 do not print progress messages
18077 -d, --debug don't remove temporary files
18078 --recheck update $as_me by reconfiguring in the same conditions
18079 --file=FILE[:TEMPLATE]
18080 instantiate the configuration file FILE
18081 --header=FILE[:TEMPLATE]
18082 instantiate the configuration header FILE
18084 Configuration files:
18085 $config_files
18087 Configuration headers:
18088 $config_headers
18090 Configuration links:
18091 $config_links
18093 Configuration commands:
18094 $config_commands
18096 Report bugs to <wine-devel@winehq.org>.
18097 Wine home page: <http://www.winehq.org>."
18099 _ACEOF
18100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18101 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18102 ac_cs_version="\\
18103 Wine config.status 1.7.12
18104 configured by $0, generated by GNU Autoconf 2.69,
18105 with options \\"\$ac_cs_config\\"
18107 Copyright (C) 2012 Free Software Foundation, Inc.
18108 This config.status script is free software; the Free Software Foundation
18109 gives unlimited permission to copy, distribute and modify it."
18111 ac_pwd='$ac_pwd'
18112 srcdir='$srcdir'
18113 test -n "\$AWK" || AWK=awk
18114 _ACEOF
18116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18117 # The default lists apply if the user does not specify any file.
18118 ac_need_defaults=:
18119 while test $# != 0
18121 case $1 in
18122 --*=?*)
18123 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18124 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18125 ac_shift=:
18127 --*=)
18128 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18129 ac_optarg=
18130 ac_shift=:
18133 ac_option=$1
18134 ac_optarg=$2
18135 ac_shift=shift
18137 esac
18139 case $ac_option in
18140 # Handling of the options.
18141 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18142 ac_cs_recheck=: ;;
18143 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18144 $as_echo "$ac_cs_version"; exit ;;
18145 --config | --confi | --conf | --con | --co | --c )
18146 $as_echo "$ac_cs_config"; exit ;;
18147 --debug | --debu | --deb | --de | --d | -d )
18148 debug=: ;;
18149 --file | --fil | --fi | --f )
18150 $ac_shift
18151 case $ac_optarg in
18152 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18153 '') as_fn_error $? "missing file argument" ;;
18154 esac
18155 as_fn_append CONFIG_FILES " '$ac_optarg'"
18156 ac_need_defaults=false;;
18157 --header | --heade | --head | --hea )
18158 $ac_shift
18159 case $ac_optarg in
18160 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18161 esac
18162 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18163 ac_need_defaults=false;;
18164 --he | --h)
18165 # Conflict between --help and --header
18166 as_fn_error $? "ambiguous option: \`$1'
18167 Try \`$0 --help' for more information.";;
18168 --help | --hel | -h )
18169 $as_echo "$ac_cs_usage"; exit ;;
18170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18171 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18172 ac_cs_silent=: ;;
18174 # This is an error.
18175 -*) as_fn_error $? "unrecognized option: \`$1'
18176 Try \`$0 --help' for more information." ;;
18178 *) as_fn_append ac_config_targets " $1"
18179 ac_need_defaults=false ;;
18181 esac
18182 shift
18183 done
18185 ac_configure_extra_args=
18187 if $ac_cs_silent; then
18188 exec 6>/dev/null
18189 ac_configure_extra_args="$ac_configure_extra_args --silent"
18192 _ACEOF
18193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18194 if \$ac_cs_recheck; then
18195 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18196 shift
18197 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18198 CONFIG_SHELL='$SHELL'
18199 export CONFIG_SHELL
18200 exec "\$@"
18203 _ACEOF
18204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18205 exec 5>>config.log
18207 echo
18208 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18209 ## Running $as_me. ##
18210 _ASBOX
18211 $as_echo "$ac_log"
18212 } >&5
18214 _ACEOF
18215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18217 # INIT-COMMANDS
18219 wine_fn_output_makedep ()
18221 as_dir=tools; as_fn_mkdir_p
18222 $CC -Iinclude -I$srcdir/include -D__WINESRC__ $EXTRACFLAGS $CPPFLAGS $CFLAGS -o tools/makedep$ac_exeext $srcdir/tools/makedep.c $LDFLAGS
18224 wine_fn_output_makefile ()
18226 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
18227 `cat $wine_rules_file`
18228 _WINE_EOF
18229 as_fn_error $? "could not create Makefile" "$LINENO" 5
18231 wine_fn_output_gitignore ()
18233 sort <<\_WINE_EOF >\$tmp/gitignore && mv -f \$tmp/gitignore \$1 && return
18234 $GITIGNORE
18235 _WINE_EOF
18236 as_fn_error $? "could not create .gitignore" "$LINENO" 5
18239 _ACEOF
18241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18243 # Handling of arguments.
18244 for ac_config_target in $ac_config_targets
18246 case $ac_config_target in
18247 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18248 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18249 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18250 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18251 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18252 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18253 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18254 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18255 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18256 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18257 "tools/makedep") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/makedep" ;;
18258 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18259 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18260 ".gitignore") CONFIG_COMMANDS="$CONFIG_COMMANDS .gitignore" ;;
18262 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18263 esac
18264 done
18267 # If the user did not use the arguments to specify the items to instantiate,
18268 # then the envvar interface is used. Set only those that are not.
18269 # We use the long form for the default assignment because of an extremely
18270 # bizarre bug on SunOS 4.1.3.
18271 if $ac_need_defaults; then
18272 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18273 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18274 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18275 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18278 # Have a temporary directory for convenience. Make it in the build tree
18279 # simply because there is no reason against having it here, and in addition,
18280 # creating and moving files from /tmp can sometimes cause problems.
18281 # Hook for its removal unless debugging.
18282 # Note that there is a small window in which the directory will not be cleaned:
18283 # after its creation but before its name has been assigned to `$tmp'.
18284 $debug ||
18286 tmp= ac_tmp=
18287 trap 'exit_status=$?
18288 : "${ac_tmp:=$tmp}"
18289 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18291 trap 'as_fn_exit 1' 1 2 13 15
18293 # Create a (secure) tmp directory for tmp files.
18296 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18297 test -d "$tmp"
18298 } ||
18300 tmp=./conf$$-$RANDOM
18301 (umask 077 && mkdir "$tmp")
18302 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18303 ac_tmp=$tmp
18305 # Set up the scripts for CONFIG_FILES section.
18306 # No need to generate them if there are no CONFIG_FILES.
18307 # This happens for instance with `./config.status config.h'.
18308 if test -n "$CONFIG_FILES"; then
18311 ac_cr=`echo X | tr X '\015'`
18312 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18313 # But we know of no other shell where ac_cr would be empty at this
18314 # point, so we can use a bashism as a fallback.
18315 if test "x$ac_cr" = x; then
18316 eval ac_cr=\$\'\\r\'
18318 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18319 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18320 ac_cs_awk_cr='\\r'
18321 else
18322 ac_cs_awk_cr=$ac_cr
18325 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18326 _ACEOF
18330 echo "cat >conf$$subs.awk <<_ACEOF" &&
18331 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18332 echo "_ACEOF"
18333 } >conf$$subs.sh ||
18334 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18335 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18336 ac_delim='%!_!# '
18337 for ac_last_try in false false false false false :; do
18338 . ./conf$$subs.sh ||
18339 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18341 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18342 if test $ac_delim_n = $ac_delim_num; then
18343 break
18344 elif $ac_last_try; then
18345 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18346 else
18347 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18349 done
18350 rm -f conf$$subs.sh
18352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18353 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18354 _ACEOF
18355 sed -n '
18357 s/^/S["/; s/!.*/"]=/
18360 s/^[^!]*!//
18361 :repl
18362 t repl
18363 s/'"$ac_delim"'$//
18364 t delim
18367 s/\(.\{148\}\)..*/\1/
18368 t more1
18369 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18372 b repl
18373 :more1
18374 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18377 s/.\{148\}//
18378 t nl
18379 :delim
18381 s/\(.\{148\}\)..*/\1/
18382 t more2
18383 s/["\\]/\\&/g; s/^/"/; s/$/"/
18386 :more2
18387 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18390 s/.\{148\}//
18391 t delim
18392 ' <conf$$subs.awk | sed '
18393 /^[^""]/{
18395 s/\n//
18397 ' >>$CONFIG_STATUS || ac_write_fail=1
18398 rm -f conf$$subs.awk
18399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18400 _ACAWK
18401 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18402 for (key in S) S_is_set[key] = 1
18403 FS = "\a"
18407 line = $ 0
18408 nfields = split(line, field, "@")
18409 substed = 0
18410 len = length(field[1])
18411 for (i = 2; i < nfields; i++) {
18412 key = field[i]
18413 keylen = length(key)
18414 if (S_is_set[key]) {
18415 value = S[key]
18416 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18417 len += length(value) + length(field[++i])
18418 substed = 1
18419 } else
18420 len += 1 + keylen
18423 print line
18426 _ACAWK
18427 _ACEOF
18428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18429 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18430 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18431 else
18433 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18434 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18435 _ACEOF
18437 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18438 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18439 # trailing colons and then remove the whole line if VPATH becomes empty
18440 # (actually we leave an empty line to preserve line numbers).
18441 if test "x$srcdir" = x.; then
18442 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18444 s///
18445 s/^/:/
18446 s/[ ]*$/:/
18447 s/:\$(srcdir):/:/g
18448 s/:\${srcdir}:/:/g
18449 s/:@srcdir@:/:/g
18450 s/^:*//
18451 s/:*$//
18453 s/\(=[ ]*\).*/\1/
18455 s/\n//
18456 s/^[^=]*=[ ]*$//
18460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18461 fi # test -n "$CONFIG_FILES"
18463 # Set up the scripts for CONFIG_HEADERS section.
18464 # No need to generate them if there are no CONFIG_HEADERS.
18465 # This happens for instance with `./config.status Makefile'.
18466 if test -n "$CONFIG_HEADERS"; then
18467 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18468 BEGIN {
18469 _ACEOF
18471 # Transform confdefs.h into an awk script `defines.awk', embedded as
18472 # here-document in config.status, that substitutes the proper values into
18473 # config.h.in to produce config.h.
18475 # Create a delimiter string that does not exist in confdefs.h, to ease
18476 # handling of long lines.
18477 ac_delim='%!_!# '
18478 for ac_last_try in false false :; do
18479 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18480 if test -z "$ac_tt"; then
18481 break
18482 elif $ac_last_try; then
18483 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18484 else
18485 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18487 done
18489 # For the awk script, D is an array of macro values keyed by name,
18490 # likewise P contains macro parameters if any. Preserve backslash
18491 # newline sequences.
18493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18494 sed -n '
18495 s/.\{148\}/&'"$ac_delim"'/g
18496 t rset
18497 :rset
18498 s/^[ ]*#[ ]*define[ ][ ]*/ /
18499 t def
18501 :def
18502 s/\\$//
18503 t bsnl
18504 s/["\\]/\\&/g
18505 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18506 D["\1"]=" \3"/p
18507 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18509 :bsnl
18510 s/["\\]/\\&/g
18511 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18512 D["\1"]=" \3\\\\\\n"\\/p
18513 t cont
18514 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18515 t cont
18517 :cont
18519 s/.\{148\}/&'"$ac_delim"'/g
18520 t clear
18521 :clear
18522 s/\\$//
18523 t bsnlc
18524 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18526 :bsnlc
18527 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18528 b cont
18529 ' <confdefs.h | sed '
18530 s/'"$ac_delim"'/"\\\
18531 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18534 for (key in D) D_is_set[key] = 1
18535 FS = "\a"
18537 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18538 line = \$ 0
18539 split(line, arg, " ")
18540 if (arg[1] == "#") {
18541 defundef = arg[2]
18542 mac1 = arg[3]
18543 } else {
18544 defundef = substr(arg[1], 2)
18545 mac1 = arg[2]
18547 split(mac1, mac2, "(") #)
18548 macro = mac2[1]
18549 prefix = substr(line, 1, index(line, defundef) - 1)
18550 if (D_is_set[macro]) {
18551 # Preserve the white space surrounding the "#".
18552 print prefix "define", macro P[macro] D[macro]
18553 next
18554 } else {
18555 # Replace #undef with comments. This is necessary, for example,
18556 # in the case of _POSIX_SOURCE, which is predefined and required
18557 # on some systems where configure will not decide to define it.
18558 if (defundef == "undef") {
18559 print "/*", prefix defundef, macro, "*/"
18560 next
18564 { print }
18565 _ACAWK
18566 _ACEOF
18567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18568 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18569 fi # test -n "$CONFIG_HEADERS"
18572 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18573 shift
18574 for ac_tag
18576 case $ac_tag in
18577 :[FHLC]) ac_mode=$ac_tag; continue;;
18578 esac
18579 case $ac_mode$ac_tag in
18580 :[FHL]*:*);;
18581 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18582 :[FH]-) ac_tag=-:-;;
18583 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18584 esac
18585 ac_save_IFS=$IFS
18586 IFS=:
18587 set x $ac_tag
18588 IFS=$ac_save_IFS
18589 shift
18590 ac_file=$1
18591 shift
18593 case $ac_mode in
18594 :L) ac_source=$1;;
18595 :[FH])
18596 ac_file_inputs=
18597 for ac_f
18599 case $ac_f in
18600 -) ac_f="$ac_tmp/stdin";;
18601 *) # Look for the file first in the build tree, then in the source tree
18602 # (if the path is not absolute). The absolute path cannot be DOS-style,
18603 # because $ac_f cannot contain `:'.
18604 test -f "$ac_f" ||
18605 case $ac_f in
18606 [\\/$]*) false;;
18607 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18608 esac ||
18609 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18610 esac
18611 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18612 as_fn_append ac_file_inputs " '$ac_f'"
18613 done
18615 # Let's still pretend it is `configure' which instantiates (i.e., don't
18616 # use $as_me), people would be surprised to read:
18617 # /* config.h. Generated by config.status. */
18618 configure_input='Generated from '`
18619 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18620 `' by configure.'
18621 if test x"$ac_file" != x-; then
18622 configure_input="$ac_file. $configure_input"
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18624 $as_echo "$as_me: creating $ac_file" >&6;}
18626 # Neutralize special characters interpreted by sed in replacement strings.
18627 case $configure_input in #(
18628 *\&* | *\|* | *\\* )
18629 ac_sed_conf_input=`$as_echo "$configure_input" |
18630 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18631 *) ac_sed_conf_input=$configure_input;;
18632 esac
18634 case $ac_tag in
18635 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18636 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18637 esac
18639 esac
18641 ac_dir=`$as_dirname -- "$ac_file" ||
18642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18643 X"$ac_file" : 'X\(//\)[^/]' \| \
18644 X"$ac_file" : 'X\(//\)$' \| \
18645 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18646 $as_echo X"$ac_file" |
18647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18648 s//\1/
18651 /^X\(\/\/\)[^/].*/{
18652 s//\1/
18655 /^X\(\/\/\)$/{
18656 s//\1/
18659 /^X\(\/\).*/{
18660 s//\1/
18663 s/.*/./; q'`
18664 as_dir="$ac_dir"; as_fn_mkdir_p
18665 ac_builddir=.
18667 case "$ac_dir" in
18668 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18670 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18671 # A ".." for each directory in $ac_dir_suffix.
18672 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18673 case $ac_top_builddir_sub in
18674 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18675 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18676 esac ;;
18677 esac
18678 ac_abs_top_builddir=$ac_pwd
18679 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18680 # for backward compatibility:
18681 ac_top_builddir=$ac_top_build_prefix
18683 case $srcdir in
18684 .) # We are building in place.
18685 ac_srcdir=.
18686 ac_top_srcdir=$ac_top_builddir_sub
18687 ac_abs_top_srcdir=$ac_pwd ;;
18688 [\\/]* | ?:[\\/]* ) # Absolute name.
18689 ac_srcdir=$srcdir$ac_dir_suffix;
18690 ac_top_srcdir=$srcdir
18691 ac_abs_top_srcdir=$srcdir ;;
18692 *) # Relative name.
18693 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18694 ac_top_srcdir=$ac_top_build_prefix$srcdir
18695 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18696 esac
18697 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18700 case $ac_mode in
18703 # CONFIG_FILE
18706 _ACEOF
18708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18709 # If the template does not know about datarootdir, expand it.
18710 # FIXME: This hack should be removed a few years after 2.60.
18711 ac_datarootdir_hack=; ac_datarootdir_seen=
18712 ac_sed_dataroot='
18713 /datarootdir/ {
18717 /@datadir@/p
18718 /@docdir@/p
18719 /@infodir@/p
18720 /@localedir@/p
18721 /@mandir@/p'
18722 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18723 *datarootdir*) ac_datarootdir_seen=yes;;
18724 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18726 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18727 _ACEOF
18728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18729 ac_datarootdir_hack='
18730 s&@datadir@&$datadir&g
18731 s&@docdir@&$docdir&g
18732 s&@infodir@&$infodir&g
18733 s&@localedir@&$localedir&g
18734 s&@mandir@&$mandir&g
18735 s&\\\${datarootdir}&$datarootdir&g' ;;
18736 esac
18737 _ACEOF
18739 # Neutralize VPATH when `$srcdir' = `.'.
18740 # Shell code in configure.ac might set extrasub.
18741 # FIXME: do we really want to maintain this feature?
18742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18743 ac_sed_extra="$ac_vpsub
18744 $extrasub
18745 _ACEOF
18746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18748 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18749 s|@configure_input@|$ac_sed_conf_input|;t t
18750 s&@top_builddir@&$ac_top_builddir_sub&;t t
18751 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18752 s&@srcdir@&$ac_srcdir&;t t
18753 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18754 s&@top_srcdir@&$ac_top_srcdir&;t t
18755 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18756 s&@builddir@&$ac_builddir&;t t
18757 s&@abs_builddir@&$ac_abs_builddir&;t t
18758 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18759 $ac_datarootdir_hack
18761 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18762 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18764 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18765 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18766 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18767 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18769 which seems to be undefined. Please make sure it is defined" >&5
18770 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18771 which seems to be undefined. Please make sure it is defined" >&2;}
18773 rm -f "$ac_tmp/stdin"
18774 case $ac_file in
18775 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18776 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18777 esac \
18778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18782 # CONFIG_HEADER
18784 if test x"$ac_file" != x-; then
18786 $as_echo "/* $configure_input */" \
18787 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18788 } >"$ac_tmp/config.h" \
18789 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18790 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18792 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18793 else
18794 rm -f "$ac_file"
18795 mv "$ac_tmp/config.h" "$ac_file" \
18796 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18798 else
18799 $as_echo "/* $configure_input */" \
18800 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18801 || as_fn_error $? "could not create -" "$LINENO" 5
18806 # CONFIG_LINK
18809 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18811 else
18812 # Prefer the file from the source tree if names are identical.
18813 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18814 ac_source=$srcdir/$ac_source
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18818 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18820 if test ! -r "$ac_source"; then
18821 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18823 rm -f "$ac_file"
18825 # Try a relative symlink, then a hard link, then a copy.
18826 case $ac_source in
18827 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18828 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18829 esac
18830 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18831 ln "$ac_source" "$ac_file" 2>/dev/null ||
18832 cp -p "$ac_source" "$ac_file" ||
18833 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18836 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18837 $as_echo "$as_me: executing $ac_file commands" >&6;}
18839 esac
18842 case $ac_file$ac_mode in
18843 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
18844 "tools/makedep":C) wine_fn_output_makedep || as_fn_exit $? ;;
18845 "Makefile":C) wine_fn_output_makefile Makefile ;;
18846 ".gitignore":C) wine_fn_output_gitignore .gitignore ;;
18848 esac
18849 done # for ac_tag
18852 as_fn_exit 0
18853 _ACEOF
18854 ac_clean_files=$ac_clean_files_save
18856 test $ac_write_fail = 0 ||
18857 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18860 # configure is writing to config.log, and then calls config.status.
18861 # config.status does its own redirection, appending to config.log.
18862 # Unfortunately, on DOS this fails, as config.log is still kept open
18863 # by configure, so config.status won't be able to write to it; its
18864 # output is simply discarded. So we exec the FD to /dev/null,
18865 # effectively closing config.log, so it can be properly (re)opened and
18866 # appended to by config.status. When coming back to configure, we
18867 # need to make the FD available again.
18868 if test "$no_create" != yes; then
18869 ac_cs_success=:
18870 ac_config_status_args=
18871 test "$silent" = yes &&
18872 ac_config_status_args="$ac_config_status_args --quiet"
18873 exec 5>/dev/null
18874 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18875 exec 5>>config.log
18876 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18877 # would make configure fail if this is the last instruction.
18878 $ac_cs_success || as_fn_exit 1
18880 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18882 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18886 if test "$no_create" = "yes"
18887 then
18888 exit 0
18891 ac_save_IFS="$IFS"
18892 if test "x$wine_notices != "x; then
18893 echo >&6
18894 IFS="|"
18895 for msg in $wine_notices; do
18896 IFS="$ac_save_IFS"
18897 if ${msg+:} false; then :
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18899 $as_echo "$as_me: $msg" >&6;}
18901 done
18903 IFS="|"
18904 for msg in $wine_warnings; do
18905 IFS="$ac_save_IFS"
18906 if ${msg+:} false; then :
18907 echo >&2
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18909 $as_echo "$as_me: WARNING: $msg" >&2;}
18911 done
18912 IFS="$ac_save_IFS"
18914 $as_echo "
18915 $as_me: Finished. Do '${ac_make}' to compile Wine.
18916 " >&6