gphoto2.ds: Check for libgphoto2 and libgphoto2_port independently.
[wine.git] / configure
blob3b1b38cef9c74bbdb8eeb48a21aaa9a107dd4bdd
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_LIBS
650 GSTREAMER_CFLAGS
651 LIBGETTEXTPO
652 ZLIB
653 FREETYPE_LIBS
654 FREETYPE_CFLAGS
655 LCMSLIBS
656 RESOLVLIBS
657 GPHOTO2_PORT_LIBS
658 GPHOTO2_PORT_CFLAGS
659 GPHOTO2_LIBS
660 GPHOTO2_CFLAGS
661 SANE_LIBS
662 SANE_CFLAGS
663 GNUTLS_LIBS
664 GNUTLS_CFLAGS
665 HAL_LIBS
666 HAL_CFLAGS
667 DBUS_LIBS
668 DBUS_CFLAGS
669 XSLT_LIBS
670 XSLT_CFLAGS
671 XML2_LIBS
672 XML2_CFLAGS
673 PKG_CONFIG
674 X_EXTRA_LIBS
675 X_LIBS
676 X_PRE_LIBS
677 X_CFLAGS
678 XMKMF
679 LIBPTHREAD
680 CROSSTARGET
681 CROSSCC
682 CROSSTEST_DISABLE
683 PRELINK
684 CARBONLIB
685 QUICKTIMELIB
686 LIBOPENCL
687 FRAMEWORK_OPENAL
688 COREAUDIO
689 SECURITYLIB
690 DISKARBITRATIONLIB
691 LDEXECFLAGS
692 CORESERVICESLIB
693 APPLICATIONSERVICESLIB
694 IOKITLIB
695 COREFOUNDATIONLIB
696 LIBWINE_RULES
697 SOCKETLIBS
698 DLLWRAP
699 DLLTOOL
700 READELF
702 LDRPATH_LOCAL
703 LDRPATH_INSTALL
704 IMPLIBEXT
705 LDDLLFLAGS
706 DLLFLAGS
707 DLLEXT
709 OPENGL_LIBS
710 XLIB
711 MAINTAINER_MODE
712 MSGFMT
713 ICOTOOL
714 CONVERT
715 RSVG
716 FONTFORGE
717 LINTFLAGS
718 LINT
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 LDCONFIG
723 EGREP
724 GREP
725 LN_S
726 RANLIB
727 ARFLAGS
728 ac_ct_AR
730 BISON
731 FLEX
732 TOOLSDIR
733 WOW64_DISABLE
734 TARGETFLAGS
735 CPPBIN
736 ac_ct_CXX
737 CXXFLAGS
739 OBJEXT
740 EXEEXT
741 ac_ct_CC
742 CPPFLAGS
743 LDFLAGS
744 CFLAGS
746 SET_MAKE
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files='MAKE_RULES
794 MAKE_TEST_RULES
795 MAKE_DLL_RULES
796 MAKE_IMPLIB_RULES
797 MAKE_PROG_RULES'
798 ac_user_opts='
799 enable_option_checking
800 enable_win16
801 enable_win64
802 enable_tests
803 enable_maintainer_mode
804 with_alsa
805 with_capi
806 with_cms
807 with_coreaudio
808 with_cups
809 with_curses
810 with_dbus
811 with_fontconfig
812 with_freetype
813 with_gettext
814 with_gettextpo
815 with_gphoto
816 with_glu
817 with_gnutls
818 with_gsm
819 with_gstreamer
820 with_hal
821 with_jpeg
822 with_ldap
823 with_mpg123
824 with_openal
825 with_opencl
826 with_opengl
827 with_osmesa
828 with_oss
829 with_png
830 with_pthread
831 with_sane
832 with_tiff
833 with_v4l
834 with_xcomposite
835 with_xcursor
836 with_xinerama
837 with_xinput
838 with_xinput2
839 with_xml
840 with_xrandr
841 with_xrender
842 with_xshape
843 with_xshm
844 with_xslt
845 with_xxf86vm
846 with_zlib
847 with_wine_tools
848 with_wine64
849 enable_largefile
850 with_x
852 ac_precious_vars='build_alias
853 host_alias
854 target_alias
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
861 CXXFLAGS
864 XMKMF
865 XML2_CFLAGS
866 XML2_LIBS
867 XSLT_CFLAGS
868 XSLT_LIBS
869 DBUS_CFLAGS
870 DBUS_LIBS
871 HAL_CFLAGS
872 HAL_LIBS
873 GNUTLS_CFLAGS
874 GNUTLS_LIBS
875 SANE_CFLAGS
876 SANE_LIBS
877 GPHOTO2_CFLAGS
878 GPHOTO2_LIBS
879 GPHOTO2_PORT_CFLAGS
880 GPHOTO2_PORT_LIBS
881 FREETYPE_CFLAGS
882 FREETYPE_LIBS
883 GSTREAMER_CFLAGS
884 GSTREAMER_LIBS'
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 ac_unrecognized_opts=
891 ac_unrecognized_sep=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
935 ac_prev=
936 ac_dashdash=
937 for ac_option
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
942 ac_prev=
943 continue
946 case $ac_option in
947 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *=) ac_optarg= ;;
949 *) ac_optarg=yes ;;
950 esac
952 # Accept the important Cygnus configure options, so we can diagnose typos.
954 case $ac_dashdash$ac_option in
956 ac_dashdash=yes ;;
958 -bindir | --bindir | --bindi | --bind | --bin | --bi)
959 ac_prev=bindir ;;
960 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
961 bindir=$ac_optarg ;;
963 -build | --build | --buil | --bui | --bu)
964 ac_prev=build_alias ;;
965 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
966 build_alias=$ac_optarg ;;
968 -cache-file | --cache-file | --cache-fil | --cache-fi \
969 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
970 ac_prev=cache_file ;;
971 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
972 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
973 cache_file=$ac_optarg ;;
975 --config-cache | -C)
976 cache_file=config.cache ;;
978 -datadir | --datadir | --datadi | --datad)
979 ac_prev=datadir ;;
980 -datadir=* | --datadir=* | --datadi=* | --datad=*)
981 datadir=$ac_optarg ;;
983 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
984 | --dataroo | --dataro | --datar)
985 ac_prev=datarootdir ;;
986 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
987 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
988 datarootdir=$ac_optarg ;;
990 -disable-* | --disable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid feature name: $ac_useropt"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
999 "enable_$ac_useropt"
1000 "*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=no ;;
1006 -docdir | --docdir | --docdi | --doc | --do)
1007 ac_prev=docdir ;;
1008 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009 docdir=$ac_optarg ;;
1011 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012 ac_prev=dvidir ;;
1013 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014 dvidir=$ac_optarg ;;
1016 -enable-* | --enable-*)
1017 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 as_fn_error $? "invalid feature name: $ac_useropt"
1021 ac_useropt_orig=$ac_useropt
1022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1023 case $ac_user_opts in
1025 "enable_$ac_useropt"
1026 "*) ;;
1027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1028 ac_unrecognized_sep=', ';;
1029 esac
1030 eval enable_$ac_useropt=\$ac_optarg ;;
1032 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1033 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1034 | --exec | --exe | --ex)
1035 ac_prev=exec_prefix ;;
1036 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1037 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1038 | --exec=* | --exe=* | --ex=*)
1039 exec_prefix=$ac_optarg ;;
1041 -gas | --gas | --ga | --g)
1042 # Obsolete; use --with-gas.
1043 with_gas=yes ;;
1045 -help | --help | --hel | --he | -h)
1046 ac_init_help=long ;;
1047 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1048 ac_init_help=recursive ;;
1049 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1050 ac_init_help=short ;;
1052 -host | --host | --hos | --ho)
1053 ac_prev=host_alias ;;
1054 -host=* | --host=* | --hos=* | --ho=*)
1055 host_alias=$ac_optarg ;;
1057 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 ac_prev=htmldir ;;
1059 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 | --ht=*)
1061 htmldir=$ac_optarg ;;
1063 -includedir | --includedir | --includedi | --included | --include \
1064 | --includ | --inclu | --incl | --inc)
1065 ac_prev=includedir ;;
1066 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1067 | --includ=* | --inclu=* | --incl=* | --inc=*)
1068 includedir=$ac_optarg ;;
1070 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 ac_prev=infodir ;;
1072 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1073 infodir=$ac_optarg ;;
1075 -libdir | --libdir | --libdi | --libd)
1076 ac_prev=libdir ;;
1077 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1078 libdir=$ac_optarg ;;
1080 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1081 | --libexe | --libex | --libe)
1082 ac_prev=libexecdir ;;
1083 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1084 | --libexe=* | --libex=* | --libe=*)
1085 libexecdir=$ac_optarg ;;
1087 -localedir | --localedir | --localedi | --localed | --locale)
1088 ac_prev=localedir ;;
1089 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1090 localedir=$ac_optarg ;;
1092 -localstatedir | --localstatedir | --localstatedi | --localstated \
1093 | --localstate | --localstat | --localsta | --localst | --locals)
1094 ac_prev=localstatedir ;;
1095 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1096 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1097 localstatedir=$ac_optarg ;;
1099 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 ac_prev=mandir ;;
1101 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1102 mandir=$ac_optarg ;;
1104 -nfp | --nfp | --nf)
1105 # Obsolete; use --without-fp.
1106 with_fp=no ;;
1108 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1109 | --no-cr | --no-c | -n)
1110 no_create=yes ;;
1112 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1113 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1114 no_recursion=yes ;;
1116 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1117 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1118 | --oldin | --oldi | --old | --ol | --o)
1119 ac_prev=oldincludedir ;;
1120 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1121 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1122 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1123 oldincludedir=$ac_optarg ;;
1125 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 ac_prev=prefix ;;
1127 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1128 prefix=$ac_optarg ;;
1130 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1131 | --program-pre | --program-pr | --program-p)
1132 ac_prev=program_prefix ;;
1133 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1134 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1135 program_prefix=$ac_optarg ;;
1137 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1138 | --program-suf | --program-su | --program-s)
1139 ac_prev=program_suffix ;;
1140 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1141 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1142 program_suffix=$ac_optarg ;;
1144 -program-transform-name | --program-transform-name \
1145 | --program-transform-nam | --program-transform-na \
1146 | --program-transform-n | --program-transform- \
1147 | --program-transform | --program-transfor \
1148 | --program-transfo | --program-transf \
1149 | --program-trans | --program-tran \
1150 | --progr-tra | --program-tr | --program-t)
1151 ac_prev=program_transform_name ;;
1152 -program-transform-name=* | --program-transform-name=* \
1153 | --program-transform-nam=* | --program-transform-na=* \
1154 | --program-transform-n=* | --program-transform-=* \
1155 | --program-transform=* | --program-transfor=* \
1156 | --program-transfo=* | --program-transf=* \
1157 | --program-trans=* | --program-tran=* \
1158 | --progr-tra=* | --program-tr=* | --program-t=*)
1159 program_transform_name=$ac_optarg ;;
1161 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 ac_prev=pdfdir ;;
1163 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1164 pdfdir=$ac_optarg ;;
1166 -psdir | --psdir | --psdi | --psd | --ps)
1167 ac_prev=psdir ;;
1168 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1169 psdir=$ac_optarg ;;
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 silent=yes ;;
1175 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 ac_prev=sbindir ;;
1177 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 | --sbi=* | --sb=*)
1179 sbindir=$ac_optarg ;;
1181 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1182 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1183 | --sharedst | --shareds | --shared | --share | --shar \
1184 | --sha | --sh)
1185 ac_prev=sharedstatedir ;;
1186 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1187 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1188 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 | --sha=* | --sh=*)
1190 sharedstatedir=$ac_optarg ;;
1192 -site | --site | --sit)
1193 ac_prev=site ;;
1194 -site=* | --site=* | --sit=*)
1195 site=$ac_optarg ;;
1197 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 ac_prev=srcdir ;;
1199 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1200 srcdir=$ac_optarg ;;
1202 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1203 | --syscon | --sysco | --sysc | --sys | --sy)
1204 ac_prev=sysconfdir ;;
1205 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1206 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1207 sysconfdir=$ac_optarg ;;
1209 -target | --target | --targe | --targ | --tar | --ta | --t)
1210 ac_prev=target_alias ;;
1211 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1212 target_alias=$ac_optarg ;;
1214 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1215 verbose=yes ;;
1217 -version | --version | --versio | --versi | --vers | -V)
1218 ac_init_version=: ;;
1220 -with-* | --with-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 as_fn_error $? "invalid package name: $ac_useropt"
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1229 "with_$ac_useropt"
1230 "*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=\$ac_optarg ;;
1236 -without-* | --without-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1245 "with_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=no ;;
1252 --x)
1253 # Obsolete; use --with-x.
1254 with_x=yes ;;
1256 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1257 | --x-incl | --x-inc | --x-in | --x-i)
1258 ac_prev=x_includes ;;
1259 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1260 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1261 x_includes=$ac_optarg ;;
1263 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1264 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1265 ac_prev=x_libraries ;;
1266 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1267 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1268 x_libraries=$ac_optarg ;;
1270 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1271 Try \`$0 --help' for more information"
1274 *=*)
1275 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276 # Reject names that are not valid shell variable names.
1277 case $ac_envvar in #(
1278 '' | [0-9]* | *[!_$as_cr_alnum]* )
1279 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1280 esac
1281 eval $ac_envvar=\$ac_optarg
1282 export $ac_envvar ;;
1285 # FIXME: should be removed in autoconf 3.0.
1286 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1287 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1289 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1292 esac
1293 done
1295 if test -n "$ac_prev"; then
1296 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1297 as_fn_error $? "missing argument to $ac_option"
1300 if test -n "$ac_unrecognized_opts"; then
1301 case $enable_option_checking in
1302 no) ;;
1303 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1304 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305 esac
1308 # Check all directory arguments for consistency.
1309 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
1314 eval ac_val=\$$ac_var
1315 # Remove trailing slashes.
1316 case $ac_val in
1317 */ )
1318 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1319 eval $ac_var=\$ac_val;;
1320 esac
1321 # Be sure to have absolute directory names.
1322 case $ac_val in
1323 [\\/$]* | ?:[\\/]* ) continue;;
1324 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1325 esac
1326 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1327 done
1329 # There might be people who depend on the old broken behavior: `$host'
1330 # used to hold the argument of --host etc.
1331 # FIXME: To remove some day.
1332 build=$build_alias
1333 host=$host_alias
1334 target=$target_alias
1336 # FIXME: To remove some day.
1337 if test "x$host_alias" != x; then
1338 if test "x$build_alias" = x; then
1339 cross_compiling=maybe
1340 elif test "x$build_alias" != "x$host_alias"; then
1341 cross_compiling=yes
1345 ac_tool_prefix=
1346 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348 test "$silent" = yes && exec 6>/dev/null
1351 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1352 ac_ls_di=`ls -di .` &&
1353 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1354 as_fn_error $? "working directory cannot be determined"
1355 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1356 as_fn_error $? "pwd does not report name of working directory"
1359 # Find the source files, if location was not specified.
1360 if test -z "$srcdir"; then
1361 ac_srcdir_defaulted=yes
1362 # Try the directory containing this script, then the parent directory.
1363 ac_confdir=`$as_dirname -- "$as_myself" ||
1364 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1365 X"$as_myself" : 'X\(//\)[^/]' \| \
1366 X"$as_myself" : 'X\(//\)$' \| \
1367 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1368 $as_echo X"$as_myself" |
1369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 s//\1/
1373 /^X\(\/\/\)[^/].*/{
1374 s//\1/
1377 /^X\(\/\/\)$/{
1378 s//\1/
1381 /^X\(\/\).*/{
1382 s//\1/
1385 s/.*/./; q'`
1386 srcdir=$ac_confdir
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 srcdir=..
1390 else
1391 ac_srcdir_defaulted=no
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1395 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1397 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1398 ac_abs_confdir=`(
1399 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1400 pwd)`
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1408 case $srcdir in
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 esac
1411 for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416 done
1419 # Report the --help message.
1421 if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1424 cat <<_ACEOF
1425 \`configure' configures Wine 1.5.29 to adapt to many kinds of systems.
1427 Usage: $0 [OPTION]... [VAR=VALUE]...
1429 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430 VAR=VALUE. See below for descriptions of some of the useful variables.
1432 Defaults for the options are specified in brackets.
1434 Configuration:
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
1439 -q, --quiet, --silent do not print \`checking ...' messages
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1445 Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
1447 [$ac_default_prefix]
1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1449 [PREFIX]
1451 By default, \`make install' will install all the files in
1452 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454 for instance \`--prefix=\$HOME'.
1456 For better control, use the options below.
1458 Fine tuning of the installation directories:
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
1478 _ACEOF
1480 cat <<\_ACEOF
1482 X features:
1483 --x-includes=DIR X include files are in DIR
1484 --x-libraries=DIR X library files are in DIR
1486 System types:
1487 --build=BUILD configure for building on BUILD [guessed]
1488 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1489 _ACEOF
1492 if test -n "$ac_init_help"; then
1493 case $ac_init_help in
1494 short | recursive ) echo "Configuration of Wine 1.5.29:";;
1495 esac
1496 cat <<\_ACEOF
1498 Optional Features:
1499 --disable-option-checking ignore unrecognized --enable/--with options
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --disable-win16 do not include Win16 support
1503 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1504 binaries)
1505 --disable-tests do not build the regression tests
1506 --enable-maintainer-mode
1507 enable maintainer-specific build rules
1508 --disable-largefile omit support for large files
1510 Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --without-alsa do not use the Alsa sound support
1514 --without-capi do not use CAPI (ISDN support)
1515 --without-cms do not use CMS (color management support)
1516 --without-coreaudio do not use the CoreAudio sound support
1517 --without-cups do not use CUPS
1518 --without-curses do not use (n)curses
1519 --without-dbus do not use DBus (dynamic device support)
1520 --without-fontconfig do not use fontconfig
1521 --without-freetype do not use the FreeType library
1522 --without-gettext do not use gettext
1523 --with-gettextpo use the GetTextPO library to rebuild po files
1524 --without-gphoto do not use gphoto (Digital Camera support)
1525 --without-glu do not use the GLU library
1526 --without-gnutls do not use GnuTLS (schannel support)
1527 --without-gsm do not use libgsm (GSM 06.10 codec support)
1528 --without-gstreamer do not use GStreamer (codecs support)
1529 --without-hal do not use HAL (dynamic device support)
1530 --without-jpeg do not use JPEG
1531 --without-ldap do not use LDAP
1532 --without-mpg123 do not use the mpg123 library
1533 --without-openal do not use OpenAL
1534 --without-opencl do not use OpenCL
1535 --without-opengl do not use OpenGL
1536 --without-osmesa do not use the OSMesa library
1537 --without-oss do not use the OSS sound support
1538 --without-png do not use PNG
1539 --without-pthread do not use the pthread library
1540 --without-sane do not use SANE (scanner support)
1541 --without-tiff do not use TIFF
1542 --without-v4l do not use v4l1 (v4l support)
1543 --without-xcomposite do not use the Xcomposite extension
1544 --without-xcursor do not use the Xcursor extension
1545 --without-xinerama do not use Xinerama (multi-monitor support)
1546 --without-xinput do not use the Xinput extension
1547 --without-xinput2 do not use the Xinput 2 extension
1548 --without-xml do not use XML
1549 --without-xrandr do not use Xrandr (resolution changes)
1550 --without-xrender do not use the Xrender extension
1551 --without-xshape do not use the Xshape extension
1552 --without-xshm do not use XShm (shared memory extension)
1553 --without-xslt do not use XSLT
1554 --without-xxf86vm do not use XFree video mode extension
1555 --without-zlib do not use Zlib (data compression)
1556 --with-wine-tools=DIR use Wine tools from directory DIR
1557 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1558 --with-x use the X Window System
1560 Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
1568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
1570 CPP C preprocessor
1571 XMKMF Path to xmkmf, Makefile generator for X Window System
1572 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
1573 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
1574 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
1575 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
1576 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
1577 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
1578 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
1579 HAL_LIBS Linker flags for hal, overriding pkg-config
1580 GNUTLS_CFLAGS
1581 C compiler flags for gnutls, overriding pkg-config
1582 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
1583 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
1584 SANE_LIBS Linker flags for libsane, overriding pkg-config
1585 GPHOTO2_CFLAGS
1586 C compiler flags for libgphoto2, overriding pkg-config
1587 GPHOTO2_LIBS
1588 Linker flags for libgphoto2, overriding pkg-config
1589 GPHOTO2_PORT_CFLAGS
1590 C compiler flags for libgphoto2_port, overriding pkg-config
1591 GPHOTO2_PORT_LIBS
1592 Linker flags for libgphoto2_port, overriding pkg-config
1593 FREETYPE_CFLAGS
1594 C compiler flags for freetype2, overriding pkg-config
1595 FREETYPE_LIBS
1596 Linker flags for freetype2, overriding pkg-config
1597 GSTREAMER_CFLAGS
1598 C compiler flags for gstreamer-app-0.10, overriding pkg-config
1599 GSTREAMER_LIBS
1600 Linker flags for gstreamer-app-0.10, overriding pkg-config
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1605 Report bugs to <wine-devel@winehq.org>.
1606 Wine home page: <http://www.winehq.org>.
1607 _ACEOF
1608 ac_status=$?
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 test -d "$ac_dir" ||
1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 continue
1617 ac_builddir=.
1619 case "$ac_dir" in
1620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1623 # A ".." for each directory in $ac_dir_suffix.
1624 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625 case $ac_top_builddir_sub in
1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628 esac ;;
1629 esac
1630 ac_abs_top_builddir=$ac_pwd
1631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632 # for backward compatibility:
1633 ac_top_builddir=$ac_top_build_prefix
1635 case $srcdir in
1636 .) # We are building in place.
1637 ac_srcdir=.
1638 ac_top_srcdir=$ac_top_builddir_sub
1639 ac_abs_top_srcdir=$ac_pwd ;;
1640 [\\/]* | ?:[\\/]* ) # Absolute name.
1641 ac_srcdir=$srcdir$ac_dir_suffix;
1642 ac_top_srcdir=$srcdir
1643 ac_abs_top_srcdir=$srcdir ;;
1644 *) # Relative name.
1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646 ac_top_srcdir=$ac_top_build_prefix$srcdir
1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 esac
1649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1651 cd "$ac_dir" || { ac_status=$?; continue; }
1652 # Check for guested configure.
1653 if test -f "$ac_srcdir/configure.gnu"; then
1654 echo &&
1655 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1656 elif test -f "$ac_srcdir/configure"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure" --help=recursive
1659 else
1660 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1661 fi || ac_status=$?
1662 cd "$ac_pwd" || { ac_status=$?; break; }
1663 done
1666 test -n "$ac_init_help" && exit $ac_status
1667 if $ac_init_version; then
1668 cat <<\_ACEOF
1669 Wine configure 1.5.29
1670 generated by GNU Autoconf 2.69
1672 Copyright (C) 2012 Free Software Foundation, Inc.
1673 This configure script is free software; the Free Software Foundation
1674 gives unlimited permission to copy, distribute and modify it.
1675 _ACEOF
1676 exit
1679 ## ------------------------ ##
1680 ## Autoconf initialization. ##
1681 ## ------------------------ ##
1683 # ac_fn_c_try_compile LINENO
1684 # --------------------------
1685 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_compile ()
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 rm -f conftest.$ac_objext
1690 if { { ac_try="$ac_compile"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_compile") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && {
1706 test -z "$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 } && test -s conftest.$ac_objext; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 ac_retval=1
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717 as_fn_set_status $ac_retval
1719 } # ac_fn_c_try_compile
1721 # ac_fn_cxx_try_compile LINENO
1722 # ----------------------------
1723 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_cxx_try_compile ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 rm -f conftest.$ac_objext
1728 if { { ac_try="$ac_compile"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_compile") 2>conftest.err
1736 ac_status=$?
1737 if test -s conftest.err; then
1738 grep -v '^ *+' conftest.err >conftest.er1
1739 cat conftest.er1 >&5
1740 mv -f conftest.er1 conftest.err
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && {
1744 test -z "$ac_cxx_werror_flag" ||
1745 test ! -s conftest.err
1746 } && test -s conftest.$ac_objext; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1752 ac_retval=1
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1757 } # ac_fn_cxx_try_compile
1759 # ac_fn_c_try_link LINENO
1760 # -----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_c_try_link ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext conftest$ac_exeext
1766 if { { ac_try="$ac_link"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest$ac_exeext && {
1785 test "$cross_compiling" = yes ||
1786 test -x conftest$ac_exeext
1787 }; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1793 ac_retval=1
1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797 # interfere with the next link command; also delete a directory that is
1798 # left behind by Apple's compiler. We do this before executing the actions.
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1803 } # ac_fn_c_try_link
1805 # ac_fn_c_try_cpp LINENO
1806 # ----------------------
1807 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_c_try_cpp ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 if { { ac_try="$ac_cpp conftest.$ac_ext"
1812 case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1819 ac_status=$?
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } > conftest.i && {
1827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 }; then :
1830 ac_retval=0
1831 else
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1835 ac_retval=1
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1840 } # ac_fn_c_try_cpp
1842 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1843 # -------------------------------------------------------
1844 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1845 # the include files in INCLUDES and setting the cache variable VAR
1846 # accordingly.
1847 ac_fn_c_check_header_mongrel ()
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if eval \${$3+:} false; then :
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1856 eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 else
1860 # Is the header compilable?
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1862 $as_echo_n "checking $2 usability... " >&6; }
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1866 #include <$2>
1867 _ACEOF
1868 if ac_fn_c_try_compile "$LINENO"; then :
1869 ac_header_compiler=yes
1870 else
1871 ac_header_compiler=no
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1875 $as_echo "$ac_header_compiler" >&6; }
1877 # Is the header present?
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1879 $as_echo_n "checking $2 presence... " >&6; }
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1882 #include <$2>
1883 _ACEOF
1884 if ac_fn_c_try_cpp "$LINENO"; then :
1885 ac_header_preproc=yes
1886 else
1887 ac_header_preproc=no
1889 rm -f conftest.err conftest.i conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1891 $as_echo "$ac_header_preproc" >&6; }
1893 # So? What about this header?
1894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1895 yes:no: )
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1897 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1901 no:yes:* )
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1903 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1905 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1907 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1909 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1911 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912 ( $as_echo "## ------------------------------------ ##
1913 ## Report this to wine-devel@winehq.org ##
1914 ## ------------------------------------ ##"
1915 ) | sed "s/^/$as_me: WARNING: /" >&2
1917 esac
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1922 else
1923 eval "$3=\$ac_header_compiler"
1925 eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_check_header_mongrel
1933 # ac_fn_c_try_run LINENO
1934 # ----------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1936 # that executables *can* be run.
1937 ac_fn_c_try_run ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if { { ac_try="$ac_link"
1941 case "(($ac_try" in
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1944 esac
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_link") 2>&5
1948 ac_status=$?
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1951 { { case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_try") 2>&5
1958 ac_status=$?
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; }; }; then :
1961 ac_retval=0
1962 else
1963 $as_echo "$as_me: program exited with status $ac_status" >&5
1964 $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1967 ac_retval=$ac_status
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1973 } # ac_fn_c_try_run
1975 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists and can be compiled using the include files in
1978 # INCLUDES, setting the cache variable VAR accordingly.
1979 ac_fn_c_check_header_compile ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval \${$3+:} false; then :
1985 $as_echo_n "(cached) " >&6
1986 else
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 eval "$3=yes"
1994 else
1995 eval "$3=no"
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 } # ac_fn_c_check_header_compile
2006 # ac_fn_c_check_func LINENO FUNC VAR
2007 # ----------------------------------
2008 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2009 ac_fn_c_check_func ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2021 #define $2 innocuous_$2
2023 /* System header to define __stub macros and hopefully few prototypes,
2024 which can conflict with char $2 (); below.
2025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2026 <limits.h> exists even on freestanding compilers. */
2028 #ifdef __STDC__
2029 # include <limits.h>
2030 #else
2031 # include <assert.h>
2032 #endif
2034 #undef $2
2036 /* Override any GCC internal prototype to avoid an error.
2037 Use char because int might match the return type of a GCC
2038 builtin and then its argument prototype would still apply. */
2039 #ifdef __cplusplus
2040 extern "C"
2041 #endif
2042 char $2 ();
2043 /* The GNU C library defines this for functions which it implements
2044 to always fail with ENOSYS. Some functions are actually named
2045 something starting with __ and the normal name is an alias. */
2046 #if defined __stub_$2 || defined __stub___$2
2047 choke me
2048 #endif
2051 main ()
2053 return $2 ();
2055 return 0;
2057 _ACEOF
2058 if ac_fn_c_try_link "$LINENO"; then :
2059 eval "$3=yes"
2060 else
2061 eval "$3=no"
2063 rm -f core conftest.err conftest.$ac_objext \
2064 conftest$ac_exeext conftest.$ac_ext
2066 eval ac_res=\$$3
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_func
2073 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2074 # ----------------------------------------------------
2075 # Tries to find if the field MEMBER exists in type AGGR, after including
2076 # INCLUDES, setting cache variable VAR accordingly.
2077 ac_fn_c_check_member ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2081 $as_echo_n "checking for $2.$3... " >&6; }
2082 if eval \${$4+:} false; then :
2083 $as_echo_n "(cached) " >&6
2084 else
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2089 main ()
2091 static $2 ac_aggr;
2092 if (ac_aggr.$3)
2093 return 0;
2095 return 0;
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 eval "$4=yes"
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2105 main ()
2107 static $2 ac_aggr;
2108 if (sizeof ac_aggr.$3)
2109 return 0;
2111 return 0;
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 eval "$4=yes"
2116 else
2117 eval "$4=no"
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 eval ac_res=\$$4
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128 } # ac_fn_c_check_member
2130 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2131 # -------------------------------------------
2132 # Tests whether TYPE exists after having included INCLUDES, setting cache
2133 # variable VAR accordingly.
2134 ac_fn_c_check_type ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if eval \${$3+:} false; then :
2140 $as_echo_n "(cached) " >&6
2141 else
2142 eval "$3=no"
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2147 main ()
2149 if (sizeof ($2))
2150 return 0;
2152 return 0;
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 main ()
2162 if (sizeof (($2)))
2163 return 0;
2165 return 0;
2167 _ACEOF
2168 if ac_fn_c_try_compile "$LINENO"; then :
2170 else
2171 eval "$3=yes"
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 } # ac_fn_c_check_type
2183 cat >config.log <<_ACEOF
2184 This file contains any messages produced by compilers while
2185 running configure, to aid debugging if configure makes a mistake.
2187 It was created by Wine $as_me 1.5.29, which was
2188 generated by GNU Autoconf 2.69. Invocation command line was
2190 $ $0 $@
2192 _ACEOF
2193 exec 5>>config.log
2195 cat <<_ASUNAME
2196 ## --------- ##
2197 ## Platform. ##
2198 ## --------- ##
2200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2212 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2217 _ASUNAME
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 $as_echo "PATH: $as_dir"
2225 done
2226 IFS=$as_save_IFS
2228 } >&5
2230 cat >&5 <<_ACEOF
2233 ## ----------- ##
2234 ## Core tests. ##
2235 ## ----------- ##
2237 _ACEOF
2240 # Keep a trace of the command line.
2241 # Strip out --no-create and --no-recursion so they do not pile up.
2242 # Strip out --silent because we don't want to record it for future runs.
2243 # Also quote any args containing shell meta-characters.
2244 # Make two passes to allow for proper duplicate-argument suppression.
2245 ac_configure_args=
2246 ac_configure_args0=
2247 ac_configure_args1=
2248 ac_must_keep_next=false
2249 for ac_pass in 1 2
2251 for ac_arg
2253 case $ac_arg in
2254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2256 | -silent | --silent | --silen | --sile | --sil)
2257 continue ;;
2258 *\'*)
2259 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2260 esac
2261 case $ac_pass in
2262 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2264 as_fn_append ac_configure_args1 " '$ac_arg'"
2265 if test $ac_must_keep_next = true; then
2266 ac_must_keep_next=false # Got value, back to normal.
2267 else
2268 case $ac_arg in
2269 *=* | --config-cache | -C | -disable-* | --disable-* \
2270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2272 | -with-* | --with-* | -without-* | --without-* | --x)
2273 case "$ac_configure_args0 " in
2274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2275 esac
2277 -* ) ac_must_keep_next=true ;;
2278 esac
2280 as_fn_append ac_configure_args " '$ac_arg'"
2282 esac
2283 done
2284 done
2285 { ac_configure_args0=; unset ac_configure_args0;}
2286 { ac_configure_args1=; unset ac_configure_args1;}
2288 # When interrupted or exit'd, cleanup temporary files, and complete
2289 # config.log. We remove comments because anyway the quotes in there
2290 # would cause problems or look ugly.
2291 # WARNING: Use '\'' to represent an apostrophe within the trap.
2292 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2293 trap 'exit_status=$?
2294 # Save into config.log some information that might help in debugging.
2296 echo
2298 $as_echo "## ---------------- ##
2299 ## Cache variables. ##
2300 ## ---------------- ##"
2301 echo
2302 # The following way of writing the cache mishandles newlines in values,
2304 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2305 eval ac_val=\$$ac_var
2306 case $ac_val in #(
2307 *${as_nl}*)
2308 case $ac_var in #(
2309 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2310 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2311 esac
2312 case $ac_var in #(
2313 _ | IFS | as_nl) ;; #(
2314 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2315 *) { eval $ac_var=; unset $ac_var;} ;;
2316 esac ;;
2317 esac
2318 done
2319 (set) 2>&1 |
2320 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2321 *${as_nl}ac_space=\ *)
2322 sed -n \
2323 "s/'\''/'\''\\\\'\'''\''/g;
2324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2325 ;; #(
2327 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2329 esac |
2330 sort
2332 echo
2334 $as_echo "## ----------------- ##
2335 ## Output variables. ##
2336 ## ----------------- ##"
2337 echo
2338 for ac_var in $ac_subst_vars
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 $as_echo "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2348 if test -n "$ac_subst_files"; then
2349 $as_echo "## ------------------- ##
2350 ## File substitutions. ##
2351 ## ------------------- ##"
2352 echo
2353 for ac_var in $ac_subst_files
2355 eval ac_val=\$$ac_var
2356 case $ac_val in
2357 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2358 esac
2359 $as_echo "$ac_var='\''$ac_val'\''"
2360 done | sort
2361 echo
2364 if test -s confdefs.h; then
2365 $as_echo "## ----------- ##
2366 ## confdefs.h. ##
2367 ## ----------- ##"
2368 echo
2369 cat confdefs.h
2370 echo
2372 test "$ac_signal" != 0 &&
2373 $as_echo "$as_me: caught signal $ac_signal"
2374 $as_echo "$as_me: exit $exit_status"
2375 } >&5
2376 rm -f core *.core core.conftest.* &&
2377 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2378 exit $exit_status
2380 for ac_signal in 1 2 13 15; do
2381 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2382 done
2383 ac_signal=0
2385 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2386 rm -f -r conftest* confdefs.h
2388 $as_echo "/* confdefs.h */" > confdefs.h
2390 # Predefined preprocessor variables.
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_NAME "$PACKAGE_NAME"
2394 _ACEOF
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2398 _ACEOF
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2402 _ACEOF
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_STRING "$PACKAGE_STRING"
2406 _ACEOF
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2410 _ACEOF
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_URL "$PACKAGE_URL"
2414 _ACEOF
2417 # Let the site file select an alternate cache file if it wants to.
2418 # Prefer an explicitly selected file to automatically selected ones.
2419 ac_site_file1=NONE
2420 ac_site_file2=NONE
2421 if test -n "$CONFIG_SITE"; then
2422 # We do not want a PATH search for config.site.
2423 case $CONFIG_SITE in #((
2424 -*) ac_site_file1=./$CONFIG_SITE;;
2425 */*) ac_site_file1=$CONFIG_SITE;;
2426 *) ac_site_file1=./$CONFIG_SITE;;
2427 esac
2428 elif test "x$prefix" != xNONE; then
2429 ac_site_file1=$prefix/share/config.site
2430 ac_site_file2=$prefix/etc/config.site
2431 else
2432 ac_site_file1=$ac_default_prefix/share/config.site
2433 ac_site_file2=$ac_default_prefix/etc/config.site
2435 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2437 test "x$ac_site_file" = xNONE && continue
2438 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2440 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2441 sed 's/^/| /' "$ac_site_file" >&5
2442 . "$ac_site_file" \
2443 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2445 as_fn_error $? "failed to load site script $ac_site_file
2446 See \`config.log' for more details" "$LINENO" 5; }
2448 done
2450 if test -r "$cache_file"; then
2451 # Some versions of bash will fail to source /dev/null (special files
2452 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2453 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2455 $as_echo "$as_me: loading cache $cache_file" >&6;}
2456 case $cache_file in
2457 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2458 *) . "./$cache_file";;
2459 esac
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2463 $as_echo "$as_me: creating cache $cache_file" >&6;}
2464 >$cache_file
2467 # Check that the precious variables saved in the cache have kept the same
2468 # value.
2469 ac_cache_corrupted=false
2470 for ac_var in $ac_precious_vars; do
2471 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2472 eval ac_new_set=\$ac_env_${ac_var}_set
2473 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2474 eval ac_new_val=\$ac_env_${ac_var}_value
2475 case $ac_old_set,$ac_new_set in
2476 set,)
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2478 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2480 ,set)
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2482 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2483 ac_cache_corrupted=: ;;
2484 ,);;
2486 if test "x$ac_old_val" != "x$ac_new_val"; then
2487 # differences in whitespace do not lead to failure.
2488 ac_old_val_w=`echo x $ac_old_val`
2489 ac_new_val_w=`echo x $ac_new_val`
2490 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2492 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2493 ac_cache_corrupted=:
2494 else
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2496 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2497 eval $ac_var=\$ac_old_val
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2500 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2502 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2503 fi;;
2504 esac
2505 # Pass precious variables to config.status.
2506 if test "$ac_new_set" = set; then
2507 case $ac_new_val in
2508 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2509 *) ac_arg=$ac_var=$ac_new_val ;;
2510 esac
2511 case " $ac_configure_args " in
2512 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2513 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2514 esac
2516 done
2517 if $ac_cache_corrupted; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2521 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2522 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2524 ## -------------------- ##
2525 ## Main body of script. ##
2526 ## -------------------- ##
2528 ac_ext=c
2529 ac_cpp='$CPP $CPPFLAGS'
2530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536 ac_config_headers="$ac_config_headers include/config.h"
2538 ac_aux_dir=
2539 for ac_dir in tools "$srcdir"/tools; do
2540 if test -f "$ac_dir/install-sh"; then
2541 ac_aux_dir=$ac_dir
2542 ac_install_sh="$ac_aux_dir/install-sh -c"
2543 break
2544 elif test -f "$ac_dir/install.sh"; then
2545 ac_aux_dir=$ac_dir
2546 ac_install_sh="$ac_aux_dir/install.sh -c"
2547 break
2548 elif test -f "$ac_dir/shtool"; then
2549 ac_aux_dir=$ac_dir
2550 ac_install_sh="$ac_aux_dir/shtool install -c"
2551 break
2553 done
2554 if test -z "$ac_aux_dir"; then
2555 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2558 # These three variables are undocumented and unsupported,
2559 # and are intended to be withdrawn in a future Autoconf release.
2560 # They can cause serious problems if a builder's source tree is in a directory
2561 # whose full name contains unusual characters.
2562 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2563 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2564 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2570 # Check whether --enable-win16 was given.
2571 if test "${enable_win16+set}" = set; then :
2572 enableval=$enable_win16;
2575 # Check whether --enable-win64 was given.
2576 if test "${enable_win64+set}" = set; then :
2577 enableval=$enable_win64;
2580 # Check whether --enable-tests was given.
2581 if test "${enable_tests+set}" = set; then :
2582 enableval=$enable_tests;
2585 # Check whether --enable-maintainer-mode was given.
2586 if test "${enable_maintainer_mode+set}" = set; then :
2587 enableval=$enable_maintainer_mode;
2592 # Check whether --with-alsa was given.
2593 if test "${with_alsa+set}" = set; then :
2594 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2598 # Check whether --with-capi was given.
2599 if test "${with_capi+set}" = set; then :
2600 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2604 # Check whether --with-cms was given.
2605 if test "${with_cms+set}" = set; then :
2606 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2610 # Check whether --with-coreaudio was given.
2611 if test "${with_coreaudio+set}" = set; then :
2612 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2616 # Check whether --with-cups was given.
2617 if test "${with_cups+set}" = set; then :
2618 withval=$with_cups;
2622 # Check whether --with-curses was given.
2623 if test "${with_curses+set}" = set; then :
2624 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2628 # Check whether --with-dbus was given.
2629 if test "${with_dbus+set}" = set; then :
2630 withval=$with_dbus;
2634 # Check whether --with-fontconfig was given.
2635 if test "${with_fontconfig+set}" = set; then :
2636 withval=$with_fontconfig;
2640 # Check whether --with-freetype was given.
2641 if test "${with_freetype+set}" = set; then :
2642 withval=$with_freetype;
2646 # Check whether --with-gettext was given.
2647 if test "${with_gettext+set}" = set; then :
2648 withval=$with_gettext;
2652 # Check whether --with-gettextpo was given.
2653 if test "${with_gettextpo+set}" = set; then :
2654 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2658 # Check whether --with-gphoto was given.
2659 if test "${with_gphoto+set}" = set; then :
2660 withval=$with_gphoto;
2664 # Check whether --with-glu was given.
2665 if test "${with_glu+set}" = set; then :
2666 withval=$with_glu;
2670 # Check whether --with-gnutls was given.
2671 if test "${with_gnutls+set}" = set; then :
2672 withval=$with_gnutls;
2676 # Check whether --with-gsm was given.
2677 if test "${with_gsm+set}" = set; then :
2678 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2682 # Check whether --with-gstreamer was given.
2683 if test "${with_gstreamer+set}" = set; then :
2684 withval=$with_gstreamer;
2688 # Check whether --with-hal was given.
2689 if test "${with_hal+set}" = set; then :
2690 withval=$with_hal;
2694 # Check whether --with-jpeg was given.
2695 if test "${with_jpeg+set}" = set; then :
2696 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2700 # Check whether --with-ldap was given.
2701 if test "${with_ldap+set}" = set; then :
2702 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2706 # Check whether --with-mpg123 was given.
2707 if test "${with_mpg123+set}" = set; then :
2708 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2712 # Check whether --with-openal was given.
2713 if test "${with_openal+set}" = set; then :
2714 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2718 # Check whether --with-opencl was given.
2719 if test "${with_opencl+set}" = set; then :
2720 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2724 # Check whether --with-opengl was given.
2725 if test "${with_opengl+set}" = set; then :
2726 withval=$with_opengl;
2730 # Check whether --with-osmesa was given.
2731 if test "${with_osmesa+set}" = set; then :
2732 withval=$with_osmesa;
2736 # Check whether --with-oss was given.
2737 if test "${with_oss+set}" = set; then :
2738 withval=$with_oss;
2742 # Check whether --with-png was given.
2743 if test "${with_png+set}" = set; then :
2744 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2748 # Check whether --with-pthread was given.
2749 if test "${with_pthread+set}" = set; then :
2750 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2754 # Check whether --with-sane was given.
2755 if test "${with_sane+set}" = set; then :
2756 withval=$with_sane;
2760 # Check whether --with-tiff was given.
2761 if test "${with_tiff+set}" = set; then :
2762 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2766 # Check whether --with-v4l was given.
2767 if test "${with_v4l+set}" = set; then :
2768 withval=$with_v4l;
2772 # Check whether --with-xcomposite was given.
2773 if test "${with_xcomposite+set}" = set; then :
2774 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2778 # Check whether --with-xcursor was given.
2779 if test "${with_xcursor+set}" = set; then :
2780 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2784 # Check whether --with-xinerama was given.
2785 if test "${with_xinerama+set}" = set; then :
2786 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2790 # Check whether --with-xinput was given.
2791 if test "${with_xinput+set}" = set; then :
2792 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2796 # Check whether --with-xinput2 was given.
2797 if test "${with_xinput2+set}" = set; then :
2798 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2802 # Check whether --with-xml was given.
2803 if test "${with_xml+set}" = set; then :
2804 withval=$with_xml;
2808 # Check whether --with-xrandr was given.
2809 if test "${with_xrandr+set}" = set; then :
2810 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2814 # Check whether --with-xrender was given.
2815 if test "${with_xrender+set}" = set; then :
2816 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2820 # Check whether --with-xshape was given.
2821 if test "${with_xshape+set}" = set; then :
2822 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2826 # Check whether --with-xshm was given.
2827 if test "${with_xshm+set}" = set; then :
2828 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2832 # Check whether --with-xslt was given.
2833 if test "${with_xslt+set}" = set; then :
2834 withval=$with_xslt;
2838 # Check whether --with-xxf86vm was given.
2839 if test "${with_xxf86vm+set}" = set; then :
2840 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
2844 # Check whether --with-zlib was given.
2845 if test "${with_zlib+set}" = set; then :
2846 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2851 # Check whether --with-wine-tools was given.
2852 if test "${with_wine_tools+set}" = set; then :
2853 withval=$with_wine_tools;
2857 # Check whether --with-wine64 was given.
2858 if test "${with_wine64+set}" = set; then :
2859 withval=$with_wine64;
2863 # Make sure we can run config.sub.
2864 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2865 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2868 $as_echo_n "checking build system type... " >&6; }
2869 if ${ac_cv_build+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 ac_build_alias=$build_alias
2873 test "x$ac_build_alias" = x &&
2874 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2875 test "x$ac_build_alias" = x &&
2876 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2877 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2878 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2882 $as_echo "$ac_cv_build" >&6; }
2883 case $ac_cv_build in
2884 *-*-*) ;;
2885 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2886 esac
2887 build=$ac_cv_build
2888 ac_save_IFS=$IFS; IFS='-'
2889 set x $ac_cv_build
2890 shift
2891 build_cpu=$1
2892 build_vendor=$2
2893 shift; shift
2894 # Remember, the first character of IFS is used to create $*,
2895 # except with old shells:
2896 build_os=$*
2897 IFS=$ac_save_IFS
2898 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2902 $as_echo_n "checking host system type... " >&6; }
2903 if ${ac_cv_host+:} false; then :
2904 $as_echo_n "(cached) " >&6
2905 else
2906 if test "x$host_alias" = x; then
2907 ac_cv_host=$ac_cv_build
2908 else
2909 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2910 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2915 $as_echo "$ac_cv_host" >&6; }
2916 case $ac_cv_host in
2917 *-*-*) ;;
2918 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2919 esac
2920 host=$ac_cv_host
2921 ac_save_IFS=$IFS; IFS='-'
2922 set x $ac_cv_host
2923 shift
2924 host_cpu=$1
2925 host_vendor=$2
2926 shift; shift
2927 # Remember, the first character of IFS is used to create $*,
2928 # except with old shells:
2929 host_os=$*
2930 IFS=$ac_save_IFS
2931 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2935 case "$srcdir" in
2936 .) ;;
2937 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2938 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2939 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2940 fi ;;
2941 esac
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2945 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2946 set x ${MAKE-make}
2947 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2948 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2949 $as_echo_n "(cached) " >&6
2950 else
2951 cat >conftest.make <<\_ACEOF
2952 SHELL = /bin/sh
2953 all:
2954 @echo '@@@%%%=$(MAKE)=@@@%%%'
2955 _ACEOF
2956 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2957 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2958 *@@@%%%=?*=@@@%%%*)
2959 eval ac_cv_prog_make_${ac_make}_set=yes;;
2961 eval ac_cv_prog_make_${ac_make}_set=no;;
2962 esac
2963 rm -f conftest.make
2965 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2967 $as_echo "yes" >&6; }
2968 SET_MAKE=
2969 else
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 SET_MAKE="MAKE=${MAKE-make}"
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980 if test -n "$ac_tool_prefix"; then
2981 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2982 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_CC+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3002 done
3003 done
3004 IFS=$as_save_IFS
3008 CC=$ac_cv_prog_CC
3009 if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 $as_echo "$CC" >&6; }
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3019 if test -z "$ac_cv_prog_CC"; then
3020 ac_ct_CC=$CC
3021 # Extract the first word of "gcc", so it can be a program name with args.
3022 set dummy gcc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3027 else
3028 if test -n "$ac_ct_CC"; then
3029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_ac_ct_CC="gcc"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3042 done
3043 done
3044 IFS=$as_save_IFS
3048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3049 if test -n "$ac_ct_CC"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3051 $as_echo "$ac_ct_CC" >&6; }
3052 else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3057 if test "x$ac_ct_CC" = x; then
3058 CC=""
3059 else
3060 case $cross_compiling:$ac_tool_warned in
3061 yes:)
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064 ac_tool_warned=yes ;;
3065 esac
3066 CC=$ac_ct_CC
3068 else
3069 CC="$ac_cv_prog_CC"
3072 if test -z "$CC"; then
3073 if test -n "$ac_tool_prefix"; then
3074 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}cc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if ${ac_cv_prog_CC+:} false; then :
3079 $as_echo_n "(cached) " >&6
3080 else
3081 if test -n "$CC"; then
3082 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_CC="${ac_tool_prefix}cc"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3095 done
3096 done
3097 IFS=$as_save_IFS
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3113 if test -z "$CC"; then
3114 # Extract the first word of "cc", so it can be a program name with args.
3115 set dummy cc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_CC+:} false; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3123 else
3124 ac_prog_rejected=no
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3128 IFS=$as_save_IFS
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3133 ac_prog_rejected=yes
3134 continue
3136 ac_cv_prog_CC="cc"
3137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3140 done
3141 done
3142 IFS=$as_save_IFS
3144 if test $ac_prog_rejected = yes; then
3145 # We found a bogon in the path, so make sure we never use it.
3146 set dummy $ac_cv_prog_CC
3147 shift
3148 if test $# != 0; then
3149 # We chose a different compiler from the bogus one.
3150 # However, it has the same basename, so the bogon will be chosen
3151 # first if we set CC to just the basename; use the full file name.
3152 shift
3153 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3158 CC=$ac_cv_prog_CC
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3169 if test -z "$CC"; then
3170 if test -n "$ac_tool_prefix"; then
3171 for ac_prog in cl.exe
3173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_CC+:} false; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$CC"; then
3181 ac_cv_prog_CC="$CC" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3194 done
3195 done
3196 IFS=$as_save_IFS
3200 CC=$ac_cv_prog_CC
3201 if test -n "$CC"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3203 $as_echo "$CC" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3210 test -n "$CC" && break
3211 done
3213 if test -z "$CC"; then
3214 ac_ct_CC=$CC
3215 for ac_prog in cl.exe
3217 # Extract the first word of "$ac_prog", so it can be a program name with args.
3218 set dummy $ac_prog; ac_word=$2
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 $as_echo_n "checking for $ac_word... " >&6; }
3221 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3222 $as_echo_n "(cached) " >&6
3223 else
3224 if test -n "$ac_ct_CC"; then
3225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 ac_cv_prog_ac_ct_CC="$ac_prog"
3235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 break 2
3238 done
3239 done
3240 IFS=$as_save_IFS
3244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3245 if test -n "$ac_ct_CC"; then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3247 $as_echo "$ac_ct_CC" >&6; }
3248 else
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3254 test -n "$ac_ct_CC" && break
3255 done
3257 if test "x$ac_ct_CC" = x; then
3258 CC=""
3259 else
3260 case $cross_compiling:$ac_tool_warned in
3261 yes:)
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264 ac_tool_warned=yes ;;
3265 esac
3266 CC=$ac_ct_CC
3273 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error $? "no acceptable C compiler found in \$PATH
3276 See \`config.log' for more details" "$LINENO" 5; }
3278 # Provide some information about the compiler.
3279 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3280 set X $ac_compile
3281 ac_compiler=$2
3282 for ac_option in --version -v -V -qversion; do
3283 { { ac_try="$ac_compiler $ac_option >&5"
3284 case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3291 ac_status=$?
3292 if test -s conftest.err; then
3293 sed '10a\
3294 ... rest of stderr output deleted ...
3295 10q' conftest.err >conftest.er1
3296 cat conftest.er1 >&5
3298 rm -f conftest.er1 conftest.err
3299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300 test $ac_status = 0; }
3301 done
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3307 main ()
3311 return 0;
3313 _ACEOF
3314 ac_clean_files_save=$ac_clean_files
3315 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3316 # Try to create an executable without -o first, disregard a.out.
3317 # It will help us diagnose broken compilers, and finding out an intuition
3318 # of exeext.
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3320 $as_echo_n "checking whether the C compiler works... " >&6; }
3321 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3323 # The possible output files:
3324 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3326 ac_rmfiles=
3327 for ac_file in $ac_files
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3331 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3332 esac
3333 done
3334 rm -f $ac_rmfiles
3336 if { { ac_try="$ac_link_default"
3337 case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340 esac
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_link_default") 2>&5
3344 ac_status=$?
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }; then :
3347 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3348 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3349 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3350 # so that the user can short-circuit this test for compilers unknown to
3351 # Autoconf.
3352 for ac_file in $ac_files ''
3354 test -f "$ac_file" || continue
3355 case $ac_file in
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3358 [ab].out )
3359 # We found the default executable, but exeext='' is most
3360 # certainly right.
3361 break;;
3362 *.* )
3363 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3364 then :; else
3365 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3367 # We set ac_cv_exeext here because the later test for it is not
3368 # safe: cross compilers may not add the suffix if given an `-o'
3369 # argument, so we may need to know it at that point already.
3370 # Even if this section looks crufty: it has the advantage of
3371 # actually working.
3372 break;;
3374 break;;
3375 esac
3376 done
3377 test "$ac_cv_exeext" = no && ac_cv_exeext=
3379 else
3380 ac_file=''
3382 if test -z "$ac_file"; then :
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 $as_echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390 as_fn_error 77 "C compiler cannot create executables
3391 See \`config.log' for more details" "$LINENO" 5; }
3392 else
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3394 $as_echo "yes" >&6; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3397 $as_echo_n "checking for C compiler default output file name... " >&6; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3399 $as_echo "$ac_file" >&6; }
3400 ac_exeext=$ac_cv_exeext
3402 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3403 ac_clean_files=$ac_clean_files_save
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3405 $as_echo_n "checking for suffix of executables... " >&6; }
3406 if { { ac_try="$ac_link"
3407 case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3410 esac
3411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412 $as_echo "$ac_try_echo"; } >&5
3413 (eval "$ac_link") 2>&5
3414 ac_status=$?
3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416 test $ac_status = 0; }; then :
3417 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3418 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3419 # work properly (i.e., refer to `conftest.exe'), while it won't with
3420 # `rm'.
3421 for ac_file in conftest.exe conftest conftest.*; do
3422 test -f "$ac_file" || continue
3423 case $ac_file in
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3426 break;;
3427 * ) break;;
3428 esac
3429 done
3430 else
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3434 See \`config.log' for more details" "$LINENO" 5; }
3436 rm -f conftest conftest$ac_cv_exeext
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3438 $as_echo "$ac_cv_exeext" >&6; }
3440 rm -f conftest.$ac_ext
3441 EXEEXT=$ac_cv_exeext
3442 ac_exeext=$EXEEXT
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3445 #include <stdio.h>
3447 main ()
3449 FILE *f = fopen ("conftest.out", "w");
3450 return ferror (f) || fclose (f) != 0;
3453 return 0;
3455 _ACEOF
3456 ac_clean_files="$ac_clean_files conftest.out"
3457 # Check that the compiler produces executables we can run. If not, either
3458 # the compiler is broken, or we cross compile.
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3460 $as_echo_n "checking whether we are cross compiling... " >&6; }
3461 if test "$cross_compiling" != yes; then
3462 { { ac_try="$ac_link"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_link") 2>&5
3470 ac_status=$?
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }
3473 if { ac_try='./conftest$ac_cv_exeext'
3474 { { case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480 (eval "$ac_try") 2>&5
3481 ac_status=$?
3482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483 test $ac_status = 0; }; }; then
3484 cross_compiling=no
3485 else
3486 if test "$cross_compiling" = maybe; then
3487 cross_compiling=yes
3488 else
3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491 as_fn_error $? "cannot run C compiled programs.
3492 If you meant to cross compile, use \`--host'.
3493 See \`config.log' for more details" "$LINENO" 5; }
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3498 $as_echo "$cross_compiling" >&6; }
3500 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3501 ac_clean_files=$ac_clean_files_save
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3503 $as_echo_n "checking for suffix of object files... " >&6; }
3504 if ${ac_cv_objext+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3511 main ()
3515 return 0;
3517 _ACEOF
3518 rm -f conftest.o conftest.obj
3519 if { { ac_try="$ac_compile"
3520 case "(($ac_try" in
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3523 esac
3524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525 $as_echo "$ac_try_echo"; } >&5
3526 (eval "$ac_compile") 2>&5
3527 ac_status=$?
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }; then :
3530 for ac_file in conftest.o conftest.obj conftest.*; do
3531 test -f "$ac_file" || continue;
3532 case $ac_file in
3533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3534 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3535 break;;
3536 esac
3537 done
3538 else
3539 $as_echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3544 as_fn_error $? "cannot compute suffix of object files: cannot compile
3545 See \`config.log' for more details" "$LINENO" 5; }
3547 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3550 $as_echo "$ac_cv_objext" >&6; }
3551 OBJEXT=$ac_cv_objext
3552 ac_objext=$OBJEXT
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3554 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3555 if ${ac_cv_c_compiler_gnu+:} false; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3562 main ()
3564 #ifndef __GNUC__
3565 choke me
3566 #endif
3569 return 0;
3571 _ACEOF
3572 if ac_fn_c_try_compile "$LINENO"; then :
3573 ac_compiler_gnu=yes
3574 else
3575 ac_compiler_gnu=no
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3582 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3583 if test $ac_compiler_gnu = yes; then
3584 GCC=yes
3585 else
3586 GCC=
3588 ac_test_CFLAGS=${CFLAGS+set}
3589 ac_save_CFLAGS=$CFLAGS
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3591 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3592 if ${ac_cv_prog_cc_g+:} false; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 ac_save_c_werror_flag=$ac_c_werror_flag
3596 ac_c_werror_flag=yes
3597 ac_cv_prog_cc_g=no
3598 CFLAGS="-g"
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3603 main ()
3607 return 0;
3609 _ACEOF
3610 if ac_fn_c_try_compile "$LINENO"; then :
3611 ac_cv_prog_cc_g=yes
3612 else
3613 CFLAGS=""
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3618 main ()
3622 return 0;
3624 _ACEOF
3625 if ac_fn_c_try_compile "$LINENO"; then :
3627 else
3628 ac_c_werror_flag=$ac_save_c_werror_flag
3629 CFLAGS="-g"
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h. */
3634 main ()
3638 return 0;
3640 _ACEOF
3641 if ac_fn_c_try_compile "$LINENO"; then :
3642 ac_cv_prog_cc_g=yes
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 ac_c_werror_flag=$ac_save_c_werror_flag
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3652 $as_echo "$ac_cv_prog_cc_g" >&6; }
3653 if test "$ac_test_CFLAGS" = set; then
3654 CFLAGS=$ac_save_CFLAGS
3655 elif test $ac_cv_prog_cc_g = yes; then
3656 if test "$GCC" = yes; then
3657 CFLAGS="-g -O2"
3658 else
3659 CFLAGS="-g"
3661 else
3662 if test "$GCC" = yes; then
3663 CFLAGS="-O2"
3664 else
3665 CFLAGS=
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3669 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3670 if ${ac_cv_prog_cc_c89+:} false; then :
3671 $as_echo_n "(cached) " >&6
3672 else
3673 ac_cv_prog_cc_c89=no
3674 ac_save_CC=$CC
3675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3677 #include <stdarg.h>
3678 #include <stdio.h>
3679 struct stat;
3680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3681 struct buf { int x; };
3682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3683 static char *e (p, i)
3684 char **p;
3685 int i;
3687 return p[i];
3689 static char *f (char * (*g) (char **, int), char **p, ...)
3691 char *s;
3692 va_list v;
3693 va_start (v,p);
3694 s = g (p, va_arg (v,int));
3695 va_end (v);
3696 return s;
3699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3700 function prototypes and stuff, but not '\xHH' hex character constants.
3701 These don't provoke an error unfortunately, instead are silently treated
3702 as 'x'. The following induces an error, until -std is added to get
3703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3704 array size at least. It's necessary to write '\x00'==0 to get something
3705 that's true only with -std. */
3706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3709 inside strings and character constants. */
3710 #define FOO(x) 'x'
3711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3713 int test (int i, double x);
3714 struct s1 {int (*f) (int a);};
3715 struct s2 {int (*f) (double a);};
3716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3717 int argc;
3718 char **argv;
3720 main ()
3722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3724 return 0;
3726 _ACEOF
3727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3730 CC="$ac_save_CC $ac_arg"
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732 ac_cv_prog_cc_c89=$ac_arg
3734 rm -f core conftest.err conftest.$ac_objext
3735 test "x$ac_cv_prog_cc_c89" != "xno" && break
3736 done
3737 rm -f conftest.$ac_ext
3738 CC=$ac_save_CC
3741 # AC_CACHE_VAL
3742 case "x$ac_cv_prog_cc_c89" in
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3745 $as_echo "none needed" >&6; } ;;
3746 xno)
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3748 $as_echo "unsupported" >&6; } ;;
3750 CC="$CC $ac_cv_prog_cc_c89"
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3752 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3753 esac
3754 if test "x$ac_cv_prog_cc_c89" != xno; then :
3758 ac_ext=c
3759 ac_cpp='$CPP $CPPFLAGS'
3760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764 ac_ext=cpp
3765 ac_cpp='$CXXCPP $CPPFLAGS'
3766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3769 if test -z "$CXX"; then
3770 if test -n "$CCC"; then
3771 CXX=$CCC
3772 else
3773 if test -n "$ac_tool_prefix"; then
3774 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3777 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if ${ac_cv_prog_CXX+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 if test -n "$CXX"; then
3784 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3797 done
3798 done
3799 IFS=$as_save_IFS
3803 CXX=$ac_cv_prog_CXX
3804 if test -n "$CXX"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3806 $as_echo "$CXX" >&6; }
3807 else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3813 test -n "$CXX" && break
3814 done
3816 if test -z "$CXX"; then
3817 ac_ct_CXX=$CXX
3818 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3820 # Extract the first word of "$ac_prog", so it can be a program name with args.
3821 set dummy $ac_prog; ac_word=$2
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3823 $as_echo_n "checking for $ac_word... " >&6; }
3824 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 if test -n "$ac_ct_CXX"; then
3828 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3829 else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837 ac_cv_prog_ac_ct_CXX="$ac_prog"
3838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 break 2
3841 done
3842 done
3843 IFS=$as_save_IFS
3847 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3848 if test -n "$ac_ct_CXX"; then
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3850 $as_echo "$ac_ct_CXX" >&6; }
3851 else
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 $as_echo "no" >&6; }
3857 test -n "$ac_ct_CXX" && break
3858 done
3860 if test "x$ac_ct_CXX" = x; then
3861 CXX="g++"
3862 else
3863 case $cross_compiling:$ac_tool_warned in
3864 yes:)
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3867 ac_tool_warned=yes ;;
3868 esac
3869 CXX=$ac_ct_CXX
3875 # Provide some information about the compiler.
3876 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3877 set X $ac_compile
3878 ac_compiler=$2
3879 for ac_option in --version -v -V -qversion; do
3880 { { ac_try="$ac_compiler $ac_option >&5"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 $as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3888 ac_status=$?
3889 if test -s conftest.err; then
3890 sed '10a\
3891 ... rest of stderr output deleted ...
3892 10q' conftest.err >conftest.er1
3893 cat conftest.er1 >&5
3895 rm -f conftest.er1 conftest.err
3896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3897 test $ac_status = 0; }
3898 done
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3901 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3902 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3903 $as_echo_n "(cached) " >&6
3904 else
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3909 main ()
3911 #ifndef __GNUC__
3912 choke me
3913 #endif
3916 return 0;
3918 _ACEOF
3919 if ac_fn_cxx_try_compile "$LINENO"; then :
3920 ac_compiler_gnu=yes
3921 else
3922 ac_compiler_gnu=no
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3929 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3930 if test $ac_compiler_gnu = yes; then
3931 GXX=yes
3932 else
3933 GXX=
3935 ac_test_CXXFLAGS=${CXXFLAGS+set}
3936 ac_save_CXXFLAGS=$CXXFLAGS
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3938 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3939 if ${ac_cv_prog_cxx_g+:} false; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3943 ac_cxx_werror_flag=yes
3944 ac_cv_prog_cxx_g=no
3945 CXXFLAGS="-g"
3946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h. */
3950 main ()
3954 return 0;
3956 _ACEOF
3957 if ac_fn_cxx_try_compile "$LINENO"; then :
3958 ac_cv_prog_cxx_g=yes
3959 else
3960 CXXFLAGS=""
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3965 main ()
3969 return 0;
3971 _ACEOF
3972 if ac_fn_cxx_try_compile "$LINENO"; then :
3974 else
3975 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3976 CXXFLAGS="-g"
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3981 main ()
3985 return 0;
3987 _ACEOF
3988 if ac_fn_cxx_try_compile "$LINENO"; then :
3989 ac_cv_prog_cxx_g=yes
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3999 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4000 if test "$ac_test_CXXFLAGS" = set; then
4001 CXXFLAGS=$ac_save_CXXFLAGS
4002 elif test $ac_cv_prog_cxx_g = yes; then
4003 if test "$GXX" = yes; then
4004 CXXFLAGS="-g -O2"
4005 else
4006 CXXFLAGS="-g"
4008 else
4009 if test "$GXX" = yes; then
4010 CXXFLAGS="-O2"
4011 else
4012 CXXFLAGS=
4015 ac_ext=c
4016 ac_cpp='$CPP $CPPFLAGS'
4017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021 if test -n "$ac_tool_prefix"; then
4022 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4023 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if ${ac_cv_prog_CPPBIN+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 if test -n "$CPPBIN"; then
4030 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4031 else
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4043 done
4044 done
4045 IFS=$as_save_IFS
4049 CPPBIN=$ac_cv_prog_CPPBIN
4050 if test -n "$CPPBIN"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4052 $as_echo "$CPPBIN" >&6; }
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4060 if test -z "$ac_cv_prog_CPPBIN"; then
4061 ac_ct_CPPBIN=$CPPBIN
4062 # Extract the first word of "cpp", so it can be a program name with args.
4063 set dummy cpp; ac_word=$2
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 $as_echo_n "checking for $ac_word... " >&6; }
4066 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4067 $as_echo_n "(cached) " >&6
4068 else
4069 if test -n "$ac_ct_CPPBIN"; then
4070 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4071 else
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_prog_ac_ct_CPPBIN="cpp"
4080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4083 done
4084 done
4085 IFS=$as_save_IFS
4089 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4090 if test -n "$ac_ct_CPPBIN"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4092 $as_echo "$ac_ct_CPPBIN" >&6; }
4093 else
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4098 if test "x$ac_ct_CPPBIN" = x; then
4099 CPPBIN="cpp"
4100 else
4101 case $cross_compiling:$ac_tool_warned in
4102 yes:)
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4105 ac_tool_warned=yes ;;
4106 esac
4107 CPPBIN=$ac_ct_CPPBIN
4109 else
4110 CPPBIN="$ac_cv_prog_CPPBIN"
4114 cat >>confdefs.h <<_ACEOF
4115 #define EXEEXT "$ac_exeext"
4116 _ACEOF
4119 case $host in
4120 *-darwin*)
4121 if test "x$enable_win64" = "xyes"
4122 then
4123 CC="$CC -m64"
4124 CXX="$CXX -m64"
4125 host_cpu="x86_64"
4126 notice_platform="64-bit "
4127 TARGETFLAGS="-m64"
4129 else
4130 CC="$CC -m32"
4131 CXX="$CXX -m32"
4132 host_cpu="i386"
4133 notice_platform="32-bit "
4134 TARGETFLAGS="-m32"
4136 enable_win16=${enable_win16:-yes}
4138 with_fontconfig=${with_fontconfig:-no}
4140 x86_64*)
4141 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4142 then
4143 CC="$CC -m32"
4144 CXX="$CXX -m32"
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4146 $as_echo_n "checking whether $CC works... " >&6; }
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4152 main ()
4156 return 0;
4158 _ACEOF
4159 if ac_fn_c_try_link "$LINENO"; then :
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4161 $as_echo "yes" >&6; }
4162 else
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4165 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4167 rm -f core conftest.err conftest.$ac_objext \
4168 conftest$ac_exeext conftest.$ac_ext
4169 host_cpu="i386"
4170 notice_platform="32-bit "
4171 TARGETFLAGS="-m32"
4173 enable_win16=${enable_win16:-yes}
4174 else
4175 if test "x${GCC}" = "xyes"
4176 then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4178 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4181 #include <stdarg.h>
4183 main ()
4185 void func(__builtin_ms_va_list *args);
4187 return 0;
4189 _ACEOF
4190 if ac_fn_c_try_compile "$LINENO"; then :
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4192 $as_echo "yes" >&6; }
4193 else
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4196 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 TARGETFLAGS="-m64"
4204 arm*)
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4206 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 int ac_test(int i) { return i; }
4211 main ()
4213 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4215 return 0;
4217 _ACEOF
4218 if ac_fn_c_try_link "$LINENO"; then :
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4220 $as_echo "yes" >&6; }
4221 else
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4224 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4226 rm -f core conftest.err conftest.$ac_objext \
4227 conftest$ac_exeext conftest.$ac_ext
4228 CFLAGS="$CFLAGS -marm"
4230 *-mingw32*|*-cygwin*)
4231 enable_win16=${enable_win16:-no}
4232 CFLAGS="$CFLAGS -D_WIN32"
4234 i[3456789]86*)
4235 enable_win16=${enable_win16:-yes}
4237 esac
4239 enable_win16=${enable_win16:-no}
4240 enable_win64=${enable_win64:-no}
4242 enable_winetest=${enable_winetest:-$enable_tests}
4244 if test -n "$with_wine64"
4245 then
4246 if test "x$enable_win64" = "xyes"
4247 then
4248 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4249 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4251 WOW64_DISABLE=\#
4253 enable_fonts=${enable_fonts:-no}
4254 enable_server=${enable_server:-no}
4255 enable_tools=${enable_tools:-no}
4256 elif test "x$enable_win64" = "xyes"
4257 then
4258 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4262 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4263 if ${wine_cv_toolsdir+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 wine_cv_toolsdir="$with_wine_tools"
4267 if test -z "$with_wine_tools"; then
4268 if test "$cross_compiling" = "yes"; then
4269 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4270 elif test -n "$with_wine64"; then
4271 wine_cv_toolsdir="$with_wine64"
4274 if test -z "$wine_cv_toolsdir"; then
4275 wine_cv_toolsdir="\$(top_builddir)"
4276 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4277 case "$wine_cv_toolsdir" in
4278 /*) ;;
4279 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4280 esac
4281 else
4282 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4286 $as_echo "$wine_cv_toolsdir" >&6; }
4287 TOOLSDIR=$wine_cv_toolsdir
4289 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4290 then
4291 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4295 for ac_prog in flex
4297 # Extract the first word of "$ac_prog", so it can be a program name with args.
4298 set dummy $ac_prog; ac_word=$2
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4300 $as_echo_n "checking for $ac_word... " >&6; }
4301 if ${ac_cv_prog_FLEX+:} false; then :
4302 $as_echo_n "(cached) " >&6
4303 else
4304 if test -n "$FLEX"; then
4305 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4306 else
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4314 ac_cv_prog_FLEX="$ac_prog"
4315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 break 2
4318 done
4319 done
4320 IFS=$as_save_IFS
4324 FLEX=$ac_cv_prog_FLEX
4325 if test -n "$FLEX"; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4327 $as_echo "$FLEX" >&6; }
4328 else
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 $as_echo "no" >&6; }
4334 test -n "$FLEX" && break
4335 done
4336 test -n "$FLEX" || FLEX="none"
4338 if test "$FLEX" = "none"
4339 then
4340 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4343 $as_echo_n "checking whether flex is recent enough... " >&6; }
4344 cat >conftest.l <<EOF
4345 %top{
4346 #include "prediluvian.h"
4350 if $FLEX -t conftest.l >/dev/null 2>&5
4351 then
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4353 $as_echo "yes" >&6; }
4354 else
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356 $as_echo "no" >&6; }
4357 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4360 for ac_prog in bison
4362 # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_prog_BISON+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test -n "$BISON"; then
4370 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379 ac_cv_prog_BISON="$ac_prog"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4383 done
4384 done
4385 IFS=$as_save_IFS
4389 BISON=$ac_cv_prog_BISON
4390 if test -n "$BISON"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4392 $as_echo "$BISON" >&6; }
4393 else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4399 test -n "$BISON" && break
4400 done
4401 test -n "$BISON" || BISON="none"
4403 if test "$BISON" = "none"
4404 then
4405 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4408 if test -n "$ac_tool_prefix"; then
4409 for ac_prog in ar gar
4411 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4412 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414 $as_echo_n "checking for $ac_word... " >&6; }
4415 if ${ac_cv_prog_AR+:} false; then :
4416 $as_echo_n "(cached) " >&6
4417 else
4418 if test -n "$AR"; then
4419 ac_cv_prog_AR="$AR" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4432 done
4433 done
4434 IFS=$as_save_IFS
4438 AR=$ac_cv_prog_AR
4439 if test -n "$AR"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4441 $as_echo "$AR" >&6; }
4442 else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4448 test -n "$AR" && break
4449 done
4451 if test -z "$AR"; then
4452 ac_ct_AR=$AR
4453 for ac_prog in ar gar
4455 # Extract the first word of "$ac_prog", so it can be a program name with args.
4456 set dummy $ac_prog; ac_word=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -n "$ac_ct_AR"; then
4463 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4472 ac_cv_prog_ac_ct_AR="$ac_prog"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4476 done
4477 done
4478 IFS=$as_save_IFS
4482 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4483 if test -n "$ac_ct_AR"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4485 $as_echo "$ac_ct_AR" >&6; }
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4492 test -n "$ac_ct_AR" && break
4493 done
4495 if test "x$ac_ct_AR" = x; then
4496 AR="ar"
4497 else
4498 case $cross_compiling:$ac_tool_warned in
4499 yes:)
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4502 ac_tool_warned=yes ;;
4503 esac
4504 AR=$ac_ct_AR
4508 ARFLAGS=rc
4510 if test -n "$ac_tool_prefix"; then
4511 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4512 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if ${ac_cv_prog_RANLIB+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$RANLIB"; then
4519 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4532 done
4533 done
4534 IFS=$as_save_IFS
4538 RANLIB=$ac_cv_prog_RANLIB
4539 if test -n "$RANLIB"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4541 $as_echo "$RANLIB" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4549 if test -z "$ac_cv_prog_RANLIB"; then
4550 ac_ct_RANLIB=$RANLIB
4551 # Extract the first word of "ranlib", so it can be a program name with args.
4552 set dummy ranlib; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 if test -n "$ac_ct_RANLIB"; then
4559 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_ac_ct_RANLIB="ranlib"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4572 done
4573 done
4574 IFS=$as_save_IFS
4578 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4579 if test -n "$ac_ct_RANLIB"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4581 $as_echo "$ac_ct_RANLIB" >&6; }
4582 else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4587 if test "x$ac_ct_RANLIB" = x; then
4588 RANLIB=":"
4589 else
4590 case $cross_compiling:$ac_tool_warned in
4591 yes:)
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4594 ac_tool_warned=yes ;;
4595 esac
4596 RANLIB=$ac_ct_RANLIB
4598 else
4599 RANLIB="$ac_cv_prog_RANLIB"
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4603 $as_echo_n "checking whether ln -s works... " >&6; }
4604 LN_S=$as_ln_s
4605 if test "$LN_S" = "ln -s"; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4607 $as_echo "yes" >&6; }
4608 else
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4610 $as_echo "no, using $LN_S" >&6; }
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4614 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4615 if ${ac_cv_path_GREP+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 if test -z "$GREP"; then
4619 ac_path_GREP_found=false
4620 # Loop through the user's path and test for each of PROGNAME-LIST
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_prog in grep ggrep; do
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4629 as_fn_executable_p "$ac_path_GREP" || continue
4630 # Check for GNU ac_path_GREP and select it if it is found.
4631 # Check for GNU $ac_path_GREP
4632 case `"$ac_path_GREP" --version 2>&1` in
4633 *GNU*)
4634 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4636 ac_count=0
4637 $as_echo_n 0123456789 >"conftest.in"
4638 while :
4640 cat "conftest.in" "conftest.in" >"conftest.tmp"
4641 mv "conftest.tmp" "conftest.in"
4642 cp "conftest.in" "conftest.nl"
4643 $as_echo 'GREP' >> "conftest.nl"
4644 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646 as_fn_arith $ac_count + 1 && ac_count=$as_val
4647 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4648 # Best one so far, save it but keep looking for a better one
4649 ac_cv_path_GREP="$ac_path_GREP"
4650 ac_path_GREP_max=$ac_count
4652 # 10*(2^10) chars as input seems more than enough
4653 test $ac_count -gt 10 && break
4654 done
4655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656 esac
4658 $ac_path_GREP_found && break 3
4659 done
4660 done
4661 done
4662 IFS=$as_save_IFS
4663 if test -z "$ac_cv_path_GREP"; then
4664 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4666 else
4667 ac_cv_path_GREP=$GREP
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4672 $as_echo "$ac_cv_path_GREP" >&6; }
4673 GREP="$ac_cv_path_GREP"
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4677 $as_echo_n "checking for egrep... " >&6; }
4678 if ${ac_cv_path_EGREP+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4682 then ac_cv_path_EGREP="$GREP -E"
4683 else
4684 if test -z "$EGREP"; then
4685 ac_path_EGREP_found=false
4686 # Loop through the user's path and test for each of PROGNAME-LIST
4687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_prog in egrep; do
4693 for ac_exec_ext in '' $ac_executable_extensions; do
4694 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4695 as_fn_executable_p "$ac_path_EGREP" || continue
4696 # Check for GNU ac_path_EGREP and select it if it is found.
4697 # Check for GNU $ac_path_EGREP
4698 case `"$ac_path_EGREP" --version 2>&1` in
4699 *GNU*)
4700 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4702 ac_count=0
4703 $as_echo_n 0123456789 >"conftest.in"
4704 while :
4706 cat "conftest.in" "conftest.in" >"conftest.tmp"
4707 mv "conftest.tmp" "conftest.in"
4708 cp "conftest.in" "conftest.nl"
4709 $as_echo 'EGREP' >> "conftest.nl"
4710 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4712 as_fn_arith $ac_count + 1 && ac_count=$as_val
4713 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4714 # Best one so far, save it but keep looking for a better one
4715 ac_cv_path_EGREP="$ac_path_EGREP"
4716 ac_path_EGREP_max=$ac_count
4718 # 10*(2^10) chars as input seems more than enough
4719 test $ac_count -gt 10 && break
4720 done
4721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4722 esac
4724 $ac_path_EGREP_found && break 3
4725 done
4726 done
4727 done
4728 IFS=$as_save_IFS
4729 if test -z "$ac_cv_path_EGREP"; then
4730 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4732 else
4733 ac_cv_path_EGREP=$EGREP
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4739 $as_echo "$ac_cv_path_EGREP" >&6; }
4740 EGREP="$ac_cv_path_EGREP"
4743 # Extract the first word of "ldconfig", so it can be a program name with args.
4744 set dummy ldconfig; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if ${ac_cv_path_LDCONFIG+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 case $LDCONFIG in
4751 [\\/]* | ?:[\\/]*)
4752 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in /sbin /usr/sbin $PATH
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4766 done
4767 done
4768 IFS=$as_save_IFS
4770 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4772 esac
4774 LDCONFIG=$ac_cv_path_LDCONFIG
4775 if test -n "$LDCONFIG"; then
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4777 $as_echo "$LDCONFIG" >&6; }
4778 else
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 $as_echo "no" >&6; }
4784 # Find a good install program. We prefer a C program (faster),
4785 # so one script is as good as another. But avoid the broken or
4786 # incompatible versions:
4787 # SysV /etc/install, /usr/sbin/install
4788 # SunOS /usr/etc/install
4789 # IRIX /sbin/install
4790 # AIX /bin/install
4791 # AmigaOS /C/install, which installs bootblocks on floppy discs
4792 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4793 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4794 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4795 # OS/2's system install, which has a completely different semantic
4796 # ./install, which can be erroneously created by make from ./install.sh.
4797 # Reject install programs that cannot install multiple files.
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4799 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4800 if test -z "$INSTALL"; then
4801 if ${ac_cv_path_install+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 # Account for people who put trailing slashes in PATH elements.
4810 case $as_dir/ in #((
4811 ./ | .// | /[cC]/* | \
4812 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4813 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4814 /usr/ucb/* ) ;;
4816 # OSF1 and SCO ODT 3.0 have their own names for install.
4817 # Don't use installbsd from OSF since it installs stuff as root
4818 # by default.
4819 for ac_prog in ginstall scoinst install; do
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4822 if test $ac_prog = install &&
4823 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4824 # AIX install. It has an incompatible calling convention.
4826 elif test $ac_prog = install &&
4827 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4828 # program-specific install script used by HP pwplus--don't use.
4830 else
4831 rm -rf conftest.one conftest.two conftest.dir
4832 echo one > conftest.one
4833 echo two > conftest.two
4834 mkdir conftest.dir
4835 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4836 test -s conftest.one && test -s conftest.two &&
4837 test -s conftest.dir/conftest.one &&
4838 test -s conftest.dir/conftest.two
4839 then
4840 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4841 break 3
4845 done
4846 done
4848 esac
4850 done
4851 IFS=$as_save_IFS
4853 rm -rf conftest.one conftest.two conftest.dir
4856 if test "${ac_cv_path_install+set}" = set; then
4857 INSTALL=$ac_cv_path_install
4858 else
4859 # As a last resort, use the slow shell script. Don't cache a
4860 # value for INSTALL within a source directory, because that will
4861 # break other packages using the cache if that directory is
4862 # removed, or if the value is a relative name.
4863 INSTALL=$ac_install_sh
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4867 $as_echo "$INSTALL" >&6; }
4869 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4870 # It thinks the first close brace ends the variable substitution.
4871 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4873 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4875 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4877 case "$INSTALL" in
4878 [\\/$]* | ?:[\\/]* ) ;;
4879 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4880 esac
4882 for ac_prog in lclint lint
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy $ac_prog; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if ${ac_cv_prog_LINT+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -n "$LINT"; then
4892 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_prog_LINT="$ac_prog"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4905 done
4906 done
4907 IFS=$as_save_IFS
4911 LINT=$ac_cv_prog_LINT
4912 if test -n "$LINT"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4914 $as_echo "$LINT" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4921 test -n "$LINT" && break
4922 done
4924 if test "$LINT" = "lint"
4925 then
4926 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4930 for ac_prog in fontforge
4932 # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if ${ac_cv_prog_FONTFORGE+:} false; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 if test -n "$FONTFORGE"; then
4940 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4941 else
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949 ac_cv_prog_FONTFORGE="$ac_prog"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4953 done
4954 done
4955 IFS=$as_save_IFS
4959 FONTFORGE=$ac_cv_prog_FONTFORGE
4960 if test -n "$FONTFORGE"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4962 $as_echo "$FONTFORGE" >&6; }
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4969 test -n "$FONTFORGE" && break
4970 done
4971 test -n "$FONTFORGE" || FONTFORGE="false"
4973 for ac_prog in rsvg
4975 # Extract the first word of "$ac_prog", so it can be a program name with args.
4976 set dummy $ac_prog; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_RSVG+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -n "$RSVG"; then
4983 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_RSVG="$ac_prog"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4996 done
4997 done
4998 IFS=$as_save_IFS
5002 RSVG=$ac_cv_prog_RSVG
5003 if test -n "$RSVG"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5005 $as_echo "$RSVG" >&6; }
5006 else
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5012 test -n "$RSVG" && break
5013 done
5014 test -n "$RSVG" || RSVG="false"
5016 for ac_prog in convert
5018 # Extract the first word of "$ac_prog", so it can be a program name with args.
5019 set dummy $ac_prog; ac_word=$2
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 $as_echo_n "checking for $ac_word... " >&6; }
5022 if ${ac_cv_prog_CONVERT+:} false; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 if test -n "$CONVERT"; then
5026 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5027 else
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 ac_cv_prog_CONVERT="$ac_prog"
5036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5039 done
5040 done
5041 IFS=$as_save_IFS
5045 CONVERT=$ac_cv_prog_CONVERT
5046 if test -n "$CONVERT"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5048 $as_echo "$CONVERT" >&6; }
5049 else
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5055 test -n "$CONVERT" && break
5056 done
5057 test -n "$CONVERT" || CONVERT="false"
5059 for ac_prog in icotool
5061 # Extract the first word of "$ac_prog", so it can be a program name with args.
5062 set dummy $ac_prog; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_ICOTOOL+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$ICOTOOL"; then
5069 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_ICOTOOL="$ac_prog"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5082 done
5083 done
5084 IFS=$as_save_IFS
5088 ICOTOOL=$ac_cv_prog_ICOTOOL
5089 if test -n "$ICOTOOL"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5091 $as_echo "$ICOTOOL" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5098 test -n "$ICOTOOL" && break
5099 done
5100 test -n "$ICOTOOL" || ICOTOOL="false"
5102 for ac_prog in msgfmt
5104 # Extract the first word of "$ac_prog", so it can be a program name with args.
5105 set dummy $ac_prog; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if ${ac_cv_prog_MSGFMT+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$MSGFMT"; then
5112 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121 ac_cv_prog_MSGFMT="$ac_prog"
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5127 IFS=$as_save_IFS
5131 MSGFMT=$ac_cv_prog_MSGFMT
5132 if test -n "$MSGFMT"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5134 $as_echo "$MSGFMT" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 test -n "$MSGFMT" && break
5142 done
5143 test -n "$MSGFMT" || MSGFMT="false"
5146 if test "x$enable_maintainer_mode" != "xyes"
5147 then
5148 MAINTAINER_MODE=\#
5150 else
5151 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5152 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5154 if test "$CONVERT" = false
5155 then
5156 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5157 else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5159 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5160 convert_version=`convert --version | head -n1`
5161 if test "x$convert_version" != "x"
5162 then
5163 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5164 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5165 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5166 then
5167 CONVERT=false
5170 if test "$CONVERT" = false
5171 then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5173 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5174 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5177 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5181 if test "$ICOTOOL" = false
5182 then
5183 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5184 else
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5186 $as_echo_n "checking for recent enough icotool... " >&6; }
5187 icotool_version=`icotool --version | head -n1`
5188 if test "x$icotool_version" != "x"
5189 then
5190 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5191 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5192 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5193 then
5194 ICOTOOL=false
5195 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5198 if test "$ICOTOOL" = false
5199 then
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5201 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5202 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5205 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5209 with_gettext=yes
5210 with_gettextpo=yes
5211 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5214 test "x$with_gettext" != xno || MSGFMT=false
5215 if test "$MSGFMT" != "false"
5216 then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5218 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5219 cat >conftest.po <<EOF
5220 # comment
5221 msgctxt "ctxt"
5222 msgid "id"
5223 msgstr "str"
5225 if $MSGFMT -o /dev/null conftest.po 2>&5
5226 then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5228 $as_echo "yes" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232 MSGFMT=false
5235 if test "$MSGFMT" = false; then :
5236 case "x$with_gettext" in
5237 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5238 xno) ;;
5239 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5240 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5241 esac
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5246 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5247 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 ac_check_lib_save_LIBS=$LIBS
5251 LIBS="-li386 $LIBS"
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5255 /* Override any GCC internal prototype to avoid an error.
5256 Use char because int might match the return type of a GCC
5257 builtin and then its argument prototype would still apply. */
5258 #ifdef __cplusplus
5259 extern "C"
5260 #endif
5261 char i386_set_ldt ();
5263 main ()
5265 return i386_set_ldt ();
5267 return 0;
5269 _ACEOF
5270 if ac_fn_c_try_link "$LINENO"; then :
5271 ac_cv_lib_i386_i386_set_ldt=yes
5272 else
5273 ac_cv_lib_i386_i386_set_ldt=no
5275 rm -f core conftest.err conftest.$ac_objext \
5276 conftest$ac_exeext conftest.$ac_ext
5277 LIBS=$ac_check_lib_save_LIBS
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5280 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5281 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5282 cat >>confdefs.h <<_ACEOF
5283 #define HAVE_LIBI386 1
5284 _ACEOF
5286 LIBS="-li386 $LIBS"
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5291 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5292 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5293 $as_echo_n "(cached) " >&6
5294 else
5295 ac_check_lib_save_LIBS=$LIBS
5296 LIBS="-lossaudio $LIBS"
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5300 /* Override any GCC internal prototype to avoid an error.
5301 Use char because int might match the return type of a GCC
5302 builtin and then its argument prototype would still apply. */
5303 #ifdef __cplusplus
5304 extern "C"
5305 #endif
5306 char _oss_ioctl ();
5308 main ()
5310 return _oss_ioctl ();
5312 return 0;
5314 _ACEOF
5315 if ac_fn_c_try_link "$LINENO"; then :
5316 ac_cv_lib_ossaudio__oss_ioctl=yes
5317 else
5318 ac_cv_lib_ossaudio__oss_ioctl=no
5320 rm -f core conftest.err conftest.$ac_objext \
5321 conftest$ac_exeext conftest.$ac_ext
5322 LIBS=$ac_check_lib_save_LIBS
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5325 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5326 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5327 cat >>confdefs.h <<_ACEOF
5328 #define HAVE_LIBOSSAUDIO 1
5329 _ACEOF
5331 LIBS="-lossaudio $LIBS"
5336 XLIB=""
5338 OPENGL_LIBS=""
5342 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
5344 # Check whether --enable-largefile was given.
5345 if test "${enable_largefile+set}" = set; then :
5346 enableval=$enable_largefile;
5349 if test "$enable_largefile" != no; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5352 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5353 if ${ac_cv_sys_largefile_CC+:} false; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 ac_cv_sys_largefile_CC=no
5357 if test "$GCC" != yes; then
5358 ac_save_CC=$CC
5359 while :; do
5360 # IRIX 6.2 and later do not support large files by default,
5361 # so use the C compiler's -n32 option if that helps.
5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5364 #include <sys/types.h>
5365 /* Check that off_t can represent 2**63 - 1 correctly.
5366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5367 since some C++ compilers masquerading as C compilers
5368 incorrectly reject 9223372036854775807. */
5369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5371 && LARGE_OFF_T % 2147483647 == 1)
5372 ? 1 : -1];
5374 main ()
5378 return 0;
5380 _ACEOF
5381 if ac_fn_c_try_compile "$LINENO"; then :
5382 break
5384 rm -f core conftest.err conftest.$ac_objext
5385 CC="$CC -n32"
5386 if ac_fn_c_try_compile "$LINENO"; then :
5387 ac_cv_sys_largefile_CC=' -n32'; break
5389 rm -f core conftest.err conftest.$ac_objext
5390 break
5391 done
5392 CC=$ac_save_CC
5393 rm -f conftest.$ac_ext
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5397 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5398 if test "$ac_cv_sys_largefile_CC" != no; then
5399 CC=$CC$ac_cv_sys_largefile_CC
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5403 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5404 if ${ac_cv_sys_file_offset_bits+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 while :; do
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 #include <sys/types.h>
5411 /* Check that off_t can represent 2**63 - 1 correctly.
5412 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5413 since some C++ compilers masquerading as C compilers
5414 incorrectly reject 9223372036854775807. */
5415 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5416 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5417 && LARGE_OFF_T % 2147483647 == 1)
5418 ? 1 : -1];
5420 main ()
5424 return 0;
5426 _ACEOF
5427 if ac_fn_c_try_compile "$LINENO"; then :
5428 ac_cv_sys_file_offset_bits=no; break
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5433 #define _FILE_OFFSET_BITS 64
5434 #include <sys/types.h>
5435 /* Check that off_t can represent 2**63 - 1 correctly.
5436 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5437 since some C++ compilers masquerading as C compilers
5438 incorrectly reject 9223372036854775807. */
5439 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5440 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5441 && LARGE_OFF_T % 2147483647 == 1)
5442 ? 1 : -1];
5444 main ()
5448 return 0;
5450 _ACEOF
5451 if ac_fn_c_try_compile "$LINENO"; then :
5452 ac_cv_sys_file_offset_bits=64; break
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 ac_cv_sys_file_offset_bits=unknown
5456 break
5457 done
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5460 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5461 case $ac_cv_sys_file_offset_bits in #(
5462 no | unknown) ;;
5464 cat >>confdefs.h <<_ACEOF
5465 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5466 _ACEOF
5468 esac
5469 rm -rf conftest*
5470 if test $ac_cv_sys_file_offset_bits = unknown; then
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5472 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5473 if ${ac_cv_sys_large_files+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 while :; do
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5479 #include <sys/types.h>
5480 /* Check that off_t can represent 2**63 - 1 correctly.
5481 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5482 since some C++ compilers masquerading as C compilers
5483 incorrectly reject 9223372036854775807. */
5484 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5485 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5486 && LARGE_OFF_T % 2147483647 == 1)
5487 ? 1 : -1];
5489 main ()
5493 return 0;
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"; then :
5497 ac_cv_sys_large_files=no; break
5499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502 #define _LARGE_FILES 1
5503 #include <sys/types.h>
5504 /* Check that off_t can represent 2**63 - 1 correctly.
5505 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5506 since some C++ compilers masquerading as C compilers
5507 incorrectly reject 9223372036854775807. */
5508 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5509 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5510 && LARGE_OFF_T % 2147483647 == 1)
5511 ? 1 : -1];
5513 main ()
5517 return 0;
5519 _ACEOF
5520 if ac_fn_c_try_compile "$LINENO"; then :
5521 ac_cv_sys_large_files=1; break
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524 ac_cv_sys_large_files=unknown
5525 break
5526 done
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5529 $as_echo "$ac_cv_sys_large_files" >&6; }
5530 case $ac_cv_sys_large_files in #(
5531 no | unknown) ;;
5533 cat >>confdefs.h <<_ACEOF
5534 #define _LARGE_FILES $ac_cv_sys_large_files
5535 _ACEOF
5537 esac
5538 rm -rf conftest*
5545 ac_ext=c
5546 ac_cpp='$CPP $CPPFLAGS'
5547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5551 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5552 # On Suns, sometimes $CPP names a directory.
5553 if test -n "$CPP" && test -d "$CPP"; then
5554 CPP=
5556 if test -z "$CPP"; then
5557 if ${ac_cv_prog_CPP+:} false; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 # Double quotes because CPP needs to be expanded
5561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5563 ac_preproc_ok=false
5564 for ac_c_preproc_warn_flag in '' yes
5566 # Use a header file that comes with gcc, so configuring glibc
5567 # with a fresh cross-compiler works.
5568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5569 # <limits.h> exists even on freestanding compilers.
5570 # On the NeXT, cc -E runs the code through the compiler's parser,
5571 # not just through cpp. "Syntax error" is here to catch this case.
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #ifdef __STDC__
5575 # include <limits.h>
5576 #else
5577 # include <assert.h>
5578 #endif
5579 Syntax error
5580 _ACEOF
5581 if ac_fn_c_try_cpp "$LINENO"; then :
5583 else
5584 # Broken: fails on valid input.
5585 continue
5587 rm -f conftest.err conftest.i conftest.$ac_ext
5589 # OK, works on sane cases. Now check whether nonexistent headers
5590 # can be detected and how.
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5593 #include <ac_nonexistent.h>
5594 _ACEOF
5595 if ac_fn_c_try_cpp "$LINENO"; then :
5596 # Broken: success on invalid input.
5597 continue
5598 else
5599 # Passes both tests.
5600 ac_preproc_ok=:
5601 break
5603 rm -f conftest.err conftest.i conftest.$ac_ext
5605 done
5606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5607 rm -f conftest.i conftest.err conftest.$ac_ext
5608 if $ac_preproc_ok; then :
5609 break
5612 done
5613 ac_cv_prog_CPP=$CPP
5616 CPP=$ac_cv_prog_CPP
5617 else
5618 ac_cv_prog_CPP=$CPP
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5621 $as_echo "$CPP" >&6; }
5622 ac_preproc_ok=false
5623 for ac_c_preproc_warn_flag in '' yes
5625 # Use a header file that comes with gcc, so configuring glibc
5626 # with a fresh cross-compiler works.
5627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5628 # <limits.h> exists even on freestanding compilers.
5629 # On the NeXT, cc -E runs the code through the compiler's parser,
5630 # not just through cpp. "Syntax error" is here to catch this case.
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5633 #ifdef __STDC__
5634 # include <limits.h>
5635 #else
5636 # include <assert.h>
5637 #endif
5638 Syntax error
5639 _ACEOF
5640 if ac_fn_c_try_cpp "$LINENO"; then :
5642 else
5643 # Broken: fails on valid input.
5644 continue
5646 rm -f conftest.err conftest.i conftest.$ac_ext
5648 # OK, works on sane cases. Now check whether nonexistent headers
5649 # can be detected and how.
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #include <ac_nonexistent.h>
5653 _ACEOF
5654 if ac_fn_c_try_cpp "$LINENO"; then :
5655 # Broken: success on invalid input.
5656 continue
5657 else
5658 # Passes both tests.
5659 ac_preproc_ok=:
5660 break
5662 rm -f conftest.err conftest.i conftest.$ac_ext
5664 done
5665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5666 rm -f conftest.i conftest.err conftest.$ac_ext
5667 if $ac_preproc_ok; then :
5669 else
5670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5672 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5673 See \`config.log' for more details" "$LINENO" 5; }
5676 ac_ext=c
5677 ac_cpp='$CPP $CPPFLAGS'
5678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5684 $as_echo_n "checking for ANSI C header files... " >&6; }
5685 if ${ac_cv_header_stdc+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690 #include <stdlib.h>
5691 #include <stdarg.h>
5692 #include <string.h>
5693 #include <float.h>
5696 main ()
5700 return 0;
5702 _ACEOF
5703 if ac_fn_c_try_compile "$LINENO"; then :
5704 ac_cv_header_stdc=yes
5705 else
5706 ac_cv_header_stdc=no
5708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 if test $ac_cv_header_stdc = yes; then
5711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 #include <string.h>
5716 _ACEOF
5717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5718 $EGREP "memchr" >/dev/null 2>&1; then :
5720 else
5721 ac_cv_header_stdc=no
5723 rm -f conftest*
5727 if test $ac_cv_header_stdc = yes; then
5728 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 #include <stdlib.h>
5733 _ACEOF
5734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5735 $EGREP "free" >/dev/null 2>&1; then :
5737 else
5738 ac_cv_header_stdc=no
5740 rm -f conftest*
5744 if test $ac_cv_header_stdc = yes; then
5745 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5746 if test "$cross_compiling" = yes; then :
5748 else
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #include <ctype.h>
5752 #include <stdlib.h>
5753 #if ((' ' & 0x0FF) == 0x020)
5754 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5755 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5756 #else
5757 # define ISLOWER(c) \
5758 (('a' <= (c) && (c) <= 'i') \
5759 || ('j' <= (c) && (c) <= 'r') \
5760 || ('s' <= (c) && (c) <= 'z'))
5761 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5762 #endif
5764 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5766 main ()
5768 int i;
5769 for (i = 0; i < 256; i++)
5770 if (XOR (islower (i), ISLOWER (i))
5771 || toupper (i) != TOUPPER (i))
5772 return 2;
5773 return 0;
5775 _ACEOF
5776 if ac_fn_c_try_run "$LINENO"; then :
5778 else
5779 ac_cv_header_stdc=no
5781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5782 conftest.$ac_objext conftest.beam conftest.$ac_ext
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5788 $as_echo "$ac_cv_header_stdc" >&6; }
5789 if test $ac_cv_header_stdc = yes; then
5791 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5795 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5796 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5797 inttypes.h stdint.h unistd.h
5798 do :
5799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5800 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5803 cat >>confdefs.h <<_ACEOF
5804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5805 _ACEOF
5809 done
5812 for ac_header in \
5813 AL/al.h \
5814 ApplicationServices/ApplicationServices.h \
5815 AudioToolbox/AudioConverter.h \
5816 AudioUnit/AudioUnit.h \
5817 AudioUnit/AudioComponent.h \
5818 CL/cl.h \
5819 Carbon/Carbon.h \
5820 CoreAudio/CoreAudio.h \
5821 CoreServices/CoreServices.h \
5822 DiskArbitration/DiskArbitration.h \
5823 IOKit/IOKitLib.h \
5824 IOKit/hid/IOHIDLib.h \
5825 OpenAL/al.h \
5826 OpenCL/opencl.h \
5827 QuickTime/ImageCompression.h \
5828 Security/Security.h \
5829 alias.h \
5830 alsa/asoundlib.h \
5831 arpa/inet.h \
5832 arpa/nameser.h \
5833 asm/types.h \
5834 capi20.h \
5835 curses.h \
5836 direct.h \
5837 dirent.h \
5838 dlfcn.h \
5839 elf.h \
5840 float.h \
5841 fnmatch.h \
5842 fontconfig/fontconfig.h \
5843 getopt.h \
5844 gettext-po.h \
5845 grp.h \
5846 gsm.h \
5847 gsm/gsm.h \
5848 ieeefp.h \
5849 inet/mib2.h \
5850 io.h \
5851 jpeglib.h \
5852 kstat.h \
5853 lber.h \
5854 lcms.h \
5855 lcms/lcms.h \
5856 ldap.h \
5857 link.h \
5858 linux/cdrom.h \
5859 linux/compiler.h \
5860 linux/filter.h \
5861 linux/hdreg.h \
5862 linux/input.h \
5863 linux/ioctl.h \
5864 linux/joystick.h \
5865 linux/major.h \
5866 linux/param.h \
5867 linux/serial.h \
5868 linux/types.h \
5869 linux/ucdrom.h \
5870 lwp.h \
5871 mach-o/nlist.h \
5872 mach-o/loader.h \
5873 mach/mach.h \
5874 mach/machine.h \
5875 machine/cpu.h \
5876 machine/limits.h \
5877 machine/sysarch.h \
5878 mntent.h \
5879 mpg123.h \
5880 ncurses.h \
5881 netdb.h \
5882 netinet/in.h \
5883 netinet/in_systm.h \
5884 netinet/tcp.h \
5885 netinet/tcp_fsm.h \
5886 png.h \
5887 poll.h \
5888 port.h \
5889 process.h \
5890 pthread.h \
5891 pwd.h \
5892 sched.h \
5893 scsi/scsi.h \
5894 scsi/scsi_ioctl.h \
5895 scsi/sg.h \
5896 stdbool.h \
5897 stdint.h \
5898 stropts.h \
5899 sys/asoundlib.h \
5900 sys/attr.h \
5901 sys/cdio.h \
5902 sys/elf32.h \
5903 sys/epoll.h \
5904 sys/event.h \
5905 sys/exec_elf.h \
5906 sys/filio.h \
5907 sys/inotify.h \
5908 sys/ioctl.h \
5909 sys/ipc.h \
5910 sys/limits.h \
5911 sys/link.h \
5912 sys/mman.h \
5913 sys/modem.h \
5914 sys/msg.h \
5915 sys/mtio.h \
5916 sys/param.h \
5917 sys/poll.h \
5918 sys/prctl.h \
5919 sys/protosw.h \
5920 sys/ptrace.h \
5921 sys/resource.h \
5922 sys/scsiio.h \
5923 sys/shm.h \
5924 sys/signal.h \
5925 sys/socket.h \
5926 sys/socketvar.h \
5927 sys/sockio.h \
5928 sys/statvfs.h \
5929 sys/strtio.h \
5930 sys/syscall.h \
5931 sys/tihdr.h \
5932 sys/time.h \
5933 sys/timeout.h \
5934 sys/times.h \
5935 sys/uio.h \
5936 sys/utsname.h \
5937 sys/vm86.h \
5938 sys/wait.h \
5939 syscall.h \
5940 termios.h \
5941 tiffio.h \
5942 unistd.h \
5943 utime.h \
5944 valgrind/memcheck.h \
5945 valgrind/valgrind.h \
5946 zlib.h
5948 do :
5949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5950 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5951 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5952 cat >>confdefs.h <<_ACEOF
5953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5954 _ACEOF
5958 done
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5961 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5962 if ${ac_cv_header_stat_broken+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 #include <sys/types.h>
5968 #include <sys/stat.h>
5970 #if defined S_ISBLK && defined S_IFDIR
5971 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5972 #endif
5974 #if defined S_ISBLK && defined S_IFCHR
5975 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5976 #endif
5978 #if defined S_ISLNK && defined S_IFREG
5979 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5980 #endif
5982 #if defined S_ISSOCK && defined S_IFREG
5983 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5984 #endif
5986 _ACEOF
5987 if ac_fn_c_try_compile "$LINENO"; then :
5988 ac_cv_header_stat_broken=no
5989 else
5990 ac_cv_header_stat_broken=yes
5992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5995 $as_echo "$ac_cv_header_stat_broken" >&6; }
5996 if test $ac_cv_header_stat_broken = yes; then
5998 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6004 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6005 do :
6006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6007 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6008 #ifdef HAVE_SYS_PARAM_H
6009 # include <sys/param.h>
6010 #endif
6012 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6013 cat >>confdefs.h <<_ACEOF
6014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6015 _ACEOF
6019 done
6022 for ac_header in \
6023 netinet/ip.h \
6024 net/if.h \
6025 net/if_arp.h \
6026 net/if_dl.h \
6027 net/if_types.h \
6028 net/route.h \
6029 netinet/if_ether.h \
6030 netinet/if_inarp.h \
6031 netinet/in_pcb.h \
6032 netinet/ip_icmp.h \
6033 netinet/ip_var.h \
6034 netinet/udp.h \
6035 netipx/ipx.h \
6036 sys/un.h \
6038 do :
6039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6040 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6041 #ifdef HAVE_SYS_SOCKET_H
6042 # include <sys/socket.h>
6043 #endif
6044 #ifdef HAVE_SYS_SOCKETVAR_H
6045 # include <sys/socketvar.h>
6046 #endif
6047 #ifdef HAVE_NET_ROUTE_H
6048 # include <net/route.h>
6049 #endif
6050 #ifdef HAVE_NETINET_IN_H
6051 # include <netinet/in.h>
6052 #endif
6053 #ifdef HAVE_NETINET_IN_SYSTM_H
6054 # include <netinet/in_systm.h>
6055 #endif
6056 #ifdef HAVE_NET_IF_H
6057 # include <net/if.h>
6058 #endif
6059 #ifdef HAVE_NETINET_IP_H
6060 # include <netinet/ip.h>
6061 #endif
6063 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6064 cat >>confdefs.h <<_ACEOF
6065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6066 _ACEOF
6070 done
6073 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6074 do :
6075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6076 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6077 #ifdef HAVE_ALIAS_H
6078 # include <alias.h>
6079 #endif
6080 #ifdef HAVE_SYS_SOCKET_H
6081 # include <sys/socket.h>
6082 #endif
6083 #ifdef HAVE_SYS_SOCKETVAR_H
6084 # include <sys/socketvar.h>
6085 #endif
6086 #ifdef HAVE_SYS_TIMEOUT_H
6087 # include <sys/timeout.h>
6088 #endif
6089 #ifdef HAVE_NETINET_IN_H
6090 # include <netinet/in.h>
6091 #endif
6092 #ifdef HAVE_NETINET_IN_SYSTM_H
6093 # include <netinet/in_systm.h>
6094 #endif
6095 #ifdef HAVE_NETINET_IP_H
6096 # include <netinet/ip.h>
6097 #endif
6098 #ifdef HAVE_NETINET_IP_VAR_H
6099 # include <netinet/ip_var.h>
6100 #endif
6101 #ifdef HAVE_NETINET_IP_ICMP_H
6102 # include <netinet/ip_icmp.h>
6103 #endif
6104 #ifdef HAVE_NETINET_UDP_H
6105 # include <netinet/udp.h>
6106 #endif
6107 #ifdef HAVE_NETINET_TCP_H
6108 # include <netinet/tcp.h>
6109 #endif
6110 #ifdef HAVE_NETINET_TCP_TIMER_H
6111 #include <netinet/tcp_timer.h>
6112 #endif
6114 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6115 cat >>confdefs.h <<_ACEOF
6116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6117 _ACEOF
6121 done
6124 for ac_header in linux/ipx.h linux/irda.h
6125 do :
6126 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6127 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6128 #ifdef HAVE_ASM_TYPES_H
6129 # include <asm/types.h>
6130 #endif
6131 #ifdef HAVE_SYS_SOCKET_H
6132 # include <sys/socket.h>
6133 #endif
6134 #ifdef HAVE_LINUX_TYPES_H
6135 # include <linux/types.h>
6136 #endif
6138 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6139 cat >>confdefs.h <<_ACEOF
6140 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6141 _ACEOF
6145 done
6148 for ac_header in mach-o/dyld_images.h
6149 do :
6150 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6151 # include <stdbool.h>
6152 #endif
6153 #ifdef HAVE_STDINT_H
6154 # include <stdint.h>
6155 #endif
6157 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6158 cat >>confdefs.h <<_ACEOF
6159 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6160 _ACEOF
6164 done
6167 for ac_header in resolv.h
6168 do :
6169 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6170 #ifdef HAVE_SYS_SOCKET_H
6171 # include <sys/socket.h>
6172 #endif
6173 #ifdef HAVE_NETINET_IN_H
6174 # include <netinet/in.h>
6175 #endif
6176 #ifdef HAVE_ARPA_NAMESER_H
6177 # include <arpa/nameser.h>
6178 #endif
6180 if test "x$ac_cv_header_resolv_h" = xyes; then :
6181 cat >>confdefs.h <<_ACEOF
6182 #define HAVE_RESOLV_H 1
6183 _ACEOF
6187 done
6190 for ac_header in ifaddrs.h
6191 do :
6192 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6194 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6195 cat >>confdefs.h <<_ACEOF
6196 #define HAVE_IFADDRS_H 1
6197 _ACEOF
6201 done
6204 for ac_header in ucontext.h
6205 do :
6206 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6208 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6209 cat >>confdefs.h <<_ACEOF
6210 #define HAVE_UCONTEXT_H 1
6211 _ACEOF
6215 done
6218 for ac_header in sys/thr.h
6219 do :
6220 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6221 #ifdef HAVE_UCONTEXT_H
6222 #include <ucontext.h>
6223 #endif
6225 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6226 cat >>confdefs.h <<_ACEOF
6227 #define HAVE_SYS_THR_H 1
6228 _ACEOF
6232 done
6235 for ac_header in pthread_np.h
6236 do :
6237 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6238 #include <pthread.h>
6239 #endif
6241 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6242 cat >>confdefs.h <<_ACEOF
6243 #define HAVE_PTHREAD_NP_H 1
6244 _ACEOF
6248 done
6251 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6252 do :
6253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6254 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6255 #include <sys/time.h>
6256 #endif
6257 #include <sys/types.h>
6258 #ifdef HAVE_ASM_TYPES_H
6259 #include <asm/types.h>
6260 #endif
6262 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6263 cat >>confdefs.h <<_ACEOF
6264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6265 _ACEOF
6269 done
6272 for ac_header in linux/capi.h
6273 do :
6274 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6276 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6277 cat >>confdefs.h <<_ACEOF
6278 #define HAVE_LINUX_CAPI_H 1
6279 _ACEOF
6283 done
6287 DLLEXT=""
6289 DLLFLAGS="-D_REENTRANT"
6291 LDDLLFLAGS=""
6293 IMPLIBEXT="def"
6295 LDRPATH_INSTALL=""
6297 LDRPATH_LOCAL=""
6299 LIBEXT="so"
6300 STATIC_IMPLIBEXT="def.a"
6301 # Extract the first word of "ldd", so it can be a program name with args.
6302 set dummy ldd; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_path_LDD+:} false; then :
6306 $as_echo_n "(cached) " >&6
6307 else
6308 case $LDD in
6309 [\\/]* | ?:[\\/]*)
6310 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 as_dummy="/sbin:/usr/sbin:$PATH"
6315 for as_dir in $as_dummy
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6325 done
6326 done
6327 IFS=$as_save_IFS
6329 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6331 esac
6333 LDD=$ac_cv_path_LDD
6334 if test -n "$LDD"; then
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6336 $as_echo "$LDD" >&6; }
6337 else
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}readelf; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_READELF+:} false; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 if test -n "$READELF"; then
6352 ac_cv_prog_READELF="$READELF" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6365 done
6366 done
6367 IFS=$as_save_IFS
6371 READELF=$ac_cv_prog_READELF
6372 if test -n "$READELF"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
6374 $as_echo "$READELF" >&6; }
6375 else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6382 if test -z "$ac_cv_prog_READELF"; then
6383 ac_ct_READELF=$READELF
6384 # Extract the first word of "readelf", so it can be a program name with args.
6385 set dummy readelf; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 if test -n "$ac_ct_READELF"; then
6392 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6401 ac_cv_prog_ac_ct_READELF="readelf"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6405 done
6406 done
6407 IFS=$as_save_IFS
6411 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
6412 if test -n "$ac_ct_READELF"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
6414 $as_echo "$ac_ct_READELF" >&6; }
6415 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6420 if test "x$ac_ct_READELF" = x; then
6421 READELF="true"
6422 else
6423 case $cross_compiling:$ac_tool_warned in
6424 yes:)
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned=yes ;;
6428 esac
6429 READELF=$ac_ct_READELF
6431 else
6432 READELF="$ac_cv_prog_READELF"
6436 case $host_os in
6437 cygwin*|mingw32*)
6438 if test -n "$ac_tool_prefix"; then
6439 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6440 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_DLLTOOL+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$DLLTOOL"; then
6447 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6460 done
6461 done
6462 IFS=$as_save_IFS
6466 DLLTOOL=$ac_cv_prog_DLLTOOL
6467 if test -n "$DLLTOOL"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6469 $as_echo "$DLLTOOL" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6477 if test -z "$ac_cv_prog_DLLTOOL"; then
6478 ac_ct_DLLTOOL=$DLLTOOL
6479 # Extract the first word of "dlltool", so it can be a program name with args.
6480 set dummy dlltool; ac_word=$2
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 if test -n "$ac_ct_DLLTOOL"; then
6487 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6492 IFS=$as_save_IFS
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498 break 2
6500 done
6501 done
6502 IFS=$as_save_IFS
6506 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6507 if test -n "$ac_ct_DLLTOOL"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6509 $as_echo "$ac_ct_DLLTOOL" >&6; }
6510 else
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6515 if test "x$ac_ct_DLLTOOL" = x; then
6516 DLLTOOL="false"
6517 else
6518 case $cross_compiling:$ac_tool_warned in
6519 yes:)
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6523 esac
6524 DLLTOOL=$ac_ct_DLLTOOL
6526 else
6527 DLLTOOL="$ac_cv_prog_DLLTOOL"
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if ${ac_cv_prog_DLLWRAP+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 if test -n "$DLLWRAP"; then
6539 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6552 done
6553 done
6554 IFS=$as_save_IFS
6558 DLLWRAP=$ac_cv_prog_DLLWRAP
6559 if test -n "$DLLWRAP"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6561 $as_echo "$DLLWRAP" >&6; }
6562 else
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6569 if test -z "$ac_cv_prog_DLLWRAP"; then
6570 ac_ct_DLLWRAP=$DLLWRAP
6571 # Extract the first word of "dllwrap", so it can be a program name with args.
6572 set dummy dllwrap; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 if test -n "$ac_ct_DLLWRAP"; then
6579 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6592 done
6593 done
6594 IFS=$as_save_IFS
6598 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6599 if test -n "$ac_ct_DLLWRAP"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6601 $as_echo "$ac_ct_DLLWRAP" >&6; }
6602 else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6607 if test "x$ac_ct_DLLWRAP" = x; then
6608 DLLWRAP="false"
6609 else
6610 case $cross_compiling:$ac_tool_warned in
6611 yes:)
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6615 esac
6616 DLLWRAP=$ac_ct_DLLWRAP
6618 else
6619 DLLWRAP="$ac_cv_prog_DLLWRAP"
6622 if test "$DLLWRAP" = "false"; then
6623 as_fn_error $? "dllwrap is needed to build a dll for Windows" "$LINENO" 5
6625 LIBEXT="dll"
6626 IMPLIBEXT="a"
6627 STATIC_IMPLIBEXT="a"
6628 enable_iphlpapi=${enable_iphlpapi:-no}
6629 enable_kernel32=${enable_kernel32:-no}
6630 enable_msvcrt=${enable_msvcrt:-no}
6631 enable_ntdll=${enable_ntdll:-no}
6632 enable_ws2_32=${enable_ws2_32:-no}
6633 enable_loader=${enable_loader:-no}
6634 enable_server=${enable_server:-no}
6635 with_x=${with_x:-no}
6636 with_pthread=${with_pthread:-no}
6638 crtlibs=""
6639 case $host_os in
6640 mingw32*)
6641 crtlibs="-lmsvcrt"
6642 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
6644 esac
6646 LIBWINE_RULES="
6647 all: libwine.dll libwine.a
6649 libwine.a: wine.def
6650 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
6652 libwine.dll: \$(OBJS) wine.def Makefile.in
6653 \$(DLLWRAP) --def \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
6655 install install-lib:: libwine.dll \$(DESTDIR)\$(libdir) dummy
6656 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
6658 install install-dev:: libwine.a \$(DESTDIR)\$(libdir) dummy
6659 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
6661 uninstall::
6662 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
6664 clean::
6665 \$(RM) libwine.dll version.c
6670 darwin*|macosx*)
6671 DLLEXT=".so"
6672 LIBEXT="dylib"
6673 DLLFLAGS="$DLLFLAGS -fPIC"
6674 LDDLLFLAGS="-bundle -multiply_defined suppress"
6675 LIBWINE_LDFLAGS="-multiply_defined suppress"
6676 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6677 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
6678 COREFOUNDATIONLIB="-framework CoreFoundation"
6680 IOKITLIB="-framework IOKit -framework CoreFoundation"
6682 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6684 CORESERVICESLIB="-framework CoreServices"
6686 case $host_os in
6687 darwin11*)
6688 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"
6691 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
6693 esac
6694 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6695 then
6696 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6699 if test "$ac_cv_header_Security_Security_h" = "yes"
6700 then
6701 SECURITYLIB="-framework Security -framework CoreFoundation"
6703 ac_save_LIBS="$LIBS"
6704 LIBS="$LIBS $SECURITYLIB"
6705 for ac_func in SSLCopyPeerCertificates
6706 do :
6707 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6708 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6709 cat >>confdefs.h <<_ACEOF
6710 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6711 _ACEOF
6714 done
6716 LIBS="$ac_save_LIBS"
6717 with_gnutls=${with_gnutls:-no}
6719 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6720 then
6721 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6722 then
6723 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6725 else
6726 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6729 ac_save_LIBS="$LIBS"
6730 LIBS="$LIBS $COREAUDIO"
6731 for ac_func in AUGraphAddNode
6732 do :
6733 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6734 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6735 cat >>confdefs.h <<_ACEOF
6736 #define HAVE_AUGRAPHADDNODE 1
6737 _ACEOF
6740 done
6742 LIBS="$ac_save_LIBS"
6744 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6745 then
6746 FRAMEWORK_OPENAL="-framework OpenAL"
6749 cat >>confdefs.h <<_ACEOF
6750 #define HAVE_OPENAL 1
6751 _ACEOF
6753 ac_cv_lib_openal=yes
6755 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6756 then
6757 LIBOPENCL="-framework OpenCL"
6759 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6761 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6762 then
6763 ac_save_LIBS="$LIBS"
6764 LIBS="$LIBS $IOKITLIB"
6765 for ac_func in IOHIDManagerCreate
6766 do :
6767 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6768 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6769 cat >>confdefs.h <<_ACEOF
6770 #define HAVE_IOHIDMANAGERCREATE 1
6771 _ACEOF
6774 done
6776 LIBS="$ac_save_LIBS"
6778 case $host_cpu in
6779 *powerpc*)
6780 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6781 esac
6782 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6783 then
6784 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6786 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6787 else
6788 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6790 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6791 then
6792 CARBONLIB="-framework Carbon"
6796 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
6797 then
6798 ac_save_LIBS="$LIBS"
6799 LIBS="$LIBS $APPLICATIONSERVICESLIB"
6800 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
6801 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
6802 enable_winemac_drv=${enable_winemac_drv:-yes}
6805 LIBS="$ac_save_LIBS"
6808 if test "x$enable_win16" = "xyes"
6809 then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6811 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6812 if test "$cross_compiling" = yes; then :
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6814 $as_echo "cross-compiling, assuming yes" >&6; }
6815 else
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6818 asm(".text\n"
6819 "bad:\tnop;nop\n"
6820 "good:\tnop;nop\n\t"
6821 ".globl _testfunc\n"
6822 "_testfunc:\tcallw good");
6823 extern void testfunc();
6825 main ()
6827 unsigned short *p = (unsigned short *)testfunc;
6828 return p[0] != 0xe866 || p[1] != 0xfffa
6830 return 0;
6832 _ACEOF
6833 if ac_fn_c_try_run "$LINENO"; then :
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6835 $as_echo "yes" >&6; }
6836 else
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6839 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
6841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6842 conftest.$ac_objext conftest.beam conftest.$ac_ext
6847 LIBWINE_RULES="
6848 all: libwine.dylib
6850 libwine.\$(VERSION).dylib: \$(OBJS) \$(RELPATH) Makefile.in
6851 \$(CC) -dynamiclib -install_name @rpath/libwine.\$(SOVERSION).dylib -Wl,-rpath,@loader_path/ -compatibility_version \$(SOVERSION) -current_version \$(VERSION) \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
6853 libwine.\$(SOVERSION).dylib: libwine.\$(VERSION).dylib
6854 \$(RM) \$@ && \$(LN_S) libwine.\$(VERSION).dylib \$@
6856 libwine.dylib: libwine.\$(SOVERSION).dylib
6857 \$(RM) \$@ && \$(LN_S) libwine.\$(SOVERSION).dylib \$@
6859 install install-lib:: libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir) dummy
6860 \$(INSTALL_PROGRAM) libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir)/libwine.\$(VERSION).dylib
6861 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.\$(SOVERSION).dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6863 install install-dev:: \$(DESTDIR)\$(libdir) dummy
6864 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.dylib
6866 uninstall::
6867 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
6869 clean::
6870 \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib version.c
6875 linux-android*)
6876 DLLFLAGS="$DLLFLAGS -fPIC"
6877 DLLEXT=".so"
6878 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6880 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6881 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 ac_wine_try_cflags_saved=$CFLAGS
6885 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 int main(int argc, char **argv) { return 0; }
6889 _ACEOF
6890 if ac_fn_c_try_link "$LINENO"; then :
6891 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6892 else
6893 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6895 rm -f core conftest.err conftest.$ac_objext \
6896 conftest$ac_exeext conftest.$ac_ext
6897 CFLAGS=$ac_wine_try_cflags_saved
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6900 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6901 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6902 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6904 { $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
6905 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6906 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 ac_wine_try_cflags_saved=$CFLAGS
6910 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913 int main(int argc, char **argv) { return 0; }
6914 _ACEOF
6915 if ac_fn_c_try_link "$LINENO"; then :
6916 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6917 else
6918 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6920 rm -f core conftest.err conftest.$ac_objext \
6921 conftest$ac_exeext conftest.$ac_ext
6922 CFLAGS=$ac_wine_try_cflags_saved
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6925 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6926 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6927 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6930 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6931 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 ac_wine_try_cflags_saved=$CFLAGS
6935 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6938 int main(int argc, char **argv) { return 0; }
6939 _ACEOF
6940 if ac_fn_c_try_link "$LINENO"; then :
6941 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6942 else
6943 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6945 rm -f core conftest.err conftest.$ac_objext \
6946 conftest$ac_exeext conftest.$ac_ext
6947 CFLAGS=$ac_wine_try_cflags_saved
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6950 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6951 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6952 LDEXECFLAGS="-Wl,--export-dynamic"
6955 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6957 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6958 if eval \${$as_ac_var+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 ac_wine_try_cflags_saved=$CFLAGS
6962 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965 int main(int argc, char **argv) { return 0; }
6966 _ACEOF
6967 if ac_fn_c_try_link "$LINENO"; then :
6968 eval "$as_ac_var=yes"
6969 else
6970 eval "$as_ac_var=no"
6972 rm -f core conftest.err conftest.$ac_objext \
6973 conftest$ac_exeext conftest.$ac_ext
6974 CFLAGS=$ac_wine_try_cflags_saved
6976 eval ac_res=\$$as_ac_var
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6978 $as_echo "$ac_res" >&6; }
6979 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6980 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6981 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6982 else
6983 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6985 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6986 if eval \${$as_ac_var+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 ac_wine_try_cflags_saved=$CFLAGS
6990 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6993 int main(int argc, char **argv) { return 0; }
6994 _ACEOF
6995 if ac_fn_c_try_link "$LINENO"; then :
6996 eval "$as_ac_var=yes"
6997 else
6998 eval "$as_ac_var=no"
7000 rm -f core conftest.err conftest.$ac_objext \
7001 conftest$ac_exeext conftest.$ac_ext
7002 CFLAGS=$ac_wine_try_cflags_saved
7004 eval ac_res=\$$as_ac_var
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7006 $as_echo "$ac_res" >&6; }
7007 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7008 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7009 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7014 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7015 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7016 $as_echo_n "(cached) " >&6
7017 else
7018 ac_wine_try_cflags_saved=$CFLAGS
7019 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7022 int main(int argc, char **argv) { return 0; }
7023 _ACEOF
7024 if ac_fn_c_try_link "$LINENO"; then :
7025 ac_cv_cflags__Wl___enable_new_dtags=yes
7026 else
7027 ac_cv_cflags__Wl___enable_new_dtags=no
7029 rm -f core conftest.err conftest.$ac_objext \
7030 conftest$ac_exeext conftest.$ac_ext
7031 CFLAGS=$ac_wine_try_cflags_saved
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7034 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7035 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7036 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7039 case $host_cpu in
7040 *i[3456789]86* | x86_64)
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7042 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7043 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 ac_wine_try_cflags_saved=$CFLAGS
7047 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7050 int main(int argc, char **argv) { return 0; }
7051 _ACEOF
7052 if ac_fn_c_try_link "$LINENO"; then :
7053 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7054 else
7055 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7057 rm -f core conftest.err conftest.$ac_objext \
7058 conftest$ac_exeext conftest.$ac_ext
7059 CFLAGS=$ac_wine_try_cflags_saved
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7062 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7063 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7064 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
7067 esac
7069 LIBWINE_RULES="
7070 all: libwine.so
7072 libwine.so: \$(OBJS) Makefile.in
7073 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7075 install install-lib:: libwine.so \$(DESTDIR)\$(libdir) dummy
7076 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
7078 uninstall::
7079 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
7081 clean::
7082 \$(RM) libwine.so version.c
7088 DLLFLAGS="$DLLFLAGS -fPIC"
7089 DLLEXT=".so"
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
7091 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
7092 if ${ac_cv_c_dll_gnuelf+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 ac_wine_try_cflags_saved=$CFLAGS
7096 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 void myfunc() {}
7100 _ACEOF
7101 if ac_fn_c_try_link "$LINENO"; then :
7102 ac_cv_c_dll_gnuelf="yes"
7103 else
7104 ac_cv_c_dll_gnuelf="no"
7106 rm -f core conftest.err conftest.$ac_objext \
7107 conftest$ac_exeext conftest.$ac_ext
7108 CFLAGS=$ac_wine_try_cflags_saved
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
7111 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
7112 if test "$ac_cv_c_dll_gnuelf" = "yes"
7113 then
7114 LDSHARED="\$(CC) -shared"
7115 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
7117 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
7118 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
7119 $as_echo_n "(cached) " >&6
7120 else
7121 ac_wine_try_cflags_saved=$CFLAGS
7122 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 int main(int argc, char **argv) { return 0; }
7126 _ACEOF
7127 if ac_fn_c_try_link "$LINENO"; then :
7128 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
7129 else
7130 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
7132 rm -f core conftest.err conftest.$ac_objext \
7133 conftest$ac_exeext conftest.$ac_ext
7134 CFLAGS=$ac_wine_try_cflags_saved
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
7137 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
7138 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
7139 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.\$(SOVERSION)"
7140 else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
7142 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
7143 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
7144 $as_echo_n "(cached) " >&6
7145 else
7146 ac_wine_try_cflags_saved=$CFLAGS
7147 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 int main(int argc, char **argv) { return 0; }
7151 _ACEOF
7152 if ac_fn_c_try_link "$LINENO"; then :
7153 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
7154 else
7155 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
7157 rm -f core conftest.err conftest.$ac_objext \
7158 conftest$ac_exeext conftest.$ac_ext
7159 CFLAGS=$ac_wine_try_cflags_saved
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
7162 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
7163 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
7164 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.\$(SOVERSION)"
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
7169 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
7170 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172 else
7173 ac_wine_try_cflags_saved=$CFLAGS
7174 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 int main(int argc, char **argv) { return 0; }
7178 _ACEOF
7179 if ac_fn_c_try_link "$LINENO"; then :
7180 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
7181 else
7182 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
7184 rm -f core conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
7186 CFLAGS=$ac_wine_try_cflags_saved
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
7189 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
7190 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
7191 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
7194 { $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
7195 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
7196 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 ac_wine_try_cflags_saved=$CFLAGS
7200 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h. */
7203 int main(int argc, char **argv) { return 0; }
7204 _ACEOF
7205 if ac_fn_c_try_link "$LINENO"; then :
7206 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
7207 else
7208 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
7210 rm -f core conftest.err conftest.$ac_objext \
7211 conftest$ac_exeext conftest.$ac_ext
7212 CFLAGS=$ac_wine_try_cflags_saved
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
7215 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
7216 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
7217 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
7220 echo '{ global: *; };' >conftest.map
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
7222 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
7223 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 ac_wine_try_cflags_saved=$CFLAGS
7227 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 int main(int argc, char **argv) { return 0; }
7231 _ACEOF
7232 if ac_fn_c_try_link "$LINENO"; then :
7233 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
7234 else
7235 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
7237 rm -f core conftest.err conftest.$ac_objext \
7238 conftest$ac_exeext conftest.$ac_ext
7239 CFLAGS=$ac_wine_try_cflags_saved
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
7242 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
7243 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
7244 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
7246 rm -f conftest.map
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7249 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7250 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 ac_wine_try_cflags_saved=$CFLAGS
7254 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257 int main(int argc, char **argv) { return 0; }
7258 _ACEOF
7259 if ac_fn_c_try_link "$LINENO"; then :
7260 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7261 else
7262 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7264 rm -f core conftest.err conftest.$ac_objext \
7265 conftest$ac_exeext conftest.$ac_ext
7266 CFLAGS=$ac_wine_try_cflags_saved
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7269 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7270 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7271 LDEXECFLAGS="-Wl,--export-dynamic"
7275 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7277 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7278 if eval \${$as_ac_var+:} false; then :
7279 $as_echo_n "(cached) " >&6
7280 else
7281 ac_wine_try_cflags_saved=$CFLAGS
7282 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7285 int main(int argc, char **argv) { return 0; }
7286 _ACEOF
7287 if ac_fn_c_try_link "$LINENO"; then :
7288 eval "$as_ac_var=yes"
7289 else
7290 eval "$as_ac_var=no"
7292 rm -f core conftest.err conftest.$ac_objext \
7293 conftest$ac_exeext conftest.$ac_ext
7294 CFLAGS=$ac_wine_try_cflags_saved
7296 eval ac_res=\$$as_ac_var
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7298 $as_echo "$ac_res" >&6; }
7299 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7300 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7301 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7302 else
7303 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7305 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7306 if eval \${$as_ac_var+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 ac_wine_try_cflags_saved=$CFLAGS
7310 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313 int main(int argc, char **argv) { return 0; }
7314 _ACEOF
7315 if ac_fn_c_try_link "$LINENO"; then :
7316 eval "$as_ac_var=yes"
7317 else
7318 eval "$as_ac_var=no"
7320 rm -f core conftest.err conftest.$ac_objext \
7321 conftest$ac_exeext conftest.$ac_ext
7322 CFLAGS=$ac_wine_try_cflags_saved
7324 eval ac_res=\$$as_ac_var
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7326 $as_echo "$ac_res" >&6; }
7327 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7328 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
7329 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7334 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7335 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337 else
7338 ac_wine_try_cflags_saved=$CFLAGS
7339 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 /* end confdefs.h. */
7342 int main(int argc, char **argv) { return 0; }
7343 _ACEOF
7344 if ac_fn_c_try_link "$LINENO"; then :
7345 ac_cv_cflags__Wl___enable_new_dtags=yes
7346 else
7347 ac_cv_cflags__Wl___enable_new_dtags=no
7349 rm -f core conftest.err conftest.$ac_objext \
7350 conftest$ac_exeext conftest.$ac_ext
7351 CFLAGS=$ac_wine_try_cflags_saved
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7354 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7355 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7356 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7359 case $host_cpu in
7360 *i[3456789]86* | x86_64)
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7362 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7363 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7366 ac_wine_try_cflags_saved=$CFLAGS
7367 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369 /* end confdefs.h. */
7370 int main(int argc, char **argv) { return 0; }
7371 _ACEOF
7372 if ac_fn_c_try_link "$LINENO"; then :
7373 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7374 else
7375 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7377 rm -f core conftest.err conftest.$ac_objext \
7378 conftest$ac_exeext conftest.$ac_ext
7379 CFLAGS=$ac_wine_try_cflags_saved
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7382 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7383 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7384 case $host_os in
7385 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7386 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7387 esac
7390 # Extract the first word of "prelink", so it can be a program name with args.
7391 set dummy prelink; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_path_PRELINK+:} false; then :
7395 $as_echo_n "(cached) " >&6
7396 else
7397 case $PRELINK in
7398 [\\/]* | ?:[\\/]*)
7399 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in /sbin /usr/sbin $PATH
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7413 done
7414 done
7415 IFS=$as_save_IFS
7417 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7419 esac
7421 PRELINK=$ac_cv_path_PRELINK
7422 if test -n "$PRELINK"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7424 $as_echo "$PRELINK" >&6; }
7425 else
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7431 if test "x$PRELINK" = xfalse
7432 then
7433 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7436 esac
7438 else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7440 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7441 if ${ac_cv_c_dll_unixware+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 ac_wine_try_cflags_saved=$CFLAGS
7445 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7448 void myfunc() {}
7449 _ACEOF
7450 if ac_fn_c_try_link "$LINENO"; then :
7451 ac_cv_c_dll_unixware="yes"
7452 else
7453 ac_cv_c_dll_unixware="no"
7455 rm -f core conftest.err conftest.$ac_objext \
7456 conftest$ac_exeext conftest.$ac_ext
7457 CFLAGS=$ac_wine_try_cflags_saved
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7460 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7461 if test "$ac_cv_c_dll_unixware" = "yes"
7462 then
7463 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.\$(SOVERSION)"
7464 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7467 LIBWINE_RULES="
7468 all: libwine.so
7470 libwine.so.\$(VERSION): \$(OBJS) wine.map Makefile.in
7471 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7473 libwine.so.\$(SOVERSION): libwine.so.\$(VERSION)
7474 \$(RM) \$@ && \$(LN_S) libwine.so.\$(VERSION) \$@
7476 libwine.so: libwine.so.\$(SOVERSION)
7477 \$(RM) \$@ && \$(LN_S) libwine.so.\$(SOVERSION) \$@
7479 install install-lib:: libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir) dummy
7480 \$(INSTALL_PROGRAM) libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir)/libwine.so.\$(VERSION)
7481 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.\$(SOVERSION) && \$(LN_S) libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7483 install install-dev:: \$(DESTDIR)\$(libdir) dummy
7484 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.\$(VERSION) libwine.so
7486 uninstall::
7487 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
7489 clean::
7490 \$(RM) libwine.so.\$(SOVERSION) libwine.so.\$(VERSION) version.c
7494 esac
7496 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7497 enable_winemac_drv=${enable_winemac_drv:-no}
7499 CROSSTEST_DISABLE=\#
7501 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7502 then
7503 case "$host_cpu" in
7504 i[3456789]86*)
7505 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
7506 mingw32-gcc" ;;
7507 x86_64)
7508 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 " ;;
7510 ac_prefix_list="" ;;
7511 esac
7512 for ac_prog in $ac_prefix_list
7514 # Extract the first word of "$ac_prog", so it can be a program name with args.
7515 set dummy $ac_prog; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_CROSSCC+:} false; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 if test -n "$CROSSCC"; then
7522 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 ac_cv_prog_CROSSCC="$ac_prog"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 break 2
7535 done
7536 done
7537 IFS=$as_save_IFS
7541 CROSSCC=$ac_cv_prog_CROSSCC
7542 if test -n "$CROSSCC"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7544 $as_echo "$CROSSCC" >&6; }
7545 else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7551 test -n "$CROSSCC" && break
7552 done
7553 test -n "$CROSSCC" || CROSSCC="false"
7555 if test "$CROSSCC" != "false"
7556 then
7557 ac_save_CC="$CC"
7558 CC="$CROSSCC"
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7560 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7565 main ()
7569 return 0;
7571 _ACEOF
7572 if ac_fn_c_try_compile "$LINENO"; then :
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7574 $as_echo "yes" >&6; }
7575 set x $CROSSCC
7576 shift
7577 target=""
7578 while test $# -ge 1
7580 case "$1" in
7581 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7582 esac
7583 shift
7584 done
7585 if test -n "$target"
7586 then
7587 CROSSTEST_DISABLE=""
7588 CROSSTARGET="$target"
7591 else
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }
7595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596 CC="$ac_save_CC"
7601 if test "$ac_cv_header_pthread_h" = "yes"
7602 then
7603 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
7604 if test "x$ac_cv_func_pthread_create" = xyes; then :
7606 else
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7608 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7609 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 ac_check_lib_save_LIBS=$LIBS
7613 LIBS="-lpthread $LIBS"
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7617 /* Override any GCC internal prototype to avoid an error.
7618 Use char because int might match the return type of a GCC
7619 builtin and then its argument prototype would still apply. */
7620 #ifdef __cplusplus
7621 extern "C"
7622 #endif
7623 char pthread_create ();
7625 main ()
7627 return pthread_create ();
7629 return 0;
7631 _ACEOF
7632 if ac_fn_c_try_link "$LINENO"; then :
7633 ac_cv_lib_pthread_pthread_create=yes
7634 else
7635 ac_cv_lib_pthread_pthread_create=no
7637 rm -f core conftest.err conftest.$ac_objext \
7638 conftest$ac_exeext conftest.$ac_ext
7639 LIBS=$ac_check_lib_save_LIBS
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7642 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7643 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7644 LIBPTHREAD="-lpthread"
7651 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
7652 case "x$with_pthread" in
7653 xno) ;;
7654 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7655 Wine cannot support threads without libpthread.
7656 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7657 esac
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7662 $as_echo_n "checking for X... " >&6; }
7665 # Check whether --with-x was given.
7666 if test "${with_x+set}" = set; then :
7667 withval=$with_x;
7670 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7671 if test "x$with_x" = xno; then
7672 # The user explicitly disabled X.
7673 have_x=disabled
7674 else
7675 case $x_includes,$x_libraries in #(
7676 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7677 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680 # One or both of the vars are not set, and there is no cached value.
7681 ac_x_includes=no ac_x_libraries=no
7682 rm -f -r conftest.dir
7683 if mkdir conftest.dir; then
7684 cd conftest.dir
7685 cat >Imakefile <<'_ACEOF'
7686 incroot:
7687 @echo incroot='${INCROOT}'
7688 usrlibdir:
7689 @echo usrlibdir='${USRLIBDIR}'
7690 libdir:
7691 @echo libdir='${LIBDIR}'
7692 _ACEOF
7693 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7694 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7695 for ac_var in incroot usrlibdir libdir; do
7696 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7697 done
7698 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7699 for ac_extension in a so sl dylib la dll; do
7700 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7701 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7702 ac_im_usrlibdir=$ac_im_libdir; break
7704 done
7705 # Screen out bogus values from the imake configuration. They are
7706 # bogus both because they are the default anyway, and because
7707 # using them would break gcc on systems where it needs fixed includes.
7708 case $ac_im_incroot in
7709 /usr/include) ac_x_includes= ;;
7710 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7711 esac
7712 case $ac_im_usrlibdir in
7713 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7714 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7715 esac
7717 cd ..
7718 rm -f -r conftest.dir
7721 # Standard set of common directories for X headers.
7722 # Check X11 before X11Rn because it is often a symlink to the current release.
7723 ac_x_header_dirs='
7724 /usr/X11/include
7725 /usr/X11R7/include
7726 /usr/X11R6/include
7727 /usr/X11R5/include
7728 /usr/X11R4/include
7730 /usr/include/X11
7731 /usr/include/X11R7
7732 /usr/include/X11R6
7733 /usr/include/X11R5
7734 /usr/include/X11R4
7736 /usr/local/X11/include
7737 /usr/local/X11R7/include
7738 /usr/local/X11R6/include
7739 /usr/local/X11R5/include
7740 /usr/local/X11R4/include
7742 /usr/local/include/X11
7743 /usr/local/include/X11R7
7744 /usr/local/include/X11R6
7745 /usr/local/include/X11R5
7746 /usr/local/include/X11R4
7748 /usr/X386/include
7749 /usr/x386/include
7750 /usr/XFree86/include/X11
7752 /usr/include
7753 /usr/local/include
7754 /usr/unsupported/include
7755 /usr/athena/include
7756 /usr/local/x11r5/include
7757 /usr/lpp/Xamples/include
7759 /usr/openwin/include
7760 /usr/openwin/share/include'
7762 if test "$ac_x_includes" = no; then
7763 # Guess where to find include files, by looking for Xlib.h.
7764 # First, try using that file with no special directory specified.
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767 #include <X11/Xlib.h>
7768 _ACEOF
7769 if ac_fn_c_try_cpp "$LINENO"; then :
7770 # We can compile using X headers with no special include directory.
7771 ac_x_includes=
7772 else
7773 for ac_dir in $ac_x_header_dirs; do
7774 if test -r "$ac_dir/X11/Xlib.h"; then
7775 ac_x_includes=$ac_dir
7776 break
7778 done
7780 rm -f conftest.err conftest.i conftest.$ac_ext
7781 fi # $ac_x_includes = no
7783 if test "$ac_x_libraries" = no; then
7784 # Check for the libraries.
7785 # See if we find them without any special options.
7786 # Don't add to $LIBS permanently.
7787 ac_save_LIBS=$LIBS
7788 LIBS="-lX11 $LIBS"
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 #include <X11/Xlib.h>
7793 main ()
7795 XrmInitialize ()
7797 return 0;
7799 _ACEOF
7800 if ac_fn_c_try_link "$LINENO"; then :
7801 LIBS=$ac_save_LIBS
7802 # We can link X programs with no special library path.
7803 ac_x_libraries=
7804 else
7805 LIBS=$ac_save_LIBS
7806 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7808 # Don't even attempt the hair of trying to link an X program!
7809 for ac_extension in a so sl dylib la dll; do
7810 if test -r "$ac_dir/libX11.$ac_extension"; then
7811 ac_x_libraries=$ac_dir
7812 break 2
7814 done
7815 done
7817 rm -f core conftest.err conftest.$ac_objext \
7818 conftest$ac_exeext conftest.$ac_ext
7819 fi # $ac_x_libraries = no
7821 case $ac_x_includes,$ac_x_libraries in #(
7822 no,* | *,no | *\'*)
7823 # Didn't find X, or a directory has "'" in its name.
7824 ac_cv_have_x="have_x=no";; #(
7826 # Record where we found X for the cache.
7827 ac_cv_have_x="have_x=yes\
7828 ac_x_includes='$ac_x_includes'\
7829 ac_x_libraries='$ac_x_libraries'"
7830 esac
7832 ;; #(
7833 *) have_x=yes;;
7834 esac
7835 eval "$ac_cv_have_x"
7836 fi # $with_x != no
7838 if test "$have_x" != yes; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7840 $as_echo "$have_x" >&6; }
7841 no_x=yes
7842 else
7843 # If each of the values was on the command line, it overrides each guess.
7844 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7845 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7846 # Update the cache value to reflect the command line values.
7847 ac_cv_have_x="have_x=yes\
7848 ac_x_includes='$x_includes'\
7849 ac_x_libraries='$x_libraries'"
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7851 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7854 if test "$no_x" = yes; then
7855 # Not all programs may use this symbol, but it does not hurt to define it.
7857 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7859 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7860 else
7861 if test -n "$x_includes"; then
7862 X_CFLAGS="$X_CFLAGS -I$x_includes"
7865 # It would also be nice to do this for all -L options, not just this one.
7866 if test -n "$x_libraries"; then
7867 X_LIBS="$X_LIBS -L$x_libraries"
7868 # For Solaris; some versions of Sun CC require a space after -R and
7869 # others require no space. Words are not sufficient . . . .
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7871 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7872 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7873 ac_xsave_c_werror_flag=$ac_c_werror_flag
7874 ac_c_werror_flag=yes
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7879 main ()
7883 return 0;
7885 _ACEOF
7886 if ac_fn_c_try_link "$LINENO"; then :
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7889 X_LIBS="$X_LIBS -R$x_libraries"
7890 else
7891 LIBS="$ac_xsave_LIBS -R $x_libraries"
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7896 main ()
7900 return 0;
7902 _ACEOF
7903 if ac_fn_c_try_link "$LINENO"; then :
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7905 $as_echo "yes" >&6; }
7906 X_LIBS="$X_LIBS -R $x_libraries"
7907 else
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7909 $as_echo "neither works" >&6; }
7911 rm -f core conftest.err conftest.$ac_objext \
7912 conftest$ac_exeext conftest.$ac_ext
7914 rm -f core conftest.err conftest.$ac_objext \
7915 conftest$ac_exeext conftest.$ac_ext
7916 ac_c_werror_flag=$ac_xsave_c_werror_flag
7917 LIBS=$ac_xsave_LIBS
7920 # Check for system-dependent libraries X programs must link with.
7921 # Do this before checking for the system-independent R6 libraries
7922 # (-lICE), since we may need -lsocket or whatever for X linking.
7924 if test "$ISC" = yes; then
7925 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7926 else
7927 # Martyn Johnson says this is needed for Ultrix, if the X
7928 # libraries were built with DECnet support. And Karl Berry says
7929 # the Alpha needs dnet_stub (dnet does not exist).
7930 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7934 /* Override any GCC internal prototype to avoid an error.
7935 Use char because int might match the return type of a GCC
7936 builtin and then its argument prototype would still apply. */
7937 #ifdef __cplusplus
7938 extern "C"
7939 #endif
7940 char XOpenDisplay ();
7942 main ()
7944 return XOpenDisplay ();
7946 return 0;
7948 _ACEOF
7949 if ac_fn_c_try_link "$LINENO"; then :
7951 else
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7953 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7954 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 ac_check_lib_save_LIBS=$LIBS
7958 LIBS="-ldnet $LIBS"
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7962 /* Override any GCC internal prototype to avoid an error.
7963 Use char because int might match the return type of a GCC
7964 builtin and then its argument prototype would still apply. */
7965 #ifdef __cplusplus
7966 extern "C"
7967 #endif
7968 char dnet_ntoa ();
7970 main ()
7972 return dnet_ntoa ();
7974 return 0;
7976 _ACEOF
7977 if ac_fn_c_try_link "$LINENO"; then :
7978 ac_cv_lib_dnet_dnet_ntoa=yes
7979 else
7980 ac_cv_lib_dnet_dnet_ntoa=no
7982 rm -f core conftest.err conftest.$ac_objext \
7983 conftest$ac_exeext conftest.$ac_ext
7984 LIBS=$ac_check_lib_save_LIBS
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7987 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7988 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7989 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7992 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7994 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7995 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 ac_check_lib_save_LIBS=$LIBS
7999 LIBS="-ldnet_stub $LIBS"
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8003 /* Override any GCC internal prototype to avoid an error.
8004 Use char because int might match the return type of a GCC
8005 builtin and then its argument prototype would still apply. */
8006 #ifdef __cplusplus
8007 extern "C"
8008 #endif
8009 char dnet_ntoa ();
8011 main ()
8013 return dnet_ntoa ();
8015 return 0;
8017 _ACEOF
8018 if ac_fn_c_try_link "$LINENO"; then :
8019 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8020 else
8021 ac_cv_lib_dnet_stub_dnet_ntoa=no
8023 rm -f core conftest.err conftest.$ac_objext \
8024 conftest$ac_exeext conftest.$ac_ext
8025 LIBS=$ac_check_lib_save_LIBS
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8028 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8029 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8030 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8035 rm -f core conftest.err conftest.$ac_objext \
8036 conftest$ac_exeext conftest.$ac_ext
8037 LIBS="$ac_xsave_LIBS"
8039 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8040 # to get the SysV transport functions.
8041 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8042 # needs -lnsl.
8043 # The nsl library prevents programs from opening the X display
8044 # on Irix 5.2, according to T.E. Dickey.
8045 # The functions gethostbyname, getservbyname, and inet_addr are
8046 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8047 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8048 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8052 if test $ac_cv_func_gethostbyname = no; then
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8054 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8055 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 ac_check_lib_save_LIBS=$LIBS
8059 LIBS="-lnsl $LIBS"
8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8061 /* end confdefs.h. */
8063 /* Override any GCC internal prototype to avoid an error.
8064 Use char because int might match the return type of a GCC
8065 builtin and then its argument prototype would still apply. */
8066 #ifdef __cplusplus
8067 extern "C"
8068 #endif
8069 char gethostbyname ();
8071 main ()
8073 return gethostbyname ();
8075 return 0;
8077 _ACEOF
8078 if ac_fn_c_try_link "$LINENO"; then :
8079 ac_cv_lib_nsl_gethostbyname=yes
8080 else
8081 ac_cv_lib_nsl_gethostbyname=no
8083 rm -f core conftest.err conftest.$ac_objext \
8084 conftest$ac_exeext conftest.$ac_ext
8085 LIBS=$ac_check_lib_save_LIBS
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8088 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8089 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8090 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8093 if test $ac_cv_lib_nsl_gethostbyname = no; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8095 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8096 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8097 $as_echo_n "(cached) " >&6
8098 else
8099 ac_check_lib_save_LIBS=$LIBS
8100 LIBS="-lbsd $LIBS"
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8104 /* Override any GCC internal prototype to avoid an error.
8105 Use char because int might match the return type of a GCC
8106 builtin and then its argument prototype would still apply. */
8107 #ifdef __cplusplus
8108 extern "C"
8109 #endif
8110 char gethostbyname ();
8112 main ()
8114 return gethostbyname ();
8116 return 0;
8118 _ACEOF
8119 if ac_fn_c_try_link "$LINENO"; then :
8120 ac_cv_lib_bsd_gethostbyname=yes
8121 else
8122 ac_cv_lib_bsd_gethostbyname=no
8124 rm -f core conftest.err conftest.$ac_objext \
8125 conftest$ac_exeext conftest.$ac_ext
8126 LIBS=$ac_check_lib_save_LIBS
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8129 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8130 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8131 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8137 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8138 # socket/setsockopt and other routines are undefined under SCO ODT
8139 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8140 # on later versions), says Simon Leinen: it contains gethostby*
8141 # variants that don't use the name server (or something). -lsocket
8142 # must be given before -lnsl if both are needed. We assume that
8143 # if connect needs -lnsl, so does gethostbyname.
8144 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8145 if test "x$ac_cv_func_connect" = xyes; then :
8149 if test $ac_cv_func_connect = no; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8151 $as_echo_n "checking for connect in -lsocket... " >&6; }
8152 if ${ac_cv_lib_socket_connect+:} false; then :
8153 $as_echo_n "(cached) " >&6
8154 else
8155 ac_check_lib_save_LIBS=$LIBS
8156 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8160 /* Override any GCC internal prototype to avoid an error.
8161 Use char because int might match the return type of a GCC
8162 builtin and then its argument prototype would still apply. */
8163 #ifdef __cplusplus
8164 extern "C"
8165 #endif
8166 char connect ();
8168 main ()
8170 return connect ();
8172 return 0;
8174 _ACEOF
8175 if ac_fn_c_try_link "$LINENO"; then :
8176 ac_cv_lib_socket_connect=yes
8177 else
8178 ac_cv_lib_socket_connect=no
8180 rm -f core conftest.err conftest.$ac_objext \
8181 conftest$ac_exeext conftest.$ac_ext
8182 LIBS=$ac_check_lib_save_LIBS
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8185 $as_echo "$ac_cv_lib_socket_connect" >&6; }
8186 if test "x$ac_cv_lib_socket_connect" = xyes; then :
8187 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8192 # Guillermo Gomez says -lposix is necessary on A/UX.
8193 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8194 if test "x$ac_cv_func_remove" = xyes; then :
8198 if test $ac_cv_func_remove = no; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8200 $as_echo_n "checking for remove in -lposix... " >&6; }
8201 if ${ac_cv_lib_posix_remove+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 ac_check_lib_save_LIBS=$LIBS
8205 LIBS="-lposix $LIBS"
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8209 /* Override any GCC internal prototype to avoid an error.
8210 Use char because int might match the return type of a GCC
8211 builtin and then its argument prototype would still apply. */
8212 #ifdef __cplusplus
8213 extern "C"
8214 #endif
8215 char remove ();
8217 main ()
8219 return remove ();
8221 return 0;
8223 _ACEOF
8224 if ac_fn_c_try_link "$LINENO"; then :
8225 ac_cv_lib_posix_remove=yes
8226 else
8227 ac_cv_lib_posix_remove=no
8229 rm -f core conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
8231 LIBS=$ac_check_lib_save_LIBS
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8234 $as_echo "$ac_cv_lib_posix_remove" >&6; }
8235 if test "x$ac_cv_lib_posix_remove" = xyes; then :
8236 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8241 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8242 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8243 if test "x$ac_cv_func_shmat" = xyes; then :
8247 if test $ac_cv_func_shmat = no; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8249 $as_echo_n "checking for shmat in -lipc... " >&6; }
8250 if ${ac_cv_lib_ipc_shmat+:} false; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 ac_check_lib_save_LIBS=$LIBS
8254 LIBS="-lipc $LIBS"
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8258 /* Override any GCC internal prototype to avoid an error.
8259 Use char because int might match the return type of a GCC
8260 builtin and then its argument prototype would still apply. */
8261 #ifdef __cplusplus
8262 extern "C"
8263 #endif
8264 char shmat ();
8266 main ()
8268 return shmat ();
8270 return 0;
8272 _ACEOF
8273 if ac_fn_c_try_link "$LINENO"; then :
8274 ac_cv_lib_ipc_shmat=yes
8275 else
8276 ac_cv_lib_ipc_shmat=no
8278 rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8280 LIBS=$ac_check_lib_save_LIBS
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8283 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8284 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8285 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8291 # Check for libraries that X11R6 Xt/Xaw programs need.
8292 ac_save_LDFLAGS=$LDFLAGS
8293 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8294 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8295 # check for ICE first), but we must link in the order -lSM -lICE or
8296 # we get undefined symbols. So assume we have SM if we have ICE.
8297 # These have to be linked with before -lX11, unlike the other
8298 # libraries we check for below, so use a different variable.
8299 # John Interrante, Karl Berry
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8301 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8302 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8303 $as_echo_n "(cached) " >&6
8304 else
8305 ac_check_lib_save_LIBS=$LIBS
8306 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8310 /* Override any GCC internal prototype to avoid an error.
8311 Use char because int might match the return type of a GCC
8312 builtin and then its argument prototype would still apply. */
8313 #ifdef __cplusplus
8314 extern "C"
8315 #endif
8316 char IceConnectionNumber ();
8318 main ()
8320 return IceConnectionNumber ();
8322 return 0;
8324 _ACEOF
8325 if ac_fn_c_try_link "$LINENO"; then :
8326 ac_cv_lib_ICE_IceConnectionNumber=yes
8327 else
8328 ac_cv_lib_ICE_IceConnectionNumber=no
8330 rm -f core conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext conftest.$ac_ext
8332 LIBS=$ac_check_lib_save_LIBS
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8335 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8336 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8337 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8340 LDFLAGS=$ac_save_LDFLAGS
8345 if test "$have_x" = "yes"
8346 then
8347 XLIB="-lX11"
8348 ac_save_CPPFLAGS="$CPPFLAGS"
8349 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
8352 $as_echo_n "checking for -lX11... " >&6; }
8353 if ${ac_cv_lib_soname_X11+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 ac_check_soname_save_LIBS=$LIBS
8357 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
8358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359 /* end confdefs.h. */
8361 /* Override any GCC internal prototype to avoid an error.
8362 Use char because int might match the return type of a GCC
8363 builtin and then its argument prototype would still apply. */
8364 #ifdef __cplusplus
8365 extern "C"
8366 #endif
8367 char XCreateWindow ();
8369 main ()
8371 return XCreateWindow ();
8373 return 0;
8375 _ACEOF
8376 if ac_fn_c_try_link "$LINENO"; then :
8377 case "$LIBEXT" in
8378 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8379 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'` ;;
8380 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8381 if test "x$ac_cv_lib_soname_X11" = x; then :
8382 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8383 fi ;;
8384 esac
8386 rm -f core conftest.err conftest.$ac_objext \
8387 conftest$ac_exeext conftest.$ac_ext
8388 LIBS=$ac_check_soname_save_LIBS
8390 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8392 $as_echo "not found" >&6; }
8394 else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8396 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8398 cat >>confdefs.h <<_ACEOF
8399 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8400 _ACEOF
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8405 $as_echo_n "checking for -lXext... " >&6; }
8406 if ${ac_cv_lib_soname_Xext+:} false; then :
8407 $as_echo_n "(cached) " >&6
8408 else
8409 ac_check_soname_save_LIBS=$LIBS
8410 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8414 /* Override any GCC internal prototype to avoid an error.
8415 Use char because int might match the return type of a GCC
8416 builtin and then its argument prototype would still apply. */
8417 #ifdef __cplusplus
8418 extern "C"
8419 #endif
8420 char XextCreateExtension ();
8422 main ()
8424 return XextCreateExtension ();
8426 return 0;
8428 _ACEOF
8429 if ac_fn_c_try_link "$LINENO"; then :
8430 case "$LIBEXT" in
8431 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8432 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'` ;;
8433 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8434 if test "x$ac_cv_lib_soname_Xext" = x; then :
8435 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8436 fi ;;
8437 esac
8439 rm -f core conftest.err conftest.$ac_objext \
8440 conftest$ac_exeext conftest.$ac_ext
8441 LIBS=$ac_check_soname_save_LIBS
8443 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8445 $as_echo "not found" >&6; }
8447 else
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8449 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8451 cat >>confdefs.h <<_ACEOF
8452 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8453 _ACEOF
8455 XLIB="-lXext $XLIB"
8458 for ac_header in X11/Xlib.h \
8459 X11/XKBlib.h \
8460 X11/Xutil.h \
8461 X11/Xcursor/Xcursor.h \
8462 X11/extensions/shape.h \
8463 X11/extensions/XInput.h \
8464 X11/extensions/XInput2.h \
8465 X11/extensions/XShm.h \
8466 X11/extensions/Xcomposite.h \
8467 X11/extensions/Xinerama.h \
8468 X11/extensions/Xrandr.h \
8469 X11/extensions/Xrender.h \
8470 X11/extensions/xf86vmode.h \
8471 X11/extensions/xf86vmproto.h
8472 do :
8473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8474 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8475 # include <X11/Xlib.h>
8476 #endif
8477 #ifdef HAVE_X11_XUTIL_H
8478 # include <X11/Xutil.h>
8479 #endif
8481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8482 cat >>confdefs.h <<_ACEOF
8483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8484 _ACEOF
8488 done
8491 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8492 then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8494 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8495 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 ac_check_lib_save_LIBS=$LIBS
8499 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8503 /* Override any GCC internal prototype to avoid an error.
8504 Use char because int might match the return type of a GCC
8505 builtin and then its argument prototype would still apply. */
8506 #ifdef __cplusplus
8507 extern "C"
8508 #endif
8509 char XkbQueryExtension ();
8511 main ()
8513 return XkbQueryExtension ();
8515 return 0;
8517 _ACEOF
8518 if ac_fn_c_try_link "$LINENO"; then :
8519 ac_cv_lib_X11_XkbQueryExtension=yes
8520 else
8521 ac_cv_lib_X11_XkbQueryExtension=no
8523 rm -f core conftest.err conftest.$ac_objext \
8524 conftest$ac_exeext conftest.$ac_ext
8525 LIBS=$ac_check_lib_save_LIBS
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8528 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8529 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8531 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8537 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8538 then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8540 $as_echo_n "checking for -lXcursor... " >&6; }
8541 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 ac_check_soname_save_LIBS=$LIBS
8545 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8549 /* Override any GCC internal prototype to avoid an error.
8550 Use char because int might match the return type of a GCC
8551 builtin and then its argument prototype would still apply. */
8552 #ifdef __cplusplus
8553 extern "C"
8554 #endif
8555 char XcursorImageLoadCursor ();
8557 main ()
8559 return XcursorImageLoadCursor ();
8561 return 0;
8563 _ACEOF
8564 if ac_fn_c_try_link "$LINENO"; then :
8565 case "$LIBEXT" in
8566 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8567 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'` ;;
8568 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8569 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
8570 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8571 fi ;;
8572 esac
8574 rm -f core conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8576 LIBS=$ac_check_soname_save_LIBS
8578 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8580 $as_echo "not found" >&6; }
8582 else
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8584 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8586 cat >>confdefs.h <<_ACEOF
8587 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8588 _ACEOF
8593 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8594 case "x$with_xcursor" in
8595 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8596 xno) ;;
8597 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8598 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8599 esac
8602 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8603 then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8605 $as_echo_n "checking for -lXi... " >&6; }
8606 if ${ac_cv_lib_soname_Xi+:} false; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 ac_check_soname_save_LIBS=$LIBS
8610 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8614 /* Override any GCC internal prototype to avoid an error.
8615 Use char because int might match the return type of a GCC
8616 builtin and then its argument prototype would still apply. */
8617 #ifdef __cplusplus
8618 extern "C"
8619 #endif
8620 char XOpenDevice ();
8622 main ()
8624 return XOpenDevice ();
8626 return 0;
8628 _ACEOF
8629 if ac_fn_c_try_link "$LINENO"; then :
8630 case "$LIBEXT" in
8631 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8632 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'` ;;
8633 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8634 if test "x$ac_cv_lib_soname_Xi" = x; then :
8635 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8636 fi ;;
8637 esac
8639 rm -f core conftest.err conftest.$ac_objext \
8640 conftest$ac_exeext conftest.$ac_ext
8641 LIBS=$ac_check_soname_save_LIBS
8643 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8645 $as_echo "not found" >&6; }
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8649 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8651 cat >>confdefs.h <<_ACEOF
8652 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8653 _ACEOF
8658 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8659 case "x$with_xinput" in
8660 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8661 xno) ;;
8662 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8663 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8664 esac
8667 if test "x$ac_cv_lib_soname_Xi" != x
8668 then
8669 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8670 case "x$with_xinput2" in
8671 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8672 xno) ;;
8673 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8674 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8675 esac
8679 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8680 then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8682 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8683 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
8684 $as_echo_n "(cached) " >&6
8685 else
8686 ac_check_lib_save_LIBS=$LIBS
8687 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8691 /* Override any GCC internal prototype to avoid an error.
8692 Use char because int might match the return type of a GCC
8693 builtin and then its argument prototype would still apply. */
8694 #ifdef __cplusplus
8695 extern "C"
8696 #endif
8697 char XShmQueryExtension ();
8699 main ()
8701 return XShmQueryExtension ();
8703 return 0;
8705 _ACEOF
8706 if ac_fn_c_try_link "$LINENO"; then :
8707 ac_cv_lib_Xext_XShmQueryExtension=yes
8708 else
8709 ac_cv_lib_Xext_XShmQueryExtension=no
8711 rm -f core conftest.err conftest.$ac_objext \
8712 conftest$ac_exeext conftest.$ac_ext
8713 LIBS=$ac_check_lib_save_LIBS
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8716 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8717 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
8719 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8724 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8725 case "x$with_xshm" in
8726 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8727 xno) ;;
8728 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8729 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8730 esac
8733 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8734 then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8736 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8737 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 ac_check_lib_save_LIBS=$LIBS
8741 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8745 /* Override any GCC internal prototype to avoid an error.
8746 Use char because int might match the return type of a GCC
8747 builtin and then its argument prototype would still apply. */
8748 #ifdef __cplusplus
8749 extern "C"
8750 #endif
8751 char XShapeQueryExtension ();
8753 main ()
8755 return XShapeQueryExtension ();
8757 return 0;
8759 _ACEOF
8760 if ac_fn_c_try_link "$LINENO"; then :
8761 ac_cv_lib_Xext_XShapeQueryExtension=yes
8762 else
8763 ac_cv_lib_Xext_XShapeQueryExtension=no
8765 rm -f core conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
8767 LIBS=$ac_check_lib_save_LIBS
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8770 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8771 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8773 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8778 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8779 case "x$with_xshape" in
8780 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8781 xno) ;;
8782 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8783 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8784 esac
8787 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8788 then
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8790 $as_echo_n "checking for -lXxf86vm... " >&6; }
8791 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 ac_check_soname_save_LIBS=$LIBS
8795 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8799 /* Override any GCC internal prototype to avoid an error.
8800 Use char because int might match the return type of a GCC
8801 builtin and then its argument prototype would still apply. */
8802 #ifdef __cplusplus
8803 extern "C"
8804 #endif
8805 char XF86VidModeQueryExtension ();
8807 main ()
8809 return XF86VidModeQueryExtension ();
8811 return 0;
8813 _ACEOF
8814 if ac_fn_c_try_link "$LINENO"; then :
8815 case "$LIBEXT" in
8816 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8817 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'` ;;
8818 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8819 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
8820 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8821 fi ;;
8822 esac
8824 rm -f core conftest.err conftest.$ac_objext \
8825 conftest$ac_exeext conftest.$ac_ext
8826 LIBS=$ac_check_soname_save_LIBS
8828 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8830 $as_echo "not found" >&6; }
8832 else
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8834 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8836 cat >>confdefs.h <<_ACEOF
8837 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8838 _ACEOF
8843 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8844 case "x$with_xxf86vm" in
8845 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8846 xno) ;;
8847 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8848 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8849 esac
8852 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"
8853 then
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8855 $as_echo_n "checking for -lXrender... " >&6; }
8856 if ${ac_cv_lib_soname_Xrender+:} false; then :
8857 $as_echo_n "(cached) " >&6
8858 else
8859 ac_check_soname_save_LIBS=$LIBS
8860 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8864 /* Override any GCC internal prototype to avoid an error.
8865 Use char because int might match the return type of a GCC
8866 builtin and then its argument prototype would still apply. */
8867 #ifdef __cplusplus
8868 extern "C"
8869 #endif
8870 char XRenderQueryExtension ();
8872 main ()
8874 return XRenderQueryExtension ();
8876 return 0;
8878 _ACEOF
8879 if ac_fn_c_try_link "$LINENO"; then :
8880 case "$LIBEXT" in
8881 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8882 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'` ;;
8883 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8884 if test "x$ac_cv_lib_soname_Xrender" = x; then :
8885 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8886 fi ;;
8887 esac
8889 rm -f core conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891 LIBS=$ac_check_soname_save_LIBS
8893 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8895 $as_echo "not found" >&6; }
8897 else
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8899 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8901 cat >>confdefs.h <<_ACEOF
8902 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8903 _ACEOF
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8906 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8907 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 ac_check_lib_save_LIBS=$LIBS
8911 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913 /* end confdefs.h. */
8915 /* Override any GCC internal prototype to avoid an error.
8916 Use char because int might match the return type of a GCC
8917 builtin and then its argument prototype would still apply. */
8918 #ifdef __cplusplus
8919 extern "C"
8920 #endif
8921 char XRenderSetPictureTransform ();
8923 main ()
8925 return XRenderSetPictureTransform ();
8927 return 0;
8929 _ACEOF
8930 if ac_fn_c_try_link "$LINENO"; then :
8931 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8932 else
8933 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8935 rm -f core conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext conftest.$ac_ext
8937 LIBS=$ac_check_lib_save_LIBS
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8940 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8941 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8943 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8948 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8949 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 ac_check_lib_save_LIBS=$LIBS
8953 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955 /* end confdefs.h. */
8957 /* Override any GCC internal prototype to avoid an error.
8958 Use char because int might match the return type of a GCC
8959 builtin and then its argument prototype would still apply. */
8960 #ifdef __cplusplus
8961 extern "C"
8962 #endif
8963 char XRenderCreateLinearGradient ();
8965 main ()
8967 return XRenderCreateLinearGradient ();
8969 return 0;
8971 _ACEOF
8972 if ac_fn_c_try_link "$LINENO"; then :
8973 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8974 else
8975 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8977 rm -f core conftest.err conftest.$ac_objext \
8978 conftest$ac_exeext conftest.$ac_ext
8979 LIBS=$ac_check_lib_save_LIBS
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8982 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8983 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8985 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8992 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8993 case "x$with_xrender" in
8994 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8995 xno) ;;
8996 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8997 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8998 esac
9001 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9002 then
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9005 #include <X11/Xlib.h>
9006 #include <X11/extensions/Xrandr.h>
9008 main ()
9010 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9012 return 0;
9014 _ACEOF
9015 if ac_fn_c_try_compile "$LINENO"; then :
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9017 $as_echo_n "checking for -lXrandr... " >&6; }
9018 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 ac_check_soname_save_LIBS=$LIBS
9022 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9026 /* Override any GCC internal prototype to avoid an error.
9027 Use char because int might match the return type of a GCC
9028 builtin and then its argument prototype would still apply. */
9029 #ifdef __cplusplus
9030 extern "C"
9031 #endif
9032 char XRRQueryExtension ();
9034 main ()
9036 return XRRQueryExtension ();
9038 return 0;
9040 _ACEOF
9041 if ac_fn_c_try_link "$LINENO"; then :
9042 case "$LIBEXT" in
9043 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9044 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'` ;;
9045 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9046 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
9047 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9048 fi ;;
9049 esac
9051 rm -f core conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
9053 LIBS=$ac_check_soname_save_LIBS
9055 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9057 $as_echo "not found" >&6; }
9059 else
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9061 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9063 cat >>confdefs.h <<_ACEOF
9064 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9065 _ACEOF
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069 #include <X11/Xlib.h>
9070 #include <X11/extensions/Xrandr.h>
9072 main ()
9074 static typeof(XRRGetScreenResources) *f; if (f) return 0;
9076 return 0;
9078 _ACEOF
9079 if ac_fn_c_try_compile "$LINENO"; then :
9081 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
9084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9089 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9090 case "x$with_xrandr" in
9091 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
9092 xno) ;;
9093 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
9094 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
9095 esac
9098 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9099 then
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9102 #include <X11/Xlib.h>
9103 #include <X11/extensions/Xinerama.h>
9105 main ()
9107 static typeof(XineramaQueryScreens) * func; if (func) return 0;
9109 return 0;
9111 _ACEOF
9112 if ac_fn_c_try_compile "$LINENO"; then :
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
9114 $as_echo_n "checking for -lXinerama... " >&6; }
9115 if ${ac_cv_lib_soname_Xinerama+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 ac_check_soname_save_LIBS=$LIBS
9119 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9123 /* Override any GCC internal prototype to avoid an error.
9124 Use char because int might match the return type of a GCC
9125 builtin and then its argument prototype would still apply. */
9126 #ifdef __cplusplus
9127 extern "C"
9128 #endif
9129 char XineramaQueryScreens ();
9131 main ()
9133 return XineramaQueryScreens ();
9135 return 0;
9137 _ACEOF
9138 if ac_fn_c_try_link "$LINENO"; then :
9139 case "$LIBEXT" in
9140 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9141 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'` ;;
9142 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9143 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
9144 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9145 fi ;;
9146 esac
9148 rm -f core conftest.err conftest.$ac_objext \
9149 conftest$ac_exeext conftest.$ac_ext
9150 LIBS=$ac_check_soname_save_LIBS
9152 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9154 $as_echo "not found" >&6; }
9156 else
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
9158 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
9160 cat >>confdefs.h <<_ACEOF
9161 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
9162 _ACEOF
9167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9169 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9170 case "x$with_xinerama" in
9171 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
9172 xno) ;;
9173 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
9174 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
9175 esac
9178 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
9179 then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
9181 $as_echo_n "checking for -lXcomposite... " >&6; }
9182 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 ac_check_soname_save_LIBS=$LIBS
9186 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9190 /* Override any GCC internal prototype to avoid an error.
9191 Use char because int might match the return type of a GCC
9192 builtin and then its argument prototype would still apply. */
9193 #ifdef __cplusplus
9194 extern "C"
9195 #endif
9196 char XCompositeRedirectWindow ();
9198 main ()
9200 return XCompositeRedirectWindow ();
9202 return 0;
9204 _ACEOF
9205 if ac_fn_c_try_link "$LINENO"; then :
9206 case "$LIBEXT" in
9207 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9208 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'` ;;
9209 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9210 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
9211 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9212 fi ;;
9213 esac
9215 rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217 LIBS=$ac_check_soname_save_LIBS
9219 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9221 $as_echo "not found" >&6; }
9223 else
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
9225 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
9227 cat >>confdefs.h <<_ACEOF
9228 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
9229 _ACEOF
9234 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9235 case "x$with_xcomposite" in
9236 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
9237 xno) ;;
9238 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
9239 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
9240 esac
9243 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
9244 #include <X11/Xlib.h>
9245 #endif
9247 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
9249 cat >>confdefs.h <<_ACEOF
9250 #define HAVE_XICCALLBACK_CALLBACK 1
9251 _ACEOF
9255 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
9256 #include <X11/Xlib.h>
9257 #endif
9259 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
9261 cat >>confdefs.h <<_ACEOF
9262 #define HAVE_XEVENT_XCOOKIE 1
9263 _ACEOF
9270 opengl_msg=""
9271 if test "x$with_opengl" != "xno"
9272 then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9274 $as_echo_n "checking for -lGL... " >&6; }
9275 if ${ac_cv_lib_soname_GL+:} false; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 ac_check_soname_save_LIBS=$LIBS
9279 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9283 /* Override any GCC internal prototype to avoid an error.
9284 Use char because int might match the return type of a GCC
9285 builtin and then its argument prototype would still apply. */
9286 #ifdef __cplusplus
9287 extern "C"
9288 #endif
9289 char glXCreateContext ();
9291 main ()
9293 return glXCreateContext ();
9295 return 0;
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 case "$LIBEXT" in
9300 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9301 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'` ;;
9302 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9303 if test "x$ac_cv_lib_soname_GL" = x; then :
9304 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9305 fi ;;
9306 esac
9308 rm -f core conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
9310 LIBS=$ac_check_soname_save_LIBS
9312 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9314 $as_echo "not found" >&6; }
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9316 $as_echo_n "checking for -lGL... " >&6; }
9317 if ${ac_cv_lib_soname_GL+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 ac_check_soname_save_LIBS=$LIBS
9321 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"
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9325 /* Override any GCC internal prototype to avoid an error.
9326 Use char because int might match the return type of a GCC
9327 builtin and then its argument prototype would still apply. */
9328 #ifdef __cplusplus
9329 extern "C"
9330 #endif
9331 char glXCreateContext ();
9333 main ()
9335 return glXCreateContext ();
9337 return 0;
9339 _ACEOF
9340 if ac_fn_c_try_link "$LINENO"; then :
9341 case "$LIBEXT" in
9342 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9343 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'` ;;
9344 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9345 if test "x$ac_cv_lib_soname_GL" = x; then :
9346 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9347 fi ;;
9348 esac
9350 rm -f core conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9352 LIBS=$ac_check_soname_save_LIBS
9354 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9356 $as_echo "not found" >&6; }
9357 if test -f /usr/X11R6/lib/libGL.a
9358 then
9359 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
9360 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
9361 else
9362 opengl_msg="No OpenGL library found on this system."
9364 else
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9366 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9368 cat >>confdefs.h <<_ACEOF
9369 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9370 _ACEOF
9372 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"
9374 else
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9376 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9378 cat >>confdefs.h <<_ACEOF
9379 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9380 _ACEOF
9382 OPENGL_LIBS="-lGL"
9384 if test "x$with_glu" != "xno"
9385 then
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
9387 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
9388 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
9389 $as_echo_n "(cached) " >&6
9390 else
9391 ac_check_lib_save_LIBS=$LIBS
9392 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9396 /* Override any GCC internal prototype to avoid an error.
9397 Use char because int might match the return type of a GCC
9398 builtin and then its argument prototype would still apply. */
9399 #ifdef __cplusplus
9400 extern "C"
9401 #endif
9402 char gluLookAt ();
9404 main ()
9406 return gluLookAt ();
9408 return 0;
9410 _ACEOF
9411 if ac_fn_c_try_link "$LINENO"; then :
9412 ac_cv_lib_GLU_gluLookAt=yes
9413 else
9414 ac_cv_lib_GLU_gluLookAt=no
9416 rm -f core conftest.err conftest.$ac_objext \
9417 conftest$ac_exeext conftest.$ac_ext
9418 LIBS=$ac_check_lib_save_LIBS
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9421 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9422 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9426 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9427 case "x$with_glu" in
9428 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9429 xno) ;;
9430 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9431 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9432 esac
9436 if test "x$with_osmesa" != "xno"
9437 then
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9439 $as_echo_n "checking for -lOSMesa... " >&6; }
9440 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9441 $as_echo_n "(cached) " >&6
9442 else
9443 ac_check_soname_save_LIBS=$LIBS
9444 LIBS="-lOSMesa $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9448 /* Override any GCC internal prototype to avoid an error.
9449 Use char because int might match the return type of a GCC
9450 builtin and then its argument prototype would still apply. */
9451 #ifdef __cplusplus
9452 extern "C"
9453 #endif
9454 char glAccum ();
9456 main ()
9458 return glAccum ();
9460 return 0;
9462 _ACEOF
9463 if ac_fn_c_try_link "$LINENO"; then :
9464 case "$LIBEXT" in
9465 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9466 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'` ;;
9467 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9468 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
9469 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9470 fi ;;
9471 esac
9473 rm -f core conftest.err conftest.$ac_objext \
9474 conftest$ac_exeext conftest.$ac_ext
9475 LIBS=$ac_check_soname_save_LIBS
9477 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9479 $as_echo "not found" >&6; }
9481 else
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
9483 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
9485 cat >>confdefs.h <<_ACEOF
9486 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
9487 _ACEOF
9491 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
9492 case "x$with_osmesa" in
9493 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
9494 xno) ;;
9495 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
9496 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
9497 esac
9501 if test -n "$opengl_msg"; then :
9502 case "x$with_opengl" in
9503 x) as_fn_append wine_warnings "|$opengl_msg
9504 OpenGL and Direct3D won't be supported." ;;
9505 xno) ;;
9506 *) as_fn_error $? "$opengl_msg
9507 OpenGL and Direct3D won't be supported.
9508 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
9509 esac
9512 CPPFLAGS="$ac_save_CPPFLAGS"
9513 else
9514 XLIB=""
9515 X_CFLAGS=""
9516 X_LIBS=""
9517 enable_winex11_drv=${enable_winex11_drv:-no}
9519 if test "x$XLIB" = "x"; then :
9520 case "x$with_x" in
9521 xno) ;;
9522 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
9523 without X support, which probably isn't what you want. You will need
9524 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9525 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9526 esac
9529 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
9531 if test "$ac_cv_header_CL_cl_h" = "yes"
9532 then
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9534 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9535 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 ac_check_lib_save_LIBS=$LIBS
9539 LIBS="-lOpenCL $LIBS"
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9543 /* Override any GCC internal prototype to avoid an error.
9544 Use char because int might match the return type of a GCC
9545 builtin and then its argument prototype would still apply. */
9546 #ifdef __cplusplus
9547 extern "C"
9548 #endif
9549 char clGetPlatformInfo ();
9551 main ()
9553 return clGetPlatformInfo ();
9555 return 0;
9557 _ACEOF
9558 if ac_fn_c_try_link "$LINENO"; then :
9559 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9560 else
9561 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9563 rm -f core conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
9565 LIBS=$ac_check_lib_save_LIBS
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9568 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9569 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9570 LIBOPENCL="-lOpenCL"
9575 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9576 case "x$with_opencl" in
9577 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9578 xno) ;;
9579 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9580 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9581 esac
9583 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9586 if test "x$with_xml" != "xno"
9587 then
9588 ac_save_CPPFLAGS="$CPPFLAGS"
9589 if test -n "$ac_tool_prefix"; then
9590 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9591 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593 $as_echo_n "checking for $ac_word... " >&6; }
9594 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 if test -n "$PKG_CONFIG"; then
9598 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
9599 else
9600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9601 for as_dir in $PATH
9603 IFS=$as_save_IFS
9604 test -z "$as_dir" && as_dir=.
9605 for ac_exec_ext in '' $ac_executable_extensions; do
9606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9607 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
9608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9609 break 2
9611 done
9612 done
9613 IFS=$as_save_IFS
9617 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
9618 if test -n "$PKG_CONFIG"; then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9620 $as_echo "$PKG_CONFIG" >&6; }
9621 else
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9623 $as_echo "no" >&6; }
9628 if test -z "$ac_cv_prog_PKG_CONFIG"; then
9629 ac_ct_PKG_CONFIG=$PKG_CONFIG
9630 # Extract the first word of "pkg-config", so it can be a program name with args.
9631 set dummy pkg-config; ac_word=$2
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then :
9635 $as_echo_n "(cached) " >&6
9636 else
9637 if test -n "$ac_ct_PKG_CONFIG"; then
9638 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
9639 else
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9647 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 break 2
9651 done
9652 done
9653 IFS=$as_save_IFS
9657 ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
9658 if test -n "$ac_ct_PKG_CONFIG"; then
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
9660 $as_echo "$ac_ct_PKG_CONFIG" >&6; }
9661 else
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663 $as_echo "no" >&6; }
9666 if test "x$ac_ct_PKG_CONFIG" = x; then
9667 PKG_CONFIG=""
9668 else
9669 case $cross_compiling:$ac_tool_warned in
9670 yes:)
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9673 ac_tool_warned=yes ;;
9674 esac
9675 PKG_CONFIG=$ac_ct_PKG_CONFIG
9677 else
9678 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
9681 if test -n "$XML2_CFLAGS"; then :
9683 elif test -n "$PKG_CONFIG"; then :
9684 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
9686 XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
9687 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
9688 if test -n "$XML2_LIBS"; then :
9690 elif test -n "$PKG_CONFIG"; then :
9691 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
9693 XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
9694 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
9695 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9696 do :
9697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9698 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9699 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9700 cat >>confdefs.h <<_ACEOF
9701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9702 _ACEOF
9706 done
9708 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"
9709 then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9711 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9712 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 ac_check_lib_save_LIBS=$LIBS
9716 LIBS="-lxml2 $XML2_LIBS $LIBS"
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9720 /* Override any GCC internal prototype to avoid an error.
9721 Use char because int might match the return type of a GCC
9722 builtin and then its argument prototype would still apply. */
9723 #ifdef __cplusplus
9724 extern "C"
9725 #endif
9726 char xmlParseMemory ();
9728 main ()
9730 return xmlParseMemory ();
9732 return 0;
9734 _ACEOF
9735 if ac_fn_c_try_link "$LINENO"; then :
9736 ac_cv_lib_xml2_xmlParseMemory=yes
9737 else
9738 ac_cv_lib_xml2_xmlParseMemory=no
9740 rm -f core conftest.err conftest.$ac_objext \
9741 conftest$ac_exeext conftest.$ac_ext
9742 LIBS=$ac_check_lib_save_LIBS
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9745 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9746 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9748 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9750 else
9751 XML2_LIBS=""
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9755 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9756 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9757 $as_echo_n "(cached) " >&6
9758 else
9759 ac_check_lib_save_LIBS=$LIBS
9760 LIBS="-lxml2 $XML2_LIBS $LIBS"
9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762 /* end confdefs.h. */
9764 /* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
9767 #ifdef __cplusplus
9768 extern "C"
9769 #endif
9770 char xmlReadMemory ();
9772 main ()
9774 return xmlReadMemory ();
9776 return 0;
9778 _ACEOF
9779 if ac_fn_c_try_link "$LINENO"; then :
9780 ac_cv_lib_xml2_xmlReadMemory=yes
9781 else
9782 ac_cv_lib_xml2_xmlReadMemory=no
9784 rm -f core conftest.err conftest.$ac_objext \
9785 conftest$ac_exeext conftest.$ac_ext
9786 LIBS=$ac_check_lib_save_LIBS
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9789 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9790 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9792 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9797 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9798 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 ac_check_lib_save_LIBS=$LIBS
9802 LIBS="-lxml2 $XML2_LIBS $LIBS"
9803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9806 /* Override any GCC internal prototype to avoid an error.
9807 Use char because int might match the return type of a GCC
9808 builtin and then its argument prototype would still apply. */
9809 #ifdef __cplusplus
9810 extern "C"
9811 #endif
9812 char xmlNewDocPI ();
9814 main ()
9816 return xmlNewDocPI ();
9818 return 0;
9820 _ACEOF
9821 if ac_fn_c_try_link "$LINENO"; then :
9822 ac_cv_lib_xml2_xmlNewDocPI=yes
9823 else
9824 ac_cv_lib_xml2_xmlNewDocPI=no
9826 rm -f core conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
9828 LIBS=$ac_check_lib_save_LIBS
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9831 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9832 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9834 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9839 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9840 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 ac_check_lib_save_LIBS=$LIBS
9844 LIBS="-lxml2 $XML2_LIBS $LIBS"
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h. */
9848 /* Override any GCC internal prototype to avoid an error.
9849 Use char because int might match the return type of a GCC
9850 builtin and then its argument prototype would still apply. */
9851 #ifdef __cplusplus
9852 extern "C"
9853 #endif
9854 char xmlSchemaSetParserStructuredErrors ();
9856 main ()
9858 return xmlSchemaSetParserStructuredErrors ();
9860 return 0;
9862 _ACEOF
9863 if ac_fn_c_try_link "$LINENO"; then :
9864 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9865 else
9866 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9868 rm -f core conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9870 LIBS=$ac_check_lib_save_LIBS
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9873 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9874 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9876 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9881 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9882 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9883 $as_echo_n "(cached) " >&6
9884 else
9885 ac_check_lib_save_LIBS=$LIBS
9886 LIBS="-lxml2 $XML2_LIBS $LIBS"
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9890 /* Override any GCC internal prototype to avoid an error.
9891 Use char because int might match the return type of a GCC
9892 builtin and then its argument prototype would still apply. */
9893 #ifdef __cplusplus
9894 extern "C"
9895 #endif
9896 char xmlSchemaSetValidStructuredErrors ();
9898 main ()
9900 return xmlSchemaSetValidStructuredErrors ();
9902 return 0;
9904 _ACEOF
9905 if ac_fn_c_try_link "$LINENO"; then :
9906 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9907 else
9908 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9910 rm -f core conftest.err conftest.$ac_objext \
9911 conftest$ac_exeext conftest.$ac_ext
9912 LIBS=$ac_check_lib_save_LIBS
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9915 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9916 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9918 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9923 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9924 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9925 $as_echo_n "(cached) " >&6
9926 else
9927 ac_check_lib_save_LIBS=$LIBS
9928 LIBS="-lxml2 $XML2_LIBS $LIBS"
9929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930 /* end confdefs.h. */
9932 /* Override any GCC internal prototype to avoid an error.
9933 Use char because int might match the return type of a GCC
9934 builtin and then its argument prototype would still apply. */
9935 #ifdef __cplusplus
9936 extern "C"
9937 #endif
9938 char xmlFirstElementChild ();
9940 main ()
9942 return xmlFirstElementChild ();
9944 return 0;
9946 _ACEOF
9947 if ac_fn_c_try_link "$LINENO"; then :
9948 ac_cv_lib_xml2_xmlFirstElementChild=yes
9949 else
9950 ac_cv_lib_xml2_xmlFirstElementChild=no
9952 rm -f core conftest.err conftest.$ac_objext \
9953 conftest$ac_exeext conftest.$ac_ext
9954 LIBS=$ac_check_lib_save_LIBS
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9957 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9958 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9960 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9964 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9966 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9968 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9972 else
9973 XML2_CFLAGS=""
9974 XML2_LIBS=""
9976 CPPFLAGS="$ac_save_CPPFLAGS"
9978 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9979 case "x$with_xml" in
9980 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9981 xno) ;;
9982 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9983 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9984 esac
9987 if test "x$with_xslt" != "xno"
9988 then
9989 ac_save_CPPFLAGS="$CPPFLAGS"
9990 if test -n "$XSLT_CFLAGS"; then :
9992 elif test -n "$PKG_CONFIG"; then :
9993 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
9995 XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
9996 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
9997 if test -n "$XSLT_LIBS"; then :
9999 elif test -n "$PKG_CONFIG"; then :
10000 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
10002 XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
10003 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
10004 for ac_header in libxslt/pattern.h libxslt/transform.h
10005 do :
10006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10007 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
10008 # include <libxslt/pattern.h>
10009 #endif
10011 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10012 cat >>confdefs.h <<_ACEOF
10013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10014 _ACEOF
10018 done
10020 CPPFLAGS="$ac_save_CPPFLAGS"
10021 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10022 then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10024 $as_echo_n "checking for -lxslt... " >&6; }
10025 if ${ac_cv_lib_soname_xslt+:} false; then :
10026 $as_echo_n "(cached) " >&6
10027 else
10028 ac_check_soname_save_LIBS=$LIBS
10029 LIBS="-lxslt $XSLT_LIBS $LIBS"
10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10033 /* Override any GCC internal prototype to avoid an error.
10034 Use char because int might match the return type of a GCC
10035 builtin and then its argument prototype would still apply. */
10036 #ifdef __cplusplus
10037 extern "C"
10038 #endif
10039 char xsltCompilePattern ();
10041 main ()
10043 return xsltCompilePattern ();
10045 return 0;
10047 _ACEOF
10048 if ac_fn_c_try_link "$LINENO"; then :
10049 case "$LIBEXT" in
10050 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10051 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'` ;;
10052 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10053 if test "x$ac_cv_lib_soname_xslt" = x; then :
10054 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10055 fi ;;
10056 esac
10058 rm -f core conftest.err conftest.$ac_objext \
10059 conftest$ac_exeext conftest.$ac_ext
10060 LIBS=$ac_check_soname_save_LIBS
10062 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10064 $as_echo "not found" >&6; }
10066 else
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10068 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10070 cat >>confdefs.h <<_ACEOF
10071 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10072 _ACEOF
10076 else
10077 XSLT_CFLAGS=""
10080 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10081 case "x$with_xslt" in
10082 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10083 xno) ;;
10084 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10085 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10086 esac
10089 if test "x$with_dbus" != "xno"
10090 then
10091 ac_save_CPPFLAGS="$CPPFLAGS"
10092 if test -n "$DBUS_CFLAGS"; then :
10094 elif test -n "$PKG_CONFIG"; then :
10095 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10098 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10099 if test -n "$DBUS_LIBS"; then :
10101 elif test -n "$PKG_CONFIG"; then :
10102 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10106 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10107 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10109 $as_echo_n "checking for -ldbus-1... " >&6; }
10110 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 ac_check_soname_save_LIBS=$LIBS
10114 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10116 /* end confdefs.h. */
10118 /* Override any GCC internal prototype to avoid an error.
10119 Use char because int might match the return type of a GCC
10120 builtin and then its argument prototype would still apply. */
10121 #ifdef __cplusplus
10122 extern "C"
10123 #endif
10124 char dbus_connection_close ();
10126 main ()
10128 return dbus_connection_close ();
10130 return 0;
10132 _ACEOF
10133 if ac_fn_c_try_link "$LINENO"; then :
10134 case "$LIBEXT" in
10135 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10136 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'` ;;
10137 *) 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'`
10138 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10139 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10140 fi ;;
10141 esac
10143 rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10145 LIBS=$ac_check_soname_save_LIBS
10147 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10149 $as_echo "not found" >&6; }
10150 DBUS_CFLAGS=""
10151 else
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10153 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10155 cat >>confdefs.h <<_ACEOF
10156 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10157 _ACEOF
10161 else
10162 DBUS_CFLAGS=""
10166 CPPFLAGS="$ac_save_CPPFLAGS"
10168 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
10169 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10170 case "x$with_dbus" in
10171 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
10172 xno) ;;
10173 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
10174 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
10175 esac
10178 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
10179 then
10180 ac_save_CPPFLAGS="$CPPFLAGS"
10181 if test -n "$HAL_CFLAGS"; then :
10183 elif test -n "$PKG_CONFIG"; then :
10184 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
10187 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
10188 if test -n "$HAL_LIBS"; then :
10190 elif test -n "$PKG_CONFIG"; then :
10191 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
10194 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
10195 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
10196 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
10198 $as_echo_n "checking for -lhal... " >&6; }
10199 if ${ac_cv_lib_soname_hal+:} false; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 ac_check_soname_save_LIBS=$LIBS
10203 LIBS="-lhal $HAL_LIBS $LIBS"
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10207 /* Override any GCC internal prototype to avoid an error.
10208 Use char because int might match the return type of a GCC
10209 builtin and then its argument prototype would still apply. */
10210 #ifdef __cplusplus
10211 extern "C"
10212 #endif
10213 char libhal_ctx_new ();
10215 main ()
10217 return libhal_ctx_new ();
10219 return 0;
10221 _ACEOF
10222 if ac_fn_c_try_link "$LINENO"; then :
10223 case "$LIBEXT" in
10224 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10225 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'` ;;
10226 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10227 if test "x$ac_cv_lib_soname_hal" = x; then :
10228 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10229 fi ;;
10230 esac
10232 rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234 LIBS=$ac_check_soname_save_LIBS
10236 if test "x$ac_cv_lib_soname_hal" = "x"; then :
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10238 $as_echo "not found" >&6; }
10239 HAL_CFLAGS=""
10240 else
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
10242 $as_echo "$ac_cv_lib_soname_hal" >&6; }
10244 cat >>confdefs.h <<_ACEOF
10245 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
10246 _ACEOF
10250 else
10251 HAL_CFLAGS=""
10255 CPPFLAGS="$ac_save_CPPFLAGS"
10256 if test "x$ac_cv_lib_soname_hal" = "x" -a \
10257 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10258 case "x$with_hal" in
10259 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
10260 xno) ;;
10261 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
10262 This is an error since --with-hal was requested." "$LINENO" 5 ;;
10263 esac
10267 if test "x$with_gnutls" != "xno"
10268 then
10269 ac_save_CPPFLAGS="$CPPFLAGS"
10270 if test -n "$GNUTLS_CFLAGS"; then :
10272 elif test -n "$PKG_CONFIG"; then :
10273 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
10276 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
10277 if test -n "$GNUTLS_LIBS"; then :
10279 elif test -n "$PKG_CONFIG"; then :
10280 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
10284 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
10285 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288 #include <gnutls/gnutls.h>
10290 main ()
10292 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
10294 return 0;
10296 _ACEOF
10297 if ac_fn_c_try_compile "$LINENO"; then :
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
10299 $as_echo_n "checking for -lgnutls... " >&6; }
10300 if ${ac_cv_lib_soname_gnutls+:} false; then :
10301 $as_echo_n "(cached) " >&6
10302 else
10303 ac_check_soname_save_LIBS=$LIBS
10304 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
10305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10306 /* end confdefs.h. */
10308 /* Override any GCC internal prototype to avoid an error.
10309 Use char because int might match the return type of a GCC
10310 builtin and then its argument prototype would still apply. */
10311 #ifdef __cplusplus
10312 extern "C"
10313 #endif
10314 char gnutls_global_init ();
10316 main ()
10318 return gnutls_global_init ();
10320 return 0;
10322 _ACEOF
10323 if ac_fn_c_try_link "$LINENO"; then :
10324 case "$LIBEXT" in
10325 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10326 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'` ;;
10327 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10328 if test "x$ac_cv_lib_soname_gnutls" = x; then :
10329 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10330 fi ;;
10331 esac
10333 rm -f core conftest.err conftest.$ac_objext \
10334 conftest$ac_exeext conftest.$ac_ext
10335 LIBS=$ac_check_soname_save_LIBS
10337 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10339 $as_echo "not found" >&6; }
10340 GNUTLS_CFLAGS=""
10341 else
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
10343 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
10345 cat >>confdefs.h <<_ACEOF
10346 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
10347 _ACEOF
10352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10353 else
10354 GNUTLS_CFLAGS=""
10358 CPPFLAGS="$ac_save_CPPFLAGS"
10360 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10361 case "x$with_gnutls" in
10362 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
10363 xno) ;;
10364 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
10365 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
10366 esac
10369 CURSESLIBS=""
10370 if test "$ac_cv_header_ncurses_h" = "yes"
10371 then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
10373 $as_echo_n "checking for -lncurses... " >&6; }
10374 if ${ac_cv_lib_soname_ncurses+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 ac_check_soname_save_LIBS=$LIBS
10378 LIBS="-lncurses $LIBS"
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10382 /* Override any GCC internal prototype to avoid an error.
10383 Use char because int might match the return type of a GCC
10384 builtin and then its argument prototype would still apply. */
10385 #ifdef __cplusplus
10386 extern "C"
10387 #endif
10388 char waddch ();
10390 main ()
10392 return waddch ();
10394 return 0;
10396 _ACEOF
10397 if ac_fn_c_try_link "$LINENO"; then :
10398 case "$LIBEXT" in
10399 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10400 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'` ;;
10401 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10402 if test "x$ac_cv_lib_soname_ncurses" = x; then :
10403 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10404 fi ;;
10405 esac
10407 rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409 LIBS=$ac_check_soname_save_LIBS
10411 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10413 $as_echo "not found" >&6; }
10415 else
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
10417 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
10419 cat >>confdefs.h <<_ACEOF
10420 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
10421 _ACEOF
10423 CURSESLIBS="-lncurses"
10425 elif test "$ac_cv_header_curses_h" = "yes"
10426 then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
10428 $as_echo_n "checking for -lcurses... " >&6; }
10429 if ${ac_cv_lib_soname_curses+:} false; then :
10430 $as_echo_n "(cached) " >&6
10431 else
10432 ac_check_soname_save_LIBS=$LIBS
10433 LIBS="-lcurses $LIBS"
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10437 /* Override any GCC internal prototype to avoid an error.
10438 Use char because int might match the return type of a GCC
10439 builtin and then its argument prototype would still apply. */
10440 #ifdef __cplusplus
10441 extern "C"
10442 #endif
10443 char waddch ();
10445 main ()
10447 return waddch ();
10449 return 0;
10451 _ACEOF
10452 if ac_fn_c_try_link "$LINENO"; then :
10453 case "$LIBEXT" in
10454 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10455 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'` ;;
10456 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10457 if test "x$ac_cv_lib_soname_curses" = x; then :
10458 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10459 fi ;;
10460 esac
10462 rm -f core conftest.err conftest.$ac_objext \
10463 conftest$ac_exeext conftest.$ac_ext
10464 LIBS=$ac_check_soname_save_LIBS
10466 if test "x$ac_cv_lib_soname_curses" = "x"; then :
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10468 $as_echo "not found" >&6; }
10470 else
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
10472 $as_echo "$ac_cv_lib_soname_curses" >&6; }
10474 cat >>confdefs.h <<_ACEOF
10475 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
10476 _ACEOF
10478 CURSESLIBS="-lcurses"
10481 ac_save_LIBS="$LIBS"
10482 LIBS="$LIBS $CURSESLIBS"
10483 for ac_func in mousemask
10484 do :
10485 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
10486 if test "x$ac_cv_func_mousemask" = xyes; then :
10487 cat >>confdefs.h <<_ACEOF
10488 #define HAVE_MOUSEMASK 1
10489 _ACEOF
10492 done
10494 LIBS="$ac_save_LIBS"
10495 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
10496 case "x$with_curses" in
10497 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
10498 xno) ;;
10499 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
10500 This is an error since --with-curses was requested." "$LINENO" 5 ;;
10501 esac
10504 if test "x$with_sane" != "xno"
10505 then
10506 ac_save_CPPFLAGS="$CPPFLAGS"
10507 if test -n "$SANE_CFLAGS"; then :
10509 elif test -n "$PKG_CONFIG"; then :
10510 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
10512 SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
10513 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
10514 if test -n "$SANE_LIBS"; then :
10516 elif test -n "$PKG_CONFIG"; then :
10517 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
10519 SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
10521 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10522 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10524 $as_echo_n "checking for -lsane... " >&6; }
10525 if ${ac_cv_lib_soname_sane+:} false; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 ac_check_soname_save_LIBS=$LIBS
10529 LIBS="-lsane $SANE_LIBS $LIBS"
10530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10533 /* Override any GCC internal prototype to avoid an error.
10534 Use char because int might match the return type of a GCC
10535 builtin and then its argument prototype would still apply. */
10536 #ifdef __cplusplus
10537 extern "C"
10538 #endif
10539 char sane_init ();
10541 main ()
10543 return sane_init ();
10545 return 0;
10547 _ACEOF
10548 if ac_fn_c_try_link "$LINENO"; then :
10549 case "$LIBEXT" in
10550 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10551 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'` ;;
10552 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10553 if test "x$ac_cv_lib_soname_sane" = x; then :
10554 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10555 fi ;;
10556 esac
10558 rm -f core conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 LIBS=$ac_check_soname_save_LIBS
10562 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10564 $as_echo "not found" >&6; }
10565 SANE_CFLAGS=""
10566 else
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
10568 $as_echo "$ac_cv_lib_soname_sane" >&6; }
10570 cat >>confdefs.h <<_ACEOF
10571 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10572 _ACEOF
10576 SANE_CFLAGS=""
10580 CPPFLAGS="$ac_save_CPPFLAGS"
10582 if test "x$ac_cv_lib_soname_sane" = "x"; then :
10583 case "x$with_sane" in
10584 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
10585 xno) ;;
10586 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10587 This is an error since --with-sane was requested." "$LINENO" 5 ;;
10588 esac
10591 if test "x$with_v4l" != "xno"
10592 then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10594 $as_echo_n "checking for -lv4l1... " >&6; }
10595 if ${ac_cv_lib_soname_v4l1+:} false; then :
10596 $as_echo_n "(cached) " >&6
10597 else
10598 ac_check_soname_save_LIBS=$LIBS
10599 LIBS="-lv4l1 $LIBS"
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10603 /* Override any GCC internal prototype to avoid an error.
10604 Use char because int might match the return type of a GCC
10605 builtin and then its argument prototype would still apply. */
10606 #ifdef __cplusplus
10607 extern "C"
10608 #endif
10609 char v4l1_open ();
10611 main ()
10613 return v4l1_open ();
10615 return 0;
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"; then :
10619 case "$LIBEXT" in
10620 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10621 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'` ;;
10622 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10623 if test "x$ac_cv_lib_soname_v4l1" = x; then :
10624 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10625 fi ;;
10626 esac
10628 rm -f core conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
10630 LIBS=$ac_check_soname_save_LIBS
10632 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10634 $as_echo "not found" >&6; }
10636 else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10638 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10640 cat >>confdefs.h <<_ACEOF
10641 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10642 _ACEOF
10647 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10648 case "x$with_v4l" in
10649 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
10650 xno) ;;
10651 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10652 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
10653 esac
10656 if test "x$with_gphoto" != "xno"
10657 then
10658 ac_save_CPPFLAGS="$CPPFLAGS"
10659 if test -n "$GPHOTO2_CFLAGS"; then :
10661 elif test -n "$PKG_CONFIG"; then :
10662 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
10664 GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
10665 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
10666 if test -n "$GPHOTO2_LIBS"; then :
10668 elif test -n "$PKG_CONFIG"; then :
10669 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
10671 GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
10672 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
10673 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10674 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10676 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10677 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10678 $as_echo_n "(cached) " >&6
10679 else
10680 ac_check_lib_save_LIBS=$LIBS
10681 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10685 /* Override any GCC internal prototype to avoid an error.
10686 Use char because int might match the return type of a GCC
10687 builtin and then its argument prototype would still apply. */
10688 #ifdef __cplusplus
10689 extern "C"
10690 #endif
10691 char gp_camera_new ();
10693 main ()
10695 return gp_camera_new ();
10697 return 0;
10699 _ACEOF
10700 if ac_fn_c_try_link "$LINENO"; then :
10701 ac_cv_lib_gphoto2_gp_camera_new=yes
10702 else
10703 ac_cv_lib_gphoto2_gp_camera_new=no
10705 rm -f core conftest.err conftest.$ac_objext \
10706 conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10710 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10711 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10713 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10715 else
10716 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10719 else
10720 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
10724 if test -n "$GPHOTO2_PORT_CFLAGS"; then :
10726 elif test -n "$PKG_CONFIG"; then :
10727 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
10729 GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
10730 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
10731 if test -n "$GPHOTO2_PORT_LIBS"; then :
10733 elif test -n "$PKG_CONFIG"; then :
10734 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
10736 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
10737 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
10738 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
10739 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
10741 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
10742 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
10743 $as_echo_n "(cached) " >&6
10744 else
10745 ac_check_lib_save_LIBS=$LIBS
10746 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10750 /* Override any GCC internal prototype to avoid an error.
10751 Use char because int might match the return type of a GCC
10752 builtin and then its argument prototype would still apply. */
10753 #ifdef __cplusplus
10754 extern "C"
10755 #endif
10756 char gp_port_info_list_new ();
10758 main ()
10760 return gp_port_info_list_new ();
10762 return 0;
10764 _ACEOF
10765 if ac_fn_c_try_link "$LINENO"; then :
10766 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
10767 else
10768 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
10770 rm -f core conftest.err conftest.$ac_objext \
10771 conftest$ac_exeext conftest.$ac_ext
10772 LIBS=$ac_check_lib_save_LIBS
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
10775 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
10776 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
10778 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
10780 else
10781 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
10784 else
10785 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
10789 CPPFLAGS="$ac_save_CPPFLAGS"
10791 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10792 case "x$with_gphoto" in
10793 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10794 xno) ;;
10795 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10796 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10797 esac
10799 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
10800 case "x$with_gphoto" in
10801 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
10802 xno) ;;
10803 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
10804 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10805 esac
10809 if test "$ac_cv_header_resolv_h" = "yes"
10810 then
10811 ac_save_LIBS="$LIBS"
10812 for lib in '' -lresolv
10814 LIBS="$lib $ac_save_LIBS"
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10817 #ifdef HAVE_NETINET_IN_H
10818 #include <netinet/in.h>
10819 #endif
10820 #include <resolv.h>
10822 main ()
10824 res_query("foo",ns_c_in,0,0,0);
10826 return 0;
10828 _ACEOF
10829 if ac_fn_c_try_link "$LINENO"; then :
10831 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10833 RESOLVLIBS="$lib"
10836 rm -f core conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
10838 if test "${RESOLVLIBS+set}" = set; then
10839 break
10841 done
10842 LIBS="$ac_save_LIBS"
10845 LCMSLIBS=""
10847 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10848 then
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10850 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10851 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-llcms $LIBS"
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char cmsOpenProfileFromFile ();
10867 main ()
10869 return cmsOpenProfileFromFile ();
10871 return 0;
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10876 else
10877 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10884 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10885 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10887 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10889 LCMSLIBS="-llcms"
10893 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10894 case "x$with_cms" in
10895 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10896 xno) ;;
10897 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10898 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10899 esac
10902 if test "x$with_freetype" != "xno"
10903 then
10904 ac_save_CPPFLAGS="$CPPFLAGS"
10905 if test -n "$FREETYPE_CFLAGS"; then :
10907 elif test -n "$PKG_CONFIG"; then :
10908 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
10910 FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
10911 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
10912 if test -n "$FREETYPE_LIBS"; then :
10914 elif test -n "$PKG_CONFIG"; then :
10915 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
10917 FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
10918 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10920 $as_echo_n "checking for -lfreetype... " >&6; }
10921 if ${ac_cv_lib_soname_freetype+:} false; then :
10922 $as_echo_n "(cached) " >&6
10923 else
10924 ac_check_soname_save_LIBS=$LIBS
10925 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10929 /* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10932 #ifdef __cplusplus
10933 extern "C"
10934 #endif
10935 char FT_Init_FreeType ();
10937 main ()
10939 return FT_Init_FreeType ();
10941 return 0;
10943 _ACEOF
10944 if ac_fn_c_try_link "$LINENO"; then :
10945 case "$LIBEXT" in
10946 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10947 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'` ;;
10948 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10949 if test "x$ac_cv_lib_soname_freetype" = x; then :
10950 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10951 fi ;;
10952 esac
10954 rm -f core conftest.err conftest.$ac_objext \
10955 conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_soname_save_LIBS
10958 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10960 $as_echo "not found" >&6; }
10961 ft_lib=no
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10964 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10966 cat >>confdefs.h <<_ACEOF
10967 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10968 _ACEOF
10970 ft_lib=yes
10972 if test "$ft_lib" = "yes"
10973 then
10974 for ac_header in ft2build.h \
10975 freetype/freetype.h \
10976 freetype/ftglyph.h \
10977 freetype/fttypes.h \
10978 freetype/tttables.h \
10979 freetype/ftsnames.h \
10980 freetype/ttnameid.h \
10981 freetype/ftoutln.h \
10982 freetype/ftwinfnt.h \
10983 freetype/ftmodapi.h \
10984 freetype/ftlcdfil.h
10985 do :
10986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10987 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10988 # include <ft2build.h>
10989 #endif
10991 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10992 cat >>confdefs.h <<_ACEOF
10993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10994 _ACEOF
10998 done
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h. */
11002 #include <ft2build.h>
11003 #include <freetype/fttrigon.h>
11004 _ACEOF
11005 if ac_fn_c_try_cpp "$LINENO"; then :
11007 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
11009 wine_cv_fttrigon=yes
11010 else
11011 wine_cv_fttrigon=no
11013 rm -f conftest.err conftest.i conftest.$ac_ext
11014 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
11016 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
11018 cat >>confdefs.h <<_ACEOF
11019 #define HAVE_FT_TRUETYPEENGINETYPE 1
11020 _ACEOF
11025 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
11026 then
11028 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11030 else
11031 FREETYPE_LIBS=""
11033 else
11034 FREETYPE_LIBS=""
11036 CPPFLAGS="$ac_save_CPPFLAGS"
11038 if test "x$ac_cv_header_freetype_freetype_h" != xyes -o "x$wine_cv_fttrigon" != xyes; then :
11039 case "x$with_freetype" in
11040 xno) ;;
11041 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
11042 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
11043 esac
11045 test "x$ac_cv_header_freetype_freetype_h" = xyes -a "x$wine_cv_fttrigon" = xyes || enable_fonts=${enable_fonts:-no}
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
11048 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
11049 if ${ac_cv_c_ppdev+:} false; then :
11050 $as_echo_n "(cached) " >&6
11051 else
11052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11053 /* end confdefs.h. */
11054 #ifdef HAVE_SYS_IOCTL_H
11055 # include <sys/ioctl.h>
11056 #endif
11057 #include <linux/ppdev.h>
11059 main ()
11061 ioctl (1,PPCLAIM,0)
11063 return 0;
11065 _ACEOF
11066 if ac_fn_c_try_compile "$LINENO"; then :
11067 ac_cv_c_ppdev="yes"
11068 else
11069 ac_cv_c_ppdev="no"
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11074 $as_echo "$ac_cv_c_ppdev" >&6; }
11075 if test "$ac_cv_c_ppdev" = "yes"
11076 then
11078 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11082 ac_wine_check_funcs_save_LIBS="$LIBS"
11083 LIBS="$LIBS $LIBPTHREAD"
11084 for ac_func in \
11085 pthread_attr_get_np \
11086 pthread_getattr_np \
11087 pthread_getthreadid_np \
11088 pthread_get_stackaddr_np \
11089 pthread_get_stacksize_np
11090 do :
11091 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11092 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11093 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11094 cat >>confdefs.h <<_ACEOF
11095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11096 _ACEOF
11099 done
11101 LIBS="$ac_wine_check_funcs_save_LIBS"
11103 if test "$ac_cv_header_zlib_h" = "yes"
11104 then
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11106 $as_echo_n "checking for inflate in -lz... " >&6; }
11107 if ${ac_cv_lib_z_inflate+:} false; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110 ac_check_lib_save_LIBS=$LIBS
11111 LIBS="-lz $LIBS"
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11115 /* Override any GCC internal prototype to avoid an error.
11116 Use char because int might match the return type of a GCC
11117 builtin and then its argument prototype would still apply. */
11118 #ifdef __cplusplus
11119 extern "C"
11120 #endif
11121 char inflate ();
11123 main ()
11125 return inflate ();
11127 return 0;
11129 _ACEOF
11130 if ac_fn_c_try_link "$LINENO"; then :
11131 ac_cv_lib_z_inflate=yes
11132 else
11133 ac_cv_lib_z_inflate=no
11135 rm -f core conftest.err conftest.$ac_objext \
11136 conftest$ac_exeext conftest.$ac_ext
11137 LIBS=$ac_check_lib_save_LIBS
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11140 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11141 if test "x$ac_cv_lib_z_inflate" = xyes; then :
11143 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11145 ZLIB="-lz"
11150 if test "x$ZLIB" = "x"; then :
11151 case "x$with_zlib" in
11152 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
11153 xno) ;;
11154 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
11155 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
11156 esac
11159 if test "x$enable_tools" != xno
11160 then
11161 if test "$ac_cv_header_gettext_po_h" = "yes"
11162 then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
11164 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
11165 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 ac_check_lib_save_LIBS=$LIBS
11169 LIBS="-lgettextpo $LIBS"
11170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11173 /* Override any GCC internal prototype to avoid an error.
11174 Use char because int might match the return type of a GCC
11175 builtin and then its argument prototype would still apply. */
11176 #ifdef __cplusplus
11177 extern "C"
11178 #endif
11179 char po_message_msgctxt ();
11181 main ()
11183 return po_message_msgctxt ();
11185 return 0;
11187 _ACEOF
11188 if ac_fn_c_try_link "$LINENO"; then :
11189 ac_cv_lib_gettextpo_po_message_msgctxt=yes
11190 else
11191 ac_cv_lib_gettextpo_po_message_msgctxt=no
11193 rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195 LIBS=$ac_check_lib_save_LIBS
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
11198 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
11199 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
11201 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
11203 LIBGETTEXTPO="-lgettextpo"
11208 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
11209 case "x$with_gettextpo" in
11210 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
11211 xno) ;;
11212 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
11213 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
11214 esac
11218 if test "x$with_gstreamer" != "xno"
11219 then
11220 ac_save_CPPFLAGS="$CPPFLAGS"
11221 if test -n "$GSTREAMER_CFLAGS"; then :
11223 elif test -n "$PKG_CONFIG"; then :
11224 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
11227 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
11228 if test -n "$GSTREAMER_LIBS"; then :
11230 elif test -n "$PKG_CONFIG"; then :
11231 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
11235 ac_gst_incl=""
11236 for i in $GSTREAMER_CFLAGS
11238 case "$i" in
11239 -I*) ac_gst_incl="$ac_gst_incl $i";;
11240 esac
11241 done
11242 GSTREAMER_CFLAGS=$ac_gst_incl
11243 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
11244 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
11245 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
11246 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
11247 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
11249 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
11250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251 /* end confdefs.h. */
11252 #include <gst/app/gstappsink.h>
11254 main ()
11256 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
11258 return 0;
11260 _ACEOF
11261 if ac_fn_c_try_compile "$LINENO"; then :
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11263 $as_echo "yes" >&6; }
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
11265 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
11266 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
11267 $as_echo_n "(cached) " >&6
11268 else
11269 ac_check_lib_save_LIBS=$LIBS
11270 LIBS="-lgstreamer-0.10 $LIBS"
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11274 /* Override any GCC internal prototype to avoid an error.
11275 Use char because int might match the return type of a GCC
11276 builtin and then its argument prototype would still apply. */
11277 #ifdef __cplusplus
11278 extern "C"
11279 #endif
11280 char gst_pad_get_caps_reffed ();
11282 main ()
11284 return gst_pad_get_caps_reffed ();
11286 return 0;
11288 _ACEOF
11289 if ac_fn_c_try_link "$LINENO"; then :
11290 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
11291 else
11292 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
11294 rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11296 LIBS=$ac_check_lib_save_LIBS
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
11299 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
11300 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
11302 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
11303 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 ac_check_lib_save_LIBS=$LIBS
11307 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h. */
11311 /* Override any GCC internal prototype to avoid an error.
11312 Use char because int might match the return type of a GCC
11313 builtin and then its argument prototype would still apply. */
11314 #ifdef __cplusplus
11315 extern "C"
11316 #endif
11317 char gst_app_buffer_new ();
11319 main ()
11321 return gst_app_buffer_new ();
11323 return 0;
11325 _ACEOF
11326 if ac_fn_c_try_link "$LINENO"; then :
11327 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
11328 else
11329 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
11331 rm -f core conftest.err conftest.$ac_objext \
11332 conftest$ac_exeext conftest.$ac_ext
11333 LIBS=$ac_check_lib_save_LIBS
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
11336 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
11337 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
11343 else
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345 $as_echo "no" >&6; }
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11351 else
11352 GSTREAMER_CFLAGS=""
11356 CPPFLAGS="$ac_save_CPPFLAGS"
11358 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
11359 case "x$with_gstreamer" in
11360 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
11361 xno) ;;
11362 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
11363 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
11364 esac
11366 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
11368 ALSALIBS=""
11370 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11371 then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
11373 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
11374 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
11375 $as_echo_n "(cached) " >&6
11376 else
11377 ac_check_lib_save_LIBS=$LIBS
11378 LIBS="-lasound $LIBS"
11379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380 /* end confdefs.h. */
11382 /* Override any GCC internal prototype to avoid an error.
11383 Use char because int might match the return type of a GCC
11384 builtin and then its argument prototype would still apply. */
11385 #ifdef __cplusplus
11386 extern "C"
11387 #endif
11388 char snd_pcm_hw_params_get_access_mask ();
11390 main ()
11392 return snd_pcm_hw_params_get_access_mask ();
11394 return 0;
11396 _ACEOF
11397 if ac_fn_c_try_link "$LINENO"; then :
11398 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
11399 else
11400 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
11402 rm -f core conftest.err conftest.$ac_objext \
11403 conftest$ac_exeext conftest.$ac_ext
11404 LIBS=$ac_check_lib_save_LIBS
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11407 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11408 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11411 #ifdef HAVE_ALSA_ASOUNDLIB_H
11412 #include <alsa/asoundlib.h>
11413 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11414 #include <sys/asoundlib.h>
11415 #endif
11417 main ()
11419 snd_pcm_hw_params_get_access_mask(NULL, NULL)
11421 return 0;
11423 _ACEOF
11424 if ac_fn_c_try_compile "$LINENO"; then :
11425 ALSALIBS="-lasound"
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11432 if test "x$with_oss" != xno
11433 then
11434 ac_save_CPPFLAGS="$CPPFLAGS"
11435 if test -f /etc/oss.conf
11436 then
11437 . /etc/oss.conf
11439 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11440 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11441 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11442 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11443 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11445 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11447 cat >>confdefs.h <<_ACEOF
11448 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11449 _ACEOF
11451 OSS4INCL="$ac_oss_incl"
11458 CPPFLAGS="$ac_save_CPPFLAGS"
11459 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11460 then
11461 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11466 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
11467 then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
11469 $as_echo_n "checking for -lcapi20... " >&6; }
11470 if ${ac_cv_lib_soname_capi20+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473 ac_check_soname_save_LIBS=$LIBS
11474 LIBS="-lcapi20 $LIBS"
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11478 /* Override any GCC internal prototype to avoid an error.
11479 Use char because int might match the return type of a GCC
11480 builtin and then its argument prototype would still apply. */
11481 #ifdef __cplusplus
11482 extern "C"
11483 #endif
11484 char capi20_register ();
11486 main ()
11488 return capi20_register ();
11490 return 0;
11492 _ACEOF
11493 if ac_fn_c_try_link "$LINENO"; then :
11494 case "$LIBEXT" in
11495 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11496 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'` ;;
11497 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11498 if test "x$ac_cv_lib_soname_capi20" = x; then :
11499 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11500 fi ;;
11501 esac
11503 rm -f core conftest.err conftest.$ac_objext \
11504 conftest$ac_exeext conftest.$ac_ext
11505 LIBS=$ac_check_soname_save_LIBS
11507 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11509 $as_echo "not found" >&6; }
11511 else
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
11513 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
11515 cat >>confdefs.h <<_ACEOF
11516 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
11517 _ACEOF
11522 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11523 case "x$with_capi" in
11524 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
11525 xno) ;;
11526 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11527 This is an error since --with-capi was requested." "$LINENO" 5 ;;
11528 esac
11531 CUPSINCL=""
11533 if test "x$with_cups" != "xno"
11534 then
11535 ac_save_CPPFLAGS="$CPPFLAGS"
11536 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
11537 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
11538 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
11539 for ac_header in cups/cups.h
11540 do :
11541 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11542 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
11543 cat >>confdefs.h <<_ACEOF
11544 #define HAVE_CUPS_CUPS_H 1
11545 _ACEOF
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
11547 $as_echo_n "checking for -lcups... " >&6; }
11548 if ${ac_cv_lib_soname_cups+:} false; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 ac_check_soname_save_LIBS=$LIBS
11552 LIBS="-lcups $ac_cups_libs $LIBS"
11553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11554 /* end confdefs.h. */
11556 /* Override any GCC internal prototype to avoid an error.
11557 Use char because int might match the return type of a GCC
11558 builtin and then its argument prototype would still apply. */
11559 #ifdef __cplusplus
11560 extern "C"
11561 #endif
11562 char cupsGetDefault ();
11564 main ()
11566 return cupsGetDefault ();
11568 return 0;
11570 _ACEOF
11571 if ac_fn_c_try_link "$LINENO"; then :
11572 case "$LIBEXT" in
11573 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11574 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'` ;;
11575 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11576 if test "x$ac_cv_lib_soname_cups" = x; then :
11577 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11578 fi ;;
11579 esac
11581 rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11583 LIBS=$ac_check_soname_save_LIBS
11585 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11587 $as_echo "not found" >&6; }
11589 else
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
11591 $as_echo "$ac_cv_lib_soname_cups" >&6; }
11593 cat >>confdefs.h <<_ACEOF
11594 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11595 _ACEOF
11597 CUPSINCL="$ac_cups_cflags"
11601 done
11603 CPPFLAGS="$ac_save_CPPFLAGS"
11605 if test "x$ac_cv_lib_soname_cups" = "x"; then :
11606 case "x$with_cups" in
11607 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
11608 xno) ;;
11609 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11610 This is an error since --with-cups was requested." "$LINENO" 5 ;;
11611 esac
11614 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11615 then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11617 $as_echo_n "checking for -lfontconfig... " >&6; }
11618 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11621 ac_check_soname_save_LIBS=$LIBS
11622 LIBS="-lfontconfig $LIBS"
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11629 #ifdef __cplusplus
11630 extern "C"
11631 #endif
11632 char FcInit ();
11634 main ()
11636 return FcInit ();
11638 return 0;
11640 _ACEOF
11641 if ac_fn_c_try_link "$LINENO"; then :
11642 case "$LIBEXT" in
11643 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11644 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'` ;;
11645 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11646 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11647 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11648 fi ;;
11649 esac
11651 rm -f core conftest.err conftest.$ac_objext \
11652 conftest$ac_exeext conftest.$ac_ext
11653 LIBS=$ac_check_soname_save_LIBS
11655 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11657 $as_echo "not found" >&6; }
11659 else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11661 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11663 cat >>confdefs.h <<_ACEOF
11664 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11665 _ACEOF
11669 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11670 then
11671 ac_save_CPPFLAGS="$CPPFLAGS"
11672 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11673 $as_unset ac_cv_header_fontconfig_fontconfig_h
11674 for ac_header in fontconfig/fontconfig.h
11675 do :
11676 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11677 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11678 cat >>confdefs.h <<_ACEOF
11679 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11680 _ACEOF
11684 done
11686 CPPFLAGS="$ac_save_CPPFLAGS"
11687 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11688 then
11689 FONTCONFIGINCL="$X_CFLAGS"
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11692 $as_echo_n "checking for -lfontconfig... " >&6; }
11693 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11694 $as_echo_n "(cached) " >&6
11695 else
11696 ac_check_soname_save_LIBS=$LIBS
11697 LIBS="-lfontconfig $X_LIBS $LIBS"
11698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h. */
11701 /* Override any GCC internal prototype to avoid an error.
11702 Use char because int might match the return type of a GCC
11703 builtin and then its argument prototype would still apply. */
11704 #ifdef __cplusplus
11705 extern "C"
11706 #endif
11707 char FcInit ();
11709 main ()
11711 return FcInit ();
11713 return 0;
11715 _ACEOF
11716 if ac_fn_c_try_link "$LINENO"; then :
11717 case "$LIBEXT" in
11718 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11719 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'` ;;
11720 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11721 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
11722 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11723 fi ;;
11724 esac
11726 rm -f core conftest.err conftest.$ac_objext \
11727 conftest$ac_exeext conftest.$ac_ext
11728 LIBS=$ac_check_soname_save_LIBS
11730 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11732 $as_echo "not found" >&6; }
11734 else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11736 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11738 cat >>confdefs.h <<_ACEOF
11739 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11740 _ACEOF
11746 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11747 case "x$with_fontconfig" in
11748 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11749 xno) ;;
11750 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11751 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11752 esac
11755 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11756 then
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11758 $as_echo_n "checking for -lgsm... " >&6; }
11759 if ${ac_cv_lib_soname_gsm+:} false; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 ac_check_soname_save_LIBS=$LIBS
11763 LIBS="-lgsm $LIBS"
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11770 #ifdef __cplusplus
11771 extern "C"
11772 #endif
11773 char gsm_create ();
11775 main ()
11777 return gsm_create ();
11779 return 0;
11781 _ACEOF
11782 if ac_fn_c_try_link "$LINENO"; then :
11783 case "$LIBEXT" in
11784 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11785 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'` ;;
11786 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11787 if test "x$ac_cv_lib_soname_gsm" = x; then :
11788 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11789 fi ;;
11790 esac
11792 rm -f core conftest.err conftest.$ac_objext \
11793 conftest$ac_exeext conftest.$ac_ext
11794 LIBS=$ac_check_soname_save_LIBS
11796 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11798 $as_echo "not found" >&6; }
11800 else
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11802 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11804 cat >>confdefs.h <<_ACEOF
11805 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11806 _ACEOF
11811 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11812 case "x$with_gsm" in
11813 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11814 xno) ;;
11815 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11816 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11817 esac
11820 if test "$ac_cv_header_jpeglib_h" = "yes"
11821 then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11823 $as_echo_n "checking for -ljpeg... " >&6; }
11824 if ${ac_cv_lib_soname_jpeg+:} false; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827 ac_check_soname_save_LIBS=$LIBS
11828 LIBS="-ljpeg $LIBS"
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11832 /* Override any GCC internal prototype to avoid an error.
11833 Use char because int might match the return type of a GCC
11834 builtin and then its argument prototype would still apply. */
11835 #ifdef __cplusplus
11836 extern "C"
11837 #endif
11838 char jpeg_start_decompress ();
11840 main ()
11842 return jpeg_start_decompress ();
11844 return 0;
11846 _ACEOF
11847 if ac_fn_c_try_link "$LINENO"; then :
11848 case "$LIBEXT" in
11849 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11850 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'` ;;
11851 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11852 if test "x$ac_cv_lib_soname_jpeg" = x; then :
11853 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11854 fi ;;
11855 esac
11857 rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11859 LIBS=$ac_check_soname_save_LIBS
11861 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11863 $as_echo "not found" >&6; }
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11867 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11869 cat >>confdefs.h <<_ACEOF
11870 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11871 _ACEOF
11876 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11877 case "x$with_jpeg" in
11878 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11879 xno) ;;
11880 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11881 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11882 esac
11885 if test "$ac_cv_header_png_h" = "yes"
11886 then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11888 $as_echo_n "checking for -lpng... " >&6; }
11889 if ${ac_cv_lib_soname_png+:} false; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 ac_check_soname_save_LIBS=$LIBS
11893 LIBS="-lpng -lm -lz $LIBS"
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11897 /* Override any GCC internal prototype to avoid an error.
11898 Use char because int might match the return type of a GCC
11899 builtin and then its argument prototype would still apply. */
11900 #ifdef __cplusplus
11901 extern "C"
11902 #endif
11903 char png_create_read_struct ();
11905 main ()
11907 return png_create_read_struct ();
11909 return 0;
11911 _ACEOF
11912 if ac_fn_c_try_link "$LINENO"; then :
11913 case "$LIBEXT" in
11914 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11915 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'` ;;
11916 *) 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'`
11917 if test "x$ac_cv_lib_soname_png" = x; then :
11918 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11919 fi ;;
11920 esac
11922 rm -f core conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924 LIBS=$ac_check_soname_save_LIBS
11926 if test "x$ac_cv_lib_soname_png" = "x"; then :
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11928 $as_echo "not found" >&6; }
11930 else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11932 $as_echo "$ac_cv_lib_soname_png" >&6; }
11934 cat >>confdefs.h <<_ACEOF
11935 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11936 _ACEOF
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11941 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11942 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 ac_check_lib_save_LIBS=$LIBS
11946 LIBS="-lpng -lm -lz $LIBS"
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11950 /* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 char png_set_expand_gray_1_2_4_to_8 ();
11958 main ()
11960 return png_set_expand_gray_1_2_4_to_8 ();
11962 return 0;
11964 _ACEOF
11965 if ac_fn_c_try_link "$LINENO"; then :
11966 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11967 else
11968 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11970 rm -f core conftest.err conftest.$ac_objext \
11971 conftest$ac_exeext conftest.$ac_ext
11972 LIBS=$ac_check_lib_save_LIBS
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11975 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11976 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11978 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11983 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11984 then
11985 ac_save_CPPFLAGS="$CPPFLAGS"
11986 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11987 $as_unset ac_cv_header_png_h
11988 for ac_header in png.h
11989 do :
11990 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11991 if test "x$ac_cv_header_png_h" = xyes; then :
11992 cat >>confdefs.h <<_ACEOF
11993 #define HAVE_PNG_H 1
11994 _ACEOF
11998 done
12000 CPPFLAGS="$ac_save_CPPFLAGS"
12001 if test "$ac_cv_header_png_h" = "yes"
12002 then
12003 PNGINCL="$X_CFLAGS"
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
12006 $as_echo_n "checking for -lpng... " >&6; }
12007 if ${ac_cv_lib_soname_png+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 ac_check_soname_save_LIBS=$LIBS
12011 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
12012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12013 /* end confdefs.h. */
12015 /* Override any GCC internal prototype to avoid an error.
12016 Use char because int might match the return type of a GCC
12017 builtin and then its argument prototype would still apply. */
12018 #ifdef __cplusplus
12019 extern "C"
12020 #endif
12021 char png_create_read_struct ();
12023 main ()
12025 return png_create_read_struct ();
12027 return 0;
12029 _ACEOF
12030 if ac_fn_c_try_link "$LINENO"; then :
12031 case "$LIBEXT" in
12032 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12033 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'` ;;
12034 *) 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'`
12035 if test "x$ac_cv_lib_soname_png" = x; then :
12036 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12037 fi ;;
12038 esac
12040 rm -f core conftest.err conftest.$ac_objext \
12041 conftest$ac_exeext conftest.$ac_ext
12042 LIBS=$ac_check_soname_save_LIBS
12044 if test "x$ac_cv_lib_soname_png" = "x"; then :
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12046 $as_echo "not found" >&6; }
12048 else
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
12050 $as_echo "$ac_cv_lib_soname_png" >&6; }
12052 cat >>confdefs.h <<_ACEOF
12053 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
12054 _ACEOF
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
12059 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
12060 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 ac_check_lib_save_LIBS=$LIBS
12064 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12068 /* Override any GCC internal prototype to avoid an error.
12069 Use char because int might match the return type of a GCC
12070 builtin and then its argument prototype would still apply. */
12071 #ifdef __cplusplus
12072 extern "C"
12073 #endif
12074 char png_set_expand_gray_1_2_4_to_8 ();
12076 main ()
12078 return png_set_expand_gray_1_2_4_to_8 ();
12080 return 0;
12082 _ACEOF
12083 if ac_fn_c_try_link "$LINENO"; then :
12084 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
12085 else
12086 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
12088 rm -f core conftest.err conftest.$ac_objext \
12089 conftest$ac_exeext conftest.$ac_ext
12090 LIBS=$ac_check_lib_save_LIBS
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
12093 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
12094 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
12095 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12101 if test "x$ac_cv_lib_soname_png" = "x"; then :
12102 case "x$with_png" in
12103 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12104 xno) ;;
12105 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12106 This is an error since --with-png was requested." "$LINENO" 5 ;;
12107 esac
12110 if test "$ac_cv_header_tiffio_h" = "yes"
12111 then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12113 $as_echo_n "checking for -ltiff... " >&6; }
12114 if ${ac_cv_lib_soname_tiff+:} false; then :
12115 $as_echo_n "(cached) " >&6
12116 else
12117 ac_check_soname_save_LIBS=$LIBS
12118 LIBS="-ltiff $LIBS"
12119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h. */
12122 /* Override any GCC internal prototype to avoid an error.
12123 Use char because int might match the return type of a GCC
12124 builtin and then its argument prototype would still apply. */
12125 #ifdef __cplusplus
12126 extern "C"
12127 #endif
12128 char TIFFClientOpen ();
12130 main ()
12132 return TIFFClientOpen ();
12134 return 0;
12136 _ACEOF
12137 if ac_fn_c_try_link "$LINENO"; then :
12138 case "$LIBEXT" in
12139 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12140 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'` ;;
12141 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12142 if test "x$ac_cv_lib_soname_tiff" = x; then :
12143 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12144 fi ;;
12145 esac
12147 rm -f core conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12149 LIBS=$ac_check_soname_save_LIBS
12151 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12153 $as_echo "not found" >&6; }
12155 else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
12157 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
12159 cat >>confdefs.h <<_ACEOF
12160 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
12161 _ACEOF
12166 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12167 case "x$with_tiff" in
12168 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
12169 xno) ;;
12170 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
12171 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
12172 esac
12175 if test "$ac_cv_header_mpg123_h" = "yes"
12176 then
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
12178 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
12179 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
12180 $as_echo_n "(cached) " >&6
12181 else
12182 ac_check_lib_save_LIBS=$LIBS
12183 LIBS="-lmpg123 $LIBS"
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12187 /* Override any GCC internal prototype to avoid an error.
12188 Use char because int might match the return type of a GCC
12189 builtin and then its argument prototype would still apply. */
12190 #ifdef __cplusplus
12191 extern "C"
12192 #endif
12193 char mpg123_feed ();
12195 main ()
12197 return mpg123_feed ();
12199 return 0;
12201 _ACEOF
12202 if ac_fn_c_try_link "$LINENO"; then :
12203 ac_cv_lib_mpg123_mpg123_feed=yes
12204 else
12205 ac_cv_lib_mpg123_mpg123_feed=no
12207 rm -f core conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
12209 LIBS=$ac_check_lib_save_LIBS
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
12212 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
12213 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
12214 LIBMPG123="-lmpg123"
12219 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
12220 case "x$with_mpg123" in
12221 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
12222 xno) ;;
12223 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
12224 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
12225 esac
12227 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}
12229 if test "$ac_cv_header_AL_al_h" = "yes"
12230 then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
12232 $as_echo_n "checking for -lopenal... " >&6; }
12233 if ${ac_cv_lib_soname_openal+:} false; then :
12234 $as_echo_n "(cached) " >&6
12235 else
12236 ac_check_soname_save_LIBS=$LIBS
12237 LIBS="-lopenal $LIBS"
12238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239 /* end confdefs.h. */
12241 /* Override any GCC internal prototype to avoid an error.
12242 Use char because int might match the return type of a GCC
12243 builtin and then its argument prototype would still apply. */
12244 #ifdef __cplusplus
12245 extern "C"
12246 #endif
12247 char alGetSource3i ();
12249 main ()
12251 return alGetSource3i ();
12253 return 0;
12255 _ACEOF
12256 if ac_fn_c_try_link "$LINENO"; then :
12257 case "$LIBEXT" in
12258 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12259 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'` ;;
12260 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12261 if test "x$ac_cv_lib_soname_openal" = x; then :
12262 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12263 fi ;;
12264 esac
12266 rm -f core conftest.err conftest.$ac_objext \
12267 conftest$ac_exeext conftest.$ac_ext
12268 LIBS=$ac_check_soname_save_LIBS
12270 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12272 $as_echo "not found" >&6; }
12274 else
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12276 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12278 cat >>confdefs.h <<_ACEOF
12279 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12280 _ACEOF
12282 LIBOPENAL="-lopenal"
12284 ac_cv_lib_openal=yes
12286 cat >>confdefs.h <<_ACEOF
12287 #define HAVE_OPENAL 1
12288 _ACEOF
12292 if test "x$ac_cv_lib_openal" != xyes; then :
12293 case "x$with_openal" in
12294 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12295 xno) ;;
12296 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12297 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12298 esac
12300 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12302 if test "$ac_cv_header_kstat_h" = "yes"
12303 then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12305 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12306 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12307 $as_echo_n "(cached) " >&6
12308 else
12309 ac_check_lib_save_LIBS=$LIBS
12310 LIBS="-lkstat $LIBS"
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12314 /* Override any GCC internal prototype to avoid an error.
12315 Use char because int might match the return type of a GCC
12316 builtin and then its argument prototype would still apply. */
12317 #ifdef __cplusplus
12318 extern "C"
12319 #endif
12320 char kstat_open ();
12322 main ()
12324 return kstat_open ();
12326 return 0;
12328 _ACEOF
12329 if ac_fn_c_try_link "$LINENO"; then :
12330 ac_cv_lib_kstat_kstat_open=yes
12331 else
12332 ac_cv_lib_kstat_kstat_open=no
12334 rm -f core conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext conftest.$ac_ext
12336 LIBS=$ac_check_lib_save_LIBS
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12339 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12340 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12342 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12344 LIBKSTAT="-lkstat"
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12351 $as_echo_n "checking for -lodbc... " >&6; }
12352 if ${ac_cv_lib_soname_odbc+:} false; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 ac_check_soname_save_LIBS=$LIBS
12356 LIBS="-lodbc $LIBS"
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12360 /* Override any GCC internal prototype to avoid an error.
12361 Use char because int might match the return type of a GCC
12362 builtin and then its argument prototype would still apply. */
12363 #ifdef __cplusplus
12364 extern "C"
12365 #endif
12366 char SQLConnect ();
12368 main ()
12370 return SQLConnect ();
12372 return 0;
12374 _ACEOF
12375 if ac_fn_c_try_link "$LINENO"; then :
12376 case "$LIBEXT" in
12377 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12378 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'` ;;
12379 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12380 if test "x$ac_cv_lib_soname_odbc" = x; then :
12381 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12382 fi ;;
12383 esac
12385 rm -f core conftest.err conftest.$ac_objext \
12386 conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_soname_save_LIBS
12389 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12391 $as_echo "not found" >&6; }
12392 cat >>confdefs.h <<_ACEOF
12393 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12394 _ACEOF
12396 else
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12398 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12400 cat >>confdefs.h <<_ACEOF
12401 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12402 _ACEOF
12407 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12408 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12409 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
12410 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12412 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
12413 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
12414 "x$with_alsa$with_coreaudio$with_oss" != xnonono
12415 then
12416 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
12420 EXTRACFLAGS=""
12422 if test "x${GCC}" = "xyes"
12423 then
12424 EXTRACFLAGS="-Wall -pipe"
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
12427 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
12428 if ${ac_cv_c_gcc_strength_bug+:} false; then :
12429 $as_echo_n "(cached) " >&6
12430 else
12431 if test "$cross_compiling" = yes; then :
12432 ac_cv_c_gcc_strength_bug="yes"
12433 else
12434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435 /* end confdefs.h. */
12436 int L[4] = {0,1,2,3};
12438 main ()
12440 static int Array[3];
12441 unsigned int B = 3;
12442 int i;
12443 for(i=0; i<B; i++) Array[i] = i - 3;
12444 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12445 L[i] = 4;
12446 return (Array[1] != -2 || L[2] != 3)
12448 return 0;
12450 _ACEOF
12451 if ac_fn_c_try_run "$LINENO"; then :
12452 ac_cv_c_gcc_strength_bug="no"
12453 else
12454 ac_cv_c_gcc_strength_bug="yes"
12456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12457 conftest.$ac_objext conftest.beam conftest.$ac_ext
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
12462 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
12463 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12464 then
12465 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
12469 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
12470 if ${ac_cv_cflags__fno_builtin+:} false; then :
12471 $as_echo_n "(cached) " >&6
12472 else
12473 ac_wine_try_cflags_saved=$CFLAGS
12474 CFLAGS="$CFLAGS -fno-builtin"
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12477 int main(int argc, char **argv) { return 0; }
12478 _ACEOF
12479 if ac_fn_c_try_link "$LINENO"; then :
12480 ac_cv_cflags__fno_builtin=yes
12481 else
12482 ac_cv_cflags__fno_builtin=no
12484 rm -f core conftest.err conftest.$ac_objext \
12485 conftest$ac_exeext conftest.$ac_ext
12486 CFLAGS=$ac_wine_try_cflags_saved
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
12489 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
12490 if test $ac_cv_cflags__fno_builtin = yes; then :
12491 BUILTINFLAG="-fno-builtin"
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
12495 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
12496 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 ac_wine_try_cflags_saved=$CFLAGS
12500 CFLAGS="$CFLAGS -fno-strict-aliasing"
12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h. */
12503 int main(int argc, char **argv) { return 0; }
12504 _ACEOF
12505 if ac_fn_c_try_link "$LINENO"; then :
12506 ac_cv_cflags__fno_strict_aliasing=yes
12507 else
12508 ac_cv_cflags__fno_strict_aliasing=no
12510 rm -f core conftest.err conftest.$ac_objext \
12511 conftest$ac_exeext conftest.$ac_ext
12512 CFLAGS=$ac_wine_try_cflags_saved
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
12515 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
12516 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
12517 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
12520 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
12521 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 ac_wine_try_cflags_saved=$CFLAGS
12525 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528 int main(int argc, char **argv) { return 0; }
12529 _ACEOF
12530 if ac_fn_c_try_link "$LINENO"; then :
12531 ac_cv_cflags__Wdeclaration_after_statement=yes
12532 else
12533 ac_cv_cflags__Wdeclaration_after_statement=no
12535 rm -f core conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
12537 CFLAGS=$ac_wine_try_cflags_saved
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
12540 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
12541 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
12542 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12545 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12546 if ${ac_cv_cflags__Wempty_body+:} false; then :
12547 $as_echo_n "(cached) " >&6
12548 else
12549 ac_wine_try_cflags_saved=$CFLAGS
12550 CFLAGS="$CFLAGS -Wempty-body"
12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552 /* end confdefs.h. */
12553 int main(int argc, char **argv) { return 0; }
12554 _ACEOF
12555 if ac_fn_c_try_link "$LINENO"; then :
12556 ac_cv_cflags__Wempty_body=yes
12557 else
12558 ac_cv_cflags__Wempty_body=no
12560 rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12562 CFLAGS=$ac_wine_try_cflags_saved
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12565 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12566 if test $ac_cv_cflags__Wempty_body = yes; then :
12567 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12570 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12571 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 ac_wine_try_cflags_saved=$CFLAGS
12575 CFLAGS="$CFLAGS -Wignored-qualifiers"
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12578 int main(int argc, char **argv) { return 0; }
12579 _ACEOF
12580 if ac_fn_c_try_link "$LINENO"; then :
12581 ac_cv_cflags__Wignored_qualifiers=yes
12582 else
12583 ac_cv_cflags__Wignored_qualifiers=no
12585 rm -f core conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext conftest.$ac_ext
12587 CFLAGS=$ac_wine_try_cflags_saved
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12590 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12591 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12592 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12595 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12596 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 ac_wine_try_cflags_saved=$CFLAGS
12600 CFLAGS="$CFLAGS -Wstrict-prototypes"
12601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12603 int main(int argc, char **argv) { return 0; }
12604 _ACEOF
12605 if ac_fn_c_try_link "$LINENO"; then :
12606 ac_cv_cflags__Wstrict_prototypes=yes
12607 else
12608 ac_cv_cflags__Wstrict_prototypes=no
12610 rm -f core conftest.err conftest.$ac_objext \
12611 conftest$ac_exeext conftest.$ac_ext
12612 CFLAGS=$ac_wine_try_cflags_saved
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12615 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12616 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12617 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12620 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12621 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12622 $as_echo_n "(cached) " >&6
12623 else
12624 ac_wine_try_cflags_saved=$CFLAGS
12625 CFLAGS="$CFLAGS -Wtype-limits"
12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627 /* end confdefs.h. */
12628 int main(int argc, char **argv) { return 0; }
12629 _ACEOF
12630 if ac_fn_c_try_link "$LINENO"; then :
12631 ac_cv_cflags__Wtype_limits=yes
12632 else
12633 ac_cv_cflags__Wtype_limits=no
12635 rm -f core conftest.err conftest.$ac_objext \
12636 conftest$ac_exeext conftest.$ac_ext
12637 CFLAGS=$ac_wine_try_cflags_saved
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12640 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12641 if test $ac_cv_cflags__Wtype_limits = yes; then :
12642 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12645 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12646 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12647 $as_echo_n "(cached) " >&6
12648 else
12649 ac_wine_try_cflags_saved=$CFLAGS
12650 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12652 /* end confdefs.h. */
12653 int main(int argc, char **argv) { return 0; }
12654 _ACEOF
12655 if ac_fn_c_try_link "$LINENO"; then :
12656 ac_cv_cflags__Wunused_but_set_parameter=yes
12657 else
12658 ac_cv_cflags__Wunused_but_set_parameter=no
12660 rm -f core conftest.err conftest.$ac_objext \
12661 conftest$ac_exeext conftest.$ac_ext
12662 CFLAGS=$ac_wine_try_cflags_saved
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12665 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12666 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12667 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12670 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12671 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12672 $as_echo_n "(cached) " >&6
12673 else
12674 ac_wine_try_cflags_saved=$CFLAGS
12675 CFLAGS="$CFLAGS -Wwrite-strings"
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678 int main(int argc, char **argv) { return 0; }
12679 _ACEOF
12680 if ac_fn_c_try_link "$LINENO"; then :
12681 ac_cv_cflags__Wwrite_strings=yes
12682 else
12683 ac_cv_cflags__Wwrite_strings=no
12685 rm -f core conftest.err conftest.$ac_objext \
12686 conftest$ac_exeext conftest.$ac_ext
12687 CFLAGS=$ac_wine_try_cflags_saved
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12690 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12691 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12692 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12695 for ac_flag in $CFLAGS; do
12696 case $ac_flag in
12697 -g) case $host_os in
12698 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
12699 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
12700 if ${ac_cv_cflags__gstabsp+:} false; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12703 ac_wine_try_cflags_saved=$CFLAGS
12704 CFLAGS="$CFLAGS -gstabs+"
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12707 int main(int argc, char **argv) { return 0; }
12708 _ACEOF
12709 if ac_fn_c_try_link "$LINENO"; then :
12710 ac_cv_cflags__gstabsp=yes
12711 else
12712 ac_cv_cflags__gstabsp=no
12714 rm -f core conftest.err conftest.$ac_objext \
12715 conftest$ac_exeext conftest.$ac_ext
12716 CFLAGS=$ac_wine_try_cflags_saved
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
12719 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
12720 if test $ac_cv_cflags__gstabsp = yes; then :
12721 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12722 fi ;;
12723 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
12724 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
12725 if ${ac_cv_cflags__gdwarf_2+:} false; then :
12726 $as_echo_n "(cached) " >&6
12727 else
12728 ac_wine_try_cflags_saved=$CFLAGS
12729 CFLAGS="$CFLAGS -gdwarf-2"
12730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731 /* end confdefs.h. */
12732 int main(int argc, char **argv) { return 0; }
12733 _ACEOF
12734 if ac_fn_c_try_link "$LINENO"; then :
12735 ac_cv_cflags__gdwarf_2=yes
12736 else
12737 ac_cv_cflags__gdwarf_2=no
12739 rm -f core conftest.err conftest.$ac_objext \
12740 conftest$ac_exeext conftest.$ac_ext
12741 CFLAGS=$ac_wine_try_cflags_saved
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
12744 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
12745 if test $ac_cv_cflags__gdwarf_2 = yes; then :
12746 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
12749 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
12750 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 ac_wine_try_cflags_saved=$CFLAGS
12754 CFLAGS="$CFLAGS -gstrict-dwarf"
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12757 int main(int argc, char **argv) { return 0; }
12758 _ACEOF
12759 if ac_fn_c_try_link "$LINENO"; then :
12760 ac_cv_cflags__gstrict_dwarf=yes
12761 else
12762 ac_cv_cflags__gstrict_dwarf=no
12764 rm -f core conftest.err conftest.$ac_objext \
12765 conftest$ac_exeext conftest.$ac_ext
12766 CFLAGS=$ac_wine_try_cflags_saved
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
12769 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
12770 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
12771 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
12772 fi ;;
12773 esac ;;
12774 esac
12775 done
12777 case $host_cpu in
12778 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12779 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12780 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12781 $as_echo_n "(cached) " >&6
12782 else
12783 ac_wine_try_cflags_saved=$CFLAGS
12784 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12786 /* end confdefs.h. */
12787 int main(int argc, char **argv) { return 0; }
12788 _ACEOF
12789 if ac_fn_c_try_link "$LINENO"; then :
12790 ac_cv_cflags__fno_omit_frame_pointer=yes
12791 else
12792 ac_cv_cflags__fno_omit_frame_pointer=no
12794 rm -f core conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12796 CFLAGS=$ac_wine_try_cflags_saved
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12799 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12800 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12801 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12802 fi ;;
12803 esac
12805 case $host in
12806 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12807 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12808 if ${ac_cv_cflags__Wno_format+:} false; then :
12809 $as_echo_n "(cached) " >&6
12810 else
12811 ac_wine_try_cflags_saved=$CFLAGS
12812 CFLAGS="$CFLAGS -Wno-format"
12813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12814 /* end confdefs.h. */
12815 int main(int argc, char **argv) { return 0; }
12816 _ACEOF
12817 if ac_fn_c_try_link "$LINENO"; then :
12818 ac_cv_cflags__Wno_format=yes
12819 else
12820 ac_cv_cflags__Wno_format=no
12822 rm -f core conftest.err conftest.$ac_objext \
12823 conftest$ac_exeext conftest.$ac_ext
12824 CFLAGS=$ac_wine_try_cflags_saved
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12827 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12828 if test $ac_cv_cflags__Wno_format = yes; then :
12829 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12830 fi ;;
12831 esac
12833 saved_CFLAGS="$CFLAGS"
12834 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12836 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12837 if ${ac_cv_c_string_h_warnings+:} false; then :
12838 $as_echo_n "(cached) " >&6
12839 else
12840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841 /* end confdefs.h. */
12842 #include <string.h>
12844 main ()
12848 return 0;
12850 _ACEOF
12851 if ac_fn_c_try_compile "$LINENO"; then :
12852 ac_cv_c_string_h_warnings=no
12853 else
12854 ac_cv_c_string_h_warnings=yes
12856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12859 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12860 CFLAGS="$saved_CFLAGS"
12861 if test "$ac_cv_c_string_h_warnings" = "no"
12862 then
12863 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12866 saved_CFLAGS="$CFLAGS"
12867 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12869 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12870 if ${ac_cv_c_logicalop_noisy+:} false; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 #include <string.h>
12877 main ()
12879 char*f(const char *h,char n) {return strchr(h,n);}
12881 return 0;
12883 _ACEOF
12884 if ac_fn_c_try_compile "$LINENO"; then :
12885 ac_cv_c_logicalop_noisy=no
12886 else
12887 ac_cv_c_logicalop_noisy=yes
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12892 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12893 CFLAGS="$saved_CFLAGS"
12894 if test "$ac_cv_c_logicalop_noisy" = "no"
12895 then
12896 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12899 if test "x$enable_maintainer_mode" = "xyes"
12900 then
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12902 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12903 if ${ac_cv_cflags__Werror+:} false; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906 ac_wine_try_cflags_saved=$CFLAGS
12907 CFLAGS="$CFLAGS -Werror"
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h. */
12910 int main(int argc, char **argv) { return 0; }
12911 _ACEOF
12912 if ac_fn_c_try_link "$LINENO"; then :
12913 ac_cv_cflags__Werror=yes
12914 else
12915 ac_cv_cflags__Werror=no
12917 rm -f core conftest.err conftest.$ac_objext \
12918 conftest$ac_exeext conftest.$ac_ext
12919 CFLAGS=$ac_wine_try_cflags_saved
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12922 $as_echo "$ac_cv_cflags__Werror" >&6; }
12923 if test $ac_cv_cflags__Werror = yes; then :
12924 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12928 saved_CFLAGS="$CFLAGS"
12929 CFLAGS="$CFLAGS -Werror"
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12931 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12932 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12933 $as_echo_n "(cached) " >&6
12934 else
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12937 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12939 main ()
12943 return 0;
12945 _ACEOF
12946 if ac_fn_c_try_compile "$LINENO"; then :
12947 ac_cv_have_ms_hook_prologue="yes"
12948 else
12949 ac_cv_have_ms_hook_prologue="no"
12951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12954 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12955 CFLAGS="$saved_CFLAGS"
12956 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12957 then
12959 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12961 else
12962 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12969 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12970 if ${ac_cv_c_fortify_enabled+:} false; then :
12971 $as_echo_n "(cached) " >&6
12972 else
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975 #include <string.h>
12977 main ()
12979 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12980 #error Fortify enabled
12981 #endif
12983 return 0;
12985 _ACEOF
12986 if ac_fn_c_try_compile "$LINENO"; then :
12987 ac_cv_c_fortify_enabled=no
12988 else
12989 ac_cv_c_fortify_enabled=yes
12991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12994 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12995 if test "$ac_cv_c_fortify_enabled" = yes
12996 then
12997 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
13002 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
13003 if ${ac_cv_c_extern_prefix+:} false; then :
13004 $as_echo_n "(cached) " >&6
13005 else
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 extern int ac_test;
13010 main ()
13012 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
13014 return 0;
13016 _ACEOF
13017 if ac_fn_c_try_link "$LINENO"; then :
13018 ac_cv_c_extern_prefix="yes"
13019 else
13020 ac_cv_c_extern_prefix="no"
13022 rm -f core conftest.err conftest.$ac_objext \
13023 conftest$ac_exeext conftest.$ac_ext
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
13026 $as_echo "$ac_cv_c_extern_prefix" >&6; }
13028 case $host_cpu in
13029 *i[3456789]86*)
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
13031 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
13032 if ${ac_cv_c_stdcall_suffix+:} false; then :
13033 $as_echo_n "(cached) " >&6
13034 else
13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h. */
13037 #ifndef _MSC_VER
13038 #define __stdcall __attribute__((__stdcall__))
13039 #endif
13040 int __stdcall ac_test(int i) { return i; }
13042 main ()
13044 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
13046 return 0;
13048 _ACEOF
13049 if ac_fn_c_try_link "$LINENO"; then :
13050 ac_cv_c_stdcall_suffix="yes"
13051 else
13052 ac_cv_c_stdcall_suffix="no"
13054 rm -f core conftest.err conftest.$ac_objext \
13055 conftest$ac_exeext conftest.$ac_ext
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
13058 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
13059 *) ac_cv_c_stdcall_suffix="no" ;;
13060 esac
13063 if test "$ac_cv_c_extern_prefix" = "yes"
13064 then
13065 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
13067 asm_name_prefix="_"
13068 else
13069 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
13071 asm_name_prefix=""
13075 if test "$ac_cv_c_stdcall_suffix" = "yes"
13076 then
13077 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
13079 else
13080 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
13086 $as_echo_n "checking how to define a function in assembly code... " >&6; }
13087 if ${ac_cv_asm_func_def+:} false; then :
13088 $as_echo_n "(cached) " >&6
13089 else
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13094 main ()
13096 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
13098 return 0;
13100 _ACEOF
13101 if ac_fn_c_try_link "$LINENO"; then :
13102 ac_cv_asm_func_def=".def"
13103 else
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13108 main ()
13110 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
13112 return 0;
13114 _ACEOF
13115 if ac_fn_c_try_link "$LINENO"; then :
13116 ac_cv_asm_func_def=".type @function"
13117 else
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h. */
13122 main ()
13124 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
13126 return 0;
13128 _ACEOF
13129 if ac_fn_c_try_link "$LINENO"; then :
13130 ac_cv_asm_func_def=".type 2"
13131 else
13132 ac_cv_asm_func_def="unknown"
13134 rm -f core conftest.err conftest.$ac_objext \
13135 conftest$ac_exeext conftest.$ac_ext
13137 rm -f core conftest.err conftest.$ac_objext \
13138 conftest$ac_exeext conftest.$ac_ext
13140 rm -f core conftest.err conftest.$ac_objext \
13141 conftest$ac_exeext conftest.$ac_ext
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
13144 $as_echo "$ac_cv_asm_func_def" >&6; }
13147 case "$ac_cv_asm_func_def" in
13148 ".def")
13149 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
13151 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
13152 ".type @function")
13153 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
13155 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
13156 ".type 2")
13157 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
13159 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
13161 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
13163 asm_func_header="" ;;
13164 esac
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
13167 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
13168 if ${ac_cv_c_asm_outside_funcs+:} false; then :
13169 $as_echo_n "(cached) " >&6
13170 else
13171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172 /* end confdefs.h. */
13173 asm(".text\n\t.long 0");
13175 main ()
13179 return 0;
13181 _ACEOF
13182 if ac_fn_c_try_compile "$LINENO"; then :
13183 ac_cv_c_asm_outside_funcs="yes"
13184 else
13185 ac_cv_c_asm_outside_funcs="no"
13187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
13190 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
13193 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
13194 if ${ac_cv_c_dot_previous+:} false; then :
13195 $as_echo_n "(cached) " >&6
13196 else
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13201 main ()
13203 asm(".text\nac_test:\t.long 0\n\t.previous");
13205 return 0;
13207 _ACEOF
13208 if ac_fn_c_try_link "$LINENO"; then :
13209 ac_cv_c_dot_previous="yes"
13210 else
13211 ac_cv_c_dot_previous="no"
13213 rm -f core conftest.err conftest.$ac_objext \
13214 conftest$ac_exeext conftest.$ac_ext
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
13217 $as_echo "$ac_cv_c_dot_previous" >&6; }
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
13220 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
13221 if ${ac_cv_c_cfi_support+:} false; then :
13222 $as_echo_n "(cached) " >&6
13223 else
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13226 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
13228 main ()
13232 return 0;
13234 _ACEOF
13235 if ac_fn_c_try_compile "$LINENO"; then :
13236 ac_cv_c_cfi_support="yes"
13237 else
13238 ac_cv_c_cfi_support="no"
13240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
13243 $as_echo "$ac_cv_c_cfi_support" >&6; }
13245 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
13246 asm_func_trailer=""
13247 if test "$ac_cv_c_dot_previous" = "yes"
13248 then
13249 asm_func_trailer="\\n\\t.previous"
13251 if test "$ac_cv_c_cfi_support" = "yes"
13252 then
13253 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
13254 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
13256 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
13258 UNWINDFLAGS=-fasynchronous-unwind-tables
13260 else
13261 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
13265 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
13268 if test "$ac_cv_c_asm_outside_funcs" = "yes"
13269 then
13270 cat >>confdefs.h <<_ACEOF
13271 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
13272 _ACEOF
13274 else
13275 cat >>confdefs.h <<_ACEOF
13276 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
13277 _ACEOF
13281 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
13284 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
13288 LDPATH=""
13290 case $build_os in
13291 cygwin*|mingw32*)
13292 TOOLSEXT=".exe"
13294 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
13296 darwin*|macosx*)
13299 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
13301 esac
13303 MAIN_BINARY="wine"
13305 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
13307 case $host_os in
13308 linux*)
13309 case $host_cpu in
13310 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
13312 x86_64*) EXTRA_BINARIES="wine64-preloader"
13314 esac
13316 esac
13319 ac_save_CFLAGS="$CFLAGS"
13320 CFLAGS="$CFLAGS $BUILTINFLAG"
13321 for ac_func in \
13322 _finite \
13323 _isnan \
13324 _pclose \
13325 _popen \
13326 _snprintf \
13327 _spawnvp \
13328 _strdup \
13329 _stricmp \
13330 _strnicmp \
13331 _strtoi64 \
13332 _strtoui64 \
13333 _vsnprintf \
13334 asctime_r \
13335 chsize \
13336 dlopen \
13337 epoll_create \
13338 ffs \
13339 finite \
13340 fnmatch \
13341 fork \
13342 fpclass \
13343 fstatfs \
13344 fstatvfs \
13345 ftruncate \
13346 futimens \
13347 futimes \
13348 futimesat \
13349 getattrlist \
13350 getdirentries \
13351 getopt_long_only \
13352 getpwuid \
13353 gettimeofday \
13354 getuid \
13355 kqueue \
13356 lstat \
13357 memmove \
13358 mmap \
13359 pclose \
13360 pipe2 \
13361 poll \
13362 popen \
13363 port_create \
13364 prctl \
13365 pread \
13366 pwrite \
13367 readdir \
13368 readlink \
13369 sched_yield \
13370 select \
13371 setproctitle \
13372 setrlimit \
13373 settimeofday \
13374 sigaltstack \
13375 sigprocmask \
13376 snprintf \
13377 statfs \
13378 statvfs \
13379 strcasecmp \
13380 strdup \
13381 strerror \
13382 strncasecmp \
13383 strtold \
13384 strtoll \
13385 strtoull \
13386 symlink \
13387 tcgetattr \
13388 thr_kill2 \
13389 timegm \
13390 usleep \
13391 vsnprintf
13393 do :
13394 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13395 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13396 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13397 cat >>confdefs.h <<_ACEOF
13398 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13399 _ACEOF
13402 done
13404 CFLAGS="$ac_save_CFLAGS"
13406 if test "$ac_cv_func_dlopen" = no
13407 then
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13409 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13410 if ${ac_cv_lib_dl_dlopen+:} false; then :
13411 $as_echo_n "(cached) " >&6
13412 else
13413 ac_check_lib_save_LIBS=$LIBS
13414 LIBS="-ldl $LIBS"
13415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416 /* end confdefs.h. */
13418 /* Override any GCC internal prototype to avoid an error.
13419 Use char because int might match the return type of a GCC
13420 builtin and then its argument prototype would still apply. */
13421 #ifdef __cplusplus
13422 extern "C"
13423 #endif
13424 char dlopen ();
13426 main ()
13428 return dlopen ();
13430 return 0;
13432 _ACEOF
13433 if ac_fn_c_try_link "$LINENO"; then :
13434 ac_cv_lib_dl_dlopen=yes
13435 else
13436 ac_cv_lib_dl_dlopen=no
13438 rm -f core conftest.err conftest.$ac_objext \
13439 conftest$ac_exeext conftest.$ac_ext
13440 LIBS=$ac_check_lib_save_LIBS
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13443 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13444 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13445 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
13446 LIBDL="-ldl"
13451 ac_wine_check_funcs_save_LIBS="$LIBS"
13452 LIBS="$LIBS $LIBDL"
13453 for ac_func in dladdr
13454 do :
13455 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
13456 if test "x$ac_cv_func_dladdr" = xyes; then :
13457 cat >>confdefs.h <<_ACEOF
13458 #define HAVE_DLADDR 1
13459 _ACEOF
13462 done
13464 LIBS="$ac_wine_check_funcs_save_LIBS"
13466 if test "$ac_cv_func_poll" = no
13467 then
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
13469 $as_echo_n "checking for poll in -lpoll... " >&6; }
13470 if ${ac_cv_lib_poll_poll+:} false; then :
13471 $as_echo_n "(cached) " >&6
13472 else
13473 ac_check_lib_save_LIBS=$LIBS
13474 LIBS="-lpoll $LIBS"
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13478 /* Override any GCC internal prototype to avoid an error.
13479 Use char because int might match the return type of a GCC
13480 builtin and then its argument prototype would still apply. */
13481 #ifdef __cplusplus
13482 extern "C"
13483 #endif
13484 char poll ();
13486 main ()
13488 return poll ();
13490 return 0;
13492 _ACEOF
13493 if ac_fn_c_try_link "$LINENO"; then :
13494 ac_cv_lib_poll_poll=yes
13495 else
13496 ac_cv_lib_poll_poll=no
13498 rm -f core conftest.err conftest.$ac_objext \
13499 conftest$ac_exeext conftest.$ac_ext
13500 LIBS=$ac_check_lib_save_LIBS
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
13503 $as_echo "$ac_cv_lib_poll_poll" >&6; }
13504 if test "x$ac_cv_lib_poll_poll" = xyes; then :
13505 $as_echo "#define HAVE_POLL 1" >>confdefs.h
13506 LIBPOLL="-lpoll"
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13513 $as_echo_n "checking for library containing gethostbyname... " >&6; }
13514 if ${ac_cv_search_gethostbyname+:} false; then :
13515 $as_echo_n "(cached) " >&6
13516 else
13517 ac_func_search_save_LIBS=$LIBS
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13521 /* Override any GCC internal prototype to avoid an error.
13522 Use char because int might match the return type of a GCC
13523 builtin and then its argument prototype would still apply. */
13524 #ifdef __cplusplus
13525 extern "C"
13526 #endif
13527 char gethostbyname ();
13529 main ()
13531 return gethostbyname ();
13533 return 0;
13535 _ACEOF
13536 for ac_lib in '' nsl; do
13537 if test -z "$ac_lib"; then
13538 ac_res="none required"
13539 else
13540 ac_res=-l$ac_lib
13541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13543 if ac_fn_c_try_link "$LINENO"; then :
13544 ac_cv_search_gethostbyname=$ac_res
13546 rm -f core conftest.err conftest.$ac_objext \
13547 conftest$ac_exeext
13548 if ${ac_cv_search_gethostbyname+:} false; then :
13549 break
13551 done
13552 if ${ac_cv_search_gethostbyname+:} false; then :
13554 else
13555 ac_cv_search_gethostbyname=no
13557 rm conftest.$ac_ext
13558 LIBS=$ac_func_search_save_LIBS
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13561 $as_echo "$ac_cv_search_gethostbyname" >&6; }
13562 ac_res=$ac_cv_search_gethostbyname
13563 if test "$ac_res" != no; then :
13564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
13570 $as_echo_n "checking for library containing connect... " >&6; }
13571 if ${ac_cv_search_connect+:} false; then :
13572 $as_echo_n "(cached) " >&6
13573 else
13574 ac_func_search_save_LIBS=$LIBS
13575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13576 /* end confdefs.h. */
13578 /* Override any GCC internal prototype to avoid an error.
13579 Use char because int might match the return type of a GCC
13580 builtin and then its argument prototype would still apply. */
13581 #ifdef __cplusplus
13582 extern "C"
13583 #endif
13584 char connect ();
13586 main ()
13588 return connect ();
13590 return 0;
13592 _ACEOF
13593 for ac_lib in '' socket; do
13594 if test -z "$ac_lib"; then
13595 ac_res="none required"
13596 else
13597 ac_res=-l$ac_lib
13598 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13600 if ac_fn_c_try_link "$LINENO"; then :
13601 ac_cv_search_connect=$ac_res
13603 rm -f core conftest.err conftest.$ac_objext \
13604 conftest$ac_exeext
13605 if ${ac_cv_search_connect+:} false; then :
13606 break
13608 done
13609 if ${ac_cv_search_connect+:} false; then :
13611 else
13612 ac_cv_search_connect=no
13614 rm conftest.$ac_ext
13615 LIBS=$ac_func_search_save_LIBS
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
13618 $as_echo "$ac_cv_search_connect" >&6; }
13619 ac_res=$ac_cv_search_connect
13620 if test "$ac_res" != no; then :
13621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13627 $as_echo_n "checking for library containing inet_aton... " >&6; }
13628 if ${ac_cv_search_inet_aton+:} false; then :
13629 $as_echo_n "(cached) " >&6
13630 else
13631 ac_func_search_save_LIBS=$LIBS
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13635 /* Override any GCC internal prototype to avoid an error.
13636 Use char because int might match the return type of a GCC
13637 builtin and then its argument prototype would still apply. */
13638 #ifdef __cplusplus
13639 extern "C"
13640 #endif
13641 char inet_aton ();
13643 main ()
13645 return inet_aton ();
13647 return 0;
13649 _ACEOF
13650 for ac_lib in '' resolv; do
13651 if test -z "$ac_lib"; then
13652 ac_res="none required"
13653 else
13654 ac_res=-l$ac_lib
13655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13657 if ac_fn_c_try_link "$LINENO"; then :
13658 ac_cv_search_inet_aton=$ac_res
13660 rm -f core conftest.err conftest.$ac_objext \
13661 conftest$ac_exeext
13662 if ${ac_cv_search_inet_aton+:} false; then :
13663 break
13665 done
13666 if ${ac_cv_search_inet_aton+:} false; then :
13668 else
13669 ac_cv_search_inet_aton=no
13671 rm conftest.$ac_ext
13672 LIBS=$ac_func_search_save_LIBS
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13675 $as_echo "$ac_cv_search_inet_aton" >&6; }
13676 ac_res=$ac_cv_search_inet_aton
13677 if test "$ac_res" != no; then :
13678 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13683 for ac_func in \
13684 getaddrinfo \
13685 getnameinfo \
13686 getnetbyname \
13687 getprotobyname \
13688 getprotobynumber \
13689 getservbyport \
13690 inet_network \
13691 inet_ntop \
13692 inet_pton \
13693 sendmsg \
13694 socketpair \
13696 do :
13697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13700 cat >>confdefs.h <<_ACEOF
13701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13702 _ACEOF
13705 done
13708 ac_save_LIBS=$LIBS
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13710 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13711 if ${ac_cv_search_clock_gettime+:} false; then :
13712 $as_echo_n "(cached) " >&6
13713 else
13714 ac_func_search_save_LIBS=$LIBS
13715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13716 /* end confdefs.h. */
13718 /* Override any GCC internal prototype to avoid an error.
13719 Use char because int might match the return type of a GCC
13720 builtin and then its argument prototype would still apply. */
13721 #ifdef __cplusplus
13722 extern "C"
13723 #endif
13724 char clock_gettime ();
13726 main ()
13728 return clock_gettime ();
13730 return 0;
13732 _ACEOF
13733 for ac_lib in '' rt; do
13734 if test -z "$ac_lib"; then
13735 ac_res="none required"
13736 else
13737 ac_res=-l$ac_lib
13738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13740 if ac_fn_c_try_link "$LINENO"; then :
13741 ac_cv_search_clock_gettime=$ac_res
13743 rm -f core conftest.err conftest.$ac_objext \
13744 conftest$ac_exeext
13745 if ${ac_cv_search_clock_gettime+:} false; then :
13746 break
13748 done
13749 if ${ac_cv_search_clock_gettime+:} false; then :
13751 else
13752 ac_cv_search_clock_gettime=no
13754 rm conftest.$ac_ext
13755 LIBS=$ac_func_search_save_LIBS
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13758 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13759 ac_res=$ac_cv_search_clock_gettime
13760 if test "$ac_res" != no; then :
13761 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13763 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13765 test "$ac_res" = "none required" || LIBRT="$ac_res"
13769 LIBS=$ac_save_LIBS
13771 LDAPLIBS=""
13773 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13774 then
13775 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13777 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13779 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13780 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13783 ac_check_lib_save_LIBS=$LIBS
13784 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13788 /* Override any GCC internal prototype to avoid an error.
13789 Use char because int might match the return type of a GCC
13790 builtin and then its argument prototype would still apply. */
13791 #ifdef __cplusplus
13792 extern "C"
13793 #endif
13794 char ldap_initialize ();
13796 main ()
13798 return ldap_initialize ();
13800 return 0;
13802 _ACEOF
13803 if ac_fn_c_try_link "$LINENO"; then :
13804 ac_cv_lib_ldap_r_ldap_initialize=yes
13805 else
13806 ac_cv_lib_ldap_r_ldap_initialize=no
13808 rm -f core conftest.err conftest.$ac_objext \
13809 conftest$ac_exeext conftest.$ac_ext
13810 LIBS=$ac_check_lib_save_LIBS
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13813 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13814 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13816 $as_echo_n "checking for ber_init in -llber... " >&6; }
13817 if ${ac_cv_lib_lber_ber_init+:} false; then :
13818 $as_echo_n "(cached) " >&6
13819 else
13820 ac_check_lib_save_LIBS=$LIBS
13821 LIBS="-llber $LIBPTHREAD $LIBS"
13822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h. */
13825 /* Override any GCC internal prototype to avoid an error.
13826 Use char because int might match the return type of a GCC
13827 builtin and then its argument prototype would still apply. */
13828 #ifdef __cplusplus
13829 extern "C"
13830 #endif
13831 char ber_init ();
13833 main ()
13835 return ber_init ();
13837 return 0;
13839 _ACEOF
13840 if ac_fn_c_try_link "$LINENO"; then :
13841 ac_cv_lib_lber_ber_init=yes
13842 else
13843 ac_cv_lib_lber_ber_init=no
13845 rm -f core conftest.err conftest.$ac_objext \
13846 conftest$ac_exeext conftest.$ac_ext
13847 LIBS=$ac_check_lib_save_LIBS
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13850 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13851 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13853 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13855 LDAPLIBS="-lldap_r -llber"
13862 ac_wine_check_funcs_save_LIBS="$LIBS"
13863 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13864 for ac_func in \
13865 ldap_count_references \
13866 ldap_first_reference \
13867 ldap_next_reference \
13868 ldap_parse_reference \
13869 ldap_parse_sort_control \
13870 ldap_parse_sortresponse_control \
13871 ldap_parse_vlv_control \
13872 ldap_parse_vlvresponse_control
13873 do :
13874 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13875 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13876 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13877 cat >>confdefs.h <<_ACEOF
13878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13879 _ACEOF
13882 done
13884 LIBS="$ac_wine_check_funcs_save_LIBS"
13886 if test "x$LDAPLIBS" = "x"; then :
13887 case "x$with_ldap" in
13888 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13889 xno) ;;
13890 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13891 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13892 esac
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13896 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13897 if ${wine_cv_one_arg_mkdir+:} false; then :
13898 $as_echo_n "(cached) " >&6
13899 else
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13902 #include <sys/stat.h>
13904 main ()
13906 mkdir("foo");
13908 return 0;
13910 _ACEOF
13911 if ac_fn_c_try_compile "$LINENO"; then :
13912 wine_cv_one_arg_mkdir=yes
13913 else
13914 wine_cv_one_arg_mkdir=no
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13919 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13920 if test "$wine_cv_one_arg_mkdir" = "yes"
13921 then
13923 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13928 $as_echo_n "checking for sched_setaffinity... " >&6; }
13929 if ${wine_cv_have_sched_setaffinity+:} false; then :
13930 $as_echo_n "(cached) " >&6
13931 else
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13934 #define _GNU_SOURCE
13935 #include <sched.h>
13937 main ()
13939 sched_setaffinity(0, 0, 0);
13941 return 0;
13943 _ACEOF
13944 if ac_fn_c_try_link "$LINENO"; then :
13945 wine_cv_have_sched_setaffinity=yes
13946 else
13947 wine_cv_have_sched_setaffinity=no
13949 rm -f core conftest.err conftest.$ac_objext \
13950 conftest$ac_exeext conftest.$ac_ext
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13953 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13954 if test "$wine_cv_have_sched_setaffinity" = "yes"
13955 then
13957 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
13962 $as_echo_n "checking for fallocate... " >&6; }
13963 if ${wine_cv_have_fallocate+:} false; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13968 #define _GNU_SOURCE
13969 #include <fcntl.h>
13971 main ()
13973 fallocate(-1, 0, 0, 0);
13975 return 0;
13977 _ACEOF
13978 if ac_fn_c_try_link "$LINENO"; then :
13979 wine_cv_have_fallocate=yes
13980 else
13981 wine_cv_have_fallocate=no
13983 rm -f core conftest.err conftest.$ac_objext \
13984 conftest$ac_exeext conftest.$ac_ext
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
13987 $as_echo "$wine_cv_have_fallocate" >&6; }
13988 if test "$wine_cv_have_fallocate" = "yes"
13989 then
13991 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13997 $as_echo_n "checking for inline... " >&6; }
13998 if ${ac_cv_c_inline+:} false; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 ac_cv_c_inline=no
14002 for ac_kw in inline __inline__ __inline; do
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14005 #ifndef __cplusplus
14006 typedef int foo_t;
14007 static $ac_kw foo_t static_foo () {return 0; }
14008 $ac_kw foo_t foo () {return 0; }
14009 #endif
14011 _ACEOF
14012 if ac_fn_c_try_compile "$LINENO"; then :
14013 ac_cv_c_inline=$ac_kw
14015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14016 test "$ac_cv_c_inline" != no && break
14017 done
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14021 $as_echo "$ac_cv_c_inline" >&6; }
14023 case $ac_cv_c_inline in
14024 inline | yes) ;;
14026 case $ac_cv_c_inline in
14027 no) ac_val=;;
14028 *) ac_val=$ac_cv_c_inline;;
14029 esac
14030 cat >>confdefs.h <<_ACEOF
14031 #ifndef __cplusplus
14032 #define inline $ac_val
14033 #endif
14034 _ACEOF
14036 esac
14038 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14039 if test "x$ac_cv_type_mode_t" = xyes; then :
14041 cat >>confdefs.h <<_ACEOF
14042 #define HAVE_MODE_T 1
14043 _ACEOF
14047 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14048 if test "x$ac_cv_type_off_t" = xyes; then :
14050 cat >>confdefs.h <<_ACEOF
14051 #define HAVE_OFF_T 1
14052 _ACEOF
14056 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14057 if test "x$ac_cv_type_pid_t" = xyes; then :
14059 cat >>confdefs.h <<_ACEOF
14060 #define HAVE_PID_T 1
14061 _ACEOF
14065 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14066 if test "x$ac_cv_type_size_t" = xyes; then :
14068 cat >>confdefs.h <<_ACEOF
14069 #define HAVE_SIZE_T 1
14070 _ACEOF
14074 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14075 if test "x$ac_cv_type_ssize_t" = xyes; then :
14077 cat >>confdefs.h <<_ACEOF
14078 #define HAVE_SSIZE_T 1
14079 _ACEOF
14083 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14084 if test "x$ac_cv_type_long_long" = xyes; then :
14086 cat >>confdefs.h <<_ACEOF
14087 #define HAVE_LONG_LONG 1
14088 _ACEOF
14092 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
14093 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
14095 cat >>confdefs.h <<_ACEOF
14096 #define HAVE_FSBLKCNT_T 1
14097 _ACEOF
14101 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
14102 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
14104 cat >>confdefs.h <<_ACEOF
14105 #define HAVE_FSFILCNT_T 1
14106 _ACEOF
14111 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
14112 #include <signal.h>
14114 if test "x$ac_cv_type_sigset_t" = xyes; then :
14116 cat >>confdefs.h <<_ACEOF
14117 #define HAVE_SIGSET_T 1
14118 _ACEOF
14123 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
14125 if test "x$ac_cv_type_request_sense" = xyes; then :
14127 cat >>confdefs.h <<_ACEOF
14128 #define HAVE_REQUEST_SENSE 1
14129 _ACEOF
14135 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
14136 #ifdef HAVE_SYS_SOCKET_H
14137 #include <sys/socket.h>
14138 #endif
14139 #ifdef HAVE_SYS_SOCKETVAR_H
14140 #include <sys/socketvar.h>
14141 #endif
14142 #ifdef HAVE_NET_ROUTE_H
14143 #include <net/route.h>
14144 #endif
14145 #ifdef HAVE_NETINET_IN_H
14146 #include <netinet/in.h>
14147 #endif
14148 #ifdef HAVE_NETINET_IN_SYSTM_H
14149 #include <netinet/in_systm.h>
14150 #endif
14151 #ifdef HAVE_NETINET_IP_H
14152 #include <netinet/ip.h>
14153 #endif
14154 #ifdef HAVE_NETINET_IN_PCB_H
14155 #include <netinet/in_pcb.h>
14156 #endif
14158 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
14160 cat >>confdefs.h <<_ACEOF
14161 #define HAVE_STRUCT_XINPGEN 1
14162 _ACEOF
14168 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
14169 #include <linux/input.h>
14170 #endif
14172 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
14174 cat >>confdefs.h <<_ACEOF
14175 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
14176 _ACEOF
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
14183 $as_echo_n "checking for sigaddset... " >&6; }
14184 if ${wine_cv_have_sigaddset+:} false; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14189 #include <signal.h>
14191 main ()
14193 sigset_t set; sigaddset(&set,SIGTERM);
14195 return 0;
14197 _ACEOF
14198 if ac_fn_c_try_link "$LINENO"; then :
14199 wine_cv_have_sigaddset=yes
14200 else
14201 wine_cv_have_sigaddset=no
14203 rm -f core conftest.err conftest.$ac_objext \
14204 conftest$ac_exeext conftest.$ac_ext
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
14207 $as_echo "$wine_cv_have_sigaddset" >&6; }
14208 if test "$wine_cv_have_sigaddset" = "yes"
14209 then
14211 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14217 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
14218 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
14219 $as_echo_n "(cached) " >&6
14220 else
14221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222 /* end confdefs.h. */
14223 #include <netdb.h>
14225 main ()
14228 char *name=0;
14229 struct hostent he;
14230 struct hostent *result;
14231 char *buf=0;
14232 int bufsize=0;
14233 int errnr;
14234 char *addr=0;
14235 int addrlen=0;
14236 int addrtype=0;
14237 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14238 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14241 return 0;
14243 _ACEOF
14244 if ac_fn_c_try_link "$LINENO"; then :
14245 wine_cv_linux_gethostbyname_r_6=yes
14246 else
14247 wine_cv_linux_gethostbyname_r_6=no
14250 rm -f core conftest.err conftest.$ac_objext \
14251 conftest$ac_exeext conftest.$ac_ext
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
14255 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
14256 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14257 then
14259 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
14263 if test "$ac_cv_header_linux_joystick_h" = "yes"
14264 then
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
14266 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
14267 if ${wine_cv_linux_joystick_22_api+:} false; then :
14268 $as_echo_n "(cached) " >&6
14269 else
14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h. */
14273 #include <sys/ioctl.h>
14274 #include <sys/types.h>
14275 #include <linux/joystick.h>
14277 struct js_event blub;
14278 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14279 #error "no 2.2 header"
14280 #endif
14283 main ()
14285 /*empty*/
14287 return 0;
14289 _ACEOF
14290 if ac_fn_c_try_compile "$LINENO"; then :
14291 wine_cv_linux_joystick_22_api=yes
14292 else
14293 wine_cv_linux_joystick_22_api=no
14295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
14299 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
14300 if test "$wine_cv_linux_joystick_22_api" = "yes"
14301 then
14303 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
14309 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
14310 #ifdef HAVE_SYS_PARAM_H
14311 # include <sys/param.h>
14312 #endif
14313 #ifdef HAVE_SYS_MOUNT_H
14314 # include <sys/mount.h>
14315 #endif
14316 #ifdef HAVE_SYS_VFS_H
14317 # include <sys/vfs.h>
14318 #endif
14319 #ifdef HAVE_SYS_STATFS_H
14320 # include <sys/statfs.h>
14321 #endif
14323 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
14325 cat >>confdefs.h <<_ACEOF
14326 #define HAVE_STRUCT_STATFS_F_BFREE 1
14327 _ACEOF
14331 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
14332 #ifdef HAVE_SYS_PARAM_H
14333 # include <sys/param.h>
14334 #endif
14335 #ifdef HAVE_SYS_MOUNT_H
14336 # include <sys/mount.h>
14337 #endif
14338 #ifdef HAVE_SYS_VFS_H
14339 # include <sys/vfs.h>
14340 #endif
14341 #ifdef HAVE_SYS_STATFS_H
14342 # include <sys/statfs.h>
14343 #endif
14345 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
14347 cat >>confdefs.h <<_ACEOF
14348 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
14349 _ACEOF
14353 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
14354 #ifdef HAVE_SYS_PARAM_H
14355 # include <sys/param.h>
14356 #endif
14357 #ifdef HAVE_SYS_MOUNT_H
14358 # include <sys/mount.h>
14359 #endif
14360 #ifdef HAVE_SYS_VFS_H
14361 # include <sys/vfs.h>
14362 #endif
14363 #ifdef HAVE_SYS_STATFS_H
14364 # include <sys/statfs.h>
14365 #endif
14367 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
14369 cat >>confdefs.h <<_ACEOF
14370 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
14371 _ACEOF
14375 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
14376 #ifdef HAVE_SYS_PARAM_H
14377 # include <sys/param.h>
14378 #endif
14379 #ifdef HAVE_SYS_MOUNT_H
14380 # include <sys/mount.h>
14381 #endif
14382 #ifdef HAVE_SYS_VFS_H
14383 # include <sys/vfs.h>
14384 #endif
14385 #ifdef HAVE_SYS_STATFS_H
14386 # include <sys/statfs.h>
14387 #endif
14389 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
14391 cat >>confdefs.h <<_ACEOF
14392 #define HAVE_STRUCT_STATFS_F_FFREE 1
14393 _ACEOF
14397 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
14398 #ifdef HAVE_SYS_PARAM_H
14399 # include <sys/param.h>
14400 #endif
14401 #ifdef HAVE_SYS_MOUNT_H
14402 # include <sys/mount.h>
14403 #endif
14404 #ifdef HAVE_SYS_VFS_H
14405 # include <sys/vfs.h>
14406 #endif
14407 #ifdef HAVE_SYS_STATFS_H
14408 # include <sys/statfs.h>
14409 #endif
14411 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
14413 cat >>confdefs.h <<_ACEOF
14414 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
14415 _ACEOF
14419 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
14420 #ifdef HAVE_SYS_PARAM_H
14421 # include <sys/param.h>
14422 #endif
14423 #ifdef HAVE_SYS_MOUNT_H
14424 # include <sys/mount.h>
14425 #endif
14426 #ifdef HAVE_SYS_VFS_H
14427 # include <sys/vfs.h>
14428 #endif
14429 #ifdef HAVE_SYS_STATFS_H
14430 # include <sys/statfs.h>
14431 #endif
14433 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
14435 cat >>confdefs.h <<_ACEOF
14436 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
14437 _ACEOF
14443 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
14444 #include <sys/statvfs.h>
14445 #endif
14447 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
14449 cat >>confdefs.h <<_ACEOF
14450 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
14451 _ACEOF
14457 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
14458 #include <dirent.h>
14459 #endif
14461 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
14463 cat >>confdefs.h <<_ACEOF
14464 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
14465 _ACEOF
14471 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
14472 #ifdef HAVE_SYS_SOCKET_H
14473 # include <sys/socket.h>
14474 #endif
14475 #ifdef HAVE_SYS_UN_H
14476 # include <sys/un.h>
14477 #endif
14479 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
14481 cat >>confdefs.h <<_ACEOF
14482 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
14483 _ACEOF
14487 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14488 #ifdef HAVE_SYS_SOCKET_H
14489 # include <sys/socket.h>
14490 #endif
14491 #ifdef HAVE_SYS_UN_H
14492 # include <sys/un.h>
14493 #endif
14495 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14497 cat >>confdefs.h <<_ACEOF
14498 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14499 _ACEOF
14503 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
14504 #ifdef HAVE_SYS_SOCKET_H
14505 # include <sys/socket.h>
14506 #endif
14507 #ifdef HAVE_SYS_UN_H
14508 # include <sys/un.h>
14509 #endif
14511 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
14513 cat >>confdefs.h <<_ACEOF
14514 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
14515 _ACEOF
14521 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
14522 #ifdef HAVE_SCSI_SG_H
14523 #include <scsi/sg.h>
14524 #endif
14526 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
14528 cat >>confdefs.h <<_ACEOF
14529 #define HAVE_SCSIREQ_T_CMD 1
14530 _ACEOF
14534 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>
14535 #ifdef HAVE_SCSI_SG_H
14536 #include <scsi/sg.h>
14537 #endif
14539 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
14541 cat >>confdefs.h <<_ACEOF
14542 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
14543 _ACEOF
14549 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14551 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
14553 cat >>confdefs.h <<_ACEOF
14554 #define HAVE_SIGINFO_T_SI_FD 1
14555 _ACEOF
14561 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
14562 #ifdef HAVE_SYS_MTIO_H
14563 #include <sys/mtio.h>
14564 #endif
14566 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
14568 cat >>confdefs.h <<_ACEOF
14569 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14570 _ACEOF
14574 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
14575 #ifdef HAVE_SYS_MTIO_H
14576 #include <sys/mtio.h>
14577 #endif
14579 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
14581 cat >>confdefs.h <<_ACEOF
14582 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
14583 _ACEOF
14587 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
14588 #ifdef HAVE_SYS_MTIO_H
14589 #include <sys/mtio.h>
14590 #endif
14592 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
14594 cat >>confdefs.h <<_ACEOF
14595 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
14596 _ACEOF
14602 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
14603 #include <getopt.h>
14604 #endif
14606 if test "x$ac_cv_member_struct_option_name" = xyes; then :
14608 cat >>confdefs.h <<_ACEOF
14609 #define HAVE_STRUCT_OPTION_NAME 1
14610 _ACEOF
14616 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14617 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
14619 cat >>confdefs.h <<_ACEOF
14620 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14621 _ACEOF
14625 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14626 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14628 cat >>confdefs.h <<_ACEOF
14629 #define HAVE_STRUCT_STAT_ST_MTIM 1
14630 _ACEOF
14634 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
14635 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
14637 cat >>confdefs.h <<_ACEOF
14638 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
14639 _ACEOF
14643 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14644 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
14646 cat >>confdefs.h <<_ACEOF
14647 #define HAVE_STRUCT_STAT_ST_CTIM 1
14648 _ACEOF
14652 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
14653 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
14655 cat >>confdefs.h <<_ACEOF
14656 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
14657 _ACEOF
14661 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14662 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
14664 cat >>confdefs.h <<_ACEOF
14665 #define HAVE_STRUCT_STAT_ST_ATIM 1
14666 _ACEOF
14670 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
14671 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
14673 cat >>confdefs.h <<_ACEOF
14674 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
14675 _ACEOF
14679 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
14680 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
14682 cat >>confdefs.h <<_ACEOF
14683 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
14684 _ACEOF
14688 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
14689 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
14691 cat >>confdefs.h <<_ACEOF
14692 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
14693 _ACEOF
14697 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
14698 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
14700 cat >>confdefs.h <<_ACEOF
14701 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
14702 _ACEOF
14706 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
14707 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
14709 cat >>confdefs.h <<_ACEOF
14710 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
14711 _ACEOF
14715 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
14716 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
14718 cat >>confdefs.h <<_ACEOF
14719 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
14720 _ACEOF
14726 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
14727 #include <sys/types.h>
14728 #endif
14729 #ifdef HAVE_NETINET_IN_H
14730 #include <netinet/in.h>
14731 #endif
14733 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
14735 cat >>confdefs.h <<_ACEOF
14736 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14737 _ACEOF
14743 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
14744 #include <sys/types.h>
14745 #endif
14746 #ifdef HAVE_NETINET_IN_H
14747 # include <netinet/in.h>
14748 #endif
14749 #ifdef HAVE_ARPA_NAMESER_H
14750 # include <arpa/nameser.h>
14751 #endif
14753 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
14755 cat >>confdefs.h <<_ACEOF
14756 #define HAVE_NS_MSG__MSG_PTR 1
14757 _ACEOF
14763 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
14764 #include <sys/types.h>
14765 #endif
14766 #ifdef HAVE_NETINET_IP_H
14767 #include <netinet/ip.h>
14768 #endif
14769 #ifdef HAVE_NETINET_IP_ICMP_H
14770 #include <netinet/ip_icmp.h>
14771 #endif
14772 #ifdef HAVE_NETINET_ICMP_VAR_H
14773 #include <netinet/icmp_var.h>
14774 #endif
14776 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
14778 cat >>confdefs.h <<_ACEOF
14779 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
14780 _ACEOF
14786 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
14787 #include <sys/types.h>
14788 #endif
14789 #ifdef HAVE_ALIAS_H
14790 #include <alias.h>
14791 #endif
14792 #ifdef HAVE_SYS_SOCKET_H
14793 #include <sys/socket.h>
14794 #endif
14795 #ifdef HAVE_SYS_SOCKETVAR_H
14796 #include <sys/socketvar.h>
14797 #endif
14798 #ifdef HAVE_SYS_TIMEOUT_H
14799 #include <sys/timeout.h>
14800 #endif
14801 #ifdef HAVE_NETINET_IN_H
14802 #include <netinet/in.h>
14803 #endif
14804 #ifdef HAVE_NETINET_IN_SYSTM_H
14805 #include <netinet/in_systm.h>
14806 #endif
14807 #ifdef HAVE_NETINET_IP_H
14808 #include <netinet/ip.h>
14809 #endif
14810 #ifdef HAVE_NETINET_IP_VAR_H
14811 #include <netinet/ip_var.h>
14812 #endif
14813 #ifdef HAVE_NETINET_IP_ICMP_H
14814 #include <netinet/ip_icmp.h>
14815 #endif
14816 #ifdef HAVE_NETINET_ICMP_VAR_H
14817 #include <netinet/icmp_var.h>
14818 #endif
14820 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
14822 cat >>confdefs.h <<_ACEOF
14823 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14824 _ACEOF
14830 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
14831 #include <sys/types.h>
14832 #endif
14833 #ifdef HAVE_SYS_SOCKETVAR_H
14834 #include <sys/socketvar.h>
14835 #endif
14836 #ifdef HAVE_NETINET_IN_H
14837 #include <netinet/in.h>
14838 #endif
14839 #ifdef HAVE_NETINET_IP_VAR_H
14840 #include <netinet/ip_var.h>
14841 #endif
14843 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
14845 cat >>confdefs.h <<_ACEOF
14846 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
14847 _ACEOF
14853 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
14854 #include <netinet/ip_var.h>
14855 #endif
14857 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
14859 cat >>confdefs.h <<_ACEOF
14860 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
14861 _ACEOF
14867 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
14868 #include <sys/types.h>
14869 #endif
14870 #ifdef HAVE_SYS_SOCKETVAR_H
14871 #include <sys/socketvar.h>
14872 #endif
14873 #ifdef HAVE_NETINET_IN_H
14874 #include <netinet/in.h>
14875 #endif
14876 #ifdef HAVE_NETINET_TCP_H
14877 #include <netinet/tcp.h>
14878 #endif
14879 #ifdef HAVE_NETINET_TCP_VAR_H
14880 #include <netinet/tcp_var.h>
14881 #endif
14883 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
14885 cat >>confdefs.h <<_ACEOF
14886 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
14887 _ACEOF
14893 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
14894 #include <netinet/tcp_var.h>
14895 #endif
14897 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
14899 cat >>confdefs.h <<_ACEOF
14900 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
14901 _ACEOF
14907 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
14908 #include <sys/types.h>
14909 #endif
14910 #ifdef HAVE_NETINET_IN_H
14911 #include <netinet/in.h>
14912 #endif
14913 #ifdef HAVE_NETINET_IP_VAR_H
14914 #include <netinet/ip_var.h>
14915 #endif
14916 #ifdef HAVE_NETINET_UDP_H
14917 #include <netinet/udp.h>
14918 #endif
14919 #ifdef HAVE_NETINET_UDP_VAR_H
14920 #include <netinet/udp_var.h>
14921 #endif
14923 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
14925 cat >>confdefs.h <<_ACEOF
14926 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
14927 _ACEOF
14933 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14934 #include <sys/types.h>
14935 #endif
14936 #ifdef HAVE_NET_IF_H
14937 # include <net/if.h>
14938 #endif
14940 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
14942 cat >>confdefs.h <<_ACEOF
14943 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14944 _ACEOF
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14951 $as_echo_n "checking for timezone variable... " >&6; }
14952 if ${ac_cv_have_timezone+:} false; then :
14953 $as_echo_n "(cached) " >&6
14954 else
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14957 #include <time.h>
14959 main ()
14961 timezone = 1
14963 return 0;
14965 _ACEOF
14966 if ac_fn_c_try_link "$LINENO"; then :
14967 ac_cv_have_timezone="yes"
14968 else
14969 ac_cv_have_timezone="no"
14971 rm -f core conftest.err conftest.$ac_objext \
14972 conftest$ac_exeext conftest.$ac_ext
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14975 $as_echo "$ac_cv_have_timezone" >&6; }
14976 if test "$ac_cv_have_timezone" = "yes"
14977 then
14979 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14983 $as_echo_n "checking for daylight variable... " >&6; }
14984 if ${ac_cv_have_daylight+:} false; then :
14985 $as_echo_n "(cached) " >&6
14986 else
14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14989 #include <time.h>
14991 main ()
14993 daylight = 1
14995 return 0;
14997 _ACEOF
14998 if ac_fn_c_try_link "$LINENO"; then :
14999 ac_cv_have_daylight="yes"
15000 else
15001 ac_cv_have_daylight="no"
15003 rm -f core conftest.err conftest.$ac_objext \
15004 conftest$ac_exeext conftest.$ac_ext
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
15007 $as_echo "$ac_cv_have_daylight" >&6; }
15008 if test "$ac_cv_have_daylight" = "yes"
15009 then
15011 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
15015 ac_save_LIBS="$LIBS"
15016 LIBS="$LIBS -lm"
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
15018 $as_echo_n "checking for isinf... " >&6; }
15019 if ${ac_cv_have_isinf+:} false; then :
15020 $as_echo_n "(cached) " >&6
15021 else
15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023 /* end confdefs.h. */
15024 #include <math.h>
15026 main ()
15028 float f = 0.0; return isinf(f)
15030 return 0;
15032 _ACEOF
15033 if ac_fn_c_try_link "$LINENO"; then :
15034 ac_cv_have_isinf="yes"
15035 else
15036 ac_cv_have_isinf="no"
15038 rm -f core conftest.err conftest.$ac_objext \
15039 conftest$ac_exeext conftest.$ac_ext
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
15042 $as_echo "$ac_cv_have_isinf" >&6; }
15043 if test "$ac_cv_have_isinf" = "yes"
15044 then
15046 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
15051 $as_echo_n "checking for isnan... " >&6; }
15052 if ${ac_cv_have_isnan+:} false; then :
15053 $as_echo_n "(cached) " >&6
15054 else
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057 #include <math.h>
15059 main ()
15061 float f = 0.0; return isnan(f)
15063 return 0;
15065 _ACEOF
15066 if ac_fn_c_try_link "$LINENO"; then :
15067 ac_cv_have_isnan="yes"
15068 else
15069 ac_cv_have_isnan="no"
15071 rm -f core conftest.err conftest.$ac_objext \
15072 conftest$ac_exeext conftest.$ac_ext
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
15075 $as_echo "$ac_cv_have_isnan" >&6; }
15076 if test "$ac_cv_have_isnan" = "yes"
15077 then
15079 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
15082 LIBS="$ac_save_LIBS"
15085 case $host_cpu in
15086 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
15087 $as_echo_n "checking whether we need to define __i386__... " >&6; }
15088 if ${ac_cv_cpp_def___i386__+:} false; then :
15089 $as_echo_n "(cached) " >&6
15090 else
15091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15092 /* end confdefs.h. */
15093 #ifndef __i386__
15095 #endif
15096 _ACEOF
15097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15098 $EGREP "yes" >/dev/null 2>&1; then :
15099 ac_cv_cpp_def___i386__=yes
15100 else
15101 ac_cv_cpp_def___i386__=no
15103 rm -f conftest*
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
15107 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
15108 if test $ac_cv_cpp_def___i386__ = yes; then :
15109 CFLAGS="$CFLAGS -D__i386__"
15110 LINTFLAGS="$LINTFLAGS -D__i386__"
15111 fi ;;
15112 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
15113 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
15114 if ${ac_cv_cpp_def___x86_64__+:} false; then :
15115 $as_echo_n "(cached) " >&6
15116 else
15117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15118 /* end confdefs.h. */
15119 #ifndef __x86_64__
15121 #endif
15122 _ACEOF
15123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15124 $EGREP "yes" >/dev/null 2>&1; then :
15125 ac_cv_cpp_def___x86_64__=yes
15126 else
15127 ac_cv_cpp_def___x86_64__=no
15129 rm -f conftest*
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
15133 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
15134 if test $ac_cv_cpp_def___x86_64__ = yes; then :
15135 CFLAGS="$CFLAGS -D__x86_64__"
15136 LINTFLAGS="$LINTFLAGS -D__x86_64__"
15137 fi ;;
15138 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
15139 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
15140 if ${ac_cv_cpp_def___sparc64__+:} false; then :
15141 $as_echo_n "(cached) " >&6
15142 else
15143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15144 /* end confdefs.h. */
15145 #ifndef __sparc64__
15147 #endif
15148 _ACEOF
15149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15150 $EGREP "yes" >/dev/null 2>&1; then :
15151 ac_cv_cpp_def___sparc64__=yes
15152 else
15153 ac_cv_cpp_def___sparc64__=no
15155 rm -f conftest*
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
15159 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
15160 if test $ac_cv_cpp_def___sparc64__ = yes; then :
15161 CFLAGS="$CFLAGS -D__sparc64__"
15162 LINTFLAGS="$LINTFLAGS -D__sparc64__"
15163 fi ;;
15164 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
15165 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
15166 if ${ac_cv_cpp_def___sparc__+:} false; then :
15167 $as_echo_n "(cached) " >&6
15168 else
15169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h. */
15171 #ifndef __sparc__
15173 #endif
15174 _ACEOF
15175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15176 $EGREP "yes" >/dev/null 2>&1; then :
15177 ac_cv_cpp_def___sparc__=yes
15178 else
15179 ac_cv_cpp_def___sparc__=no
15181 rm -f conftest*
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
15185 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
15186 if test $ac_cv_cpp_def___sparc__ = yes; then :
15187 CFLAGS="$CFLAGS -D__sparc__"
15188 LINTFLAGS="$LINTFLAGS -D__sparc__"
15189 fi ;;
15190 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
15191 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
15192 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
15193 $as_echo_n "(cached) " >&6
15194 else
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15197 #ifndef __powerpc64__
15199 #endif
15200 _ACEOF
15201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15202 $EGREP "yes" >/dev/null 2>&1; then :
15203 ac_cv_cpp_def___powerpc64__=yes
15204 else
15205 ac_cv_cpp_def___powerpc64__=no
15207 rm -f conftest*
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
15211 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
15212 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
15213 CFLAGS="$CFLAGS -D__powerpc64__"
15214 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
15215 fi ;;
15216 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
15217 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
15218 if ${ac_cv_cpp_def___powerpc__+:} false; then :
15219 $as_echo_n "(cached) " >&6
15220 else
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15223 #ifndef __powerpc__
15225 #endif
15226 _ACEOF
15227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15228 $EGREP "yes" >/dev/null 2>&1; then :
15229 ac_cv_cpp_def___powerpc__=yes
15230 else
15231 ac_cv_cpp_def___powerpc__=no
15233 rm -f conftest*
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
15237 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
15238 if test $ac_cv_cpp_def___powerpc__ = yes; then :
15239 CFLAGS="$CFLAGS -D__powerpc__"
15240 LINTFLAGS="$LINTFLAGS -D__powerpc__"
15241 fi ;;
15242 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
15243 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
15244 if ${ac_cv_cpp_def___aarch64__+:} false; then :
15245 $as_echo_n "(cached) " >&6
15246 else
15247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15248 /* end confdefs.h. */
15249 #ifndef __aarch64__
15251 #endif
15252 _ACEOF
15253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15254 $EGREP "yes" >/dev/null 2>&1; then :
15255 ac_cv_cpp_def___aarch64__=yes
15256 else
15257 ac_cv_cpp_def___aarch64__=no
15259 rm -f conftest*
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
15263 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
15264 if test $ac_cv_cpp_def___aarch64__ = yes; then :
15265 CFLAGS="$CFLAGS -D__aarch64__"
15266 LINTFLAGS="$LINTFLAGS -D__aarch64__"
15267 fi ;;
15268 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
15269 $as_echo_n "checking whether we need to define __arm__... " >&6; }
15270 if ${ac_cv_cpp_def___arm__+:} false; then :
15271 $as_echo_n "(cached) " >&6
15272 else
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15275 #ifndef __arm__
15277 #endif
15278 _ACEOF
15279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15280 $EGREP "yes" >/dev/null 2>&1; then :
15281 ac_cv_cpp_def___arm__=yes
15282 else
15283 ac_cv_cpp_def___arm__=no
15285 rm -f conftest*
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
15289 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
15290 if test $ac_cv_cpp_def___arm__ = yes; then :
15291 CFLAGS="$CFLAGS -D__arm__"
15292 LINTFLAGS="$LINTFLAGS -D__arm__"
15293 fi ;;
15294 esac
15296 case $host_vendor in
15297 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
15298 $as_echo_n "checking whether we need to define __sun__... " >&6; }
15299 if ${ac_cv_cpp_def___sun__+:} false; then :
15300 $as_echo_n "(cached) " >&6
15301 else
15302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h. */
15304 #ifndef __sun__
15306 #endif
15307 _ACEOF
15308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15309 $EGREP "yes" >/dev/null 2>&1; then :
15310 ac_cv_cpp_def___sun__=yes
15311 else
15312 ac_cv_cpp_def___sun__=no
15314 rm -f conftest*
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
15318 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
15319 if test $ac_cv_cpp_def___sun__ = yes; then :
15320 CFLAGS="$CFLAGS -D__sun__"
15321 LINTFLAGS="$LINTFLAGS -D__sun__"
15322 fi ;;
15323 esac
15329 ac_config_commands="$ac_config_commands include/stamp-h"
15332 ALL_MAKEFILE_DEPENDS="
15333 # Rules automatically generated by configure
15335 .INIT: Makefile
15336 .MAKEFILEDEPS:
15337 all: Makefile
15338 Makefile: Makefile.in Make.vars.in Make.rules config.status
15339 @./config.status Make.tmp Makefile"
15341 ALL_POT_FILES=""
15342 ALL_TEST_RESOURCES=""
15345 wine_fn_append_file ()
15347 as_fn_append $1 " \\$as_nl $2"
15350 wine_fn_append_rule ()
15352 as_fn_append $1 "$as_nl$2"
15355 wine_fn_has_flag ()
15357 expr ",$2," : ".*,$1,.*" >/dev/null
15360 wine_fn_all_dir_rules ()
15362 ac_dir=$1
15363 ac_alldeps=$2
15364 ac_makedep="\$(MAKEDEP)"
15365 ac_input=Make.vars.in:$ac_dir/Makefile.in
15366 if test $ac_dir != tools
15367 then
15368 ac_alldeps="$2 $ac_makedep"
15369 else
15370 ac_alldeps="$2 include/config.h"
15372 case $2 in
15373 *.in) ac_input=$ac_input:$2 ;;
15374 *) ac_makedep="$2 $ac_makedep" ;;
15375 esac
15377 wine_fn_append_file ALL_DIRS $ac_dir
15378 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15379 "__clean__: $ac_dir/__clean__
15380 .PHONY: $ac_dir/__clean__
15381 $ac_dir/__clean__: $ac_dir/Makefile
15382 @cd $ac_dir && \$(MAKE) clean
15383 \$(RM) $ac_dir/Makefile
15384 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
15385 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
15386 depend: $ac_dir/__depend__
15387 .PHONY: $ac_dir/__depend__
15388 $ac_dir/__depend__: $ac_makedep dummy
15389 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
15392 wine_fn_pot_rules ()
15394 ac_dir=$1
15395 ac_flags=$2
15397 test "x$with_gettextpo" = xyes || return
15399 if wine_fn_has_flag mc $ac_flags
15400 then
15401 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
15402 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15403 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
15404 @cd $ac_dir && \$(MAKE) msg.pot
15405 $ac_dir/msg.pot: tools/wmc include"
15407 if wine_fn_has_flag po $ac_flags
15408 then
15409 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
15410 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15411 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
15412 @cd $ac_dir && \$(MAKE) rsrc.pot
15413 $ac_dir/rsrc.pot: tools/wrc include"
15417 wine_fn_config_makefile ()
15419 ac_dir=$1
15420 ac_enable=$2
15421 ac_flags=$3
15422 ac_rules=$4
15423 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15424 return 0
15427 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
15428 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15429 "all: $ac_dir
15430 .PHONY: $ac_dir
15431 $ac_dir: $ac_dir/Makefile dummy
15432 @cd $ac_dir && \$(MAKE)"
15434 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
15436 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15437 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15438 $ac_dir/__install__:: $ac_dir
15439 @cd $ac_dir && \$(MAKE) install
15440 $ac_dir/__uninstall__:: $ac_dir/Makefile
15441 @cd $ac_dir && \$(MAKE) uninstall
15442 install:: $ac_dir/__install__
15443 __uninstall__: $ac_dir/__uninstall__"
15445 if wine_fn_has_flag install-lib $ac_flags
15446 then
15447 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15448 ".PHONY: $ac_dir/__install-lib__
15449 $ac_dir/__install-lib__:: $ac_dir
15450 @cd $ac_dir && \$(MAKE) install-lib
15451 install-lib:: $ac_dir/__install-lib__"
15454 if wine_fn_has_flag install-dev $ac_flags
15455 then
15456 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15457 ".PHONY: $ac_dir/__install-dev
15458 $ac_dir/__install-dev__:: $ac_dir
15459 @cd $ac_dir && \$(MAKE) install-dev
15460 install-dev:: $ac_dir/__install-dev__"
15464 wine_fn_config_lib ()
15466 ac_name=$1
15467 ac_flags=$2
15468 ac_dir=dlls/$ac_name
15469 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
15471 if wine_fn_has_flag install-dev $ac_flags
15472 then :
15473 else
15474 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15475 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15476 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
15477 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15478 $ac_dir/__uninstall__::
15479 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
15480 install install-dev:: $ac_dir/__install__
15481 __uninstall__: $ac_dir/__uninstall__"
15484 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
15485 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
15488 wine_fn_config_dll ()
15490 ac_name=$1
15491 ac_dir=dlls/$ac_name
15492 ac_enable=$2
15493 ac_flags=$3
15494 ac_implib=${4:-$ac_name}
15495 ac_file=$ac_dir/lib$ac_implib
15496 ac_dll=$ac_name
15497 ac_deps="tools/widl tools/winebuild tools/winegcc include"
15498 ac_implibflags=""
15500 case $ac_name in
15501 *16) ac_implibflags=" -m16" ;;
15502 *.*) ;;
15503 *) ac_dll=$ac_dll.dll ;;
15504 esac
15506 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
15508 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15509 test "$ac_enable" != enable_win16 || return 0
15510 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
15511 else
15512 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15513 "$ac_dir: __builddeps__
15514 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
15515 @cd $ac_dir && \$(MAKE) \$@"
15517 if wine_fn_has_flag install-lib $ac_flags
15518 then :
15519 else
15520 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15521 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
15522 install install-lib:: $ac_dir/__install-lib__
15523 __uninstall__: $ac_dir/__uninstall__"
15524 if test -n "$DLLEXT"
15525 then
15526 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15527 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15528 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
15529 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
15530 $ac_dir/__uninstall__::
15531 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
15532 else
15533 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15534 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15535 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
15536 $ac_dir/__uninstall__::
15537 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
15541 wine_fn_pot_rules $ac_dir $ac_flags
15544 if wine_fn_has_flag staticimplib $ac_flags
15545 then
15546 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15547 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
15548 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
15549 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
15550 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
15551 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
15552 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
15553 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15554 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15555 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15556 $ac_dir/__uninstall__::
15557 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15558 install install-dev:: $ac_dir/__install-dev__
15559 __uninstall__: $ac_dir/__uninstall__"
15561 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
15562 then
15563 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15564 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
15565 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
15566 $ac_dir/__uninstall__::
15567 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
15570 if test "x$CROSSTEST_DISABLE" = x
15571 then
15572 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15573 "__builddeps__: $ac_file.cross.a
15574 $ac_file.cross.a: $ac_dir/Makefile dummy
15575 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
15578 elif wine_fn_has_flag implib $ac_flags
15579 then
15580 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15581 "__builddeps__: $ac_file.$IMPLIBEXT
15582 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15583 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15584 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15585 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
15586 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
15587 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
15588 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15589 $ac_dir/__uninstall__::
15590 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
15591 install install-dev:: $ac_dir/__install-dev__
15592 __uninstall__: $ac_dir/__uninstall__"
15593 if test "x$CROSSTEST_DISABLE" = x
15594 then
15595 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15596 "__builddeps__: $ac_file.cross.a
15597 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
15598 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
15601 if test "$ac_name" != "$ac_implib"
15602 then
15603 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15604 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
15605 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
15606 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
15607 clean::
15608 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
15609 if test "x$CROSSTEST_DISABLE" = x
15610 then
15611 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15612 "__builddeps__: dlls/lib$ac_implib.cross.a
15613 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
15614 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
15620 wine_fn_config_program ()
15622 ac_name=$1
15623 ac_dir=programs/$ac_name
15624 ac_enable=$2
15625 ac_flags=$3
15626 ac_program=$ac_name
15628 case $ac_name in
15629 *.*) ;;
15630 *) ac_program=$ac_program.exe ;;
15631 esac
15633 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
15635 if eval test \"x\$"$ac_enable"\" = x"no"; then :
15637 else
15638 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15639 "$ac_dir: __builddeps__"
15641 wine_fn_pot_rules $ac_dir $ac_flags
15643 wine_fn_has_flag install $ac_flags || return
15644 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15645 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
15646 install install-lib:: $ac_dir/__install__
15647 __uninstall__: $ac_dir/__uninstall__"
15649 if test -n "$DLLEXT"
15650 then
15651 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15652 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
15653 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
15654 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
15655 $ac_dir/__uninstall__::
15656 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
15658 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
15659 then
15660 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15661 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
15662 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
15663 $ac_dir/__uninstall__::
15664 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
15666 else
15667 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15668 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
15669 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
15670 $ac_dir/__uninstall__::
15671 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
15674 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
15675 then
15676 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15677 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
15678 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
15679 $ac_dir/__uninstall__::
15680 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
15685 wine_fn_config_test ()
15687 ac_dir=$1
15688 ac_name=$2
15689 ac_flags=$3
15690 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
15691 wine_fn_all_dir_rules $ac_dir Maketest.rules
15693 if test "x$enable_tests" = xno; then :
15695 else
15696 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15697 "all: $ac_dir
15698 .PHONY: $ac_dir
15699 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
15700 @cd $ac_dir && \$(MAKE)
15701 programs/winetest: $ac_dir
15702 check test: $ac_dir/__test__
15703 .PHONY: $ac_dir/__test__
15704 $ac_dir/__test__: dummy
15705 @cd $ac_dir && \$(MAKE) test
15706 testclean::
15707 \$(RM) $ac_dir/*.ok"
15709 if test "x$CROSSTEST_DISABLE" = x
15710 then
15711 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15712 "crosstest: $ac_dir/__crosstest__
15713 .PHONY: $ac_dir/__crosstest__
15714 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
15715 @cd $ac_dir && \$(MAKE) crosstest"
15720 wine_fn_config_tool ()
15722 ac_dir=$1
15723 ac_flags=$2
15724 if test "x$enable_tools" = xno; then :
15725 return 0
15728 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
15730 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
15731 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
15732 case $ac_dir in
15733 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
15734 esac
15737 wine_fn_config_makerules ()
15739 ac_rules=$1
15740 ac_deps=$2
15741 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15742 "$ac_rules: $ac_rules.in $ac_deps config.status
15743 @./config.status $ac_rules
15744 distclean::
15745 \$(RM) $ac_rules"
15748 wine_fn_config_symlink ()
15750 ac_link=$1
15751 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15752 "$ac_link:
15753 @./config.status $ac_link
15754 distclean::
15755 \$(RM) $ac_link"
15758 if test "x$CROSSTEST_DISABLE" != x
15759 then
15760 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
15761 "crosstest:
15762 @echo \"crosstest is not supported (mingw not installed?)\" && false"
15764 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
15765 wine_fn_config_symlink dlls/shell32/AUTHORS
15766 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
15767 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
15768 if test "x$enable_fonts" != xno; then
15769 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
15770 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
15772 if test "x$enable_fonts" != xno; then
15773 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
15774 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
15776 if test "x$enable_fonts" != xno; then
15777 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
15778 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
15780 if test "x$enable_fonts" != xno; then
15781 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
15782 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
15784 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
15785 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
15786 if test "x$enable_tools" != xno; then
15787 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
15788 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
15790 ac_config_links="$ac_config_links wine:tools/winewrapper"
15791 wine_fn_config_symlink wine
15792 if test "x$enable_win64" != xno; then
15793 ac_config_links="$ac_config_links wine64:tools/winewrapper"
15794 wine_fn_config_symlink wine64
15797 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
15799 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
15801 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
15803 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
15805 ac_config_commands="$ac_config_commands dlls/user32/resources"
15807 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
15809 ac_config_commands="$ac_config_commands include/wine"
15812 wine_fn_config_makerules Make.rules
15813 MAKE_RULES=Make.rules
15814 ac_config_files="$ac_config_files Make.rules"
15816 wine_fn_config_makerules Maketest.rules Make.rules
15817 MAKE_TEST_RULES=Maketest.rules
15818 ac_config_files="$ac_config_files Maketest.rules"
15820 wine_fn_config_makerules dlls/Makedll.rules Make.rules
15821 MAKE_DLL_RULES=dlls/Makedll.rules
15822 ac_config_files="$ac_config_files dlls/Makedll.rules"
15824 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
15825 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
15826 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
15828 wine_fn_config_makerules programs/Makeprog.rules Make.rules
15829 MAKE_PROG_RULES=programs/Makeprog.rules
15830 ac_config_files="$ac_config_files programs/Makeprog.rules"
15833 wine_fn_config_dll acledit enable_acledit
15834 wine_fn_config_dll aclui enable_aclui implib
15835 wine_fn_config_dll activeds enable_activeds implib
15836 wine_fn_config_dll actxprxy enable_actxprxy
15837 wine_fn_config_lib adsiid
15838 wine_fn_config_dll advapi32 enable_advapi32 implib
15839 wine_fn_config_test dlls/advapi32/tests advapi32_test
15840 wine_fn_config_dll advpack enable_advpack implib
15841 wine_fn_config_test dlls/advpack/tests advpack_test
15842 wine_fn_config_dll amstream enable_amstream
15843 wine_fn_config_test dlls/amstream/tests amstream_test
15844 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
15845 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
15846 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
15847 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
15848 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
15849 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
15850 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
15851 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
15852 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
15853 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
15854 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
15855 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
15856 wine_fn_config_dll apphelp enable_apphelp
15857 wine_fn_config_test dlls/apphelp/tests apphelp_test
15858 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
15859 wine_fn_config_dll atl enable_atl implib
15860 wine_fn_config_test dlls/atl/tests atl_test
15861 wine_fn_config_dll atl100 enable_atl100 implib
15862 wine_fn_config_test dlls/atl100/tests atl100_test
15863 wine_fn_config_dll atl80 enable_atl80 implib
15864 wine_fn_config_test dlls/atl80/tests atl80_test
15865 wine_fn_config_dll authz enable_authz
15866 wine_fn_config_dll avicap32 enable_avicap32 implib
15867 wine_fn_config_dll avifil32 enable_avifil32 implib,po
15868 wine_fn_config_test dlls/avifil32/tests avifil32_test
15869 wine_fn_config_dll avifile.dll16 enable_win16
15870 wine_fn_config_dll avrt enable_avrt implib
15871 wine_fn_config_dll bcrypt enable_bcrypt
15872 wine_fn_config_dll browseui enable_browseui po
15873 wine_fn_config_test dlls/browseui/tests browseui_test
15874 wine_fn_config_dll cabinet enable_cabinet implib
15875 wine_fn_config_test dlls/cabinet/tests cabinet_test
15876 wine_fn_config_dll capi2032 enable_capi2032 implib
15877 wine_fn_config_dll cards enable_cards implib
15878 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
15879 wine_fn_config_dll clusapi enable_clusapi implib
15880 wine_fn_config_dll comcat enable_comcat
15881 wine_fn_config_test dlls/comcat/tests comcat_test
15882 wine_fn_config_dll comctl32 enable_comctl32 implib,po
15883 wine_fn_config_test dlls/comctl32/tests comctl32_test
15884 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
15885 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
15886 wine_fn_config_dll comm.drv16 enable_win16
15887 wine_fn_config_dll commdlg.dll16 enable_win16
15888 wine_fn_config_dll compobj.dll16 enable_win16
15889 wine_fn_config_dll compstui enable_compstui implib
15890 wine_fn_config_dll credui enable_credui implib,po
15891 wine_fn_config_test dlls/credui/tests credui_test
15892 wine_fn_config_dll crtdll enable_crtdll implib
15893 wine_fn_config_dll crypt32 enable_crypt32 implib,po
15894 wine_fn_config_test dlls/crypt32/tests crypt32_test
15895 wine_fn_config_dll cryptdlg enable_cryptdlg po
15896 wine_fn_config_dll cryptdll enable_cryptdll implib
15897 wine_fn_config_dll cryptnet enable_cryptnet implib
15898 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
15899 wine_fn_config_dll cryptui enable_cryptui implib,po
15900 wine_fn_config_test dlls/cryptui/tests cryptui_test
15901 wine_fn_config_dll ctapi32 enable_ctapi32
15902 wine_fn_config_dll ctl3d.dll16 enable_win16
15903 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
15904 wine_fn_config_dll ctl3dv2.dll16 enable_win16
15905 wine_fn_config_dll d3d10 enable_d3d10 implib
15906 wine_fn_config_test dlls/d3d10/tests d3d10_test
15907 wine_fn_config_dll d3d10core enable_d3d10core implib
15908 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
15909 wine_fn_config_dll d3d11 enable_d3d11
15910 wine_fn_config_dll d3d8 enable_d3d8 implib
15911 wine_fn_config_test dlls/d3d8/tests d3d8_test
15912 wine_fn_config_dll d3d9 enable_d3d9 implib
15913 wine_fn_config_test dlls/d3d9/tests d3d9_test
15914 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
15915 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
15916 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
15917 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
15918 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
15919 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
15920 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
15921 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
15922 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
15923 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
15924 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
15925 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
15926 wine_fn_config_dll d3dim enable_d3dim implib
15927 wine_fn_config_dll d3drm enable_d3drm implib
15928 wine_fn_config_test dlls/d3drm/tests d3drm_test
15929 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
15930 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
15931 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
15932 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
15933 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
15934 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
15935 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
15936 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
15937 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
15938 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
15939 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
15940 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15941 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15942 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15943 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15944 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15945 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15946 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15947 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15948 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15949 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15950 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15951 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
15952 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
15953 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
15954 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15955 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15956 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15957 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15958 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15959 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
15960 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
15961 wine_fn_config_dll d3dxof enable_d3dxof implib
15962 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
15963 wine_fn_config_dll dbgeng enable_dbgeng implib
15964 wine_fn_config_dll dbghelp enable_dbghelp implib
15965 wine_fn_config_dll dciman32 enable_dciman32 implib
15966 wine_fn_config_dll ddeml.dll16 enable_win16
15967 wine_fn_config_dll ddraw enable_ddraw implib
15968 wine_fn_config_test dlls/ddraw/tests ddraw_test
15969 wine_fn_config_dll ddrawex enable_ddrawex
15970 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
15971 wine_fn_config_dll devenum enable_devenum po
15972 wine_fn_config_test dlls/devenum/tests devenum_test
15973 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
15974 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
15975 wine_fn_config_test dlls/dinput/tests dinput_test
15976 wine_fn_config_dll dinput8 enable_dinput8 implib
15977 wine_fn_config_test dlls/dinput8/tests dinput8_test
15978 wine_fn_config_dll dispdib.dll16 enable_win16
15979 wine_fn_config_dll dispex enable_dispex
15980 wine_fn_config_test dlls/dispex/tests dispex_test
15981 wine_fn_config_dll display.drv16 enable_win16
15982 wine_fn_config_dll dmband enable_dmband
15983 wine_fn_config_test dlls/dmband/tests dmband_test
15984 wine_fn_config_dll dmcompos enable_dmcompos
15985 wine_fn_config_dll dmime enable_dmime
15986 wine_fn_config_test dlls/dmime/tests dmime_test
15987 wine_fn_config_dll dmloader enable_dmloader
15988 wine_fn_config_test dlls/dmloader/tests dmloader_test
15989 wine_fn_config_dll dmscript enable_dmscript
15990 wine_fn_config_dll dmstyle enable_dmstyle
15991 wine_fn_config_dll dmsynth enable_dmsynth
15992 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
15993 wine_fn_config_dll dmusic enable_dmusic
15994 wine_fn_config_test dlls/dmusic/tests dmusic_test
15995 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15996 wine_fn_config_dll dnsapi enable_dnsapi implib
15997 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15998 wine_fn_config_dll dplay enable_dplay implib
15999 wine_fn_config_dll dplayx enable_dplayx implib
16000 wine_fn_config_test dlls/dplayx/tests dplayx_test
16001 wine_fn_config_dll dpnaddr enable_dpnaddr
16002 wine_fn_config_dll dpnet enable_dpnet implib
16003 wine_fn_config_test dlls/dpnet/tests dpnet_test
16004 wine_fn_config_dll dpnhpast enable_dpnhpast
16005 wine_fn_config_dll dpnlobby enable_dpnlobby
16006 wine_fn_config_dll dpwsockx enable_dpwsockx
16007 wine_fn_config_dll drmclien enable_drmclien
16008 wine_fn_config_dll dsound enable_dsound implib
16009 wine_fn_config_test dlls/dsound/tests dsound_test
16010 wine_fn_config_dll dssenh enable_dssenh
16011 wine_fn_config_test dlls/dssenh/tests dssenh_test
16012 wine_fn_config_dll dswave enable_dswave
16013 wine_fn_config_dll dwmapi enable_dwmapi implib
16014 wine_fn_config_dll dwrite enable_dwrite implib
16015 wine_fn_config_test dlls/dwrite/tests dwrite_test
16016 wine_fn_config_dll dxdiagn enable_dxdiagn po
16017 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
16018 wine_fn_config_lib dxerr8
16019 wine_fn_config_lib dxerr9
16020 wine_fn_config_dll dxgi enable_dxgi implib
16021 wine_fn_config_test dlls/dxgi/tests dxgi_test
16022 wine_fn_config_lib dxguid
16023 wine_fn_config_dll explorerframe enable_explorerframe
16024 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
16025 wine_fn_config_dll faultrep enable_faultrep implib
16026 wine_fn_config_test dlls/faultrep/tests faultrep_test
16027 wine_fn_config_dll fltlib enable_fltlib
16028 wine_fn_config_dll fusion enable_fusion
16029 wine_fn_config_test dlls/fusion/tests fusion_test
16030 wine_fn_config_dll fwpuclnt enable_fwpuclnt
16031 wine_fn_config_dll gameux enable_gameux
16032 wine_fn_config_test dlls/gameux/tests gameux_test
16033 wine_fn_config_dll gdi.exe16 enable_win16
16034 wine_fn_config_dll gdi32 enable_gdi32 implib,po
16035 wine_fn_config_test dlls/gdi32/tests gdi32_test
16036 wine_fn_config_dll gdiplus enable_gdiplus implib
16037 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
16038 wine_fn_config_dll glu32 enable_glu32 implib
16039 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
16040 wine_fn_config_dll gpkcsp enable_gpkcsp
16041 wine_fn_config_dll hal enable_hal
16042 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx implib,po htmlhelp
16043 wine_fn_config_dll hid enable_hid implib
16044 wine_fn_config_dll hlink enable_hlink implib
16045 wine_fn_config_test dlls/hlink/tests hlink_test
16046 wine_fn_config_dll hnetcfg enable_hnetcfg
16047 wine_fn_config_dll httpapi enable_httpapi
16048 wine_fn_config_dll iccvid enable_iccvid po
16049 wine_fn_config_dll icmp enable_icmp
16050 wine_fn_config_dll ieframe enable_ieframe implib,po
16051 wine_fn_config_test dlls/ieframe/tests ieframe_test
16052 wine_fn_config_dll ifsmgr.vxd enable_win16
16053 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
16054 wine_fn_config_dll imagehlp enable_imagehlp implib
16055 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
16056 wine_fn_config_dll imm.dll16 enable_win16
16057 wine_fn_config_dll imm32 enable_imm32 implib
16058 wine_fn_config_test dlls/imm32/tests imm32_test
16059 wine_fn_config_dll inetcomm enable_inetcomm implib
16060 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16061 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16062 wine_fn_config_dll inetmib1 enable_inetmib1
16063 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16064 wine_fn_config_dll infosoft enable_infosoft
16065 wine_fn_config_test dlls/infosoft/tests infosoft_test
16066 wine_fn_config_dll initpki enable_initpki
16067 wine_fn_config_dll inkobj enable_inkobj
16068 wine_fn_config_dll inseng enable_inseng
16069 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16070 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16071 wine_fn_config_dll itircl enable_itircl
16072 wine_fn_config_dll itss enable_itss
16073 wine_fn_config_test dlls/itss/tests itss_test
16074 wine_fn_config_dll joy.cpl enable_joy_cpl po
16075 wine_fn_config_dll jscript enable_jscript po
16076 wine_fn_config_test dlls/jscript/tests jscript_test
16077 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
16078 wine_fn_config_test dlls/kernel32/tests kernel32_test
16079 wine_fn_config_dll keyboard.drv16 enable_win16
16080 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16081 wine_fn_config_dll ktmw32 enable_ktmw32
16082 wine_fn_config_dll loadperf enable_loadperf implib
16083 wine_fn_config_dll localspl enable_localspl po
16084 wine_fn_config_test dlls/localspl/tests localspl_test
16085 wine_fn_config_dll localui enable_localui po
16086 wine_fn_config_test dlls/localui/tests localui_test
16087 wine_fn_config_dll lz32 enable_lz32 implib
16088 wine_fn_config_test dlls/lz32/tests lz32_test
16089 wine_fn_config_dll lzexpand.dll16 enable_win16
16090 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16091 wine_fn_config_test dlls/mapi32/tests mapi32_test
16092 wine_fn_config_dll mapistub enable_mapistub
16093 wine_fn_config_dll mciavi32 enable_mciavi32
16094 wine_fn_config_dll mcicda enable_mcicda
16095 wine_fn_config_dll mciqtz32 enable_mciqtz32
16096 wine_fn_config_dll mciseq enable_mciseq
16097 wine_fn_config_dll mciwave enable_mciwave
16098 wine_fn_config_dll mgmtapi enable_mgmtapi
16099 wine_fn_config_dll midimap enable_midimap
16100 wine_fn_config_dll mlang enable_mlang implib
16101 wine_fn_config_test dlls/mlang/tests mlang_test
16102 wine_fn_config_dll mmcndmgr enable_mmcndmgr
16103 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16104 wine_fn_config_dll mmdevapi enable_mmdevapi
16105 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16106 wine_fn_config_dll mmdevldr.vxd enable_win16
16107 wine_fn_config_dll mmsystem.dll16 enable_win16
16108 wine_fn_config_dll monodebg.vxd enable_win16
16109 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16110 wine_fn_config_dll mouse.drv16 enable_win16
16111 wine_fn_config_dll mpr enable_mpr implib,po
16112 wine_fn_config_test dlls/mpr/tests mpr_test
16113 wine_fn_config_dll mprapi enable_mprapi implib
16114 wine_fn_config_dll msacm.dll16 enable_win16
16115 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16116 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16117 wine_fn_config_test dlls/msacm32/tests msacm32_test
16118 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16119 wine_fn_config_dll mscat32 enable_mscat32
16120 wine_fn_config_dll mscms enable_mscms implib
16121 wine_fn_config_test dlls/mscms/tests mscms_test
16122 wine_fn_config_dll mscoree enable_mscoree
16123 wine_fn_config_test dlls/mscoree/tests mscoree_test
16124 wine_fn_config_dll msctf enable_msctf
16125 wine_fn_config_test dlls/msctf/tests msctf_test
16126 wine_fn_config_dll msdaps enable_msdaps
16127 wine_fn_config_dll msdmo enable_msdmo implib
16128 wine_fn_config_dll msftedit enable_msftedit
16129 wine_fn_config_dll msg711.acm enable_msg711_acm
16130 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
16131 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
16132 wine_fn_config_dll mshtml enable_mshtml implib,po
16133 wine_fn_config_test dlls/mshtml/tests mshtml_test
16134 wine_fn_config_dll msi enable_msi implib,po
16135 wine_fn_config_test dlls/msi/tests msi_test
16136 wine_fn_config_dll msident enable_msident
16137 wine_fn_config_dll msimg32 enable_msimg32 implib
16138 wine_fn_config_dll msimsg enable_msimsg
16139 wine_fn_config_dll msimtf enable_msimtf
16140 wine_fn_config_dll msisip enable_msisip
16141 wine_fn_config_dll msisys.ocx enable_msisys_ocx
16142 wine_fn_config_dll msls31 enable_msls31
16143 wine_fn_config_dll msnet32 enable_msnet32
16144 wine_fn_config_dll mspatcha enable_mspatcha
16145 wine_fn_config_dll msrle32 enable_msrle32 po
16146 wine_fn_config_dll mssign32 enable_mssign32
16147 wine_fn_config_dll mssip32 enable_mssip32
16148 wine_fn_config_dll mstask enable_mstask
16149 wine_fn_config_test dlls/mstask/tests mstask_test
16150 wine_fn_config_dll msvcirt enable_msvcirt
16151 wine_fn_config_dll msvcm80 enable_msvcm80
16152 wine_fn_config_dll msvcm90 enable_msvcm90
16153 wine_fn_config_dll msvcp100 enable_msvcp100
16154 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
16155 wine_fn_config_dll msvcp110 enable_msvcp110
16156 wine_fn_config_dll msvcp60 enable_msvcp60
16157 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
16158 wine_fn_config_dll msvcp70 enable_msvcp70
16159 wine_fn_config_dll msvcp71 enable_msvcp71
16160 wine_fn_config_dll msvcp80 enable_msvcp80
16161 wine_fn_config_dll msvcp90 enable_msvcp90
16162 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
16163 wine_fn_config_dll msvcr100 enable_msvcr100
16164 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
16165 wine_fn_config_dll msvcr110 enable_msvcr110
16166 wine_fn_config_dll msvcr70 enable_msvcr70 implib
16167 wine_fn_config_dll msvcr71 enable_msvcr71 implib
16168 wine_fn_config_dll msvcr80 enable_msvcr80
16169 wine_fn_config_dll msvcr90 enable_msvcr90
16170 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
16171 wine_fn_config_dll msvcrt enable_msvcrt implib
16172 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
16173 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
16174 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
16175 wine_fn_config_dll msvcrtd enable_msvcrtd implib
16176 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
16177 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
16178 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
16179 wine_fn_config_dll msvidc32 enable_msvidc32 po
16180 wine_fn_config_dll msvideo.dll16 enable_win16
16181 wine_fn_config_dll mswsock enable_mswsock implib
16182 wine_fn_config_dll msxml enable_msxml
16183 wine_fn_config_dll msxml2 enable_msxml2
16184 wine_fn_config_dll msxml3 enable_msxml3
16185 wine_fn_config_test dlls/msxml3/tests msxml3_test
16186 wine_fn_config_dll msxml4 enable_msxml4
16187 wine_fn_config_dll msxml6 enable_msxml6
16188 wine_fn_config_dll nddeapi enable_nddeapi implib
16189 wine_fn_config_dll netapi32 enable_netapi32 implib
16190 wine_fn_config_test dlls/netapi32/tests netapi32_test
16191 wine_fn_config_dll newdev enable_newdev implib
16192 wine_fn_config_dll normaliz enable_normaliz implib
16193 wine_fn_config_dll npmshtml enable_npmshtml
16194 wine_fn_config_dll ntdll enable_ntdll implib
16195 wine_fn_config_test dlls/ntdll/tests ntdll_test
16196 wine_fn_config_dll ntdsapi enable_ntdsapi implib
16197 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
16198 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
16199 wine_fn_config_dll ntprint enable_ntprint
16200 wine_fn_config_test dlls/ntprint/tests ntprint_test
16201 wine_fn_config_dll objsel enable_objsel
16202 wine_fn_config_dll odbc32 enable_odbc32 implib
16203 wine_fn_config_dll odbccp32 enable_odbccp32 implib
16204 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
16205 wine_fn_config_dll odbccu32 enable_odbccu32
16206 wine_fn_config_dll ole2.dll16 enable_win16
16207 wine_fn_config_dll ole2conv.dll16 enable_win16
16208 wine_fn_config_dll ole2disp.dll16 enable_win16
16209 wine_fn_config_dll ole2nls.dll16 enable_win16
16210 wine_fn_config_dll ole2prox.dll16 enable_win16
16211 wine_fn_config_dll ole2thk.dll16 enable_win16
16212 wine_fn_config_dll ole32 enable_ole32 implib
16213 wine_fn_config_test dlls/ole32/tests ole32_test
16214 wine_fn_config_dll oleacc enable_oleacc implib,po
16215 wine_fn_config_test dlls/oleacc/tests oleacc_test
16216 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
16217 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
16218 wine_fn_config_dll olecli.dll16 enable_win16
16219 wine_fn_config_dll olecli32 enable_olecli32 implib
16220 wine_fn_config_dll oledb32 enable_oledb32
16221 wine_fn_config_test dlls/oledb32/tests oledb32_test
16222 wine_fn_config_dll oledlg enable_oledlg implib,po
16223 wine_fn_config_dll olepro32 enable_olepro32 implib
16224 wine_fn_config_dll olesvr.dll16 enable_win16
16225 wine_fn_config_dll olesvr32 enable_olesvr32 implib
16226 wine_fn_config_dll olethk32 enable_olethk32
16227 wine_fn_config_dll openal32 enable_openal32
16228 wine_fn_config_dll opencl enable_opencl
16229 wine_fn_config_dll opengl32 enable_opengl32 implib
16230 wine_fn_config_test dlls/opengl32/tests opengl32_test
16231 wine_fn_config_dll pdh enable_pdh implib
16232 wine_fn_config_test dlls/pdh/tests pdh_test
16233 wine_fn_config_dll photometadatahandler enable_photometadatahandler
16234 wine_fn_config_dll pidgen enable_pidgen
16235 wine_fn_config_dll powrprof enable_powrprof implib
16236 wine_fn_config_dll printui enable_printui
16237 wine_fn_config_dll propsys enable_propsys implib
16238 wine_fn_config_test dlls/propsys/tests propsys_test
16239 wine_fn_config_dll psapi enable_psapi implib
16240 wine_fn_config_test dlls/psapi/tests psapi_test
16241 wine_fn_config_dll pstorec enable_pstorec
16242 wine_fn_config_dll qcap enable_qcap
16243 wine_fn_config_dll qedit enable_qedit
16244 wine_fn_config_test dlls/qedit/tests qedit_test
16245 wine_fn_config_dll qmgr enable_qmgr
16246 wine_fn_config_test dlls/qmgr/tests qmgr_test
16247 wine_fn_config_dll qmgrprxy enable_qmgrprxy
16248 wine_fn_config_dll quartz enable_quartz implib
16249 wine_fn_config_test dlls/quartz/tests quartz_test
16250 wine_fn_config_dll query enable_query
16251 wine_fn_config_dll rasapi16.dll16 enable_win16
16252 wine_fn_config_dll rasapi32 enable_rasapi32 implib
16253 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
16254 wine_fn_config_dll rasdlg enable_rasdlg implib
16255 wine_fn_config_dll regapi enable_regapi
16256 wine_fn_config_dll resutils enable_resutils implib
16257 wine_fn_config_dll riched20 enable_riched20 implib
16258 wine_fn_config_test dlls/riched20/tests riched20_test
16259 wine_fn_config_dll riched32 enable_riched32
16260 wine_fn_config_test dlls/riched32/tests riched32_test
16261 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
16262 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
16263 wine_fn_config_dll rsabase enable_rsabase
16264 wine_fn_config_dll rsaenh enable_rsaenh implib
16265 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
16266 wine_fn_config_dll rstrtmgr enable_rstrtmgr
16267 wine_fn_config_dll rtutils enable_rtutils implib
16268 wine_fn_config_dll samlib enable_samlib
16269 wine_fn_config_dll sane.ds enable_sane_ds po
16270 wine_fn_config_dll scarddlg enable_scarddlg
16271 wine_fn_config_dll sccbase enable_sccbase
16272 wine_fn_config_dll schannel enable_schannel
16273 wine_fn_config_test dlls/schannel/tests schannel_test
16274 wine_fn_config_dll scrrun enable_scrrun
16275 wine_fn_config_test dlls/scrrun/tests scrrun_test
16276 wine_fn_config_dll scsiport.sys enable_scsiport_sys
16277 wine_fn_config_dll secur32 enable_secur32 implib
16278 wine_fn_config_test dlls/secur32/tests secur32_test
16279 wine_fn_config_dll security enable_security
16280 wine_fn_config_dll sensapi enable_sensapi implib
16281 wine_fn_config_dll serialui enable_serialui implib,po
16282 wine_fn_config_test dlls/serialui/tests serialui_test
16283 wine_fn_config_dll setupapi enable_setupapi implib,po
16284 wine_fn_config_test dlls/setupapi/tests setupapi_test
16285 wine_fn_config_dll setupx.dll16 enable_win16
16286 wine_fn_config_dll sfc enable_sfc implib
16287 wine_fn_config_dll sfc_os enable_sfc_os implib
16288 wine_fn_config_dll shdoclc enable_shdoclc po
16289 wine_fn_config_dll shdocvw enable_shdocvw implib
16290 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
16291 wine_fn_config_dll shell.dll16 enable_win16
16292 wine_fn_config_dll shell32 enable_shell32 implib,po
16293 wine_fn_config_test dlls/shell32/tests shell32_test
16294 wine_fn_config_dll shfolder enable_shfolder implib
16295 wine_fn_config_dll shlwapi enable_shlwapi implib,po
16296 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
16297 wine_fn_config_dll slbcsp enable_slbcsp
16298 wine_fn_config_dll slc enable_slc implib
16299 wine_fn_config_dll snmpapi enable_snmpapi implib
16300 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
16301 wine_fn_config_dll softpub enable_softpub
16302 wine_fn_config_dll sound.drv16 enable_win16
16303 wine_fn_config_dll spoolss enable_spoolss implib
16304 wine_fn_config_test dlls/spoolss/tests spoolss_test
16305 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
16306 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
16307 wine_fn_config_dll sti enable_sti implib
16308 wine_fn_config_test dlls/sti/tests sti_test
16309 wine_fn_config_dll storage.dll16 enable_win16
16310 wine_fn_config_dll stress.dll16 enable_win16
16311 wine_fn_config_lib strmbase
16312 wine_fn_config_lib strmiids
16313 wine_fn_config_dll svrapi enable_svrapi
16314 wine_fn_config_dll sxs enable_sxs implib
16315 wine_fn_config_test dlls/sxs/tests sxs_test
16316 wine_fn_config_dll system.drv16 enable_win16
16317 wine_fn_config_dll t2embed enable_t2embed
16318 wine_fn_config_dll tapi32 enable_tapi32 implib
16319 wine_fn_config_dll toolhelp.dll16 enable_win16
16320 wine_fn_config_dll traffic enable_traffic
16321 wine_fn_config_dll twain.dll16 enable_win16
16322 wine_fn_config_dll twain_32 enable_twain_32
16323 wine_fn_config_test dlls/twain_32/tests twain_32_test
16324 wine_fn_config_dll typelib.dll16 enable_win16
16325 wine_fn_config_dll unicows enable_unicows implib
16326 wine_fn_config_dll updspapi enable_updspapi
16327 wine_fn_config_dll url enable_url implib
16328 wine_fn_config_dll urlmon enable_urlmon implib,po
16329 wine_fn_config_test dlls/urlmon/tests urlmon_test
16330 wine_fn_config_dll usbd.sys enable_usbd_sys implib
16331 wine_fn_config_dll user.exe16 enable_win16
16332 wine_fn_config_dll user32 enable_user32 implib,po
16333 wine_fn_config_test dlls/user32/tests user32_test
16334 wine_fn_config_dll userenv enable_userenv implib
16335 wine_fn_config_test dlls/userenv/tests userenv_test
16336 wine_fn_config_dll usp10 enable_usp10 implib
16337 wine_fn_config_test dlls/usp10/tests usp10_test
16338 wine_fn_config_lib uuid
16339 wine_fn_config_dll uxtheme enable_uxtheme implib
16340 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
16341 wine_fn_config_dll vbscript enable_vbscript
16342 wine_fn_config_test dlls/vbscript/tests vbscript_test
16343 wine_fn_config_dll vcomp enable_vcomp
16344 wine_fn_config_dll vcomp100 enable_vcomp100
16345 wine_fn_config_dll vcomp90 enable_vcomp90
16346 wine_fn_config_dll vdhcp.vxd enable_win16
16347 wine_fn_config_dll vdmdbg enable_vdmdbg implib
16348 wine_fn_config_dll ver.dll16 enable_win16
16349 wine_fn_config_dll version enable_version implib
16350 wine_fn_config_test dlls/version/tests version_test
16351 wine_fn_config_dll vmm.vxd enable_win16
16352 wine_fn_config_dll vnbt.vxd enable_win16
16353 wine_fn_config_dll vnetbios.vxd enable_win16
16354 wine_fn_config_dll vtdapi.vxd enable_win16
16355 wine_fn_config_dll vwin32.vxd enable_win16
16356 wine_fn_config_dll w32skrnl enable_win16
16357 wine_fn_config_dll w32sys.dll16 enable_win16
16358 wine_fn_config_dll wbemprox enable_wbemprox
16359 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
16360 wine_fn_config_dll webservices enable_webservices implib
16361 wine_fn_config_dll wer enable_wer implib
16362 wine_fn_config_test dlls/wer/tests wer_test
16363 wine_fn_config_dll wevtapi enable_wevtapi
16364 wine_fn_config_dll wiaservc enable_wiaservc
16365 wine_fn_config_dll win32s16.dll16 enable_win16
16366 wine_fn_config_dll win87em.dll16 enable_win16
16367 wine_fn_config_dll winaspi.dll16 enable_win16
16368 wine_fn_config_dll windebug.dll16 enable_win16
16369 wine_fn_config_dll windowscodecs enable_windowscodecs implib
16370 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
16371 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
16372 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
16373 wine_fn_config_dll winealsa.drv enable_winealsa_drv
16374 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
16375 wine_fn_config_lib winecrt0
16376 wine_fn_config_dll wined3d enable_wined3d implib
16377 wine_fn_config_dll winegstreamer enable_winegstreamer
16378 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
16379 wine_fn_config_dll winemac.drv enable_winemac_drv
16380 wine_fn_config_dll winemapi enable_winemapi
16381 wine_fn_config_dll winemp3.acm enable_winemp3_acm
16382 wine_fn_config_dll wineoss.drv enable_wineoss_drv
16383 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
16384 wine_fn_config_dll wineps16.drv16 enable_win16
16385 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
16386 wine_fn_config_dll winex11.drv enable_winex11_drv
16387 wine_fn_config_dll wing.dll16 enable_win16
16388 wine_fn_config_dll wing32 enable_wing32
16389 wine_fn_config_dll winhttp enable_winhttp implib
16390 wine_fn_config_test dlls/winhttp/tests winhttp_test
16391 wine_fn_config_dll wininet enable_wininet implib,po
16392 wine_fn_config_test dlls/wininet/tests wininet_test
16393 wine_fn_config_dll winmm enable_winmm implib,po
16394 wine_fn_config_test dlls/winmm/tests winmm_test
16395 wine_fn_config_dll winnls.dll16 enable_win16
16396 wine_fn_config_dll winnls32 enable_winnls32 implib
16397 wine_fn_config_dll winscard enable_winscard implib
16398 wine_fn_config_dll winsock.dll16 enable_win16
16399 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
16400 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
16401 wine_fn_config_dll winsta enable_winsta
16402 wine_fn_config_dll wintab.dll16 enable_win16
16403 wine_fn_config_dll wintab32 enable_wintab32 implib
16404 wine_fn_config_test dlls/wintab32/tests wintab32_test
16405 wine_fn_config_dll wintrust enable_wintrust implib
16406 wine_fn_config_test dlls/wintrust/tests wintrust_test
16407 wine_fn_config_dll wlanapi enable_wlanapi
16408 wine_fn_config_dll wldap32 enable_wldap32 implib,po
16409 wine_fn_config_test dlls/wldap32/tests wldap32_test
16410 wine_fn_config_dll wmi enable_wmi
16411 wine_fn_config_dll wmiutils enable_wmiutils
16412 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
16413 wine_fn_config_dll wmvcore enable_wmvcore
16414 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
16415 wine_fn_config_dll wow32 enable_win16 implib
16416 wine_fn_config_dll ws2_32 enable_ws2_32 implib
16417 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
16418 wine_fn_config_dll wshom.ocx enable_wshom_ocx
16419 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
16420 wine_fn_config_dll wsnmp32 enable_wsnmp32
16421 wine_fn_config_dll wsock32 enable_wsock32 implib
16422 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
16423 wine_fn_config_dll wuapi enable_wuapi
16424 wine_fn_config_dll wuaueng enable_wuaueng
16425 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
16426 wine_fn_config_dll xinput1_1 enable_xinput1_1
16427 wine_fn_config_dll xinput1_2 enable_xinput1_2
16428 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
16429 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
16430 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
16431 wine_fn_config_dll xmllite enable_xmllite
16432 wine_fn_config_test dlls/xmllite/tests xmllite_test
16433 wine_fn_config_dll xolehlp enable_xolehlp
16434 wine_fn_config_dll xpsprint enable_xpsprint
16435 wine_fn_config_dll xpssvcs enable_xpssvcs
16436 wine_fn_config_makefile documentation enable_documentation
16437 wine_fn_config_makefile fonts enable_fonts install-lib
16438 wine_fn_config_makefile include enable_include install-dev
16439 wine_fn_config_makefile libs/port enable_libs_port
16440 wine_fn_config_makefile libs/wine enable_libs_wine
16441 wine_fn_config_makefile libs/wpp enable_libs_wpp
16442 wine_fn_config_makefile loader enable_loader install-lib,manpage
16443 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
16444 wine_fn_config_program attrib enable_attrib install,po
16445 wine_fn_config_program cabarc enable_cabarc install
16446 wine_fn_config_program cacls enable_cacls install
16447 wine_fn_config_program clock enable_clock install,po
16448 wine_fn_config_program cmd enable_cmd install,po
16449 wine_fn_config_test programs/cmd/tests cmd.exe_test
16450 wine_fn_config_program conhost enable_conhost install
16451 wine_fn_config_program control enable_control install
16452 wine_fn_config_program cscript enable_cscript install
16453 wine_fn_config_program dxdiag enable_dxdiag install,po
16454 wine_fn_config_program eject enable_eject install
16455 wine_fn_config_program expand enable_expand install
16456 wine_fn_config_program explorer enable_explorer install,po
16457 wine_fn_config_program extrac32 enable_extrac32 install
16458 wine_fn_config_program findstr enable_findstr install
16459 wine_fn_config_program hh enable_hh install
16460 wine_fn_config_program hostname enable_hostname install,po
16461 wine_fn_config_program icinfo enable_icinfo install
16462 wine_fn_config_program iexplore enable_iexplore install
16463 wine_fn_config_program ipconfig enable_ipconfig install,po
16464 wine_fn_config_program lodctr enable_lodctr install
16465 wine_fn_config_program mofcomp enable_mofcomp install
16466 wine_fn_config_program mshta enable_mshta install
16467 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
16468 wine_fn_config_program net enable_net install,po
16469 wine_fn_config_program netsh enable_netsh install
16470 wine_fn_config_program netstat enable_netstat install,po
16471 wine_fn_config_program ngen enable_ngen install
16472 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
16473 wine_fn_config_program oleview enable_oleview install,po
16474 wine_fn_config_program ping enable_ping install
16475 wine_fn_config_program plugplay enable_plugplay install
16476 wine_fn_config_program presentationfontcache enable_presentationfontcache install
16477 wine_fn_config_program progman enable_progman install,po
16478 wine_fn_config_program reg enable_reg install,po
16479 wine_fn_config_program regasm enable_regasm install
16480 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
16481 wine_fn_config_test programs/regedit/tests regedit.exe_test
16482 wine_fn_config_program regsvcs enable_regsvcs install
16483 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
16484 wine_fn_config_program rpcss enable_rpcss install
16485 wine_fn_config_program rundll.exe16 enable_win16 install
16486 wine_fn_config_program rundll32 enable_rundll32 install
16487 wine_fn_config_program sc enable_sc install
16488 wine_fn_config_program schtasks enable_schtasks install
16489 wine_fn_config_program secedit enable_secedit install
16490 wine_fn_config_program servicemodelreg enable_servicemodelreg install
16491 wine_fn_config_program services enable_services install
16492 wine_fn_config_test programs/services/tests services.exe_test
16493 wine_fn_config_program spoolsv enable_spoolsv install
16494 wine_fn_config_program start enable_start install,po
16495 wine_fn_config_program svchost enable_svchost install
16496 wine_fn_config_program taskkill enable_taskkill install,po
16497 wine_fn_config_program taskmgr enable_taskmgr install,po
16498 wine_fn_config_program termsv enable_termsv install
16499 wine_fn_config_program uninstaller enable_uninstaller install,po
16500 wine_fn_config_program unlodctr enable_unlodctr install
16501 wine_fn_config_program view enable_view install,po
16502 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
16503 wine_fn_config_program winebrowser enable_winebrowser install
16504 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
16505 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
16506 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
16507 wine_fn_config_program winedevice enable_winedevice install
16508 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
16509 wine_fn_config_program winemenubuilder enable_winemenubuilder install
16510 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
16511 wine_fn_config_program winemsibuilder enable_winemsibuilder install
16512 wine_fn_config_program winepath enable_winepath install,installbin,manpage
16513 wine_fn_config_program winetest enable_winetest
16514 wine_fn_config_program winevdm enable_win16 install
16515 wine_fn_config_program winhelp.exe16 enable_win16 install
16516 wine_fn_config_program winhlp32 enable_winhlp32 install,po
16517 wine_fn_config_program winoldap.mod16 enable_win16 install
16518 wine_fn_config_program winver enable_winver install
16519 wine_fn_config_program wmic enable_wmic install,po
16520 wine_fn_config_program wordpad enable_wordpad install,po
16521 wine_fn_config_program write enable_write install,po
16522 wine_fn_config_program wscript enable_wscript install
16523 wine_fn_config_test programs/wscript/tests wscript.exe_test
16524 wine_fn_config_program wusa enable_wusa install
16525 wine_fn_config_program xcopy enable_xcopy install,po
16526 wine_fn_config_makefile server enable_server install-lib,manpage
16527 wine_fn_config_tool tools install-dev,install-lib,manpage
16528 wine_fn_config_tool tools/widl install-dev,manpage
16529 wine_fn_config_tool tools/winebuild install-dev,manpage
16530 wine_fn_config_tool tools/winedump install-dev,manpage
16531 wine_fn_config_tool tools/winegcc install-dev,manpage
16532 wine_fn_config_tool tools/wmc install-dev,manpage
16533 wine_fn_config_tool tools/wrc install-dev,manpage
16535 LINGUAS="\
16536 ar \
16537 bg \
16538 ca \
16539 cs \
16540 da \
16541 de \
16542 el \
16543 en \
16544 en_US \
16545 eo \
16546 es \
16547 fa \
16548 fi \
16549 fr \
16550 he \
16551 hi \
16552 hu \
16553 it \
16554 ja \
16555 ko \
16556 lt \
16557 ml \
16558 nb_NO \
16559 nl \
16560 or \
16561 pa \
16562 pl \
16563 pt_BR \
16564 pt_PT \
16565 rm \
16566 ro \
16567 ru \
16568 sk \
16569 sl \
16570 sr_RS@cyrillic \
16571 sr_RS@latin \
16572 sv \
16573 te \
16574 th \
16575 tr \
16576 uk \
16577 wa \
16578 zh_CN \
16579 zh_TW"
16583 ac_config_commands="$ac_config_commands Makefile"
16586 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
16590 if test "x$enable_maintainer_mode" = xyes
16591 then
16592 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
16593 cd \$(srcdir) && autoconf --warnings=all
16594 \$(srcdir)/include/config.h.in: include/stamp-h.in
16595 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
16596 cd \$(srcdir) && autoheader --warnings=all
16597 @echo timestamp > \$@"
16600 if test "x$with_gettextpo" = xyes
16601 then
16602 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
16603 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
16604 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
16605 msgmerge --previous -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
16606 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
16607 msgcat -o \$@ \$(ALL_POT_FILES)"
16610 if test "$MSGFMT" != false
16611 then
16612 PORCFLAGS="--po-dir=\$(top_builddir)/po"
16614 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
16615 else
16616 LINGUAS=
16619 if test "x$enable_tools" != xno
16620 then
16621 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
16622 clean:: __clean__
16623 \$(RM) tools/makedep\$(EXEEXT)"
16626 if test -n "$with_wine64"
16627 then
16628 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
16629 fonts server tools:
16630 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
16631 $with_wine64/loader/wine:
16632 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
16633 $with_wine64/loader/wine-preloader:
16634 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
16635 clean::
16636 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
16639 cat >confcache <<\_ACEOF
16640 # This file is a shell script that caches the results of configure
16641 # tests run on this system so they can be shared between configure
16642 # scripts and configure runs, see configure's option --config-cache.
16643 # It is not useful on other systems. If it contains results you don't
16644 # want to keep, you may remove or edit it.
16646 # config.status only pays attention to the cache file if you give it
16647 # the --recheck option to rerun configure.
16649 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16650 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16651 # following values.
16653 _ACEOF
16655 # The following way of writing the cache mishandles newlines in values,
16656 # but we know of no workaround that is simple, portable, and efficient.
16657 # So, we kill variables containing newlines.
16658 # Ultrix sh set writes to stderr and can't be redirected directly,
16659 # and sets the high bit in the cache file unless we assign to the vars.
16661 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16662 eval ac_val=\$$ac_var
16663 case $ac_val in #(
16664 *${as_nl}*)
16665 case $ac_var in #(
16666 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16667 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16668 esac
16669 case $ac_var in #(
16670 _ | IFS | as_nl) ;; #(
16671 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16672 *) { eval $ac_var=; unset $ac_var;} ;;
16673 esac ;;
16674 esac
16675 done
16677 (set) 2>&1 |
16678 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16679 *${as_nl}ac_space=\ *)
16680 # `set' does not quote correctly, so add quotes: double-quote
16681 # substitution turns \\\\ into \\, and sed turns \\ into \.
16682 sed -n \
16683 "s/'/'\\\\''/g;
16684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16685 ;; #(
16687 # `set' quotes correctly as required by POSIX, so do not add quotes.
16688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16690 esac |
16691 sort
16693 sed '
16694 /^ac_cv_env_/b end
16695 t clear
16696 :clear
16697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16698 t end
16699 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16700 :end' >>confcache
16701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16702 if test -w "$cache_file"; then
16703 if test "x$cache_file" != "x/dev/null"; then
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16705 $as_echo "$as_me: updating cache $cache_file" >&6;}
16706 if test ! -f "$cache_file" || test -h "$cache_file"; then
16707 cat confcache >"$cache_file"
16708 else
16709 case $cache_file in #(
16710 */* | ?:*)
16711 mv -f confcache "$cache_file"$$ &&
16712 mv -f "$cache_file"$$ "$cache_file" ;; #(
16714 mv -f confcache "$cache_file" ;;
16715 esac
16718 else
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16720 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16723 rm -f confcache
16725 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16726 # Let make expand exec_prefix.
16727 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16729 DEFS=-DHAVE_CONFIG_H
16731 ac_libobjs=
16732 ac_ltlibobjs=
16734 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16735 # 1. Remove the extension, and $U if already installed.
16736 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16737 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16738 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16739 # will be set to the directory where LIBOBJS objects are built.
16740 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16741 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16742 done
16743 LIBOBJS=$ac_libobjs
16745 LTLIBOBJS=$ac_ltlibobjs
16749 : "${CONFIG_STATUS=./config.status}"
16750 ac_write_fail=0
16751 ac_clean_files_save=$ac_clean_files
16752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16754 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16755 as_write_fail=0
16756 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16757 #! $SHELL
16758 # Generated by $as_me.
16759 # Run this file to recreate the current configuration.
16760 # Compiler output produced by configure, useful for debugging
16761 # configure, is in config.log if it exists.
16763 debug=false
16764 ac_cs_recheck=false
16765 ac_cs_silent=false
16767 SHELL=\${CONFIG_SHELL-$SHELL}
16768 export SHELL
16769 _ASEOF
16770 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16771 ## -------------------- ##
16772 ## M4sh Initialization. ##
16773 ## -------------------- ##
16775 # Be more Bourne compatible
16776 DUALCASE=1; export DUALCASE # for MKS sh
16777 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16778 emulate sh
16779 NULLCMD=:
16780 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16781 # is contrary to our usage. Disable this feature.
16782 alias -g '${1+"$@"}'='"$@"'
16783 setopt NO_GLOB_SUBST
16784 else
16785 case `(set -o) 2>/dev/null` in #(
16786 *posix*) :
16787 set -o posix ;; #(
16788 *) :
16790 esac
16794 as_nl='
16796 export as_nl
16797 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16798 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16799 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16800 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16801 # Prefer a ksh shell builtin over an external printf program on Solaris,
16802 # but without wasting forks for bash or zsh.
16803 if test -z "$BASH_VERSION$ZSH_VERSION" \
16804 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16805 as_echo='print -r --'
16806 as_echo_n='print -rn --'
16807 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16808 as_echo='printf %s\n'
16809 as_echo_n='printf %s'
16810 else
16811 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16812 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16813 as_echo_n='/usr/ucb/echo -n'
16814 else
16815 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16816 as_echo_n_body='eval
16817 arg=$1;
16818 case $arg in #(
16819 *"$as_nl"*)
16820 expr "X$arg" : "X\\(.*\\)$as_nl";
16821 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16822 esac;
16823 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16825 export as_echo_n_body
16826 as_echo_n='sh -c $as_echo_n_body as_echo'
16828 export as_echo_body
16829 as_echo='sh -c $as_echo_body as_echo'
16832 # The user is always right.
16833 if test "${PATH_SEPARATOR+set}" != set; then
16834 PATH_SEPARATOR=:
16835 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16836 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16837 PATH_SEPARATOR=';'
16842 # IFS
16843 # We need space, tab and new line, in precisely that order. Quoting is
16844 # there to prevent editors from complaining about space-tab.
16845 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16846 # splitting by setting IFS to empty value.)
16847 IFS=" "" $as_nl"
16849 # Find who we are. Look in the path if we contain no directory separator.
16850 as_myself=
16851 case $0 in #((
16852 *[\\/]* ) as_myself=$0 ;;
16853 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16854 for as_dir in $PATH
16856 IFS=$as_save_IFS
16857 test -z "$as_dir" && as_dir=.
16858 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16859 done
16860 IFS=$as_save_IFS
16863 esac
16864 # We did not find ourselves, most probably we were run as `sh COMMAND'
16865 # in which case we are not to be found in the path.
16866 if test "x$as_myself" = x; then
16867 as_myself=$0
16869 if test ! -f "$as_myself"; then
16870 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16871 exit 1
16874 # Unset variables that we do not need and which cause bugs (e.g. in
16875 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16876 # suppresses any "Segmentation fault" message there. '((' could
16877 # trigger a bug in pdksh 5.2.14.
16878 for as_var in BASH_ENV ENV MAIL MAILPATH
16879 do eval test x\${$as_var+set} = xset \
16880 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16881 done
16882 PS1='$ '
16883 PS2='> '
16884 PS4='+ '
16886 # NLS nuisances.
16887 LC_ALL=C
16888 export LC_ALL
16889 LANGUAGE=C
16890 export LANGUAGE
16892 # CDPATH.
16893 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16896 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16897 # ----------------------------------------
16898 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16899 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16900 # script with STATUS, using 1 if that was 0.
16901 as_fn_error ()
16903 as_status=$1; test $as_status -eq 0 && as_status=1
16904 if test "$4"; then
16905 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16906 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16908 $as_echo "$as_me: error: $2" >&2
16909 as_fn_exit $as_status
16910 } # as_fn_error
16913 # as_fn_set_status STATUS
16914 # -----------------------
16915 # Set $? to STATUS, without forking.
16916 as_fn_set_status ()
16918 return $1
16919 } # as_fn_set_status
16921 # as_fn_exit STATUS
16922 # -----------------
16923 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16924 as_fn_exit ()
16926 set +e
16927 as_fn_set_status $1
16928 exit $1
16929 } # as_fn_exit
16931 # as_fn_unset VAR
16932 # ---------------
16933 # Portably unset VAR.
16934 as_fn_unset ()
16936 { eval $1=; unset $1;}
16938 as_unset=as_fn_unset
16939 # as_fn_append VAR VALUE
16940 # ----------------------
16941 # Append the text in VALUE to the end of the definition contained in VAR. Take
16942 # advantage of any shell optimizations that allow amortized linear growth over
16943 # repeated appends, instead of the typical quadratic growth present in naive
16944 # implementations.
16945 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16946 eval 'as_fn_append ()
16948 eval $1+=\$2
16950 else
16951 as_fn_append ()
16953 eval $1=\$$1\$2
16955 fi # as_fn_append
16957 # as_fn_arith ARG...
16958 # ------------------
16959 # Perform arithmetic evaluation on the ARGs, and store the result in the
16960 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16961 # must be portable across $(()) and expr.
16962 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16963 eval 'as_fn_arith ()
16965 as_val=$(( $* ))
16967 else
16968 as_fn_arith ()
16970 as_val=`expr "$@" || test $? -eq 1`
16972 fi # as_fn_arith
16975 if expr a : '\(a\)' >/dev/null 2>&1 &&
16976 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16977 as_expr=expr
16978 else
16979 as_expr=false
16982 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16983 as_basename=basename
16984 else
16985 as_basename=false
16988 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16989 as_dirname=dirname
16990 else
16991 as_dirname=false
16994 as_me=`$as_basename -- "$0" ||
16995 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16996 X"$0" : 'X\(//\)$' \| \
16997 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16998 $as_echo X/"$0" |
16999 sed '/^.*\/\([^/][^/]*\)\/*$/{
17000 s//\1/
17003 /^X\/\(\/\/\)$/{
17004 s//\1/
17007 /^X\/\(\/\).*/{
17008 s//\1/
17011 s/.*/./; q'`
17013 # Avoid depending upon Character Ranges.
17014 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17015 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17016 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17017 as_cr_digits='0123456789'
17018 as_cr_alnum=$as_cr_Letters$as_cr_digits
17020 ECHO_C= ECHO_N= ECHO_T=
17021 case `echo -n x` in #(((((
17022 -n*)
17023 case `echo 'xy\c'` in
17024 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17025 xy) ECHO_C='\c';;
17026 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17027 ECHO_T=' ';;
17028 esac;;
17030 ECHO_N='-n';;
17031 esac
17033 rm -f conf$$ conf$$.exe conf$$.file
17034 if test -d conf$$.dir; then
17035 rm -f conf$$.dir/conf$$.file
17036 else
17037 rm -f conf$$.dir
17038 mkdir conf$$.dir 2>/dev/null
17040 if (echo >conf$$.file) 2>/dev/null; then
17041 if ln -s conf$$.file conf$$ 2>/dev/null; then
17042 as_ln_s='ln -s'
17043 # ... but there are two gotchas:
17044 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17045 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17046 # In both cases, we have to default to `cp -pR'.
17047 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17048 as_ln_s='cp -pR'
17049 elif ln conf$$.file conf$$ 2>/dev/null; then
17050 as_ln_s=ln
17051 else
17052 as_ln_s='cp -pR'
17054 else
17055 as_ln_s='cp -pR'
17057 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17058 rmdir conf$$.dir 2>/dev/null
17061 # as_fn_mkdir_p
17062 # -------------
17063 # Create "$as_dir" as a directory, including parents if necessary.
17064 as_fn_mkdir_p ()
17067 case $as_dir in #(
17068 -*) as_dir=./$as_dir;;
17069 esac
17070 test -d "$as_dir" || eval $as_mkdir_p || {
17071 as_dirs=
17072 while :; do
17073 case $as_dir in #(
17074 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17075 *) as_qdir=$as_dir;;
17076 esac
17077 as_dirs="'$as_qdir' $as_dirs"
17078 as_dir=`$as_dirname -- "$as_dir" ||
17079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17080 X"$as_dir" : 'X\(//\)[^/]' \| \
17081 X"$as_dir" : 'X\(//\)$' \| \
17082 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17083 $as_echo X"$as_dir" |
17084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17085 s//\1/
17088 /^X\(\/\/\)[^/].*/{
17089 s//\1/
17092 /^X\(\/\/\)$/{
17093 s//\1/
17096 /^X\(\/\).*/{
17097 s//\1/
17100 s/.*/./; q'`
17101 test -d "$as_dir" && break
17102 done
17103 test -z "$as_dirs" || eval "mkdir $as_dirs"
17104 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17107 } # as_fn_mkdir_p
17108 if mkdir -p . 2>/dev/null; then
17109 as_mkdir_p='mkdir -p "$as_dir"'
17110 else
17111 test -d ./-p && rmdir ./-p
17112 as_mkdir_p=false
17116 # as_fn_executable_p FILE
17117 # -----------------------
17118 # Test if FILE is an executable regular file.
17119 as_fn_executable_p ()
17121 test -f "$1" && test -x "$1"
17122 } # as_fn_executable_p
17123 as_test_x='test -x'
17124 as_executable_p=as_fn_executable_p
17126 # Sed expression to map a string onto a valid CPP name.
17127 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17129 # Sed expression to map a string onto a valid variable name.
17130 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17133 exec 6>&1
17134 ## ----------------------------------- ##
17135 ## Main body of $CONFIG_STATUS script. ##
17136 ## ----------------------------------- ##
17137 _ASEOF
17138 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17141 # Save the log message, to keep $0 and so on meaningful, and to
17142 # report actual input values of CONFIG_FILES etc. instead of their
17143 # values after options handling.
17144 ac_log="
17145 This file was extended by Wine $as_me 1.5.29, which was
17146 generated by GNU Autoconf 2.69. Invocation command line was
17148 CONFIG_FILES = $CONFIG_FILES
17149 CONFIG_HEADERS = $CONFIG_HEADERS
17150 CONFIG_LINKS = $CONFIG_LINKS
17151 CONFIG_COMMANDS = $CONFIG_COMMANDS
17152 $ $0 $@
17154 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17157 _ACEOF
17159 case $ac_config_files in *"
17160 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17161 esac
17163 case $ac_config_headers in *"
17164 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17165 esac
17168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17169 # Files that config.status was made for.
17170 config_files="$ac_config_files"
17171 config_headers="$ac_config_headers"
17172 config_links="$ac_config_links"
17173 config_commands="$ac_config_commands"
17175 _ACEOF
17177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17178 ac_cs_usage="\
17179 \`$as_me' instantiates files and other configuration actions
17180 from templates according to the current configuration. Unless the files
17181 and actions are specified as TAGs, all are instantiated by default.
17183 Usage: $0 [OPTION]... [TAG]...
17185 -h, --help print this help, then exit
17186 -V, --version print version number and configuration settings, then exit
17187 --config print configuration, then exit
17188 -q, --quiet, --silent
17189 do not print progress messages
17190 -d, --debug don't remove temporary files
17191 --recheck update $as_me by reconfiguring in the same conditions
17192 --file=FILE[:TEMPLATE]
17193 instantiate the configuration file FILE
17194 --header=FILE[:TEMPLATE]
17195 instantiate the configuration header FILE
17197 Configuration files:
17198 $config_files
17200 Configuration headers:
17201 $config_headers
17203 Configuration links:
17204 $config_links
17206 Configuration commands:
17207 $config_commands
17209 Report bugs to <wine-devel@winehq.org>.
17210 Wine home page: <http://www.winehq.org>."
17212 _ACEOF
17213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17214 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17215 ac_cs_version="\\
17216 Wine config.status 1.5.29
17217 configured by $0, generated by GNU Autoconf 2.69,
17218 with options \\"\$ac_cs_config\\"
17220 Copyright (C) 2012 Free Software Foundation, Inc.
17221 This config.status script is free software; the Free Software Foundation
17222 gives unlimited permission to copy, distribute and modify it."
17224 ac_pwd='$ac_pwd'
17225 srcdir='$srcdir'
17226 INSTALL='$INSTALL'
17227 test -n "\$AWK" || AWK=awk
17228 _ACEOF
17230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17231 # The default lists apply if the user does not specify any file.
17232 ac_need_defaults=:
17233 while test $# != 0
17235 case $1 in
17236 --*=?*)
17237 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17238 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17239 ac_shift=:
17241 --*=)
17242 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17243 ac_optarg=
17244 ac_shift=:
17247 ac_option=$1
17248 ac_optarg=$2
17249 ac_shift=shift
17251 esac
17253 case $ac_option in
17254 # Handling of the options.
17255 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17256 ac_cs_recheck=: ;;
17257 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17258 $as_echo "$ac_cs_version"; exit ;;
17259 --config | --confi | --conf | --con | --co | --c )
17260 $as_echo "$ac_cs_config"; exit ;;
17261 --debug | --debu | --deb | --de | --d | -d )
17262 debug=: ;;
17263 --file | --fil | --fi | --f )
17264 $ac_shift
17265 case $ac_optarg in
17266 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17267 '') as_fn_error $? "missing file argument" ;;
17268 esac
17269 as_fn_append CONFIG_FILES " '$ac_optarg'"
17270 ac_need_defaults=false;;
17271 --header | --heade | --head | --hea )
17272 $ac_shift
17273 case $ac_optarg in
17274 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17275 esac
17276 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17277 ac_need_defaults=false;;
17278 --he | --h)
17279 # Conflict between --help and --header
17280 as_fn_error $? "ambiguous option: \`$1'
17281 Try \`$0 --help' for more information.";;
17282 --help | --hel | -h )
17283 $as_echo "$ac_cs_usage"; exit ;;
17284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17285 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17286 ac_cs_silent=: ;;
17288 # This is an error.
17289 -*) as_fn_error $? "unrecognized option: \`$1'
17290 Try \`$0 --help' for more information." ;;
17292 *) as_fn_append ac_config_targets " $1"
17293 ac_need_defaults=false ;;
17295 esac
17296 shift
17297 done
17299 ac_configure_extra_args=
17301 if $ac_cs_silent; then
17302 exec 6>/dev/null
17303 ac_configure_extra_args="$ac_configure_extra_args --silent"
17306 _ACEOF
17307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17308 if \$ac_cs_recheck; then
17309 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17310 shift
17311 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17312 CONFIG_SHELL='$SHELL'
17313 export CONFIG_SHELL
17314 exec "\$@"
17317 _ACEOF
17318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17319 exec 5>>config.log
17321 echo
17322 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17323 ## Running $as_me. ##
17324 _ASBOX
17325 $as_echo "$ac_log"
17326 } >&5
17328 _ACEOF
17329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17331 # INIT-COMMANDS
17333 wine_fn_output_makefile ()
17335 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
17336 $ALL_MAKEFILE_DEPENDS
17337 _WINE_EOF
17338 as_fn_error $? "could not create Makefile" "$LINENO" 5
17341 _ACEOF
17343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17345 # Handling of arguments.
17346 for ac_config_target in $ac_config_targets
17348 case $ac_config_target in
17349 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17350 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
17351 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
17352 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
17353 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
17354 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
17355 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
17356 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
17357 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
17358 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
17359 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
17360 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
17361 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
17362 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
17363 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
17364 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
17365 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
17366 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
17367 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
17368 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17369 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
17370 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
17371 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
17372 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17373 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
17374 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
17376 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17377 esac
17378 done
17381 # If the user did not use the arguments to specify the items to instantiate,
17382 # then the envvar interface is used. Set only those that are not.
17383 # We use the long form for the default assignment because of an extremely
17384 # bizarre bug on SunOS 4.1.3.
17385 if $ac_need_defaults; then
17386 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17387 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17388 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17389 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17392 # Have a temporary directory for convenience. Make it in the build tree
17393 # simply because there is no reason against having it here, and in addition,
17394 # creating and moving files from /tmp can sometimes cause problems.
17395 # Hook for its removal unless debugging.
17396 # Note that there is a small window in which the directory will not be cleaned:
17397 # after its creation but before its name has been assigned to `$tmp'.
17398 $debug ||
17400 tmp= ac_tmp=
17401 trap 'exit_status=$?
17402 : "${ac_tmp:=$tmp}"
17403 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17405 trap 'as_fn_exit 1' 1 2 13 15
17407 # Create a (secure) tmp directory for tmp files.
17410 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17411 test -d "$tmp"
17412 } ||
17414 tmp=./conf$$-$RANDOM
17415 (umask 077 && mkdir "$tmp")
17416 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17417 ac_tmp=$tmp
17419 # Set up the scripts for CONFIG_FILES section.
17420 # No need to generate them if there are no CONFIG_FILES.
17421 # This happens for instance with `./config.status config.h'.
17422 if test -n "$CONFIG_FILES"; then
17424 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17425 ac_cs_awk_getline=:
17426 ac_cs_awk_pipe_init=
17427 ac_cs_awk_read_file='
17428 while ((getline aline < (F[key])) > 0)
17429 print(aline)
17430 close(F[key])'
17431 ac_cs_awk_pipe_fini=
17432 else
17433 ac_cs_awk_getline=false
17434 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17435 ac_cs_awk_read_file='
17436 print "|#_!!_#|"
17437 print "cat " F[key] " &&"
17438 '$ac_cs_awk_pipe_init
17439 # The final `:' finishes the AND list.
17440 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17442 ac_cr=`echo X | tr X '\015'`
17443 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17444 # But we know of no other shell where ac_cr would be empty at this
17445 # point, so we can use a bashism as a fallback.
17446 if test "x$ac_cr" = x; then
17447 eval ac_cr=\$\'\\r\'
17449 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17450 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17451 ac_cs_awk_cr='\\r'
17452 else
17453 ac_cs_awk_cr=$ac_cr
17456 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17457 _ACEOF
17459 # Create commands to substitute file output variables.
17461 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17462 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
17463 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17464 echo "_ACAWK" &&
17465 echo "_ACEOF"
17466 } >conf$$files.sh &&
17467 . ./conf$$files.sh ||
17468 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17469 rm -f conf$$files.sh
17472 echo "cat >conf$$subs.awk <<_ACEOF" &&
17473 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17474 echo "_ACEOF"
17475 } >conf$$subs.sh ||
17476 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17477 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17478 ac_delim='%!_!# '
17479 for ac_last_try in false false false false false :; do
17480 . ./conf$$subs.sh ||
17481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17483 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17484 if test $ac_delim_n = $ac_delim_num; then
17485 break
17486 elif $ac_last_try; then
17487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17488 else
17489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17491 done
17492 rm -f conf$$subs.sh
17494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17495 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17496 _ACEOF
17497 sed -n '
17499 s/^/S["/; s/!.*/"]=/
17502 s/^[^!]*!//
17503 :repl
17504 t repl
17505 s/'"$ac_delim"'$//
17506 t delim
17509 s/\(.\{148\}\)..*/\1/
17510 t more1
17511 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17514 b repl
17515 :more1
17516 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17519 s/.\{148\}//
17520 t nl
17521 :delim
17523 s/\(.\{148\}\)..*/\1/
17524 t more2
17525 s/["\\]/\\&/g; s/^/"/; s/$/"/
17528 :more2
17529 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17532 s/.\{148\}//
17533 t delim
17534 ' <conf$$subs.awk | sed '
17535 /^[^""]/{
17537 s/\n//
17539 ' >>$CONFIG_STATUS || ac_write_fail=1
17540 rm -f conf$$subs.awk
17541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17542 _ACAWK
17543 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17544 for (key in S) S_is_set[key] = 1
17545 FS = "\a"
17546 \$ac_cs_awk_pipe_init
17549 line = $ 0
17550 nfields = split(line, field, "@")
17551 substed = 0
17552 len = length(field[1])
17553 for (i = 2; i < nfields; i++) {
17554 key = field[i]
17555 keylen = length(key)
17556 if (S_is_set[key]) {
17557 value = S[key]
17558 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17559 len += length(value) + length(field[++i])
17560 substed = 1
17561 } else
17562 len += 1 + keylen
17564 if (nfields == 3 && !substed) {
17565 key = field[2]
17566 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17567 \$ac_cs_awk_read_file
17568 next
17571 print line
17573 \$ac_cs_awk_pipe_fini
17574 _ACAWK
17575 _ACEOF
17576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17577 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17578 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17579 else
17581 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17582 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17583 _ACEOF
17585 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17586 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17587 # trailing colons and then remove the whole line if VPATH becomes empty
17588 # (actually we leave an empty line to preserve line numbers).
17589 if test "x$srcdir" = x.; then
17590 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17592 s///
17593 s/^/:/
17594 s/[ ]*$/:/
17595 s/:\$(srcdir):/:/g
17596 s/:\${srcdir}:/:/g
17597 s/:@srcdir@:/:/g
17598 s/^:*//
17599 s/:*$//
17601 s/\(=[ ]*\).*/\1/
17603 s/\n//
17604 s/^[^=]*=[ ]*$//
17608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17609 fi # test -n "$CONFIG_FILES"
17611 # Set up the scripts for CONFIG_HEADERS section.
17612 # No need to generate them if there are no CONFIG_HEADERS.
17613 # This happens for instance with `./config.status Makefile'.
17614 if test -n "$CONFIG_HEADERS"; then
17615 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17616 BEGIN {
17617 _ACEOF
17619 # Transform confdefs.h into an awk script `defines.awk', embedded as
17620 # here-document in config.status, that substitutes the proper values into
17621 # config.h.in to produce config.h.
17623 # Create a delimiter string that does not exist in confdefs.h, to ease
17624 # handling of long lines.
17625 ac_delim='%!_!# '
17626 for ac_last_try in false false :; do
17627 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17628 if test -z "$ac_tt"; then
17629 break
17630 elif $ac_last_try; then
17631 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17632 else
17633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17635 done
17637 # For the awk script, D is an array of macro values keyed by name,
17638 # likewise P contains macro parameters if any. Preserve backslash
17639 # newline sequences.
17641 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17642 sed -n '
17643 s/.\{148\}/&'"$ac_delim"'/g
17644 t rset
17645 :rset
17646 s/^[ ]*#[ ]*define[ ][ ]*/ /
17647 t def
17649 :def
17650 s/\\$//
17651 t bsnl
17652 s/["\\]/\\&/g
17653 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17654 D["\1"]=" \3"/p
17655 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17657 :bsnl
17658 s/["\\]/\\&/g
17659 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17660 D["\1"]=" \3\\\\\\n"\\/p
17661 t cont
17662 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17663 t cont
17665 :cont
17667 s/.\{148\}/&'"$ac_delim"'/g
17668 t clear
17669 :clear
17670 s/\\$//
17671 t bsnlc
17672 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17674 :bsnlc
17675 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17676 b cont
17677 ' <confdefs.h | sed '
17678 s/'"$ac_delim"'/"\\\
17679 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17682 for (key in D) D_is_set[key] = 1
17683 FS = "\a"
17685 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17686 line = \$ 0
17687 split(line, arg, " ")
17688 if (arg[1] == "#") {
17689 defundef = arg[2]
17690 mac1 = arg[3]
17691 } else {
17692 defundef = substr(arg[1], 2)
17693 mac1 = arg[2]
17695 split(mac1, mac2, "(") #)
17696 macro = mac2[1]
17697 prefix = substr(line, 1, index(line, defundef) - 1)
17698 if (D_is_set[macro]) {
17699 # Preserve the white space surrounding the "#".
17700 print prefix "define", macro P[macro] D[macro]
17701 next
17702 } else {
17703 # Replace #undef with comments. This is necessary, for example,
17704 # in the case of _POSIX_SOURCE, which is predefined and required
17705 # on some systems where configure will not decide to define it.
17706 if (defundef == "undef") {
17707 print "/*", prefix defundef, macro, "*/"
17708 next
17712 { print }
17713 _ACAWK
17714 _ACEOF
17715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17716 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17717 fi # test -n "$CONFIG_HEADERS"
17720 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17721 shift
17722 for ac_tag
17724 case $ac_tag in
17725 :[FHLC]) ac_mode=$ac_tag; continue;;
17726 esac
17727 case $ac_mode$ac_tag in
17728 :[FHL]*:*);;
17729 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17730 :[FH]-) ac_tag=-:-;;
17731 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17732 esac
17733 ac_save_IFS=$IFS
17734 IFS=:
17735 set x $ac_tag
17736 IFS=$ac_save_IFS
17737 shift
17738 ac_file=$1
17739 shift
17741 case $ac_mode in
17742 :L) ac_source=$1;;
17743 :[FH])
17744 ac_file_inputs=
17745 for ac_f
17747 case $ac_f in
17748 -) ac_f="$ac_tmp/stdin";;
17749 *) # Look for the file first in the build tree, then in the source tree
17750 # (if the path is not absolute). The absolute path cannot be DOS-style,
17751 # because $ac_f cannot contain `:'.
17752 test -f "$ac_f" ||
17753 case $ac_f in
17754 [\\/$]*) false;;
17755 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17756 esac ||
17757 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17758 esac
17759 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17760 as_fn_append ac_file_inputs " '$ac_f'"
17761 done
17763 # Let's still pretend it is `configure' which instantiates (i.e., don't
17764 # use $as_me), people would be surprised to read:
17765 # /* config.h. Generated by config.status. */
17766 configure_input='Generated from '`
17767 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17768 `' by configure.'
17769 if test x"$ac_file" != x-; then
17770 configure_input="$ac_file. $configure_input"
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17772 $as_echo "$as_me: creating $ac_file" >&6;}
17774 # Neutralize special characters interpreted by sed in replacement strings.
17775 case $configure_input in #(
17776 *\&* | *\|* | *\\* )
17777 ac_sed_conf_input=`$as_echo "$configure_input" |
17778 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17779 *) ac_sed_conf_input=$configure_input;;
17780 esac
17782 case $ac_tag in
17783 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17785 esac
17787 esac
17789 ac_dir=`$as_dirname -- "$ac_file" ||
17790 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17791 X"$ac_file" : 'X\(//\)[^/]' \| \
17792 X"$ac_file" : 'X\(//\)$' \| \
17793 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17794 $as_echo X"$ac_file" |
17795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17796 s//\1/
17799 /^X\(\/\/\)[^/].*/{
17800 s//\1/
17803 /^X\(\/\/\)$/{
17804 s//\1/
17807 /^X\(\/\).*/{
17808 s//\1/
17811 s/.*/./; q'`
17812 as_dir="$ac_dir"; as_fn_mkdir_p
17813 ac_builddir=.
17815 case "$ac_dir" in
17816 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17818 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17819 # A ".." for each directory in $ac_dir_suffix.
17820 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17821 case $ac_top_builddir_sub in
17822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17824 esac ;;
17825 esac
17826 ac_abs_top_builddir=$ac_pwd
17827 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17828 # for backward compatibility:
17829 ac_top_builddir=$ac_top_build_prefix
17831 case $srcdir in
17832 .) # We are building in place.
17833 ac_srcdir=.
17834 ac_top_srcdir=$ac_top_builddir_sub
17835 ac_abs_top_srcdir=$ac_pwd ;;
17836 [\\/]* | ?:[\\/]* ) # Absolute name.
17837 ac_srcdir=$srcdir$ac_dir_suffix;
17838 ac_top_srcdir=$srcdir
17839 ac_abs_top_srcdir=$srcdir ;;
17840 *) # Relative name.
17841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17842 ac_top_srcdir=$ac_top_build_prefix$srcdir
17843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17844 esac
17845 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17848 case $ac_mode in
17851 # CONFIG_FILE
17854 case $INSTALL in
17855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17856 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17857 esac
17858 _ACEOF
17860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17861 # If the template does not know about datarootdir, expand it.
17862 # FIXME: This hack should be removed a few years after 2.60.
17863 ac_datarootdir_hack=; ac_datarootdir_seen=
17864 ac_sed_dataroot='
17865 /datarootdir/ {
17869 /@datadir@/p
17870 /@docdir@/p
17871 /@infodir@/p
17872 /@localedir@/p
17873 /@mandir@/p'
17874 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17875 *datarootdir*) ac_datarootdir_seen=yes;;
17876 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17878 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17879 _ACEOF
17880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17881 ac_datarootdir_hack='
17882 s&@datadir@&$datadir&g
17883 s&@docdir@&$docdir&g
17884 s&@infodir@&$infodir&g
17885 s&@localedir@&$localedir&g
17886 s&@mandir@&$mandir&g
17887 s&\\\${datarootdir}&$datarootdir&g' ;;
17888 esac
17889 _ACEOF
17891 # Neutralize VPATH when `$srcdir' = `.'.
17892 # Shell code in configure.ac might set extrasub.
17893 # FIXME: do we really want to maintain this feature?
17894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17895 ac_sed_extra="$ac_vpsub
17896 $extrasub
17897 _ACEOF
17898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17901 s|@configure_input@|$ac_sed_conf_input|;t t
17902 s&@top_builddir@&$ac_top_builddir_sub&;t t
17903 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17904 s&@srcdir@&$ac_srcdir&;t t
17905 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17906 s&@top_srcdir@&$ac_top_srcdir&;t t
17907 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17908 s&@builddir@&$ac_builddir&;t t
17909 s&@abs_builddir@&$ac_abs_builddir&;t t
17910 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17911 s&@INSTALL@&$ac_INSTALL&;t t
17912 $ac_datarootdir_hack
17914 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17915 if $ac_cs_awk_getline; then
17916 $AWK -f "$ac_tmp/subs.awk"
17917 else
17918 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17919 fi \
17920 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17922 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17923 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17924 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17925 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17927 which seems to be undefined. Please make sure it is defined" >&5
17928 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17929 which seems to be undefined. Please make sure it is defined" >&2;}
17931 rm -f "$ac_tmp/stdin"
17932 case $ac_file in
17933 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17934 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17935 esac \
17936 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17940 # CONFIG_HEADER
17942 if test x"$ac_file" != x-; then
17944 $as_echo "/* $configure_input */" \
17945 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17946 } >"$ac_tmp/config.h" \
17947 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17948 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17950 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17951 else
17952 rm -f "$ac_file"
17953 mv "$ac_tmp/config.h" "$ac_file" \
17954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17956 else
17957 $as_echo "/* $configure_input */" \
17958 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17959 || as_fn_error $? "could not create -" "$LINENO" 5
17964 # CONFIG_LINK
17967 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17969 else
17970 # Prefer the file from the source tree if names are identical.
17971 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17972 ac_source=$srcdir/$ac_source
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17976 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17978 if test ! -r "$ac_source"; then
17979 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
17981 rm -f "$ac_file"
17983 # Try a relative symlink, then a hard link, then a copy.
17984 case $ac_source in
17985 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17986 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17987 esac
17988 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17989 ln "$ac_source" "$ac_file" 2>/dev/null ||
17990 cp -p "$ac_source" "$ac_file" ||
17991 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17994 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17995 $as_echo "$as_me: executing $ac_file commands" >&6;}
17997 esac
18000 case $ac_file$ac_mode in
18001 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
18002 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
18003 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
18004 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
18005 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
18006 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
18007 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
18008 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
18009 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
18010 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
18011 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
18012 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
18013 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
18014 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
18015 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
18016 "Makefile":C) wine_fn_output_makefile Makefile ;;
18018 esac
18019 done # for ac_tag
18022 as_fn_exit 0
18023 _ACEOF
18024 ac_clean_files=$ac_clean_files_save
18026 test $ac_write_fail = 0 ||
18027 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18030 # configure is writing to config.log, and then calls config.status.
18031 # config.status does its own redirection, appending to config.log.
18032 # Unfortunately, on DOS this fails, as config.log is still kept open
18033 # by configure, so config.status won't be able to write to it; its
18034 # output is simply discarded. So we exec the FD to /dev/null,
18035 # effectively closing config.log, so it can be properly (re)opened and
18036 # appended to by config.status. When coming back to configure, we
18037 # need to make the FD available again.
18038 if test "$no_create" != yes; then
18039 ac_cs_success=:
18040 ac_config_status_args=
18041 test "$silent" = yes &&
18042 ac_config_status_args="$ac_config_status_args --quiet"
18043 exec 5>/dev/null
18044 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18045 exec 5>>config.log
18046 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18047 # would make configure fail if this is the last instruction.
18048 $ac_cs_success || as_fn_exit 1
18050 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18052 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18056 if test "$no_create" = "yes"
18057 then
18058 exit 0
18061 ac_save_IFS="$IFS"
18062 if test "x$wine_notices != "x; then
18063 echo >&6
18064 IFS="|"
18065 for msg in $wine_notices; do
18066 IFS="$ac_save_IFS"
18067 if test -n "$msg"; then
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18069 $as_echo "$as_me: $msg" >&6;}
18071 done
18073 IFS="|"
18074 for msg in $wine_warnings; do
18075 IFS="$ac_save_IFS"
18076 if test -n "$msg"; then
18077 echo >&2
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18079 $as_echo "$as_me: WARNING: $msg" >&2;}
18081 done
18082 IFS="$ac_save_IFS"
18084 echo "
18085 $as_me: Finished. Do '${ac_make}' to compile Wine.
18086 " >&6