configure: Use the pkg-config helper macro for gphoto2.
[wine.git] / configure
blobd4daacb79da04e90d1310717acbd547e4180a10c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.5.29.
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.5.29'
584 PACKAGE_STRING='Wine 1.5.29'
585 PACKAGE_BUGREPORT='wine-devel@winehq.org'
586 PACKAGE_URL='http://www.winehq.org'
588 ac_unique_file="server/atom.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 PORCFLAGS
628 LINGUAS
629 ALL_TEST_RESOURCES
630 LDAPLIBS
631 LIBRT
632 LIBPOLL
633 LIBDL
634 EXTRA_BINARIES
635 MAIN_BINARY
636 TOOLSEXT
637 LDPATH
638 UNWINDFLAGS
639 BUILTINFLAG
640 EXTRACFLAGS
641 LIBKSTAT
642 LIBOPENAL
643 LIBMPG123
644 PNGINCL
645 FONTCONFIGINCL
646 CUPSINCL
647 OSS4INCL
648 ALSALIBS
649 GSTREAMER_INCL
650 GSTREAMER_LIBS
651 LIBGETTEXTPO
652 ZLIB
653 FREETYPEINCL
654 FREETYPELIBS
655 ft_devel
656 LCMSLIBS
657 RESOLVLIBS
658 GPHOTO2_LIBS
659 GPHOTO2_CFLAGS
660 SANE_LIBS
661 SANE_CFLAGS
662 GNUTLS_LIBS
663 GNUTLS_CFLAGS
664 HAL_LIBS
665 HAL_CFLAGS
666 DBUS_LIBS
667 DBUS_CFLAGS
668 XSLT_LIBS
669 XSLT_CFLAGS
670 XML2_LIBS
671 XML2_CFLAGS
672 PKG_CONFIG
673 X_EXTRA_LIBS
674 X_LIBS
675 X_PRE_LIBS
676 X_CFLAGS
677 XMKMF
678 LIBPTHREAD
679 CROSSTARGET
680 CROSSCC
681 CROSSTEST_DISABLE
682 PRELINK
683 CARBONLIB
684 QUICKTIMELIB
685 LIBOPENCL
686 FRAMEWORK_OPENAL
687 COREAUDIO
688 SECURITYLIB
689 DISKARBITRATIONLIB
690 LDEXECFLAGS
691 CORESERVICESLIB
692 APPLICATIONSERVICESLIB
693 IOKITLIB
694 COREFOUNDATIONLIB
695 LIBWINE_RULES
696 SOCKETLIBS
697 DLLWRAP
698 DLLTOOL
699 READELF
701 LDRPATH_LOCAL
702 LDRPATH_INSTALL
703 IMPLIBEXT
704 LDDLLFLAGS
705 DLLFLAGS
706 DLLEXT
708 OPENGL_LIBS
709 XLIB
710 MAINTAINER_MODE
711 MSGFMT
712 ICOTOOL
713 CONVERT
714 RSVG
715 FONTFORGE
716 LINTFLAGS
717 LINT
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 LDCONFIG
722 EGREP
723 GREP
724 LN_S
725 RANLIB
726 ARFLAGS
727 ac_ct_AR
729 BISON
730 FLEX
731 TOOLSDIR
732 WOW64_DISABLE
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='MAKE_RULES
793 MAKE_TEST_RULES
794 MAKE_DLL_RULES
795 MAKE_IMPLIB_RULES
796 MAKE_PROG_RULES'
797 ac_user_opts='
798 enable_option_checking
799 enable_win16
800 enable_win64
801 enable_tests
802 enable_maintainer_mode
803 with_alsa
804 with_capi
805 with_cms
806 with_coreaudio
807 with_cups
808 with_curses
809 with_dbus
810 with_fontconfig
811 with_freetype
812 with_gettext
813 with_gettextpo
814 with_gphoto
815 with_glu
816 with_gnutls
817 with_gsm
818 with_gstreamer
819 with_hal
820 with_jpeg
821 with_ldap
822 with_mpg123
823 with_openal
824 with_opencl
825 with_opengl
826 with_osmesa
827 with_oss
828 with_png
829 with_pthread
830 with_sane
831 with_tiff
832 with_v4l
833 with_xcomposite
834 with_xcursor
835 with_xinerama
836 with_xinput
837 with_xinput2
838 with_xml
839 with_xrandr
840 with_xrender
841 with_xshape
842 with_xshm
843 with_xslt
844 with_xxf86vm
845 with_zlib
846 with_wine_tools
847 with_wine64
848 enable_largefile
849 with_x
851 ac_precious_vars='build_alias
852 host_alias
853 target_alias
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
860 CXXFLAGS
863 XMKMF
864 XML2_CFLAGS
865 XML2_LIBS
866 XSLT_CFLAGS
867 XSLT_LIBS
868 DBUS_CFLAGS
869 DBUS_LIBS
870 HAL_CFLAGS
871 HAL_LIBS
872 GNUTLS_CFLAGS
873 GNUTLS_LIBS
874 SANE_CFLAGS
875 SANE_LIBS
876 GPHOTO2_CFLAGS
877 GPHOTO2_LIBS'
880 # Initialize some variables set by options.
881 ac_init_help=
882 ac_init_version=false
883 ac_unrecognized_opts=
884 ac_unrecognized_sep=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
887 cache_file=/dev/null
888 exec_prefix=NONE
889 no_create=
890 no_recursion=
891 prefix=NONE
892 program_prefix=NONE
893 program_suffix=NONE
894 program_transform_name=s,x,x,
895 silent=
896 site=
897 srcdir=
898 verbose=
899 x_includes=NONE
900 x_libraries=NONE
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir='${exec_prefix}/bin'
909 sbindir='${exec_prefix}/sbin'
910 libexecdir='${exec_prefix}/libexec'
911 datarootdir='${prefix}/share'
912 datadir='${datarootdir}'
913 sysconfdir='${prefix}/etc'
914 sharedstatedir='${prefix}/com'
915 localstatedir='${prefix}/var'
916 includedir='${prefix}/include'
917 oldincludedir='/usr/include'
918 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir='${datarootdir}/info'
920 htmldir='${docdir}'
921 dvidir='${docdir}'
922 pdfdir='${docdir}'
923 psdir='${docdir}'
924 libdir='${exec_prefix}/lib'
925 localedir='${datarootdir}/locale'
926 mandir='${datarootdir}/man'
928 ac_prev=
929 ac_dashdash=
930 for ac_option
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
935 ac_prev=
936 continue
939 case $ac_option in
940 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *=) ac_optarg= ;;
942 *) ac_optarg=yes ;;
943 esac
945 # Accept the important Cygnus configure options, so we can diagnose typos.
947 case $ac_dashdash$ac_option in
949 ac_dashdash=yes ;;
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 bindir=$ac_optarg ;;
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
968 --config-cache | -C)
969 cache_file=config.cache ;;
971 -datadir | --datadir | --datadi | --datad)
972 ac_prev=datadir ;;
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
983 -disable-* | --disable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1009 -enable-* | --enable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid feature name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_$ac_useropt"
1019 "*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=\$ac_optarg ;;
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1103 no_create=yes ;;
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
1172 sbindir=$ac_optarg ;;
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
1183 sharedstatedir=$ac_optarg ;;
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
1188 site=$ac_optarg ;;
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1213 -with-* | --with-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=\$ac_optarg ;;
1229 -without-* | --without-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error $? "invalid package name: $ac_useropt"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1238 "with_$ac_useropt"
1239 "*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1263 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264 Try \`$0 --help' for more information"
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273 esac
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1285 esac
1286 done
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 as_fn_error $? "missing argument to $ac_option"
1293 if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1295 no) ;;
1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 esac
1301 # Check all directory arguments for consistency.
1302 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1307 eval ac_val=\$$ac_var
1308 # Remove trailing slashes.
1309 case $ac_val in
1310 */ )
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1313 esac
1314 # Be sure to have absolute directory names.
1315 case $ac_val in
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318 esac
1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1320 done
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1325 build=$build_alias
1326 host=$host_alias
1327 target=$target_alias
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 elif test "x$build_alias" != "x$host_alias"; then
1334 cross_compiling=yes
1338 ac_tool_prefix=
1339 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341 test "$silent" = yes && exec 6>/dev/null
1344 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di=`ls -di .` &&
1346 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 as_fn_error $? "working directory cannot be determined"
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 as_fn_error $? "pwd does not report name of working directory"
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361 $as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 s//\1/
1366 /^X\(\/\/\)[^/].*/{
1367 s//\1/
1370 /^X\(\/\/\)$/{
1371 s//\1/
1374 /^X\(\/\).*/{
1375 s//\1/
1378 s/.*/./; q'`
1379 srcdir=$ac_confdir
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 srcdir=..
1383 else
1384 ac_srcdir_defaulted=no
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 ac_abs_confdir=`(
1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393 pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1417 cat <<_ACEOF
1418 \`configure' configures Wine 1.5.29 to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1427 Configuration:
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking ...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 [PREFIX]
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1471 _ACEOF
1473 cat <<\_ACEOF
1475 X features:
1476 --x-includes=DIR X include files are in DIR
1477 --x-libraries=DIR X library files are in DIR
1479 System types:
1480 --build=BUILD configure for building on BUILD [guessed]
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482 _ACEOF
1485 if test -n "$ac_init_help"; then
1486 case $ac_init_help in
1487 short | recursive ) echo "Configuration of Wine 1.5.29:";;
1488 esac
1489 cat <<\_ACEOF
1491 Optional Features:
1492 --disable-option-checking ignore unrecognized --enable/--with options
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1495 --disable-win16 do not include Win16 support
1496 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1497 binaries)
1498 --disable-tests do not build the regression tests
1499 --enable-maintainer-mode
1500 enable maintainer-specific build rules
1501 --disable-largefile omit support for large files
1503 Optional Packages:
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --without-alsa do not use the Alsa sound support
1507 --without-capi do not use CAPI (ISDN support)
1508 --without-cms do not use CMS (color management support)
1509 --without-coreaudio do not use the CoreAudio sound support
1510 --without-cups do not use CUPS
1511 --without-curses do not use (n)curses
1512 --without-dbus do not use DBus (dynamic device support)
1513 --without-fontconfig do not use fontconfig
1514 --without-freetype do not use the FreeType library
1515 --without-gettext do not use gettext
1516 --with-gettextpo use the GetTextPO library to rebuild po files
1517 --without-gphoto do not use gphoto (Digital Camera support)
1518 --without-glu do not use the GLU library
1519 --without-gnutls do not use GnuTLS (schannel support)
1520 --without-gsm do not use libgsm (GSM 06.10 codec support)
1521 --without-gstreamer do not use GStreamer (codecs support)
1522 --without-hal do not use HAL (dynamic device support)
1523 --without-jpeg do not use JPEG
1524 --without-ldap do not use LDAP
1525 --without-mpg123 do not use the mpg123 library
1526 --without-openal do not use OpenAL
1527 --without-opencl do not use OpenCL
1528 --without-opengl do not use OpenGL
1529 --without-osmesa do not use the OSMesa library
1530 --without-oss do not use the OSS sound support
1531 --without-png do not use PNG
1532 --without-pthread do not use the pthread library
1533 --without-sane do not use SANE (scanner support)
1534 --without-tiff do not use TIFF
1535 --without-v4l do not use v4l1 (v4l support)
1536 --without-xcomposite do not use the Xcomposite extension
1537 --without-xcursor do not use the Xcursor extension
1538 --without-xinerama do not use Xinerama (multi-monitor support)
1539 --without-xinput do not use the Xinput extension
1540 --without-xinput2 do not use the Xinput 2 extension
1541 --without-xml do not use XML
1542 --without-xrandr do not use Xrandr (resolution changes)
1543 --without-xrender do not use the Xrender extension
1544 --without-xshape do not use the Xshape extension
1545 --without-xshm do not use XShm (shared memory extension)
1546 --without-xslt do not use XSLT
1547 --without-xxf86vm do not use XFree video mode extension
1548 --without-zlib do not use Zlib (data compression)
1549 --with-wine-tools=DIR use Wine tools from directory DIR
1550 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1551 --with-x use the X Window System
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
1563 CPP C preprocessor
1564 XMKMF Path to xmkmf, Makefile generator for X Window System
1565 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
1566 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
1567 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
1568 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
1569 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
1570 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
1571 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
1572 HAL_LIBS Linker flags for hal, overriding pkg-config
1573 GNUTLS_CFLAGS
1574 C compiler flags for gnutls, overriding pkg-config
1575 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
1576 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
1577 SANE_LIBS Linker flags for libsane, overriding pkg-config
1578 GPHOTO2_CFLAGS
1579 C compiler flags for libgphoto2, overriding pkg-config
1580 GPHOTO2_LIBS
1581 Linker flags for libgphoto2, overriding pkg-config
1583 Use these variables to override the choices made by `configure' or to help
1584 it to find libraries and programs with nonstandard names/locations.
1586 Report bugs to <wine-devel@winehq.org>.
1587 Wine home page: <http://www.winehq.org>.
1588 _ACEOF
1589 ac_status=$?
1592 if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597 continue
1598 ac_builddir=.
1600 case "$ac_dir" in
1601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1609 esac ;;
1610 esac
1611 ac_abs_top_builddir=$ac_pwd
1612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir=$ac_top_build_prefix
1616 case $srcdir in
1617 .) # We are building in place.
1618 ac_srcdir=.
1619 ac_top_srcdir=$ac_top_builddir_sub
1620 ac_abs_top_srcdir=$ac_pwd ;;
1621 [\\/]* | ?:[\\/]* ) # Absolute name.
1622 ac_srcdir=$srcdir$ac_dir_suffix;
1623 ac_top_srcdir=$srcdir
1624 ac_abs_top_srcdir=$srcdir ;;
1625 *) # Relative name.
1626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1629 esac
1630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632 cd "$ac_dir" || { ac_status=$?; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1635 echo &&
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure" --help=recursive
1640 else
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1642 fi || ac_status=$?
1643 cd "$ac_pwd" || { ac_status=$?; break; }
1644 done
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1649 cat <<\_ACEOF
1650 Wine configure 1.5.29
1651 generated by GNU Autoconf 2.69
1653 Copyright (C) 2012 Free Software Foundation, Inc.
1654 This configure script is free software; the Free Software Foundation
1655 gives unlimited permission to copy, distribute and modify it.
1656 _ACEOF
1657 exit
1660 ## ------------------------ ##
1661 ## Autoconf initialization. ##
1662 ## ------------------------ ##
1664 # ac_fn_c_try_compile LINENO
1665 # --------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_compile ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1695 ac_retval=1
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1700 } # ac_fn_c_try_compile
1702 # ac_fn_cxx_try_compile LINENO
1703 # ----------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_cxx_try_compile ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_cxx_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1733 ac_retval=1
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1738 } # ac_fn_cxx_try_compile
1740 # ac_fn_c_try_link LINENO
1741 # -----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded.
1743 ac_fn_c_try_link ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
1767 test -x conftest$ac_exeext
1768 }; then :
1769 ac_retval=0
1770 else
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1774 ac_retval=1
1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778 # interfere with the next link command; also delete a directory that is
1779 # left behind by Apple's compiler. We do this before executing the actions.
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1784 } # ac_fn_c_try_link
1786 # ac_fn_c_try_cpp LINENO
1787 # ----------------------
1788 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_cpp ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 if { { ac_try="$ac_cpp conftest.$ac_ext"
1793 case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } > conftest.i && {
1808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 }; then :
1811 ac_retval=0
1812 else
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1816 ac_retval=1
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
1821 } # ac_fn_c_try_cpp
1823 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1824 # -------------------------------------------------------
1825 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1826 # the include files in INCLUDES and setting the cache variable VAR
1827 # accordingly.
1828 ac_fn_c_check_header_mongrel ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if eval \${$3+:} false; then :
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1837 eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 else
1841 # Is the header compilable?
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1843 $as_echo_n "checking $2 usability... " >&6; }
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850 ac_header_compiler=yes
1851 else
1852 ac_header_compiler=no
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1856 $as_echo "$ac_header_compiler" >&6; }
1858 # Is the header present?
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1860 $as_echo_n "checking $2 presence... " >&6; }
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h. */
1863 #include <$2>
1864 _ACEOF
1865 if ac_fn_c_try_cpp "$LINENO"; then :
1866 ac_header_preproc=yes
1867 else
1868 ac_header_preproc=no
1870 rm -f conftest.err conftest.i conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1872 $as_echo "$ac_header_preproc" >&6; }
1874 # So? What about this header?
1875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1876 yes:no: )
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1878 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1880 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882 no:yes:* )
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1884 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1886 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1888 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1890 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1892 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1893 ( $as_echo "## ------------------------------------ ##
1894 ## Report this to wine-devel@winehq.org ##
1895 ## ------------------------------------ ##"
1896 ) | sed "s/^/$as_me: WARNING: /" >&2
1898 esac
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 eval "$3=\$ac_header_compiler"
1906 eval ac_res=\$$3
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 } # ac_fn_c_check_header_mongrel
1914 # ac_fn_c_try_run LINENO
1915 # ----------------------
1916 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1917 # that executables *can* be run.
1918 ac_fn_c_try_run ()
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if { { ac_try="$ac_link"
1922 case "(($ac_try" in
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1925 esac
1926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927 $as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_link") 2>&5
1929 ac_status=$?
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1932 { { case "(($ac_try" in
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1935 esac
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_try") 2>&5
1939 ac_status=$?
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; }; }; then :
1942 ac_retval=0
1943 else
1944 $as_echo "$as_me: program exited with status $ac_status" >&5
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1948 ac_retval=$ac_status
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1954 } # ac_fn_c_try_run
1956 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1957 # -------------------------------------------------------
1958 # Tests whether HEADER exists and can be compiled using the include files in
1959 # INCLUDES, setting the cache variable VAR accordingly.
1960 ac_fn_c_check_header_compile ()
1962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if eval \${$3+:} false; then :
1966 $as_echo_n "(cached) " >&6
1967 else
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1971 #include <$2>
1972 _ACEOF
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974 eval "$3=yes"
1975 else
1976 eval "$3=no"
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 } # ac_fn_c_check_header_compile
1987 # ac_fn_c_check_func LINENO FUNC VAR
1988 # ----------------------------------
1989 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1990 ac_fn_c_check_func ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if eval \${$3+:} false; then :
1996 $as_echo_n "(cached) " >&6
1997 else
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2002 #define $2 innocuous_$2
2004 /* System header to define __stub macros and hopefully few prototypes,
2005 which can conflict with char $2 (); below.
2006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2007 <limits.h> exists even on freestanding compilers. */
2009 #ifdef __STDC__
2010 # include <limits.h>
2011 #else
2012 # include <assert.h>
2013 #endif
2015 #undef $2
2017 /* Override any GCC internal prototype to avoid an error.
2018 Use char because int might match the return type of a GCC
2019 builtin and then its argument prototype would still apply. */
2020 #ifdef __cplusplus
2021 extern "C"
2022 #endif
2023 char $2 ();
2024 /* The GNU C library defines this for functions which it implements
2025 to always fail with ENOSYS. Some functions are actually named
2026 something starting with __ and the normal name is an alias. */
2027 #if defined __stub_$2 || defined __stub___$2
2028 choke me
2029 #endif
2032 main ()
2034 return $2 ();
2036 return 0;
2038 _ACEOF
2039 if ac_fn_c_try_link "$LINENO"; then :
2040 eval "$3=yes"
2041 else
2042 eval "$3=no"
2044 rm -f core conftest.err conftest.$ac_objext \
2045 conftest$ac_exeext conftest.$ac_ext
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } # ac_fn_c_check_func
2054 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2055 # ----------------------------------------------------
2056 # Tries to find if the field MEMBER exists in type AGGR, after including
2057 # INCLUDES, setting cache variable VAR accordingly.
2058 ac_fn_c_check_member ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2062 $as_echo_n "checking for $2.$3... " >&6; }
2063 if eval \${$4+:} false; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067 /* end confdefs.h. */
2070 main ()
2072 static $2 ac_aggr;
2073 if (ac_aggr.$3)
2074 return 0;
2076 return 0;
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 eval "$4=yes"
2081 else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2086 main ()
2088 static $2 ac_aggr;
2089 if (sizeof ac_aggr.$3)
2090 return 0;
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 eval "$4=yes"
2097 else
2098 eval "$4=no"
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 eval ac_res=\$$4
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109 } # ac_fn_c_check_member
2111 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2112 # -------------------------------------------
2113 # Tests whether TYPE exists after having included INCLUDES, setting cache
2114 # variable VAR accordingly.
2115 ac_fn_c_check_type ()
2117 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119 $as_echo_n "checking for $2... " >&6; }
2120 if eval \${$3+:} false; then :
2121 $as_echo_n "(cached) " >&6
2122 else
2123 eval "$3=no"
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2128 main ()
2130 if (sizeof ($2))
2131 return 0;
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2141 main ()
2143 if (sizeof (($2)))
2144 return 0;
2146 return 0;
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2151 else
2152 eval "$3=yes"
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 eval ac_res=\$$3
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160 $as_echo "$ac_res" >&6; }
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163 } # ac_fn_c_check_type
2164 cat >config.log <<_ACEOF
2165 This file contains any messages produced by compilers while
2166 running configure, to aid debugging if configure makes a mistake.
2168 It was created by Wine $as_me 1.5.29, which was
2169 generated by GNU Autoconf 2.69. Invocation command line was
2171 $ $0 $@
2173 _ACEOF
2174 exec 5>>config.log
2176 cat <<_ASUNAME
2177 ## --------- ##
2178 ## Platform. ##
2179 ## --------- ##
2181 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2182 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2183 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2184 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2185 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2187 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2188 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2190 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2191 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2192 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2193 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2194 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2195 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2196 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2198 _ASUNAME
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 for as_dir in $PATH
2203 IFS=$as_save_IFS
2204 test -z "$as_dir" && as_dir=.
2205 $as_echo "PATH: $as_dir"
2206 done
2207 IFS=$as_save_IFS
2209 } >&5
2211 cat >&5 <<_ACEOF
2214 ## ----------- ##
2215 ## Core tests. ##
2216 ## ----------- ##
2218 _ACEOF
2221 # Keep a trace of the command line.
2222 # Strip out --no-create and --no-recursion so they do not pile up.
2223 # Strip out --silent because we don't want to record it for future runs.
2224 # Also quote any args containing shell meta-characters.
2225 # Make two passes to allow for proper duplicate-argument suppression.
2226 ac_configure_args=
2227 ac_configure_args0=
2228 ac_configure_args1=
2229 ac_must_keep_next=false
2230 for ac_pass in 1 2
2232 for ac_arg
2234 case $ac_arg in
2235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2237 | -silent | --silent | --silen | --sile | --sil)
2238 continue ;;
2239 *\'*)
2240 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2241 esac
2242 case $ac_pass in
2243 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2245 as_fn_append ac_configure_args1 " '$ac_arg'"
2246 if test $ac_must_keep_next = true; then
2247 ac_must_keep_next=false # Got value, back to normal.
2248 else
2249 case $ac_arg in
2250 *=* | --config-cache | -C | -disable-* | --disable-* \
2251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2253 | -with-* | --with-* | -without-* | --without-* | --x)
2254 case "$ac_configure_args0 " in
2255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2256 esac
2258 -* ) ac_must_keep_next=true ;;
2259 esac
2261 as_fn_append ac_configure_args " '$ac_arg'"
2263 esac
2264 done
2265 done
2266 { ac_configure_args0=; unset ac_configure_args0;}
2267 { ac_configure_args1=; unset ac_configure_args1;}
2269 # When interrupted or exit'd, cleanup temporary files, and complete
2270 # config.log. We remove comments because anyway the quotes in there
2271 # would cause problems or look ugly.
2272 # WARNING: Use '\'' to represent an apostrophe within the trap.
2273 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2274 trap 'exit_status=$?
2275 # Save into config.log some information that might help in debugging.
2277 echo
2279 $as_echo "## ---------------- ##
2280 ## Cache variables. ##
2281 ## ---------------- ##"
2282 echo
2283 # The following way of writing the cache mishandles newlines in values,
2285 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2286 eval ac_val=\$$ac_var
2287 case $ac_val in #(
2288 *${as_nl}*)
2289 case $ac_var in #(
2290 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2291 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2292 esac
2293 case $ac_var in #(
2294 _ | IFS | as_nl) ;; #(
2295 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2296 *) { eval $ac_var=; unset $ac_var;} ;;
2297 esac ;;
2298 esac
2299 done
2300 (set) 2>&1 |
2301 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2302 *${as_nl}ac_space=\ *)
2303 sed -n \
2304 "s/'\''/'\''\\\\'\'''\''/g;
2305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2306 ;; #(
2308 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2310 esac |
2311 sort
2313 echo
2315 $as_echo "## ----------------- ##
2316 ## Output variables. ##
2317 ## ----------------- ##"
2318 echo
2319 for ac_var in $ac_subst_vars
2321 eval ac_val=\$$ac_var
2322 case $ac_val in
2323 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2324 esac
2325 $as_echo "$ac_var='\''$ac_val'\''"
2326 done | sort
2327 echo
2329 if test -n "$ac_subst_files"; then
2330 $as_echo "## ------------------- ##
2331 ## File substitutions. ##
2332 ## ------------------- ##"
2333 echo
2334 for ac_var in $ac_subst_files
2336 eval ac_val=\$$ac_var
2337 case $ac_val in
2338 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339 esac
2340 $as_echo "$ac_var='\''$ac_val'\''"
2341 done | sort
2342 echo
2345 if test -s confdefs.h; then
2346 $as_echo "## ----------- ##
2347 ## confdefs.h. ##
2348 ## ----------- ##"
2349 echo
2350 cat confdefs.h
2351 echo
2353 test "$ac_signal" != 0 &&
2354 $as_echo "$as_me: caught signal $ac_signal"
2355 $as_echo "$as_me: exit $exit_status"
2356 } >&5
2357 rm -f core *.core core.conftest.* &&
2358 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2359 exit $exit_status
2361 for ac_signal in 1 2 13 15; do
2362 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2363 done
2364 ac_signal=0
2366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2367 rm -f -r conftest* confdefs.h
2369 $as_echo "/* confdefs.h */" > confdefs.h
2371 # Predefined preprocessor variables.
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_NAME "$PACKAGE_NAME"
2375 _ACEOF
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2379 _ACEOF
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2383 _ACEOF
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_STRING "$PACKAGE_STRING"
2387 _ACEOF
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2391 _ACEOF
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_URL "$PACKAGE_URL"
2395 _ACEOF
2398 # Let the site file select an alternate cache file if it wants to.
2399 # Prefer an explicitly selected file to automatically selected ones.
2400 ac_site_file1=NONE
2401 ac_site_file2=NONE
2402 if test -n "$CONFIG_SITE"; then
2403 # We do not want a PATH search for config.site.
2404 case $CONFIG_SITE in #((
2405 -*) ac_site_file1=./$CONFIG_SITE;;
2406 */*) ac_site_file1=$CONFIG_SITE;;
2407 *) ac_site_file1=./$CONFIG_SITE;;
2408 esac
2409 elif test "x$prefix" != xNONE; then
2410 ac_site_file1=$prefix/share/config.site
2411 ac_site_file2=$prefix/etc/config.site
2412 else
2413 ac_site_file1=$ac_default_prefix/share/config.site
2414 ac_site_file2=$ac_default_prefix/etc/config.site
2416 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2418 test "x$ac_site_file" = xNONE && continue
2419 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2421 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2422 sed 's/^/| /' "$ac_site_file" >&5
2423 . "$ac_site_file" \
2424 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2426 as_fn_error $? "failed to load site script $ac_site_file
2427 See \`config.log' for more details" "$LINENO" 5; }
2429 done
2431 if test -r "$cache_file"; then
2432 # Some versions of bash will fail to source /dev/null (special files
2433 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2434 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2436 $as_echo "$as_me: loading cache $cache_file" >&6;}
2437 case $cache_file in
2438 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2439 *) . "./$cache_file";;
2440 esac
2442 else
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2444 $as_echo "$as_me: creating cache $cache_file" >&6;}
2445 >$cache_file
2448 # Check that the precious variables saved in the cache have kept the same
2449 # value.
2450 ac_cache_corrupted=false
2451 for ac_var in $ac_precious_vars; do
2452 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2453 eval ac_new_set=\$ac_env_${ac_var}_set
2454 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2455 eval ac_new_val=\$ac_env_${ac_var}_value
2456 case $ac_old_set,$ac_new_set in
2457 set,)
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2459 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2460 ac_cache_corrupted=: ;;
2461 ,set)
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2463 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2464 ac_cache_corrupted=: ;;
2465 ,);;
2467 if test "x$ac_old_val" != "x$ac_new_val"; then
2468 # differences in whitespace do not lead to failure.
2469 ac_old_val_w=`echo x $ac_old_val`
2470 ac_new_val_w=`echo x $ac_new_val`
2471 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2473 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2474 ac_cache_corrupted=:
2475 else
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2477 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2478 eval $ac_var=\$ac_old_val
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2481 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2483 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2484 fi;;
2485 esac
2486 # Pass precious variables to config.status.
2487 if test "$ac_new_set" = set; then
2488 case $ac_new_val in
2489 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2490 *) ac_arg=$ac_var=$ac_new_val ;;
2491 esac
2492 case " $ac_configure_args " in
2493 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2494 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2495 esac
2497 done
2498 if $ac_cache_corrupted; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2502 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2503 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2505 ## -------------------- ##
2506 ## Main body of script. ##
2507 ## -------------------- ##
2509 ac_ext=c
2510 ac_cpp='$CPP $CPPFLAGS'
2511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2517 ac_config_headers="$ac_config_headers include/config.h"
2519 ac_aux_dir=
2520 for ac_dir in tools "$srcdir"/tools; do
2521 if test -f "$ac_dir/install-sh"; then
2522 ac_aux_dir=$ac_dir
2523 ac_install_sh="$ac_aux_dir/install-sh -c"
2524 break
2525 elif test -f "$ac_dir/install.sh"; then
2526 ac_aux_dir=$ac_dir
2527 ac_install_sh="$ac_aux_dir/install.sh -c"
2528 break
2529 elif test -f "$ac_dir/shtool"; then
2530 ac_aux_dir=$ac_dir
2531 ac_install_sh="$ac_aux_dir/shtool install -c"
2532 break
2534 done
2535 if test -z "$ac_aux_dir"; then
2536 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2539 # These three variables are undocumented and unsupported,
2540 # and are intended to be withdrawn in a future Autoconf release.
2541 # They can cause serious problems if a builder's source tree is in a directory
2542 # whose full name contains unusual characters.
2543 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2544 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2545 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2551 # Check whether --enable-win16 was given.
2552 if test "${enable_win16+set}" = set; then :
2553 enableval=$enable_win16;
2556 # Check whether --enable-win64 was given.
2557 if test "${enable_win64+set}" = set; then :
2558 enableval=$enable_win64;
2561 # Check whether --enable-tests was given.
2562 if test "${enable_tests+set}" = set; then :
2563 enableval=$enable_tests;
2566 # Check whether --enable-maintainer-mode was given.
2567 if test "${enable_maintainer_mode+set}" = set; then :
2568 enableval=$enable_maintainer_mode;
2573 # Check whether --with-alsa was given.
2574 if test "${with_alsa+set}" = set; then :
2575 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2579 # Check whether --with-capi was given.
2580 if test "${with_capi+set}" = set; then :
2581 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2585 # Check whether --with-cms was given.
2586 if test "${with_cms+set}" = set; then :
2587 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2591 # Check whether --with-coreaudio was given.
2592 if test "${with_coreaudio+set}" = set; then :
2593 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2597 # Check whether --with-cups was given.
2598 if test "${with_cups+set}" = set; then :
2599 withval=$with_cups;
2603 # Check whether --with-curses was given.
2604 if test "${with_curses+set}" = set; then :
2605 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2609 # Check whether --with-dbus was given.
2610 if test "${with_dbus+set}" = set; then :
2611 withval=$with_dbus;
2615 # Check whether --with-fontconfig was given.
2616 if test "${with_fontconfig+set}" = set; then :
2617 withval=$with_fontconfig;
2621 # Check whether --with-freetype was given.
2622 if test "${with_freetype+set}" = set; then :
2623 withval=$with_freetype;
2627 # Check whether --with-gettext was given.
2628 if test "${with_gettext+set}" = set; then :
2629 withval=$with_gettext;
2633 # Check whether --with-gettextpo was given.
2634 if test "${with_gettextpo+set}" = set; then :
2635 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2639 # Check whether --with-gphoto was given.
2640 if test "${with_gphoto+set}" = set; then :
2641 withval=$with_gphoto;
2645 # Check whether --with-glu was given.
2646 if test "${with_glu+set}" = set; then :
2647 withval=$with_glu;
2651 # Check whether --with-gnutls was given.
2652 if test "${with_gnutls+set}" = set; then :
2653 withval=$with_gnutls;
2657 # Check whether --with-gsm was given.
2658 if test "${with_gsm+set}" = set; then :
2659 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2663 # Check whether --with-gstreamer was given.
2664 if test "${with_gstreamer+set}" = set; then :
2665 withval=$with_gstreamer;
2669 # Check whether --with-hal was given.
2670 if test "${with_hal+set}" = set; then :
2671 withval=$with_hal;
2675 # Check whether --with-jpeg was given.
2676 if test "${with_jpeg+set}" = set; then :
2677 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2681 # Check whether --with-ldap was given.
2682 if test "${with_ldap+set}" = set; then :
2683 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2687 # Check whether --with-mpg123 was given.
2688 if test "${with_mpg123+set}" = set; then :
2689 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2693 # Check whether --with-openal was given.
2694 if test "${with_openal+set}" = set; then :
2695 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2699 # Check whether --with-opencl was given.
2700 if test "${with_opencl+set}" = set; then :
2701 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2705 # Check whether --with-opengl was given.
2706 if test "${with_opengl+set}" = set; then :
2707 withval=$with_opengl;
2711 # Check whether --with-osmesa was given.
2712 if test "${with_osmesa+set}" = set; then :
2713 withval=$with_osmesa;
2717 # Check whether --with-oss was given.
2718 if test "${with_oss+set}" = set; then :
2719 withval=$with_oss;
2723 # Check whether --with-png was given.
2724 if test "${with_png+set}" = set; then :
2725 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2729 # Check whether --with-pthread was given.
2730 if test "${with_pthread+set}" = set; then :
2731 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2735 # Check whether --with-sane was given.
2736 if test "${with_sane+set}" = set; then :
2737 withval=$with_sane;
2741 # Check whether --with-tiff was given.
2742 if test "${with_tiff+set}" = set; then :
2743 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2747 # Check whether --with-v4l was given.
2748 if test "${with_v4l+set}" = set; then :
2749 withval=$with_v4l;
2753 # Check whether --with-xcomposite was given.
2754 if test "${with_xcomposite+set}" = set; then :
2755 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2759 # Check whether --with-xcursor was given.
2760 if test "${with_xcursor+set}" = set; then :
2761 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2765 # Check whether --with-xinerama was given.
2766 if test "${with_xinerama+set}" = set; then :
2767 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2771 # Check whether --with-xinput was given.
2772 if test "${with_xinput+set}" = set; then :
2773 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2777 # Check whether --with-xinput2 was given.
2778 if test "${with_xinput2+set}" = set; then :
2779 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2783 # Check whether --with-xml was given.
2784 if test "${with_xml+set}" = set; then :
2785 withval=$with_xml;
2789 # Check whether --with-xrandr was given.
2790 if test "${with_xrandr+set}" = set; then :
2791 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2795 # Check whether --with-xrender was given.
2796 if test "${with_xrender+set}" = set; then :
2797 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2801 # Check whether --with-xshape was given.
2802 if test "${with_xshape+set}" = set; then :
2803 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2807 # Check whether --with-xshm was given.
2808 if test "${with_xshm+set}" = set; then :
2809 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2813 # Check whether --with-xslt was given.
2814 if test "${with_xslt+set}" = set; then :
2815 withval=$with_xslt;
2819 # Check whether --with-xxf86vm was given.
2820 if test "${with_xxf86vm+set}" = set; then :
2821 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
2825 # Check whether --with-zlib was given.
2826 if test "${with_zlib+set}" = set; then :
2827 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2832 # Check whether --with-wine-tools was given.
2833 if test "${with_wine_tools+set}" = set; then :
2834 withval=$with_wine_tools;
2838 # Check whether --with-wine64 was given.
2839 if test "${with_wine64+set}" = set; then :
2840 withval=$with_wine64;
2844 # Make sure we can run config.sub.
2845 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2846 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2849 $as_echo_n "checking build system type... " >&6; }
2850 if ${ac_cv_build+:} false; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 ac_build_alias=$build_alias
2854 test "x$ac_build_alias" = x &&
2855 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2856 test "x$ac_build_alias" = x &&
2857 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2858 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2859 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2863 $as_echo "$ac_cv_build" >&6; }
2864 case $ac_cv_build in
2865 *-*-*) ;;
2866 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2867 esac
2868 build=$ac_cv_build
2869 ac_save_IFS=$IFS; IFS='-'
2870 set x $ac_cv_build
2871 shift
2872 build_cpu=$1
2873 build_vendor=$2
2874 shift; shift
2875 # Remember, the first character of IFS is used to create $*,
2876 # except with old shells:
2877 build_os=$*
2878 IFS=$ac_save_IFS
2879 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2883 $as_echo_n "checking host system type... " >&6; }
2884 if ${ac_cv_host+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test "x$host_alias" = x; then
2888 ac_cv_host=$ac_cv_build
2889 else
2890 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2891 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2896 $as_echo "$ac_cv_host" >&6; }
2897 case $ac_cv_host in
2898 *-*-*) ;;
2899 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2900 esac
2901 host=$ac_cv_host
2902 ac_save_IFS=$IFS; IFS='-'
2903 set x $ac_cv_host
2904 shift
2905 host_cpu=$1
2906 host_vendor=$2
2907 shift; shift
2908 # Remember, the first character of IFS is used to create $*,
2909 # except with old shells:
2910 host_os=$*
2911 IFS=$ac_save_IFS
2912 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2916 case "$srcdir" in
2917 .) ;;
2918 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2919 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2920 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2921 fi ;;
2922 esac
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2926 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2927 set x ${MAKE-make}
2928 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2929 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 cat >conftest.make <<\_ACEOF
2933 SHELL = /bin/sh
2934 all:
2935 @echo '@@@%%%=$(MAKE)=@@@%%%'
2936 _ACEOF
2937 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2938 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2939 *@@@%%%=?*=@@@%%%*)
2940 eval ac_cv_prog_make_${ac_make}_set=yes;;
2942 eval ac_cv_prog_make_${ac_make}_set=no;;
2943 esac
2944 rm -f conftest.make
2946 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 $as_echo "yes" >&6; }
2949 SET_MAKE=
2950 else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2953 SET_MAKE="MAKE=${MAKE-make}"
2956 ac_ext=c
2957 ac_cpp='$CPP $CPPFLAGS'
2958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2983 done
2984 done
2985 IFS=$as_save_IFS
2989 CC=$ac_cv_prog_CC
2990 if test -n "$CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
3000 if test -z "$ac_cv_prog_CC"; then
3001 ac_ct_CC=$CC
3002 # Extract the first word of "gcc", so it can be a program name with args.
3003 set dummy gcc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$ac_ct_CC"; then
3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_ac_ct_CC="gcc"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3023 done
3024 done
3025 IFS=$as_save_IFS
3029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3030 if test -n "$ac_ct_CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032 $as_echo "$ac_ct_CC" >&6; }
3033 else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3038 if test "x$ac_ct_CC" = x; then
3039 CC=""
3040 else
3041 case $cross_compiling:$ac_tool_warned in
3042 yes:)
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045 ac_tool_warned=yes ;;
3046 esac
3047 CC=$ac_ct_CC
3049 else
3050 CC="$ac_cv_prog_CC"
3053 if test -z "$CC"; then
3054 if test -n "$ac_tool_prefix"; then
3055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}cc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if ${ac_cv_prog_CC+:} false; then :
3060 $as_echo_n "(cached) " >&6
3061 else
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072 ac_cv_prog_CC="${ac_tool_prefix}cc"
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 break 2
3076 done
3077 done
3078 IFS=$as_save_IFS
3082 CC=$ac_cv_prog_CC
3083 if test -n "$CC"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085 $as_echo "$CC" >&6; }
3086 else
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3094 if test -z "$CC"; then
3095 # Extract the first word of "cc", so it can be a program name with args.
3096 set dummy cc; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if ${ac_cv_prog_CC+:} false; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 ac_prog_rejected=no
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3114 ac_prog_rejected=yes
3115 continue
3117 ac_cv_prog_CC="cc"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3121 done
3122 done
3123 IFS=$as_save_IFS
3125 if test $ac_prog_rejected = yes; then
3126 # We found a bogon in the path, so make sure we never use it.
3127 set dummy $ac_cv_prog_CC
3128 shift
3129 if test $# != 0; then
3130 # We chose a different compiler from the bogus one.
3131 # However, it has the same basename, so the bogon will be chosen
3132 # first if we set CC to just the basename; use the full file name.
3133 shift
3134 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3150 if test -z "$CC"; then
3151 if test -n "$ac_tool_prefix"; then
3152 for ac_prog in cl.exe
3154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if ${ac_cv_prog_CC+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3175 done
3176 done
3177 IFS=$as_save_IFS
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3191 test -n "$CC" && break
3192 done
3194 if test -z "$CC"; then
3195 ac_ct_CC=$CC
3196 for ac_prog in cl.exe
3198 # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy $ac_prog; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$ac_ct_CC"; then
3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_ac_ct_CC="$ac_prog"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3219 done
3220 done
3221 IFS=$as_save_IFS
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228 $as_echo "$ac_ct_CC" >&6; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3235 test -n "$ac_ct_CC" && break
3236 done
3238 if test "x$ac_ct_CC" = x; then
3239 CC=""
3240 else
3241 case $cross_compiling:$ac_tool_warned in
3242 yes:)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245 ac_tool_warned=yes ;;
3246 esac
3247 CC=$ac_ct_CC
3254 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "no acceptable C compiler found in \$PATH
3257 See \`config.log' for more details" "$LINENO" 5; }
3259 # Provide some information about the compiler.
3260 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3261 set X $ac_compile
3262 ac_compiler=$2
3263 for ac_option in --version -v -V -qversion; do
3264 { { ac_try="$ac_compiler $ac_option >&5"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3272 ac_status=$?
3273 if test -s conftest.err; then
3274 sed '10a\
3275 ... rest of stderr output deleted ...
3276 10q' conftest.err >conftest.er1
3277 cat conftest.er1 >&5
3279 rm -f conftest.er1 conftest.err
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }
3282 done
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3288 main ()
3292 return 0;
3294 _ACEOF
3295 ac_clean_files_save=$ac_clean_files
3296 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3297 # Try to create an executable without -o first, disregard a.out.
3298 # It will help us diagnose broken compilers, and finding out an intuition
3299 # of exeext.
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3301 $as_echo_n "checking whether the C compiler works... " >&6; }
3302 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304 # The possible output files:
3305 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307 ac_rmfiles=
3308 for ac_file in $ac_files
3310 case $ac_file in
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3313 esac
3314 done
3315 rm -f $ac_rmfiles
3317 if { { ac_try="$ac_link_default"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324 (eval "$ac_link_default") 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3329 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3330 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3331 # so that the user can short-circuit this test for compilers unknown to
3332 # Autoconf.
3333 for ac_file in $ac_files ''
3335 test -f "$ac_file" || continue
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3339 [ab].out )
3340 # We found the default executable, but exeext='' is most
3341 # certainly right.
3342 break;;
3343 *.* )
3344 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3345 then :; else
3346 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 # We set ac_cv_exeext here because the later test for it is not
3349 # safe: cross compilers may not add the suffix if given an `-o'
3350 # argument, so we may need to know it at that point already.
3351 # Even if this section looks crufty: it has the advantage of
3352 # actually working.
3353 break;;
3355 break;;
3356 esac
3357 done
3358 test "$ac_cv_exeext" = no && ac_cv_exeext=
3360 else
3361 ac_file=''
3363 if test -z "$ac_file"; then :
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366 $as_echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 as_fn_error 77 "C compiler cannot create executables
3372 See \`config.log' for more details" "$LINENO" 5; }
3373 else
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3375 $as_echo "yes" >&6; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3378 $as_echo_n "checking for C compiler default output file name... " >&6; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3380 $as_echo "$ac_file" >&6; }
3381 ac_exeext=$ac_cv_exeext
3383 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3384 ac_clean_files=$ac_clean_files_save
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3386 $as_echo_n "checking for suffix of executables... " >&6; }
3387 if { { ac_try="$ac_link"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_link") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
3398 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3399 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3400 # work properly (i.e., refer to `conftest.exe'), while it won't with
3401 # `rm'.
3402 for ac_file in conftest.exe conftest conftest.*; do
3403 test -f "$ac_file" || continue
3404 case $ac_file in
3405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3406 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3407 break;;
3408 * ) break;;
3409 esac
3410 done
3411 else
3412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3415 See \`config.log' for more details" "$LINENO" 5; }
3417 rm -f conftest conftest$ac_cv_exeext
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3419 $as_echo "$ac_cv_exeext" >&6; }
3421 rm -f conftest.$ac_ext
3422 EXEEXT=$ac_cv_exeext
3423 ac_exeext=$EXEEXT
3424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3425 /* end confdefs.h. */
3426 #include <stdio.h>
3428 main ()
3430 FILE *f = fopen ("conftest.out", "w");
3431 return ferror (f) || fclose (f) != 0;
3434 return 0;
3436 _ACEOF
3437 ac_clean_files="$ac_clean_files conftest.out"
3438 # Check that the compiler produces executables we can run. If not, either
3439 # the compiler is broken, or we cross compile.
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3441 $as_echo_n "checking whether we are cross compiling... " >&6; }
3442 if test "$cross_compiling" != yes; then
3443 { { ac_try="$ac_link"
3444 case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_link") 2>&5
3451 ac_status=$?
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }
3454 if { ac_try='./conftest$ac_cv_exeext'
3455 { { case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_try") 2>&5
3462 ac_status=$?
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; }; then
3465 cross_compiling=no
3466 else
3467 if test "$cross_compiling" = maybe; then
3468 cross_compiling=yes
3469 else
3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error $? "cannot run C compiled programs.
3473 If you meant to cross compile, use \`--host'.
3474 See \`config.log' for more details" "$LINENO" 5; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3479 $as_echo "$cross_compiling" >&6; }
3481 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3482 ac_clean_files=$ac_clean_files_save
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3484 $as_echo_n "checking for suffix of object files... " >&6; }
3485 if ${ac_cv_objext+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3492 main ()
3496 return 0;
3498 _ACEOF
3499 rm -f conftest.o conftest.obj
3500 if { { ac_try="$ac_compile"
3501 case "(($ac_try" in
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3504 esac
3505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506 $as_echo "$ac_try_echo"; } >&5
3507 (eval "$ac_compile") 2>&5
3508 ac_status=$?
3509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510 test $ac_status = 0; }; then :
3511 for ac_file in conftest.o conftest.obj conftest.*; do
3512 test -f "$ac_file" || continue;
3513 case $ac_file in
3514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3515 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3516 break;;
3517 esac
3518 done
3519 else
3520 $as_echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 as_fn_error $? "cannot compute suffix of object files: cannot compile
3526 See \`config.log' for more details" "$LINENO" 5; }
3528 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3531 $as_echo "$ac_cv_objext" >&6; }
3532 OBJEXT=$ac_cv_objext
3533 ac_objext=$OBJEXT
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3535 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3536 if ${ac_cv_c_compiler_gnu+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3543 main ()
3545 #ifndef __GNUC__
3546 choke me
3547 #endif
3550 return 0;
3552 _ACEOF
3553 if ac_fn_c_try_compile "$LINENO"; then :
3554 ac_compiler_gnu=yes
3555 else
3556 ac_compiler_gnu=no
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3563 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3564 if test $ac_compiler_gnu = yes; then
3565 GCC=yes
3566 else
3567 GCC=
3569 ac_test_CFLAGS=${CFLAGS+set}
3570 ac_save_CFLAGS=$CFLAGS
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3572 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3573 if ${ac_cv_prog_cc_g+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575 else
3576 ac_save_c_werror_flag=$ac_c_werror_flag
3577 ac_c_werror_flag=yes
3578 ac_cv_prog_cc_g=no
3579 CFLAGS="-g"
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3584 main ()
3588 return 0;
3590 _ACEOF
3591 if ac_fn_c_try_compile "$LINENO"; then :
3592 ac_cv_prog_cc_g=yes
3593 else
3594 CFLAGS=""
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3599 main ()
3603 return 0;
3605 _ACEOF
3606 if ac_fn_c_try_compile "$LINENO"; then :
3608 else
3609 ac_c_werror_flag=$ac_save_c_werror_flag
3610 CFLAGS="-g"
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3615 main ()
3619 return 0;
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623 ac_cv_prog_cc_g=yes
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 ac_c_werror_flag=$ac_save_c_werror_flag
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3633 $as_echo "$ac_cv_prog_cc_g" >&6; }
3634 if test "$ac_test_CFLAGS" = set; then
3635 CFLAGS=$ac_save_CFLAGS
3636 elif test $ac_cv_prog_cc_g = yes; then
3637 if test "$GCC" = yes; then
3638 CFLAGS="-g -O2"
3639 else
3640 CFLAGS="-g"
3642 else
3643 if test "$GCC" = yes; then
3644 CFLAGS="-O2"
3645 else
3646 CFLAGS=
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3650 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3651 if ${ac_cv_prog_cc_c89+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 ac_cv_prog_cc_c89=no
3655 ac_save_CC=$CC
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658 #include <stdarg.h>
3659 #include <stdio.h>
3660 struct stat;
3661 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3662 struct buf { int x; };
3663 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3664 static char *e (p, i)
3665 char **p;
3666 int i;
3668 return p[i];
3670 static char *f (char * (*g) (char **, int), char **p, ...)
3672 char *s;
3673 va_list v;
3674 va_start (v,p);
3675 s = g (p, va_arg (v,int));
3676 va_end (v);
3677 return s;
3680 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3681 function prototypes and stuff, but not '\xHH' hex character constants.
3682 These don't provoke an error unfortunately, instead are silently treated
3683 as 'x'. The following induces an error, until -std is added to get
3684 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3685 array size at least. It's necessary to write '\x00'==0 to get something
3686 that's true only with -std. */
3687 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3689 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3690 inside strings and character constants. */
3691 #define FOO(x) 'x'
3692 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3694 int test (int i, double x);
3695 struct s1 {int (*f) (int a);};
3696 struct s2 {int (*f) (double a);};
3697 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3698 int argc;
3699 char **argv;
3701 main ()
3703 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3705 return 0;
3707 _ACEOF
3708 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3709 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3711 CC="$ac_save_CC $ac_arg"
3712 if ac_fn_c_try_compile "$LINENO"; then :
3713 ac_cv_prog_cc_c89=$ac_arg
3715 rm -f core conftest.err conftest.$ac_objext
3716 test "x$ac_cv_prog_cc_c89" != "xno" && break
3717 done
3718 rm -f conftest.$ac_ext
3719 CC=$ac_save_CC
3722 # AC_CACHE_VAL
3723 case "x$ac_cv_prog_cc_c89" in
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3726 $as_echo "none needed" >&6; } ;;
3727 xno)
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3729 $as_echo "unsupported" >&6; } ;;
3731 CC="$CC $ac_cv_prog_cc_c89"
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3733 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3734 esac
3735 if test "x$ac_cv_prog_cc_c89" != xno; then :
3739 ac_ext=c
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 ac_ext=cpp
3746 ac_cpp='$CXXCPP $CPPFLAGS'
3747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3750 if test -z "$CXX"; then
3751 if test -n "$CCC"; then
3752 CXX=$CCC
3753 else
3754 if test -n "$ac_tool_prefix"; then
3755 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if ${ac_cv_prog_CXX+:} false; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 if test -n "$CXX"; then
3765 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3766 else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in $PATH
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3778 done
3779 done
3780 IFS=$as_save_IFS
3784 CXX=$ac_cv_prog_CXX
3785 if test -n "$CXX"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3787 $as_echo "$CXX" >&6; }
3788 else
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3794 test -n "$CXX" && break
3795 done
3797 if test -z "$CXX"; then
3798 ac_ct_CXX=$CXX
3799 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3801 # Extract the first word of "$ac_prog", so it can be a program name with args.
3802 set dummy $ac_prog; ac_word=$2
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3806 $as_echo_n "(cached) " >&6
3807 else
3808 if test -n "$ac_ct_CXX"; then
3809 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3810 else
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 for as_dir in $PATH
3814 IFS=$as_save_IFS
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818 ac_cv_prog_ac_ct_CXX="$ac_prog"
3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 break 2
3822 done
3823 done
3824 IFS=$as_save_IFS
3828 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3829 if test -n "$ac_ct_CXX"; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3831 $as_echo "$ac_ct_CXX" >&6; }
3832 else
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 $as_echo "no" >&6; }
3838 test -n "$ac_ct_CXX" && break
3839 done
3841 if test "x$ac_ct_CXX" = x; then
3842 CXX="g++"
3843 else
3844 case $cross_compiling:$ac_tool_warned in
3845 yes:)
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3848 ac_tool_warned=yes ;;
3849 esac
3850 CXX=$ac_ct_CXX
3856 # Provide some information about the compiler.
3857 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3858 set X $ac_compile
3859 ac_compiler=$2
3860 for ac_option in --version -v -V -qversion; do
3861 { { ac_try="$ac_compiler $ac_option >&5"
3862 case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865 esac
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3869 ac_status=$?
3870 if test -s conftest.err; then
3871 sed '10a\
3872 ... rest of stderr output deleted ...
3873 10q' conftest.err >conftest.er1
3874 cat conftest.er1 >&5
3876 rm -f conftest.er1 conftest.err
3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }
3879 done
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3882 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3883 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3890 main ()
3892 #ifndef __GNUC__
3893 choke me
3894 #endif
3897 return 0;
3899 _ACEOF
3900 if ac_fn_cxx_try_compile "$LINENO"; then :
3901 ac_compiler_gnu=yes
3902 else
3903 ac_compiler_gnu=no
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3910 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3911 if test $ac_compiler_gnu = yes; then
3912 GXX=yes
3913 else
3914 GXX=
3916 ac_test_CXXFLAGS=${CXXFLAGS+set}
3917 ac_save_CXXFLAGS=$CXXFLAGS
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3919 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3920 if ${ac_cv_prog_cxx_g+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3924 ac_cxx_werror_flag=yes
3925 ac_cv_prog_cxx_g=no
3926 CXXFLAGS="-g"
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3931 main ()
3935 return 0;
3937 _ACEOF
3938 if ac_fn_cxx_try_compile "$LINENO"; then :
3939 ac_cv_prog_cxx_g=yes
3940 else
3941 CXXFLAGS=""
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3946 main ()
3950 return 0;
3952 _ACEOF
3953 if ac_fn_cxx_try_compile "$LINENO"; then :
3955 else
3956 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3957 CXXFLAGS="-g"
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3962 main ()
3966 return 0;
3968 _ACEOF
3969 if ac_fn_cxx_try_compile "$LINENO"; then :
3970 ac_cv_prog_cxx_g=yes
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3980 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3981 if test "$ac_test_CXXFLAGS" = set; then
3982 CXXFLAGS=$ac_save_CXXFLAGS
3983 elif test $ac_cv_prog_cxx_g = yes; then
3984 if test "$GXX" = yes; then
3985 CXXFLAGS="-g -O2"
3986 else
3987 CXXFLAGS="-g"
3989 else
3990 if test "$GXX" = yes; then
3991 CXXFLAGS="-O2"
3992 else
3993 CXXFLAGS=
3996 ac_ext=c
3997 ac_cpp='$CPP $CPPFLAGS'
3998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4002 if test -n "$ac_tool_prefix"; then
4003 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4004 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_CPPBIN+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 if test -n "$CPPBIN"; then
4011 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
4024 done
4025 done
4026 IFS=$as_save_IFS
4030 CPPBIN=$ac_cv_prog_CPPBIN
4031 if test -n "$CPPBIN"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4033 $as_echo "$CPPBIN" >&6; }
4034 else
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4041 if test -z "$ac_cv_prog_CPPBIN"; then
4042 ac_ct_CPPBIN=$CPPBIN
4043 # Extract the first word of "cpp", so it can be a program name with args.
4044 set dummy cpp; ac_word=$2
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046 $as_echo_n "checking for $ac_word... " >&6; }
4047 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 if test -n "$ac_ct_CPPBIN"; then
4051 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4052 else
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_prog_ac_ct_CPPBIN="cpp"
4061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4062 break 2
4064 done
4065 done
4066 IFS=$as_save_IFS
4070 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4071 if test -n "$ac_ct_CPPBIN"; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4073 $as_echo "$ac_ct_CPPBIN" >&6; }
4074 else
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 $as_echo "no" >&6; }
4079 if test "x$ac_ct_CPPBIN" = x; then
4080 CPPBIN="cpp"
4081 else
4082 case $cross_compiling:$ac_tool_warned in
4083 yes:)
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4086 ac_tool_warned=yes ;;
4087 esac
4088 CPPBIN=$ac_ct_CPPBIN
4090 else
4091 CPPBIN="$ac_cv_prog_CPPBIN"
4095 cat >>confdefs.h <<_ACEOF
4096 #define EXEEXT "$ac_exeext"
4097 _ACEOF
4100 case $host in
4101 *-darwin*)
4102 if test "x$enable_win64" = "xyes"
4103 then
4104 CC="$CC -m64"
4105 CXX="$CXX -m64"
4106 host_cpu="x86_64"
4107 notice_platform="64-bit "
4108 TARGETFLAGS="-m64"
4110 else
4111 CC="$CC -m32"
4112 CXX="$CXX -m32"
4113 host_cpu="i386"
4114 notice_platform="32-bit "
4115 TARGETFLAGS="-m32"
4117 enable_win16=${enable_win16:-yes}
4119 with_fontconfig=${with_fontconfig:-no}
4121 x86_64*)
4122 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4123 then
4124 CC="$CC -m32"
4125 CXX="$CXX -m32"
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4127 $as_echo_n "checking whether $CC works... " >&6; }
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4133 main ()
4137 return 0;
4139 _ACEOF
4140 if ac_fn_c_try_link "$LINENO"; then :
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4142 $as_echo "yes" >&6; }
4143 else
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4146 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4148 rm -f core conftest.err conftest.$ac_objext \
4149 conftest$ac_exeext conftest.$ac_ext
4150 host_cpu="i386"
4151 notice_platform="32-bit "
4152 TARGETFLAGS="-m32"
4154 enable_win16=${enable_win16:-yes}
4155 else
4156 if test "x${GCC}" = "xyes"
4157 then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4159 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162 #include <stdarg.h>
4164 main ()
4166 void func(__builtin_ms_va_list *args);
4168 return 0;
4170 _ACEOF
4171 if ac_fn_c_try_compile "$LINENO"; then :
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4173 $as_echo "yes" >&6; }
4174 else
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4177 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 TARGETFLAGS="-m64"
4185 arm*)
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4187 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4190 int ac_test(int i) { return i; }
4192 main ()
4194 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4196 return 0;
4198 _ACEOF
4199 if ac_fn_c_try_link "$LINENO"; then :
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4201 $as_echo "yes" >&6; }
4202 else
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4205 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4207 rm -f core conftest.err conftest.$ac_objext \
4208 conftest$ac_exeext conftest.$ac_ext
4209 CFLAGS="$CFLAGS -marm"
4211 *-mingw32*|*-cygwin*)
4212 enable_win16=${enable_win16:-no}
4213 CFLAGS="$CFLAGS -D_WIN32"
4215 i[3456789]86*)
4216 enable_win16=${enable_win16:-yes}
4218 esac
4220 enable_win16=${enable_win16:-no}
4221 enable_win64=${enable_win64:-no}
4223 enable_winetest=${enable_winetest:-$enable_tests}
4225 if test -n "$with_wine64"
4226 then
4227 if test "x$enable_win64" = "xyes"
4228 then
4229 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4230 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4232 WOW64_DISABLE=\#
4234 enable_fonts=${enable_fonts:-no}
4235 enable_server=${enable_server:-no}
4236 enable_tools=${enable_tools:-no}
4237 elif test "x$enable_win64" = "xyes"
4238 then
4239 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4243 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4244 if ${wine_cv_toolsdir+:} false; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 wine_cv_toolsdir="$with_wine_tools"
4248 if test -z "$with_wine_tools"; then
4249 if test "$cross_compiling" = "yes"; then
4250 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4251 elif test -n "$with_wine64"; then
4252 wine_cv_toolsdir="$with_wine64"
4255 if test -z "$wine_cv_toolsdir"; then
4256 wine_cv_toolsdir="\$(top_builddir)"
4257 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4258 case "$wine_cv_toolsdir" in
4259 /*) ;;
4260 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4261 esac
4262 else
4263 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4267 $as_echo "$wine_cv_toolsdir" >&6; }
4268 TOOLSDIR=$wine_cv_toolsdir
4270 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4271 then
4272 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4276 for ac_prog in flex
4278 # Extract the first word of "$ac_prog", so it can be a program name with args.
4279 set dummy $ac_prog; ac_word=$2
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281 $as_echo_n "checking for $ac_word... " >&6; }
4282 if ${ac_cv_prog_FLEX+:} false; then :
4283 $as_echo_n "(cached) " >&6
4284 else
4285 if test -n "$FLEX"; then
4286 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_FLEX="$ac_prog"
4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4299 done
4300 done
4301 IFS=$as_save_IFS
4305 FLEX=$ac_cv_prog_FLEX
4306 if test -n "$FLEX"; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4308 $as_echo "$FLEX" >&6; }
4309 else
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4315 test -n "$FLEX" && break
4316 done
4317 test -n "$FLEX" || FLEX="none"
4319 if test "$FLEX" = "none"
4320 then
4321 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4324 $as_echo_n "checking whether flex is recent enough... " >&6; }
4325 cat >conftest.l <<EOF
4326 %top{
4327 #include "prediluvian.h"
4331 if $FLEX -t conftest.l >/dev/null 2>&5
4332 then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4334 $as_echo "yes" >&6; }
4335 else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4338 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4341 for ac_prog in bison
4343 # Extract the first word of "$ac_prog", so it can be a program name with args.
4344 set dummy $ac_prog; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_prog_BISON+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -n "$BISON"; then
4351 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4360 ac_cv_prog_BISON="$ac_prog"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4364 done
4365 done
4366 IFS=$as_save_IFS
4370 BISON=$ac_cv_prog_BISON
4371 if test -n "$BISON"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4373 $as_echo "$BISON" >&6; }
4374 else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4380 test -n "$BISON" && break
4381 done
4382 test -n "$BISON" || BISON="none"
4384 if test "$BISON" = "none"
4385 then
4386 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4389 if test -n "$ac_tool_prefix"; then
4390 for ac_prog in ar gar
4392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395 $as_echo_n "checking for $ac_word... " >&6; }
4396 if ${ac_cv_prog_AR+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 if test -n "$AR"; then
4400 ac_cv_prog_AR="$AR" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4409 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4413 done
4414 done
4415 IFS=$as_save_IFS
4419 AR=$ac_cv_prog_AR
4420 if test -n "$AR"; then
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4422 $as_echo "$AR" >&6; }
4423 else
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4429 test -n "$AR" && break
4430 done
4432 if test -z "$AR"; then
4433 ac_ct_AR=$AR
4434 for ac_prog in ar gar
4436 # Extract the first word of "$ac_prog", so it can be a program name with args.
4437 set dummy $ac_prog; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 if test -n "$ac_ct_AR"; then
4444 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453 ac_cv_prog_ac_ct_AR="$ac_prog"
4454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4457 done
4458 done
4459 IFS=$as_save_IFS
4463 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4464 if test -n "$ac_ct_AR"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4466 $as_echo "$ac_ct_AR" >&6; }
4467 else
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4469 $as_echo "no" >&6; }
4473 test -n "$ac_ct_AR" && break
4474 done
4476 if test "x$ac_ct_AR" = x; then
4477 AR="ar"
4478 else
4479 case $cross_compiling:$ac_tool_warned in
4480 yes:)
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4483 ac_tool_warned=yes ;;
4484 esac
4485 AR=$ac_ct_AR
4489 ARFLAGS=rc
4491 if test -n "$ac_tool_prefix"; then
4492 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4493 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 $as_echo_n "checking for $ac_word... " >&6; }
4496 if ${ac_cv_prog_RANLIB+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 if test -n "$RANLIB"; then
4500 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4509 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4513 done
4514 done
4515 IFS=$as_save_IFS
4519 RANLIB=$ac_cv_prog_RANLIB
4520 if test -n "$RANLIB"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4522 $as_echo "$RANLIB" >&6; }
4523 else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4530 if test -z "$ac_cv_prog_RANLIB"; then
4531 ac_ct_RANLIB=$RANLIB
4532 # Extract the first word of "ranlib", so it can be a program name with args.
4533 set dummy ranlib; ac_word=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 if test -n "$ac_ct_RANLIB"; then
4540 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4541 else
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543 for as_dir in $PATH
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 ac_cv_prog_ac_ct_RANLIB="ranlib"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4553 done
4554 done
4555 IFS=$as_save_IFS
4559 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4560 if test -n "$ac_ct_RANLIB"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4562 $as_echo "$ac_ct_RANLIB" >&6; }
4563 else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4568 if test "x$ac_ct_RANLIB" = x; then
4569 RANLIB=":"
4570 else
4571 case $cross_compiling:$ac_tool_warned in
4572 yes:)
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4575 ac_tool_warned=yes ;;
4576 esac
4577 RANLIB=$ac_ct_RANLIB
4579 else
4580 RANLIB="$ac_cv_prog_RANLIB"
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4584 $as_echo_n "checking whether ln -s works... " >&6; }
4585 LN_S=$as_ln_s
4586 if test "$LN_S" = "ln -s"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4588 $as_echo "yes" >&6; }
4589 else
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4591 $as_echo "no, using $LN_S" >&6; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4595 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4596 if ${ac_cv_path_GREP+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if test -z "$GREP"; then
4600 ac_path_GREP_found=false
4601 # Loop through the user's path and test for each of PROGNAME-LIST
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_prog in grep ggrep; do
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4610 as_fn_executable_p "$ac_path_GREP" || continue
4611 # Check for GNU ac_path_GREP and select it if it is found.
4612 # Check for GNU $ac_path_GREP
4613 case `"$ac_path_GREP" --version 2>&1` in
4614 *GNU*)
4615 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4617 ac_count=0
4618 $as_echo_n 0123456789 >"conftest.in"
4619 while :
4621 cat "conftest.in" "conftest.in" >"conftest.tmp"
4622 mv "conftest.tmp" "conftest.in"
4623 cp "conftest.in" "conftest.nl"
4624 $as_echo 'GREP' >> "conftest.nl"
4625 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4626 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4627 as_fn_arith $ac_count + 1 && ac_count=$as_val
4628 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4629 # Best one so far, save it but keep looking for a better one
4630 ac_cv_path_GREP="$ac_path_GREP"
4631 ac_path_GREP_max=$ac_count
4633 # 10*(2^10) chars as input seems more than enough
4634 test $ac_count -gt 10 && break
4635 done
4636 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4637 esac
4639 $ac_path_GREP_found && break 3
4640 done
4641 done
4642 done
4643 IFS=$as_save_IFS
4644 if test -z "$ac_cv_path_GREP"; then
4645 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4647 else
4648 ac_cv_path_GREP=$GREP
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4653 $as_echo "$ac_cv_path_GREP" >&6; }
4654 GREP="$ac_cv_path_GREP"
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4658 $as_echo_n "checking for egrep... " >&6; }
4659 if ${ac_cv_path_EGREP+:} false; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4663 then ac_cv_path_EGREP="$GREP -E"
4664 else
4665 if test -z "$EGREP"; then
4666 ac_path_EGREP_found=false
4667 # Loop through the user's path and test for each of PROGNAME-LIST
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_prog in egrep; do
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4676 as_fn_executable_p "$ac_path_EGREP" || continue
4677 # Check for GNU ac_path_EGREP and select it if it is found.
4678 # Check for GNU $ac_path_EGREP
4679 case `"$ac_path_EGREP" --version 2>&1` in
4680 *GNU*)
4681 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4683 ac_count=0
4684 $as_echo_n 0123456789 >"conftest.in"
4685 while :
4687 cat "conftest.in" "conftest.in" >"conftest.tmp"
4688 mv "conftest.tmp" "conftest.in"
4689 cp "conftest.in" "conftest.nl"
4690 $as_echo 'EGREP' >> "conftest.nl"
4691 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4693 as_fn_arith $ac_count + 1 && ac_count=$as_val
4694 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4695 # Best one so far, save it but keep looking for a better one
4696 ac_cv_path_EGREP="$ac_path_EGREP"
4697 ac_path_EGREP_max=$ac_count
4699 # 10*(2^10) chars as input seems more than enough
4700 test $ac_count -gt 10 && break
4701 done
4702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4703 esac
4705 $ac_path_EGREP_found && break 3
4706 done
4707 done
4708 done
4709 IFS=$as_save_IFS
4710 if test -z "$ac_cv_path_EGREP"; then
4711 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4713 else
4714 ac_cv_path_EGREP=$EGREP
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4720 $as_echo "$ac_cv_path_EGREP" >&6; }
4721 EGREP="$ac_cv_path_EGREP"
4724 # Extract the first word of "ldconfig", so it can be a program name with args.
4725 set dummy ldconfig; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if ${ac_cv_path_LDCONFIG+:} false; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 case $LDCONFIG in
4732 [\\/]* | ?:[\\/]*)
4733 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in /sbin /usr/sbin $PATH
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4747 done
4748 done
4749 IFS=$as_save_IFS
4751 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4753 esac
4755 LDCONFIG=$ac_cv_path_LDCONFIG
4756 if test -n "$LDCONFIG"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4758 $as_echo "$LDCONFIG" >&6; }
4759 else
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4761 $as_echo "no" >&6; }
4765 # Find a good install program. We prefer a C program (faster),
4766 # so one script is as good as another. But avoid the broken or
4767 # incompatible versions:
4768 # SysV /etc/install, /usr/sbin/install
4769 # SunOS /usr/etc/install
4770 # IRIX /sbin/install
4771 # AIX /bin/install
4772 # AmigaOS /C/install, which installs bootblocks on floppy discs
4773 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4774 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4775 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4776 # OS/2's system install, which has a completely different semantic
4777 # ./install, which can be erroneously created by make from ./install.sh.
4778 # Reject install programs that cannot install multiple files.
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4780 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4781 if test -z "$INSTALL"; then
4782 if ${ac_cv_path_install+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 # Account for people who put trailing slashes in PATH elements.
4791 case $as_dir/ in #((
4792 ./ | .// | /[cC]/* | \
4793 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4794 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4795 /usr/ucb/* ) ;;
4797 # OSF1 and SCO ODT 3.0 have their own names for install.
4798 # Don't use installbsd from OSF since it installs stuff as root
4799 # by default.
4800 for ac_prog in ginstall scoinst install; do
4801 for ac_exec_ext in '' $ac_executable_extensions; do
4802 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4803 if test $ac_prog = install &&
4804 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4805 # AIX install. It has an incompatible calling convention.
4807 elif test $ac_prog = install &&
4808 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4809 # program-specific install script used by HP pwplus--don't use.
4811 else
4812 rm -rf conftest.one conftest.two conftest.dir
4813 echo one > conftest.one
4814 echo two > conftest.two
4815 mkdir conftest.dir
4816 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4817 test -s conftest.one && test -s conftest.two &&
4818 test -s conftest.dir/conftest.one &&
4819 test -s conftest.dir/conftest.two
4820 then
4821 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4822 break 3
4826 done
4827 done
4829 esac
4831 done
4832 IFS=$as_save_IFS
4834 rm -rf conftest.one conftest.two conftest.dir
4837 if test "${ac_cv_path_install+set}" = set; then
4838 INSTALL=$ac_cv_path_install
4839 else
4840 # As a last resort, use the slow shell script. Don't cache a
4841 # value for INSTALL within a source directory, because that will
4842 # break other packages using the cache if that directory is
4843 # removed, or if the value is a relative name.
4844 INSTALL=$ac_install_sh
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4848 $as_echo "$INSTALL" >&6; }
4850 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4851 # It thinks the first close brace ends the variable substitution.
4852 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4854 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4856 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4858 case "$INSTALL" in
4859 [\\/$]* | ?:[\\/]* ) ;;
4860 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4861 esac
4863 for ac_prog in lclint lint
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_LINT+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 if test -n "$LINT"; then
4873 ac_cv_prog_LINT="$LINT" # 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_LINT="$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 LINT=$ac_cv_prog_LINT
4893 if test -n "$LINT"; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4895 $as_echo "$LINT" >&6; }
4896 else
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4902 test -n "$LINT" && break
4903 done
4905 if test "$LINT" = "lint"
4906 then
4907 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4911 for ac_prog in fontforge
4913 # Extract the first word of "$ac_prog", so it can be a program name with args.
4914 set dummy $ac_prog; ac_word=$2
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4916 $as_echo_n "checking for $ac_word... " >&6; }
4917 if ${ac_cv_prog_FONTFORGE+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 if test -n "$FONTFORGE"; then
4921 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4930 ac_cv_prog_FONTFORGE="$ac_prog"
4931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 break 2
4934 done
4935 done
4936 IFS=$as_save_IFS
4940 FONTFORGE=$ac_cv_prog_FONTFORGE
4941 if test -n "$FONTFORGE"; then
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4943 $as_echo "$FONTFORGE" >&6; }
4944 else
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 $as_echo "no" >&6; }
4950 test -n "$FONTFORGE" && break
4951 done
4952 test -n "$FONTFORGE" || FONTFORGE="false"
4954 for ac_prog in rsvg
4956 # Extract the first word of "$ac_prog", so it can be a program name with args.
4957 set dummy $ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_RSVG+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 if test -n "$RSVG"; then
4964 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_RSVG="$ac_prog"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4977 done
4978 done
4979 IFS=$as_save_IFS
4983 RSVG=$ac_cv_prog_RSVG
4984 if test -n "$RSVG"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4986 $as_echo "$RSVG" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4993 test -n "$RSVG" && break
4994 done
4995 test -n "$RSVG" || RSVG="false"
4997 for ac_prog in convert
4999 # Extract the first word of "$ac_prog", so it can be a program name with args.
5000 set dummy $ac_prog; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_prog_CONVERT+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -n "$CONVERT"; then
5007 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016 ac_cv_prog_CONVERT="$ac_prog"
5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5020 done
5021 done
5022 IFS=$as_save_IFS
5026 CONVERT=$ac_cv_prog_CONVERT
5027 if test -n "$CONVERT"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5029 $as_echo "$CONVERT" >&6; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5036 test -n "$CONVERT" && break
5037 done
5038 test -n "$CONVERT" || CONVERT="false"
5040 for ac_prog in icotool
5042 # Extract the first word of "$ac_prog", so it can be a program name with args.
5043 set dummy $ac_prog; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_prog_ICOTOOL+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$ICOTOOL"; then
5050 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059 ac_cv_prog_ICOTOOL="$ac_prog"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5063 done
5064 done
5065 IFS=$as_save_IFS
5069 ICOTOOL=$ac_cv_prog_ICOTOOL
5070 if test -n "$ICOTOOL"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5072 $as_echo "$ICOTOOL" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5079 test -n "$ICOTOOL" && break
5080 done
5081 test -n "$ICOTOOL" || ICOTOOL="false"
5083 for ac_prog in msgfmt
5085 # Extract the first word of "$ac_prog", so it can be a program name with args.
5086 set dummy $ac_prog; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_MSGFMT+:} false; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$MSGFMT"; then
5093 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_MSGFMT="$ac_prog"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5106 done
5107 done
5108 IFS=$as_save_IFS
5112 MSGFMT=$ac_cv_prog_MSGFMT
5113 if test -n "$MSGFMT"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5115 $as_echo "$MSGFMT" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 test -n "$MSGFMT" && break
5123 done
5124 test -n "$MSGFMT" || MSGFMT="false"
5127 if test "x$enable_maintainer_mode" != "xyes"
5128 then
5129 MAINTAINER_MODE=\#
5131 else
5132 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5133 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5135 if test "$CONVERT" = false
5136 then
5137 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5138 else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5140 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5141 convert_version=`convert --version | head -n1`
5142 if test "x$convert_version" != "x"
5143 then
5144 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5145 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5146 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5147 then
5148 CONVERT=false
5151 if test "$CONVERT" = false
5152 then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5154 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5155 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5156 else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5158 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5162 if test "$ICOTOOL" = false
5163 then
5164 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5165 else
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5167 $as_echo_n "checking for recent enough icotool... " >&6; }
5168 icotool_version=`icotool --version | head -n1`
5169 if test "x$icotool_version" != "x"
5170 then
5171 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5172 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5173 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5174 then
5175 ICOTOOL=false
5176 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5179 if test "$ICOTOOL" = false
5180 then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5182 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5183 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5184 else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5186 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5190 with_gettext=yes
5191 with_gettextpo=yes
5192 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5195 test "x$with_gettext" != xno || MSGFMT=false
5196 if test "$MSGFMT" != "false"
5197 then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5199 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5200 cat >conftest.po <<EOF
5201 # comment
5202 msgctxt "ctxt"
5203 msgid "id"
5204 msgstr "str"
5206 if $MSGFMT -o /dev/null conftest.po 2>&5
5207 then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5209 $as_echo "yes" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 MSGFMT=false
5216 if test "$MSGFMT" = false; then :
5217 case "x$with_gettext" in
5218 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5219 xno) ;;
5220 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5221 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5222 esac
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5227 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5228 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 ac_check_lib_save_LIBS=$LIBS
5232 LIBS="-li386 $LIBS"
5233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234 /* end confdefs.h. */
5236 /* Override any GCC internal prototype to avoid an error.
5237 Use char because int might match the return type of a GCC
5238 builtin and then its argument prototype would still apply. */
5239 #ifdef __cplusplus
5240 extern "C"
5241 #endif
5242 char i386_set_ldt ();
5244 main ()
5246 return i386_set_ldt ();
5248 return 0;
5250 _ACEOF
5251 if ac_fn_c_try_link "$LINENO"; then :
5252 ac_cv_lib_i386_i386_set_ldt=yes
5253 else
5254 ac_cv_lib_i386_i386_set_ldt=no
5256 rm -f core conftest.err conftest.$ac_objext \
5257 conftest$ac_exeext conftest.$ac_ext
5258 LIBS=$ac_check_lib_save_LIBS
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5261 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5262 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5263 cat >>confdefs.h <<_ACEOF
5264 #define HAVE_LIBI386 1
5265 _ACEOF
5267 LIBS="-li386 $LIBS"
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5272 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5273 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 ac_check_lib_save_LIBS=$LIBS
5277 LIBS="-lossaudio $LIBS"
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5281 /* Override any GCC internal prototype to avoid an error.
5282 Use char because int might match the return type of a GCC
5283 builtin and then its argument prototype would still apply. */
5284 #ifdef __cplusplus
5285 extern "C"
5286 #endif
5287 char _oss_ioctl ();
5289 main ()
5291 return _oss_ioctl ();
5293 return 0;
5295 _ACEOF
5296 if ac_fn_c_try_link "$LINENO"; then :
5297 ac_cv_lib_ossaudio__oss_ioctl=yes
5298 else
5299 ac_cv_lib_ossaudio__oss_ioctl=no
5301 rm -f core conftest.err conftest.$ac_objext \
5302 conftest$ac_exeext conftest.$ac_ext
5303 LIBS=$ac_check_lib_save_LIBS
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5306 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5307 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5308 cat >>confdefs.h <<_ACEOF
5309 #define HAVE_LIBOSSAUDIO 1
5310 _ACEOF
5312 LIBS="-lossaudio $LIBS"
5317 XLIB=""
5319 OPENGL_LIBS=""
5323 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5325 # Check whether --enable-largefile was given.
5326 if test "${enable_largefile+set}" = set; then :
5327 enableval=$enable_largefile;
5330 if test "$enable_largefile" != no; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5333 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5334 if ${ac_cv_sys_largefile_CC+:} false; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 ac_cv_sys_largefile_CC=no
5338 if test "$GCC" != yes; then
5339 ac_save_CC=$CC
5340 while :; do
5341 # IRIX 6.2 and later do not support large files by default,
5342 # so use the C compiler's -n32 option if that helps.
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345 #include <sys/types.h>
5346 /* Check that off_t can represent 2**63 - 1 correctly.
5347 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5348 since some C++ compilers masquerading as C compilers
5349 incorrectly reject 9223372036854775807. */
5350 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5351 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5352 && LARGE_OFF_T % 2147483647 == 1)
5353 ? 1 : -1];
5355 main ()
5359 return 0;
5361 _ACEOF
5362 if ac_fn_c_try_compile "$LINENO"; then :
5363 break
5365 rm -f core conftest.err conftest.$ac_objext
5366 CC="$CC -n32"
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368 ac_cv_sys_largefile_CC=' -n32'; break
5370 rm -f core conftest.err conftest.$ac_objext
5371 break
5372 done
5373 CC=$ac_save_CC
5374 rm -f conftest.$ac_ext
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5378 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5379 if test "$ac_cv_sys_largefile_CC" != no; then
5380 CC=$CC$ac_cv_sys_largefile_CC
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5384 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5385 if ${ac_cv_sys_file_offset_bits+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 while :; do
5389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 #include <sys/types.h>
5392 /* Check that off_t can represent 2**63 - 1 correctly.
5393 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5394 since some C++ compilers masquerading as C compilers
5395 incorrectly reject 9223372036854775807. */
5396 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5397 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5398 && LARGE_OFF_T % 2147483647 == 1)
5399 ? 1 : -1];
5401 main ()
5405 return 0;
5407 _ACEOF
5408 if ac_fn_c_try_compile "$LINENO"; then :
5409 ac_cv_sys_file_offset_bits=no; break
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414 #define _FILE_OFFSET_BITS 64
5415 #include <sys/types.h>
5416 /* Check that off_t can represent 2**63 - 1 correctly.
5417 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5418 since some C++ compilers masquerading as C compilers
5419 incorrectly reject 9223372036854775807. */
5420 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5421 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5422 && LARGE_OFF_T % 2147483647 == 1)
5423 ? 1 : -1];
5425 main ()
5429 return 0;
5431 _ACEOF
5432 if ac_fn_c_try_compile "$LINENO"; then :
5433 ac_cv_sys_file_offset_bits=64; break
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436 ac_cv_sys_file_offset_bits=unknown
5437 break
5438 done
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5441 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5442 case $ac_cv_sys_file_offset_bits in #(
5443 no | unknown) ;;
5445 cat >>confdefs.h <<_ACEOF
5446 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5447 _ACEOF
5449 esac
5450 rm -rf conftest*
5451 if test $ac_cv_sys_file_offset_bits = unknown; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5453 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5454 if ${ac_cv_sys_large_files+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 while :; do
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 #include <sys/types.h>
5461 /* Check that off_t can represent 2**63 - 1 correctly.
5462 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5463 since some C++ compilers masquerading as C compilers
5464 incorrectly reject 9223372036854775807. */
5465 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5466 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5467 && LARGE_OFF_T % 2147483647 == 1)
5468 ? 1 : -1];
5470 main ()
5474 return 0;
5476 _ACEOF
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478 ac_cv_sys_large_files=no; break
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5483 #define _LARGE_FILES 1
5484 #include <sys/types.h>
5485 /* Check that off_t can represent 2**63 - 1 correctly.
5486 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5487 since some C++ compilers masquerading as C compilers
5488 incorrectly reject 9223372036854775807. */
5489 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5490 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5491 && LARGE_OFF_T % 2147483647 == 1)
5492 ? 1 : -1];
5494 main ()
5498 return 0;
5500 _ACEOF
5501 if ac_fn_c_try_compile "$LINENO"; then :
5502 ac_cv_sys_large_files=1; break
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 ac_cv_sys_large_files=unknown
5506 break
5507 done
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5510 $as_echo "$ac_cv_sys_large_files" >&6; }
5511 case $ac_cv_sys_large_files in #(
5512 no | unknown) ;;
5514 cat >>confdefs.h <<_ACEOF
5515 #define _LARGE_FILES $ac_cv_sys_large_files
5516 _ACEOF
5518 esac
5519 rm -rf conftest*
5526 ac_ext=c
5527 ac_cpp='$CPP $CPPFLAGS'
5528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5532 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5533 # On Suns, sometimes $CPP names a directory.
5534 if test -n "$CPP" && test -d "$CPP"; then
5535 CPP=
5537 if test -z "$CPP"; then
5538 if ${ac_cv_prog_CPP+:} false; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 # Double quotes because CPP needs to be expanded
5542 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5544 ac_preproc_ok=false
5545 for ac_c_preproc_warn_flag in '' yes
5547 # Use a header file that comes with gcc, so configuring glibc
5548 # with a fresh cross-compiler works.
5549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5550 # <limits.h> exists even on freestanding compilers.
5551 # On the NeXT, cc -E runs the code through the compiler's parser,
5552 # not just through cpp. "Syntax error" is here to catch this case.
5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h. */
5555 #ifdef __STDC__
5556 # include <limits.h>
5557 #else
5558 # include <assert.h>
5559 #endif
5560 Syntax error
5561 _ACEOF
5562 if ac_fn_c_try_cpp "$LINENO"; then :
5564 else
5565 # Broken: fails on valid input.
5566 continue
5568 rm -f conftest.err conftest.i conftest.$ac_ext
5570 # OK, works on sane cases. Now check whether nonexistent headers
5571 # can be detected and how.
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #include <ac_nonexistent.h>
5575 _ACEOF
5576 if ac_fn_c_try_cpp "$LINENO"; then :
5577 # Broken: success on invalid input.
5578 continue
5579 else
5580 # Passes both tests.
5581 ac_preproc_ok=:
5582 break
5584 rm -f conftest.err conftest.i conftest.$ac_ext
5586 done
5587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5588 rm -f conftest.i conftest.err conftest.$ac_ext
5589 if $ac_preproc_ok; then :
5590 break
5593 done
5594 ac_cv_prog_CPP=$CPP
5597 CPP=$ac_cv_prog_CPP
5598 else
5599 ac_cv_prog_CPP=$CPP
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5602 $as_echo "$CPP" >&6; }
5603 ac_preproc_ok=false
5604 for ac_c_preproc_warn_flag in '' yes
5606 # Use a header file that comes with gcc, so configuring glibc
5607 # with a fresh cross-compiler works.
5608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5609 # <limits.h> exists even on freestanding compilers.
5610 # On the NeXT, cc -E runs the code through the compiler's parser,
5611 # not just through cpp. "Syntax error" is here to catch this case.
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5614 #ifdef __STDC__
5615 # include <limits.h>
5616 #else
5617 # include <assert.h>
5618 #endif
5619 Syntax error
5620 _ACEOF
5621 if ac_fn_c_try_cpp "$LINENO"; then :
5623 else
5624 # Broken: fails on valid input.
5625 continue
5627 rm -f conftest.err conftest.i conftest.$ac_ext
5629 # OK, works on sane cases. Now check whether nonexistent headers
5630 # can be detected and how.
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 #include <ac_nonexistent.h>
5634 _ACEOF
5635 if ac_fn_c_try_cpp "$LINENO"; then :
5636 # Broken: success on invalid input.
5637 continue
5638 else
5639 # Passes both tests.
5640 ac_preproc_ok=:
5641 break
5643 rm -f conftest.err conftest.i conftest.$ac_ext
5645 done
5646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5647 rm -f conftest.i conftest.err conftest.$ac_ext
5648 if $ac_preproc_ok; then :
5650 else
5651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5653 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5654 See \`config.log' for more details" "$LINENO" 5; }
5657 ac_ext=c
5658 ac_cpp='$CPP $CPPFLAGS'
5659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5665 $as_echo_n "checking for ANSI C header files... " >&6; }
5666 if ${ac_cv_header_stdc+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 #include <stdlib.h>
5672 #include <stdarg.h>
5673 #include <string.h>
5674 #include <float.h>
5677 main ()
5681 return 0;
5683 _ACEOF
5684 if ac_fn_c_try_compile "$LINENO"; then :
5685 ac_cv_header_stdc=yes
5686 else
5687 ac_cv_header_stdc=no
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 if test $ac_cv_header_stdc = yes; then
5692 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5695 #include <string.h>
5697 _ACEOF
5698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5699 $EGREP "memchr" >/dev/null 2>&1; then :
5701 else
5702 ac_cv_header_stdc=no
5704 rm -f conftest*
5708 if test $ac_cv_header_stdc = yes; then
5709 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712 #include <stdlib.h>
5714 _ACEOF
5715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5716 $EGREP "free" >/dev/null 2>&1; then :
5718 else
5719 ac_cv_header_stdc=no
5721 rm -f conftest*
5725 if test $ac_cv_header_stdc = yes; then
5726 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5727 if test "$cross_compiling" = yes; then :
5729 else
5730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732 #include <ctype.h>
5733 #include <stdlib.h>
5734 #if ((' ' & 0x0FF) == 0x020)
5735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5737 #else
5738 # define ISLOWER(c) \
5739 (('a' <= (c) && (c) <= 'i') \
5740 || ('j' <= (c) && (c) <= 'r') \
5741 || ('s' <= (c) && (c) <= 'z'))
5742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5743 #endif
5745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5747 main ()
5749 int i;
5750 for (i = 0; i < 256; i++)
5751 if (XOR (islower (i), ISLOWER (i))
5752 || toupper (i) != TOUPPER (i))
5753 return 2;
5754 return 0;
5756 _ACEOF
5757 if ac_fn_c_try_run "$LINENO"; then :
5759 else
5760 ac_cv_header_stdc=no
5762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5763 conftest.$ac_objext conftest.beam conftest.$ac_ext
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5769 $as_echo "$ac_cv_header_stdc" >&6; }
5770 if test $ac_cv_header_stdc = yes; then
5772 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5776 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5777 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5778 inttypes.h stdint.h unistd.h
5779 do :
5780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5781 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5783 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5784 cat >>confdefs.h <<_ACEOF
5785 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5786 _ACEOF
5790 done
5793 for ac_header in \
5794 AL/al.h \
5795 ApplicationServices/ApplicationServices.h \
5796 AudioToolbox/AudioConverter.h \
5797 AudioUnit/AudioUnit.h \
5798 AudioUnit/AudioComponent.h \
5799 CL/cl.h \
5800 Carbon/Carbon.h \
5801 CoreAudio/CoreAudio.h \
5802 CoreServices/CoreServices.h \
5803 DiskArbitration/DiskArbitration.h \
5804 IOKit/IOKitLib.h \
5805 IOKit/hid/IOHIDLib.h \
5806 OpenAL/al.h \
5807 OpenCL/opencl.h \
5808 QuickTime/ImageCompression.h \
5809 Security/Security.h \
5810 alias.h \
5811 alsa/asoundlib.h \
5812 arpa/inet.h \
5813 arpa/nameser.h \
5814 asm/types.h \
5815 capi20.h \
5816 curses.h \
5817 direct.h \
5818 dirent.h \
5819 dlfcn.h \
5820 elf.h \
5821 float.h \
5822 fnmatch.h \
5823 fontconfig/fontconfig.h \
5824 getopt.h \
5825 gettext-po.h \
5826 grp.h \
5827 gsm.h \
5828 gsm/gsm.h \
5829 ieeefp.h \
5830 inet/mib2.h \
5831 io.h \
5832 jpeglib.h \
5833 kstat.h \
5834 lber.h \
5835 lcms.h \
5836 lcms/lcms.h \
5837 ldap.h \
5838 link.h \
5839 linux/cdrom.h \
5840 linux/compiler.h \
5841 linux/filter.h \
5842 linux/hdreg.h \
5843 linux/input.h \
5844 linux/ioctl.h \
5845 linux/joystick.h \
5846 linux/major.h \
5847 linux/param.h \
5848 linux/serial.h \
5849 linux/types.h \
5850 linux/ucdrom.h \
5851 lwp.h \
5852 mach-o/nlist.h \
5853 mach-o/loader.h \
5854 mach/mach.h \
5855 mach/machine.h \
5856 machine/cpu.h \
5857 machine/limits.h \
5858 machine/sysarch.h \
5859 mntent.h \
5860 mpg123.h \
5861 ncurses.h \
5862 netdb.h \
5863 netinet/in.h \
5864 netinet/in_systm.h \
5865 netinet/tcp.h \
5866 netinet/tcp_fsm.h \
5867 png.h \
5868 poll.h \
5869 port.h \
5870 process.h \
5871 pthread.h \
5872 pwd.h \
5873 sched.h \
5874 scsi/scsi.h \
5875 scsi/scsi_ioctl.h \
5876 scsi/sg.h \
5877 stdbool.h \
5878 stdint.h \
5879 stropts.h \
5880 sys/asoundlib.h \
5881 sys/attr.h \
5882 sys/cdio.h \
5883 sys/elf32.h \
5884 sys/epoll.h \
5885 sys/event.h \
5886 sys/exec_elf.h \
5887 sys/filio.h \
5888 sys/inotify.h \
5889 sys/ioctl.h \
5890 sys/ipc.h \
5891 sys/limits.h \
5892 sys/link.h \
5893 sys/mman.h \
5894 sys/modem.h \
5895 sys/msg.h \
5896 sys/mtio.h \
5897 sys/param.h \
5898 sys/poll.h \
5899 sys/prctl.h \
5900 sys/protosw.h \
5901 sys/ptrace.h \
5902 sys/resource.h \
5903 sys/scsiio.h \
5904 sys/shm.h \
5905 sys/signal.h \
5906 sys/socket.h \
5907 sys/socketvar.h \
5908 sys/sockio.h \
5909 sys/statvfs.h \
5910 sys/strtio.h \
5911 sys/syscall.h \
5912 sys/tihdr.h \
5913 sys/time.h \
5914 sys/timeout.h \
5915 sys/times.h \
5916 sys/uio.h \
5917 sys/utsname.h \
5918 sys/vm86.h \
5919 sys/wait.h \
5920 syscall.h \
5921 termios.h \
5922 tiffio.h \
5923 unistd.h \
5924 utime.h \
5925 valgrind/memcheck.h \
5926 valgrind/valgrind.h \
5927 zlib.h
5929 do :
5930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5931 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5932 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5933 cat >>confdefs.h <<_ACEOF
5934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5935 _ACEOF
5939 done
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5942 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5943 if ${ac_cv_header_stat_broken+:} false; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5948 #include <sys/types.h>
5949 #include <sys/stat.h>
5951 #if defined S_ISBLK && defined S_IFDIR
5952 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5953 #endif
5955 #if defined S_ISBLK && defined S_IFCHR
5956 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5957 #endif
5959 #if defined S_ISLNK && defined S_IFREG
5960 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5961 #endif
5963 #if defined S_ISSOCK && defined S_IFREG
5964 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5965 #endif
5967 _ACEOF
5968 if ac_fn_c_try_compile "$LINENO"; then :
5969 ac_cv_header_stat_broken=no
5970 else
5971 ac_cv_header_stat_broken=yes
5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5976 $as_echo "$ac_cv_header_stat_broken" >&6; }
5977 if test $ac_cv_header_stat_broken = yes; then
5979 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5985 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5986 do :
5987 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5988 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5989 #ifdef HAVE_SYS_PARAM_H
5990 # include <sys/param.h>
5991 #endif
5993 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5994 cat >>confdefs.h <<_ACEOF
5995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5996 _ACEOF
6000 done
6003 for ac_header in \
6004 netinet/ip.h \
6005 net/if.h \
6006 net/if_arp.h \
6007 net/if_dl.h \
6008 net/if_types.h \
6009 net/route.h \
6010 netinet/if_ether.h \
6011 netinet/if_inarp.h \
6012 netinet/in_pcb.h \
6013 netinet/ip_icmp.h \
6014 netinet/ip_var.h \
6015 netinet/udp.h \
6016 netipx/ipx.h \
6017 sys/un.h \
6019 do :
6020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6021 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6022 #ifdef HAVE_SYS_SOCKET_H
6023 # include <sys/socket.h>
6024 #endif
6025 #ifdef HAVE_SYS_SOCKETVAR_H
6026 # include <sys/socketvar.h>
6027 #endif
6028 #ifdef HAVE_NET_ROUTE_H
6029 # include <net/route.h>
6030 #endif
6031 #ifdef HAVE_NETINET_IN_H
6032 # include <netinet/in.h>
6033 #endif
6034 #ifdef HAVE_NETINET_IN_SYSTM_H
6035 # include <netinet/in_systm.h>
6036 #endif
6037 #ifdef HAVE_NET_IF_H
6038 # include <net/if.h>
6039 #endif
6040 #ifdef HAVE_NETINET_IP_H
6041 # include <netinet/ip.h>
6042 #endif
6044 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6045 cat >>confdefs.h <<_ACEOF
6046 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6047 _ACEOF
6051 done
6054 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6055 do :
6056 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6057 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6058 #ifdef HAVE_ALIAS_H
6059 # include <alias.h>
6060 #endif
6061 #ifdef HAVE_SYS_SOCKET_H
6062 # include <sys/socket.h>
6063 #endif
6064 #ifdef HAVE_SYS_SOCKETVAR_H
6065 # include <sys/socketvar.h>
6066 #endif
6067 #ifdef HAVE_SYS_TIMEOUT_H
6068 # include <sys/timeout.h>
6069 #endif
6070 #ifdef HAVE_NETINET_IN_H
6071 # include <netinet/in.h>
6072 #endif
6073 #ifdef HAVE_NETINET_IN_SYSTM_H
6074 # include <netinet/in_systm.h>
6075 #endif
6076 #ifdef HAVE_NETINET_IP_H
6077 # include <netinet/ip.h>
6078 #endif
6079 #ifdef HAVE_NETINET_IP_VAR_H
6080 # include <netinet/ip_var.h>
6081 #endif
6082 #ifdef HAVE_NETINET_IP_ICMP_H
6083 # include <netinet/ip_icmp.h>
6084 #endif
6085 #ifdef HAVE_NETINET_UDP_H
6086 # include <netinet/udp.h>
6087 #endif
6088 #ifdef HAVE_NETINET_TCP_H
6089 # include <netinet/tcp.h>
6090 #endif
6091 #ifdef HAVE_NETINET_TCP_TIMER_H
6092 #include <netinet/tcp_timer.h>
6093 #endif
6095 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6096 cat >>confdefs.h <<_ACEOF
6097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6098 _ACEOF
6102 done
6105 for ac_header in linux/ipx.h linux/irda.h
6106 do :
6107 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6108 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6109 #ifdef HAVE_ASM_TYPES_H
6110 # include <asm/types.h>
6111 #endif
6112 #ifdef HAVE_SYS_SOCKET_H
6113 # include <sys/socket.h>
6114 #endif
6115 #ifdef HAVE_LINUX_TYPES_H
6116 # include <linux/types.h>
6117 #endif
6119 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6120 cat >>confdefs.h <<_ACEOF
6121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6122 _ACEOF
6126 done
6129 for ac_header in mach-o/dyld_images.h
6130 do :
6131 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6132 # include <stdbool.h>
6133 #endif
6134 #ifdef HAVE_STDINT_H
6135 # include <stdint.h>
6136 #endif
6138 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6139 cat >>confdefs.h <<_ACEOF
6140 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6141 _ACEOF
6145 done
6148 for ac_header in resolv.h
6149 do :
6150 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6151 #ifdef HAVE_SYS_SOCKET_H
6152 # include <sys/socket.h>
6153 #endif
6154 #ifdef HAVE_NETINET_IN_H
6155 # include <netinet/in.h>
6156 #endif
6157 #ifdef HAVE_ARPA_NAMESER_H
6158 # include <arpa/nameser.h>
6159 #endif
6161 if test "x$ac_cv_header_resolv_h" = xyes; then :
6162 cat >>confdefs.h <<_ACEOF
6163 #define HAVE_RESOLV_H 1
6164 _ACEOF
6168 done
6171 for ac_header in ifaddrs.h
6172 do :
6173 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6175 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6176 cat >>confdefs.h <<_ACEOF
6177 #define HAVE_IFADDRS_H 1
6178 _ACEOF
6182 done
6185 for ac_header in ucontext.h
6186 do :
6187 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6189 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6190 cat >>confdefs.h <<_ACEOF
6191 #define HAVE_UCONTEXT_H 1
6192 _ACEOF
6196 done
6199 for ac_header in sys/thr.h
6200 do :
6201 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6202 #ifdef HAVE_UCONTEXT_H
6203 #include <ucontext.h>
6204 #endif
6206 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6207 cat >>confdefs.h <<_ACEOF
6208 #define HAVE_SYS_THR_H 1
6209 _ACEOF
6213 done
6216 for ac_header in pthread_np.h
6217 do :
6218 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6219 #include <pthread.h>
6220 #endif
6222 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6223 cat >>confdefs.h <<_ACEOF
6224 #define HAVE_PTHREAD_NP_H 1
6225 _ACEOF
6229 done
6232 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6233 do :
6234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6235 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6236 #include <sys/time.h>
6237 #endif
6238 #include <sys/types.h>
6239 #ifdef HAVE_ASM_TYPES_H
6240 #include <asm/types.h>
6241 #endif
6243 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6244 cat >>confdefs.h <<_ACEOF
6245 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6246 _ACEOF
6250 done
6253 for ac_header in linux/capi.h
6254 do :
6255 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6257 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6258 cat >>confdefs.h <<_ACEOF
6259 #define HAVE_LINUX_CAPI_H 1
6260 _ACEOF
6264 done
6268 DLLEXT=""
6270 DLLFLAGS="-D_REENTRANT"
6272 LDDLLFLAGS=""
6274 IMPLIBEXT="def"
6276 LDRPATH_INSTALL=""
6278 LDRPATH_LOCAL=""
6280 LIBEXT="so"
6281 STATIC_IMPLIBEXT="def.a"
6282 # Extract the first word of "ldd", so it can be a program name with args.
6283 set dummy ldd; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_path_LDD+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 case $LDD in
6290 [\\/]* | ?:[\\/]*)
6291 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 as_dummy="/sbin:/usr/sbin:$PATH"
6296 for as_dir in $as_dummy
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6302 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6306 done
6307 done
6308 IFS=$as_save_IFS
6310 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6312 esac
6314 LDD=$ac_cv_path_LDD
6315 if test -n "$LDD"; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6317 $as_echo "$LDD" >&6; }
6318 else
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6324 if test -n "$ac_tool_prefix"; then
6325 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6326 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328 $as_echo_n "checking for $ac_word... " >&6; }
6329 if ${ac_cv_prog_READELF+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331 else
6332 if test -n "$READELF"; then
6333 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344 break 2
6346 done
6347 done
6348 IFS=$as_save_IFS
6352 READELF=$ac_cv_prog_READELF
6353 if test -n "$READELF"; then
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6355 $as_echo "$READELF" >&6; }
6356 else
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 $as_echo "no" >&6; }
6363 if test -z "$ac_cv_prog_READELF"; then
6364 ac_ct_READELF=$READELF
6365 # Extract the first word of "readelf", so it can be a program name with args.
6366 set dummy readelf; ac_word=$2
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 $as_echo_n "checking for $ac_word... " >&6; }
6369 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 if test -n "$ac_ct_READELF"; then
6373 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6374 else
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH
6378 IFS=$as_save_IFS
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6382 ac_cv_prog_ac_ct_READELF="readelf"
6383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 break 2
6386 done
6387 done
6388 IFS=$as_save_IFS
6392 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6393 if test -n "$ac_ct_READELF"; then
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6395 $as_echo "$ac_ct_READELF" >&6; }
6396 else
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6398 $as_echo "no" >&6; }
6401 if test "x$ac_ct_READELF" = x; then
6402 READELF="true"
6403 else
6404 case $cross_compiling:$ac_tool_warned in
6405 yes:)
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6408 ac_tool_warned=yes ;;
6409 esac
6410 READELF=$ac_ct_READELF
6412 else
6413 READELF="$ac_cv_prog_READELF"
6417 case $host_os in
6418 cygwin*|mingw32*)
6419 if test -n "$ac_tool_prefix"; then
6420 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6421 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if ${ac_cv_prog_DLLTOOL+:} false; then :
6425 $as_echo_n "(cached) " >&6
6426 else
6427 if test -n "$DLLTOOL"; then
6428 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6433 IFS=$as_save_IFS
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439 break 2
6441 done
6442 done
6443 IFS=$as_save_IFS
6447 DLLTOOL=$ac_cv_prog_DLLTOOL
6448 if test -n "$DLLTOOL"; then
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6450 $as_echo "$DLLTOOL" >&6; }
6451 else
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6458 if test -z "$ac_cv_prog_DLLTOOL"; then
6459 ac_ct_DLLTOOL=$DLLTOOL
6460 # Extract the first word of "dlltool", so it can be a program name with args.
6461 set dummy dlltool; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 if test -n "$ac_ct_DLLTOOL"; then
6468 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6481 done
6482 done
6483 IFS=$as_save_IFS
6487 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6488 if test -n "$ac_ct_DLLTOOL"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6490 $as_echo "$ac_ct_DLLTOOL" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6496 if test "x$ac_ct_DLLTOOL" = x; then
6497 DLLTOOL="false"
6498 else
6499 case $cross_compiling:$ac_tool_warned in
6500 yes:)
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6503 ac_tool_warned=yes ;;
6504 esac
6505 DLLTOOL=$ac_ct_DLLTOOL
6507 else
6508 DLLTOOL="$ac_cv_prog_DLLTOOL"
6511 if test -n "$ac_tool_prefix"; then
6512 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6513 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6515 $as_echo_n "checking for $ac_word... " >&6; }
6516 if ${ac_cv_prog_DLLWRAP+:} false; then :
6517 $as_echo_n "(cached) " >&6
6518 else
6519 if test -n "$DLLWRAP"; then
6520 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6525 IFS=$as_save_IFS
6526 test -z "$as_dir" && as_dir=.
6527 for ac_exec_ext in '' $ac_executable_extensions; do
6528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6529 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6531 break 2
6533 done
6534 done
6535 IFS=$as_save_IFS
6539 DLLWRAP=$ac_cv_prog_DLLWRAP
6540 if test -n "$DLLWRAP"; then
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6542 $as_echo "$DLLWRAP" >&6; }
6543 else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545 $as_echo "no" >&6; }
6550 if test -z "$ac_cv_prog_DLLWRAP"; then
6551 ac_ct_DLLWRAP=$DLLWRAP
6552 # Extract the first word of "dllwrap", so it can be a program name with args.
6553 set dummy dllwrap; ac_word=$2
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6555 $as_echo_n "checking for $ac_word... " >&6; }
6556 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 if test -n "$ac_ct_DLLWRAP"; then
6560 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6561 else
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6565 IFS=$as_save_IFS
6566 test -z "$as_dir" && as_dir=.
6567 for ac_exec_ext in '' $ac_executable_extensions; do
6568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6569 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 break 2
6573 done
6574 done
6575 IFS=$as_save_IFS
6579 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6580 if test -n "$ac_ct_DLLWRAP"; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6582 $as_echo "$ac_ct_DLLWRAP" >&6; }
6583 else
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6585 $as_echo "no" >&6; }
6588 if test "x$ac_ct_DLLWRAP" = x; then
6589 DLLWRAP="false"
6590 else
6591 case $cross_compiling:$ac_tool_warned in
6592 yes:)
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6595 ac_tool_warned=yes ;;
6596 esac
6597 DLLWRAP=$ac_ct_DLLWRAP
6599 else
6600 DLLWRAP="$ac_cv_prog_DLLWRAP"
6603 if test "$DLLWRAP" = "false"; then
6604 as_fn_error $? "dllwrap is needed to build a dll for Windows" "$LINENO" 5
6606 LIBEXT="dll"
6607 IMPLIBEXT="a"
6608 STATIC_IMPLIBEXT="a"
6609 enable_iphlpapi=${enable_iphlpapi:-no}
6610 enable_kernel32=${enable_kernel32:-no}
6611 enable_msvcrt=${enable_msvcrt:-no}
6612 enable_ntdll=${enable_ntdll:-no}
6613 enable_ws2_32=${enable_ws2_32:-no}
6614 enable_loader=${enable_loader:-no}
6615 enable_server=${enable_server:-no}
6616 with_x=${with_x:-no}
6617 with_pthread=${with_pthread:-no}
6619 crtlibs=""
6620 case $host_os in
6621 mingw32*)
6622 crtlibs="-lmsvcrt"
6623 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
6625 esac
6627 LIBWINE_RULES="
6628 all: libwine.dll libwine.a
6630 libwine.a: wine.def
6631 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
6633 libwine.dll: \$(OBJS) wine.def Makefile.in
6634 \$(DLLWRAP) --def \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
6636 install install-lib:: libwine.dll \$(DESTDIR)\$(libdir) dummy
6637 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
6639 install install-dev:: libwine.a \$(DESTDIR)\$(libdir) dummy
6640 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
6642 uninstall::
6643 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
6645 clean::
6646 \$(RM) libwine.dll version.c
6651 darwin*|macosx*)
6652 DLLEXT=".so"
6653 LIBEXT="dylib"
6654 DLLFLAGS="$DLLFLAGS -fPIC"
6655 LDDLLFLAGS="-bundle -multiply_defined suppress"
6656 LIBWINE_LDFLAGS="-multiply_defined suppress"
6657 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6658 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
6659 COREFOUNDATIONLIB="-framework CoreFoundation"
6661 IOKITLIB="-framework IOKit -framework CoreFoundation"
6663 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6665 CORESERVICESLIB="-framework CoreServices"
6667 case $host_os in
6668 darwin11*)
6669 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6672 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6674 esac
6675 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6676 then
6677 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6680 if test "$ac_cv_header_Security_Security_h" = "yes"
6681 then
6682 SECURITYLIB="-framework Security -framework CoreFoundation"
6684 ac_save_LIBS="$LIBS"
6685 LIBS="$LIBS $SECURITYLIB"
6686 for ac_func in SSLCopyPeerCertificates
6687 do :
6688 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6689 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6690 cat >>confdefs.h <<_ACEOF
6691 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6692 _ACEOF
6695 done
6697 LIBS="$ac_save_LIBS"
6698 with_gnutls=${with_gnutls:-no}
6700 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6701 then
6702 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6703 then
6704 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6706 else
6707 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6710 ac_save_LIBS="$LIBS"
6711 LIBS="$LIBS $COREAUDIO"
6712 for ac_func in AUGraphAddNode
6713 do :
6714 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6715 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6716 cat >>confdefs.h <<_ACEOF
6717 #define HAVE_AUGRAPHADDNODE 1
6718 _ACEOF
6721 done
6723 LIBS="$ac_save_LIBS"
6725 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6726 then
6727 FRAMEWORK_OPENAL="-framework OpenAL"
6730 cat >>confdefs.h <<_ACEOF
6731 #define HAVE_OPENAL 1
6732 _ACEOF
6734 ac_cv_lib_openal=yes
6736 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6737 then
6738 LIBOPENCL="-framework OpenCL"
6740 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6742 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6743 then
6744 ac_save_LIBS="$LIBS"
6745 LIBS="$LIBS $IOKITLIB"
6746 for ac_func in IOHIDManagerCreate
6747 do :
6748 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6749 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6750 cat >>confdefs.h <<_ACEOF
6751 #define HAVE_IOHIDMANAGERCREATE 1
6752 _ACEOF
6755 done
6757 LIBS="$ac_save_LIBS"
6759 case $host_cpu in
6760 *powerpc*)
6761 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6762 esac
6763 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6764 then
6765 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6767 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6768 else
6769 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6771 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6772 then
6773 CARBONLIB="-framework Carbon"
6777 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
6778 then
6779 ac_save_LIBS="$LIBS"
6780 LIBS="$LIBS $APPLICATIONSERVICESLIB"
6781 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
6782 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
6783 enable_winemac_drv=${enable_winemac_drv:-yes}
6786 LIBS="$ac_save_LIBS"
6789 if test "x$enable_win16" = "xyes"
6790 then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6792 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6793 if test "$cross_compiling" = yes; then :
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6795 $as_echo "cross-compiling, assuming yes" >&6; }
6796 else
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6799 asm(".text\n"
6800 "bad:\tnop;nop\n"
6801 "good:\tnop;nop\n\t"
6802 ".globl _testfunc\n"
6803 "_testfunc:\tcallw good");
6804 extern void testfunc();
6806 main ()
6808 unsigned short *p = (unsigned short *)testfunc;
6809 return p[0] != 0xe866 || p[1] != 0xfffa
6811 return 0;
6813 _ACEOF
6814 if ac_fn_c_try_run "$LINENO"; then :
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6816 $as_echo "yes" >&6; }
6817 else
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 $as_echo "no" >&6; }
6820 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
6822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6823 conftest.$ac_objext conftest.beam conftest.$ac_ext
6828 LIBWINE_RULES="
6829 all: libwine.dylib
6831 libwine.\$(VERSION).dylib: \$(OBJS) \$(RELPATH) Makefile.in
6832 \$(CC) -dynamiclib -install_name @rpath/libwine.\$(SOVERSION).dylib -Wl,-rpath,@loader_path/ -compatibility_version \$(SOVERSION) -current_version \$(VERSION) \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
6834 libwine.\$(SOVERSION).dylib: libwine.\$(VERSION).dylib
6835 \$(RM) \$@ && \$(LN_S) libwine.\$(VERSION).dylib \$@
6837 libwine.dylib: libwine.\$(SOVERSION).dylib
6838 \$(RM) \$@ && \$(LN_S) libwine.\$(SOVERSION).dylib \$@
6840 install install-lib:: libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir) dummy
6841 \$(INSTALL_PROGRAM) libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir)/libwine.\$(VERSION).dylib
6842 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.\$(SOVERSION).dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6844 install install-dev:: \$(DESTDIR)\$(libdir) dummy
6845 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.dylib
6847 uninstall::
6848 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6850 clean::
6851 \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib version.c
6856 linux-android*)
6857 DLLFLAGS="$DLLFLAGS -fPIC"
6858 DLLEXT=".so"
6859 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6861 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6862 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 ac_wine_try_cflags_saved=$CFLAGS
6866 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 int main(int argc, char **argv) { return 0; }
6870 _ACEOF
6871 if ac_fn_c_try_link "$LINENO"; then :
6872 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6873 else
6874 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6876 rm -f core conftest.err conftest.$ac_objext \
6877 conftest$ac_exeext conftest.$ac_ext
6878 CFLAGS=$ac_wine_try_cflags_saved
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6881 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6882 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6883 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
6886 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6887 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 ac_wine_try_cflags_saved=$CFLAGS
6891 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 int main(int argc, char **argv) { return 0; }
6895 _ACEOF
6896 if ac_fn_c_try_link "$LINENO"; then :
6897 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6898 else
6899 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6901 rm -f core conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
6903 CFLAGS=$ac_wine_try_cflags_saved
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6906 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6907 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6908 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6911 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6912 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 ac_wine_try_cflags_saved=$CFLAGS
6916 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6919 int main(int argc, char **argv) { return 0; }
6920 _ACEOF
6921 if ac_fn_c_try_link "$LINENO"; then :
6922 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6923 else
6924 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6926 rm -f core conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext
6928 CFLAGS=$ac_wine_try_cflags_saved
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6931 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6932 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6933 LDEXECFLAGS="-Wl,--export-dynamic"
6936 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6938 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6939 if eval \${$as_ac_var+:} false; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 ac_wine_try_cflags_saved=$CFLAGS
6943 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6946 int main(int argc, char **argv) { return 0; }
6947 _ACEOF
6948 if ac_fn_c_try_link "$LINENO"; then :
6949 eval "$as_ac_var=yes"
6950 else
6951 eval "$as_ac_var=no"
6953 rm -f core conftest.err conftest.$ac_objext \
6954 conftest$ac_exeext conftest.$ac_ext
6955 CFLAGS=$ac_wine_try_cflags_saved
6957 eval ac_res=\$$as_ac_var
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6959 $as_echo "$ac_res" >&6; }
6960 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6961 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6962 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6963 else
6964 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6966 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6967 if eval \${$as_ac_var+:} false; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 ac_wine_try_cflags_saved=$CFLAGS
6971 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973 /* end confdefs.h. */
6974 int main(int argc, char **argv) { return 0; }
6975 _ACEOF
6976 if ac_fn_c_try_link "$LINENO"; then :
6977 eval "$as_ac_var=yes"
6978 else
6979 eval "$as_ac_var=no"
6981 rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6983 CFLAGS=$ac_wine_try_cflags_saved
6985 eval ac_res=\$$as_ac_var
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6987 $as_echo "$ac_res" >&6; }
6988 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6989 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6990 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6995 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6996 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 ac_wine_try_cflags_saved=$CFLAGS
7000 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7003 int main(int argc, char **argv) { return 0; }
7004 _ACEOF
7005 if ac_fn_c_try_link "$LINENO"; then :
7006 ac_cv_cflags__Wl___enable_new_dtags=yes
7007 else
7008 ac_cv_cflags__Wl___enable_new_dtags=no
7010 rm -f core conftest.err conftest.$ac_objext \
7011 conftest$ac_exeext conftest.$ac_ext
7012 CFLAGS=$ac_wine_try_cflags_saved
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7015 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7016 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7017 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7020 case $host_cpu in
7021 *i[3456789]86* | x86_64)
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7023 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7024 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 ac_wine_try_cflags_saved=$CFLAGS
7028 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7031 int main(int argc, char **argv) { return 0; }
7032 _ACEOF
7033 if ac_fn_c_try_link "$LINENO"; then :
7034 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7035 else
7036 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7038 rm -f core conftest.err conftest.$ac_objext \
7039 conftest$ac_exeext conftest.$ac_ext
7040 CFLAGS=$ac_wine_try_cflags_saved
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7043 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7044 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7045 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
7048 esac
7050 LIBWINE_RULES="
7051 all: libwine.so
7053 libwine.so: \$(OBJS) Makefile.in
7054 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7056 install install-lib:: libwine.so \$(DESTDIR)\$(libdir) dummy
7057 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
7059 uninstall::
7060 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
7062 clean::
7063 \$(RM) libwine.so version.c
7069 DLLFLAGS="$DLLFLAGS -fPIC"
7070 DLLEXT=".so"
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
7072 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
7073 if ${ac_cv_c_dll_gnuelf+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 ac_wine_try_cflags_saved=$CFLAGS
7077 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7080 void myfunc() {}
7081 _ACEOF
7082 if ac_fn_c_try_link "$LINENO"; then :
7083 ac_cv_c_dll_gnuelf="yes"
7084 else
7085 ac_cv_c_dll_gnuelf="no"
7087 rm -f core conftest.err conftest.$ac_objext \
7088 conftest$ac_exeext conftest.$ac_ext
7089 CFLAGS=$ac_wine_try_cflags_saved
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
7092 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
7093 if test "$ac_cv_c_dll_gnuelf" = "yes"
7094 then
7095 LDSHARED="\$(CC) -shared"
7096 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
7098 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
7099 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
7100 $as_echo_n "(cached) " >&6
7101 else
7102 ac_wine_try_cflags_saved=$CFLAGS
7103 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7106 int main(int argc, char **argv) { return 0; }
7107 _ACEOF
7108 if ac_fn_c_try_link "$LINENO"; then :
7109 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
7110 else
7111 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
7113 rm -f core conftest.err conftest.$ac_objext \
7114 conftest$ac_exeext conftest.$ac_ext
7115 CFLAGS=$ac_wine_try_cflags_saved
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
7118 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
7119 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
7120 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.\$(SOVERSION)"
7121 else
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
7123 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
7124 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 ac_wine_try_cflags_saved=$CFLAGS
7128 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131 int main(int argc, char **argv) { return 0; }
7132 _ACEOF
7133 if ac_fn_c_try_link "$LINENO"; then :
7134 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
7135 else
7136 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
7138 rm -f core conftest.err conftest.$ac_objext \
7139 conftest$ac_exeext conftest.$ac_ext
7140 CFLAGS=$ac_wine_try_cflags_saved
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
7143 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
7144 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
7145 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.\$(SOVERSION)"
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
7150 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
7151 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
7152 $as_echo_n "(cached) " >&6
7153 else
7154 ac_wine_try_cflags_saved=$CFLAGS
7155 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7157 /* end confdefs.h. */
7158 int main(int argc, char **argv) { return 0; }
7159 _ACEOF
7160 if ac_fn_c_try_link "$LINENO"; then :
7161 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
7162 else
7163 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
7165 rm -f core conftest.err conftest.$ac_objext \
7166 conftest$ac_exeext conftest.$ac_ext
7167 CFLAGS=$ac_wine_try_cflags_saved
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
7170 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
7171 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
7172 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
7176 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
7177 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 ac_wine_try_cflags_saved=$CFLAGS
7181 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7184 int main(int argc, char **argv) { return 0; }
7185 _ACEOF
7186 if ac_fn_c_try_link "$LINENO"; then :
7187 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
7188 else
7189 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
7191 rm -f core conftest.err conftest.$ac_objext \
7192 conftest$ac_exeext conftest.$ac_ext
7193 CFLAGS=$ac_wine_try_cflags_saved
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
7196 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
7197 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
7198 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
7201 echo '{ global: *; };' >conftest.map
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
7203 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
7204 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 ac_wine_try_cflags_saved=$CFLAGS
7208 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211 int main(int argc, char **argv) { return 0; }
7212 _ACEOF
7213 if ac_fn_c_try_link "$LINENO"; then :
7214 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
7215 else
7216 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
7218 rm -f core conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7220 CFLAGS=$ac_wine_try_cflags_saved
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
7223 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
7224 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
7225 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
7227 rm -f conftest.map
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7230 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7231 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 ac_wine_try_cflags_saved=$CFLAGS
7235 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 int main(int argc, char **argv) { return 0; }
7239 _ACEOF
7240 if ac_fn_c_try_link "$LINENO"; then :
7241 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7242 else
7243 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7245 rm -f core conftest.err conftest.$ac_objext \
7246 conftest$ac_exeext conftest.$ac_ext
7247 CFLAGS=$ac_wine_try_cflags_saved
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7250 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7251 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7252 LDEXECFLAGS="-Wl,--export-dynamic"
7256 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7258 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7259 if eval \${$as_ac_var+:} false; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 ac_wine_try_cflags_saved=$CFLAGS
7263 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266 int main(int argc, char **argv) { return 0; }
7267 _ACEOF
7268 if ac_fn_c_try_link "$LINENO"; then :
7269 eval "$as_ac_var=yes"
7270 else
7271 eval "$as_ac_var=no"
7273 rm -f core conftest.err conftest.$ac_objext \
7274 conftest$ac_exeext conftest.$ac_ext
7275 CFLAGS=$ac_wine_try_cflags_saved
7277 eval ac_res=\$$as_ac_var
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7279 $as_echo "$ac_res" >&6; }
7280 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7281 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7282 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7283 else
7284 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7286 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7287 if eval \${$as_ac_var+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 ac_wine_try_cflags_saved=$CFLAGS
7291 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7294 int main(int argc, char **argv) { return 0; }
7295 _ACEOF
7296 if ac_fn_c_try_link "$LINENO"; then :
7297 eval "$as_ac_var=yes"
7298 else
7299 eval "$as_ac_var=no"
7301 rm -f core conftest.err conftest.$ac_objext \
7302 conftest$ac_exeext conftest.$ac_ext
7303 CFLAGS=$ac_wine_try_cflags_saved
7305 eval ac_res=\$$as_ac_var
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7307 $as_echo "$ac_res" >&6; }
7308 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7309 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7310 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7315 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7316 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 ac_wine_try_cflags_saved=$CFLAGS
7320 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7323 int main(int argc, char **argv) { return 0; }
7324 _ACEOF
7325 if ac_fn_c_try_link "$LINENO"; then :
7326 ac_cv_cflags__Wl___enable_new_dtags=yes
7327 else
7328 ac_cv_cflags__Wl___enable_new_dtags=no
7330 rm -f core conftest.err conftest.$ac_objext \
7331 conftest$ac_exeext conftest.$ac_ext
7332 CFLAGS=$ac_wine_try_cflags_saved
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7335 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7336 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7337 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7340 case $host_cpu in
7341 *i[3456789]86* | x86_64)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7343 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7344 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 ac_wine_try_cflags_saved=$CFLAGS
7348 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350 /* end confdefs.h. */
7351 int main(int argc, char **argv) { return 0; }
7352 _ACEOF
7353 if ac_fn_c_try_link "$LINENO"; then :
7354 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7355 else
7356 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7358 rm -f core conftest.err conftest.$ac_objext \
7359 conftest$ac_exeext conftest.$ac_ext
7360 CFLAGS=$ac_wine_try_cflags_saved
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7363 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7364 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7365 case $host_os in
7366 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7367 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7368 esac
7371 # Extract the first word of "prelink", so it can be a program name with args.
7372 set dummy prelink; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if ${ac_cv_path_PRELINK+:} false; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 case $PRELINK in
7379 [\\/]* | ?:[\\/]*)
7380 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in /sbin /usr/sbin $PATH
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7394 done
7395 done
7396 IFS=$as_save_IFS
7398 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7400 esac
7402 PRELINK=$ac_cv_path_PRELINK
7403 if test -n "$PRELINK"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7405 $as_echo "$PRELINK" >&6; }
7406 else
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7412 if test "x$PRELINK" = xfalse
7413 then
7414 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7417 esac
7419 else
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7421 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7422 if ${ac_cv_c_dll_unixware+:} false; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 ac_wine_try_cflags_saved=$CFLAGS
7426 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7429 void myfunc() {}
7430 _ACEOF
7431 if ac_fn_c_try_link "$LINENO"; then :
7432 ac_cv_c_dll_unixware="yes"
7433 else
7434 ac_cv_c_dll_unixware="no"
7436 rm -f core conftest.err conftest.$ac_objext \
7437 conftest$ac_exeext conftest.$ac_ext
7438 CFLAGS=$ac_wine_try_cflags_saved
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7441 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7442 if test "$ac_cv_c_dll_unixware" = "yes"
7443 then
7444 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.\$(SOVERSION)"
7445 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7448 LIBWINE_RULES="
7449 all: libwine.so
7451 libwine.so.\$(VERSION): \$(OBJS) wine.map Makefile.in
7452 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7454 libwine.so.\$(SOVERSION): libwine.so.\$(VERSION)
7455 \$(RM) \$@ && \$(LN_S) libwine.so.\$(VERSION) \$@
7457 libwine.so: libwine.so.\$(SOVERSION)
7458 \$(RM) \$@ && \$(LN_S) libwine.so.\$(SOVERSION) \$@
7460 install install-lib:: libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir) dummy
7461 \$(INSTALL_PROGRAM) libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir)/libwine.so.\$(VERSION)
7462 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.\$(SOVERSION) && \$(LN_S) libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7464 install install-dev:: \$(DESTDIR)\$(libdir) dummy
7465 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.\$(VERSION) libwine.so
7467 uninstall::
7468 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7470 clean::
7471 \$(RM) libwine.so.\$(SOVERSION) libwine.so.\$(VERSION) version.c
7475 esac
7477 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7478 enable_winemac_drv=${enable_winemac_drv:-no}
7480 CROSSTEST_DISABLE=\#
7482 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7483 then
7484 case "$host_cpu" in
7485 i[3456789]86*)
7486 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
7487 mingw32-gcc" ;;
7488 x86_64)
7489 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 " ;;
7491 ac_prefix_list="" ;;
7492 esac
7493 for ac_prog in $ac_prefix_list
7495 # Extract the first word of "$ac_prog", so it can be a program name with args.
7496 set dummy $ac_prog; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_CROSSCC+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 if test -n "$CROSSCC"; then
7503 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_CROSSCC="$ac_prog"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7516 done
7517 done
7518 IFS=$as_save_IFS
7522 CROSSCC=$ac_cv_prog_CROSSCC
7523 if test -n "$CROSSCC"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7525 $as_echo "$CROSSCC" >&6; }
7526 else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7532 test -n "$CROSSCC" && break
7533 done
7534 test -n "$CROSSCC" || CROSSCC="false"
7536 if test "$CROSSCC" != "false"
7537 then
7538 ac_save_CC="$CC"
7539 CC="$CROSSCC"
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7541 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7546 main ()
7550 return 0;
7552 _ACEOF
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7555 $as_echo "yes" >&6; }
7556 set x $CROSSCC
7557 shift
7558 target=""
7559 while test $# -ge 1
7561 case "$1" in
7562 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7563 esac
7564 shift
7565 done
7566 if test -n "$target"
7567 then
7568 CROSSTEST_DISABLE=""
7569 CROSSTARGET="$target"
7572 else
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7577 CC="$ac_save_CC"
7582 if test "$ac_cv_header_pthread_h" = "yes"
7583 then
7584 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
7585 if test "x$ac_cv_func_pthread_create" = xyes; then :
7587 else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7589 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7590 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7591 $as_echo_n "(cached) " >&6
7592 else
7593 ac_check_lib_save_LIBS=$LIBS
7594 LIBS="-lpthread $LIBS"
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7598 /* Override any GCC internal prototype to avoid an error.
7599 Use char because int might match the return type of a GCC
7600 builtin and then its argument prototype would still apply. */
7601 #ifdef __cplusplus
7602 extern "C"
7603 #endif
7604 char pthread_create ();
7606 main ()
7608 return pthread_create ();
7610 return 0;
7612 _ACEOF
7613 if ac_fn_c_try_link "$LINENO"; then :
7614 ac_cv_lib_pthread_pthread_create=yes
7615 else
7616 ac_cv_lib_pthread_pthread_create=no
7618 rm -f core conftest.err conftest.$ac_objext \
7619 conftest$ac_exeext conftest.$ac_ext
7620 LIBS=$ac_check_lib_save_LIBS
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7623 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7624 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7625 LIBPTHREAD="-lpthread"
7632 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
7633 case "x$with_pthread" in
7634 xno) ;;
7635 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7636 Wine cannot support threads without libpthread.
7637 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7638 esac
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7643 $as_echo_n "checking for X... " >&6; }
7646 # Check whether --with-x was given.
7647 if test "${with_x+set}" = set; then :
7648 withval=$with_x;
7651 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7652 if test "x$with_x" = xno; then
7653 # The user explicitly disabled X.
7654 have_x=disabled
7655 else
7656 case $x_includes,$x_libraries in #(
7657 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7658 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 # One or both of the vars are not set, and there is no cached value.
7662 ac_x_includes=no ac_x_libraries=no
7663 rm -f -r conftest.dir
7664 if mkdir conftest.dir; then
7665 cd conftest.dir
7666 cat >Imakefile <<'_ACEOF'
7667 incroot:
7668 @echo incroot='${INCROOT}'
7669 usrlibdir:
7670 @echo usrlibdir='${USRLIBDIR}'
7671 libdir:
7672 @echo libdir='${LIBDIR}'
7673 _ACEOF
7674 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7675 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7676 for ac_var in incroot usrlibdir libdir; do
7677 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7678 done
7679 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7680 for ac_extension in a so sl dylib la dll; do
7681 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7682 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7683 ac_im_usrlibdir=$ac_im_libdir; break
7685 done
7686 # Screen out bogus values from the imake configuration. They are
7687 # bogus both because they are the default anyway, and because
7688 # using them would break gcc on systems where it needs fixed includes.
7689 case $ac_im_incroot in
7690 /usr/include) ac_x_includes= ;;
7691 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7692 esac
7693 case $ac_im_usrlibdir in
7694 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7695 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7696 esac
7698 cd ..
7699 rm -f -r conftest.dir
7702 # Standard set of common directories for X headers.
7703 # Check X11 before X11Rn because it is often a symlink to the current release.
7704 ac_x_header_dirs='
7705 /usr/X11/include
7706 /usr/X11R7/include
7707 /usr/X11R6/include
7708 /usr/X11R5/include
7709 /usr/X11R4/include
7711 /usr/include/X11
7712 /usr/include/X11R7
7713 /usr/include/X11R6
7714 /usr/include/X11R5
7715 /usr/include/X11R4
7717 /usr/local/X11/include
7718 /usr/local/X11R7/include
7719 /usr/local/X11R6/include
7720 /usr/local/X11R5/include
7721 /usr/local/X11R4/include
7723 /usr/local/include/X11
7724 /usr/local/include/X11R7
7725 /usr/local/include/X11R6
7726 /usr/local/include/X11R5
7727 /usr/local/include/X11R4
7729 /usr/X386/include
7730 /usr/x386/include
7731 /usr/XFree86/include/X11
7733 /usr/include
7734 /usr/local/include
7735 /usr/unsupported/include
7736 /usr/athena/include
7737 /usr/local/x11r5/include
7738 /usr/lpp/Xamples/include
7740 /usr/openwin/include
7741 /usr/openwin/share/include'
7743 if test "$ac_x_includes" = no; then
7744 # Guess where to find include files, by looking for Xlib.h.
7745 # First, try using that file with no special directory specified.
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 #include <X11/Xlib.h>
7749 _ACEOF
7750 if ac_fn_c_try_cpp "$LINENO"; then :
7751 # We can compile using X headers with no special include directory.
7752 ac_x_includes=
7753 else
7754 for ac_dir in $ac_x_header_dirs; do
7755 if test -r "$ac_dir/X11/Xlib.h"; then
7756 ac_x_includes=$ac_dir
7757 break
7759 done
7761 rm -f conftest.err conftest.i conftest.$ac_ext
7762 fi # $ac_x_includes = no
7764 if test "$ac_x_libraries" = no; then
7765 # Check for the libraries.
7766 # See if we find them without any special options.
7767 # Don't add to $LIBS permanently.
7768 ac_save_LIBS=$LIBS
7769 LIBS="-lX11 $LIBS"
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7772 #include <X11/Xlib.h>
7774 main ()
7776 XrmInitialize ()
7778 return 0;
7780 _ACEOF
7781 if ac_fn_c_try_link "$LINENO"; then :
7782 LIBS=$ac_save_LIBS
7783 # We can link X programs with no special library path.
7784 ac_x_libraries=
7785 else
7786 LIBS=$ac_save_LIBS
7787 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7789 # Don't even attempt the hair of trying to link an X program!
7790 for ac_extension in a so sl dylib la dll; do
7791 if test -r "$ac_dir/libX11.$ac_extension"; then
7792 ac_x_libraries=$ac_dir
7793 break 2
7795 done
7796 done
7798 rm -f core conftest.err conftest.$ac_objext \
7799 conftest$ac_exeext conftest.$ac_ext
7800 fi # $ac_x_libraries = no
7802 case $ac_x_includes,$ac_x_libraries in #(
7803 no,* | *,no | *\'*)
7804 # Didn't find X, or a directory has "'" in its name.
7805 ac_cv_have_x="have_x=no";; #(
7807 # Record where we found X for the cache.
7808 ac_cv_have_x="have_x=yes\
7809 ac_x_includes='$ac_x_includes'\
7810 ac_x_libraries='$ac_x_libraries'"
7811 esac
7813 ;; #(
7814 *) have_x=yes;;
7815 esac
7816 eval "$ac_cv_have_x"
7817 fi # $with_x != no
7819 if test "$have_x" != yes; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7821 $as_echo "$have_x" >&6; }
7822 no_x=yes
7823 else
7824 # If each of the values was on the command line, it overrides each guess.
7825 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7826 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7827 # Update the cache value to reflect the command line values.
7828 ac_cv_have_x="have_x=yes\
7829 ac_x_includes='$x_includes'\
7830 ac_x_libraries='$x_libraries'"
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7832 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7835 if test "$no_x" = yes; then
7836 # Not all programs may use this symbol, but it does not hurt to define it.
7838 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7840 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7841 else
7842 if test -n "$x_includes"; then
7843 X_CFLAGS="$X_CFLAGS -I$x_includes"
7846 # It would also be nice to do this for all -L options, not just this one.
7847 if test -n "$x_libraries"; then
7848 X_LIBS="$X_LIBS -L$x_libraries"
7849 # For Solaris; some versions of Sun CC require a space after -R and
7850 # others require no space. Words are not sufficient . . . .
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7852 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7853 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7854 ac_xsave_c_werror_flag=$ac_c_werror_flag
7855 ac_c_werror_flag=yes
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7860 main ()
7864 return 0;
7866 _ACEOF
7867 if ac_fn_c_try_link "$LINENO"; then :
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7870 X_LIBS="$X_LIBS -R$x_libraries"
7871 else
7872 LIBS="$ac_xsave_LIBS -R $x_libraries"
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7877 main ()
7881 return 0;
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"; then :
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7886 $as_echo "yes" >&6; }
7887 X_LIBS="$X_LIBS -R $x_libraries"
7888 else
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7890 $as_echo "neither works" >&6; }
7892 rm -f core conftest.err conftest.$ac_objext \
7893 conftest$ac_exeext conftest.$ac_ext
7895 rm -f core conftest.err conftest.$ac_objext \
7896 conftest$ac_exeext conftest.$ac_ext
7897 ac_c_werror_flag=$ac_xsave_c_werror_flag
7898 LIBS=$ac_xsave_LIBS
7901 # Check for system-dependent libraries X programs must link with.
7902 # Do this before checking for the system-independent R6 libraries
7903 # (-lICE), since we may need -lsocket or whatever for X linking.
7905 if test "$ISC" = yes; then
7906 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7907 else
7908 # Martyn Johnson says this is needed for Ultrix, if the X
7909 # libraries were built with DECnet support. And Karl Berry says
7910 # the Alpha needs dnet_stub (dnet does not exist).
7911 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7915 /* Override any GCC internal prototype to avoid an error.
7916 Use char because int might match the return type of a GCC
7917 builtin and then its argument prototype would still apply. */
7918 #ifdef __cplusplus
7919 extern "C"
7920 #endif
7921 char XOpenDisplay ();
7923 main ()
7925 return XOpenDisplay ();
7927 return 0;
7929 _ACEOF
7930 if ac_fn_c_try_link "$LINENO"; then :
7932 else
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7934 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7935 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 ac_check_lib_save_LIBS=$LIBS
7939 LIBS="-ldnet $LIBS"
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7943 /* Override any GCC internal prototype to avoid an error.
7944 Use char because int might match the return type of a GCC
7945 builtin and then its argument prototype would still apply. */
7946 #ifdef __cplusplus
7947 extern "C"
7948 #endif
7949 char dnet_ntoa ();
7951 main ()
7953 return dnet_ntoa ();
7955 return 0;
7957 _ACEOF
7958 if ac_fn_c_try_link "$LINENO"; then :
7959 ac_cv_lib_dnet_dnet_ntoa=yes
7960 else
7961 ac_cv_lib_dnet_dnet_ntoa=no
7963 rm -f core conftest.err conftest.$ac_objext \
7964 conftest$ac_exeext conftest.$ac_ext
7965 LIBS=$ac_check_lib_save_LIBS
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7968 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7969 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7970 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7973 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7975 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7976 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 ac_check_lib_save_LIBS=$LIBS
7980 LIBS="-ldnet_stub $LIBS"
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7984 /* Override any GCC internal prototype to avoid an error.
7985 Use char because int might match the return type of a GCC
7986 builtin and then its argument prototype would still apply. */
7987 #ifdef __cplusplus
7988 extern "C"
7989 #endif
7990 char dnet_ntoa ();
7992 main ()
7994 return dnet_ntoa ();
7996 return 0;
7998 _ACEOF
7999 if ac_fn_c_try_link "$LINENO"; then :
8000 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8001 else
8002 ac_cv_lib_dnet_stub_dnet_ntoa=no
8004 rm -f core conftest.err conftest.$ac_objext \
8005 conftest$ac_exeext conftest.$ac_ext
8006 LIBS=$ac_check_lib_save_LIBS
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8009 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8010 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8011 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8016 rm -f core conftest.err conftest.$ac_objext \
8017 conftest$ac_exeext conftest.$ac_ext
8018 LIBS="$ac_xsave_LIBS"
8020 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8021 # to get the SysV transport functions.
8022 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8023 # needs -lnsl.
8024 # The nsl library prevents programs from opening the X display
8025 # on Irix 5.2, according to T.E. Dickey.
8026 # The functions gethostbyname, getservbyname, and inet_addr are
8027 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8028 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8029 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8033 if test $ac_cv_func_gethostbyname = no; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8035 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8036 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 ac_check_lib_save_LIBS=$LIBS
8040 LIBS="-lnsl $LIBS"
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8044 /* Override any GCC internal prototype to avoid an error.
8045 Use char because int might match the return type of a GCC
8046 builtin and then its argument prototype would still apply. */
8047 #ifdef __cplusplus
8048 extern "C"
8049 #endif
8050 char gethostbyname ();
8052 main ()
8054 return gethostbyname ();
8056 return 0;
8058 _ACEOF
8059 if ac_fn_c_try_link "$LINENO"; then :
8060 ac_cv_lib_nsl_gethostbyname=yes
8061 else
8062 ac_cv_lib_nsl_gethostbyname=no
8064 rm -f core conftest.err conftest.$ac_objext \
8065 conftest$ac_exeext conftest.$ac_ext
8066 LIBS=$ac_check_lib_save_LIBS
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8069 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8070 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8071 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8074 if test $ac_cv_lib_nsl_gethostbyname = no; then
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8076 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8077 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 ac_check_lib_save_LIBS=$LIBS
8081 LIBS="-lbsd $LIBS"
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8085 /* Override any GCC internal prototype to avoid an error.
8086 Use char because int might match the return type of a GCC
8087 builtin and then its argument prototype would still apply. */
8088 #ifdef __cplusplus
8089 extern "C"
8090 #endif
8091 char gethostbyname ();
8093 main ()
8095 return gethostbyname ();
8097 return 0;
8099 _ACEOF
8100 if ac_fn_c_try_link "$LINENO"; then :
8101 ac_cv_lib_bsd_gethostbyname=yes
8102 else
8103 ac_cv_lib_bsd_gethostbyname=no
8105 rm -f core conftest.err conftest.$ac_objext \
8106 conftest$ac_exeext conftest.$ac_ext
8107 LIBS=$ac_check_lib_save_LIBS
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8110 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8111 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8112 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8118 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8119 # socket/setsockopt and other routines are undefined under SCO ODT
8120 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8121 # on later versions), says Simon Leinen: it contains gethostby*
8122 # variants that don't use the name server (or something). -lsocket
8123 # must be given before -lnsl if both are needed. We assume that
8124 # if connect needs -lnsl, so does gethostbyname.
8125 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8126 if test "x$ac_cv_func_connect" = xyes; then :
8130 if test $ac_cv_func_connect = no; then
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8132 $as_echo_n "checking for connect in -lsocket... " >&6; }
8133 if ${ac_cv_lib_socket_connect+:} false; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 ac_check_lib_save_LIBS=$LIBS
8137 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8139 /* end confdefs.h. */
8141 /* Override any GCC internal prototype to avoid an error.
8142 Use char because int might match the return type of a GCC
8143 builtin and then its argument prototype would still apply. */
8144 #ifdef __cplusplus
8145 extern "C"
8146 #endif
8147 char connect ();
8149 main ()
8151 return connect ();
8153 return 0;
8155 _ACEOF
8156 if ac_fn_c_try_link "$LINENO"; then :
8157 ac_cv_lib_socket_connect=yes
8158 else
8159 ac_cv_lib_socket_connect=no
8161 rm -f core conftest.err conftest.$ac_objext \
8162 conftest$ac_exeext conftest.$ac_ext
8163 LIBS=$ac_check_lib_save_LIBS
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8166 $as_echo "$ac_cv_lib_socket_connect" >&6; }
8167 if test "x$ac_cv_lib_socket_connect" = xyes; then :
8168 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8173 # Guillermo Gomez says -lposix is necessary on A/UX.
8174 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8175 if test "x$ac_cv_func_remove" = xyes; then :
8179 if test $ac_cv_func_remove = no; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8181 $as_echo_n "checking for remove in -lposix... " >&6; }
8182 if ${ac_cv_lib_posix_remove+:} false; then :
8183 $as_echo_n "(cached) " >&6
8184 else
8185 ac_check_lib_save_LIBS=$LIBS
8186 LIBS="-lposix $LIBS"
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8190 /* Override any GCC internal prototype to avoid an error.
8191 Use char because int might match the return type of a GCC
8192 builtin and then its argument prototype would still apply. */
8193 #ifdef __cplusplus
8194 extern "C"
8195 #endif
8196 char remove ();
8198 main ()
8200 return remove ();
8202 return 0;
8204 _ACEOF
8205 if ac_fn_c_try_link "$LINENO"; then :
8206 ac_cv_lib_posix_remove=yes
8207 else
8208 ac_cv_lib_posix_remove=no
8210 rm -f core conftest.err conftest.$ac_objext \
8211 conftest$ac_exeext conftest.$ac_ext
8212 LIBS=$ac_check_lib_save_LIBS
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8215 $as_echo "$ac_cv_lib_posix_remove" >&6; }
8216 if test "x$ac_cv_lib_posix_remove" = xyes; then :
8217 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8222 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8223 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8224 if test "x$ac_cv_func_shmat" = xyes; then :
8228 if test $ac_cv_func_shmat = no; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8230 $as_echo_n "checking for shmat in -lipc... " >&6; }
8231 if ${ac_cv_lib_ipc_shmat+:} false; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 ac_check_lib_save_LIBS=$LIBS
8235 LIBS="-lipc $LIBS"
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8239 /* Override any GCC internal prototype to avoid an error.
8240 Use char because int might match the return type of a GCC
8241 builtin and then its argument prototype would still apply. */
8242 #ifdef __cplusplus
8243 extern "C"
8244 #endif
8245 char shmat ();
8247 main ()
8249 return shmat ();
8251 return 0;
8253 _ACEOF
8254 if ac_fn_c_try_link "$LINENO"; then :
8255 ac_cv_lib_ipc_shmat=yes
8256 else
8257 ac_cv_lib_ipc_shmat=no
8259 rm -f core conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
8261 LIBS=$ac_check_lib_save_LIBS
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8264 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8265 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8266 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8272 # Check for libraries that X11R6 Xt/Xaw programs need.
8273 ac_save_LDFLAGS=$LDFLAGS
8274 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8275 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8276 # check for ICE first), but we must link in the order -lSM -lICE or
8277 # we get undefined symbols. So assume we have SM if we have ICE.
8278 # These have to be linked with before -lX11, unlike the other
8279 # libraries we check for below, so use a different variable.
8280 # John Interrante, Karl Berry
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8282 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8283 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8286 ac_check_lib_save_LIBS=$LIBS
8287 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h. */
8291 /* Override any GCC internal prototype to avoid an error.
8292 Use char because int might match the return type of a GCC
8293 builtin and then its argument prototype would still apply. */
8294 #ifdef __cplusplus
8295 extern "C"
8296 #endif
8297 char IceConnectionNumber ();
8299 main ()
8301 return IceConnectionNumber ();
8303 return 0;
8305 _ACEOF
8306 if ac_fn_c_try_link "$LINENO"; then :
8307 ac_cv_lib_ICE_IceConnectionNumber=yes
8308 else
8309 ac_cv_lib_ICE_IceConnectionNumber=no
8311 rm -f core conftest.err conftest.$ac_objext \
8312 conftest$ac_exeext conftest.$ac_ext
8313 LIBS=$ac_check_lib_save_LIBS
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8316 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8317 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8318 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8321 LDFLAGS=$ac_save_LDFLAGS
8326 if test "$have_x" = "yes"
8327 then
8328 XLIB="-lX11"
8329 ac_save_CPPFLAGS="$CPPFLAGS"
8330 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
8333 $as_echo_n "checking for -lX11... " >&6; }
8334 if ${ac_cv_lib_soname_X11+:} false; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 ac_check_soname_save_LIBS=$LIBS
8338 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8342 /* Override any GCC internal prototype to avoid an error.
8343 Use char because int might match the return type of a GCC
8344 builtin and then its argument prototype would still apply. */
8345 #ifdef __cplusplus
8346 extern "C"
8347 #endif
8348 char XCreateWindow ();
8350 main ()
8352 return XCreateWindow ();
8354 return 0;
8356 _ACEOF
8357 if ac_fn_c_try_link "$LINENO"; then :
8358 case "$LIBEXT" in
8359 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8360 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'` ;;
8361 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8362 if test "x$ac_cv_lib_soname_X11" = x; then :
8363 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8364 fi ;;
8365 esac
8367 rm -f core conftest.err conftest.$ac_objext \
8368 conftest$ac_exeext conftest.$ac_ext
8369 LIBS=$ac_check_soname_save_LIBS
8371 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8373 $as_echo "not found" >&6; }
8375 else
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8377 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8379 cat >>confdefs.h <<_ACEOF
8380 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8381 _ACEOF
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8386 $as_echo_n "checking for -lXext... " >&6; }
8387 if ${ac_cv_lib_soname_Xext+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 ac_check_soname_save_LIBS=$LIBS
8391 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8395 /* Override any GCC internal prototype to avoid an error.
8396 Use char because int might match the return type of a GCC
8397 builtin and then its argument prototype would still apply. */
8398 #ifdef __cplusplus
8399 extern "C"
8400 #endif
8401 char XextCreateExtension ();
8403 main ()
8405 return XextCreateExtension ();
8407 return 0;
8409 _ACEOF
8410 if ac_fn_c_try_link "$LINENO"; then :
8411 case "$LIBEXT" in
8412 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8413 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'` ;;
8414 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8415 if test "x$ac_cv_lib_soname_Xext" = x; then :
8416 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8417 fi ;;
8418 esac
8420 rm -f core conftest.err conftest.$ac_objext \
8421 conftest$ac_exeext conftest.$ac_ext
8422 LIBS=$ac_check_soname_save_LIBS
8424 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8426 $as_echo "not found" >&6; }
8428 else
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8430 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8432 cat >>confdefs.h <<_ACEOF
8433 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8434 _ACEOF
8436 XLIB="-lXext $XLIB"
8439 for ac_header in X11/Xlib.h \
8440 X11/XKBlib.h \
8441 X11/Xutil.h \
8442 X11/Xcursor/Xcursor.h \
8443 X11/extensions/shape.h \
8444 X11/extensions/XInput.h \
8445 X11/extensions/XInput2.h \
8446 X11/extensions/XShm.h \
8447 X11/extensions/Xcomposite.h \
8448 X11/extensions/Xinerama.h \
8449 X11/extensions/Xrandr.h \
8450 X11/extensions/Xrender.h \
8451 X11/extensions/xf86vmode.h \
8452 X11/extensions/xf86vmproto.h
8453 do :
8454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8455 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8456 # include <X11/Xlib.h>
8457 #endif
8458 #ifdef HAVE_X11_XUTIL_H
8459 # include <X11/Xutil.h>
8460 #endif
8462 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8463 cat >>confdefs.h <<_ACEOF
8464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8465 _ACEOF
8469 done
8472 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8473 then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8475 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8476 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 ac_check_lib_save_LIBS=$LIBS
8480 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482 /* end confdefs.h. */
8484 /* Override any GCC internal prototype to avoid an error.
8485 Use char because int might match the return type of a GCC
8486 builtin and then its argument prototype would still apply. */
8487 #ifdef __cplusplus
8488 extern "C"
8489 #endif
8490 char XkbQueryExtension ();
8492 main ()
8494 return XkbQueryExtension ();
8496 return 0;
8498 _ACEOF
8499 if ac_fn_c_try_link "$LINENO"; then :
8500 ac_cv_lib_X11_XkbQueryExtension=yes
8501 else
8502 ac_cv_lib_X11_XkbQueryExtension=no
8504 rm -f core conftest.err conftest.$ac_objext \
8505 conftest$ac_exeext conftest.$ac_ext
8506 LIBS=$ac_check_lib_save_LIBS
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8509 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8510 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8512 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8518 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8519 then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8521 $as_echo_n "checking for -lXcursor... " >&6; }
8522 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8523 $as_echo_n "(cached) " >&6
8524 else
8525 ac_check_soname_save_LIBS=$LIBS
8526 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8530 /* Override any GCC internal prototype to avoid an error.
8531 Use char because int might match the return type of a GCC
8532 builtin and then its argument prototype would still apply. */
8533 #ifdef __cplusplus
8534 extern "C"
8535 #endif
8536 char XcursorImageLoadCursor ();
8538 main ()
8540 return XcursorImageLoadCursor ();
8542 return 0;
8544 _ACEOF
8545 if ac_fn_c_try_link "$LINENO"; then :
8546 case "$LIBEXT" in
8547 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8548 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'` ;;
8549 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8550 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
8551 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8552 fi ;;
8553 esac
8555 rm -f core conftest.err conftest.$ac_objext \
8556 conftest$ac_exeext conftest.$ac_ext
8557 LIBS=$ac_check_soname_save_LIBS
8559 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8561 $as_echo "not found" >&6; }
8563 else
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8565 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8567 cat >>confdefs.h <<_ACEOF
8568 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8569 _ACEOF
8574 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8575 case "x$with_xcursor" in
8576 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8577 xno) ;;
8578 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8579 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8580 esac
8583 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8584 then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8586 $as_echo_n "checking for -lXi... " >&6; }
8587 if ${ac_cv_lib_soname_Xi+:} false; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 ac_check_soname_save_LIBS=$LIBS
8591 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8593 /* end confdefs.h. */
8595 /* Override any GCC internal prototype to avoid an error.
8596 Use char because int might match the return type of a GCC
8597 builtin and then its argument prototype would still apply. */
8598 #ifdef __cplusplus
8599 extern "C"
8600 #endif
8601 char XOpenDevice ();
8603 main ()
8605 return XOpenDevice ();
8607 return 0;
8609 _ACEOF
8610 if ac_fn_c_try_link "$LINENO"; then :
8611 case "$LIBEXT" in
8612 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8613 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'` ;;
8614 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8615 if test "x$ac_cv_lib_soname_Xi" = x; then :
8616 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8617 fi ;;
8618 esac
8620 rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 LIBS=$ac_check_soname_save_LIBS
8624 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8626 $as_echo "not found" >&6; }
8628 else
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8630 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8632 cat >>confdefs.h <<_ACEOF
8633 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8634 _ACEOF
8639 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8640 case "x$with_xinput" in
8641 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8642 xno) ;;
8643 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8644 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8645 esac
8648 if test "x$ac_cv_lib_soname_Xi" != x
8649 then
8650 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8651 case "x$with_xinput2" in
8652 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8653 xno) ;;
8654 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8655 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8656 esac
8660 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8661 then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8663 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8664 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 ac_check_lib_save_LIBS=$LIBS
8668 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8670 /* end confdefs.h. */
8672 /* Override any GCC internal prototype to avoid an error.
8673 Use char because int might match the return type of a GCC
8674 builtin and then its argument prototype would still apply. */
8675 #ifdef __cplusplus
8676 extern "C"
8677 #endif
8678 char XShmQueryExtension ();
8680 main ()
8682 return XShmQueryExtension ();
8684 return 0;
8686 _ACEOF
8687 if ac_fn_c_try_link "$LINENO"; then :
8688 ac_cv_lib_Xext_XShmQueryExtension=yes
8689 else
8690 ac_cv_lib_Xext_XShmQueryExtension=no
8692 rm -f core conftest.err conftest.$ac_objext \
8693 conftest$ac_exeext conftest.$ac_ext
8694 LIBS=$ac_check_lib_save_LIBS
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8697 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8698 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8700 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8705 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8706 case "x$with_xshm" in
8707 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8708 xno) ;;
8709 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8710 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8711 esac
8714 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8715 then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8717 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8718 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8719 $as_echo_n "(cached) " >&6
8720 else
8721 ac_check_lib_save_LIBS=$LIBS
8722 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8726 /* Override any GCC internal prototype to avoid an error.
8727 Use char because int might match the return type of a GCC
8728 builtin and then its argument prototype would still apply. */
8729 #ifdef __cplusplus
8730 extern "C"
8731 #endif
8732 char XShapeQueryExtension ();
8734 main ()
8736 return XShapeQueryExtension ();
8738 return 0;
8740 _ACEOF
8741 if ac_fn_c_try_link "$LINENO"; then :
8742 ac_cv_lib_Xext_XShapeQueryExtension=yes
8743 else
8744 ac_cv_lib_Xext_XShapeQueryExtension=no
8746 rm -f core conftest.err conftest.$ac_objext \
8747 conftest$ac_exeext conftest.$ac_ext
8748 LIBS=$ac_check_lib_save_LIBS
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8751 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8752 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8754 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8759 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8760 case "x$with_xshape" in
8761 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8762 xno) ;;
8763 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8764 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8765 esac
8768 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8769 then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8771 $as_echo_n "checking for -lXxf86vm... " >&6; }
8772 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 ac_check_soname_save_LIBS=$LIBS
8776 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8780 /* Override any GCC internal prototype to avoid an error.
8781 Use char because int might match the return type of a GCC
8782 builtin and then its argument prototype would still apply. */
8783 #ifdef __cplusplus
8784 extern "C"
8785 #endif
8786 char XF86VidModeQueryExtension ();
8788 main ()
8790 return XF86VidModeQueryExtension ();
8792 return 0;
8794 _ACEOF
8795 if ac_fn_c_try_link "$LINENO"; then :
8796 case "$LIBEXT" in
8797 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8798 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'` ;;
8799 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8800 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
8801 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8802 fi ;;
8803 esac
8805 rm -f core conftest.err conftest.$ac_objext \
8806 conftest$ac_exeext conftest.$ac_ext
8807 LIBS=$ac_check_soname_save_LIBS
8809 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8811 $as_echo "not found" >&6; }
8813 else
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8815 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8817 cat >>confdefs.h <<_ACEOF
8818 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8819 _ACEOF
8824 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8825 case "x$with_xxf86vm" in
8826 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8827 xno) ;;
8828 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8829 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8830 esac
8833 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"
8834 then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8836 $as_echo_n "checking for -lXrender... " >&6; }
8837 if ${ac_cv_lib_soname_Xrender+:} false; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 ac_check_soname_save_LIBS=$LIBS
8841 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8845 /* Override any GCC internal prototype to avoid an error.
8846 Use char because int might match the return type of a GCC
8847 builtin and then its argument prototype would still apply. */
8848 #ifdef __cplusplus
8849 extern "C"
8850 #endif
8851 char XRenderQueryExtension ();
8853 main ()
8855 return XRenderQueryExtension ();
8857 return 0;
8859 _ACEOF
8860 if ac_fn_c_try_link "$LINENO"; then :
8861 case "$LIBEXT" in
8862 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8863 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'` ;;
8864 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8865 if test "x$ac_cv_lib_soname_Xrender" = x; then :
8866 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8867 fi ;;
8868 esac
8870 rm -f core conftest.err conftest.$ac_objext \
8871 conftest$ac_exeext conftest.$ac_ext
8872 LIBS=$ac_check_soname_save_LIBS
8874 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8876 $as_echo "not found" >&6; }
8878 else
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8880 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8882 cat >>confdefs.h <<_ACEOF
8883 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8884 _ACEOF
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8887 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8888 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8889 $as_echo_n "(cached) " >&6
8890 else
8891 ac_check_lib_save_LIBS=$LIBS
8892 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8896 /* Override any GCC internal prototype to avoid an error.
8897 Use char because int might match the return type of a GCC
8898 builtin and then its argument prototype would still apply. */
8899 #ifdef __cplusplus
8900 extern "C"
8901 #endif
8902 char XRenderSetPictureTransform ();
8904 main ()
8906 return XRenderSetPictureTransform ();
8908 return 0;
8910 _ACEOF
8911 if ac_fn_c_try_link "$LINENO"; then :
8912 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8913 else
8914 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8916 rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
8918 LIBS=$ac_check_lib_save_LIBS
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8921 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8922 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8924 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8929 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8930 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 ac_check_lib_save_LIBS=$LIBS
8934 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8938 /* Override any GCC internal prototype to avoid an error.
8939 Use char because int might match the return type of a GCC
8940 builtin and then its argument prototype would still apply. */
8941 #ifdef __cplusplus
8942 extern "C"
8943 #endif
8944 char XRenderCreateLinearGradient ();
8946 main ()
8948 return XRenderCreateLinearGradient ();
8950 return 0;
8952 _ACEOF
8953 if ac_fn_c_try_link "$LINENO"; then :
8954 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8955 else
8956 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8958 rm -f core conftest.err conftest.$ac_objext \
8959 conftest$ac_exeext conftest.$ac_ext
8960 LIBS=$ac_check_lib_save_LIBS
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8963 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8964 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8966 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8973 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8974 case "x$with_xrender" in
8975 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8976 xno) ;;
8977 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8978 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8979 esac
8982 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8983 then
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8986 #include <X11/Xlib.h>
8987 #include <X11/extensions/Xrandr.h>
8989 main ()
8991 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8993 return 0;
8995 _ACEOF
8996 if ac_fn_c_try_compile "$LINENO"; then :
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8998 $as_echo_n "checking for -lXrandr... " >&6; }
8999 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9000 $as_echo_n "(cached) " >&6
9001 else
9002 ac_check_soname_save_LIBS=$LIBS
9003 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h. */
9007 /* Override any GCC internal prototype to avoid an error.
9008 Use char because int might match the return type of a GCC
9009 builtin and then its argument prototype would still apply. */
9010 #ifdef __cplusplus
9011 extern "C"
9012 #endif
9013 char XRRQueryExtension ();
9015 main ()
9017 return XRRQueryExtension ();
9019 return 0;
9021 _ACEOF
9022 if ac_fn_c_try_link "$LINENO"; then :
9023 case "$LIBEXT" in
9024 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9025 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'` ;;
9026 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9027 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
9028 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9029 fi ;;
9030 esac
9032 rm -f core conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
9034 LIBS=$ac_check_soname_save_LIBS
9036 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9038 $as_echo "not found" >&6; }
9040 else
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9042 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9044 cat >>confdefs.h <<_ACEOF
9045 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9046 _ACEOF
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9050 #include <X11/Xlib.h>
9051 #include <X11/extensions/Xrandr.h>
9053 main ()
9055 static typeof(XRRGetScreenResources) *f; if (f) return 0;
9057 return 0;
9059 _ACEOF
9060 if ac_fn_c_try_compile "$LINENO"; then :
9062 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
9065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9071 case "x$with_xrandr" in
9072 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
9073 xno) ;;
9074 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
9075 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
9076 esac
9079 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9080 then
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9083 #include <X11/Xlib.h>
9084 #include <X11/extensions/Xinerama.h>
9086 main ()
9088 static typeof(XineramaQueryScreens) * func; if (func) return 0;
9090 return 0;
9092 _ACEOF
9093 if ac_fn_c_try_compile "$LINENO"; then :
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
9095 $as_echo_n "checking for -lXinerama... " >&6; }
9096 if ${ac_cv_lib_soname_Xinerama+:} false; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 ac_check_soname_save_LIBS=$LIBS
9100 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9104 /* Override any GCC internal prototype to avoid an error.
9105 Use char because int might match the return type of a GCC
9106 builtin and then its argument prototype would still apply. */
9107 #ifdef __cplusplus
9108 extern "C"
9109 #endif
9110 char XineramaQueryScreens ();
9112 main ()
9114 return XineramaQueryScreens ();
9116 return 0;
9118 _ACEOF
9119 if ac_fn_c_try_link "$LINENO"; then :
9120 case "$LIBEXT" in
9121 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9122 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'` ;;
9123 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9124 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
9125 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9126 fi ;;
9127 esac
9129 rm -f core conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
9131 LIBS=$ac_check_soname_save_LIBS
9133 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9135 $as_echo "not found" >&6; }
9137 else
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
9139 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
9141 cat >>confdefs.h <<_ACEOF
9142 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
9143 _ACEOF
9148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9151 case "x$with_xinerama" in
9152 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
9153 xno) ;;
9154 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
9155 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
9156 esac
9159 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
9160 then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
9162 $as_echo_n "checking for -lXcomposite... " >&6; }
9163 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 ac_check_soname_save_LIBS=$LIBS
9167 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9171 /* Override any GCC internal prototype to avoid an error.
9172 Use char because int might match the return type of a GCC
9173 builtin and then its argument prototype would still apply. */
9174 #ifdef __cplusplus
9175 extern "C"
9176 #endif
9177 char XCompositeRedirectWindow ();
9179 main ()
9181 return XCompositeRedirectWindow ();
9183 return 0;
9185 _ACEOF
9186 if ac_fn_c_try_link "$LINENO"; then :
9187 case "$LIBEXT" in
9188 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9189 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'` ;;
9190 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9191 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
9192 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9193 fi ;;
9194 esac
9196 rm -f core conftest.err conftest.$ac_objext \
9197 conftest$ac_exeext conftest.$ac_ext
9198 LIBS=$ac_check_soname_save_LIBS
9200 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9202 $as_echo "not found" >&6; }
9204 else
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
9206 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
9208 cat >>confdefs.h <<_ACEOF
9209 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
9210 _ACEOF
9215 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9216 case "x$with_xcomposite" in
9217 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
9218 xno) ;;
9219 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
9220 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
9221 esac
9224 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
9225 #include <X11/Xlib.h>
9226 #endif
9228 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
9230 cat >>confdefs.h <<_ACEOF
9231 #define HAVE_XICCALLBACK_CALLBACK 1
9232 _ACEOF
9236 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
9237 #include <X11/Xlib.h>
9238 #endif
9240 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
9242 cat >>confdefs.h <<_ACEOF
9243 #define HAVE_XEVENT_XCOOKIE 1
9244 _ACEOF
9251 opengl_msg=""
9252 if test "x$with_opengl" != "xno"
9253 then
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9255 $as_echo_n "checking for -lGL... " >&6; }
9256 if ${ac_cv_lib_soname_GL+:} false; then :
9257 $as_echo_n "(cached) " >&6
9258 else
9259 ac_check_soname_save_LIBS=$LIBS
9260 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9264 /* Override any GCC internal prototype to avoid an error.
9265 Use char because int might match the return type of a GCC
9266 builtin and then its argument prototype would still apply. */
9267 #ifdef __cplusplus
9268 extern "C"
9269 #endif
9270 char glXCreateContext ();
9272 main ()
9274 return glXCreateContext ();
9276 return 0;
9278 _ACEOF
9279 if ac_fn_c_try_link "$LINENO"; then :
9280 case "$LIBEXT" in
9281 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9282 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'` ;;
9283 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9284 if test "x$ac_cv_lib_soname_GL" = x; then :
9285 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9286 fi ;;
9287 esac
9289 rm -f core conftest.err conftest.$ac_objext \
9290 conftest$ac_exeext conftest.$ac_ext
9291 LIBS=$ac_check_soname_save_LIBS
9293 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9295 $as_echo "not found" >&6; }
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9297 $as_echo_n "checking for -lGL... " >&6; }
9298 if ${ac_cv_lib_soname_GL+:} false; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 ac_check_soname_save_LIBS=$LIBS
9302 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib $LIBS"
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9306 /* Override any GCC internal prototype to avoid an error.
9307 Use char because int might match the return type of a GCC
9308 builtin and then its argument prototype would still apply. */
9309 #ifdef __cplusplus
9310 extern "C"
9311 #endif
9312 char glXCreateContext ();
9314 main ()
9316 return glXCreateContext ();
9318 return 0;
9320 _ACEOF
9321 if ac_fn_c_try_link "$LINENO"; then :
9322 case "$LIBEXT" in
9323 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9324 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'` ;;
9325 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9326 if test "x$ac_cv_lib_soname_GL" = x; then :
9327 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9328 fi ;;
9329 esac
9331 rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9333 LIBS=$ac_check_soname_save_LIBS
9335 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9337 $as_echo "not found" >&6; }
9338 if test -f /usr/X11R6/lib/libGL.a
9339 then
9340 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
9341 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
9342 else
9343 opengl_msg="No OpenGL library found on this system."
9345 else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9347 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9349 cat >>confdefs.h <<_ACEOF
9350 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9351 _ACEOF
9353 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"
9355 else
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9357 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9359 cat >>confdefs.h <<_ACEOF
9360 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9361 _ACEOF
9363 OPENGL_LIBS="-lGL"
9365 if test "x$with_glu" != "xno"
9366 then
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
9368 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
9369 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 ac_check_lib_save_LIBS=$LIBS
9373 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h. */
9377 /* Override any GCC internal prototype to avoid an error.
9378 Use char because int might match the return type of a GCC
9379 builtin and then its argument prototype would still apply. */
9380 #ifdef __cplusplus
9381 extern "C"
9382 #endif
9383 char gluLookAt ();
9385 main ()
9387 return gluLookAt ();
9389 return 0;
9391 _ACEOF
9392 if ac_fn_c_try_link "$LINENO"; then :
9393 ac_cv_lib_GLU_gluLookAt=yes
9394 else
9395 ac_cv_lib_GLU_gluLookAt=no
9397 rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399 LIBS=$ac_check_lib_save_LIBS
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9402 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9403 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9407 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9408 case "x$with_glu" in
9409 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9410 xno) ;;
9411 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9412 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9413 esac
9417 if test "x$with_osmesa" != "xno"
9418 then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9420 $as_echo_n "checking for -lOSMesa... " >&6; }
9421 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 ac_check_soname_save_LIBS=$LIBS
9425 LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9429 /* Override any GCC internal prototype to avoid an error.
9430 Use char because int might match the return type of a GCC
9431 builtin and then its argument prototype would still apply. */
9432 #ifdef __cplusplus
9433 extern "C"
9434 #endif
9435 char glAccum ();
9437 main ()
9439 return glAccum ();
9441 return 0;
9443 _ACEOF
9444 if ac_fn_c_try_link "$LINENO"; then :
9445 case "$LIBEXT" in
9446 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9447 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'` ;;
9448 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9449 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
9450 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9451 fi ;;
9452 esac
9454 rm -f core conftest.err conftest.$ac_objext \
9455 conftest$ac_exeext conftest.$ac_ext
9456 LIBS=$ac_check_soname_save_LIBS
9458 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9460 $as_echo "not found" >&6; }
9462 else
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
9464 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
9466 cat >>confdefs.h <<_ACEOF
9467 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
9468 _ACEOF
9472 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9473 case "x$with_osmesa" in
9474 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
9475 xno) ;;
9476 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
9477 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
9478 esac
9482 if test -n "$opengl_msg"; then :
9483 case "x$with_opengl" in
9484 x) as_fn_append wine_warnings "|$opengl_msg
9485 OpenGL and Direct3D won't be supported." ;;
9486 xno) ;;
9487 *) as_fn_error $? "$opengl_msg
9488 OpenGL and Direct3D won't be supported.
9489 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9490 esac
9493 CPPFLAGS="$ac_save_CPPFLAGS"
9494 else
9495 XLIB=""
9496 X_CFLAGS=""
9497 X_LIBS=""
9498 enable_winex11_drv=${enable_winex11_drv:-no}
9500 if test "x$XLIB" = "x"; then :
9501 case "x$with_x" in
9502 xno) ;;
9503 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9504 without X support, which probably isn't what you want. You will need
9505 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9506 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9507 esac
9510 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
9512 if test "$ac_cv_header_CL_cl_h" = "yes"
9513 then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9515 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9516 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 ac_check_lib_save_LIBS=$LIBS
9520 LIBS="-lOpenCL $LIBS"
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9524 /* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9527 #ifdef __cplusplus
9528 extern "C"
9529 #endif
9530 char clGetPlatformInfo ();
9532 main ()
9534 return clGetPlatformInfo ();
9536 return 0;
9538 _ACEOF
9539 if ac_fn_c_try_link "$LINENO"; then :
9540 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9541 else
9542 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9544 rm -f core conftest.err conftest.$ac_objext \
9545 conftest$ac_exeext conftest.$ac_ext
9546 LIBS=$ac_check_lib_save_LIBS
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9549 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9550 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9551 LIBOPENCL="-lOpenCL"
9556 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9557 case "x$with_opencl" in
9558 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9559 xno) ;;
9560 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9561 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9562 esac
9564 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9567 if test "x$with_xml" != "xno"
9568 then
9569 ac_save_CPPFLAGS="$CPPFLAGS"
9570 if test -n "$ac_tool_prefix"; then
9571 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9572 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9574 $as_echo_n "checking for $ac_word... " >&6; }
9575 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
9576 $as_echo_n "(cached) " >&6
9577 else
9578 if test -n "$PKG_CONFIG"; then
9579 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
9580 else
9581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9582 for as_dir in $PATH
9584 IFS=$as_save_IFS
9585 test -z "$as_dir" && as_dir=.
9586 for ac_exec_ext in '' $ac_executable_extensions; do
9587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9588 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
9589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9590 break 2
9592 done
9593 done
9594 IFS=$as_save_IFS
9598 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
9599 if test -n "$PKG_CONFIG"; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9601 $as_echo "$PKG_CONFIG" >&6; }
9602 else
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 $as_echo "no" >&6; }
9609 if test -z "$ac_cv_prog_PKG_CONFIG"; then
9610 ac_ct_PKG_CONFIG=$PKG_CONFIG
9611 # Extract the first word of "pkg-config", so it can be a program name with args.
9612 set dummy pkg-config; ac_word=$2
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614 $as_echo_n "checking for $ac_word... " >&6; }
9615 if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
9616 $as_echo_n "(cached) " >&6
9617 else
9618 if test -n "$ac_ct_PKG_CONFIG"; then
9619 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
9620 else
9621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622 for as_dir in $PATH
9624 IFS=$as_save_IFS
9625 test -z "$as_dir" && as_dir=.
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9628 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9630 break 2
9632 done
9633 done
9634 IFS=$as_save_IFS
9638 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
9639 if test -n "$ac_ct_PKG_CONFIG"; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
9641 $as_echo "$ac_ct_PKG_CONFIG" >&6; }
9642 else
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9647 if test "x$ac_ct_PKG_CONFIG" = x; then
9648 PKG_CONFIG=""
9649 else
9650 case $cross_compiling:$ac_tool_warned in
9651 yes:)
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9654 ac_tool_warned=yes ;;
9655 esac
9656 PKG_CONFIG=$ac_ct_PKG_CONFIG
9658 else
9659 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
9662 if test -n "$XML2_CFLAGS"; then :
9664 elif test -n "$PKG_CONFIG"; then :
9665 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
9667 XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
9668 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
9669 if test -n "$XML2_LIBS"; then :
9671 elif test -n "$PKG_CONFIG"; then :
9672 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
9674 XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
9675 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
9676 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9677 do :
9678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9679 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9680 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9681 cat >>confdefs.h <<_ACEOF
9682 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9683 _ACEOF
9687 done
9689 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"
9690 then
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9692 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9693 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9694 $as_echo_n "(cached) " >&6
9695 else
9696 ac_check_lib_save_LIBS=$LIBS
9697 LIBS="-lxml2 $XML2_LIBS $LIBS"
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9701 /* Override any GCC internal prototype to avoid an error.
9702 Use char because int might match the return type of a GCC
9703 builtin and then its argument prototype would still apply. */
9704 #ifdef __cplusplus
9705 extern "C"
9706 #endif
9707 char xmlParseMemory ();
9709 main ()
9711 return xmlParseMemory ();
9713 return 0;
9715 _ACEOF
9716 if ac_fn_c_try_link "$LINENO"; then :
9717 ac_cv_lib_xml2_xmlParseMemory=yes
9718 else
9719 ac_cv_lib_xml2_xmlParseMemory=no
9721 rm -f core conftest.err conftest.$ac_objext \
9722 conftest$ac_exeext conftest.$ac_ext
9723 LIBS=$ac_check_lib_save_LIBS
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9726 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9727 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9729 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9731 else
9732 XML2_LIBS=""
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9736 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9737 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9738 $as_echo_n "(cached) " >&6
9739 else
9740 ac_check_lib_save_LIBS=$LIBS
9741 LIBS="-lxml2 $XML2_LIBS $LIBS"
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9745 /* Override any GCC internal prototype to avoid an error.
9746 Use char because int might match the return type of a GCC
9747 builtin and then its argument prototype would still apply. */
9748 #ifdef __cplusplus
9749 extern "C"
9750 #endif
9751 char xmlReadMemory ();
9753 main ()
9755 return xmlReadMemory ();
9757 return 0;
9759 _ACEOF
9760 if ac_fn_c_try_link "$LINENO"; then :
9761 ac_cv_lib_xml2_xmlReadMemory=yes
9762 else
9763 ac_cv_lib_xml2_xmlReadMemory=no
9765 rm -f core conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767 LIBS=$ac_check_lib_save_LIBS
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9770 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9771 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9773 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9778 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9779 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781 else
9782 ac_check_lib_save_LIBS=$LIBS
9783 LIBS="-lxml2 $XML2_LIBS $LIBS"
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9787 /* Override any GCC internal prototype to avoid an error.
9788 Use char because int might match the return type of a GCC
9789 builtin and then its argument prototype would still apply. */
9790 #ifdef __cplusplus
9791 extern "C"
9792 #endif
9793 char xmlNewDocPI ();
9795 main ()
9797 return xmlNewDocPI ();
9799 return 0;
9801 _ACEOF
9802 if ac_fn_c_try_link "$LINENO"; then :
9803 ac_cv_lib_xml2_xmlNewDocPI=yes
9804 else
9805 ac_cv_lib_xml2_xmlNewDocPI=no
9807 rm -f core conftest.err conftest.$ac_objext \
9808 conftest$ac_exeext conftest.$ac_ext
9809 LIBS=$ac_check_lib_save_LIBS
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9812 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9813 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9815 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9820 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9821 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9822 $as_echo_n "(cached) " >&6
9823 else
9824 ac_check_lib_save_LIBS=$LIBS
9825 LIBS="-lxml2 $XML2_LIBS $LIBS"
9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9829 /* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
9832 #ifdef __cplusplus
9833 extern "C"
9834 #endif
9835 char xmlSchemaSetParserStructuredErrors ();
9837 main ()
9839 return xmlSchemaSetParserStructuredErrors ();
9841 return 0;
9843 _ACEOF
9844 if ac_fn_c_try_link "$LINENO"; then :
9845 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9846 else
9847 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9849 rm -f core conftest.err conftest.$ac_objext \
9850 conftest$ac_exeext conftest.$ac_ext
9851 LIBS=$ac_check_lib_save_LIBS
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9854 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9855 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9857 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9862 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9863 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9864 $as_echo_n "(cached) " >&6
9865 else
9866 ac_check_lib_save_LIBS=$LIBS
9867 LIBS="-lxml2 $XML2_LIBS $LIBS"
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9871 /* Override any GCC internal prototype to avoid an error.
9872 Use char because int might match the return type of a GCC
9873 builtin and then its argument prototype would still apply. */
9874 #ifdef __cplusplus
9875 extern "C"
9876 #endif
9877 char xmlSchemaSetValidStructuredErrors ();
9879 main ()
9881 return xmlSchemaSetValidStructuredErrors ();
9883 return 0;
9885 _ACEOF
9886 if ac_fn_c_try_link "$LINENO"; then :
9887 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9888 else
9889 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9891 rm -f core conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893 LIBS=$ac_check_lib_save_LIBS
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9896 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9897 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9899 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9904 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9905 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9906 $as_echo_n "(cached) " >&6
9907 else
9908 ac_check_lib_save_LIBS=$LIBS
9909 LIBS="-lxml2 $XML2_LIBS $LIBS"
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9913 /* Override any GCC internal prototype to avoid an error.
9914 Use char because int might match the return type of a GCC
9915 builtin and then its argument prototype would still apply. */
9916 #ifdef __cplusplus
9917 extern "C"
9918 #endif
9919 char xmlFirstElementChild ();
9921 main ()
9923 return xmlFirstElementChild ();
9925 return 0;
9927 _ACEOF
9928 if ac_fn_c_try_link "$LINENO"; then :
9929 ac_cv_lib_xml2_xmlFirstElementChild=yes
9930 else
9931 ac_cv_lib_xml2_xmlFirstElementChild=no
9933 rm -f core conftest.err conftest.$ac_objext \
9934 conftest$ac_exeext conftest.$ac_ext
9935 LIBS=$ac_check_lib_save_LIBS
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9938 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9939 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9941 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9945 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9947 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9949 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9953 else
9954 XML2_CFLAGS=""
9955 XML2_LIBS=""
9957 CPPFLAGS="$ac_save_CPPFLAGS"
9959 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9960 case "x$with_xml" in
9961 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9962 xno) ;;
9963 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9964 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9965 esac
9968 if test "x$with_xslt" != "xno"
9969 then
9970 ac_save_CPPFLAGS="$CPPFLAGS"
9971 if test -n "$XSLT_CFLAGS"; then :
9973 elif test -n "$PKG_CONFIG"; then :
9974 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
9976 XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
9977 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
9978 if test -n "$XSLT_LIBS"; then :
9980 elif test -n "$PKG_CONFIG"; then :
9981 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
9983 XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
9984 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
9985 for ac_header in libxslt/pattern.h libxslt/transform.h
9986 do :
9987 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9988 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9989 # include <libxslt/pattern.h>
9990 #endif
9992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9993 cat >>confdefs.h <<_ACEOF
9994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9995 _ACEOF
9999 done
10001 CPPFLAGS="$ac_save_CPPFLAGS"
10002 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10003 then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10005 $as_echo_n "checking for -lxslt... " >&6; }
10006 if ${ac_cv_lib_soname_xslt+:} false; then :
10007 $as_echo_n "(cached) " >&6
10008 else
10009 ac_check_soname_save_LIBS=$LIBS
10010 LIBS="-lxslt $XSLT_LIBS $LIBS"
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10014 /* Override any GCC internal prototype to avoid an error.
10015 Use char because int might match the return type of a GCC
10016 builtin and then its argument prototype would still apply. */
10017 #ifdef __cplusplus
10018 extern "C"
10019 #endif
10020 char xsltCompilePattern ();
10022 main ()
10024 return xsltCompilePattern ();
10026 return 0;
10028 _ACEOF
10029 if ac_fn_c_try_link "$LINENO"; then :
10030 case "$LIBEXT" in
10031 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10032 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'` ;;
10033 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10034 if test "x$ac_cv_lib_soname_xslt" = x; then :
10035 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10036 fi ;;
10037 esac
10039 rm -f core conftest.err conftest.$ac_objext \
10040 conftest$ac_exeext conftest.$ac_ext
10041 LIBS=$ac_check_soname_save_LIBS
10043 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10045 $as_echo "not found" >&6; }
10047 else
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10049 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10051 cat >>confdefs.h <<_ACEOF
10052 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10053 _ACEOF
10057 else
10058 XSLT_CFLAGS=""
10061 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10062 case "x$with_xslt" in
10063 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10064 xno) ;;
10065 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10066 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10067 esac
10070 if test "x$with_dbus" != "xno"
10071 then
10072 ac_save_CPPFLAGS="$CPPFLAGS"
10073 if test -n "$DBUS_CFLAGS"; then :
10075 elif test -n "$PKG_CONFIG"; then :
10076 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10079 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10080 if test -n "$DBUS_LIBS"; then :
10082 elif test -n "$PKG_CONFIG"; then :
10083 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10087 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10088 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10090 $as_echo_n "checking for -ldbus-1... " >&6; }
10091 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10092 $as_echo_n "(cached) " >&6
10093 else
10094 ac_check_soname_save_LIBS=$LIBS
10095 LIBS="-ldbus-1 $DBUS_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 dbus_connection_close ();
10107 main ()
10109 return dbus_connection_close ();
10111 return 0;
10113 _ACEOF
10114 if ac_fn_c_try_link "$LINENO"; then :
10115 case "$LIBEXT" in
10116 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10117 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'` ;;
10118 *) 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'`
10119 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10120 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$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 test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10130 $as_echo "not found" >&6; }
10131 DBUS_CFLAGS=""
10132 else
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10134 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10136 cat >>confdefs.h <<_ACEOF
10137 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10138 _ACEOF
10142 else
10143 DBUS_CFLAGS=""
10147 CPPFLAGS="$ac_save_CPPFLAGS"
10149 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
10150 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10151 case "x$with_dbus" in
10152 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
10153 xno) ;;
10154 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
10155 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
10156 esac
10159 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
10160 then
10161 ac_save_CPPFLAGS="$CPPFLAGS"
10162 if test -n "$HAL_CFLAGS"; then :
10164 elif test -n "$PKG_CONFIG"; then :
10165 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
10168 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
10169 if test -n "$HAL_LIBS"; then :
10171 elif test -n "$PKG_CONFIG"; then :
10172 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
10175 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
10176 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
10177 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
10179 $as_echo_n "checking for -lhal... " >&6; }
10180 if ${ac_cv_lib_soname_hal+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 ac_check_soname_save_LIBS=$LIBS
10184 LIBS="-lhal $HAL_LIBS $LIBS"
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10188 /* Override any GCC internal prototype to avoid an error.
10189 Use char because int might match the return type of a GCC
10190 builtin and then its argument prototype would still apply. */
10191 #ifdef __cplusplus
10192 extern "C"
10193 #endif
10194 char libhal_ctx_new ();
10196 main ()
10198 return libhal_ctx_new ();
10200 return 0;
10202 _ACEOF
10203 if ac_fn_c_try_link "$LINENO"; then :
10204 case "$LIBEXT" in
10205 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10206 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'` ;;
10207 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10208 if test "x$ac_cv_lib_soname_hal" = x; then :
10209 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10210 fi ;;
10211 esac
10213 rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215 LIBS=$ac_check_soname_save_LIBS
10217 if test "x$ac_cv_lib_soname_hal" = "x"; then :
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10219 $as_echo "not found" >&6; }
10220 HAL_CFLAGS=""
10221 else
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
10223 $as_echo "$ac_cv_lib_soname_hal" >&6; }
10225 cat >>confdefs.h <<_ACEOF
10226 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
10227 _ACEOF
10231 else
10232 HAL_CFLAGS=""
10236 CPPFLAGS="$ac_save_CPPFLAGS"
10237 if test "x$ac_cv_lib_soname_hal" = "x" -a \
10238 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10239 case "x$with_hal" in
10240 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
10241 xno) ;;
10242 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
10243 This is an error since --with-hal was requested." "$LINENO" 5 ;;
10244 esac
10248 if test "x$with_gnutls" != "xno"
10249 then
10250 ac_save_CPPFLAGS="$CPPFLAGS"
10251 if test -n "$GNUTLS_CFLAGS"; then :
10253 elif test -n "$PKG_CONFIG"; then :
10254 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
10257 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
10258 if test -n "$GNUTLS_LIBS"; then :
10260 elif test -n "$PKG_CONFIG"; then :
10261 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
10265 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
10266 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10269 #include <gnutls/gnutls.h>
10271 main ()
10273 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
10275 return 0;
10277 _ACEOF
10278 if ac_fn_c_try_compile "$LINENO"; then :
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
10280 $as_echo_n "checking for -lgnutls... " >&6; }
10281 if ${ac_cv_lib_soname_gnutls+:} false; then :
10282 $as_echo_n "(cached) " >&6
10283 else
10284 ac_check_soname_save_LIBS=$LIBS
10285 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10289 /* Override any GCC internal prototype to avoid an error.
10290 Use char because int might match the return type of a GCC
10291 builtin and then its argument prototype would still apply. */
10292 #ifdef __cplusplus
10293 extern "C"
10294 #endif
10295 char gnutls_global_init ();
10297 main ()
10299 return gnutls_global_init ();
10301 return 0;
10303 _ACEOF
10304 if ac_fn_c_try_link "$LINENO"; then :
10305 case "$LIBEXT" in
10306 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10307 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'` ;;
10308 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10309 if test "x$ac_cv_lib_soname_gnutls" = x; then :
10310 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10311 fi ;;
10312 esac
10314 rm -f core conftest.err conftest.$ac_objext \
10315 conftest$ac_exeext conftest.$ac_ext
10316 LIBS=$ac_check_soname_save_LIBS
10318 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10320 $as_echo "not found" >&6; }
10321 GNUTLS_CFLAGS=""
10322 else
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
10324 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
10326 cat >>confdefs.h <<_ACEOF
10327 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
10328 _ACEOF
10333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10334 else
10335 GNUTLS_CFLAGS=""
10339 CPPFLAGS="$ac_save_CPPFLAGS"
10341 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10342 case "x$with_gnutls" in
10343 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
10344 xno) ;;
10345 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
10346 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
10347 esac
10350 CURSESLIBS=""
10351 if test "$ac_cv_header_ncurses_h" = "yes"
10352 then
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
10354 $as_echo_n "checking for -lncurses... " >&6; }
10355 if ${ac_cv_lib_soname_ncurses+:} false; then :
10356 $as_echo_n "(cached) " >&6
10357 else
10358 ac_check_soname_save_LIBS=$LIBS
10359 LIBS="-lncurses $LIBS"
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10363 /* Override any GCC internal prototype to avoid an error.
10364 Use char because int might match the return type of a GCC
10365 builtin and then its argument prototype would still apply. */
10366 #ifdef __cplusplus
10367 extern "C"
10368 #endif
10369 char waddch ();
10371 main ()
10373 return waddch ();
10375 return 0;
10377 _ACEOF
10378 if ac_fn_c_try_link "$LINENO"; then :
10379 case "$LIBEXT" in
10380 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10381 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'` ;;
10382 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10383 if test "x$ac_cv_lib_soname_ncurses" = x; then :
10384 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10385 fi ;;
10386 esac
10388 rm -f core conftest.err conftest.$ac_objext \
10389 conftest$ac_exeext conftest.$ac_ext
10390 LIBS=$ac_check_soname_save_LIBS
10392 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10394 $as_echo "not found" >&6; }
10396 else
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
10398 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
10400 cat >>confdefs.h <<_ACEOF
10401 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
10402 _ACEOF
10404 CURSESLIBS="-lncurses"
10406 elif test "$ac_cv_header_curses_h" = "yes"
10407 then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
10409 $as_echo_n "checking for -lcurses... " >&6; }
10410 if ${ac_cv_lib_soname_curses+:} false; then :
10411 $as_echo_n "(cached) " >&6
10412 else
10413 ac_check_soname_save_LIBS=$LIBS
10414 LIBS="-lcurses $LIBS"
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10418 /* Override any GCC internal prototype to avoid an error.
10419 Use char because int might match the return type of a GCC
10420 builtin and then its argument prototype would still apply. */
10421 #ifdef __cplusplus
10422 extern "C"
10423 #endif
10424 char waddch ();
10426 main ()
10428 return waddch ();
10430 return 0;
10432 _ACEOF
10433 if ac_fn_c_try_link "$LINENO"; then :
10434 case "$LIBEXT" in
10435 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10436 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'` ;;
10437 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10438 if test "x$ac_cv_lib_soname_curses" = x; then :
10439 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10440 fi ;;
10441 esac
10443 rm -f core conftest.err conftest.$ac_objext \
10444 conftest$ac_exeext conftest.$ac_ext
10445 LIBS=$ac_check_soname_save_LIBS
10447 if test "x$ac_cv_lib_soname_curses" = "x"; then :
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10449 $as_echo "not found" >&6; }
10451 else
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
10453 $as_echo "$ac_cv_lib_soname_curses" >&6; }
10455 cat >>confdefs.h <<_ACEOF
10456 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
10457 _ACEOF
10459 CURSESLIBS="-lcurses"
10462 ac_save_LIBS="$LIBS"
10463 LIBS="$LIBS $CURSESLIBS"
10464 for ac_func in mousemask
10465 do :
10466 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
10467 if test "x$ac_cv_func_mousemask" = xyes; then :
10468 cat >>confdefs.h <<_ACEOF
10469 #define HAVE_MOUSEMASK 1
10470 _ACEOF
10473 done
10475 LIBS="$ac_save_LIBS"
10476 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
10477 case "x$with_curses" in
10478 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
10479 xno) ;;
10480 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
10481 This is an error since --with-curses was requested." "$LINENO" 5 ;;
10482 esac
10485 if test "x$with_sane" != "xno"
10486 then
10487 ac_save_CPPFLAGS="$CPPFLAGS"
10488 if test -n "$SANE_CFLAGS"; then :
10490 elif test -n "$PKG_CONFIG"; then :
10491 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
10493 SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
10494 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
10495 if test -n "$SANE_LIBS"; then :
10497 elif test -n "$PKG_CONFIG"; then :
10498 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
10500 SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
10502 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10503 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10505 $as_echo_n "checking for -lsane... " >&6; }
10506 if ${ac_cv_lib_soname_sane+:} false; then :
10507 $as_echo_n "(cached) " >&6
10508 else
10509 ac_check_soname_save_LIBS=$LIBS
10510 LIBS="-lsane $SANE_LIBS $LIBS"
10511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10512 /* end confdefs.h. */
10514 /* Override any GCC internal prototype to avoid an error.
10515 Use char because int might match the return type of a GCC
10516 builtin and then its argument prototype would still apply. */
10517 #ifdef __cplusplus
10518 extern "C"
10519 #endif
10520 char sane_init ();
10522 main ()
10524 return sane_init ();
10526 return 0;
10528 _ACEOF
10529 if ac_fn_c_try_link "$LINENO"; then :
10530 case "$LIBEXT" in
10531 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10532 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'` ;;
10533 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10534 if test "x$ac_cv_lib_soname_sane" = x; then :
10535 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10536 fi ;;
10537 esac
10539 rm -f core conftest.err conftest.$ac_objext \
10540 conftest$ac_exeext conftest.$ac_ext
10541 LIBS=$ac_check_soname_save_LIBS
10543 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10545 $as_echo "not found" >&6; }
10546 SANE_CFLAGS=""
10547 else
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10549 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10551 cat >>confdefs.h <<_ACEOF
10552 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10553 _ACEOF
10557 SANE_CFLAGS=""
10561 CPPFLAGS="$ac_save_CPPFLAGS"
10563 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10564 case "x$with_sane" in
10565 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10566 xno) ;;
10567 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10568 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10569 esac
10572 if test "x$with_v4l" != "xno"
10573 then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10575 $as_echo_n "checking for -lv4l1... " >&6; }
10576 if ${ac_cv_lib_soname_v4l1+:} false; then :
10577 $as_echo_n "(cached) " >&6
10578 else
10579 ac_check_soname_save_LIBS=$LIBS
10580 LIBS="-lv4l1 $LIBS"
10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h. */
10584 /* Override any GCC internal prototype to avoid an error.
10585 Use char because int might match the return type of a GCC
10586 builtin and then its argument prototype would still apply. */
10587 #ifdef __cplusplus
10588 extern "C"
10589 #endif
10590 char v4l1_open ();
10592 main ()
10594 return v4l1_open ();
10596 return 0;
10598 _ACEOF
10599 if ac_fn_c_try_link "$LINENO"; then :
10600 case "$LIBEXT" in
10601 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10602 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'` ;;
10603 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10604 if test "x$ac_cv_lib_soname_v4l1" = x; then :
10605 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10606 fi ;;
10607 esac
10609 rm -f core conftest.err conftest.$ac_objext \
10610 conftest$ac_exeext conftest.$ac_ext
10611 LIBS=$ac_check_soname_save_LIBS
10613 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10615 $as_echo "not found" >&6; }
10617 else
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10619 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10621 cat >>confdefs.h <<_ACEOF
10622 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10623 _ACEOF
10628 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10629 case "x$with_v4l" in
10630 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10631 xno) ;;
10632 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10633 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10634 esac
10637 if test "x$with_gphoto" != "xno"
10638 then
10639 ac_save_CPPFLAGS="$CPPFLAGS"
10640 if test -n "$GPHOTO2_CFLAGS"; then :
10642 elif test -n "$PKG_CONFIG"; then :
10643 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
10645 GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`(gphoto2-config --cflags || gphoto2-port-config --cflags) 2>/dev/null`}
10646 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
10647 if test -n "$GPHOTO2_LIBS"; then :
10649 elif test -n "$PKG_CONFIG"; then :
10650 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
10652 GPHOTO2_LIBS=${GPHOTO2_LIBS:-`(gphoto2-config --libs || gphoto2-port-config --libs) 2>/dev/null`}
10653 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
10654 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10655 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10657 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10658 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10659 $as_echo_n "(cached) " >&6
10660 else
10661 ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-lgphoto2 $GPHOTO2_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 gp_camera_new ();
10674 main ()
10676 return gp_camera_new ();
10678 return 0;
10680 _ACEOF
10681 if ac_fn_c_try_link "$LINENO"; then :
10682 ac_cv_lib_gphoto2_gp_camera_new=yes
10683 else
10684 ac_cv_lib_gphoto2_gp_camera_new=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_gphoto2_gp_camera_new" >&5
10691 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10692 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10694 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10696 else
10697 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10700 else
10701 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10705 CPPFLAGS="$ac_save_CPPFLAGS"
10707 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10708 case "x$with_gphoto" in
10709 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10710 xno) ;;
10711 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10712 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10713 esac
10717 if test "$ac_cv_header_resolv_h" = "yes"
10718 then
10719 ac_save_LIBS="$LIBS"
10720 for lib in '' -lresolv
10722 LIBS="$lib $ac_save_LIBS"
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10725 #ifdef HAVE_NETINET_IN_H
10726 #include <netinet/in.h>
10727 #endif
10728 #include <resolv.h>
10730 main ()
10732 res_query("foo",ns_c_in,0,0,0);
10734 return 0;
10736 _ACEOF
10737 if ac_fn_c_try_link "$LINENO"; then :
10739 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10741 RESOLVLIBS="$lib"
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10746 if test "${RESOLVLIBS+set}" = set; then
10747 break
10749 done
10750 LIBS="$ac_save_LIBS"
10753 LCMSLIBS=""
10755 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10756 then
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10758 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10759 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 ac_check_lib_save_LIBS=$LIBS
10763 LIBS="-llcms $LIBS"
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10767 /* Override any GCC internal prototype to avoid an error.
10768 Use char because int might match the return type of a GCC
10769 builtin and then its argument prototype would still apply. */
10770 #ifdef __cplusplus
10771 extern "C"
10772 #endif
10773 char cmsOpenProfileFromFile ();
10775 main ()
10777 return cmsOpenProfileFromFile ();
10779 return 0;
10781 _ACEOF
10782 if ac_fn_c_try_link "$LINENO"; then :
10783 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10784 else
10785 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10787 rm -f core conftest.err conftest.$ac_objext \
10788 conftest$ac_exeext conftest.$ac_ext
10789 LIBS=$ac_check_lib_save_LIBS
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10792 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10793 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10795 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10797 LCMSLIBS="-llcms"
10801 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10802 case "x$with_cms" in
10803 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10804 xno) ;;
10805 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10806 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10807 esac
10810 if test "x$with_freetype" != "xno"
10811 then
10812 if test "$PKG_CONFIG" != "false"
10813 then
10814 ac_freetype_incl="`$PKG_CONFIG --cflags freetype2 2>/dev/null`"
10815 ac_freetype_libs="`$PKG_CONFIG --libs freetype2 2>/dev/null`"
10816 else
10817 for ac_prog in freetype-config freetype2-config
10819 # Extract the first word of "$ac_prog", so it can be a program name with args.
10820 set dummy $ac_prog; ac_word=$2
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10822 $as_echo_n "checking for $ac_word... " >&6; }
10823 if ${ac_cv_prog_ft_devel+:} false; then :
10824 $as_echo_n "(cached) " >&6
10825 else
10826 if test -n "$ft_devel"; then
10827 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10828 else
10829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830 for as_dir in $PATH
10832 IFS=$as_save_IFS
10833 test -z "$as_dir" && as_dir=.
10834 for ac_exec_ext in '' $ac_executable_extensions; do
10835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10836 ac_cv_prog_ft_devel="$ac_prog"
10837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10838 break 2
10840 done
10841 done
10842 IFS=$as_save_IFS
10846 ft_devel=$ac_cv_prog_ft_devel
10847 if test -n "$ft_devel"; then
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10849 $as_echo "$ft_devel" >&6; }
10850 else
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852 $as_echo "no" >&6; }
10856 test -n "$ft_devel" && break
10857 done
10858 test -n "$ft_devel" || ft_devel="no"
10860 if test "$ft_devel" != "no"
10861 then
10862 ac_freetype_incl=`$ft_devel --cflags`
10863 ac_freetype_libs=`$ft_devel --libs`
10866 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10868 $as_echo_n "checking for -lfreetype... " >&6; }
10869 if ${ac_cv_lib_soname_freetype+:} false; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 ac_check_soname_save_LIBS=$LIBS
10873 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10875 /* end confdefs.h. */
10877 /* Override any GCC internal prototype to avoid an error.
10878 Use char because int might match the return type of a GCC
10879 builtin and then its argument prototype would still apply. */
10880 #ifdef __cplusplus
10881 extern "C"
10882 #endif
10883 char FT_Init_FreeType ();
10885 main ()
10887 return FT_Init_FreeType ();
10889 return 0;
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"; then :
10893 case "$LIBEXT" in
10894 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10895 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'` ;;
10896 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10897 if test "x$ac_cv_lib_soname_freetype" = x; then :
10898 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10899 fi ;;
10900 esac
10902 rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext conftest.$ac_ext
10904 LIBS=$ac_check_soname_save_LIBS
10906 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10908 $as_echo "not found" >&6; }
10909 ft_lib=no
10910 else
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10912 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10914 cat >>confdefs.h <<_ACEOF
10915 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10916 _ACEOF
10918 ft_lib=yes
10920 if test "$ft_lib" = "yes"
10921 then
10922 ac_save_CPPFLAGS="$CPPFLAGS"
10923 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10924 for ac_header in ft2build.h \
10925 freetype/freetype.h \
10926 freetype/ftglyph.h \
10927 freetype/fttypes.h \
10928 freetype/tttables.h \
10929 freetype/ftsnames.h \
10930 freetype/ttnameid.h \
10931 freetype/ftoutln.h \
10932 freetype/ftwinfnt.h \
10933 freetype/ftmodapi.h \
10934 freetype/ftlcdfil.h
10935 do :
10936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10937 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10938 # include <ft2build.h>
10939 #endif
10941 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10942 cat >>confdefs.h <<_ACEOF
10943 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10944 _ACEOF
10948 done
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10952 #include <ft2build.h>
10953 #include <freetype/fttrigon.h>
10954 _ACEOF
10955 if ac_fn_c_try_cpp "$LINENO"; then :
10957 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10959 wine_cv_fttrigon=yes
10960 else
10961 wine_cv_fttrigon=no
10963 rm -f conftest.err conftest.i conftest.$ac_ext
10964 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10966 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10968 cat >>confdefs.h <<_ACEOF
10969 #define HAVE_FT_TRUETYPEENGINETYPE 1
10970 _ACEOF
10975 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10976 then
10978 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10980 FREETYPELIBS="$ac_freetype_libs"
10982 FREETYPEINCL="$ac_freetype_incl"
10987 if test "x$FREETYPELIBS" = "x"; then :
10988 case "x$with_freetype" in
10989 xno) ;;
10990 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10991 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10992 esac
10994 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10997 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10998 if ${ac_cv_c_ppdev+:} false; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11002 /* end confdefs.h. */
11003 #ifdef HAVE_SYS_IOCTL_H
11004 # include <sys/ioctl.h>
11005 #endif
11006 #include <linux/ppdev.h>
11008 main ()
11010 ioctl (1,PPCLAIM,0)
11012 return 0;
11014 _ACEOF
11015 if ac_fn_c_try_compile "$LINENO"; then :
11016 ac_cv_c_ppdev="yes"
11017 else
11018 ac_cv_c_ppdev="no"
11020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11023 $as_echo "$ac_cv_c_ppdev" >&6; }
11024 if test "$ac_cv_c_ppdev" = "yes"
11025 then
11027 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11031 ac_wine_check_funcs_save_LIBS="$LIBS"
11032 LIBS="$LIBS $LIBPTHREAD"
11033 for ac_func in \
11034 pthread_attr_get_np \
11035 pthread_getattr_np \
11036 pthread_getthreadid_np \
11037 pthread_get_stackaddr_np \
11038 pthread_get_stacksize_np
11039 do :
11040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11041 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11042 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11043 cat >>confdefs.h <<_ACEOF
11044 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11045 _ACEOF
11048 done
11050 LIBS="$ac_wine_check_funcs_save_LIBS"
11052 if test "$ac_cv_header_zlib_h" = "yes"
11053 then
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11055 $as_echo_n "checking for inflate in -lz... " >&6; }
11056 if ${ac_cv_lib_z_inflate+:} false; then :
11057 $as_echo_n "(cached) " >&6
11058 else
11059 ac_check_lib_save_LIBS=$LIBS
11060 LIBS="-lz $LIBS"
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11064 /* Override any GCC internal prototype to avoid an error.
11065 Use char because int might match the return type of a GCC
11066 builtin and then its argument prototype would still apply. */
11067 #ifdef __cplusplus
11068 extern "C"
11069 #endif
11070 char inflate ();
11072 main ()
11074 return inflate ();
11076 return 0;
11078 _ACEOF
11079 if ac_fn_c_try_link "$LINENO"; then :
11080 ac_cv_lib_z_inflate=yes
11081 else
11082 ac_cv_lib_z_inflate=no
11084 rm -f core conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
11086 LIBS=$ac_check_lib_save_LIBS
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11089 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11090 if test "x$ac_cv_lib_z_inflate" = xyes; then :
11092 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11094 ZLIB="-lz"
11099 if test "x$ZLIB" = "x"; then :
11100 case "x$with_zlib" in
11101 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
11102 xno) ;;
11103 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
11104 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
11105 esac
11108 if test "x$enable_tools" != xno
11109 then
11110 if test "$ac_cv_header_gettext_po_h" = "yes"
11111 then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
11113 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
11114 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
11115 $as_echo_n "(cached) " >&6
11116 else
11117 ac_check_lib_save_LIBS=$LIBS
11118 LIBS="-lgettextpo $LIBS"
11119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120 /* end confdefs.h. */
11122 /* Override any GCC internal prototype to avoid an error.
11123 Use char because int might match the return type of a GCC
11124 builtin and then its argument prototype would still apply. */
11125 #ifdef __cplusplus
11126 extern "C"
11127 #endif
11128 char po_message_msgctxt ();
11130 main ()
11132 return po_message_msgctxt ();
11134 return 0;
11136 _ACEOF
11137 if ac_fn_c_try_link "$LINENO"; then :
11138 ac_cv_lib_gettextpo_po_message_msgctxt=yes
11139 else
11140 ac_cv_lib_gettextpo_po_message_msgctxt=no
11142 rm -f core conftest.err conftest.$ac_objext \
11143 conftest$ac_exeext conftest.$ac_ext
11144 LIBS=$ac_check_lib_save_LIBS
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
11147 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
11148 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
11150 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
11152 LIBGETTEXTPO="-lgettextpo"
11157 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
11158 case "x$with_gettextpo" in
11159 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
11160 xno) ;;
11161 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
11162 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
11163 esac
11167 if test "x$with_gstreamer" != "xno"
11168 then
11169 ac_save_CPPFLAGS="$CPPFLAGS"
11170 if test "$PKG_CONFIG" != "false"; then
11171 ac_gst_incl=""
11172 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
11174 case "$i" in
11175 -I*) ac_gst_incl="$ac_gst_incl $i";;
11176 esac
11177 done
11178 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
11179 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
11180 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
11181 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
11182 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
11183 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
11185 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11188 #include <gst/app/gstappsink.h>
11190 main ()
11192 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
11194 return 0;
11196 _ACEOF
11197 if ac_fn_c_try_compile "$LINENO"; then :
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11199 $as_echo "yes" >&6; }
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
11201 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
11202 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
11203 $as_echo_n "(cached) " >&6
11204 else
11205 ac_check_lib_save_LIBS=$LIBS
11206 LIBS="-lgstreamer-0.10 $LIBS"
11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208 /* end confdefs.h. */
11210 /* Override any GCC internal prototype to avoid an error.
11211 Use char because int might match the return type of a GCC
11212 builtin and then its argument prototype would still apply. */
11213 #ifdef __cplusplus
11214 extern "C"
11215 #endif
11216 char gst_pad_get_caps_reffed ();
11218 main ()
11220 return gst_pad_get_caps_reffed ();
11222 return 0;
11224 _ACEOF
11225 if ac_fn_c_try_link "$LINENO"; then :
11226 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
11227 else
11228 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
11230 rm -f core conftest.err conftest.$ac_objext \
11231 conftest$ac_exeext conftest.$ac_ext
11232 LIBS=$ac_check_lib_save_LIBS
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
11235 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
11236 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
11238 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
11239 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
11240 $as_echo_n "(cached) " >&6
11241 else
11242 ac_check_lib_save_LIBS=$LIBS
11243 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11247 /* Override any GCC internal prototype to avoid an error.
11248 Use char because int might match the return type of a GCC
11249 builtin and then its argument prototype would still apply. */
11250 #ifdef __cplusplus
11251 extern "C"
11252 #endif
11253 char gst_app_buffer_new ();
11255 main ()
11257 return gst_app_buffer_new ();
11259 return 0;
11261 _ACEOF
11262 if ac_fn_c_try_link "$LINENO"; then :
11263 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
11264 else
11265 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
11267 rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11269 LIBS=$ac_check_lib_save_LIBS
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
11272 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
11273 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
11274 GSTREAMER_LIBS="$ac_gst_libs"
11276 GSTREAMER_INCL="$ac_gst_incl"
11282 else
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11284 $as_echo "no" >&6; }
11286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294 CPPFLAGS="$ac_save_CPPFLAGS"
11296 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
11297 case "x$with_gstreamer" in
11298 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
11299 xno) ;;
11300 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
11301 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
11302 esac
11304 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
11306 ALSALIBS=""
11308 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11309 then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
11311 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
11312 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314 else
11315 ac_check_lib_save_LIBS=$LIBS
11316 LIBS="-lasound $LIBS"
11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11323 #ifdef __cplusplus
11324 extern "C"
11325 #endif
11326 char snd_pcm_hw_params_get_access_mask ();
11328 main ()
11330 return snd_pcm_hw_params_get_access_mask ();
11332 return 0;
11334 _ACEOF
11335 if ac_fn_c_try_link "$LINENO"; then :
11336 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
11337 else
11338 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
11340 rm -f core conftest.err conftest.$ac_objext \
11341 conftest$ac_exeext conftest.$ac_ext
11342 LIBS=$ac_check_lib_save_LIBS
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11345 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11346 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11349 #ifdef HAVE_ALSA_ASOUNDLIB_H
11350 #include <alsa/asoundlib.h>
11351 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11352 #include <sys/asoundlib.h>
11353 #endif
11355 main ()
11357 snd_pcm_hw_params_get_access_mask(NULL, NULL)
11359 return 0;
11361 _ACEOF
11362 if ac_fn_c_try_compile "$LINENO"; then :
11363 ALSALIBS="-lasound"
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11370 if test "x$with_oss" != xno
11371 then
11372 ac_save_CPPFLAGS="$CPPFLAGS"
11373 if test -f /etc/oss.conf
11374 then
11375 . /etc/oss.conf
11377 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11378 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11379 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11380 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11381 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11383 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11385 cat >>confdefs.h <<_ACEOF
11386 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11387 _ACEOF
11389 OSS4INCL="$ac_oss_incl"
11396 CPPFLAGS="$ac_save_CPPFLAGS"
11397 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11398 then
11399 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11404 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11405 then
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11407 $as_echo_n "checking for -lcapi20... " >&6; }
11408 if ${ac_cv_lib_soname_capi20+:} false; then :
11409 $as_echo_n "(cached) " >&6
11410 else
11411 ac_check_soname_save_LIBS=$LIBS
11412 LIBS="-lcapi20 $LIBS"
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11416 /* Override any GCC internal prototype to avoid an error.
11417 Use char because int might match the return type of a GCC
11418 builtin and then its argument prototype would still apply. */
11419 #ifdef __cplusplus
11420 extern "C"
11421 #endif
11422 char capi20_register ();
11424 main ()
11426 return capi20_register ();
11428 return 0;
11430 _ACEOF
11431 if ac_fn_c_try_link "$LINENO"; then :
11432 case "$LIBEXT" in
11433 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11434 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'` ;;
11435 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11436 if test "x$ac_cv_lib_soname_capi20" = x; then :
11437 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11438 fi ;;
11439 esac
11441 rm -f core conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext conftest.$ac_ext
11443 LIBS=$ac_check_soname_save_LIBS
11445 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11447 $as_echo "not found" >&6; }
11449 else
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11451 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11453 cat >>confdefs.h <<_ACEOF
11454 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11455 _ACEOF
11460 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11461 case "x$with_capi" in
11462 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11463 xno) ;;
11464 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11465 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11466 esac
11469 CUPSINCL=""
11471 if test "x$with_cups" != "xno"
11472 then
11473 ac_save_CPPFLAGS="$CPPFLAGS"
11474 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11475 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11476 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11477 for ac_header in cups/cups.h
11478 do :
11479 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11480 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11481 cat >>confdefs.h <<_ACEOF
11482 #define HAVE_CUPS_CUPS_H 1
11483 _ACEOF
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11485 $as_echo_n "checking for -lcups... " >&6; }
11486 if ${ac_cv_lib_soname_cups+:} false; then :
11487 $as_echo_n "(cached) " >&6
11488 else
11489 ac_check_soname_save_LIBS=$LIBS
11490 LIBS="-lcups $ac_cups_libs $LIBS"
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11494 /* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11497 #ifdef __cplusplus
11498 extern "C"
11499 #endif
11500 char cupsGetDefault ();
11502 main ()
11504 return cupsGetDefault ();
11506 return 0;
11508 _ACEOF
11509 if ac_fn_c_try_link "$LINENO"; then :
11510 case "$LIBEXT" in
11511 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11512 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'` ;;
11513 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11514 if test "x$ac_cv_lib_soname_cups" = x; then :
11515 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11516 fi ;;
11517 esac
11519 rm -f core conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext conftest.$ac_ext
11521 LIBS=$ac_check_soname_save_LIBS
11523 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11525 $as_echo "not found" >&6; }
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11529 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11531 cat >>confdefs.h <<_ACEOF
11532 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11533 _ACEOF
11535 CUPSINCL="$ac_cups_cflags"
11539 done
11541 CPPFLAGS="$ac_save_CPPFLAGS"
11543 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11544 case "x$with_cups" in
11545 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11546 xno) ;;
11547 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11548 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11549 esac
11552 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11553 then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11555 $as_echo_n "checking for -lfontconfig... " >&6; }
11556 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 ac_check_soname_save_LIBS=$LIBS
11560 LIBS="-lfontconfig $LIBS"
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11564 /* Override any GCC internal prototype to avoid an error.
11565 Use char because int might match the return type of a GCC
11566 builtin and then its argument prototype would still apply. */
11567 #ifdef __cplusplus
11568 extern "C"
11569 #endif
11570 char FcInit ();
11572 main ()
11574 return FcInit ();
11576 return 0;
11578 _ACEOF
11579 if ac_fn_c_try_link "$LINENO"; then :
11580 case "$LIBEXT" in
11581 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11582 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'` ;;
11583 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11584 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11585 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11586 fi ;;
11587 esac
11589 rm -f core conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
11591 LIBS=$ac_check_soname_save_LIBS
11593 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11595 $as_echo "not found" >&6; }
11597 else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11599 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11601 cat >>confdefs.h <<_ACEOF
11602 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11603 _ACEOF
11607 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11608 then
11609 ac_save_CPPFLAGS="$CPPFLAGS"
11610 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11611 $as_unset ac_cv_header_fontconfig_fontconfig_h
11612 for ac_header in fontconfig/fontconfig.h
11613 do :
11614 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11615 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11616 cat >>confdefs.h <<_ACEOF
11617 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11618 _ACEOF
11622 done
11624 CPPFLAGS="$ac_save_CPPFLAGS"
11625 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11626 then
11627 FONTCONFIGINCL="$X_CFLAGS"
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11630 $as_echo_n "checking for -lfontconfig... " >&6; }
11631 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11632 $as_echo_n "(cached) " >&6
11633 else
11634 ac_check_soname_save_LIBS=$LIBS
11635 LIBS="-lfontconfig $X_LIBS $LIBS"
11636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637 /* end confdefs.h. */
11639 /* Override any GCC internal prototype to avoid an error.
11640 Use char because int might match the return type of a GCC
11641 builtin and then its argument prototype would still apply. */
11642 #ifdef __cplusplus
11643 extern "C"
11644 #endif
11645 char FcInit ();
11647 main ()
11649 return FcInit ();
11651 return 0;
11653 _ACEOF
11654 if ac_fn_c_try_link "$LINENO"; then :
11655 case "$LIBEXT" in
11656 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11657 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'` ;;
11658 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11659 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11660 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11661 fi ;;
11662 esac
11664 rm -f core conftest.err conftest.$ac_objext \
11665 conftest$ac_exeext conftest.$ac_ext
11666 LIBS=$ac_check_soname_save_LIBS
11668 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11670 $as_echo "not found" >&6; }
11672 else
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11674 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11676 cat >>confdefs.h <<_ACEOF
11677 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11678 _ACEOF
11684 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11685 case "x$with_fontconfig" in
11686 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11687 xno) ;;
11688 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11689 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11690 esac
11693 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11694 then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11696 $as_echo_n "checking for -lgsm... " >&6; }
11697 if ${ac_cv_lib_soname_gsm+:} false; then :
11698 $as_echo_n "(cached) " >&6
11699 else
11700 ac_check_soname_save_LIBS=$LIBS
11701 LIBS="-lgsm $LIBS"
11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h. */
11705 /* Override any GCC internal prototype to avoid an error.
11706 Use char because int might match the return type of a GCC
11707 builtin and then its argument prototype would still apply. */
11708 #ifdef __cplusplus
11709 extern "C"
11710 #endif
11711 char gsm_create ();
11713 main ()
11715 return gsm_create ();
11717 return 0;
11719 _ACEOF
11720 if ac_fn_c_try_link "$LINENO"; then :
11721 case "$LIBEXT" in
11722 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11723 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'` ;;
11724 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11725 if test "x$ac_cv_lib_soname_gsm" = x; then :
11726 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11727 fi ;;
11728 esac
11730 rm -f core conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 LIBS=$ac_check_soname_save_LIBS
11734 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11736 $as_echo "not found" >&6; }
11738 else
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11740 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11742 cat >>confdefs.h <<_ACEOF
11743 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11744 _ACEOF
11749 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11750 case "x$with_gsm" in
11751 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11752 xno) ;;
11753 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11754 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11755 esac
11758 if test "$ac_cv_header_jpeglib_h" = "yes"
11759 then
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11761 $as_echo_n "checking for -ljpeg... " >&6; }
11762 if ${ac_cv_lib_soname_jpeg+:} false; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 ac_check_soname_save_LIBS=$LIBS
11766 LIBS="-ljpeg $LIBS"
11767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11768 /* end confdefs.h. */
11770 /* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
11773 #ifdef __cplusplus
11774 extern "C"
11775 #endif
11776 char jpeg_start_decompress ();
11778 main ()
11780 return jpeg_start_decompress ();
11782 return 0;
11784 _ACEOF
11785 if ac_fn_c_try_link "$LINENO"; then :
11786 case "$LIBEXT" in
11787 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11788 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'` ;;
11789 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11790 if test "x$ac_cv_lib_soname_jpeg" = x; then :
11791 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11792 fi ;;
11793 esac
11795 rm -f core conftest.err conftest.$ac_objext \
11796 conftest$ac_exeext conftest.$ac_ext
11797 LIBS=$ac_check_soname_save_LIBS
11799 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11801 $as_echo "not found" >&6; }
11803 else
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11805 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11807 cat >>confdefs.h <<_ACEOF
11808 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11809 _ACEOF
11814 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11815 case "x$with_jpeg" in
11816 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11817 xno) ;;
11818 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11819 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11820 esac
11823 if test "$ac_cv_header_png_h" = "yes"
11824 then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11826 $as_echo_n "checking for -lpng... " >&6; }
11827 if ${ac_cv_lib_soname_png+:} false; then :
11828 $as_echo_n "(cached) " >&6
11829 else
11830 ac_check_soname_save_LIBS=$LIBS
11831 LIBS="-lpng -lm -lz $LIBS"
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11835 /* Override any GCC internal prototype to avoid an error.
11836 Use char because int might match the return type of a GCC
11837 builtin and then its argument prototype would still apply. */
11838 #ifdef __cplusplus
11839 extern "C"
11840 #endif
11841 char png_create_read_struct ();
11843 main ()
11845 return png_create_read_struct ();
11847 return 0;
11849 _ACEOF
11850 if ac_fn_c_try_link "$LINENO"; then :
11851 case "$LIBEXT" in
11852 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11853 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'` ;;
11854 *) 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'`
11855 if test "x$ac_cv_lib_soname_png" = x; then :
11856 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11857 fi ;;
11858 esac
11860 rm -f core conftest.err conftest.$ac_objext \
11861 conftest$ac_exeext conftest.$ac_ext
11862 LIBS=$ac_check_soname_save_LIBS
11864 if test "x$ac_cv_lib_soname_png" = "x"; then :
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11866 $as_echo "not found" >&6; }
11868 else
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11870 $as_echo "$ac_cv_lib_soname_png" >&6; }
11872 cat >>confdefs.h <<_ACEOF
11873 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11874 _ACEOF
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11879 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11880 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 ac_check_lib_save_LIBS=$LIBS
11884 LIBS="-lpng -lm -lz $LIBS"
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11888 /* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11891 #ifdef __cplusplus
11892 extern "C"
11893 #endif
11894 char png_set_expand_gray_1_2_4_to_8 ();
11896 main ()
11898 return png_set_expand_gray_1_2_4_to_8 ();
11900 return 0;
11902 _ACEOF
11903 if ac_fn_c_try_link "$LINENO"; then :
11904 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11905 else
11906 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11908 rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11910 LIBS=$ac_check_lib_save_LIBS
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11913 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11914 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11916 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11921 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11922 then
11923 ac_save_CPPFLAGS="$CPPFLAGS"
11924 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11925 $as_unset ac_cv_header_png_h
11926 for ac_header in png.h
11927 do :
11928 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11929 if test "x$ac_cv_header_png_h" = xyes; then :
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_PNG_H 1
11932 _ACEOF
11936 done
11938 CPPFLAGS="$ac_save_CPPFLAGS"
11939 if test "$ac_cv_header_png_h" = "yes"
11940 then
11941 PNGINCL="$X_CFLAGS"
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11944 $as_echo_n "checking for -lpng... " >&6; }
11945 if ${ac_cv_lib_soname_png+:} false; then :
11946 $as_echo_n "(cached) " >&6
11947 else
11948 ac_check_soname_save_LIBS=$LIBS
11949 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h. */
11953 /* Override any GCC internal prototype to avoid an error.
11954 Use char because int might match the return type of a GCC
11955 builtin and then its argument prototype would still apply. */
11956 #ifdef __cplusplus
11957 extern "C"
11958 #endif
11959 char png_create_read_struct ();
11961 main ()
11963 return png_create_read_struct ();
11965 return 0;
11967 _ACEOF
11968 if ac_fn_c_try_link "$LINENO"; then :
11969 case "$LIBEXT" in
11970 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11971 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'` ;;
11972 *) 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'`
11973 if test "x$ac_cv_lib_soname_png" = x; then :
11974 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11975 fi ;;
11976 esac
11978 rm -f core conftest.err conftest.$ac_objext \
11979 conftest$ac_exeext conftest.$ac_ext
11980 LIBS=$ac_check_soname_save_LIBS
11982 if test "x$ac_cv_lib_soname_png" = "x"; then :
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11984 $as_echo "not found" >&6; }
11986 else
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11988 $as_echo "$ac_cv_lib_soname_png" >&6; }
11990 cat >>confdefs.h <<_ACEOF
11991 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11992 _ACEOF
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11997 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11998 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11999 $as_echo_n "(cached) " >&6
12000 else
12001 ac_check_lib_save_LIBS=$LIBS
12002 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
12003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004 /* end confdefs.h. */
12006 /* Override any GCC internal prototype to avoid an error.
12007 Use char because int might match the return type of a GCC
12008 builtin and then its argument prototype would still apply. */
12009 #ifdef __cplusplus
12010 extern "C"
12011 #endif
12012 char png_set_expand_gray_1_2_4_to_8 ();
12014 main ()
12016 return png_set_expand_gray_1_2_4_to_8 ();
12018 return 0;
12020 _ACEOF
12021 if ac_fn_c_try_link "$LINENO"; then :
12022 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
12023 else
12024 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
12026 rm -f core conftest.err conftest.$ac_objext \
12027 conftest$ac_exeext conftest.$ac_ext
12028 LIBS=$ac_check_lib_save_LIBS
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
12031 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
12032 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
12033 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12039 if test "x$ac_cv_lib_soname_png" = "x"; then :
12040 case "x$with_png" in
12041 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12042 xno) ;;
12043 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12044 This is an error since --with-png was requested." "$LINENO" 5 ;;
12045 esac
12048 if test "$ac_cv_header_tiffio_h" = "yes"
12049 then
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12051 $as_echo_n "checking for -ltiff... " >&6; }
12052 if ${ac_cv_lib_soname_tiff+:} false; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 ac_check_soname_save_LIBS=$LIBS
12056 LIBS="-ltiff $LIBS"
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12060 /* Override any GCC internal prototype to avoid an error.
12061 Use char because int might match the return type of a GCC
12062 builtin and then its argument prototype would still apply. */
12063 #ifdef __cplusplus
12064 extern "C"
12065 #endif
12066 char TIFFClientOpen ();
12068 main ()
12070 return TIFFClientOpen ();
12072 return 0;
12074 _ACEOF
12075 if ac_fn_c_try_link "$LINENO"; then :
12076 case "$LIBEXT" in
12077 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12078 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'` ;;
12079 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12080 if test "x$ac_cv_lib_soname_tiff" = x; then :
12081 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12082 fi ;;
12083 esac
12085 rm -f core conftest.err conftest.$ac_objext \
12086 conftest$ac_exeext conftest.$ac_ext
12087 LIBS=$ac_check_soname_save_LIBS
12089 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12091 $as_echo "not found" >&6; }
12093 else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
12095 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
12097 cat >>confdefs.h <<_ACEOF
12098 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
12099 _ACEOF
12104 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12105 case "x$with_tiff" in
12106 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
12107 xno) ;;
12108 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
12109 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
12110 esac
12113 if test "$ac_cv_header_mpg123_h" = "yes"
12114 then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
12116 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
12117 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-lmpg123 $LIBS"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12125 /* Override any GCC internal prototype to avoid an error.
12126 Use char because int might match the return type of a GCC
12127 builtin and then its argument prototype would still apply. */
12128 #ifdef __cplusplus
12129 extern "C"
12130 #endif
12131 char mpg123_feed ();
12133 main ()
12135 return mpg123_feed ();
12137 return 0;
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_lib_mpg123_mpg123_feed=yes
12142 else
12143 ac_cv_lib_mpg123_mpg123_feed=no
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
12150 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
12151 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
12152 LIBMPG123="-lmpg123"
12157 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
12158 case "x$with_mpg123" in
12159 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
12160 xno) ;;
12161 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
12162 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
12163 esac
12165 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}
12167 if test "$ac_cv_header_AL_al_h" = "yes"
12168 then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
12170 $as_echo_n "checking for -lopenal... " >&6; }
12171 if ${ac_cv_lib_soname_openal+:} false; then :
12172 $as_echo_n "(cached) " >&6
12173 else
12174 ac_check_soname_save_LIBS=$LIBS
12175 LIBS="-lopenal $LIBS"
12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177 /* end confdefs.h. */
12179 /* Override any GCC internal prototype to avoid an error.
12180 Use char because int might match the return type of a GCC
12181 builtin and then its argument prototype would still apply. */
12182 #ifdef __cplusplus
12183 extern "C"
12184 #endif
12185 char alGetSource3i ();
12187 main ()
12189 return alGetSource3i ();
12191 return 0;
12193 _ACEOF
12194 if ac_fn_c_try_link "$LINENO"; then :
12195 case "$LIBEXT" in
12196 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12197 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'` ;;
12198 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12199 if test "x$ac_cv_lib_soname_openal" = x; then :
12200 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12201 fi ;;
12202 esac
12204 rm -f core conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_soname_save_LIBS
12208 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12210 $as_echo "not found" >&6; }
12212 else
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12214 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12216 cat >>confdefs.h <<_ACEOF
12217 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12218 _ACEOF
12220 LIBOPENAL="-lopenal"
12222 ac_cv_lib_openal=yes
12224 cat >>confdefs.h <<_ACEOF
12225 #define HAVE_OPENAL 1
12226 _ACEOF
12230 if test "x$ac_cv_lib_openal" != xyes; then :
12231 case "x$with_openal" in
12232 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12233 xno) ;;
12234 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12235 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12236 esac
12238 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12240 if test "$ac_cv_header_kstat_h" = "yes"
12241 then
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12243 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12244 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12245 $as_echo_n "(cached) " >&6
12246 else
12247 ac_check_lib_save_LIBS=$LIBS
12248 LIBS="-lkstat $LIBS"
12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12252 /* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
12255 #ifdef __cplusplus
12256 extern "C"
12257 #endif
12258 char kstat_open ();
12260 main ()
12262 return kstat_open ();
12264 return 0;
12266 _ACEOF
12267 if ac_fn_c_try_link "$LINENO"; then :
12268 ac_cv_lib_kstat_kstat_open=yes
12269 else
12270 ac_cv_lib_kstat_kstat_open=no
12272 rm -f core conftest.err conftest.$ac_objext \
12273 conftest$ac_exeext conftest.$ac_ext
12274 LIBS=$ac_check_lib_save_LIBS
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12277 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12278 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12280 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12282 LIBKSTAT="-lkstat"
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12289 $as_echo_n "checking for -lodbc... " >&6; }
12290 if ${ac_cv_lib_soname_odbc+:} false; then :
12291 $as_echo_n "(cached) " >&6
12292 else
12293 ac_check_soname_save_LIBS=$LIBS
12294 LIBS="-lodbc $LIBS"
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h. */
12298 /* Override any GCC internal prototype to avoid an error.
12299 Use char because int might match the return type of a GCC
12300 builtin and then its argument prototype would still apply. */
12301 #ifdef __cplusplus
12302 extern "C"
12303 #endif
12304 char SQLConnect ();
12306 main ()
12308 return SQLConnect ();
12310 return 0;
12312 _ACEOF
12313 if ac_fn_c_try_link "$LINENO"; then :
12314 case "$LIBEXT" in
12315 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12316 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'` ;;
12317 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12318 if test "x$ac_cv_lib_soname_odbc" = x; then :
12319 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12320 fi ;;
12321 esac
12323 rm -f core conftest.err conftest.$ac_objext \
12324 conftest$ac_exeext conftest.$ac_ext
12325 LIBS=$ac_check_soname_save_LIBS
12327 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12329 $as_echo "not found" >&6; }
12330 cat >>confdefs.h <<_ACEOF
12331 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12332 _ACEOF
12334 else
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12336 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12338 cat >>confdefs.h <<_ACEOF
12339 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12340 _ACEOF
12345 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12346 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12347 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12348 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12350 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
12351 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12352 "x$with_alsa$with_coreaudio$with_oss" != xnonono
12353 then
12354 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12358 EXTRACFLAGS=""
12360 if test "x${GCC}" = "xyes"
12361 then
12362 EXTRACFLAGS="-Wall -pipe"
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12365 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12366 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 if test "$cross_compiling" = yes; then :
12370 ac_cv_c_gcc_strength_bug="yes"
12371 else
12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 /* end confdefs.h. */
12374 int L[4] = {0,1,2,3};
12376 main ()
12378 static int Array[3];
12379 unsigned int B = 3;
12380 int i;
12381 for(i=0; i<B; i++) Array[i] = i - 3;
12382 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12383 L[i] = 4;
12384 return (Array[1] != -2 || L[2] != 3)
12386 return 0;
12388 _ACEOF
12389 if ac_fn_c_try_run "$LINENO"; then :
12390 ac_cv_c_gcc_strength_bug="no"
12391 else
12392 ac_cv_c_gcc_strength_bug="yes"
12394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12395 conftest.$ac_objext conftest.beam conftest.$ac_ext
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12400 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12401 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12402 then
12403 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12407 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12408 if ${ac_cv_cflags__fno_builtin+:} false; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 ac_wine_try_cflags_saved=$CFLAGS
12412 CFLAGS="$CFLAGS -fno-builtin"
12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414 /* end confdefs.h. */
12415 int main(int argc, char **argv) { return 0; }
12416 _ACEOF
12417 if ac_fn_c_try_link "$LINENO"; then :
12418 ac_cv_cflags__fno_builtin=yes
12419 else
12420 ac_cv_cflags__fno_builtin=no
12422 rm -f core conftest.err conftest.$ac_objext \
12423 conftest$ac_exeext conftest.$ac_ext
12424 CFLAGS=$ac_wine_try_cflags_saved
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12427 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12428 if test $ac_cv_cflags__fno_builtin = yes; then :
12429 BUILTINFLAG="-fno-builtin"
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12433 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12434 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 ac_wine_try_cflags_saved=$CFLAGS
12438 CFLAGS="$CFLAGS -fno-strict-aliasing"
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12441 int main(int argc, char **argv) { return 0; }
12442 _ACEOF
12443 if ac_fn_c_try_link "$LINENO"; then :
12444 ac_cv_cflags__fno_strict_aliasing=yes
12445 else
12446 ac_cv_cflags__fno_strict_aliasing=no
12448 rm -f core conftest.err conftest.$ac_objext \
12449 conftest$ac_exeext conftest.$ac_ext
12450 CFLAGS=$ac_wine_try_cflags_saved
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12453 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12454 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12455 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12458 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12459 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12460 $as_echo_n "(cached) " >&6
12461 else
12462 ac_wine_try_cflags_saved=$CFLAGS
12463 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12466 int main(int argc, char **argv) { return 0; }
12467 _ACEOF
12468 if ac_fn_c_try_link "$LINENO"; then :
12469 ac_cv_cflags__Wdeclaration_after_statement=yes
12470 else
12471 ac_cv_cflags__Wdeclaration_after_statement=no
12473 rm -f core conftest.err conftest.$ac_objext \
12474 conftest$ac_exeext conftest.$ac_ext
12475 CFLAGS=$ac_wine_try_cflags_saved
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12478 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12479 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12480 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12483 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12484 if ${ac_cv_cflags__Wempty_body+:} false; then :
12485 $as_echo_n "(cached) " >&6
12486 else
12487 ac_wine_try_cflags_saved=$CFLAGS
12488 CFLAGS="$CFLAGS -Wempty-body"
12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h. */
12491 int main(int argc, char **argv) { return 0; }
12492 _ACEOF
12493 if ac_fn_c_try_link "$LINENO"; then :
12494 ac_cv_cflags__Wempty_body=yes
12495 else
12496 ac_cv_cflags__Wempty_body=no
12498 rm -f core conftest.err conftest.$ac_objext \
12499 conftest$ac_exeext conftest.$ac_ext
12500 CFLAGS=$ac_wine_try_cflags_saved
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12503 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12504 if test $ac_cv_cflags__Wempty_body = yes; then :
12505 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12508 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12509 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12510 $as_echo_n "(cached) " >&6
12511 else
12512 ac_wine_try_cflags_saved=$CFLAGS
12513 CFLAGS="$CFLAGS -Wignored-qualifiers"
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12516 int main(int argc, char **argv) { return 0; }
12517 _ACEOF
12518 if ac_fn_c_try_link "$LINENO"; then :
12519 ac_cv_cflags__Wignored_qualifiers=yes
12520 else
12521 ac_cv_cflags__Wignored_qualifiers=no
12523 rm -f core conftest.err conftest.$ac_objext \
12524 conftest$ac_exeext conftest.$ac_ext
12525 CFLAGS=$ac_wine_try_cflags_saved
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12528 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12529 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12530 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12533 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12534 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12535 $as_echo_n "(cached) " >&6
12536 else
12537 ac_wine_try_cflags_saved=$CFLAGS
12538 CFLAGS="$CFLAGS -Wstrict-prototypes"
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12541 int main(int argc, char **argv) { return 0; }
12542 _ACEOF
12543 if ac_fn_c_try_link "$LINENO"; then :
12544 ac_cv_cflags__Wstrict_prototypes=yes
12545 else
12546 ac_cv_cflags__Wstrict_prototypes=no
12548 rm -f core conftest.err conftest.$ac_objext \
12549 conftest$ac_exeext conftest.$ac_ext
12550 CFLAGS=$ac_wine_try_cflags_saved
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12553 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12554 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12555 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12558 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12559 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 ac_wine_try_cflags_saved=$CFLAGS
12563 CFLAGS="$CFLAGS -Wtype-limits"
12564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12566 int main(int argc, char **argv) { return 0; }
12567 _ACEOF
12568 if ac_fn_c_try_link "$LINENO"; then :
12569 ac_cv_cflags__Wtype_limits=yes
12570 else
12571 ac_cv_cflags__Wtype_limits=no
12573 rm -f core conftest.err conftest.$ac_objext \
12574 conftest$ac_exeext conftest.$ac_ext
12575 CFLAGS=$ac_wine_try_cflags_saved
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12578 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12579 if test $ac_cv_cflags__Wtype_limits = yes; then :
12580 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12583 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12584 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 ac_wine_try_cflags_saved=$CFLAGS
12588 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12591 int main(int argc, char **argv) { return 0; }
12592 _ACEOF
12593 if ac_fn_c_try_link "$LINENO"; then :
12594 ac_cv_cflags__Wunused_but_set_parameter=yes
12595 else
12596 ac_cv_cflags__Wunused_but_set_parameter=no
12598 rm -f core conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12600 CFLAGS=$ac_wine_try_cflags_saved
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12603 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12604 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12605 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12608 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12609 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12610 $as_echo_n "(cached) " >&6
12611 else
12612 ac_wine_try_cflags_saved=$CFLAGS
12613 CFLAGS="$CFLAGS -Wwrite-strings"
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12616 int main(int argc, char **argv) { return 0; }
12617 _ACEOF
12618 if ac_fn_c_try_link "$LINENO"; then :
12619 ac_cv_cflags__Wwrite_strings=yes
12620 else
12621 ac_cv_cflags__Wwrite_strings=no
12623 rm -f core conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext conftest.$ac_ext
12625 CFLAGS=$ac_wine_try_cflags_saved
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12628 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12629 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12630 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12633 for ac_flag in $CFLAGS; do
12634 case $ac_flag in
12635 -g) case $host_os in
12636 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
12637 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
12638 if ${ac_cv_cflags__gstabsp+:} false; then :
12639 $as_echo_n "(cached) " >&6
12640 else
12641 ac_wine_try_cflags_saved=$CFLAGS
12642 CFLAGS="$CFLAGS -gstabs+"
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12645 int main(int argc, char **argv) { return 0; }
12646 _ACEOF
12647 if ac_fn_c_try_link "$LINENO"; then :
12648 ac_cv_cflags__gstabsp=yes
12649 else
12650 ac_cv_cflags__gstabsp=no
12652 rm -f core conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12654 CFLAGS=$ac_wine_try_cflags_saved
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
12657 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
12658 if test $ac_cv_cflags__gstabsp = yes; then :
12659 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12660 fi ;;
12661 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
12662 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
12663 if ${ac_cv_cflags__gdwarf_2+:} false; then :
12664 $as_echo_n "(cached) " >&6
12665 else
12666 ac_wine_try_cflags_saved=$CFLAGS
12667 CFLAGS="$CFLAGS -gdwarf-2"
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12670 int main(int argc, char **argv) { return 0; }
12671 _ACEOF
12672 if ac_fn_c_try_link "$LINENO"; then :
12673 ac_cv_cflags__gdwarf_2=yes
12674 else
12675 ac_cv_cflags__gdwarf_2=no
12677 rm -f core conftest.err conftest.$ac_objext \
12678 conftest$ac_exeext conftest.$ac_ext
12679 CFLAGS=$ac_wine_try_cflags_saved
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
12682 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
12683 if test $ac_cv_cflags__gdwarf_2 = yes; then :
12684 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
12687 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
12688 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 ac_wine_try_cflags_saved=$CFLAGS
12692 CFLAGS="$CFLAGS -gstrict-dwarf"
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695 int main(int argc, char **argv) { return 0; }
12696 _ACEOF
12697 if ac_fn_c_try_link "$LINENO"; then :
12698 ac_cv_cflags__gstrict_dwarf=yes
12699 else
12700 ac_cv_cflags__gstrict_dwarf=no
12702 rm -f core conftest.err conftest.$ac_objext \
12703 conftest$ac_exeext conftest.$ac_ext
12704 CFLAGS=$ac_wine_try_cflags_saved
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
12707 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
12708 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
12709 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
12710 fi ;;
12711 esac ;;
12712 esac
12713 done
12715 case $host_cpu in
12716 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12717 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12718 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12719 $as_echo_n "(cached) " >&6
12720 else
12721 ac_wine_try_cflags_saved=$CFLAGS
12722 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12725 int main(int argc, char **argv) { return 0; }
12726 _ACEOF
12727 if ac_fn_c_try_link "$LINENO"; then :
12728 ac_cv_cflags__fno_omit_frame_pointer=yes
12729 else
12730 ac_cv_cflags__fno_omit_frame_pointer=no
12732 rm -f core conftest.err conftest.$ac_objext \
12733 conftest$ac_exeext conftest.$ac_ext
12734 CFLAGS=$ac_wine_try_cflags_saved
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12737 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12738 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12739 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12740 fi ;;
12741 esac
12743 case $host in
12744 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12745 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12746 if ${ac_cv_cflags__Wno_format+:} false; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 ac_wine_try_cflags_saved=$CFLAGS
12750 CFLAGS="$CFLAGS -Wno-format"
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12753 int main(int argc, char **argv) { return 0; }
12754 _ACEOF
12755 if ac_fn_c_try_link "$LINENO"; then :
12756 ac_cv_cflags__Wno_format=yes
12757 else
12758 ac_cv_cflags__Wno_format=no
12760 rm -f core conftest.err conftest.$ac_objext \
12761 conftest$ac_exeext conftest.$ac_ext
12762 CFLAGS=$ac_wine_try_cflags_saved
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12765 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12766 if test $ac_cv_cflags__Wno_format = yes; then :
12767 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12768 fi ;;
12769 esac
12771 saved_CFLAGS="$CFLAGS"
12772 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12774 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12775 if ${ac_cv_c_string_h_warnings+:} false; then :
12776 $as_echo_n "(cached) " >&6
12777 else
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12780 #include <string.h>
12782 main ()
12786 return 0;
12788 _ACEOF
12789 if ac_fn_c_try_compile "$LINENO"; then :
12790 ac_cv_c_string_h_warnings=no
12791 else
12792 ac_cv_c_string_h_warnings=yes
12794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12797 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12798 CFLAGS="$saved_CFLAGS"
12799 if test "$ac_cv_c_string_h_warnings" = "no"
12800 then
12801 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12804 saved_CFLAGS="$CFLAGS"
12805 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12807 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12808 if ${ac_cv_c_logicalop_noisy+:} false; then :
12809 $as_echo_n "(cached) " >&6
12810 else
12811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12812 /* end confdefs.h. */
12813 #include <string.h>
12815 main ()
12817 char*f(const char *h,char n) {return strchr(h,n);}
12819 return 0;
12821 _ACEOF
12822 if ac_fn_c_try_compile "$LINENO"; then :
12823 ac_cv_c_logicalop_noisy=no
12824 else
12825 ac_cv_c_logicalop_noisy=yes
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12830 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12831 CFLAGS="$saved_CFLAGS"
12832 if test "$ac_cv_c_logicalop_noisy" = "no"
12833 then
12834 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12837 if test "x$enable_maintainer_mode" = "xyes"
12838 then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12840 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12841 if ${ac_cv_cflags__Werror+:} false; then :
12842 $as_echo_n "(cached) " >&6
12843 else
12844 ac_wine_try_cflags_saved=$CFLAGS
12845 CFLAGS="$CFLAGS -Werror"
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12848 int main(int argc, char **argv) { return 0; }
12849 _ACEOF
12850 if ac_fn_c_try_link "$LINENO"; then :
12851 ac_cv_cflags__Werror=yes
12852 else
12853 ac_cv_cflags__Werror=no
12855 rm -f core conftest.err conftest.$ac_objext \
12856 conftest$ac_exeext conftest.$ac_ext
12857 CFLAGS=$ac_wine_try_cflags_saved
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12860 $as_echo "$ac_cv_cflags__Werror" >&6; }
12861 if test $ac_cv_cflags__Werror = yes; then :
12862 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12866 saved_CFLAGS="$CFLAGS"
12867 CFLAGS="$CFLAGS -Werror"
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12869 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12870 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12877 main ()
12881 return 0;
12883 _ACEOF
12884 if ac_fn_c_try_compile "$LINENO"; then :
12885 ac_cv_have_ms_hook_prologue="yes"
12886 else
12887 ac_cv_have_ms_hook_prologue="no"
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12892 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12893 CFLAGS="$saved_CFLAGS"
12894 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12895 then
12897 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12899 else
12900 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12907 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12908 if ${ac_cv_c_fortify_enabled+:} false; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12913 #include <string.h>
12915 main ()
12917 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12918 #error Fortify enabled
12919 #endif
12921 return 0;
12923 _ACEOF
12924 if ac_fn_c_try_compile "$LINENO"; then :
12925 ac_cv_c_fortify_enabled=no
12926 else
12927 ac_cv_c_fortify_enabled=yes
12929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12932 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12933 if test "$ac_cv_c_fortify_enabled" = yes
12934 then
12935 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12940 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12941 if ${ac_cv_c_extern_prefix+:} false; then :
12942 $as_echo_n "(cached) " >&6
12943 else
12944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945 /* end confdefs.h. */
12946 extern int ac_test;
12948 main ()
12950 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12952 return 0;
12954 _ACEOF
12955 if ac_fn_c_try_link "$LINENO"; then :
12956 ac_cv_c_extern_prefix="yes"
12957 else
12958 ac_cv_c_extern_prefix="no"
12960 rm -f core conftest.err conftest.$ac_objext \
12961 conftest$ac_exeext conftest.$ac_ext
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12964 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12966 case $host_cpu in
12967 *i[3456789]86*)
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12969 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12970 if ${ac_cv_c_stdcall_suffix+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 #ifndef _MSC_VER
12976 #define __stdcall __attribute__((__stdcall__))
12977 #endif
12978 int __stdcall ac_test(int i) { return i; }
12980 main ()
12982 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12984 return 0;
12986 _ACEOF
12987 if ac_fn_c_try_link "$LINENO"; then :
12988 ac_cv_c_stdcall_suffix="yes"
12989 else
12990 ac_cv_c_stdcall_suffix="no"
12992 rm -f core conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext conftest.$ac_ext
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12996 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12997 *) ac_cv_c_stdcall_suffix="no" ;;
12998 esac
13001 if test "$ac_cv_c_extern_prefix" = "yes"
13002 then
13003 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
13005 asm_name_prefix="_"
13006 else
13007 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
13009 asm_name_prefix=""
13013 if test "$ac_cv_c_stdcall_suffix" = "yes"
13014 then
13015 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
13017 else
13018 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
13024 $as_echo_n "checking how to define a function in assembly code... " >&6; }
13025 if ${ac_cv_asm_func_def+:} false; then :
13026 $as_echo_n "(cached) " >&6
13027 else
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13032 main ()
13034 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
13036 return 0;
13038 _ACEOF
13039 if ac_fn_c_try_link "$LINENO"; then :
13040 ac_cv_asm_func_def=".def"
13041 else
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13046 main ()
13048 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
13050 return 0;
13052 _ACEOF
13053 if ac_fn_c_try_link "$LINENO"; then :
13054 ac_cv_asm_func_def=".type @function"
13055 else
13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057 /* end confdefs.h. */
13060 main ()
13062 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
13064 return 0;
13066 _ACEOF
13067 if ac_fn_c_try_link "$LINENO"; then :
13068 ac_cv_asm_func_def=".type 2"
13069 else
13070 ac_cv_asm_func_def="unknown"
13072 rm -f core conftest.err conftest.$ac_objext \
13073 conftest$ac_exeext conftest.$ac_ext
13075 rm -f core conftest.err conftest.$ac_objext \
13076 conftest$ac_exeext conftest.$ac_ext
13078 rm -f core conftest.err conftest.$ac_objext \
13079 conftest$ac_exeext conftest.$ac_ext
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
13082 $as_echo "$ac_cv_asm_func_def" >&6; }
13085 case "$ac_cv_asm_func_def" in
13086 ".def")
13087 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
13089 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
13090 ".type @function")
13091 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
13093 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
13094 ".type 2")
13095 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
13097 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
13099 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
13101 asm_func_header="" ;;
13102 esac
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
13105 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
13106 if ${ac_cv_c_asm_outside_funcs+:} false; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111 asm(".text\n\t.long 0");
13113 main ()
13117 return 0;
13119 _ACEOF
13120 if ac_fn_c_try_compile "$LINENO"; then :
13121 ac_cv_c_asm_outside_funcs="yes"
13122 else
13123 ac_cv_c_asm_outside_funcs="no"
13125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
13128 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
13131 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
13132 if ${ac_cv_c_dot_previous+:} false; then :
13133 $as_echo_n "(cached) " >&6
13134 else
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13139 main ()
13141 asm(".text\nac_test:\t.long 0\n\t.previous");
13143 return 0;
13145 _ACEOF
13146 if ac_fn_c_try_link "$LINENO"; then :
13147 ac_cv_c_dot_previous="yes"
13148 else
13149 ac_cv_c_dot_previous="no"
13151 rm -f core conftest.err conftest.$ac_objext \
13152 conftest$ac_exeext conftest.$ac_ext
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
13155 $as_echo "$ac_cv_c_dot_previous" >&6; }
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
13158 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
13159 if ${ac_cv_c_cfi_support+:} false; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13164 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
13166 main ()
13170 return 0;
13172 _ACEOF
13173 if ac_fn_c_try_compile "$LINENO"; then :
13174 ac_cv_c_cfi_support="yes"
13175 else
13176 ac_cv_c_cfi_support="no"
13178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
13181 $as_echo "$ac_cv_c_cfi_support" >&6; }
13183 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
13184 asm_func_trailer=""
13185 if test "$ac_cv_c_dot_previous" = "yes"
13186 then
13187 asm_func_trailer="\\n\\t.previous"
13189 if test "$ac_cv_c_cfi_support" = "yes"
13190 then
13191 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
13192 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
13194 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
13196 UNWINDFLAGS=-fasynchronous-unwind-tables
13198 else
13199 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
13203 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
13206 if test "$ac_cv_c_asm_outside_funcs" = "yes"
13207 then
13208 cat >>confdefs.h <<_ACEOF
13209 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
13210 _ACEOF
13212 else
13213 cat >>confdefs.h <<_ACEOF
13214 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
13215 _ACEOF
13219 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
13222 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
13226 LDPATH=""
13228 case $build_os in
13229 cygwin*|mingw32*)
13230 TOOLSEXT=".exe"
13232 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
13234 darwin*|macosx*)
13237 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
13239 esac
13241 MAIN_BINARY="wine"
13243 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
13245 case $host_os in
13246 linux*)
13247 case $host_cpu in
13248 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
13250 x86_64*) EXTRA_BINARIES="wine64-preloader"
13252 esac
13254 esac
13257 ac_save_CFLAGS="$CFLAGS"
13258 CFLAGS="$CFLAGS $BUILTINFLAG"
13259 for ac_func in \
13260 _finite \
13261 _isnan \
13262 _pclose \
13263 _popen \
13264 _snprintf \
13265 _spawnvp \
13266 _strdup \
13267 _stricmp \
13268 _strnicmp \
13269 _strtoi64 \
13270 _strtoui64 \
13271 _vsnprintf \
13272 asctime_r \
13273 chsize \
13274 dlopen \
13275 epoll_create \
13276 ffs \
13277 finite \
13278 fnmatch \
13279 fork \
13280 fpclass \
13281 fstatfs \
13282 fstatvfs \
13283 ftruncate \
13284 futimens \
13285 futimes \
13286 futimesat \
13287 getattrlist \
13288 getdirentries \
13289 getopt_long_only \
13290 getpwuid \
13291 gettimeofday \
13292 getuid \
13293 kqueue \
13294 lstat \
13295 memmove \
13296 mmap \
13297 pclose \
13298 pipe2 \
13299 poll \
13300 popen \
13301 port_create \
13302 prctl \
13303 pread \
13304 pwrite \
13305 readdir \
13306 readlink \
13307 sched_yield \
13308 select \
13309 setproctitle \
13310 setrlimit \
13311 settimeofday \
13312 sigaltstack \
13313 sigprocmask \
13314 snprintf \
13315 statfs \
13316 statvfs \
13317 strcasecmp \
13318 strdup \
13319 strerror \
13320 strncasecmp \
13321 strtold \
13322 strtoll \
13323 strtoull \
13324 symlink \
13325 tcgetattr \
13326 thr_kill2 \
13327 timegm \
13328 usleep \
13329 vsnprintf
13331 do :
13332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13333 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13334 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13335 cat >>confdefs.h <<_ACEOF
13336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13337 _ACEOF
13340 done
13342 CFLAGS="$ac_save_CFLAGS"
13344 if test "$ac_cv_func_dlopen" = no
13345 then
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13347 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13348 if ${ac_cv_lib_dl_dlopen+:} false; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 ac_check_lib_save_LIBS=$LIBS
13352 LIBS="-ldl $LIBS"
13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13356 /* Override any GCC internal prototype to avoid an error.
13357 Use char because int might match the return type of a GCC
13358 builtin and then its argument prototype would still apply. */
13359 #ifdef __cplusplus
13360 extern "C"
13361 #endif
13362 char dlopen ();
13364 main ()
13366 return dlopen ();
13368 return 0;
13370 _ACEOF
13371 if ac_fn_c_try_link "$LINENO"; then :
13372 ac_cv_lib_dl_dlopen=yes
13373 else
13374 ac_cv_lib_dl_dlopen=no
13376 rm -f core conftest.err conftest.$ac_objext \
13377 conftest$ac_exeext conftest.$ac_ext
13378 LIBS=$ac_check_lib_save_LIBS
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13381 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13382 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13383 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13384 LIBDL="-ldl"
13389 ac_wine_check_funcs_save_LIBS="$LIBS"
13390 LIBS="$LIBS $LIBDL"
13391 for ac_func in dladdr
13392 do :
13393 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13394 if test "x$ac_cv_func_dladdr" = xyes; then :
13395 cat >>confdefs.h <<_ACEOF
13396 #define HAVE_DLADDR 1
13397 _ACEOF
13400 done
13402 LIBS="$ac_wine_check_funcs_save_LIBS"
13404 if test "$ac_cv_func_poll" = no
13405 then
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13407 $as_echo_n "checking for poll in -lpoll... " >&6; }
13408 if ${ac_cv_lib_poll_poll+:} false; then :
13409 $as_echo_n "(cached) " >&6
13410 else
13411 ac_check_lib_save_LIBS=$LIBS
13412 LIBS="-lpoll $LIBS"
13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13416 /* Override any GCC internal prototype to avoid an error.
13417 Use char because int might match the return type of a GCC
13418 builtin and then its argument prototype would still apply. */
13419 #ifdef __cplusplus
13420 extern "C"
13421 #endif
13422 char poll ();
13424 main ()
13426 return poll ();
13428 return 0;
13430 _ACEOF
13431 if ac_fn_c_try_link "$LINENO"; then :
13432 ac_cv_lib_poll_poll=yes
13433 else
13434 ac_cv_lib_poll_poll=no
13436 rm -f core conftest.err conftest.$ac_objext \
13437 conftest$ac_exeext conftest.$ac_ext
13438 LIBS=$ac_check_lib_save_LIBS
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13441 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13442 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13443 $as_echo "#define HAVE_POLL 1" >>confdefs.h
13444 LIBPOLL="-lpoll"
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13451 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13452 if ${ac_cv_search_gethostbyname+:} false; then :
13453 $as_echo_n "(cached) " >&6
13454 else
13455 ac_func_search_save_LIBS=$LIBS
13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13459 /* Override any GCC internal prototype to avoid an error.
13460 Use char because int might match the return type of a GCC
13461 builtin and then its argument prototype would still apply. */
13462 #ifdef __cplusplus
13463 extern "C"
13464 #endif
13465 char gethostbyname ();
13467 main ()
13469 return gethostbyname ();
13471 return 0;
13473 _ACEOF
13474 for ac_lib in '' nsl; do
13475 if test -z "$ac_lib"; then
13476 ac_res="none required"
13477 else
13478 ac_res=-l$ac_lib
13479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13481 if ac_fn_c_try_link "$LINENO"; then :
13482 ac_cv_search_gethostbyname=$ac_res
13484 rm -f core conftest.err conftest.$ac_objext \
13485 conftest$ac_exeext
13486 if ${ac_cv_search_gethostbyname+:} false; then :
13487 break
13489 done
13490 if ${ac_cv_search_gethostbyname+:} false; then :
13492 else
13493 ac_cv_search_gethostbyname=no
13495 rm conftest.$ac_ext
13496 LIBS=$ac_func_search_save_LIBS
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13499 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13500 ac_res=$ac_cv_search_gethostbyname
13501 if test "$ac_res" != no; then :
13502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13508 $as_echo_n "checking for library containing connect... " >&6; }
13509 if ${ac_cv_search_connect+:} false; then :
13510 $as_echo_n "(cached) " >&6
13511 else
13512 ac_func_search_save_LIBS=$LIBS
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13516 /* Override any GCC internal prototype to avoid an error.
13517 Use char because int might match the return type of a GCC
13518 builtin and then its argument prototype would still apply. */
13519 #ifdef __cplusplus
13520 extern "C"
13521 #endif
13522 char connect ();
13524 main ()
13526 return connect ();
13528 return 0;
13530 _ACEOF
13531 for ac_lib in '' socket; do
13532 if test -z "$ac_lib"; then
13533 ac_res="none required"
13534 else
13535 ac_res=-l$ac_lib
13536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13538 if ac_fn_c_try_link "$LINENO"; then :
13539 ac_cv_search_connect=$ac_res
13541 rm -f core conftest.err conftest.$ac_objext \
13542 conftest$ac_exeext
13543 if ${ac_cv_search_connect+:} false; then :
13544 break
13546 done
13547 if ${ac_cv_search_connect+:} false; then :
13549 else
13550 ac_cv_search_connect=no
13552 rm conftest.$ac_ext
13553 LIBS=$ac_func_search_save_LIBS
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13556 $as_echo "$ac_cv_search_connect" >&6; }
13557 ac_res=$ac_cv_search_connect
13558 if test "$ac_res" != no; then :
13559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13565 $as_echo_n "checking for library containing inet_aton... " >&6; }
13566 if ${ac_cv_search_inet_aton+:} false; then :
13567 $as_echo_n "(cached) " >&6
13568 else
13569 ac_func_search_save_LIBS=$LIBS
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13573 /* Override any GCC internal prototype to avoid an error.
13574 Use char because int might match the return type of a GCC
13575 builtin and then its argument prototype would still apply. */
13576 #ifdef __cplusplus
13577 extern "C"
13578 #endif
13579 char inet_aton ();
13581 main ()
13583 return inet_aton ();
13585 return 0;
13587 _ACEOF
13588 for ac_lib in '' resolv; do
13589 if test -z "$ac_lib"; then
13590 ac_res="none required"
13591 else
13592 ac_res=-l$ac_lib
13593 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13595 if ac_fn_c_try_link "$LINENO"; then :
13596 ac_cv_search_inet_aton=$ac_res
13598 rm -f core conftest.err conftest.$ac_objext \
13599 conftest$ac_exeext
13600 if ${ac_cv_search_inet_aton+:} false; then :
13601 break
13603 done
13604 if ${ac_cv_search_inet_aton+:} false; then :
13606 else
13607 ac_cv_search_inet_aton=no
13609 rm conftest.$ac_ext
13610 LIBS=$ac_func_search_save_LIBS
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13613 $as_echo "$ac_cv_search_inet_aton" >&6; }
13614 ac_res=$ac_cv_search_inet_aton
13615 if test "$ac_res" != no; then :
13616 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13621 for ac_func in \
13622 getaddrinfo \
13623 getnameinfo \
13624 getnetbyname \
13625 getprotobyname \
13626 getprotobynumber \
13627 getservbyport \
13628 inet_network \
13629 inet_ntop \
13630 inet_pton \
13631 sendmsg \
13632 socketpair \
13634 do :
13635 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13636 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13637 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13638 cat >>confdefs.h <<_ACEOF
13639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13640 _ACEOF
13643 done
13646 ac_save_LIBS=$LIBS
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13648 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13649 if ${ac_cv_search_clock_gettime+:} false; then :
13650 $as_echo_n "(cached) " >&6
13651 else
13652 ac_func_search_save_LIBS=$LIBS
13653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13654 /* end confdefs.h. */
13656 /* Override any GCC internal prototype to avoid an error.
13657 Use char because int might match the return type of a GCC
13658 builtin and then its argument prototype would still apply. */
13659 #ifdef __cplusplus
13660 extern "C"
13661 #endif
13662 char clock_gettime ();
13664 main ()
13666 return clock_gettime ();
13668 return 0;
13670 _ACEOF
13671 for ac_lib in '' rt; do
13672 if test -z "$ac_lib"; then
13673 ac_res="none required"
13674 else
13675 ac_res=-l$ac_lib
13676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13678 if ac_fn_c_try_link "$LINENO"; then :
13679 ac_cv_search_clock_gettime=$ac_res
13681 rm -f core conftest.err conftest.$ac_objext \
13682 conftest$ac_exeext
13683 if ${ac_cv_search_clock_gettime+:} false; then :
13684 break
13686 done
13687 if ${ac_cv_search_clock_gettime+:} false; then :
13689 else
13690 ac_cv_search_clock_gettime=no
13692 rm conftest.$ac_ext
13693 LIBS=$ac_func_search_save_LIBS
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13696 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13697 ac_res=$ac_cv_search_clock_gettime
13698 if test "$ac_res" != no; then :
13699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13701 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13703 test "$ac_res" = "none required" || LIBRT="$ac_res"
13707 LIBS=$ac_save_LIBS
13709 LDAPLIBS=""
13711 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13712 then
13713 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13715 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13717 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13718 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13719 $as_echo_n "(cached) " >&6
13720 else
13721 ac_check_lib_save_LIBS=$LIBS
13722 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13726 /* Override any GCC internal prototype to avoid an error.
13727 Use char because int might match the return type of a GCC
13728 builtin and then its argument prototype would still apply. */
13729 #ifdef __cplusplus
13730 extern "C"
13731 #endif
13732 char ldap_initialize ();
13734 main ()
13736 return ldap_initialize ();
13738 return 0;
13740 _ACEOF
13741 if ac_fn_c_try_link "$LINENO"; then :
13742 ac_cv_lib_ldap_r_ldap_initialize=yes
13743 else
13744 ac_cv_lib_ldap_r_ldap_initialize=no
13746 rm -f core conftest.err conftest.$ac_objext \
13747 conftest$ac_exeext conftest.$ac_ext
13748 LIBS=$ac_check_lib_save_LIBS
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13751 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13752 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13754 $as_echo_n "checking for ber_init in -llber... " >&6; }
13755 if ${ac_cv_lib_lber_ber_init+:} false; then :
13756 $as_echo_n "(cached) " >&6
13757 else
13758 ac_check_lib_save_LIBS=$LIBS
13759 LIBS="-llber $LIBPTHREAD $LIBS"
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13763 /* Override any GCC internal prototype to avoid an error.
13764 Use char because int might match the return type of a GCC
13765 builtin and then its argument prototype would still apply. */
13766 #ifdef __cplusplus
13767 extern "C"
13768 #endif
13769 char ber_init ();
13771 main ()
13773 return ber_init ();
13775 return 0;
13777 _ACEOF
13778 if ac_fn_c_try_link "$LINENO"; then :
13779 ac_cv_lib_lber_ber_init=yes
13780 else
13781 ac_cv_lib_lber_ber_init=no
13783 rm -f core conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
13785 LIBS=$ac_check_lib_save_LIBS
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13788 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13789 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13791 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13793 LDAPLIBS="-lldap_r -llber"
13800 ac_wine_check_funcs_save_LIBS="$LIBS"
13801 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13802 for ac_func in \
13803 ldap_count_references \
13804 ldap_first_reference \
13805 ldap_next_reference \
13806 ldap_parse_reference \
13807 ldap_parse_sort_control \
13808 ldap_parse_sortresponse_control \
13809 ldap_parse_vlv_control \
13810 ldap_parse_vlvresponse_control
13811 do :
13812 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13814 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13815 cat >>confdefs.h <<_ACEOF
13816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13817 _ACEOF
13820 done
13822 LIBS="$ac_wine_check_funcs_save_LIBS"
13824 if test "x$LDAPLIBS" = "x"; then :
13825 case "x$with_ldap" in
13826 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13827 xno) ;;
13828 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13829 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13830 esac
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13834 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13835 if ${wine_cv_one_arg_mkdir+:} false; then :
13836 $as_echo_n "(cached) " >&6
13837 else
13838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13839 /* end confdefs.h. */
13840 #include <sys/stat.h>
13842 main ()
13844 mkdir("foo");
13846 return 0;
13848 _ACEOF
13849 if ac_fn_c_try_compile "$LINENO"; then :
13850 wine_cv_one_arg_mkdir=yes
13851 else
13852 wine_cv_one_arg_mkdir=no
13854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13857 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13858 if test "$wine_cv_one_arg_mkdir" = "yes"
13859 then
13861 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13866 $as_echo_n "checking for sched_setaffinity... " >&6; }
13867 if ${wine_cv_have_sched_setaffinity+:} false; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872 #define _GNU_SOURCE
13873 #include <sched.h>
13875 main ()
13877 sched_setaffinity(0, 0, 0);
13879 return 0;
13881 _ACEOF
13882 if ac_fn_c_try_link "$LINENO"; then :
13883 wine_cv_have_sched_setaffinity=yes
13884 else
13885 wine_cv_have_sched_setaffinity=no
13887 rm -f core conftest.err conftest.$ac_objext \
13888 conftest$ac_exeext conftest.$ac_ext
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13891 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13892 if test "$wine_cv_have_sched_setaffinity" = "yes"
13893 then
13895 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
13900 $as_echo_n "checking for fallocate... " >&6; }
13901 if ${wine_cv_have_fallocate+:} false; then :
13902 $as_echo_n "(cached) " >&6
13903 else
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13906 #define _GNU_SOURCE
13907 #include <fcntl.h>
13909 main ()
13911 fallocate(-1, 0, 0, 0);
13913 return 0;
13915 _ACEOF
13916 if ac_fn_c_try_link "$LINENO"; then :
13917 wine_cv_have_fallocate=yes
13918 else
13919 wine_cv_have_fallocate=no
13921 rm -f core conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
13925 $as_echo "$wine_cv_have_fallocate" >&6; }
13926 if test "$wine_cv_have_fallocate" = "yes"
13927 then
13929 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13935 $as_echo_n "checking for inline... " >&6; }
13936 if ${ac_cv_c_inline+:} false; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939 ac_cv_c_inline=no
13940 for ac_kw in inline __inline__ __inline; do
13941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13942 /* end confdefs.h. */
13943 #ifndef __cplusplus
13944 typedef int foo_t;
13945 static $ac_kw foo_t static_foo () {return 0; }
13946 $ac_kw foo_t foo () {return 0; }
13947 #endif
13949 _ACEOF
13950 if ac_fn_c_try_compile "$LINENO"; then :
13951 ac_cv_c_inline=$ac_kw
13953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13954 test "$ac_cv_c_inline" != no && break
13955 done
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13959 $as_echo "$ac_cv_c_inline" >&6; }
13961 case $ac_cv_c_inline in
13962 inline | yes) ;;
13964 case $ac_cv_c_inline in
13965 no) ac_val=;;
13966 *) ac_val=$ac_cv_c_inline;;
13967 esac
13968 cat >>confdefs.h <<_ACEOF
13969 #ifndef __cplusplus
13970 #define inline $ac_val
13971 #endif
13972 _ACEOF
13974 esac
13976 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13977 if test "x$ac_cv_type_mode_t" = xyes; then :
13979 cat >>confdefs.h <<_ACEOF
13980 #define HAVE_MODE_T 1
13981 _ACEOF
13985 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13986 if test "x$ac_cv_type_off_t" = xyes; then :
13988 cat >>confdefs.h <<_ACEOF
13989 #define HAVE_OFF_T 1
13990 _ACEOF
13994 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13995 if test "x$ac_cv_type_pid_t" = xyes; then :
13997 cat >>confdefs.h <<_ACEOF
13998 #define HAVE_PID_T 1
13999 _ACEOF
14003 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14004 if test "x$ac_cv_type_size_t" = xyes; then :
14006 cat >>confdefs.h <<_ACEOF
14007 #define HAVE_SIZE_T 1
14008 _ACEOF
14012 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14013 if test "x$ac_cv_type_ssize_t" = xyes; then :
14015 cat >>confdefs.h <<_ACEOF
14016 #define HAVE_SSIZE_T 1
14017 _ACEOF
14021 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14022 if test "x$ac_cv_type_long_long" = xyes; then :
14024 cat >>confdefs.h <<_ACEOF
14025 #define HAVE_LONG_LONG 1
14026 _ACEOF
14030 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
14031 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
14033 cat >>confdefs.h <<_ACEOF
14034 #define HAVE_FSBLKCNT_T 1
14035 _ACEOF
14039 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
14040 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
14042 cat >>confdefs.h <<_ACEOF
14043 #define HAVE_FSFILCNT_T 1
14044 _ACEOF
14049 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
14050 #include <signal.h>
14052 if test "x$ac_cv_type_sigset_t" = xyes; then :
14054 cat >>confdefs.h <<_ACEOF
14055 #define HAVE_SIGSET_T 1
14056 _ACEOF
14061 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
14063 if test "x$ac_cv_type_request_sense" = xyes; then :
14065 cat >>confdefs.h <<_ACEOF
14066 #define HAVE_REQUEST_SENSE 1
14067 _ACEOF
14073 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
14074 #ifdef HAVE_SYS_SOCKET_H
14075 #include <sys/socket.h>
14076 #endif
14077 #ifdef HAVE_SYS_SOCKETVAR_H
14078 #include <sys/socketvar.h>
14079 #endif
14080 #ifdef HAVE_NET_ROUTE_H
14081 #include <net/route.h>
14082 #endif
14083 #ifdef HAVE_NETINET_IN_H
14084 #include <netinet/in.h>
14085 #endif
14086 #ifdef HAVE_NETINET_IN_SYSTM_H
14087 #include <netinet/in_systm.h>
14088 #endif
14089 #ifdef HAVE_NETINET_IP_H
14090 #include <netinet/ip.h>
14091 #endif
14092 #ifdef HAVE_NETINET_IN_PCB_H
14093 #include <netinet/in_pcb.h>
14094 #endif
14096 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
14098 cat >>confdefs.h <<_ACEOF
14099 #define HAVE_STRUCT_XINPGEN 1
14100 _ACEOF
14106 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
14107 #include <linux/input.h>
14108 #endif
14110 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
14112 cat >>confdefs.h <<_ACEOF
14113 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
14114 _ACEOF
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
14121 $as_echo_n "checking for sigaddset... " >&6; }
14122 if ${wine_cv_have_sigaddset+:} false; then :
14123 $as_echo_n "(cached) " >&6
14124 else
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127 #include <signal.h>
14129 main ()
14131 sigset_t set; sigaddset(&set,SIGTERM);
14133 return 0;
14135 _ACEOF
14136 if ac_fn_c_try_link "$LINENO"; then :
14137 wine_cv_have_sigaddset=yes
14138 else
14139 wine_cv_have_sigaddset=no
14141 rm -f core conftest.err conftest.$ac_objext \
14142 conftest$ac_exeext conftest.$ac_ext
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
14145 $as_echo "$wine_cv_have_sigaddset" >&6; }
14146 if test "$wine_cv_have_sigaddset" = "yes"
14147 then
14149 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14155 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
14156 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
14157 $as_echo_n "(cached) " >&6
14158 else
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161 #include <netdb.h>
14163 main ()
14166 char *name=0;
14167 struct hostent he;
14168 struct hostent *result;
14169 char *buf=0;
14170 int bufsize=0;
14171 int errnr;
14172 char *addr=0;
14173 int addrlen=0;
14174 int addrtype=0;
14175 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14176 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14179 return 0;
14181 _ACEOF
14182 if ac_fn_c_try_link "$LINENO"; then :
14183 wine_cv_linux_gethostbyname_r_6=yes
14184 else
14185 wine_cv_linux_gethostbyname_r_6=no
14188 rm -f core conftest.err conftest.$ac_objext \
14189 conftest$ac_exeext conftest.$ac_ext
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
14193 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
14194 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14195 then
14197 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
14201 if test "$ac_cv_header_linux_joystick_h" = "yes"
14202 then
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14204 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
14205 if ${wine_cv_linux_joystick_22_api+:} false; then :
14206 $as_echo_n "(cached) " >&6
14207 else
14208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14209 /* end confdefs.h. */
14211 #include <sys/ioctl.h>
14212 #include <sys/types.h>
14213 #include <linux/joystick.h>
14215 struct js_event blub;
14216 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14217 #error "no 2.2 header"
14218 #endif
14221 main ()
14223 /*empty*/
14225 return 0;
14227 _ACEOF
14228 if ac_fn_c_try_compile "$LINENO"; then :
14229 wine_cv_linux_joystick_22_api=yes
14230 else
14231 wine_cv_linux_joystick_22_api=no
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
14237 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
14238 if test "$wine_cv_linux_joystick_22_api" = "yes"
14239 then
14241 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
14247 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
14248 #ifdef HAVE_SYS_PARAM_H
14249 # include <sys/param.h>
14250 #endif
14251 #ifdef HAVE_SYS_MOUNT_H
14252 # include <sys/mount.h>
14253 #endif
14254 #ifdef HAVE_SYS_VFS_H
14255 # include <sys/vfs.h>
14256 #endif
14257 #ifdef HAVE_SYS_STATFS_H
14258 # include <sys/statfs.h>
14259 #endif
14261 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
14263 cat >>confdefs.h <<_ACEOF
14264 #define HAVE_STRUCT_STATFS_F_BFREE 1
14265 _ACEOF
14269 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
14270 #ifdef HAVE_SYS_PARAM_H
14271 # include <sys/param.h>
14272 #endif
14273 #ifdef HAVE_SYS_MOUNT_H
14274 # include <sys/mount.h>
14275 #endif
14276 #ifdef HAVE_SYS_VFS_H
14277 # include <sys/vfs.h>
14278 #endif
14279 #ifdef HAVE_SYS_STATFS_H
14280 # include <sys/statfs.h>
14281 #endif
14283 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
14285 cat >>confdefs.h <<_ACEOF
14286 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
14287 _ACEOF
14291 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
14292 #ifdef HAVE_SYS_PARAM_H
14293 # include <sys/param.h>
14294 #endif
14295 #ifdef HAVE_SYS_MOUNT_H
14296 # include <sys/mount.h>
14297 #endif
14298 #ifdef HAVE_SYS_VFS_H
14299 # include <sys/vfs.h>
14300 #endif
14301 #ifdef HAVE_SYS_STATFS_H
14302 # include <sys/statfs.h>
14303 #endif
14305 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
14307 cat >>confdefs.h <<_ACEOF
14308 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
14309 _ACEOF
14313 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
14314 #ifdef HAVE_SYS_PARAM_H
14315 # include <sys/param.h>
14316 #endif
14317 #ifdef HAVE_SYS_MOUNT_H
14318 # include <sys/mount.h>
14319 #endif
14320 #ifdef HAVE_SYS_VFS_H
14321 # include <sys/vfs.h>
14322 #endif
14323 #ifdef HAVE_SYS_STATFS_H
14324 # include <sys/statfs.h>
14325 #endif
14327 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
14329 cat >>confdefs.h <<_ACEOF
14330 #define HAVE_STRUCT_STATFS_F_FFREE 1
14331 _ACEOF
14335 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
14336 #ifdef HAVE_SYS_PARAM_H
14337 # include <sys/param.h>
14338 #endif
14339 #ifdef HAVE_SYS_MOUNT_H
14340 # include <sys/mount.h>
14341 #endif
14342 #ifdef HAVE_SYS_VFS_H
14343 # include <sys/vfs.h>
14344 #endif
14345 #ifdef HAVE_SYS_STATFS_H
14346 # include <sys/statfs.h>
14347 #endif
14349 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
14351 cat >>confdefs.h <<_ACEOF
14352 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
14353 _ACEOF
14357 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
14358 #ifdef HAVE_SYS_PARAM_H
14359 # include <sys/param.h>
14360 #endif
14361 #ifdef HAVE_SYS_MOUNT_H
14362 # include <sys/mount.h>
14363 #endif
14364 #ifdef HAVE_SYS_VFS_H
14365 # include <sys/vfs.h>
14366 #endif
14367 #ifdef HAVE_SYS_STATFS_H
14368 # include <sys/statfs.h>
14369 #endif
14371 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
14373 cat >>confdefs.h <<_ACEOF
14374 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
14375 _ACEOF
14381 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
14382 #include <sys/statvfs.h>
14383 #endif
14385 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
14387 cat >>confdefs.h <<_ACEOF
14388 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
14389 _ACEOF
14395 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
14396 #include <dirent.h>
14397 #endif
14399 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
14401 cat >>confdefs.h <<_ACEOF
14402 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
14403 _ACEOF
14409 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
14410 #ifdef HAVE_SYS_SOCKET_H
14411 # include <sys/socket.h>
14412 #endif
14413 #ifdef HAVE_SYS_UN_H
14414 # include <sys/un.h>
14415 #endif
14417 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14419 cat >>confdefs.h <<_ACEOF
14420 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14421 _ACEOF
14425 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14426 #ifdef HAVE_SYS_SOCKET_H
14427 # include <sys/socket.h>
14428 #endif
14429 #ifdef HAVE_SYS_UN_H
14430 # include <sys/un.h>
14431 #endif
14433 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14435 cat >>confdefs.h <<_ACEOF
14436 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14437 _ACEOF
14441 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14442 #ifdef HAVE_SYS_SOCKET_H
14443 # include <sys/socket.h>
14444 #endif
14445 #ifdef HAVE_SYS_UN_H
14446 # include <sys/un.h>
14447 #endif
14449 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14451 cat >>confdefs.h <<_ACEOF
14452 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14453 _ACEOF
14459 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14460 #ifdef HAVE_SCSI_SG_H
14461 #include <scsi/sg.h>
14462 #endif
14464 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14466 cat >>confdefs.h <<_ACEOF
14467 #define HAVE_SCSIREQ_T_CMD 1
14468 _ACEOF
14472 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>
14473 #ifdef HAVE_SCSI_SG_H
14474 #include <scsi/sg.h>
14475 #endif
14477 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14479 cat >>confdefs.h <<_ACEOF
14480 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14481 _ACEOF
14487 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14489 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14491 cat >>confdefs.h <<_ACEOF
14492 #define HAVE_SIGINFO_T_SI_FD 1
14493 _ACEOF
14499 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14500 #ifdef HAVE_SYS_MTIO_H
14501 #include <sys/mtio.h>
14502 #endif
14504 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14506 cat >>confdefs.h <<_ACEOF
14507 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14508 _ACEOF
14512 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14513 #ifdef HAVE_SYS_MTIO_H
14514 #include <sys/mtio.h>
14515 #endif
14517 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14519 cat >>confdefs.h <<_ACEOF
14520 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14521 _ACEOF
14525 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14526 #ifdef HAVE_SYS_MTIO_H
14527 #include <sys/mtio.h>
14528 #endif
14530 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14532 cat >>confdefs.h <<_ACEOF
14533 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14534 _ACEOF
14540 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14541 #include <getopt.h>
14542 #endif
14544 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14546 cat >>confdefs.h <<_ACEOF
14547 #define HAVE_STRUCT_OPTION_NAME 1
14548 _ACEOF
14554 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14555 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14557 cat >>confdefs.h <<_ACEOF
14558 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14559 _ACEOF
14563 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14564 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14566 cat >>confdefs.h <<_ACEOF
14567 #define HAVE_STRUCT_STAT_ST_MTIM 1
14568 _ACEOF
14572 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
14573 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
14575 cat >>confdefs.h <<_ACEOF
14576 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
14577 _ACEOF
14581 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14582 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14584 cat >>confdefs.h <<_ACEOF
14585 #define HAVE_STRUCT_STAT_ST_CTIM 1
14586 _ACEOF
14590 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
14591 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
14593 cat >>confdefs.h <<_ACEOF
14594 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
14595 _ACEOF
14599 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14600 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14602 cat >>confdefs.h <<_ACEOF
14603 #define HAVE_STRUCT_STAT_ST_ATIM 1
14604 _ACEOF
14608 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
14609 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
14611 cat >>confdefs.h <<_ACEOF
14612 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
14613 _ACEOF
14617 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
14618 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
14620 cat >>confdefs.h <<_ACEOF
14621 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
14622 _ACEOF
14626 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
14627 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
14629 cat >>confdefs.h <<_ACEOF
14630 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
14631 _ACEOF
14635 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
14636 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
14638 cat >>confdefs.h <<_ACEOF
14639 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
14640 _ACEOF
14644 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
14645 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
14647 cat >>confdefs.h <<_ACEOF
14648 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
14649 _ACEOF
14653 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
14654 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
14656 cat >>confdefs.h <<_ACEOF
14657 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
14658 _ACEOF
14664 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
14665 #include <sys/types.h>
14666 #endif
14667 #ifdef HAVE_NETINET_IN_H
14668 #include <netinet/in.h>
14669 #endif
14671 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14673 cat >>confdefs.h <<_ACEOF
14674 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14675 _ACEOF
14681 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14682 #include <sys/types.h>
14683 #endif
14684 #ifdef HAVE_NETINET_IN_H
14685 # include <netinet/in.h>
14686 #endif
14687 #ifdef HAVE_ARPA_NAMESER_H
14688 # include <arpa/nameser.h>
14689 #endif
14691 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14693 cat >>confdefs.h <<_ACEOF
14694 #define HAVE_NS_MSG__MSG_PTR 1
14695 _ACEOF
14701 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
14702 #include <sys/types.h>
14703 #endif
14704 #ifdef HAVE_NETINET_IP_H
14705 #include <netinet/ip.h>
14706 #endif
14707 #ifdef HAVE_NETINET_IP_ICMP_H
14708 #include <netinet/ip_icmp.h>
14709 #endif
14710 #ifdef HAVE_NETINET_ICMP_VAR_H
14711 #include <netinet/icmp_var.h>
14712 #endif
14714 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14716 cat >>confdefs.h <<_ACEOF
14717 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14718 _ACEOF
14724 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14725 #include <sys/types.h>
14726 #endif
14727 #ifdef HAVE_ALIAS_H
14728 #include <alias.h>
14729 #endif
14730 #ifdef HAVE_SYS_SOCKET_H
14731 #include <sys/socket.h>
14732 #endif
14733 #ifdef HAVE_SYS_SOCKETVAR_H
14734 #include <sys/socketvar.h>
14735 #endif
14736 #ifdef HAVE_SYS_TIMEOUT_H
14737 #include <sys/timeout.h>
14738 #endif
14739 #ifdef HAVE_NETINET_IN_H
14740 #include <netinet/in.h>
14741 #endif
14742 #ifdef HAVE_NETINET_IN_SYSTM_H
14743 #include <netinet/in_systm.h>
14744 #endif
14745 #ifdef HAVE_NETINET_IP_H
14746 #include <netinet/ip.h>
14747 #endif
14748 #ifdef HAVE_NETINET_IP_VAR_H
14749 #include <netinet/ip_var.h>
14750 #endif
14751 #ifdef HAVE_NETINET_IP_ICMP_H
14752 #include <netinet/ip_icmp.h>
14753 #endif
14754 #ifdef HAVE_NETINET_ICMP_VAR_H
14755 #include <netinet/icmp_var.h>
14756 #endif
14758 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14760 cat >>confdefs.h <<_ACEOF
14761 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14762 _ACEOF
14768 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
14769 #include <sys/types.h>
14770 #endif
14771 #ifdef HAVE_SYS_SOCKETVAR_H
14772 #include <sys/socketvar.h>
14773 #endif
14774 #ifdef HAVE_NETINET_IN_H
14775 #include <netinet/in.h>
14776 #endif
14777 #ifdef HAVE_NETINET_IP_VAR_H
14778 #include <netinet/ip_var.h>
14779 #endif
14781 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14783 cat >>confdefs.h <<_ACEOF
14784 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14785 _ACEOF
14791 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
14792 #include <netinet/ip_var.h>
14793 #endif
14795 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14797 cat >>confdefs.h <<_ACEOF
14798 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14799 _ACEOF
14805 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
14806 #include <sys/types.h>
14807 #endif
14808 #ifdef HAVE_SYS_SOCKETVAR_H
14809 #include <sys/socketvar.h>
14810 #endif
14811 #ifdef HAVE_NETINET_IN_H
14812 #include <netinet/in.h>
14813 #endif
14814 #ifdef HAVE_NETINET_TCP_H
14815 #include <netinet/tcp.h>
14816 #endif
14817 #ifdef HAVE_NETINET_TCP_VAR_H
14818 #include <netinet/tcp_var.h>
14819 #endif
14821 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14823 cat >>confdefs.h <<_ACEOF
14824 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14825 _ACEOF
14831 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
14832 #include <netinet/tcp_var.h>
14833 #endif
14835 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14837 cat >>confdefs.h <<_ACEOF
14838 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14839 _ACEOF
14845 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
14846 #include <sys/types.h>
14847 #endif
14848 #ifdef HAVE_NETINET_IN_H
14849 #include <netinet/in.h>
14850 #endif
14851 #ifdef HAVE_NETINET_IP_VAR_H
14852 #include <netinet/ip_var.h>
14853 #endif
14854 #ifdef HAVE_NETINET_UDP_H
14855 #include <netinet/udp.h>
14856 #endif
14857 #ifdef HAVE_NETINET_UDP_VAR_H
14858 #include <netinet/udp_var.h>
14859 #endif
14861 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
14863 cat >>confdefs.h <<_ACEOF
14864 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
14865 _ACEOF
14871 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14872 #include <sys/types.h>
14873 #endif
14874 #ifdef HAVE_NET_IF_H
14875 # include <net/if.h>
14876 #endif
14878 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14880 cat >>confdefs.h <<_ACEOF
14881 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14882 _ACEOF
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14889 $as_echo_n "checking for timezone variable... " >&6; }
14890 if ${ac_cv_have_timezone+:} false; then :
14891 $as_echo_n "(cached) " >&6
14892 else
14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h. */
14895 #include <time.h>
14897 main ()
14899 timezone = 1
14901 return 0;
14903 _ACEOF
14904 if ac_fn_c_try_link "$LINENO"; then :
14905 ac_cv_have_timezone="yes"
14906 else
14907 ac_cv_have_timezone="no"
14909 rm -f core conftest.err conftest.$ac_objext \
14910 conftest$ac_exeext conftest.$ac_ext
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14913 $as_echo "$ac_cv_have_timezone" >&6; }
14914 if test "$ac_cv_have_timezone" = "yes"
14915 then
14917 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14921 $as_echo_n "checking for daylight variable... " >&6; }
14922 if ${ac_cv_have_daylight+:} false; then :
14923 $as_echo_n "(cached) " >&6
14924 else
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14927 #include <time.h>
14929 main ()
14931 daylight = 1
14933 return 0;
14935 _ACEOF
14936 if ac_fn_c_try_link "$LINENO"; then :
14937 ac_cv_have_daylight="yes"
14938 else
14939 ac_cv_have_daylight="no"
14941 rm -f core conftest.err conftest.$ac_objext \
14942 conftest$ac_exeext conftest.$ac_ext
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14945 $as_echo "$ac_cv_have_daylight" >&6; }
14946 if test "$ac_cv_have_daylight" = "yes"
14947 then
14949 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14953 ac_save_LIBS="$LIBS"
14954 LIBS="$LIBS -lm"
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14956 $as_echo_n "checking for isinf... " >&6; }
14957 if ${ac_cv_have_isinf+:} false; then :
14958 $as_echo_n "(cached) " >&6
14959 else
14960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h. */
14962 #include <math.h>
14964 main ()
14966 float f = 0.0; return isinf(f)
14968 return 0;
14970 _ACEOF
14971 if ac_fn_c_try_link "$LINENO"; then :
14972 ac_cv_have_isinf="yes"
14973 else
14974 ac_cv_have_isinf="no"
14976 rm -f core conftest.err conftest.$ac_objext \
14977 conftest$ac_exeext conftest.$ac_ext
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14980 $as_echo "$ac_cv_have_isinf" >&6; }
14981 if test "$ac_cv_have_isinf" = "yes"
14982 then
14984 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14989 $as_echo_n "checking for isnan... " >&6; }
14990 if ${ac_cv_have_isnan+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14994 /* end confdefs.h. */
14995 #include <math.h>
14997 main ()
14999 float f = 0.0; return isnan(f)
15001 return 0;
15003 _ACEOF
15004 if ac_fn_c_try_link "$LINENO"; then :
15005 ac_cv_have_isnan="yes"
15006 else
15007 ac_cv_have_isnan="no"
15009 rm -f core conftest.err conftest.$ac_objext \
15010 conftest$ac_exeext conftest.$ac_ext
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
15013 $as_echo "$ac_cv_have_isnan" >&6; }
15014 if test "$ac_cv_have_isnan" = "yes"
15015 then
15017 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
15020 LIBS="$ac_save_LIBS"
15023 case $host_cpu in
15024 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
15025 $as_echo_n "checking whether we need to define __i386__... " >&6; }
15026 if ${ac_cv_cpp_def___i386__+:} false; then :
15027 $as_echo_n "(cached) " >&6
15028 else
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15031 #ifndef __i386__
15033 #endif
15034 _ACEOF
15035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15036 $EGREP "yes" >/dev/null 2>&1; then :
15037 ac_cv_cpp_def___i386__=yes
15038 else
15039 ac_cv_cpp_def___i386__=no
15041 rm -f conftest*
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
15045 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
15046 if test $ac_cv_cpp_def___i386__ = yes; then :
15047 CFLAGS="$CFLAGS -D__i386__"
15048 LINTFLAGS="$LINTFLAGS -D__i386__"
15049 fi ;;
15050 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
15051 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
15052 if ${ac_cv_cpp_def___x86_64__+:} false; then :
15053 $as_echo_n "(cached) " >&6
15054 else
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057 #ifndef __x86_64__
15059 #endif
15060 _ACEOF
15061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15062 $EGREP "yes" >/dev/null 2>&1; then :
15063 ac_cv_cpp_def___x86_64__=yes
15064 else
15065 ac_cv_cpp_def___x86_64__=no
15067 rm -f conftest*
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
15071 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
15072 if test $ac_cv_cpp_def___x86_64__ = yes; then :
15073 CFLAGS="$CFLAGS -D__x86_64__"
15074 LINTFLAGS="$LINTFLAGS -D__x86_64__"
15075 fi ;;
15076 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
15077 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
15078 if ${ac_cv_cpp_def___sparc64__+:} false; then :
15079 $as_echo_n "(cached) " >&6
15080 else
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15083 #ifndef __sparc64__
15085 #endif
15086 _ACEOF
15087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15088 $EGREP "yes" >/dev/null 2>&1; then :
15089 ac_cv_cpp_def___sparc64__=yes
15090 else
15091 ac_cv_cpp_def___sparc64__=no
15093 rm -f conftest*
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
15097 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
15098 if test $ac_cv_cpp_def___sparc64__ = yes; then :
15099 CFLAGS="$CFLAGS -D__sparc64__"
15100 LINTFLAGS="$LINTFLAGS -D__sparc64__"
15101 fi ;;
15102 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
15103 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
15104 if ${ac_cv_cpp_def___sparc__+:} false; then :
15105 $as_echo_n "(cached) " >&6
15106 else
15107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15108 /* end confdefs.h. */
15109 #ifndef __sparc__
15111 #endif
15112 _ACEOF
15113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15114 $EGREP "yes" >/dev/null 2>&1; then :
15115 ac_cv_cpp_def___sparc__=yes
15116 else
15117 ac_cv_cpp_def___sparc__=no
15119 rm -f conftest*
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
15123 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
15124 if test $ac_cv_cpp_def___sparc__ = yes; then :
15125 CFLAGS="$CFLAGS -D__sparc__"
15126 LINTFLAGS="$LINTFLAGS -D__sparc__"
15127 fi ;;
15128 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
15129 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
15130 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
15131 $as_echo_n "(cached) " >&6
15132 else
15133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134 /* end confdefs.h. */
15135 #ifndef __powerpc64__
15137 #endif
15138 _ACEOF
15139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15140 $EGREP "yes" >/dev/null 2>&1; then :
15141 ac_cv_cpp_def___powerpc64__=yes
15142 else
15143 ac_cv_cpp_def___powerpc64__=no
15145 rm -f conftest*
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
15149 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
15150 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
15151 CFLAGS="$CFLAGS -D__powerpc64__"
15152 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
15153 fi ;;
15154 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
15155 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
15156 if ${ac_cv_cpp_def___powerpc__+:} false; then :
15157 $as_echo_n "(cached) " >&6
15158 else
15159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h. */
15161 #ifndef __powerpc__
15163 #endif
15164 _ACEOF
15165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15166 $EGREP "yes" >/dev/null 2>&1; then :
15167 ac_cv_cpp_def___powerpc__=yes
15168 else
15169 ac_cv_cpp_def___powerpc__=no
15171 rm -f conftest*
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
15175 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
15176 if test $ac_cv_cpp_def___powerpc__ = yes; then :
15177 CFLAGS="$CFLAGS -D__powerpc__"
15178 LINTFLAGS="$LINTFLAGS -D__powerpc__"
15179 fi ;;
15180 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
15181 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
15182 if ${ac_cv_cpp_def___aarch64__+:} false; then :
15183 $as_echo_n "(cached) " >&6
15184 else
15185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15186 /* end confdefs.h. */
15187 #ifndef __aarch64__
15189 #endif
15190 _ACEOF
15191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15192 $EGREP "yes" >/dev/null 2>&1; then :
15193 ac_cv_cpp_def___aarch64__=yes
15194 else
15195 ac_cv_cpp_def___aarch64__=no
15197 rm -f conftest*
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
15201 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
15202 if test $ac_cv_cpp_def___aarch64__ = yes; then :
15203 CFLAGS="$CFLAGS -D__aarch64__"
15204 LINTFLAGS="$LINTFLAGS -D__aarch64__"
15205 fi ;;
15206 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
15207 $as_echo_n "checking whether we need to define __arm__... " >&6; }
15208 if ${ac_cv_cpp_def___arm__+:} false; then :
15209 $as_echo_n "(cached) " >&6
15210 else
15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15212 /* end confdefs.h. */
15213 #ifndef __arm__
15215 #endif
15216 _ACEOF
15217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15218 $EGREP "yes" >/dev/null 2>&1; then :
15219 ac_cv_cpp_def___arm__=yes
15220 else
15221 ac_cv_cpp_def___arm__=no
15223 rm -f conftest*
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
15227 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
15228 if test $ac_cv_cpp_def___arm__ = yes; then :
15229 CFLAGS="$CFLAGS -D__arm__"
15230 LINTFLAGS="$LINTFLAGS -D__arm__"
15231 fi ;;
15232 esac
15234 case $host_vendor in
15235 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
15236 $as_echo_n "checking whether we need to define __sun__... " >&6; }
15237 if ${ac_cv_cpp_def___sun__+:} false; then :
15238 $as_echo_n "(cached) " >&6
15239 else
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15242 #ifndef __sun__
15244 #endif
15245 _ACEOF
15246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15247 $EGREP "yes" >/dev/null 2>&1; then :
15248 ac_cv_cpp_def___sun__=yes
15249 else
15250 ac_cv_cpp_def___sun__=no
15252 rm -f conftest*
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
15256 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
15257 if test $ac_cv_cpp_def___sun__ = yes; then :
15258 CFLAGS="$CFLAGS -D__sun__"
15259 LINTFLAGS="$LINTFLAGS -D__sun__"
15260 fi ;;
15261 esac
15267 ac_config_commands="$ac_config_commands include/stamp-h"
15270 ALL_MAKEFILE_DEPENDS="
15271 # Rules automatically generated by configure
15273 .INIT: Makefile
15274 .MAKEFILEDEPS:
15275 all: Makefile
15276 Makefile: Makefile.in Make.vars.in Make.rules config.status
15277 @./config.status Make.tmp Makefile"
15279 ALL_POT_FILES=""
15280 ALL_TEST_RESOURCES=""
15283 wine_fn_append_file ()
15285 as_fn_append $1 " \\$as_nl $2"
15288 wine_fn_append_rule ()
15290 as_fn_append $1 "$as_nl$2"
15293 wine_fn_has_flag ()
15295 expr ",$2," : ".*,$1,.*" >/dev/null
15298 wine_fn_all_dir_rules ()
15300 ac_dir=$1
15301 ac_alldeps=$2
15302 ac_makedep="\$(MAKEDEP)"
15303 ac_input=Make.vars.in:$ac_dir/Makefile.in
15304 if test $ac_dir != tools
15305 then
15306 ac_alldeps="$2 $ac_makedep"
15307 else
15308 ac_alldeps="$2 include/config.h"
15310 case $2 in
15311 *.in) ac_input=$ac_input:$2 ;;
15312 *) ac_makedep="$2 $ac_makedep" ;;
15313 esac
15315 wine_fn_append_file ALL_DIRS $ac_dir
15316 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15317 "__clean__: $ac_dir/__clean__
15318 .PHONY: $ac_dir/__clean__
15319 $ac_dir/__clean__: $ac_dir/Makefile
15320 @cd $ac_dir && \$(MAKE) clean
15321 \$(RM) $ac_dir/Makefile
15322 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
15323 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
15324 depend: $ac_dir/__depend__
15325 .PHONY: $ac_dir/__depend__
15326 $ac_dir/__depend__: $ac_makedep dummy
15327 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
15330 wine_fn_pot_rules ()
15332 ac_dir=$1
15333 ac_flags=$2
15335 test "x$with_gettextpo" = xyes || return
15337 if wine_fn_has_flag mc $ac_flags
15338 then
15339 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
15340 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15341 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
15342 @cd $ac_dir && \$(MAKE) msg.pot
15343 $ac_dir/msg.pot: tools/wmc include"
15345 if wine_fn_has_flag po $ac_flags
15346 then
15347 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
15348 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15349 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
15350 @cd $ac_dir && \$(MAKE) rsrc.pot
15351 $ac_dir/rsrc.pot: tools/wrc include"
15355 wine_fn_config_makefile ()
15357 ac_dir=$1
15358 ac_enable=$2
15359 ac_flags=$3
15360 ac_rules=$4
15361 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15362 return 0
15365 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
15366 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15367 "all: $ac_dir
15368 .PHONY: $ac_dir
15369 $ac_dir: $ac_dir/Makefile dummy
15370 @cd $ac_dir && \$(MAKE)"
15372 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
15374 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15375 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15376 $ac_dir/__install__:: $ac_dir
15377 @cd $ac_dir && \$(MAKE) install
15378 $ac_dir/__uninstall__:: $ac_dir/Makefile
15379 @cd $ac_dir && \$(MAKE) uninstall
15380 install:: $ac_dir/__install__
15381 __uninstall__: $ac_dir/__uninstall__"
15383 if wine_fn_has_flag install-lib $ac_flags
15384 then
15385 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15386 ".PHONY: $ac_dir/__install-lib__
15387 $ac_dir/__install-lib__:: $ac_dir
15388 @cd $ac_dir && \$(MAKE) install-lib
15389 install-lib:: $ac_dir/__install-lib__"
15392 if wine_fn_has_flag install-dev $ac_flags
15393 then
15394 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15395 ".PHONY: $ac_dir/__install-dev
15396 $ac_dir/__install-dev__:: $ac_dir
15397 @cd $ac_dir && \$(MAKE) install-dev
15398 install-dev:: $ac_dir/__install-dev__"
15402 wine_fn_config_lib ()
15404 ac_name=$1
15405 ac_flags=$2
15406 ac_dir=dlls/$ac_name
15407 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
15409 if wine_fn_has_flag install-dev $ac_flags
15410 then :
15411 else
15412 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15413 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15414 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
15415 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15416 $ac_dir/__uninstall__::
15417 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15418 install install-dev:: $ac_dir/__install__
15419 __uninstall__: $ac_dir/__uninstall__"
15422 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
15423 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
15426 wine_fn_config_dll ()
15428 ac_name=$1
15429 ac_dir=dlls/$ac_name
15430 ac_enable=$2
15431 ac_flags=$3
15432 ac_implib=${4:-$ac_name}
15433 ac_file=$ac_dir/lib$ac_implib
15434 ac_dll=$ac_name
15435 ac_deps="tools/widl tools/winebuild tools/winegcc include"
15436 ac_implibflags=""
15438 case $ac_name in
15439 *16) ac_implibflags=" -m16" ;;
15440 *.*) ;;
15441 *) ac_dll=$ac_dll.dll ;;
15442 esac
15444 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
15446 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15447 test "$ac_enable" != enable_win16 || return 0
15448 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
15449 else
15450 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15451 "$ac_dir: __builddeps__
15452 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
15453 @cd $ac_dir && \$(MAKE) \$@"
15455 if wine_fn_has_flag install-lib $ac_flags
15456 then :
15457 else
15458 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15459 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
15460 install install-lib:: $ac_dir/__install-lib__
15461 __uninstall__: $ac_dir/__uninstall__"
15462 if test -n "$DLLEXT"
15463 then
15464 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15465 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15466 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
15467 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
15468 $ac_dir/__uninstall__::
15469 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
15470 else
15471 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15472 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15473 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
15474 $ac_dir/__uninstall__::
15475 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
15479 wine_fn_pot_rules $ac_dir $ac_flags
15482 if wine_fn_has_flag staticimplib $ac_flags
15483 then
15484 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15485 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
15486 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
15487 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
15488 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
15489 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
15490 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
15491 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15492 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15493 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15494 $ac_dir/__uninstall__::
15495 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15496 install install-dev:: $ac_dir/__install-dev__
15497 __uninstall__: $ac_dir/__uninstall__"
15499 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
15500 then
15501 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15502 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
15503 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
15504 $ac_dir/__uninstall__::
15505 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
15508 if test "x$CROSSTEST_DISABLE" = x
15509 then
15510 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15511 "__builddeps__: $ac_file.cross.a
15512 $ac_file.cross.a: $ac_dir/Makefile dummy
15513 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
15516 elif wine_fn_has_flag implib $ac_flags
15517 then
15518 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15519 "__builddeps__: $ac_file.$IMPLIBEXT
15520 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15521 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15522 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15523 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15524 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15525 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15526 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15527 $ac_dir/__uninstall__::
15528 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15529 install install-dev:: $ac_dir/__install-dev__
15530 __uninstall__: $ac_dir/__uninstall__"
15531 if test "x$CROSSTEST_DISABLE" = x
15532 then
15533 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15534 "__builddeps__: $ac_file.cross.a
15535 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15536 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
15539 if test "$ac_name" != "$ac_implib"
15540 then
15541 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15542 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
15543 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
15544 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
15545 clean::
15546 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
15547 if test "x$CROSSTEST_DISABLE" = x
15548 then
15549 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15550 "__builddeps__: dlls/lib$ac_implib.cross.a
15551 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
15552 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
15558 wine_fn_config_program ()
15560 ac_name=$1
15561 ac_dir=programs/$ac_name
15562 ac_enable=$2
15563 ac_flags=$3
15564 ac_program=$ac_name
15566 case $ac_name in
15567 *.*) ;;
15568 *) ac_program=$ac_program.exe ;;
15569 esac
15571 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
15573 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15575 else
15576 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15577 "$ac_dir: __builddeps__"
15579 wine_fn_pot_rules $ac_dir $ac_flags
15581 wine_fn_has_flag install $ac_flags || return
15582 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15583 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15584 install install-lib:: $ac_dir/__install__
15585 __uninstall__: $ac_dir/__uninstall__"
15587 if test -n "$DLLEXT"
15588 then
15589 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15590 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15591 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
15592 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
15593 $ac_dir/__uninstall__::
15594 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
15596 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
15597 then
15598 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15599 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
15600 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
15601 $ac_dir/__uninstall__::
15602 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
15604 else
15605 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15606 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15607 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
15608 $ac_dir/__uninstall__::
15609 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
15612 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
15613 then
15614 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15615 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
15616 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
15617 $ac_dir/__uninstall__::
15618 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
15623 wine_fn_config_test ()
15625 ac_dir=$1
15626 ac_name=$2
15627 ac_flags=$3
15628 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
15629 wine_fn_all_dir_rules $ac_dir Maketest.rules
15631 if test "x$enable_tests" = xno; then :
15633 else
15634 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15635 "all: $ac_dir
15636 .PHONY: $ac_dir
15637 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
15638 @cd $ac_dir && \$(MAKE)
15639 programs/winetest: $ac_dir
15640 check test: $ac_dir/__test__
15641 .PHONY: $ac_dir/__test__
15642 $ac_dir/__test__: dummy
15643 @cd $ac_dir && \$(MAKE) test
15644 testclean::
15645 \$(RM) $ac_dir/*.ok"
15647 if test "x$CROSSTEST_DISABLE" = x
15648 then
15649 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15650 "crosstest: $ac_dir/__crosstest__
15651 .PHONY: $ac_dir/__crosstest__
15652 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
15653 @cd $ac_dir && \$(MAKE) crosstest"
15658 wine_fn_config_tool ()
15660 ac_dir=$1
15661 ac_flags=$2
15662 if test "x$enable_tools" = xno; then :
15663 return 0
15666 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
15668 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
15669 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
15670 case $ac_dir in
15671 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
15672 esac
15675 wine_fn_config_makerules ()
15677 ac_rules=$1
15678 ac_deps=$2
15679 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15680 "$ac_rules: $ac_rules.in $ac_deps config.status
15681 @./config.status $ac_rules
15682 distclean::
15683 \$(RM) $ac_rules"
15686 wine_fn_config_symlink ()
15688 ac_link=$1
15689 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15690 "$ac_link:
15691 @./config.status $ac_link
15692 distclean::
15693 \$(RM) $ac_link"
15696 if test "x$CROSSTEST_DISABLE" != x
15697 then
15698 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15699 "crosstest:
15700 @echo \"crosstest is not supported (mingw not installed?)\" && false"
15702 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15703 wine_fn_config_symlink dlls/shell32/AUTHORS
15704 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15705 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15706 if test "x$enable_fonts" != xno; then
15707 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15708 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15710 if test "x$enable_fonts" != xno; then
15711 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15712 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15714 if test "x$enable_fonts" != xno; then
15715 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15716 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15718 if test "x$enable_fonts" != xno; then
15719 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15720 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15722 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15723 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15724 if test "x$enable_tools" != xno; then
15725 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15726 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15728 ac_config_links="$ac_config_links wine:tools/winewrapper"
15729 wine_fn_config_symlink wine
15730 if test "x$enable_win64" != xno; then
15731 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15732 wine_fn_config_symlink wine64
15735 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15737 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15739 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15741 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15743 ac_config_commands="$ac_config_commands dlls/user32/resources"
15745 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15747 ac_config_commands="$ac_config_commands include/wine"
15750 wine_fn_config_makerules Make.rules
15751 MAKE_RULES=Make.rules
15752 ac_config_files="$ac_config_files Make.rules"
15754 wine_fn_config_makerules Maketest.rules Make.rules
15755 MAKE_TEST_RULES=Maketest.rules
15756 ac_config_files="$ac_config_files Maketest.rules"
15758 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15759 MAKE_DLL_RULES=dlls/Makedll.rules
15760 ac_config_files="$ac_config_files dlls/Makedll.rules"
15762 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15763 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15764 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15766 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15767 MAKE_PROG_RULES=programs/Makeprog.rules
15768 ac_config_files="$ac_config_files programs/Makeprog.rules"
15771 wine_fn_config_dll acledit enable_acledit
15772 wine_fn_config_dll aclui enable_aclui implib
15773 wine_fn_config_dll activeds enable_activeds implib
15774 wine_fn_config_dll actxprxy enable_actxprxy
15775 wine_fn_config_lib adsiid
15776 wine_fn_config_dll advapi32 enable_advapi32 implib
15777 wine_fn_config_test dlls/advapi32/tests advapi32_test
15778 wine_fn_config_dll advpack enable_advpack implib
15779 wine_fn_config_test dlls/advpack/tests advpack_test
15780 wine_fn_config_dll amstream enable_amstream
15781 wine_fn_config_test dlls/amstream/tests amstream_test
15782 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
15783 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
15784 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
15785 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
15786 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
15787 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
15788 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
15789 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
15790 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
15791 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
15792 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
15793 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
15794 wine_fn_config_dll apphelp enable_apphelp
15795 wine_fn_config_test dlls/apphelp/tests apphelp_test
15796 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15797 wine_fn_config_dll atl enable_atl implib
15798 wine_fn_config_test dlls/atl/tests atl_test
15799 wine_fn_config_dll atl100 enable_atl100 implib
15800 wine_fn_config_test dlls/atl100/tests atl100_test
15801 wine_fn_config_dll atl80 enable_atl80 implib
15802 wine_fn_config_test dlls/atl80/tests atl80_test
15803 wine_fn_config_dll authz enable_authz
15804 wine_fn_config_dll avicap32 enable_avicap32 implib
15805 wine_fn_config_dll avifil32 enable_avifil32 implib,po
15806 wine_fn_config_test dlls/avifil32/tests avifil32_test
15807 wine_fn_config_dll avifile.dll16 enable_win16
15808 wine_fn_config_dll avrt enable_avrt implib
15809 wine_fn_config_dll bcrypt enable_bcrypt
15810 wine_fn_config_dll browseui enable_browseui po
15811 wine_fn_config_test dlls/browseui/tests browseui_test
15812 wine_fn_config_dll cabinet enable_cabinet implib
15813 wine_fn_config_test dlls/cabinet/tests cabinet_test
15814 wine_fn_config_dll capi2032 enable_capi2032 implib
15815 wine_fn_config_dll cards enable_cards implib
15816 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15817 wine_fn_config_dll clusapi enable_clusapi implib
15818 wine_fn_config_dll comcat enable_comcat
15819 wine_fn_config_test dlls/comcat/tests comcat_test
15820 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15821 wine_fn_config_test dlls/comctl32/tests comctl32_test
15822 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15823 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15824 wine_fn_config_dll comm.drv16 enable_win16
15825 wine_fn_config_dll commdlg.dll16 enable_win16
15826 wine_fn_config_dll compobj.dll16 enable_win16
15827 wine_fn_config_dll compstui enable_compstui implib
15828 wine_fn_config_dll credui enable_credui implib,po
15829 wine_fn_config_test dlls/credui/tests credui_test
15830 wine_fn_config_dll crtdll enable_crtdll implib
15831 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15832 wine_fn_config_test dlls/crypt32/tests crypt32_test
15833 wine_fn_config_dll cryptdlg enable_cryptdlg po
15834 wine_fn_config_dll cryptdll enable_cryptdll implib
15835 wine_fn_config_dll cryptnet enable_cryptnet implib
15836 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15837 wine_fn_config_dll cryptui enable_cryptui implib,po
15838 wine_fn_config_test dlls/cryptui/tests cryptui_test
15839 wine_fn_config_dll ctapi32 enable_ctapi32
15840 wine_fn_config_dll ctl3d.dll16 enable_win16
15841 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15842 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15843 wine_fn_config_dll d3d10 enable_d3d10 implib
15844 wine_fn_config_test dlls/d3d10/tests d3d10_test
15845 wine_fn_config_dll d3d10core enable_d3d10core implib
15846 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15847 wine_fn_config_dll d3d11 enable_d3d11
15848 wine_fn_config_dll d3d8 enable_d3d8 implib
15849 wine_fn_config_test dlls/d3d8/tests d3d8_test
15850 wine_fn_config_dll d3d9 enable_d3d9 implib
15851 wine_fn_config_test dlls/d3d9/tests d3d9_test
15852 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15853 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15854 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15855 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15856 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15857 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15858 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15859 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15860 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15861 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15862 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15863 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15864 wine_fn_config_dll d3dim enable_d3dim implib
15865 wine_fn_config_dll d3drm enable_d3drm implib
15866 wine_fn_config_test dlls/d3drm/tests d3drm_test
15867 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15868 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15869 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15870 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15871 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15872 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15873 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15874 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15875 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15876 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15877 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15878 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15879 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15880 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15881 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15882 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15883 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15884 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15885 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15886 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15887 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15888 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15889 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15890 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15891 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15892 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15893 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15894 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15895 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15896 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15897 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15898 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15899 wine_fn_config_dll d3dxof enable_d3dxof implib
15900 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15901 wine_fn_config_dll dbgeng enable_dbgeng implib
15902 wine_fn_config_dll dbghelp enable_dbghelp implib
15903 wine_fn_config_dll dciman32 enable_dciman32 implib
15904 wine_fn_config_dll ddeml.dll16 enable_win16
15905 wine_fn_config_dll ddraw enable_ddraw implib
15906 wine_fn_config_test dlls/ddraw/tests ddraw_test
15907 wine_fn_config_dll ddrawex enable_ddrawex
15908 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15909 wine_fn_config_dll devenum enable_devenum po
15910 wine_fn_config_test dlls/devenum/tests devenum_test
15911 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15912 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15913 wine_fn_config_test dlls/dinput/tests dinput_test
15914 wine_fn_config_dll dinput8 enable_dinput8 implib
15915 wine_fn_config_test dlls/dinput8/tests dinput8_test
15916 wine_fn_config_dll dispdib.dll16 enable_win16
15917 wine_fn_config_dll dispex enable_dispex
15918 wine_fn_config_test dlls/dispex/tests dispex_test
15919 wine_fn_config_dll display.drv16 enable_win16
15920 wine_fn_config_dll dmband enable_dmband
15921 wine_fn_config_test dlls/dmband/tests dmband_test
15922 wine_fn_config_dll dmcompos enable_dmcompos
15923 wine_fn_config_dll dmime enable_dmime
15924 wine_fn_config_test dlls/dmime/tests dmime_test
15925 wine_fn_config_dll dmloader enable_dmloader
15926 wine_fn_config_test dlls/dmloader/tests dmloader_test
15927 wine_fn_config_dll dmscript enable_dmscript
15928 wine_fn_config_dll dmstyle enable_dmstyle
15929 wine_fn_config_dll dmsynth enable_dmsynth
15930 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15931 wine_fn_config_dll dmusic enable_dmusic
15932 wine_fn_config_test dlls/dmusic/tests dmusic_test
15933 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15934 wine_fn_config_dll dnsapi enable_dnsapi implib
15935 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15936 wine_fn_config_dll dplay enable_dplay implib
15937 wine_fn_config_dll dplayx enable_dplayx implib
15938 wine_fn_config_test dlls/dplayx/tests dplayx_test
15939 wine_fn_config_dll dpnaddr enable_dpnaddr
15940 wine_fn_config_dll dpnet enable_dpnet implib
15941 wine_fn_config_test dlls/dpnet/tests dpnet_test
15942 wine_fn_config_dll dpnhpast enable_dpnhpast
15943 wine_fn_config_dll dpnlobby enable_dpnlobby
15944 wine_fn_config_dll dpwsockx enable_dpwsockx
15945 wine_fn_config_dll drmclien enable_drmclien
15946 wine_fn_config_dll dsound enable_dsound implib
15947 wine_fn_config_test dlls/dsound/tests dsound_test
15948 wine_fn_config_dll dssenh enable_dssenh
15949 wine_fn_config_test dlls/dssenh/tests dssenh_test
15950 wine_fn_config_dll dswave enable_dswave
15951 wine_fn_config_dll dwmapi enable_dwmapi implib
15952 wine_fn_config_dll dwrite enable_dwrite implib
15953 wine_fn_config_test dlls/dwrite/tests dwrite_test
15954 wine_fn_config_dll dxdiagn enable_dxdiagn po
15955 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15956 wine_fn_config_lib dxerr8
15957 wine_fn_config_lib dxerr9
15958 wine_fn_config_dll dxgi enable_dxgi implib
15959 wine_fn_config_test dlls/dxgi/tests dxgi_test
15960 wine_fn_config_lib dxguid
15961 wine_fn_config_dll explorerframe enable_explorerframe
15962 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15963 wine_fn_config_dll faultrep enable_faultrep implib
15964 wine_fn_config_test dlls/faultrep/tests faultrep_test
15965 wine_fn_config_dll fltlib enable_fltlib
15966 wine_fn_config_dll fusion enable_fusion
15967 wine_fn_config_test dlls/fusion/tests fusion_test
15968 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15969 wine_fn_config_dll gameux enable_gameux
15970 wine_fn_config_test dlls/gameux/tests gameux_test
15971 wine_fn_config_dll gdi.exe16 enable_win16
15972 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15973 wine_fn_config_test dlls/gdi32/tests gdi32_test
15974 wine_fn_config_dll gdiplus enable_gdiplus implib
15975 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15976 wine_fn_config_dll glu32 enable_glu32 implib
15977 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15978 wine_fn_config_dll gpkcsp enable_gpkcsp
15979 wine_fn_config_dll hal enable_hal
15980 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx implib,po htmlhelp
15981 wine_fn_config_dll hid enable_hid implib
15982 wine_fn_config_dll hlink enable_hlink implib
15983 wine_fn_config_test dlls/hlink/tests hlink_test
15984 wine_fn_config_dll hnetcfg enable_hnetcfg
15985 wine_fn_config_dll httpapi enable_httpapi
15986 wine_fn_config_dll iccvid enable_iccvid po
15987 wine_fn_config_dll icmp enable_icmp
15988 wine_fn_config_dll ieframe enable_ieframe implib,po
15989 wine_fn_config_test dlls/ieframe/tests ieframe_test
15990 wine_fn_config_dll ifsmgr.vxd enable_win16
15991 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15992 wine_fn_config_dll imagehlp enable_imagehlp implib
15993 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15994 wine_fn_config_dll imm.dll16 enable_win16
15995 wine_fn_config_dll imm32 enable_imm32 implib
15996 wine_fn_config_test dlls/imm32/tests imm32_test
15997 wine_fn_config_dll inetcomm enable_inetcomm implib
15998 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15999 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16000 wine_fn_config_dll inetmib1 enable_inetmib1
16001 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16002 wine_fn_config_dll infosoft enable_infosoft
16003 wine_fn_config_test dlls/infosoft/tests infosoft_test
16004 wine_fn_config_dll initpki enable_initpki
16005 wine_fn_config_dll inkobj enable_inkobj
16006 wine_fn_config_dll inseng enable_inseng
16007 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16008 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16009 wine_fn_config_dll itircl enable_itircl
16010 wine_fn_config_dll itss enable_itss
16011 wine_fn_config_test dlls/itss/tests itss_test
16012 wine_fn_config_dll joy.cpl enable_joy_cpl po
16013 wine_fn_config_dll jscript enable_jscript po
16014 wine_fn_config_test dlls/jscript/tests jscript_test
16015 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
16016 wine_fn_config_test dlls/kernel32/tests kernel32_test
16017 wine_fn_config_dll keyboard.drv16 enable_win16
16018 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16019 wine_fn_config_dll ktmw32 enable_ktmw32
16020 wine_fn_config_dll loadperf enable_loadperf implib
16021 wine_fn_config_dll localspl enable_localspl po
16022 wine_fn_config_test dlls/localspl/tests localspl_test
16023 wine_fn_config_dll localui enable_localui po
16024 wine_fn_config_test dlls/localui/tests localui_test
16025 wine_fn_config_dll lz32 enable_lz32 implib
16026 wine_fn_config_test dlls/lz32/tests lz32_test
16027 wine_fn_config_dll lzexpand.dll16 enable_win16
16028 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16029 wine_fn_config_test dlls/mapi32/tests mapi32_test
16030 wine_fn_config_dll mapistub enable_mapistub
16031 wine_fn_config_dll mciavi32 enable_mciavi32
16032 wine_fn_config_dll mcicda enable_mcicda
16033 wine_fn_config_dll mciqtz32 enable_mciqtz32
16034 wine_fn_config_dll mciseq enable_mciseq
16035 wine_fn_config_dll mciwave enable_mciwave
16036 wine_fn_config_dll mgmtapi enable_mgmtapi
16037 wine_fn_config_dll midimap enable_midimap
16038 wine_fn_config_dll mlang enable_mlang implib
16039 wine_fn_config_test dlls/mlang/tests mlang_test
16040 wine_fn_config_dll mmcndmgr enable_mmcndmgr
16041 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16042 wine_fn_config_dll mmdevapi enable_mmdevapi
16043 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16044 wine_fn_config_dll mmdevldr.vxd enable_win16
16045 wine_fn_config_dll mmsystem.dll16 enable_win16
16046 wine_fn_config_dll monodebg.vxd enable_win16
16047 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16048 wine_fn_config_dll mouse.drv16 enable_win16
16049 wine_fn_config_dll mpr enable_mpr implib,po
16050 wine_fn_config_test dlls/mpr/tests mpr_test
16051 wine_fn_config_dll mprapi enable_mprapi implib
16052 wine_fn_config_dll msacm.dll16 enable_win16
16053 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16054 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16055 wine_fn_config_test dlls/msacm32/tests msacm32_test
16056 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16057 wine_fn_config_dll mscat32 enable_mscat32
16058 wine_fn_config_dll mscms enable_mscms implib
16059 wine_fn_config_test dlls/mscms/tests mscms_test
16060 wine_fn_config_dll mscoree enable_mscoree
16061 wine_fn_config_test dlls/mscoree/tests mscoree_test
16062 wine_fn_config_dll msctf enable_msctf
16063 wine_fn_config_test dlls/msctf/tests msctf_test
16064 wine_fn_config_dll msdaps enable_msdaps
16065 wine_fn_config_dll msdmo enable_msdmo implib
16066 wine_fn_config_dll msftedit enable_msftedit
16067 wine_fn_config_dll msg711.acm enable_msg711_acm
16068 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16069 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
16070 wine_fn_config_dll mshtml enable_mshtml implib,po
16071 wine_fn_config_test dlls/mshtml/tests mshtml_test
16072 wine_fn_config_dll msi enable_msi implib,po
16073 wine_fn_config_test dlls/msi/tests msi_test
16074 wine_fn_config_dll msident enable_msident
16075 wine_fn_config_dll msimg32 enable_msimg32 implib
16076 wine_fn_config_dll msimsg enable_msimsg
16077 wine_fn_config_dll msimtf enable_msimtf
16078 wine_fn_config_dll msisip enable_msisip
16079 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16080 wine_fn_config_dll msls31 enable_msls31
16081 wine_fn_config_dll msnet32 enable_msnet32
16082 wine_fn_config_dll mspatcha enable_mspatcha
16083 wine_fn_config_dll msrle32 enable_msrle32 po
16084 wine_fn_config_dll mssign32 enable_mssign32
16085 wine_fn_config_dll mssip32 enable_mssip32
16086 wine_fn_config_dll mstask enable_mstask
16087 wine_fn_config_test dlls/mstask/tests mstask_test
16088 wine_fn_config_dll msvcirt enable_msvcirt
16089 wine_fn_config_dll msvcm80 enable_msvcm80
16090 wine_fn_config_dll msvcm90 enable_msvcm90
16091 wine_fn_config_dll msvcp100 enable_msvcp100
16092 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16093 wine_fn_config_dll msvcp110 enable_msvcp110
16094 wine_fn_config_dll msvcp60 enable_msvcp60
16095 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16096 wine_fn_config_dll msvcp70 enable_msvcp70
16097 wine_fn_config_dll msvcp71 enable_msvcp71
16098 wine_fn_config_dll msvcp80 enable_msvcp80
16099 wine_fn_config_dll msvcp90 enable_msvcp90
16100 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16101 wine_fn_config_dll msvcr100 enable_msvcr100
16102 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16103 wine_fn_config_dll msvcr110 enable_msvcr110
16104 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16105 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16106 wine_fn_config_dll msvcr80 enable_msvcr80
16107 wine_fn_config_dll msvcr90 enable_msvcr90
16108 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16109 wine_fn_config_dll msvcrt enable_msvcrt implib
16110 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16111 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16112 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16113 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16114 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16115 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16116 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16117 wine_fn_config_dll msvidc32 enable_msvidc32 po
16118 wine_fn_config_dll msvideo.dll16 enable_win16
16119 wine_fn_config_dll mswsock enable_mswsock implib
16120 wine_fn_config_dll msxml enable_msxml
16121 wine_fn_config_dll msxml2 enable_msxml2
16122 wine_fn_config_dll msxml3 enable_msxml3
16123 wine_fn_config_test dlls/msxml3/tests msxml3_test
16124 wine_fn_config_dll msxml4 enable_msxml4
16125 wine_fn_config_dll msxml6 enable_msxml6
16126 wine_fn_config_dll nddeapi enable_nddeapi implib
16127 wine_fn_config_dll netapi32 enable_netapi32 implib
16128 wine_fn_config_test dlls/netapi32/tests netapi32_test
16129 wine_fn_config_dll newdev enable_newdev implib
16130 wine_fn_config_dll normaliz enable_normaliz implib
16131 wine_fn_config_dll npmshtml enable_npmshtml
16132 wine_fn_config_dll ntdll enable_ntdll implib
16133 wine_fn_config_test dlls/ntdll/tests ntdll_test
16134 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16135 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16136 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16137 wine_fn_config_dll ntprint enable_ntprint
16138 wine_fn_config_test dlls/ntprint/tests ntprint_test
16139 wine_fn_config_dll objsel enable_objsel
16140 wine_fn_config_dll odbc32 enable_odbc32 implib
16141 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16142 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16143 wine_fn_config_dll odbccu32 enable_odbccu32
16144 wine_fn_config_dll ole2.dll16 enable_win16
16145 wine_fn_config_dll ole2conv.dll16 enable_win16
16146 wine_fn_config_dll ole2disp.dll16 enable_win16
16147 wine_fn_config_dll ole2nls.dll16 enable_win16
16148 wine_fn_config_dll ole2prox.dll16 enable_win16
16149 wine_fn_config_dll ole2thk.dll16 enable_win16
16150 wine_fn_config_dll ole32 enable_ole32 implib
16151 wine_fn_config_test dlls/ole32/tests ole32_test
16152 wine_fn_config_dll oleacc enable_oleacc implib,po
16153 wine_fn_config_test dlls/oleacc/tests oleacc_test
16154 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
16155 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
16156 wine_fn_config_dll olecli.dll16 enable_win16
16157 wine_fn_config_dll olecli32 enable_olecli32 implib
16158 wine_fn_config_dll oledb32 enable_oledb32
16159 wine_fn_config_test dlls/oledb32/tests oledb32_test
16160 wine_fn_config_dll oledlg enable_oledlg implib,po
16161 wine_fn_config_dll olepro32 enable_olepro32 implib
16162 wine_fn_config_dll olesvr.dll16 enable_win16
16163 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16164 wine_fn_config_dll olethk32 enable_olethk32
16165 wine_fn_config_dll openal32 enable_openal32
16166 wine_fn_config_dll opencl enable_opencl
16167 wine_fn_config_dll opengl32 enable_opengl32 implib
16168 wine_fn_config_test dlls/opengl32/tests opengl32_test
16169 wine_fn_config_dll pdh enable_pdh implib
16170 wine_fn_config_test dlls/pdh/tests pdh_test
16171 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16172 wine_fn_config_dll pidgen enable_pidgen
16173 wine_fn_config_dll powrprof enable_powrprof implib
16174 wine_fn_config_dll printui enable_printui
16175 wine_fn_config_dll propsys enable_propsys implib
16176 wine_fn_config_test dlls/propsys/tests propsys_test
16177 wine_fn_config_dll psapi enable_psapi implib
16178 wine_fn_config_test dlls/psapi/tests psapi_test
16179 wine_fn_config_dll pstorec enable_pstorec
16180 wine_fn_config_dll qcap enable_qcap
16181 wine_fn_config_dll qedit enable_qedit
16182 wine_fn_config_test dlls/qedit/tests qedit_test
16183 wine_fn_config_dll qmgr enable_qmgr
16184 wine_fn_config_test dlls/qmgr/tests qmgr_test
16185 wine_fn_config_dll qmgrprxy enable_qmgrprxy
16186 wine_fn_config_dll quartz enable_quartz implib
16187 wine_fn_config_test dlls/quartz/tests quartz_test
16188 wine_fn_config_dll query enable_query
16189 wine_fn_config_dll rasapi16.dll16 enable_win16
16190 wine_fn_config_dll rasapi32 enable_rasapi32 implib
16191 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
16192 wine_fn_config_dll rasdlg enable_rasdlg implib
16193 wine_fn_config_dll regapi enable_regapi
16194 wine_fn_config_dll resutils enable_resutils implib
16195 wine_fn_config_dll riched20 enable_riched20 implib
16196 wine_fn_config_test dlls/riched20/tests riched20_test
16197 wine_fn_config_dll riched32 enable_riched32
16198 wine_fn_config_test dlls/riched32/tests riched32_test
16199 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
16200 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
16201 wine_fn_config_dll rsabase enable_rsabase
16202 wine_fn_config_dll rsaenh enable_rsaenh implib
16203 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
16204 wine_fn_config_dll rstrtmgr enable_rstrtmgr
16205 wine_fn_config_dll rtutils enable_rtutils implib
16206 wine_fn_config_dll samlib enable_samlib
16207 wine_fn_config_dll sane.ds enable_sane_ds po
16208 wine_fn_config_dll scarddlg enable_scarddlg
16209 wine_fn_config_dll sccbase enable_sccbase
16210 wine_fn_config_dll schannel enable_schannel
16211 wine_fn_config_test dlls/schannel/tests schannel_test
16212 wine_fn_config_dll scrrun enable_scrrun
16213 wine_fn_config_test dlls/scrrun/tests scrrun_test
16214 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16215 wine_fn_config_dll secur32 enable_secur32 implib
16216 wine_fn_config_test dlls/secur32/tests secur32_test
16217 wine_fn_config_dll security enable_security
16218 wine_fn_config_dll sensapi enable_sensapi implib
16219 wine_fn_config_dll serialui enable_serialui implib,po
16220 wine_fn_config_test dlls/serialui/tests serialui_test
16221 wine_fn_config_dll setupapi enable_setupapi implib,po
16222 wine_fn_config_test dlls/setupapi/tests setupapi_test
16223 wine_fn_config_dll setupx.dll16 enable_win16
16224 wine_fn_config_dll sfc enable_sfc implib
16225 wine_fn_config_dll sfc_os enable_sfc_os implib
16226 wine_fn_config_dll shdoclc enable_shdoclc po
16227 wine_fn_config_dll shdocvw enable_shdocvw implib
16228 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16229 wine_fn_config_dll shell.dll16 enable_win16
16230 wine_fn_config_dll shell32 enable_shell32 implib,po
16231 wine_fn_config_test dlls/shell32/tests shell32_test
16232 wine_fn_config_dll shfolder enable_shfolder implib
16233 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16234 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16235 wine_fn_config_dll slbcsp enable_slbcsp
16236 wine_fn_config_dll slc enable_slc implib
16237 wine_fn_config_dll snmpapi enable_snmpapi implib
16238 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16239 wine_fn_config_dll softpub enable_softpub
16240 wine_fn_config_dll sound.drv16 enable_win16
16241 wine_fn_config_dll spoolss enable_spoolss implib
16242 wine_fn_config_test dlls/spoolss/tests spoolss_test
16243 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
16244 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
16245 wine_fn_config_dll sti enable_sti implib
16246 wine_fn_config_test dlls/sti/tests sti_test
16247 wine_fn_config_dll storage.dll16 enable_win16
16248 wine_fn_config_dll stress.dll16 enable_win16
16249 wine_fn_config_lib strmbase
16250 wine_fn_config_lib strmiids
16251 wine_fn_config_dll svrapi enable_svrapi
16252 wine_fn_config_dll sxs enable_sxs implib
16253 wine_fn_config_test dlls/sxs/tests sxs_test
16254 wine_fn_config_dll system.drv16 enable_win16
16255 wine_fn_config_dll t2embed enable_t2embed
16256 wine_fn_config_dll tapi32 enable_tapi32 implib
16257 wine_fn_config_dll toolhelp.dll16 enable_win16
16258 wine_fn_config_dll traffic enable_traffic
16259 wine_fn_config_dll twain.dll16 enable_win16
16260 wine_fn_config_dll twain_32 enable_twain_32
16261 wine_fn_config_test dlls/twain_32/tests twain_32_test
16262 wine_fn_config_dll typelib.dll16 enable_win16
16263 wine_fn_config_dll unicows enable_unicows implib
16264 wine_fn_config_dll updspapi enable_updspapi
16265 wine_fn_config_dll url enable_url implib
16266 wine_fn_config_dll urlmon enable_urlmon implib,po
16267 wine_fn_config_test dlls/urlmon/tests urlmon_test
16268 wine_fn_config_dll usbd.sys enable_usbd_sys implib
16269 wine_fn_config_dll user.exe16 enable_win16
16270 wine_fn_config_dll user32 enable_user32 implib,po
16271 wine_fn_config_test dlls/user32/tests user32_test
16272 wine_fn_config_dll userenv enable_userenv implib
16273 wine_fn_config_test dlls/userenv/tests userenv_test
16274 wine_fn_config_dll usp10 enable_usp10 implib
16275 wine_fn_config_test dlls/usp10/tests usp10_test
16276 wine_fn_config_lib uuid
16277 wine_fn_config_dll uxtheme enable_uxtheme implib
16278 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
16279 wine_fn_config_dll vbscript enable_vbscript
16280 wine_fn_config_test dlls/vbscript/tests vbscript_test
16281 wine_fn_config_dll vcomp enable_vcomp
16282 wine_fn_config_dll vcomp100 enable_vcomp100
16283 wine_fn_config_dll vcomp90 enable_vcomp90
16284 wine_fn_config_dll vdhcp.vxd enable_win16
16285 wine_fn_config_dll vdmdbg enable_vdmdbg implib
16286 wine_fn_config_dll ver.dll16 enable_win16
16287 wine_fn_config_dll version enable_version implib
16288 wine_fn_config_test dlls/version/tests version_test
16289 wine_fn_config_dll vmm.vxd enable_win16
16290 wine_fn_config_dll vnbt.vxd enable_win16
16291 wine_fn_config_dll vnetbios.vxd enable_win16
16292 wine_fn_config_dll vtdapi.vxd enable_win16
16293 wine_fn_config_dll vwin32.vxd enable_win16
16294 wine_fn_config_dll w32skrnl enable_win16
16295 wine_fn_config_dll w32sys.dll16 enable_win16
16296 wine_fn_config_dll wbemprox enable_wbemprox
16297 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
16298 wine_fn_config_dll webservices enable_webservices implib
16299 wine_fn_config_dll wer enable_wer implib
16300 wine_fn_config_test dlls/wer/tests wer_test
16301 wine_fn_config_dll wevtapi enable_wevtapi
16302 wine_fn_config_dll wiaservc enable_wiaservc
16303 wine_fn_config_dll win32s16.dll16 enable_win16
16304 wine_fn_config_dll win87em.dll16 enable_win16
16305 wine_fn_config_dll winaspi.dll16 enable_win16
16306 wine_fn_config_dll windebug.dll16 enable_win16
16307 wine_fn_config_dll windowscodecs enable_windowscodecs implib
16308 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
16309 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
16310 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
16311 wine_fn_config_dll winealsa.drv enable_winealsa_drv
16312 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
16313 wine_fn_config_lib winecrt0
16314 wine_fn_config_dll wined3d enable_wined3d implib
16315 wine_fn_config_dll winegstreamer enable_winegstreamer
16316 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
16317 wine_fn_config_dll winemac.drv enable_winemac_drv
16318 wine_fn_config_dll winemapi enable_winemapi
16319 wine_fn_config_dll winemp3.acm enable_winemp3_acm
16320 wine_fn_config_dll wineoss.drv enable_wineoss_drv
16321 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
16322 wine_fn_config_dll wineps16.drv16 enable_win16
16323 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
16324 wine_fn_config_dll winex11.drv enable_winex11_drv
16325 wine_fn_config_dll wing.dll16 enable_win16
16326 wine_fn_config_dll wing32 enable_wing32
16327 wine_fn_config_dll winhttp enable_winhttp implib
16328 wine_fn_config_test dlls/winhttp/tests winhttp_test
16329 wine_fn_config_dll wininet enable_wininet implib,po
16330 wine_fn_config_test dlls/wininet/tests wininet_test
16331 wine_fn_config_dll winmm enable_winmm implib,po
16332 wine_fn_config_test dlls/winmm/tests winmm_test
16333 wine_fn_config_dll winnls.dll16 enable_win16
16334 wine_fn_config_dll winnls32 enable_winnls32 implib
16335 wine_fn_config_dll winscard enable_winscard implib
16336 wine_fn_config_dll winsock.dll16 enable_win16
16337 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
16338 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
16339 wine_fn_config_dll winsta enable_winsta
16340 wine_fn_config_dll wintab.dll16 enable_win16
16341 wine_fn_config_dll wintab32 enable_wintab32 implib
16342 wine_fn_config_test dlls/wintab32/tests wintab32_test
16343 wine_fn_config_dll wintrust enable_wintrust implib
16344 wine_fn_config_test dlls/wintrust/tests wintrust_test
16345 wine_fn_config_dll wlanapi enable_wlanapi
16346 wine_fn_config_dll wldap32 enable_wldap32 implib,po
16347 wine_fn_config_test dlls/wldap32/tests wldap32_test
16348 wine_fn_config_dll wmi enable_wmi
16349 wine_fn_config_dll wmiutils enable_wmiutils
16350 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
16351 wine_fn_config_dll wmvcore enable_wmvcore
16352 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
16353 wine_fn_config_dll wow32 enable_win16 implib
16354 wine_fn_config_dll ws2_32 enable_ws2_32 implib
16355 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
16356 wine_fn_config_dll wshom.ocx enable_wshom_ocx
16357 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
16358 wine_fn_config_dll wsnmp32 enable_wsnmp32
16359 wine_fn_config_dll wsock32 enable_wsock32 implib
16360 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
16361 wine_fn_config_dll wuapi enable_wuapi
16362 wine_fn_config_dll wuaueng enable_wuaueng
16363 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
16364 wine_fn_config_dll xinput1_1 enable_xinput1_1
16365 wine_fn_config_dll xinput1_2 enable_xinput1_2
16366 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
16367 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
16368 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
16369 wine_fn_config_dll xmllite enable_xmllite
16370 wine_fn_config_test dlls/xmllite/tests xmllite_test
16371 wine_fn_config_dll xolehlp enable_xolehlp
16372 wine_fn_config_dll xpsprint enable_xpsprint
16373 wine_fn_config_dll xpssvcs enable_xpssvcs
16374 wine_fn_config_makefile documentation enable_documentation
16375 wine_fn_config_makefile fonts enable_fonts install-lib
16376 wine_fn_config_makefile include enable_include install-dev
16377 wine_fn_config_makefile libs/port enable_libs_port
16378 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
16379 wine_fn_config_makefile libs/wpp enable_libs_wpp
16380 wine_fn_config_makefile loader enable_loader install-lib,manpage
16381 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
16382 wine_fn_config_program attrib enable_attrib install,po
16383 wine_fn_config_program cabarc enable_cabarc install
16384 wine_fn_config_program cacls enable_cacls install
16385 wine_fn_config_program clock enable_clock install,po
16386 wine_fn_config_program cmd enable_cmd install,po
16387 wine_fn_config_test programs/cmd/tests cmd.exe_test
16388 wine_fn_config_program conhost enable_conhost install
16389 wine_fn_config_program control enable_control install
16390 wine_fn_config_program cscript enable_cscript install
16391 wine_fn_config_program dxdiag enable_dxdiag install,po
16392 wine_fn_config_program eject enable_eject install
16393 wine_fn_config_program expand enable_expand install
16394 wine_fn_config_program explorer enable_explorer install,po
16395 wine_fn_config_program extrac32 enable_extrac32 install
16396 wine_fn_config_program findstr enable_findstr install
16397 wine_fn_config_program hh enable_hh install
16398 wine_fn_config_program hostname enable_hostname install,po
16399 wine_fn_config_program icinfo enable_icinfo install
16400 wine_fn_config_program iexplore enable_iexplore install
16401 wine_fn_config_program ipconfig enable_ipconfig install,po
16402 wine_fn_config_program lodctr enable_lodctr install
16403 wine_fn_config_program mofcomp enable_mofcomp install
16404 wine_fn_config_program mshta enable_mshta install
16405 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
16406 wine_fn_config_program net enable_net install,po
16407 wine_fn_config_program netsh enable_netsh install
16408 wine_fn_config_program netstat enable_netstat install,po
16409 wine_fn_config_program ngen enable_ngen install
16410 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
16411 wine_fn_config_program oleview enable_oleview install,po
16412 wine_fn_config_program ping enable_ping install
16413 wine_fn_config_program plugplay enable_plugplay install
16414 wine_fn_config_program presentationfontcache enable_presentationfontcache install
16415 wine_fn_config_program progman enable_progman install,po
16416 wine_fn_config_program reg enable_reg install,po
16417 wine_fn_config_program regasm enable_regasm install
16418 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
16419 wine_fn_config_test programs/regedit/tests regedit.exe_test
16420 wine_fn_config_program regsvcs enable_regsvcs install
16421 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
16422 wine_fn_config_program rpcss enable_rpcss install
16423 wine_fn_config_program rundll.exe16 enable_win16 install
16424 wine_fn_config_program rundll32 enable_rundll32 install
16425 wine_fn_config_program sc enable_sc install
16426 wine_fn_config_program schtasks enable_schtasks install
16427 wine_fn_config_program secedit enable_secedit install
16428 wine_fn_config_program servicemodelreg enable_servicemodelreg install
16429 wine_fn_config_program services enable_services install
16430 wine_fn_config_test programs/services/tests services.exe_test
16431 wine_fn_config_program spoolsv enable_spoolsv install
16432 wine_fn_config_program start enable_start install,po
16433 wine_fn_config_program svchost enable_svchost install
16434 wine_fn_config_program taskkill enable_taskkill install,po
16435 wine_fn_config_program taskmgr enable_taskmgr install,po
16436 wine_fn_config_program termsv enable_termsv install
16437 wine_fn_config_program uninstaller enable_uninstaller install,po
16438 wine_fn_config_program unlodctr enable_unlodctr install
16439 wine_fn_config_program view enable_view install,po
16440 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
16441 wine_fn_config_program winebrowser enable_winebrowser install
16442 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
16443 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
16444 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
16445 wine_fn_config_program winedevice enable_winedevice install
16446 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
16447 wine_fn_config_program winemenubuilder enable_winemenubuilder install
16448 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
16449 wine_fn_config_program winemsibuilder enable_winemsibuilder install
16450 wine_fn_config_program winepath enable_winepath install,installbin,manpage
16451 wine_fn_config_program winetest enable_winetest
16452 wine_fn_config_program winevdm enable_win16 install
16453 wine_fn_config_program winhelp.exe16 enable_win16 install
16454 wine_fn_config_program winhlp32 enable_winhlp32 install,po
16455 wine_fn_config_program winoldap.mod16 enable_win16 install
16456 wine_fn_config_program winver enable_winver install
16457 wine_fn_config_program wmic enable_wmic install,po
16458 wine_fn_config_program wordpad enable_wordpad install,po
16459 wine_fn_config_program write enable_write install,po
16460 wine_fn_config_program wscript enable_wscript install
16461 wine_fn_config_test programs/wscript/tests wscript.exe_test
16462 wine_fn_config_program wusa enable_wusa install
16463 wine_fn_config_program xcopy enable_xcopy install,po
16464 wine_fn_config_makefile server enable_server install-lib,manpage
16465 wine_fn_config_tool tools install-dev,install-lib,manpage
16466 wine_fn_config_tool tools/widl install-dev,manpage
16467 wine_fn_config_tool tools/winebuild install-dev,manpage
16468 wine_fn_config_tool tools/winedump install-dev,manpage
16469 wine_fn_config_tool tools/winegcc install-dev,manpage
16470 wine_fn_config_tool tools/wmc install-dev,manpage
16471 wine_fn_config_tool tools/wrc install-dev,manpage
16473 LINGUAS="\
16474 ar \
16475 bg \
16476 ca \
16477 cs \
16478 da \
16479 de \
16480 el \
16481 en \
16482 en_US \
16483 eo \
16484 es \
16485 fa \
16486 fi \
16487 fr \
16488 he \
16489 hi \
16490 hu \
16491 it \
16492 ja \
16493 ko \
16494 lt \
16495 ml \
16496 nb_NO \
16497 nl \
16498 or \
16499 pa \
16500 pl \
16501 pt_BR \
16502 pt_PT \
16503 rm \
16504 ro \
16505 ru \
16506 sk \
16507 sl \
16508 sr_RS@cyrillic \
16509 sr_RS@latin \
16510 sv \
16511 te \
16512 th \
16513 tr \
16514 uk \
16515 wa \
16516 zh_CN \
16517 zh_TW"
16521 ac_config_commands="$ac_config_commands Makefile"
16524 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
16528 if test "x$enable_maintainer_mode" = xyes
16529 then
16530 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
16531 cd \$(srcdir) && autoconf --warnings=all
16532 \$(srcdir)/include/config.h.in: include/stamp-h.in
16533 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
16534 cd \$(srcdir) && autoheader --warnings=all
16535 @echo timestamp > \$@"
16538 if test "x$with_gettextpo" = xyes
16539 then
16540 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
16541 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
16542 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
16543 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
16544 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
16545 msgcat -o \$@ \$(ALL_POT_FILES)"
16548 if test "$MSGFMT" != false
16549 then
16550 PORCFLAGS="--po-dir=\$(top_builddir)/po"
16552 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
16553 else
16554 LINGUAS=
16557 if test "x$enable_tools" != xno
16558 then
16559 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
16560 clean:: __clean__
16561 \$(RM) tools/makedep\$(EXEEXT)"
16564 if test -n "$with_wine64"
16565 then
16566 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
16567 fonts server tools:
16568 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
16569 $with_wine64/loader/wine:
16570 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
16571 $with_wine64/loader/wine-preloader:
16572 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
16573 clean::
16574 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
16577 cat >confcache <<\_ACEOF
16578 # This file is a shell script that caches the results of configure
16579 # tests run on this system so they can be shared between configure
16580 # scripts and configure runs, see configure's option --config-cache.
16581 # It is not useful on other systems. If it contains results you don't
16582 # want to keep, you may remove or edit it.
16584 # config.status only pays attention to the cache file if you give it
16585 # the --recheck option to rerun configure.
16587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16589 # following values.
16591 _ACEOF
16593 # The following way of writing the cache mishandles newlines in values,
16594 # but we know of no workaround that is simple, portable, and efficient.
16595 # So, we kill variables containing newlines.
16596 # Ultrix sh set writes to stderr and can't be redirected directly,
16597 # and sets the high bit in the cache file unless we assign to the vars.
16599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16600 eval ac_val=\$$ac_var
16601 case $ac_val in #(
16602 *${as_nl}*)
16603 case $ac_var in #(
16604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16605 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16606 esac
16607 case $ac_var in #(
16608 _ | IFS | as_nl) ;; #(
16609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16610 *) { eval $ac_var=; unset $ac_var;} ;;
16611 esac ;;
16612 esac
16613 done
16615 (set) 2>&1 |
16616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16617 *${as_nl}ac_space=\ *)
16618 # `set' does not quote correctly, so add quotes: double-quote
16619 # substitution turns \\\\ into \\, and sed turns \\ into \.
16620 sed -n \
16621 "s/'/'\\\\''/g;
16622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16623 ;; #(
16625 # `set' quotes correctly as required by POSIX, so do not add quotes.
16626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16628 esac |
16629 sort
16631 sed '
16632 /^ac_cv_env_/b end
16633 t clear
16634 :clear
16635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16636 t end
16637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16638 :end' >>confcache
16639 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16640 if test -w "$cache_file"; then
16641 if test "x$cache_file" != "x/dev/null"; then
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16643 $as_echo "$as_me: updating cache $cache_file" >&6;}
16644 if test ! -f "$cache_file" || test -h "$cache_file"; then
16645 cat confcache >"$cache_file"
16646 else
16647 case $cache_file in #(
16648 */* | ?:*)
16649 mv -f confcache "$cache_file"$$ &&
16650 mv -f "$cache_file"$$ "$cache_file" ;; #(
16652 mv -f confcache "$cache_file" ;;
16653 esac
16656 else
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16658 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16661 rm -f confcache
16663 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16664 # Let make expand exec_prefix.
16665 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16667 DEFS=-DHAVE_CONFIG_H
16669 ac_libobjs=
16670 ac_ltlibobjs=
16672 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16673 # 1. Remove the extension, and $U if already installed.
16674 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16675 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16676 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16677 # will be set to the directory where LIBOBJS objects are built.
16678 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16679 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16680 done
16681 LIBOBJS=$ac_libobjs
16683 LTLIBOBJS=$ac_ltlibobjs
16687 : "${CONFIG_STATUS=./config.status}"
16688 ac_write_fail=0
16689 ac_clean_files_save=$ac_clean_files
16690 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16692 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16693 as_write_fail=0
16694 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16695 #! $SHELL
16696 # Generated by $as_me.
16697 # Run this file to recreate the current configuration.
16698 # Compiler output produced by configure, useful for debugging
16699 # configure, is in config.log if it exists.
16701 debug=false
16702 ac_cs_recheck=false
16703 ac_cs_silent=false
16705 SHELL=\${CONFIG_SHELL-$SHELL}
16706 export SHELL
16707 _ASEOF
16708 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16709 ## -------------------- ##
16710 ## M4sh Initialization. ##
16711 ## -------------------- ##
16713 # Be more Bourne compatible
16714 DUALCASE=1; export DUALCASE # for MKS sh
16715 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16716 emulate sh
16717 NULLCMD=:
16718 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16719 # is contrary to our usage. Disable this feature.
16720 alias -g '${1+"$@"}'='"$@"'
16721 setopt NO_GLOB_SUBST
16722 else
16723 case `(set -o) 2>/dev/null` in #(
16724 *posix*) :
16725 set -o posix ;; #(
16726 *) :
16728 esac
16732 as_nl='
16734 export as_nl
16735 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16736 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16737 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16739 # Prefer a ksh shell builtin over an external printf program on Solaris,
16740 # but without wasting forks for bash or zsh.
16741 if test -z "$BASH_VERSION$ZSH_VERSION" \
16742 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16743 as_echo='print -r --'
16744 as_echo_n='print -rn --'
16745 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16746 as_echo='printf %s\n'
16747 as_echo_n='printf %s'
16748 else
16749 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16750 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16751 as_echo_n='/usr/ucb/echo -n'
16752 else
16753 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16754 as_echo_n_body='eval
16755 arg=$1;
16756 case $arg in #(
16757 *"$as_nl"*)
16758 expr "X$arg" : "X\\(.*\\)$as_nl";
16759 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16760 esac;
16761 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16763 export as_echo_n_body
16764 as_echo_n='sh -c $as_echo_n_body as_echo'
16766 export as_echo_body
16767 as_echo='sh -c $as_echo_body as_echo'
16770 # The user is always right.
16771 if test "${PATH_SEPARATOR+set}" != set; then
16772 PATH_SEPARATOR=:
16773 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16774 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16775 PATH_SEPARATOR=';'
16780 # IFS
16781 # We need space, tab and new line, in precisely that order. Quoting is
16782 # there to prevent editors from complaining about space-tab.
16783 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16784 # splitting by setting IFS to empty value.)
16785 IFS=" "" $as_nl"
16787 # Find who we are. Look in the path if we contain no directory separator.
16788 as_myself=
16789 case $0 in #((
16790 *[\\/]* ) as_myself=$0 ;;
16791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16792 for as_dir in $PATH
16794 IFS=$as_save_IFS
16795 test -z "$as_dir" && as_dir=.
16796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16797 done
16798 IFS=$as_save_IFS
16801 esac
16802 # We did not find ourselves, most probably we were run as `sh COMMAND'
16803 # in which case we are not to be found in the path.
16804 if test "x$as_myself" = x; then
16805 as_myself=$0
16807 if test ! -f "$as_myself"; then
16808 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16809 exit 1
16812 # Unset variables that we do not need and which cause bugs (e.g. in
16813 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16814 # suppresses any "Segmentation fault" message there. '((' could
16815 # trigger a bug in pdksh 5.2.14.
16816 for as_var in BASH_ENV ENV MAIL MAILPATH
16817 do eval test x\${$as_var+set} = xset \
16818 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16819 done
16820 PS1='$ '
16821 PS2='> '
16822 PS4='+ '
16824 # NLS nuisances.
16825 LC_ALL=C
16826 export LC_ALL
16827 LANGUAGE=C
16828 export LANGUAGE
16830 # CDPATH.
16831 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16834 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16835 # ----------------------------------------
16836 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16837 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16838 # script with STATUS, using 1 if that was 0.
16839 as_fn_error ()
16841 as_status=$1; test $as_status -eq 0 && as_status=1
16842 if test "$4"; then
16843 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16844 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16846 $as_echo "$as_me: error: $2" >&2
16847 as_fn_exit $as_status
16848 } # as_fn_error
16851 # as_fn_set_status STATUS
16852 # -----------------------
16853 # Set $? to STATUS, without forking.
16854 as_fn_set_status ()
16856 return $1
16857 } # as_fn_set_status
16859 # as_fn_exit STATUS
16860 # -----------------
16861 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16862 as_fn_exit ()
16864 set +e
16865 as_fn_set_status $1
16866 exit $1
16867 } # as_fn_exit
16869 # as_fn_unset VAR
16870 # ---------------
16871 # Portably unset VAR.
16872 as_fn_unset ()
16874 { eval $1=; unset $1;}
16876 as_unset=as_fn_unset
16877 # as_fn_append VAR VALUE
16878 # ----------------------
16879 # Append the text in VALUE to the end of the definition contained in VAR. Take
16880 # advantage of any shell optimizations that allow amortized linear growth over
16881 # repeated appends, instead of the typical quadratic growth present in naive
16882 # implementations.
16883 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16884 eval 'as_fn_append ()
16886 eval $1+=\$2
16888 else
16889 as_fn_append ()
16891 eval $1=\$$1\$2
16893 fi # as_fn_append
16895 # as_fn_arith ARG...
16896 # ------------------
16897 # Perform arithmetic evaluation on the ARGs, and store the result in the
16898 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16899 # must be portable across $(()) and expr.
16900 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16901 eval 'as_fn_arith ()
16903 as_val=$(( $* ))
16905 else
16906 as_fn_arith ()
16908 as_val=`expr "$@" || test $? -eq 1`
16910 fi # as_fn_arith
16913 if expr a : '\(a\)' >/dev/null 2>&1 &&
16914 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16915 as_expr=expr
16916 else
16917 as_expr=false
16920 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16921 as_basename=basename
16922 else
16923 as_basename=false
16926 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16927 as_dirname=dirname
16928 else
16929 as_dirname=false
16932 as_me=`$as_basename -- "$0" ||
16933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16934 X"$0" : 'X\(//\)$' \| \
16935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16936 $as_echo X/"$0" |
16937 sed '/^.*\/\([^/][^/]*\)\/*$/{
16938 s//\1/
16941 /^X\/\(\/\/\)$/{
16942 s//\1/
16945 /^X\/\(\/\).*/{
16946 s//\1/
16949 s/.*/./; q'`
16951 # Avoid depending upon Character Ranges.
16952 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16953 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16954 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16955 as_cr_digits='0123456789'
16956 as_cr_alnum=$as_cr_Letters$as_cr_digits
16958 ECHO_C= ECHO_N= ECHO_T=
16959 case `echo -n x` in #(((((
16960 -n*)
16961 case `echo 'xy\c'` in
16962 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16963 xy) ECHO_C='\c';;
16964 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16965 ECHO_T=' ';;
16966 esac;;
16968 ECHO_N='-n';;
16969 esac
16971 rm -f conf$$ conf$$.exe conf$$.file
16972 if test -d conf$$.dir; then
16973 rm -f conf$$.dir/conf$$.file
16974 else
16975 rm -f conf$$.dir
16976 mkdir conf$$.dir 2>/dev/null
16978 if (echo >conf$$.file) 2>/dev/null; then
16979 if ln -s conf$$.file conf$$ 2>/dev/null; then
16980 as_ln_s='ln -s'
16981 # ... but there are two gotchas:
16982 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16983 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16984 # In both cases, we have to default to `cp -pR'.
16985 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16986 as_ln_s='cp -pR'
16987 elif ln conf$$.file conf$$ 2>/dev/null; then
16988 as_ln_s=ln
16989 else
16990 as_ln_s='cp -pR'
16992 else
16993 as_ln_s='cp -pR'
16995 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16996 rmdir conf$$.dir 2>/dev/null
16999 # as_fn_mkdir_p
17000 # -------------
17001 # Create "$as_dir" as a directory, including parents if necessary.
17002 as_fn_mkdir_p ()
17005 case $as_dir in #(
17006 -*) as_dir=./$as_dir;;
17007 esac
17008 test -d "$as_dir" || eval $as_mkdir_p || {
17009 as_dirs=
17010 while :; do
17011 case $as_dir in #(
17012 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17013 *) as_qdir=$as_dir;;
17014 esac
17015 as_dirs="'$as_qdir' $as_dirs"
17016 as_dir=`$as_dirname -- "$as_dir" ||
17017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17018 X"$as_dir" : 'X\(//\)[^/]' \| \
17019 X"$as_dir" : 'X\(//\)$' \| \
17020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17021 $as_echo X"$as_dir" |
17022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17023 s//\1/
17026 /^X\(\/\/\)[^/].*/{
17027 s//\1/
17030 /^X\(\/\/\)$/{
17031 s//\1/
17034 /^X\(\/\).*/{
17035 s//\1/
17038 s/.*/./; q'`
17039 test -d "$as_dir" && break
17040 done
17041 test -z "$as_dirs" || eval "mkdir $as_dirs"
17042 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17045 } # as_fn_mkdir_p
17046 if mkdir -p . 2>/dev/null; then
17047 as_mkdir_p='mkdir -p "$as_dir"'
17048 else
17049 test -d ./-p && rmdir ./-p
17050 as_mkdir_p=false
17054 # as_fn_executable_p FILE
17055 # -----------------------
17056 # Test if FILE is an executable regular file.
17057 as_fn_executable_p ()
17059 test -f "$1" && test -x "$1"
17060 } # as_fn_executable_p
17061 as_test_x='test -x'
17062 as_executable_p=as_fn_executable_p
17064 # Sed expression to map a string onto a valid CPP name.
17065 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17067 # Sed expression to map a string onto a valid variable name.
17068 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17071 exec 6>&1
17072 ## ----------------------------------- ##
17073 ## Main body of $CONFIG_STATUS script. ##
17074 ## ----------------------------------- ##
17075 _ASEOF
17076 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17079 # Save the log message, to keep $0 and so on meaningful, and to
17080 # report actual input values of CONFIG_FILES etc. instead of their
17081 # values after options handling.
17082 ac_log="
17083 This file was extended by Wine $as_me 1.5.29, which was
17084 generated by GNU Autoconf 2.69. Invocation command line was
17086 CONFIG_FILES = $CONFIG_FILES
17087 CONFIG_HEADERS = $CONFIG_HEADERS
17088 CONFIG_LINKS = $CONFIG_LINKS
17089 CONFIG_COMMANDS = $CONFIG_COMMANDS
17090 $ $0 $@
17092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17095 _ACEOF
17097 case $ac_config_files in *"
17098 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17099 esac
17101 case $ac_config_headers in *"
17102 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17103 esac
17106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17107 # Files that config.status was made for.
17108 config_files="$ac_config_files"
17109 config_headers="$ac_config_headers"
17110 config_links="$ac_config_links"
17111 config_commands="$ac_config_commands"
17113 _ACEOF
17115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17116 ac_cs_usage="\
17117 \`$as_me' instantiates files and other configuration actions
17118 from templates according to the current configuration. Unless the files
17119 and actions are specified as TAGs, all are instantiated by default.
17121 Usage: $0 [OPTION]... [TAG]...
17123 -h, --help print this help, then exit
17124 -V, --version print version number and configuration settings, then exit
17125 --config print configuration, then exit
17126 -q, --quiet, --silent
17127 do not print progress messages
17128 -d, --debug don't remove temporary files
17129 --recheck update $as_me by reconfiguring in the same conditions
17130 --file=FILE[:TEMPLATE]
17131 instantiate the configuration file FILE
17132 --header=FILE[:TEMPLATE]
17133 instantiate the configuration header FILE
17135 Configuration files:
17136 $config_files
17138 Configuration headers:
17139 $config_headers
17141 Configuration links:
17142 $config_links
17144 Configuration commands:
17145 $config_commands
17147 Report bugs to <wine-devel@winehq.org>.
17148 Wine home page: <http://www.winehq.org>."
17150 _ACEOF
17151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17152 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17153 ac_cs_version="\\
17154 Wine config.status 1.5.29
17155 configured by $0, generated by GNU Autoconf 2.69,
17156 with options \\"\$ac_cs_config\\"
17158 Copyright (C) 2012 Free Software Foundation, Inc.
17159 This config.status script is free software; the Free Software Foundation
17160 gives unlimited permission to copy, distribute and modify it."
17162 ac_pwd='$ac_pwd'
17163 srcdir='$srcdir'
17164 INSTALL='$INSTALL'
17165 test -n "\$AWK" || AWK=awk
17166 _ACEOF
17168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17169 # The default lists apply if the user does not specify any file.
17170 ac_need_defaults=:
17171 while test $# != 0
17173 case $1 in
17174 --*=?*)
17175 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17176 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17177 ac_shift=:
17179 --*=)
17180 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17181 ac_optarg=
17182 ac_shift=:
17185 ac_option=$1
17186 ac_optarg=$2
17187 ac_shift=shift
17189 esac
17191 case $ac_option in
17192 # Handling of the options.
17193 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17194 ac_cs_recheck=: ;;
17195 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17196 $as_echo "$ac_cs_version"; exit ;;
17197 --config | --confi | --conf | --con | --co | --c )
17198 $as_echo "$ac_cs_config"; exit ;;
17199 --debug | --debu | --deb | --de | --d | -d )
17200 debug=: ;;
17201 --file | --fil | --fi | --f )
17202 $ac_shift
17203 case $ac_optarg in
17204 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17205 '') as_fn_error $? "missing file argument" ;;
17206 esac
17207 as_fn_append CONFIG_FILES " '$ac_optarg'"
17208 ac_need_defaults=false;;
17209 --header | --heade | --head | --hea )
17210 $ac_shift
17211 case $ac_optarg in
17212 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17213 esac
17214 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17215 ac_need_defaults=false;;
17216 --he | --h)
17217 # Conflict between --help and --header
17218 as_fn_error $? "ambiguous option: \`$1'
17219 Try \`$0 --help' for more information.";;
17220 --help | --hel | -h )
17221 $as_echo "$ac_cs_usage"; exit ;;
17222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17223 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17224 ac_cs_silent=: ;;
17226 # This is an error.
17227 -*) as_fn_error $? "unrecognized option: \`$1'
17228 Try \`$0 --help' for more information." ;;
17230 *) as_fn_append ac_config_targets " $1"
17231 ac_need_defaults=false ;;
17233 esac
17234 shift
17235 done
17237 ac_configure_extra_args=
17239 if $ac_cs_silent; then
17240 exec 6>/dev/null
17241 ac_configure_extra_args="$ac_configure_extra_args --silent"
17244 _ACEOF
17245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17246 if \$ac_cs_recheck; then
17247 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17248 shift
17249 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17250 CONFIG_SHELL='$SHELL'
17251 export CONFIG_SHELL
17252 exec "\$@"
17255 _ACEOF
17256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17257 exec 5>>config.log
17259 echo
17260 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17261 ## Running $as_me. ##
17262 _ASBOX
17263 $as_echo "$ac_log"
17264 } >&5
17266 _ACEOF
17267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17269 # INIT-COMMANDS
17271 wine_fn_output_makefile ()
17273 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
17274 $ALL_MAKEFILE_DEPENDS
17275 _WINE_EOF
17276 as_fn_error $? "could not create Makefile" "$LINENO" 5
17279 _ACEOF
17281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17283 # Handling of arguments.
17284 for ac_config_target in $ac_config_targets
17286 case $ac_config_target in
17287 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17288 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
17289 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
17290 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
17291 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
17292 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
17293 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
17294 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
17295 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
17296 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
17297 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
17298 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
17299 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
17300 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
17301 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
17302 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
17303 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
17304 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
17305 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17306 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17307 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
17308 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17309 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
17310 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17311 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
17312 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
17314 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17315 esac
17316 done
17319 # If the user did not use the arguments to specify the items to instantiate,
17320 # then the envvar interface is used. Set only those that are not.
17321 # We use the long form for the default assignment because of an extremely
17322 # bizarre bug on SunOS 4.1.3.
17323 if $ac_need_defaults; then
17324 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17325 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17326 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17327 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17330 # Have a temporary directory for convenience. Make it in the build tree
17331 # simply because there is no reason against having it here, and in addition,
17332 # creating and moving files from /tmp can sometimes cause problems.
17333 # Hook for its removal unless debugging.
17334 # Note that there is a small window in which the directory will not be cleaned:
17335 # after its creation but before its name has been assigned to `$tmp'.
17336 $debug ||
17338 tmp= ac_tmp=
17339 trap 'exit_status=$?
17340 : "${ac_tmp:=$tmp}"
17341 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17343 trap 'as_fn_exit 1' 1 2 13 15
17345 # Create a (secure) tmp directory for tmp files.
17348 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17349 test -d "$tmp"
17350 } ||
17352 tmp=./conf$$-$RANDOM
17353 (umask 077 && mkdir "$tmp")
17354 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17355 ac_tmp=$tmp
17357 # Set up the scripts for CONFIG_FILES section.
17358 # No need to generate them if there are no CONFIG_FILES.
17359 # This happens for instance with `./config.status config.h'.
17360 if test -n "$CONFIG_FILES"; then
17362 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17363 ac_cs_awk_getline=:
17364 ac_cs_awk_pipe_init=
17365 ac_cs_awk_read_file='
17366 while ((getline aline < (F[key])) > 0)
17367 print(aline)
17368 close(F[key])'
17369 ac_cs_awk_pipe_fini=
17370 else
17371 ac_cs_awk_getline=false
17372 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17373 ac_cs_awk_read_file='
17374 print "|#_!!_#|"
17375 print "cat " F[key] " &&"
17376 '$ac_cs_awk_pipe_init
17377 # The final `:' finishes the AND list.
17378 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17380 ac_cr=`echo X | tr X '\015'`
17381 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17382 # But we know of no other shell where ac_cr would be empty at this
17383 # point, so we can use a bashism as a fallback.
17384 if test "x$ac_cr" = x; then
17385 eval ac_cr=\$\'\\r\'
17387 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17388 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17389 ac_cs_awk_cr='\\r'
17390 else
17391 ac_cs_awk_cr=$ac_cr
17394 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17395 _ACEOF
17397 # Create commands to substitute file output variables.
17399 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17400 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17401 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17402 echo "_ACAWK" &&
17403 echo "_ACEOF"
17404 } >conf$$files.sh &&
17405 . ./conf$$files.sh ||
17406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17407 rm -f conf$$files.sh
17410 echo "cat >conf$$subs.awk <<_ACEOF" &&
17411 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17412 echo "_ACEOF"
17413 } >conf$$subs.sh ||
17414 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17415 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17416 ac_delim='%!_!# '
17417 for ac_last_try in false false false false false :; do
17418 . ./conf$$subs.sh ||
17419 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17421 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17422 if test $ac_delim_n = $ac_delim_num; then
17423 break
17424 elif $ac_last_try; then
17425 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17426 else
17427 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17429 done
17430 rm -f conf$$subs.sh
17432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17433 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17434 _ACEOF
17435 sed -n '
17437 s/^/S["/; s/!.*/"]=/
17440 s/^[^!]*!//
17441 :repl
17442 t repl
17443 s/'"$ac_delim"'$//
17444 t delim
17447 s/\(.\{148\}\)..*/\1/
17448 t more1
17449 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17452 b repl
17453 :more1
17454 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17457 s/.\{148\}//
17458 t nl
17459 :delim
17461 s/\(.\{148\}\)..*/\1/
17462 t more2
17463 s/["\\]/\\&/g; s/^/"/; s/$/"/
17466 :more2
17467 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17470 s/.\{148\}//
17471 t delim
17472 ' <conf$$subs.awk | sed '
17473 /^[^""]/{
17475 s/\n//
17477 ' >>$CONFIG_STATUS || ac_write_fail=1
17478 rm -f conf$$subs.awk
17479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17480 _ACAWK
17481 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17482 for (key in S) S_is_set[key] = 1
17483 FS = "\a"
17484 \$ac_cs_awk_pipe_init
17487 line = $ 0
17488 nfields = split(line, field, "@")
17489 substed = 0
17490 len = length(field[1])
17491 for (i = 2; i < nfields; i++) {
17492 key = field[i]
17493 keylen = length(key)
17494 if (S_is_set[key]) {
17495 value = S[key]
17496 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17497 len += length(value) + length(field[++i])
17498 substed = 1
17499 } else
17500 len += 1 + keylen
17502 if (nfields == 3 && !substed) {
17503 key = field[2]
17504 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17505 \$ac_cs_awk_read_file
17506 next
17509 print line
17511 \$ac_cs_awk_pipe_fini
17512 _ACAWK
17513 _ACEOF
17514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17515 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17516 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17517 else
17519 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17520 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17521 _ACEOF
17523 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17524 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17525 # trailing colons and then remove the whole line if VPATH becomes empty
17526 # (actually we leave an empty line to preserve line numbers).
17527 if test "x$srcdir" = x.; then
17528 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17530 s///
17531 s/^/:/
17532 s/[ ]*$/:/
17533 s/:\$(srcdir):/:/g
17534 s/:\${srcdir}:/:/g
17535 s/:@srcdir@:/:/g
17536 s/^:*//
17537 s/:*$//
17539 s/\(=[ ]*\).*/\1/
17541 s/\n//
17542 s/^[^=]*=[ ]*$//
17546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17547 fi # test -n "$CONFIG_FILES"
17549 # Set up the scripts for CONFIG_HEADERS section.
17550 # No need to generate them if there are no CONFIG_HEADERS.
17551 # This happens for instance with `./config.status Makefile'.
17552 if test -n "$CONFIG_HEADERS"; then
17553 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17554 BEGIN {
17555 _ACEOF
17557 # Transform confdefs.h into an awk script `defines.awk', embedded as
17558 # here-document in config.status, that substitutes the proper values into
17559 # config.h.in to produce config.h.
17561 # Create a delimiter string that does not exist in confdefs.h, to ease
17562 # handling of long lines.
17563 ac_delim='%!_!# '
17564 for ac_last_try in false false :; do
17565 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17566 if test -z "$ac_tt"; then
17567 break
17568 elif $ac_last_try; then
17569 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17570 else
17571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17573 done
17575 # For the awk script, D is an array of macro values keyed by name,
17576 # likewise P contains macro parameters if any. Preserve backslash
17577 # newline sequences.
17579 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17580 sed -n '
17581 s/.\{148\}/&'"$ac_delim"'/g
17582 t rset
17583 :rset
17584 s/^[ ]*#[ ]*define[ ][ ]*/ /
17585 t def
17587 :def
17588 s/\\$//
17589 t bsnl
17590 s/["\\]/\\&/g
17591 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17592 D["\1"]=" \3"/p
17593 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17595 :bsnl
17596 s/["\\]/\\&/g
17597 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17598 D["\1"]=" \3\\\\\\n"\\/p
17599 t cont
17600 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17601 t cont
17603 :cont
17605 s/.\{148\}/&'"$ac_delim"'/g
17606 t clear
17607 :clear
17608 s/\\$//
17609 t bsnlc
17610 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17612 :bsnlc
17613 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17614 b cont
17615 ' <confdefs.h | sed '
17616 s/'"$ac_delim"'/"\\\
17617 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17620 for (key in D) D_is_set[key] = 1
17621 FS = "\a"
17623 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17624 line = \$ 0
17625 split(line, arg, " ")
17626 if (arg[1] == "#") {
17627 defundef = arg[2]
17628 mac1 = arg[3]
17629 } else {
17630 defundef = substr(arg[1], 2)
17631 mac1 = arg[2]
17633 split(mac1, mac2, "(") #)
17634 macro = mac2[1]
17635 prefix = substr(line, 1, index(line, defundef) - 1)
17636 if (D_is_set[macro]) {
17637 # Preserve the white space surrounding the "#".
17638 print prefix "define", macro P[macro] D[macro]
17639 next
17640 } else {
17641 # Replace #undef with comments. This is necessary, for example,
17642 # in the case of _POSIX_SOURCE, which is predefined and required
17643 # on some systems where configure will not decide to define it.
17644 if (defundef == "undef") {
17645 print "/*", prefix defundef, macro, "*/"
17646 next
17650 { print }
17651 _ACAWK
17652 _ACEOF
17653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17654 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17655 fi # test -n "$CONFIG_HEADERS"
17658 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17659 shift
17660 for ac_tag
17662 case $ac_tag in
17663 :[FHLC]) ac_mode=$ac_tag; continue;;
17664 esac
17665 case $ac_mode$ac_tag in
17666 :[FHL]*:*);;
17667 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17668 :[FH]-) ac_tag=-:-;;
17669 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17670 esac
17671 ac_save_IFS=$IFS
17672 IFS=:
17673 set x $ac_tag
17674 IFS=$ac_save_IFS
17675 shift
17676 ac_file=$1
17677 shift
17679 case $ac_mode in
17680 :L) ac_source=$1;;
17681 :[FH])
17682 ac_file_inputs=
17683 for ac_f
17685 case $ac_f in
17686 -) ac_f="$ac_tmp/stdin";;
17687 *) # Look for the file first in the build tree, then in the source tree
17688 # (if the path is not absolute). The absolute path cannot be DOS-style,
17689 # because $ac_f cannot contain `:'.
17690 test -f "$ac_f" ||
17691 case $ac_f in
17692 [\\/$]*) false;;
17693 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17694 esac ||
17695 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17696 esac
17697 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17698 as_fn_append ac_file_inputs " '$ac_f'"
17699 done
17701 # Let's still pretend it is `configure' which instantiates (i.e., don't
17702 # use $as_me), people would be surprised to read:
17703 # /* config.h. Generated by config.status. */
17704 configure_input='Generated from '`
17705 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17706 `' by configure.'
17707 if test x"$ac_file" != x-; then
17708 configure_input="$ac_file. $configure_input"
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17710 $as_echo "$as_me: creating $ac_file" >&6;}
17712 # Neutralize special characters interpreted by sed in replacement strings.
17713 case $configure_input in #(
17714 *\&* | *\|* | *\\* )
17715 ac_sed_conf_input=`$as_echo "$configure_input" |
17716 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17717 *) ac_sed_conf_input=$configure_input;;
17718 esac
17720 case $ac_tag in
17721 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17723 esac
17725 esac
17727 ac_dir=`$as_dirname -- "$ac_file" ||
17728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17729 X"$ac_file" : 'X\(//\)[^/]' \| \
17730 X"$ac_file" : 'X\(//\)$' \| \
17731 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17732 $as_echo X"$ac_file" |
17733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17734 s//\1/
17737 /^X\(\/\/\)[^/].*/{
17738 s//\1/
17741 /^X\(\/\/\)$/{
17742 s//\1/
17745 /^X\(\/\).*/{
17746 s//\1/
17749 s/.*/./; q'`
17750 as_dir="$ac_dir"; as_fn_mkdir_p
17751 ac_builddir=.
17753 case "$ac_dir" in
17754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17756 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17757 # A ".." for each directory in $ac_dir_suffix.
17758 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17759 case $ac_top_builddir_sub in
17760 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17761 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17762 esac ;;
17763 esac
17764 ac_abs_top_builddir=$ac_pwd
17765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17766 # for backward compatibility:
17767 ac_top_builddir=$ac_top_build_prefix
17769 case $srcdir in
17770 .) # We are building in place.
17771 ac_srcdir=.
17772 ac_top_srcdir=$ac_top_builddir_sub
17773 ac_abs_top_srcdir=$ac_pwd ;;
17774 [\\/]* | ?:[\\/]* ) # Absolute name.
17775 ac_srcdir=$srcdir$ac_dir_suffix;
17776 ac_top_srcdir=$srcdir
17777 ac_abs_top_srcdir=$srcdir ;;
17778 *) # Relative name.
17779 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17780 ac_top_srcdir=$ac_top_build_prefix$srcdir
17781 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17782 esac
17783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17786 case $ac_mode in
17789 # CONFIG_FILE
17792 case $INSTALL in
17793 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17794 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17795 esac
17796 _ACEOF
17798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17799 # If the template does not know about datarootdir, expand it.
17800 # FIXME: This hack should be removed a few years after 2.60.
17801 ac_datarootdir_hack=; ac_datarootdir_seen=
17802 ac_sed_dataroot='
17803 /datarootdir/ {
17807 /@datadir@/p
17808 /@docdir@/p
17809 /@infodir@/p
17810 /@localedir@/p
17811 /@mandir@/p'
17812 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17813 *datarootdir*) ac_datarootdir_seen=yes;;
17814 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17816 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17817 _ACEOF
17818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17819 ac_datarootdir_hack='
17820 s&@datadir@&$datadir&g
17821 s&@docdir@&$docdir&g
17822 s&@infodir@&$infodir&g
17823 s&@localedir@&$localedir&g
17824 s&@mandir@&$mandir&g
17825 s&\\\${datarootdir}&$datarootdir&g' ;;
17826 esac
17827 _ACEOF
17829 # Neutralize VPATH when `$srcdir' = `.'.
17830 # Shell code in configure.ac might set extrasub.
17831 # FIXME: do we really want to maintain this feature?
17832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17833 ac_sed_extra="$ac_vpsub
17834 $extrasub
17835 _ACEOF
17836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17839 s|@configure_input@|$ac_sed_conf_input|;t t
17840 s&@top_builddir@&$ac_top_builddir_sub&;t t
17841 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17842 s&@srcdir@&$ac_srcdir&;t t
17843 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17844 s&@top_srcdir@&$ac_top_srcdir&;t t
17845 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17846 s&@builddir@&$ac_builddir&;t t
17847 s&@abs_builddir@&$ac_abs_builddir&;t t
17848 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17849 s&@INSTALL@&$ac_INSTALL&;t t
17850 $ac_datarootdir_hack
17852 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17853 if $ac_cs_awk_getline; then
17854 $AWK -f "$ac_tmp/subs.awk"
17855 else
17856 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17857 fi \
17858 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17860 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17861 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17862 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17863 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17865 which seems to be undefined. Please make sure it is defined" >&5
17866 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17867 which seems to be undefined. Please make sure it is defined" >&2;}
17869 rm -f "$ac_tmp/stdin"
17870 case $ac_file in
17871 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17872 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17873 esac \
17874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17878 # CONFIG_HEADER
17880 if test x"$ac_file" != x-; then
17882 $as_echo "/* $configure_input */" \
17883 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17884 } >"$ac_tmp/config.h" \
17885 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17886 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17888 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17889 else
17890 rm -f "$ac_file"
17891 mv "$ac_tmp/config.h" "$ac_file" \
17892 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17894 else
17895 $as_echo "/* $configure_input */" \
17896 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17897 || as_fn_error $? "could not create -" "$LINENO" 5
17902 # CONFIG_LINK
17905 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17907 else
17908 # Prefer the file from the source tree if names are identical.
17909 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17910 ac_source=$srcdir/$ac_source
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17914 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17916 if test ! -r "$ac_source"; then
17917 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17919 rm -f "$ac_file"
17921 # Try a relative symlink, then a hard link, then a copy.
17922 case $ac_source in
17923 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17924 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17925 esac
17926 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17927 ln "$ac_source" "$ac_file" 2>/dev/null ||
17928 cp -p "$ac_source" "$ac_file" ||
17929 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17932 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17933 $as_echo "$as_me: executing $ac_file commands" >&6;}
17935 esac
17938 case $ac_file$ac_mode in
17939 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
17940 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17941 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
17942 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17943 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17944 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17945 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17946 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17947 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17948 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17949 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17950 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17951 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17952 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17953 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
17954 "Makefile":C) wine_fn_output_makefile Makefile ;;
17956 esac
17957 done # for ac_tag
17960 as_fn_exit 0
17961 _ACEOF
17962 ac_clean_files=$ac_clean_files_save
17964 test $ac_write_fail = 0 ||
17965 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17968 # configure is writing to config.log, and then calls config.status.
17969 # config.status does its own redirection, appending to config.log.
17970 # Unfortunately, on DOS this fails, as config.log is still kept open
17971 # by configure, so config.status won't be able to write to it; its
17972 # output is simply discarded. So we exec the FD to /dev/null,
17973 # effectively closing config.log, so it can be properly (re)opened and
17974 # appended to by config.status. When coming back to configure, we
17975 # need to make the FD available again.
17976 if test "$no_create" != yes; then
17977 ac_cs_success=:
17978 ac_config_status_args=
17979 test "$silent" = yes &&
17980 ac_config_status_args="$ac_config_status_args --quiet"
17981 exec 5>/dev/null
17982 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17983 exec 5>>config.log
17984 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17985 # would make configure fail if this is the last instruction.
17986 $ac_cs_success || as_fn_exit 1
17988 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17990 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17994 if test "$no_create" = "yes"
17995 then
17996 exit 0
17999 ac_save_IFS="$IFS"
18000 if test "x$wine_notices != "x; then
18001 echo >&6
18002 IFS="|"
18003 for msg in $wine_notices; do
18004 IFS="$ac_save_IFS"
18005 if test -n "$msg"; then
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18007 $as_echo "$as_me: $msg" >&6;}
18009 done
18011 IFS="|"
18012 for msg in $wine_warnings; do
18013 IFS="$ac_save_IFS"
18014 if test -n "$msg"; then
18015 echo >&2
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18017 $as_echo "$as_me: WARNING: $msg" >&2;}
18019 done
18020 IFS="$ac_save_IFS"
18022 echo "
18023 $as_me: Finished. Do '${ac_make}' to compile Wine.
18024 " >&6