netapi32/tests: Use BOOL type where appropriate.
[wine/wine-gecko.git] / configure
blob3942d45dd668815b3b9edbaaa86e9a2c26d041f0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Wine 1.7.6.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: wine-devel@winehq.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='Wine'
582 PACKAGE_TARNAME='wine'
583 PACKAGE_VERSION='1.7.6'
584 PACKAGE_STRING='Wine 1.7.6'
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 MAKE_TEST_RULES
631 MAKE_PROG_RULES
632 MAKE_DLL_RULES
633 MAKE_IMPLIB_RULES
634 LDAPLIBS
635 LIBRT
636 LIBPOLL
637 LIBDL
638 TOOLSEXT
639 UNWINDFLAGS
640 BUILTINFLAG
641 EXTRACFLAGS
642 LIBPROCSTAT
643 LIBKSTAT
644 LIBOPENAL
645 MPG123_LIBS
646 MPG123_CFLAGS
647 TIFF_LIBS
648 TIFF_CFLAGS
649 PNG_LIBS
650 PNG_CFLAGS
651 JPEG_LIBS
652 JPEG_CFLAGS
653 FONTCONFIGINCL
654 CUPSINCL
655 CAPI20_LIBS
656 CAPI20_CFLAGS
657 OSS4INCL
658 ALSALIBS
659 GSTREAMER_LIBS
660 GSTREAMER_CFLAGS
661 LIBGETTEXTPO
662 ZLIB
663 FREETYPE_LIBS
664 FREETYPE_CFLAGS
665 LCMS2_LIBS
666 LCMS2_CFLAGS
667 RESOLVLIBS
668 GPHOTO2_PORT_LIBS
669 GPHOTO2_PORT_CFLAGS
670 GPHOTO2_LIBS
671 GPHOTO2_CFLAGS
672 SANE_LIBS
673 SANE_CFLAGS
674 GNUTLS_LIBS
675 GNUTLS_CFLAGS
676 HAL_LIBS
677 HAL_CFLAGS
678 DBUS_LIBS
679 DBUS_CFLAGS
680 XSLT_LIBS
681 XSLT_CFLAGS
682 XML2_LIBS
683 XML2_CFLAGS
684 X_EXTRA_LIBS
685 X_LIBS
686 X_PRE_LIBS
687 X_CFLAGS
688 XMKMF
689 LIBPTHREAD
690 CROSSCC
691 CROSSTARGET
692 PRELINK
693 CARBONLIB
694 QUICKTIMELIB
695 LIBOPENCL
696 FRAMEWORK_OPENAL
697 COREAUDIO
698 SECURITYLIB
699 DISKARBITRATIONLIB
700 APPKITLIB
701 CORESERVICESLIB
702 APPLICATIONSERVICESLIB
703 FORCEFEEDBACKLIB
704 IOKITLIB
705 COREFOUNDATIONLIB
706 LIBWINE_RULES
707 SOCKETLIBS
708 DLLTOOL
709 LOADER_RULES
710 READELF
712 LDRPATH_LOCAL
713 LDRPATH_INSTALL
714 IMPLIBEXT
715 DLLFLAGS
716 DLLPREFIX
717 dlldir
719 OPENGL_LIBS
720 XLIB
721 MAINTAINER_MODE
722 PKG_CONFIG
723 MSGFMT
724 ICOTOOL
725 CONVERT
726 RSVG
727 FONTFORGE
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 LDCONFIG
732 MKDIR_P
733 EGREP
734 GREP
735 LN_S
736 RANLIB
737 ARFLAGS
738 STRIP
739 ac_ct_AR
741 BISON
742 FLEX
743 TOOLSDIR
744 TARGETFLAGS
745 CPPBIN
746 ac_ct_CXX
747 CXXFLAGS
749 OBJEXT
750 EXEEXT
751 ac_ct_CC
752 CPPFLAGS
753 LDFLAGS
754 CFLAGS
756 SET_MAKE
757 host_os
758 host_vendor
759 host_cpu
760 host
761 build_os
762 build_vendor
763 build_cpu
764 build
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 localstatedir
785 sharedstatedir
786 sysconfdir
787 datadir
788 datarootdir
789 libexecdir
790 sbindir
791 bindir
792 program_transform_name
793 prefix
794 exec_prefix
795 PACKAGE_URL
796 PACKAGE_BUGREPORT
797 PACKAGE_STRING
798 PACKAGE_VERSION
799 PACKAGE_TARNAME
800 PACKAGE_NAME
801 PATH_SEPARATOR
802 SHELL'
803 ac_subst_files='MAKE_RULES'
804 ac_user_opts='
805 enable_option_checking
806 enable_win16
807 enable_win64
808 enable_tests
809 enable_maintainer_mode
810 with_alsa
811 with_capi
812 with_cms
813 with_coreaudio
814 with_cups
815 with_curses
816 with_dbus
817 with_fontconfig
818 with_freetype
819 with_gettext
820 with_gettextpo
821 with_gphoto
822 with_glu
823 with_gnutls
824 with_gsm
825 with_gstreamer
826 with_hal
827 with_jpeg
828 with_ldap
829 with_mpg123
830 with_netapi
831 with_openal
832 with_opencl
833 with_opengl
834 with_osmesa
835 with_oss
836 with_png
837 with_pthread
838 with_sane
839 with_tiff
840 with_v4l
841 with_xcomposite
842 with_xcursor
843 with_xinerama
844 with_xinput
845 with_xinput2
846 with_xml
847 with_xrandr
848 with_xrender
849 with_xshape
850 with_xshm
851 with_xslt
852 with_xxf86vm
853 with_zlib
854 with_wine_tools
855 with_wine64
856 enable_largefile
857 with_x
858 enable_acledit
859 enable_aclui
860 enable_activeds
861 enable_actxprxy
862 enable_advapi32
863 enable_advpack
864 enable_amstream
865 enable_api_ms_win_core_localregistry_l1_1_0
866 enable_api_ms_win_core_processthreads_l1_1_0
867 enable_api_ms_win_core_winrt_error_l1_1_0
868 enable_api_ms_win_core_winrt_string_l1_1_0
869 enable_api_ms_win_downlevel_advapi32_l1_1_0
870 enable_api_ms_win_downlevel_advapi32_l2_1_0
871 enable_api_ms_win_downlevel_normaliz_l1_1_0
872 enable_api_ms_win_downlevel_ole32_l1_1_0
873 enable_api_ms_win_downlevel_shell32_l1_1_0
874 enable_api_ms_win_downlevel_shlwapi_l1_1_0
875 enable_api_ms_win_downlevel_shlwapi_l2_1_0
876 enable_api_ms_win_downlevel_user32_l1_1_0
877 enable_api_ms_win_downlevel_version_l1_1_0
878 enable_api_ms_win_security_base_l1_1_0
879 enable_apphelp
880 enable_appwiz_cpl
881 enable_atl
882 enable_atl100
883 enable_atl110
884 enable_atl80
885 enable_atl90
886 enable_authz
887 enable_avicap32
888 enable_avifil32
889 enable_avrt
890 enable_bcrypt
891 enable_browseui
892 enable_cabinet
893 enable_capi2032
894 enable_cards
895 enable_cfgmgr32
896 enable_clusapi
897 enable_comcat
898 enable_comctl32
899 enable_comdlg32
900 enable_compstui
901 enable_comsvcs
902 enable_credui
903 enable_crtdll
904 enable_crypt32
905 enable_cryptdlg
906 enable_cryptdll
907 enable_cryptnet
908 enable_cryptui
909 enable_ctapi32
910 enable_ctl3d32
911 enable_d3d10
912 enable_d3d10core
913 enable_d3d11
914 enable_d3d8
915 enable_d3d9
916 enable_d3dcompiler_33
917 enable_d3dcompiler_34
918 enable_d3dcompiler_35
919 enable_d3dcompiler_36
920 enable_d3dcompiler_37
921 enable_d3dcompiler_38
922 enable_d3dcompiler_39
923 enable_d3dcompiler_40
924 enable_d3dcompiler_41
925 enable_d3dcompiler_42
926 enable_d3dcompiler_43
927 enable_d3dim
928 enable_d3drm
929 enable_d3dx10_33
930 enable_d3dx10_34
931 enable_d3dx10_35
932 enable_d3dx10_36
933 enable_d3dx10_37
934 enable_d3dx10_38
935 enable_d3dx10_39
936 enable_d3dx10_40
937 enable_d3dx10_41
938 enable_d3dx10_42
939 enable_d3dx10_43
940 enable_d3dx11_42
941 enable_d3dx11_43
942 enable_d3dx9_24
943 enable_d3dx9_25
944 enable_d3dx9_26
945 enable_d3dx9_27
946 enable_d3dx9_28
947 enable_d3dx9_29
948 enable_d3dx9_30
949 enable_d3dx9_31
950 enable_d3dx9_32
951 enable_d3dx9_33
952 enable_d3dx9_34
953 enable_d3dx9_35
954 enable_d3dx9_36
955 enable_d3dx9_37
956 enable_d3dx9_38
957 enable_d3dx9_39
958 enable_d3dx9_40
959 enable_d3dx9_41
960 enable_d3dx9_42
961 enable_d3dx9_43
962 enable_d3dxof
963 enable_dbgeng
964 enable_dbghelp
965 enable_dciman32
966 enable_ddraw
967 enable_ddrawex
968 enable_devenum
969 enable_dhcpcsvc
970 enable_difxapi
971 enable_dinput
972 enable_dinput8
973 enable_dispex
974 enable_dmband
975 enable_dmcompos
976 enable_dmime
977 enable_dmloader
978 enable_dmscript
979 enable_dmstyle
980 enable_dmsynth
981 enable_dmusic
982 enable_dmusic32
983 enable_dnsapi
984 enable_dplay
985 enable_dplayx
986 enable_dpnaddr
987 enable_dpnet
988 enable_dpnhpast
989 enable_dpnlobby
990 enable_dpwsockx
991 enable_drmclien
992 enable_dsound
993 enable_dssenh
994 enable_dswave
995 enable_dwmapi
996 enable_dwrite
997 enable_dxdiagn
998 enable_dxgi
999 enable_explorerframe
1000 enable_faultrep
1001 enable_fltlib
1002 enable_fusion
1003 enable_fwpuclnt
1004 enable_gameux
1005 enable_gdi32
1006 enable_gdiplus
1007 enable_glu32
1008 enable_gphoto2_ds
1009 enable_gpkcsp
1010 enable_hal
1011 enable_hhctrl_ocx
1012 enable_hid
1013 enable_hlink
1014 enable_hnetcfg
1015 enable_httpapi
1016 enable_iccvid
1017 enable_icmp
1018 enable_ieframe
1019 enable_imaadp32_acm
1020 enable_imagehlp
1021 enable_imm32
1022 enable_inetcomm
1023 enable_inetcpl_cpl
1024 enable_inetmib1
1025 enable_infosoft
1026 enable_initpki
1027 enable_inkobj
1028 enable_inseng
1029 enable_iphlpapi
1030 enable_itircl
1031 enable_itss
1032 enable_joy_cpl
1033 enable_jscript
1034 enable_kernel32
1035 enable_ktmw32
1036 enable_loadperf
1037 enable_localspl
1038 enable_localui
1039 enable_lz32
1040 enable_mapi32
1041 enable_mapistub
1042 enable_mciavi32
1043 enable_mcicda
1044 enable_mciqtz32
1045 enable_mciseq
1046 enable_mciwave
1047 enable_mgmtapi
1048 enable_midimap
1049 enable_mlang
1050 enable_mmcndmgr
1051 enable_mmdevapi
1052 enable_mountmgr_sys
1053 enable_mpr
1054 enable_mprapi
1055 enable_msacm32_drv
1056 enable_msacm32
1057 enable_msadp32_acm
1058 enable_mscat32
1059 enable_mscms
1060 enable_mscoree
1061 enable_msctf
1062 enable_msdaps
1063 enable_msdmo
1064 enable_msftedit
1065 enable_msg711_acm
1066 enable_msgsm32_acm
1067 enable_mshtml_tlb
1068 enable_mshtml
1069 enable_msi
1070 enable_msident
1071 enable_msimg32
1072 enable_msimsg
1073 enable_msimtf
1074 enable_msisip
1075 enable_msisys_ocx
1076 enable_msls31
1077 enable_msnet32
1078 enable_mspatcha
1079 enable_msrle32
1080 enable_mssign32
1081 enable_mssip32
1082 enable_mstask
1083 enable_msvcirt
1084 enable_msvcm80
1085 enable_msvcm90
1086 enable_msvcp100
1087 enable_msvcp110
1088 enable_msvcp60
1089 enable_msvcp70
1090 enable_msvcp71
1091 enable_msvcp80
1092 enable_msvcp90
1093 enable_msvcr100
1094 enable_msvcr110
1095 enable_msvcr70
1096 enable_msvcr71
1097 enable_msvcr80
1098 enable_msvcr90
1099 enable_msvcrt
1100 enable_msvcrt20
1101 enable_msvcrt40
1102 enable_msvcrtd
1103 enable_msvfw32
1104 enable_msvidc32
1105 enable_mswsock
1106 enable_msxml
1107 enable_msxml2
1108 enable_msxml3
1109 enable_msxml4
1110 enable_msxml6
1111 enable_nddeapi
1112 enable_netapi32
1113 enable_netcfgx
1114 enable_newdev
1115 enable_normaliz
1116 enable_npmshtml
1117 enable_ntdll
1118 enable_ntdsapi
1119 enable_ntoskrnl_exe
1120 enable_ntprint
1121 enable_objsel
1122 enable_odbc32
1123 enable_odbccp32
1124 enable_odbccu32
1125 enable_ole32
1126 enable_oleacc
1127 enable_oleaut32
1128 enable_olecli32
1129 enable_oledb32
1130 enable_oledlg
1131 enable_olepro32
1132 enable_olesvr32
1133 enable_olethk32
1134 enable_openal32
1135 enable_opencl
1136 enable_opengl32
1137 enable_pdh
1138 enable_photometadatahandler
1139 enable_pidgen
1140 enable_powrprof
1141 enable_printui
1142 enable_propsys
1143 enable_psapi
1144 enable_pstorec
1145 enable_qcap
1146 enable_qedit
1147 enable_qmgr
1148 enable_qmgrprxy
1149 enable_quartz
1150 enable_query
1151 enable_rasapi32
1152 enable_rasdlg
1153 enable_regapi
1154 enable_resutils
1155 enable_riched20
1156 enable_riched32
1157 enable_rpcrt4
1158 enable_rsabase
1159 enable_rsaenh
1160 enable_rstrtmgr
1161 enable_rtutils
1162 enable_samlib
1163 enable_sane_ds
1164 enable_scarddlg
1165 enable_sccbase
1166 enable_schannel
1167 enable_scrrun
1168 enable_scsiport_sys
1169 enable_secur32
1170 enable_security
1171 enable_sensapi
1172 enable_serialui
1173 enable_setupapi
1174 enable_sfc
1175 enable_sfc_os
1176 enable_shdoclc
1177 enable_shdocvw
1178 enable_shell32
1179 enable_shfolder
1180 enable_shlwapi
1181 enable_slbcsp
1182 enable_slc
1183 enable_snmpapi
1184 enable_softpub
1185 enable_spoolss
1186 enable_stdole2_tlb
1187 enable_stdole32_tlb
1188 enable_sti
1189 enable_svrapi
1190 enable_sxs
1191 enable_t2embed
1192 enable_tapi32
1193 enable_traffic
1194 enable_twain_32
1195 enable_unicows
1196 enable_updspapi
1197 enable_url
1198 enable_urlmon
1199 enable_usbd_sys
1200 enable_user32
1201 enable_userenv
1202 enable_usp10
1203 enable_uxtheme
1204 enable_vbscript
1205 enable_vcomp
1206 enable_vcomp100
1207 enable_vcomp90
1208 enable_vdmdbg
1209 enable_version
1210 enable_wbemdisp
1211 enable_wbemprox
1212 enable_webservices
1213 enable_wer
1214 enable_wevtapi
1215 enable_wiaservc
1216 enable_windowscodecs
1217 enable_windowscodecsext
1218 enable_winealsa_drv
1219 enable_winecoreaudio_drv
1220 enable_wined3d
1221 enable_winegstreamer
1222 enable_winejoystick_drv
1223 enable_winemac_drv
1224 enable_winemapi
1225 enable_winemp3_acm
1226 enable_wineoss_drv
1227 enable_wineps_drv
1228 enable_wineqtdecoder
1229 enable_winex11_drv
1230 enable_wing32
1231 enable_winhttp
1232 enable_wininet
1233 enable_winmm
1234 enable_winnls32
1235 enable_winscard
1236 enable_winspool_drv
1237 enable_winsta
1238 enable_wintab32
1239 enable_wintrust
1240 enable_wlanapi
1241 enable_wldap32
1242 enable_wmi
1243 enable_wmiutils
1244 enable_wmvcore
1245 enable_wnaspi32
1246 enable_ws2_32
1247 enable_wshom_ocx
1248 enable_wsnmp32
1249 enable_wsock32
1250 enable_wtsapi32
1251 enable_wuapi
1252 enable_wuaueng
1253 enable_xapofx1_1
1254 enable_xinput1_1
1255 enable_xinput1_2
1256 enable_xinput1_3
1257 enable_xinput1_4
1258 enable_xinput9_1_0
1259 enable_xmllite
1260 enable_xolehlp
1261 enable_xpsprint
1262 enable_xpssvcs
1263 enable_documentation
1264 enable_fonts
1265 enable_include
1266 enable_libs_port
1267 enable_libs_wine
1268 enable_libs_wpp
1269 enable_loader
1270 enable_aspnet_regiis
1271 enable_attrib
1272 enable_cabarc
1273 enable_cacls
1274 enable_clock
1275 enable_cmd
1276 enable_conhost
1277 enable_control
1278 enable_cscript
1279 enable_dxdiag
1280 enable_eject
1281 enable_expand
1282 enable_explorer
1283 enable_extrac32
1284 enable_findstr
1285 enable_hh
1286 enable_hostname
1287 enable_icinfo
1288 enable_iexplore
1289 enable_ipconfig
1290 enable_lodctr
1291 enable_mofcomp
1292 enable_mshta
1293 enable_msiexec
1294 enable_net
1295 enable_netsh
1296 enable_netstat
1297 enable_ngen
1298 enable_notepad
1299 enable_oleview
1300 enable_ping
1301 enable_plugplay
1302 enable_presentationfontcache
1303 enable_progman
1304 enable_reg
1305 enable_regasm
1306 enable_regedit
1307 enable_regsvcs
1308 enable_regsvr32
1309 enable_rpcss
1310 enable_rundll32
1311 enable_sc
1312 enable_schtasks
1313 enable_secedit
1314 enable_servicemodelreg
1315 enable_services
1316 enable_spoolsv
1317 enable_start
1318 enable_svchost
1319 enable_taskkill
1320 enable_tasklist
1321 enable_taskmgr
1322 enable_termsv
1323 enable_uninstaller
1324 enable_unlodctr
1325 enable_view
1326 enable_wineboot
1327 enable_winebrowser
1328 enable_winecfg
1329 enable_wineconsole
1330 enable_winedbg
1331 enable_winedevice
1332 enable_winefile
1333 enable_winemenubuilder
1334 enable_winemine
1335 enable_winemsibuilder
1336 enable_winepath
1337 enable_winetest
1338 enable_winhlp32
1339 enable_winver
1340 enable_wmic
1341 enable_wordpad
1342 enable_write
1343 enable_wscript
1344 enable_wusa
1345 enable_xcopy
1346 enable_server
1347 enable_tools
1349 ac_precious_vars='build_alias
1350 host_alias
1351 target_alias
1353 CFLAGS
1354 LDFLAGS
1355 LIBS
1356 CPPFLAGS
1358 CXXFLAGS
1361 XMKMF
1362 XML2_CFLAGS
1363 XML2_LIBS
1364 XSLT_CFLAGS
1365 XSLT_LIBS
1366 DBUS_CFLAGS
1367 DBUS_LIBS
1368 HAL_CFLAGS
1369 HAL_LIBS
1370 GNUTLS_CFLAGS
1371 GNUTLS_LIBS
1372 SANE_CFLAGS
1373 SANE_LIBS
1374 GPHOTO2_CFLAGS
1375 GPHOTO2_LIBS
1376 GPHOTO2_PORT_CFLAGS
1377 GPHOTO2_PORT_LIBS
1378 LCMS2_CFLAGS
1379 LCMS2_LIBS
1380 FREETYPE_CFLAGS
1381 FREETYPE_LIBS
1382 GSTREAMER_CFLAGS
1383 GSTREAMER_LIBS
1384 CAPI20_CFLAGS
1385 CAPI20_LIBS
1386 JPEG_CFLAGS
1387 JPEG_LIBS
1388 PNG_CFLAGS
1389 PNG_LIBS
1390 TIFF_CFLAGS
1391 TIFF_LIBS
1392 MPG123_CFLAGS
1393 MPG123_LIBS'
1396 # Initialize some variables set by options.
1397 ac_init_help=
1398 ac_init_version=false
1399 ac_unrecognized_opts=
1400 ac_unrecognized_sep=
1401 # The variables have the same names as the options, with
1402 # dashes changed to underlines.
1403 cache_file=/dev/null
1404 exec_prefix=NONE
1405 no_create=
1406 no_recursion=
1407 prefix=NONE
1408 program_prefix=NONE
1409 program_suffix=NONE
1410 program_transform_name=s,x,x,
1411 silent=
1412 site=
1413 srcdir=
1414 verbose=
1415 x_includes=NONE
1416 x_libraries=NONE
1418 # Installation directory options.
1419 # These are left unexpanded so users can "make install exec_prefix=/foo"
1420 # and all the variables that are supposed to be based on exec_prefix
1421 # by default will actually change.
1422 # Use braces instead of parens because sh, perl, etc. also accept them.
1423 # (The list follows the same order as the GNU Coding Standards.)
1424 bindir='${exec_prefix}/bin'
1425 sbindir='${exec_prefix}/sbin'
1426 libexecdir='${exec_prefix}/libexec'
1427 datarootdir='${prefix}/share'
1428 datadir='${datarootdir}'
1429 sysconfdir='${prefix}/etc'
1430 sharedstatedir='${prefix}/com'
1431 localstatedir='${prefix}/var'
1432 includedir='${prefix}/include'
1433 oldincludedir='/usr/include'
1434 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1435 infodir='${datarootdir}/info'
1436 htmldir='${docdir}'
1437 dvidir='${docdir}'
1438 pdfdir='${docdir}'
1439 psdir='${docdir}'
1440 libdir='${exec_prefix}/lib'
1441 localedir='${datarootdir}/locale'
1442 mandir='${datarootdir}/man'
1444 ac_prev=
1445 ac_dashdash=
1446 for ac_option
1448 # If the previous option needs an argument, assign it.
1449 if test -n "$ac_prev"; then
1450 eval $ac_prev=\$ac_option
1451 ac_prev=
1452 continue
1455 case $ac_option in
1456 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1457 *=) ac_optarg= ;;
1458 *) ac_optarg=yes ;;
1459 esac
1461 # Accept the important Cygnus configure options, so we can diagnose typos.
1463 case $ac_dashdash$ac_option in
1465 ac_dashdash=yes ;;
1467 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1468 ac_prev=bindir ;;
1469 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1470 bindir=$ac_optarg ;;
1472 -build | --build | --buil | --bui | --bu)
1473 ac_prev=build_alias ;;
1474 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1475 build_alias=$ac_optarg ;;
1477 -cache-file | --cache-file | --cache-fil | --cache-fi \
1478 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1479 ac_prev=cache_file ;;
1480 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1481 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1482 cache_file=$ac_optarg ;;
1484 --config-cache | -C)
1485 cache_file=config.cache ;;
1487 -datadir | --datadir | --datadi | --datad)
1488 ac_prev=datadir ;;
1489 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1490 datadir=$ac_optarg ;;
1492 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1493 | --dataroo | --dataro | --datar)
1494 ac_prev=datarootdir ;;
1495 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1496 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1497 datarootdir=$ac_optarg ;;
1499 -disable-* | --disable-*)
1500 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1501 # Reject names that are not valid shell variable names.
1502 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1503 as_fn_error $? "invalid feature name: $ac_useropt"
1504 ac_useropt_orig=$ac_useropt
1505 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1506 case $ac_user_opts in
1508 "enable_$ac_useropt"
1509 "*) ;;
1510 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1511 ac_unrecognized_sep=', ';;
1512 esac
1513 eval enable_$ac_useropt=no ;;
1515 -docdir | --docdir | --docdi | --doc | --do)
1516 ac_prev=docdir ;;
1517 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1518 docdir=$ac_optarg ;;
1520 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1521 ac_prev=dvidir ;;
1522 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1523 dvidir=$ac_optarg ;;
1525 -enable-* | --enable-*)
1526 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1527 # Reject names that are not valid shell variable names.
1528 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1529 as_fn_error $? "invalid feature name: $ac_useropt"
1530 ac_useropt_orig=$ac_useropt
1531 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1532 case $ac_user_opts in
1534 "enable_$ac_useropt"
1535 "*) ;;
1536 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1537 ac_unrecognized_sep=', ';;
1538 esac
1539 eval enable_$ac_useropt=\$ac_optarg ;;
1541 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1542 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1543 | --exec | --exe | --ex)
1544 ac_prev=exec_prefix ;;
1545 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1546 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1547 | --exec=* | --exe=* | --ex=*)
1548 exec_prefix=$ac_optarg ;;
1550 -gas | --gas | --ga | --g)
1551 # Obsolete; use --with-gas.
1552 with_gas=yes ;;
1554 -help | --help | --hel | --he | -h)
1555 ac_init_help=long ;;
1556 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1557 ac_init_help=recursive ;;
1558 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1559 ac_init_help=short ;;
1561 -host | --host | --hos | --ho)
1562 ac_prev=host_alias ;;
1563 -host=* | --host=* | --hos=* | --ho=*)
1564 host_alias=$ac_optarg ;;
1566 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1567 ac_prev=htmldir ;;
1568 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1569 | --ht=*)
1570 htmldir=$ac_optarg ;;
1572 -includedir | --includedir | --includedi | --included | --include \
1573 | --includ | --inclu | --incl | --inc)
1574 ac_prev=includedir ;;
1575 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1576 | --includ=* | --inclu=* | --incl=* | --inc=*)
1577 includedir=$ac_optarg ;;
1579 -infodir | --infodir | --infodi | --infod | --info | --inf)
1580 ac_prev=infodir ;;
1581 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1582 infodir=$ac_optarg ;;
1584 -libdir | --libdir | --libdi | --libd)
1585 ac_prev=libdir ;;
1586 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1587 libdir=$ac_optarg ;;
1589 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1590 | --libexe | --libex | --libe)
1591 ac_prev=libexecdir ;;
1592 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1593 | --libexe=* | --libex=* | --libe=*)
1594 libexecdir=$ac_optarg ;;
1596 -localedir | --localedir | --localedi | --localed | --locale)
1597 ac_prev=localedir ;;
1598 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1599 localedir=$ac_optarg ;;
1601 -localstatedir | --localstatedir | --localstatedi | --localstated \
1602 | --localstate | --localstat | --localsta | --localst | --locals)
1603 ac_prev=localstatedir ;;
1604 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1605 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1606 localstatedir=$ac_optarg ;;
1608 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1609 ac_prev=mandir ;;
1610 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1611 mandir=$ac_optarg ;;
1613 -nfp | --nfp | --nf)
1614 # Obsolete; use --without-fp.
1615 with_fp=no ;;
1617 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1618 | --no-cr | --no-c | -n)
1619 no_create=yes ;;
1621 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1622 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1623 no_recursion=yes ;;
1625 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1626 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1627 | --oldin | --oldi | --old | --ol | --o)
1628 ac_prev=oldincludedir ;;
1629 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1630 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1631 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1632 oldincludedir=$ac_optarg ;;
1634 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1635 ac_prev=prefix ;;
1636 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1637 prefix=$ac_optarg ;;
1639 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1640 | --program-pre | --program-pr | --program-p)
1641 ac_prev=program_prefix ;;
1642 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1643 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1644 program_prefix=$ac_optarg ;;
1646 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1647 | --program-suf | --program-su | --program-s)
1648 ac_prev=program_suffix ;;
1649 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1650 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1651 program_suffix=$ac_optarg ;;
1653 -program-transform-name | --program-transform-name \
1654 | --program-transform-nam | --program-transform-na \
1655 | --program-transform-n | --program-transform- \
1656 | --program-transform | --program-transfor \
1657 | --program-transfo | --program-transf \
1658 | --program-trans | --program-tran \
1659 | --progr-tra | --program-tr | --program-t)
1660 ac_prev=program_transform_name ;;
1661 -program-transform-name=* | --program-transform-name=* \
1662 | --program-transform-nam=* | --program-transform-na=* \
1663 | --program-transform-n=* | --program-transform-=* \
1664 | --program-transform=* | --program-transfor=* \
1665 | --program-transfo=* | --program-transf=* \
1666 | --program-trans=* | --program-tran=* \
1667 | --progr-tra=* | --program-tr=* | --program-t=*)
1668 program_transform_name=$ac_optarg ;;
1670 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1671 ac_prev=pdfdir ;;
1672 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1673 pdfdir=$ac_optarg ;;
1675 -psdir | --psdir | --psdi | --psd | --ps)
1676 ac_prev=psdir ;;
1677 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1678 psdir=$ac_optarg ;;
1680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1681 | -silent | --silent | --silen | --sile | --sil)
1682 silent=yes ;;
1684 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1685 ac_prev=sbindir ;;
1686 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1687 | --sbi=* | --sb=*)
1688 sbindir=$ac_optarg ;;
1690 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1691 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1692 | --sharedst | --shareds | --shared | --share | --shar \
1693 | --sha | --sh)
1694 ac_prev=sharedstatedir ;;
1695 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1696 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1697 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1698 | --sha=* | --sh=*)
1699 sharedstatedir=$ac_optarg ;;
1701 -site | --site | --sit)
1702 ac_prev=site ;;
1703 -site=* | --site=* | --sit=*)
1704 site=$ac_optarg ;;
1706 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1707 ac_prev=srcdir ;;
1708 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1709 srcdir=$ac_optarg ;;
1711 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1712 | --syscon | --sysco | --sysc | --sys | --sy)
1713 ac_prev=sysconfdir ;;
1714 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1715 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1716 sysconfdir=$ac_optarg ;;
1718 -target | --target | --targe | --targ | --tar | --ta | --t)
1719 ac_prev=target_alias ;;
1720 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1721 target_alias=$ac_optarg ;;
1723 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1724 verbose=yes ;;
1726 -version | --version | --versio | --versi | --vers | -V)
1727 ac_init_version=: ;;
1729 -with-* | --with-*)
1730 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1731 # Reject names that are not valid shell variable names.
1732 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1733 as_fn_error $? "invalid package name: $ac_useropt"
1734 ac_useropt_orig=$ac_useropt
1735 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1736 case $ac_user_opts in
1738 "with_$ac_useropt"
1739 "*) ;;
1740 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1741 ac_unrecognized_sep=', ';;
1742 esac
1743 eval with_$ac_useropt=\$ac_optarg ;;
1745 -without-* | --without-*)
1746 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1747 # Reject names that are not valid shell variable names.
1748 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1749 as_fn_error $? "invalid package name: $ac_useropt"
1750 ac_useropt_orig=$ac_useropt
1751 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1752 case $ac_user_opts in
1754 "with_$ac_useropt"
1755 "*) ;;
1756 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1757 ac_unrecognized_sep=', ';;
1758 esac
1759 eval with_$ac_useropt=no ;;
1761 --x)
1762 # Obsolete; use --with-x.
1763 with_x=yes ;;
1765 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1766 | --x-incl | --x-inc | --x-in | --x-i)
1767 ac_prev=x_includes ;;
1768 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1769 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1770 x_includes=$ac_optarg ;;
1772 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1773 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1774 ac_prev=x_libraries ;;
1775 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1776 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1777 x_libraries=$ac_optarg ;;
1779 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1780 Try \`$0 --help' for more information"
1783 *=*)
1784 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1785 # Reject names that are not valid shell variable names.
1786 case $ac_envvar in #(
1787 '' | [0-9]* | *[!_$as_cr_alnum]* )
1788 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1789 esac
1790 eval $ac_envvar=\$ac_optarg
1791 export $ac_envvar ;;
1794 # FIXME: should be removed in autoconf 3.0.
1795 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1796 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1797 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1798 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1801 esac
1802 done
1804 if test -n "$ac_prev"; then
1805 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1806 as_fn_error $? "missing argument to $ac_option"
1809 if test -n "$ac_unrecognized_opts"; then
1810 case $enable_option_checking in
1811 no) ;;
1812 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1813 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1814 esac
1817 # Check all directory arguments for consistency.
1818 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1819 datadir sysconfdir sharedstatedir localstatedir includedir \
1820 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1821 libdir localedir mandir
1823 eval ac_val=\$$ac_var
1824 # Remove trailing slashes.
1825 case $ac_val in
1826 */ )
1827 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1828 eval $ac_var=\$ac_val;;
1829 esac
1830 # Be sure to have absolute directory names.
1831 case $ac_val in
1832 [\\/$]* | ?:[\\/]* ) continue;;
1833 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1834 esac
1835 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1836 done
1838 # There might be people who depend on the old broken behavior: `$host'
1839 # used to hold the argument of --host etc.
1840 # FIXME: To remove some day.
1841 build=$build_alias
1842 host=$host_alias
1843 target=$target_alias
1845 # FIXME: To remove some day.
1846 if test "x$host_alias" != x; then
1847 if test "x$build_alias" = x; then
1848 cross_compiling=maybe
1849 elif test "x$build_alias" != "x$host_alias"; then
1850 cross_compiling=yes
1854 ac_tool_prefix=
1855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1857 test "$silent" = yes && exec 6>/dev/null
1860 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1861 ac_ls_di=`ls -di .` &&
1862 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1863 as_fn_error $? "working directory cannot be determined"
1864 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1865 as_fn_error $? "pwd does not report name of working directory"
1868 # Find the source files, if location was not specified.
1869 if test -z "$srcdir"; then
1870 ac_srcdir_defaulted=yes
1871 # Try the directory containing this script, then the parent directory.
1872 ac_confdir=`$as_dirname -- "$as_myself" ||
1873 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1874 X"$as_myself" : 'X\(//\)[^/]' \| \
1875 X"$as_myself" : 'X\(//\)$' \| \
1876 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1877 $as_echo X"$as_myself" |
1878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1879 s//\1/
1882 /^X\(\/\/\)[^/].*/{
1883 s//\1/
1886 /^X\(\/\/\)$/{
1887 s//\1/
1890 /^X\(\/\).*/{
1891 s//\1/
1894 s/.*/./; q'`
1895 srcdir=$ac_confdir
1896 if test ! -r "$srcdir/$ac_unique_file"; then
1897 srcdir=..
1899 else
1900 ac_srcdir_defaulted=no
1902 if test ! -r "$srcdir/$ac_unique_file"; then
1903 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1904 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1906 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1907 ac_abs_confdir=`(
1908 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1909 pwd)`
1910 # When building in place, set srcdir=.
1911 if test "$ac_abs_confdir" = "$ac_pwd"; then
1912 srcdir=.
1914 # Remove unnecessary trailing slashes from srcdir.
1915 # Double slashes in file names in object file debugging info
1916 # mess up M-x gdb in Emacs.
1917 case $srcdir in
1918 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1919 esac
1920 for ac_var in $ac_precious_vars; do
1921 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1922 eval ac_env_${ac_var}_value=\$${ac_var}
1923 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1924 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1925 done
1928 # Report the --help message.
1930 if test "$ac_init_help" = "long"; then
1931 # Omit some internal or obsolete options to make the list less imposing.
1932 # This message is too long to be a string in the A/UX 3.1 sh.
1933 cat <<_ACEOF
1934 \`configure' configures Wine 1.7.6 to adapt to many kinds of systems.
1936 Usage: $0 [OPTION]... [VAR=VALUE]...
1938 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1939 VAR=VALUE. See below for descriptions of some of the useful variables.
1941 Defaults for the options are specified in brackets.
1943 Configuration:
1944 -h, --help display this help and exit
1945 --help=short display options specific to this package
1946 --help=recursive display the short help of all the included packages
1947 -V, --version display version information and exit
1948 -q, --quiet, --silent do not print \`checking ...' messages
1949 --cache-file=FILE cache test results in FILE [disabled]
1950 -C, --config-cache alias for \`--cache-file=config.cache'
1951 -n, --no-create do not create output files
1952 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1954 Installation directories:
1955 --prefix=PREFIX install architecture-independent files in PREFIX
1956 [$ac_default_prefix]
1957 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1958 [PREFIX]
1960 By default, \`make install' will install all the files in
1961 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1962 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1963 for instance \`--prefix=\$HOME'.
1965 For better control, use the options below.
1967 Fine tuning of the installation directories:
1968 --bindir=DIR user executables [EPREFIX/bin]
1969 --sbindir=DIR system admin executables [EPREFIX/sbin]
1970 --libexecdir=DIR program executables [EPREFIX/libexec]
1971 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1972 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1973 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1974 --libdir=DIR object code libraries [EPREFIX/lib]
1975 --includedir=DIR C header files [PREFIX/include]
1976 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1977 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1978 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1979 --infodir=DIR info documentation [DATAROOTDIR/info]
1980 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1981 --mandir=DIR man documentation [DATAROOTDIR/man]
1982 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1983 --htmldir=DIR html documentation [DOCDIR]
1984 --dvidir=DIR dvi documentation [DOCDIR]
1985 --pdfdir=DIR pdf documentation [DOCDIR]
1986 --psdir=DIR ps documentation [DOCDIR]
1987 _ACEOF
1989 cat <<\_ACEOF
1991 X features:
1992 --x-includes=DIR X include files are in DIR
1993 --x-libraries=DIR X library files are in DIR
1995 System types:
1996 --build=BUILD configure for building on BUILD [guessed]
1997 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1998 _ACEOF
2001 if test -n "$ac_init_help"; then
2002 case $ac_init_help in
2003 short | recursive ) echo "Configuration of Wine 1.7.6:";;
2004 esac
2005 cat <<\_ACEOF
2007 Optional Features:
2008 --disable-option-checking ignore unrecognized --enable/--with options
2009 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2010 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2011 --disable-win16 do not include Win16 support
2012 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
2013 binaries)
2014 --disable-tests do not build the regression tests
2015 --enable-maintainer-mode
2016 enable maintainer-specific build rules
2017 --disable-largefile omit support for large files
2019 Optional Packages:
2020 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2021 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2022 --without-alsa do not use the Alsa sound support
2023 --without-capi do not use CAPI (ISDN support)
2024 --without-cms do not use CMS (color management support)
2025 --without-coreaudio do not use the CoreAudio sound support
2026 --without-cups do not use CUPS
2027 --without-curses do not use (n)curses
2028 --without-dbus do not use DBus (dynamic device support)
2029 --without-fontconfig do not use fontconfig
2030 --without-freetype do not use the FreeType library
2031 --without-gettext do not use gettext
2032 --with-gettextpo use the GetTextPO library to rebuild po files
2033 --without-gphoto do not use gphoto (Digital Camera support)
2034 --without-glu do not use the GLU library
2035 --without-gnutls do not use GnuTLS (schannel support)
2036 --without-gsm do not use libgsm (GSM 06.10 codec support)
2037 --without-gstreamer do not use GStreamer (codecs support)
2038 --without-hal do not use HAL (dynamic device support)
2039 --without-jpeg do not use JPEG
2040 --without-ldap do not use LDAP
2041 --without-mpg123 do not use the mpg123 library
2042 --without-netapi do not use the Samba NetAPI library
2043 --without-openal do not use OpenAL
2044 --without-opencl do not use OpenCL
2045 --without-opengl do not use OpenGL
2046 --without-osmesa do not use the OSMesa library
2047 --without-oss do not use the OSS sound support
2048 --without-png do not use PNG
2049 --without-pthread do not use the pthread library
2050 --without-sane do not use SANE (scanner support)
2051 --without-tiff do not use TIFF
2052 --without-v4l do not use v4l1 (v4l support)
2053 --without-xcomposite do not use the Xcomposite extension
2054 --without-xcursor do not use the Xcursor extension
2055 --without-xinerama do not use Xinerama (multi-monitor support)
2056 --without-xinput do not use the Xinput extension
2057 --without-xinput2 do not use the Xinput 2 extension
2058 --without-xml do not use XML
2059 --without-xrandr do not use Xrandr (resolution changes)
2060 --without-xrender do not use the Xrender extension
2061 --without-xshape do not use the Xshape extension
2062 --without-xshm do not use XShm (shared memory extension)
2063 --without-xslt do not use XSLT
2064 --without-xxf86vm do not use XFree video mode extension
2065 --without-zlib do not use Zlib (data compression)
2066 --with-wine-tools=DIR use Wine tools from directory DIR
2067 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
2068 --with-x use the X Window System
2070 Some influential environment variables:
2071 CC C compiler command
2072 CFLAGS C compiler flags
2073 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2074 nonstandard directory <lib dir>
2075 LIBS libraries to pass to the linker, e.g. -l<library>
2076 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2077 you have headers in a nonstandard directory <include dir>
2078 CXX C++ compiler command
2079 CXXFLAGS C++ compiler flags
2080 CPP C preprocessor
2081 XMKMF Path to xmkmf, Makefile generator for X Window System
2082 XML2_CFLAGS C compiler flags for libxml-2.0, overriding pkg-config
2083 XML2_LIBS Linker flags for libxml-2.0, overriding pkg-config
2084 XSLT_CFLAGS C compiler flags for libxslt, overriding pkg-config
2085 XSLT_LIBS Linker flags for libxslt, overriding pkg-config
2086 DBUS_CFLAGS C compiler flags for dbus-1, overriding pkg-config
2087 DBUS_LIBS Linker flags for dbus-1, overriding pkg-config
2088 HAL_CFLAGS C compiler flags for hal, overriding pkg-config
2089 HAL_LIBS Linker flags for hal, overriding pkg-config
2090 GNUTLS_CFLAGS
2091 C compiler flags for gnutls, overriding pkg-config
2092 GNUTLS_LIBS Linker flags for gnutls, overriding pkg-config
2093 SANE_CFLAGS C compiler flags for libsane, overriding pkg-config
2094 SANE_LIBS Linker flags for libsane, overriding pkg-config
2095 GPHOTO2_CFLAGS
2096 C compiler flags for libgphoto2, overriding pkg-config
2097 GPHOTO2_LIBS
2098 Linker flags for libgphoto2, overriding pkg-config
2099 GPHOTO2_PORT_CFLAGS
2100 C compiler flags for libgphoto2_port, overriding pkg-config
2101 GPHOTO2_PORT_LIBS
2102 Linker flags for libgphoto2_port, overriding pkg-config
2103 LCMS2_CFLAGS
2104 C compiler flags for lcms2, overriding pkg-config
2105 LCMS2_LIBS Linker flags for lcms2, overriding pkg-config
2106 FREETYPE_CFLAGS
2107 C compiler flags for freetype2, overriding pkg-config
2108 FREETYPE_LIBS
2109 Linker flags for freetype2, overriding pkg-config
2110 GSTREAMER_CFLAGS
2111 C compiler flags for gstreamer-app-0.10, overriding pkg-config
2112 GSTREAMER_LIBS
2113 Linker flags for gstreamer-app-0.10, overriding pkg-config
2114 CAPI20_CFLAGS
2115 C compiler flags for capi20, overriding pkg-config
2116 CAPI20_LIBS Linker flags for capi20, overriding pkg-config
2117 JPEG_CFLAGS C compiler flags for libjpeg, overriding pkg-config
2118 JPEG_LIBS Linker flags for libjpeg, overriding pkg-config
2119 PNG_CFLAGS C compiler flags for libpng, overriding pkg-config
2120 PNG_LIBS Linker flags for libpng, overriding pkg-config
2121 TIFF_CFLAGS C compiler flags for libtiff, overriding pkg-config
2122 TIFF_LIBS Linker flags for libtiff, overriding pkg-config
2123 MPG123_CFLAGS
2124 C compiler flags for libmpg123, overriding pkg-config
2125 MPG123_LIBS Linker flags for libmpg123, overriding pkg-config
2127 Use these variables to override the choices made by `configure' or to help
2128 it to find libraries and programs with nonstandard names/locations.
2130 Report bugs to <wine-devel@winehq.org>.
2131 Wine home page: <http://www.winehq.org>.
2132 _ACEOF
2133 ac_status=$?
2136 if test "$ac_init_help" = "recursive"; then
2137 # If there are subdirs, report their specific --help.
2138 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2139 test -d "$ac_dir" ||
2140 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2141 continue
2142 ac_builddir=.
2144 case "$ac_dir" in
2145 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2147 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2148 # A ".." for each directory in $ac_dir_suffix.
2149 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2150 case $ac_top_builddir_sub in
2151 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2152 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2153 esac ;;
2154 esac
2155 ac_abs_top_builddir=$ac_pwd
2156 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2157 # for backward compatibility:
2158 ac_top_builddir=$ac_top_build_prefix
2160 case $srcdir in
2161 .) # We are building in place.
2162 ac_srcdir=.
2163 ac_top_srcdir=$ac_top_builddir_sub
2164 ac_abs_top_srcdir=$ac_pwd ;;
2165 [\\/]* | ?:[\\/]* ) # Absolute name.
2166 ac_srcdir=$srcdir$ac_dir_suffix;
2167 ac_top_srcdir=$srcdir
2168 ac_abs_top_srcdir=$srcdir ;;
2169 *) # Relative name.
2170 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2171 ac_top_srcdir=$ac_top_build_prefix$srcdir
2172 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2173 esac
2174 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2176 cd "$ac_dir" || { ac_status=$?; continue; }
2177 # Check for guested configure.
2178 if test -f "$ac_srcdir/configure.gnu"; then
2179 echo &&
2180 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2181 elif test -f "$ac_srcdir/configure"; then
2182 echo &&
2183 $SHELL "$ac_srcdir/configure" --help=recursive
2184 else
2185 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2186 fi || ac_status=$?
2187 cd "$ac_pwd" || { ac_status=$?; break; }
2188 done
2191 test -n "$ac_init_help" && exit $ac_status
2192 if $ac_init_version; then
2193 cat <<\_ACEOF
2194 Wine configure 1.7.6
2195 generated by GNU Autoconf 2.69
2197 Copyright (C) 2012 Free Software Foundation, Inc.
2198 This configure script is free software; the Free Software Foundation
2199 gives unlimited permission to copy, distribute and modify it.
2200 _ACEOF
2201 exit
2204 ## ------------------------ ##
2205 ## Autoconf initialization. ##
2206 ## ------------------------ ##
2208 # ac_fn_c_try_compile LINENO
2209 # --------------------------
2210 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2211 ac_fn_c_try_compile ()
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 rm -f conftest.$ac_objext
2215 if { { ac_try="$ac_compile"
2216 case "(($ac_try" in
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2219 esac
2220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 $as_echo "$ac_try_echo"; } >&5
2222 (eval "$ac_compile") 2>conftest.err
2223 ac_status=$?
2224 if test -s conftest.err; then
2225 grep -v '^ *+' conftest.err >conftest.er1
2226 cat conftest.er1 >&5
2227 mv -f conftest.er1 conftest.err
2229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; } && {
2231 test -z "$ac_c_werror_flag" ||
2232 test ! -s conftest.err
2233 } && test -s conftest.$ac_objext; then :
2234 ac_retval=0
2235 else
2236 $as_echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2239 ac_retval=1
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242 as_fn_set_status $ac_retval
2244 } # ac_fn_c_try_compile
2246 # ac_fn_cxx_try_compile LINENO
2247 # ----------------------------
2248 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2249 ac_fn_cxx_try_compile ()
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 rm -f conftest.$ac_objext
2253 if { { ac_try="$ac_compile"
2254 case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257 esac
2258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259 $as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_compile") 2>conftest.err
2261 ac_status=$?
2262 if test -s conftest.err; then
2263 grep -v '^ *+' conftest.err >conftest.er1
2264 cat conftest.er1 >&5
2265 mv -f conftest.er1 conftest.err
2267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2268 test $ac_status = 0; } && {
2269 test -z "$ac_cxx_werror_flag" ||
2270 test ! -s conftest.err
2271 } && test -s conftest.$ac_objext; then :
2272 ac_retval=0
2273 else
2274 $as_echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2277 ac_retval=1
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280 as_fn_set_status $ac_retval
2282 } # ac_fn_cxx_try_compile
2284 # ac_fn_c_try_link LINENO
2285 # -----------------------
2286 # Try to link conftest.$ac_ext, and return whether this succeeded.
2287 ac_fn_c_try_link ()
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 rm -f conftest.$ac_objext conftest$ac_exeext
2291 if { { ac_try="$ac_link"
2292 case "(($ac_try" in
2293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294 *) ac_try_echo=$ac_try;;
2295 esac
2296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297 $as_echo "$ac_try_echo"; } >&5
2298 (eval "$ac_link") 2>conftest.err
2299 ac_status=$?
2300 if test -s conftest.err; then
2301 grep -v '^ *+' conftest.err >conftest.er1
2302 cat conftest.er1 >&5
2303 mv -f conftest.er1 conftest.err
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; } && {
2307 test -z "$ac_c_werror_flag" ||
2308 test ! -s conftest.err
2309 } && test -s conftest$ac_exeext && {
2310 test "$cross_compiling" = yes ||
2311 test -x conftest$ac_exeext
2312 }; then :
2313 ac_retval=0
2314 else
2315 $as_echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2318 ac_retval=1
2320 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2321 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2322 # interfere with the next link command; also delete a directory that is
2323 # left behind by Apple's compiler. We do this before executing the actions.
2324 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2325 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2326 as_fn_set_status $ac_retval
2328 } # ac_fn_c_try_link
2330 # ac_fn_c_try_cpp LINENO
2331 # ----------------------
2332 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2333 ac_fn_c_try_cpp ()
2335 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2336 if { { ac_try="$ac_cpp conftest.$ac_ext"
2337 case "(($ac_try" in
2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339 *) ac_try_echo=$ac_try;;
2340 esac
2341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2342 $as_echo "$ac_try_echo"; } >&5
2343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2344 ac_status=$?
2345 if test -s conftest.err; then
2346 grep -v '^ *+' conftest.err >conftest.er1
2347 cat conftest.er1 >&5
2348 mv -f conftest.er1 conftest.err
2350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2351 test $ac_status = 0; } > conftest.i && {
2352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2353 test ! -s conftest.err
2354 }; then :
2355 ac_retval=0
2356 else
2357 $as_echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2360 ac_retval=1
2362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2363 as_fn_set_status $ac_retval
2365 } # ac_fn_c_try_cpp
2367 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2368 # -------------------------------------------------------
2369 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2370 # the include files in INCLUDES and setting the cache variable VAR
2371 # accordingly.
2372 ac_fn_c_check_header_mongrel ()
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 if eval \${$3+:} false; then :
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2377 $as_echo_n "checking for $2... " >&6; }
2378 if eval \${$3+:} false; then :
2379 $as_echo_n "(cached) " >&6
2381 eval ac_res=\$$3
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 else
2385 # Is the header compilable?
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2387 $as_echo_n "checking $2 usability... " >&6; }
2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h. */
2391 #include <$2>
2392 _ACEOF
2393 if ac_fn_c_try_compile "$LINENO"; then :
2394 ac_header_compiler=yes
2395 else
2396 ac_header_compiler=no
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2400 $as_echo "$ac_header_compiler" >&6; }
2402 # Is the header present?
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2404 $as_echo_n "checking $2 presence... " >&6; }
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2407 #include <$2>
2408 _ACEOF
2409 if ac_fn_c_try_cpp "$LINENO"; then :
2410 ac_header_preproc=yes
2411 else
2412 ac_header_preproc=no
2414 rm -f conftest.err conftest.i conftest.$ac_ext
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2416 $as_echo "$ac_header_preproc" >&6; }
2418 # So? What about this header?
2419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2420 yes:no: )
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2422 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2424 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2426 no:yes:* )
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2428 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2430 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2432 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2434 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2436 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2437 ( $as_echo "## ------------------------------------ ##
2438 ## Report this to wine-devel@winehq.org ##
2439 ## ------------------------------------ ##"
2440 ) | sed "s/^/$as_me: WARNING: /" >&2
2442 esac
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2444 $as_echo_n "checking for $2... " >&6; }
2445 if eval \${$3+:} false; then :
2446 $as_echo_n "(cached) " >&6
2447 else
2448 eval "$3=\$ac_header_compiler"
2450 eval ac_res=\$$3
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2454 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2456 } # ac_fn_c_check_header_mongrel
2458 # ac_fn_c_try_run LINENO
2459 # ----------------------
2460 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2461 # that executables *can* be run.
2462 ac_fn_c_try_run ()
2464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2465 if { { ac_try="$ac_link"
2466 case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2469 esac
2470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2471 $as_echo "$ac_try_echo"; } >&5
2472 (eval "$ac_link") 2>&5
2473 ac_status=$?
2474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2475 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2476 { { case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479 esac
2480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2481 $as_echo "$ac_try_echo"; } >&5
2482 (eval "$ac_try") 2>&5
2483 ac_status=$?
2484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2485 test $ac_status = 0; }; }; then :
2486 ac_retval=0
2487 else
2488 $as_echo "$as_me: program exited with status $ac_status" >&5
2489 $as_echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2492 ac_retval=$ac_status
2494 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2496 as_fn_set_status $ac_retval
2498 } # ac_fn_c_try_run
2500 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2501 # -------------------------------------------------------
2502 # Tests whether HEADER exists and can be compiled using the include files in
2503 # INCLUDES, setting the cache variable VAR accordingly.
2504 ac_fn_c_check_header_compile ()
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2508 $as_echo_n "checking for $2... " >&6; }
2509 if eval \${$3+:} false; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2515 #include <$2>
2516 _ACEOF
2517 if ac_fn_c_try_compile "$LINENO"; then :
2518 eval "$3=yes"
2519 else
2520 eval "$3=no"
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2524 eval ac_res=\$$3
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2526 $as_echo "$ac_res" >&6; }
2527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2529 } # ac_fn_c_check_header_compile
2531 # ac_fn_c_check_func LINENO FUNC VAR
2532 # ----------------------------------
2533 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2534 ac_fn_c_check_func ()
2536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2538 $as_echo_n "checking for $2... " >&6; }
2539 if eval \${$3+:} false; then :
2540 $as_echo_n "(cached) " >&6
2541 else
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2544 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2546 #define $2 innocuous_$2
2548 /* System header to define __stub macros and hopefully few prototypes,
2549 which can conflict with char $2 (); below.
2550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2551 <limits.h> exists even on freestanding compilers. */
2553 #ifdef __STDC__
2554 # include <limits.h>
2555 #else
2556 # include <assert.h>
2557 #endif
2559 #undef $2
2561 /* Override any GCC internal prototype to avoid an error.
2562 Use char because int might match the return type of a GCC
2563 builtin and then its argument prototype would still apply. */
2564 #ifdef __cplusplus
2565 extern "C"
2566 #endif
2567 char $2 ();
2568 /* The GNU C library defines this for functions which it implements
2569 to always fail with ENOSYS. Some functions are actually named
2570 something starting with __ and the normal name is an alias. */
2571 #if defined __stub_$2 || defined __stub___$2
2572 choke me
2573 #endif
2576 main ()
2578 return $2 ();
2580 return 0;
2582 _ACEOF
2583 if ac_fn_c_try_link "$LINENO"; then :
2584 eval "$3=yes"
2585 else
2586 eval "$3=no"
2588 rm -f core conftest.err conftest.$ac_objext \
2589 conftest$ac_exeext conftest.$ac_ext
2591 eval ac_res=\$$3
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2593 $as_echo "$ac_res" >&6; }
2594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2596 } # ac_fn_c_check_func
2598 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2599 # ----------------------------------------------------
2600 # Tries to find if the field MEMBER exists in type AGGR, after including
2601 # INCLUDES, setting cache variable VAR accordingly.
2602 ac_fn_c_check_member ()
2604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2606 $as_echo_n "checking for $2.$3... " >&6; }
2607 if eval \${$4+:} false; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611 /* end confdefs.h. */
2614 main ()
2616 static $2 ac_aggr;
2617 if (ac_aggr.$3)
2618 return 0;
2620 return 0;
2622 _ACEOF
2623 if ac_fn_c_try_compile "$LINENO"; then :
2624 eval "$4=yes"
2625 else
2626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h. */
2630 main ()
2632 static $2 ac_aggr;
2633 if (sizeof ac_aggr.$3)
2634 return 0;
2636 return 0;
2638 _ACEOF
2639 if ac_fn_c_try_compile "$LINENO"; then :
2640 eval "$4=yes"
2641 else
2642 eval "$4=no"
2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 eval ac_res=\$$4
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2650 $as_echo "$ac_res" >&6; }
2651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2653 } # ac_fn_c_check_member
2655 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2656 # -------------------------------------------
2657 # Tests whether TYPE exists after having included INCLUDES, setting cache
2658 # variable VAR accordingly.
2659 ac_fn_c_check_type ()
2661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2663 $as_echo_n "checking for $2... " >&6; }
2664 if eval \${$3+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 eval "$3=no"
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h. */
2672 main ()
2674 if (sizeof ($2))
2675 return 0;
2677 return 0;
2679 _ACEOF
2680 if ac_fn_c_try_compile "$LINENO"; then :
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h. */
2685 main ()
2687 if (sizeof (($2)))
2688 return 0;
2690 return 0;
2692 _ACEOF
2693 if ac_fn_c_try_compile "$LINENO"; then :
2695 else
2696 eval "$3=yes"
2698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 eval ac_res=\$$3
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2704 $as_echo "$ac_res" >&6; }
2705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2707 } # ac_fn_c_check_type
2708 cat >config.log <<_ACEOF
2709 This file contains any messages produced by compilers while
2710 running configure, to aid debugging if configure makes a mistake.
2712 It was created by Wine $as_me 1.7.6, which was
2713 generated by GNU Autoconf 2.69. Invocation command line was
2715 $ $0 $@
2717 _ACEOF
2718 exec 5>>config.log
2720 cat <<_ASUNAME
2721 ## --------- ##
2722 ## Platform. ##
2723 ## --------- ##
2725 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2726 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2727 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2728 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2729 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2731 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2732 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2734 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2735 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2736 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2737 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2738 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2739 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2740 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2742 _ASUNAME
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 $as_echo "PATH: $as_dir"
2750 done
2751 IFS=$as_save_IFS
2753 } >&5
2755 cat >&5 <<_ACEOF
2758 ## ----------- ##
2759 ## Core tests. ##
2760 ## ----------- ##
2762 _ACEOF
2765 # Keep a trace of the command line.
2766 # Strip out --no-create and --no-recursion so they do not pile up.
2767 # Strip out --silent because we don't want to record it for future runs.
2768 # Also quote any args containing shell meta-characters.
2769 # Make two passes to allow for proper duplicate-argument suppression.
2770 ac_configure_args=
2771 ac_configure_args0=
2772 ac_configure_args1=
2773 ac_must_keep_next=false
2774 for ac_pass in 1 2
2776 for ac_arg
2778 case $ac_arg in
2779 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2781 | -silent | --silent | --silen | --sile | --sil)
2782 continue ;;
2783 *\'*)
2784 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2785 esac
2786 case $ac_pass in
2787 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2789 as_fn_append ac_configure_args1 " '$ac_arg'"
2790 if test $ac_must_keep_next = true; then
2791 ac_must_keep_next=false # Got value, back to normal.
2792 else
2793 case $ac_arg in
2794 *=* | --config-cache | -C | -disable-* | --disable-* \
2795 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2796 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2797 | -with-* | --with-* | -without-* | --without-* | --x)
2798 case "$ac_configure_args0 " in
2799 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2800 esac
2802 -* ) ac_must_keep_next=true ;;
2803 esac
2805 as_fn_append ac_configure_args " '$ac_arg'"
2807 esac
2808 done
2809 done
2810 { ac_configure_args0=; unset ac_configure_args0;}
2811 { ac_configure_args1=; unset ac_configure_args1;}
2813 # When interrupted or exit'd, cleanup temporary files, and complete
2814 # config.log. We remove comments because anyway the quotes in there
2815 # would cause problems or look ugly.
2816 # WARNING: Use '\'' to represent an apostrophe within the trap.
2817 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2818 trap 'exit_status=$?
2819 # Save into config.log some information that might help in debugging.
2821 echo
2823 $as_echo "## ---------------- ##
2824 ## Cache variables. ##
2825 ## ---------------- ##"
2826 echo
2827 # The following way of writing the cache mishandles newlines in values,
2829 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2830 eval ac_val=\$$ac_var
2831 case $ac_val in #(
2832 *${as_nl}*)
2833 case $ac_var in #(
2834 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2835 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2836 esac
2837 case $ac_var in #(
2838 _ | IFS | as_nl) ;; #(
2839 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2840 *) { eval $ac_var=; unset $ac_var;} ;;
2841 esac ;;
2842 esac
2843 done
2844 (set) 2>&1 |
2845 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2846 *${as_nl}ac_space=\ *)
2847 sed -n \
2848 "s/'\''/'\''\\\\'\'''\''/g;
2849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2850 ;; #(
2852 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2854 esac |
2855 sort
2857 echo
2859 $as_echo "## ----------------- ##
2860 ## Output variables. ##
2861 ## ----------------- ##"
2862 echo
2863 for ac_var in $ac_subst_vars
2865 eval ac_val=\$$ac_var
2866 case $ac_val in
2867 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2868 esac
2869 $as_echo "$ac_var='\''$ac_val'\''"
2870 done | sort
2871 echo
2873 if test -n "$ac_subst_files"; then
2874 $as_echo "## ------------------- ##
2875 ## File substitutions. ##
2876 ## ------------------- ##"
2877 echo
2878 for ac_var in $ac_subst_files
2880 eval ac_val=\$$ac_var
2881 case $ac_val in
2882 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2883 esac
2884 $as_echo "$ac_var='\''$ac_val'\''"
2885 done | sort
2886 echo
2889 if test -s confdefs.h; then
2890 $as_echo "## ----------- ##
2891 ## confdefs.h. ##
2892 ## ----------- ##"
2893 echo
2894 cat confdefs.h
2895 echo
2897 test "$ac_signal" != 0 &&
2898 $as_echo "$as_me: caught signal $ac_signal"
2899 $as_echo "$as_me: exit $exit_status"
2900 } >&5
2901 rm -f core *.core core.conftest.* &&
2902 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2903 exit $exit_status
2905 for ac_signal in 1 2 13 15; do
2906 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2907 done
2908 ac_signal=0
2910 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2911 rm -f -r conftest* confdefs.h
2913 $as_echo "/* confdefs.h */" > confdefs.h
2915 # Predefined preprocessor variables.
2917 cat >>confdefs.h <<_ACEOF
2918 #define PACKAGE_NAME "$PACKAGE_NAME"
2919 _ACEOF
2921 cat >>confdefs.h <<_ACEOF
2922 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2923 _ACEOF
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2927 _ACEOF
2929 cat >>confdefs.h <<_ACEOF
2930 #define PACKAGE_STRING "$PACKAGE_STRING"
2931 _ACEOF
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2935 _ACEOF
2937 cat >>confdefs.h <<_ACEOF
2938 #define PACKAGE_URL "$PACKAGE_URL"
2939 _ACEOF
2942 # Let the site file select an alternate cache file if it wants to.
2943 # Prefer an explicitly selected file to automatically selected ones.
2944 ac_site_file1=NONE
2945 ac_site_file2=NONE
2946 if test -n "$CONFIG_SITE"; then
2947 # We do not want a PATH search for config.site.
2948 case $CONFIG_SITE in #((
2949 -*) ac_site_file1=./$CONFIG_SITE;;
2950 */*) ac_site_file1=$CONFIG_SITE;;
2951 *) ac_site_file1=./$CONFIG_SITE;;
2952 esac
2953 elif test "x$prefix" != xNONE; then
2954 ac_site_file1=$prefix/share/config.site
2955 ac_site_file2=$prefix/etc/config.site
2956 else
2957 ac_site_file1=$ac_default_prefix/share/config.site
2958 ac_site_file2=$ac_default_prefix/etc/config.site
2960 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2962 test "x$ac_site_file" = xNONE && continue
2963 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2965 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2966 sed 's/^/| /' "$ac_site_file" >&5
2967 . "$ac_site_file" \
2968 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970 as_fn_error $? "failed to load site script $ac_site_file
2971 See \`config.log' for more details" "$LINENO" 5; }
2973 done
2975 if test -r "$cache_file"; then
2976 # Some versions of bash will fail to source /dev/null (special files
2977 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2978 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2980 $as_echo "$as_me: loading cache $cache_file" >&6;}
2981 case $cache_file in
2982 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2983 *) . "./$cache_file";;
2984 esac
2986 else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2988 $as_echo "$as_me: creating cache $cache_file" >&6;}
2989 >$cache_file
2992 # Check that the precious variables saved in the cache have kept the same
2993 # value.
2994 ac_cache_corrupted=false
2995 for ac_var in $ac_precious_vars; do
2996 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2997 eval ac_new_set=\$ac_env_${ac_var}_set
2998 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2999 eval ac_new_val=\$ac_env_${ac_var}_value
3000 case $ac_old_set,$ac_new_set in
3001 set,)
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3003 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3004 ac_cache_corrupted=: ;;
3005 ,set)
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3007 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3008 ac_cache_corrupted=: ;;
3009 ,);;
3011 if test "x$ac_old_val" != "x$ac_new_val"; then
3012 # differences in whitespace do not lead to failure.
3013 ac_old_val_w=`echo x $ac_old_val`
3014 ac_new_val_w=`echo x $ac_new_val`
3015 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3017 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3018 ac_cache_corrupted=:
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3021 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3022 eval $ac_var=\$ac_old_val
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3025 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3027 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3028 fi;;
3029 esac
3030 # Pass precious variables to config.status.
3031 if test "$ac_new_set" = set; then
3032 case $ac_new_val in
3033 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3034 *) ac_arg=$ac_var=$ac_new_val ;;
3035 esac
3036 case " $ac_configure_args " in
3037 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3038 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3039 esac
3041 done
3042 if $ac_cache_corrupted; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3046 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3047 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3049 ## -------------------- ##
3050 ## Main body of script. ##
3051 ## -------------------- ##
3053 ac_ext=c
3054 ac_cpp='$CPP $CPPFLAGS'
3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061 ac_config_headers="$ac_config_headers include/config.h"
3063 ac_aux_dir=
3064 for ac_dir in tools "$srcdir"/tools; do
3065 if test -f "$ac_dir/install-sh"; then
3066 ac_aux_dir=$ac_dir
3067 ac_install_sh="$ac_aux_dir/install-sh -c"
3068 break
3069 elif test -f "$ac_dir/install.sh"; then
3070 ac_aux_dir=$ac_dir
3071 ac_install_sh="$ac_aux_dir/install.sh -c"
3072 break
3073 elif test -f "$ac_dir/shtool"; then
3074 ac_aux_dir=$ac_dir
3075 ac_install_sh="$ac_aux_dir/shtool install -c"
3076 break
3078 done
3079 if test -z "$ac_aux_dir"; then
3080 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
3083 # These three variables are undocumented and unsupported,
3084 # and are intended to be withdrawn in a future Autoconf release.
3085 # They can cause serious problems if a builder's source tree is in a directory
3086 # whose full name contains unusual characters.
3087 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3088 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3089 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3095 # Check whether --enable-win16 was given.
3096 if test "${enable_win16+set}" = set; then :
3097 enableval=$enable_win16;
3100 # Check whether --enable-win64 was given.
3101 if test "${enable_win64+set}" = set; then :
3102 enableval=$enable_win64;
3105 # Check whether --enable-tests was given.
3106 if test "${enable_tests+set}" = set; then :
3107 enableval=$enable_tests;
3110 # Check whether --enable-maintainer-mode was given.
3111 if test "${enable_maintainer_mode+set}" = set; then :
3112 enableval=$enable_maintainer_mode;
3117 # Check whether --with-alsa was given.
3118 if test "${with_alsa+set}" = set; then :
3119 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
3123 # Check whether --with-capi was given.
3124 if test "${with_capi+set}" = set; then :
3125 withval=$with_capi;
3129 # Check whether --with-cms was given.
3130 if test "${with_cms+set}" = set; then :
3131 withval=$with_cms;
3135 # Check whether --with-coreaudio was given.
3136 if test "${with_coreaudio+set}" = set; then :
3137 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
3141 # Check whether --with-cups was given.
3142 if test "${with_cups+set}" = set; then :
3143 withval=$with_cups;
3147 # Check whether --with-curses was given.
3148 if test "${with_curses+set}" = set; then :
3149 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
3153 # Check whether --with-dbus was given.
3154 if test "${with_dbus+set}" = set; then :
3155 withval=$with_dbus;
3159 # Check whether --with-fontconfig was given.
3160 if test "${with_fontconfig+set}" = set; then :
3161 withval=$with_fontconfig;
3165 # Check whether --with-freetype was given.
3166 if test "${with_freetype+set}" = set; then :
3167 withval=$with_freetype;
3171 # Check whether --with-gettext was given.
3172 if test "${with_gettext+set}" = set; then :
3173 withval=$with_gettext;
3177 # Check whether --with-gettextpo was given.
3178 if test "${with_gettextpo+set}" = set; then :
3179 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
3183 # Check whether --with-gphoto was given.
3184 if test "${with_gphoto+set}" = set; then :
3185 withval=$with_gphoto;
3189 # Check whether --with-glu was given.
3190 if test "${with_glu+set}" = set; then :
3191 withval=$with_glu;
3195 # Check whether --with-gnutls was given.
3196 if test "${with_gnutls+set}" = set; then :
3197 withval=$with_gnutls;
3201 # Check whether --with-gsm was given.
3202 if test "${with_gsm+set}" = set; then :
3203 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
3207 # Check whether --with-gstreamer was given.
3208 if test "${with_gstreamer+set}" = set; then :
3209 withval=$with_gstreamer;
3213 # Check whether --with-hal was given.
3214 if test "${with_hal+set}" = set; then :
3215 withval=$with_hal;
3219 # Check whether --with-jpeg was given.
3220 if test "${with_jpeg+set}" = set; then :
3221 withval=$with_jpeg;
3225 # Check whether --with-ldap was given.
3226 if test "${with_ldap+set}" = set; then :
3227 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
3231 # Check whether --with-mpg123 was given.
3232 if test "${with_mpg123+set}" = set; then :
3233 withval=$with_mpg123;
3237 # Check whether --with-netapi was given.
3238 if test "${with_netapi+set}" = set; then :
3239 withval=$with_netapi;
3243 # Check whether --with-openal was given.
3244 if test "${with_openal+set}" = set; then :
3245 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
3249 # Check whether --with-opencl was given.
3250 if test "${with_opencl+set}" = set; then :
3251 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
3255 # Check whether --with-opengl was given.
3256 if test "${with_opengl+set}" = set; then :
3257 withval=$with_opengl;
3261 # Check whether --with-osmesa was given.
3262 if test "${with_osmesa+set}" = set; then :
3263 withval=$with_osmesa;
3267 # Check whether --with-oss was given.
3268 if test "${with_oss+set}" = set; then :
3269 withval=$with_oss;
3273 # Check whether --with-png was given.
3274 if test "${with_png+set}" = set; then :
3275 withval=$with_png;
3279 # Check whether --with-pthread was given.
3280 if test "${with_pthread+set}" = set; then :
3281 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
3285 # Check whether --with-sane was given.
3286 if test "${with_sane+set}" = set; then :
3287 withval=$with_sane;
3291 # Check whether --with-tiff was given.
3292 if test "${with_tiff+set}" = set; then :
3293 withval=$with_tiff;
3297 # Check whether --with-v4l was given.
3298 if test "${with_v4l+set}" = set; then :
3299 withval=$with_v4l;
3303 # Check whether --with-xcomposite was given.
3304 if test "${with_xcomposite+set}" = set; then :
3305 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
3309 # Check whether --with-xcursor was given.
3310 if test "${with_xcursor+set}" = set; then :
3311 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
3315 # Check whether --with-xinerama was given.
3316 if test "${with_xinerama+set}" = set; then :
3317 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
3321 # Check whether --with-xinput was given.
3322 if test "${with_xinput+set}" = set; then :
3323 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
3327 # Check whether --with-xinput2 was given.
3328 if test "${with_xinput2+set}" = set; then :
3329 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
3333 # Check whether --with-xml was given.
3334 if test "${with_xml+set}" = set; then :
3335 withval=$with_xml;
3339 # Check whether --with-xrandr was given.
3340 if test "${with_xrandr+set}" = set; then :
3341 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
3345 # Check whether --with-xrender was given.
3346 if test "${with_xrender+set}" = set; then :
3347 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
3351 # Check whether --with-xshape was given.
3352 if test "${with_xshape+set}" = set; then :
3353 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
3357 # Check whether --with-xshm was given.
3358 if test "${with_xshm+set}" = set; then :
3359 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
3363 # Check whether --with-xslt was given.
3364 if test "${with_xslt+set}" = set; then :
3365 withval=$with_xslt;
3369 # Check whether --with-xxf86vm was given.
3370 if test "${with_xxf86vm+set}" = set; then :
3371 withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi
3375 # Check whether --with-zlib was given.
3376 if test "${with_zlib+set}" = set; then :
3377 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
3382 # Check whether --with-wine-tools was given.
3383 if test "${with_wine_tools+set}" = set; then :
3384 withval=$with_wine_tools;
3388 # Check whether --with-wine64 was given.
3389 if test "${with_wine64+set}" = set; then :
3390 withval=$with_wine64;
3394 # Make sure we can run config.sub.
3395 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3396 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3399 $as_echo_n "checking build system type... " >&6; }
3400 if ${ac_cv_build+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 ac_build_alias=$build_alias
3404 test "x$ac_build_alias" = x &&
3405 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3406 test "x$ac_build_alias" = x &&
3407 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3408 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3409 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3413 $as_echo "$ac_cv_build" >&6; }
3414 case $ac_cv_build in
3415 *-*-*) ;;
3416 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3417 esac
3418 build=$ac_cv_build
3419 ac_save_IFS=$IFS; IFS='-'
3420 set x $ac_cv_build
3421 shift
3422 build_cpu=$1
3423 build_vendor=$2
3424 shift; shift
3425 # Remember, the first character of IFS is used to create $*,
3426 # except with old shells:
3427 build_os=$*
3428 IFS=$ac_save_IFS
3429 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3433 $as_echo_n "checking host system type... " >&6; }
3434 if ${ac_cv_host+:} false; then :
3435 $as_echo_n "(cached) " >&6
3436 else
3437 if test "x$host_alias" = x; then
3438 ac_cv_host=$ac_cv_build
3439 else
3440 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3446 $as_echo "$ac_cv_host" >&6; }
3447 case $ac_cv_host in
3448 *-*-*) ;;
3449 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3450 esac
3451 host=$ac_cv_host
3452 ac_save_IFS=$IFS; IFS='-'
3453 set x $ac_cv_host
3454 shift
3455 host_cpu=$1
3456 host_vendor=$2
3457 shift; shift
3458 # Remember, the first character of IFS is used to create $*,
3459 # except with old shells:
3460 host_os=$*
3461 IFS=$ac_save_IFS
3462 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3466 case "$srcdir" in
3467 .) ;;
3468 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
3469 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
3470 You need to run 'make distclean' in the source tree first." "$LINENO" 5
3471 fi ;;
3472 esac
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3476 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3477 set x ${MAKE-make}
3478 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3479 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3480 $as_echo_n "(cached) " >&6
3481 else
3482 cat >conftest.make <<\_ACEOF
3483 SHELL = /bin/sh
3484 all:
3485 @echo '@@@%%%=$(MAKE)=@@@%%%'
3486 _ACEOF
3487 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3488 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3489 *@@@%%%=?*=@@@%%%*)
3490 eval ac_cv_prog_make_${ac_make}_set=yes;;
3492 eval ac_cv_prog_make_${ac_make}_set=no;;
3493 esac
3494 rm -f conftest.make
3496 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3498 $as_echo "yes" >&6; }
3499 SET_MAKE=
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3503 SET_MAKE="MAKE=${MAKE-make}"
3506 ac_ext=c
3507 ac_cpp='$CPP $CPPFLAGS'
3508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3511 if test -n "$ac_tool_prefix"; then
3512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3513 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if ${ac_cv_prog_CC+:} false; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 if test -n "$CC"; then
3520 ac_cv_prog_CC="$CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3533 done
3534 done
3535 IFS=$as_save_IFS
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3550 if test -z "$ac_cv_prog_CC"; then
3551 ac_ct_CC=$CC
3552 # Extract the first word of "gcc", so it can be a program name with args.
3553 set dummy gcc; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$ac_ct_CC"; then
3560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569 ac_cv_prog_ac_ct_CC="gcc"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3573 done
3574 done
3575 IFS=$as_save_IFS
3579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3580 if test -n "$ac_ct_CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3582 $as_echo "$ac_ct_CC" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3588 if test "x$ac_ct_CC" = x; then
3589 CC=""
3590 else
3591 case $cross_compiling:$ac_tool_warned in
3592 yes:)
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3595 ac_tool_warned=yes ;;
3596 esac
3597 CC=$ac_ct_CC
3599 else
3600 CC="$ac_cv_prog_CC"
3603 if test -z "$CC"; then
3604 if test -n "$ac_tool_prefix"; then
3605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3606 set dummy ${ac_tool_prefix}cc; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if ${ac_cv_prog_CC+:} false; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC="$CC" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3622 ac_cv_prog_CC="${ac_tool_prefix}cc"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 break 2
3626 done
3627 done
3628 IFS=$as_save_IFS
3632 CC=$ac_cv_prog_CC
3633 if test -n "$CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3636 else
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3644 if test -z "$CC"; then
3645 # Extract the first word of "cc", so it can be a program name with args.
3646 set dummy cc; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if ${ac_cv_prog_CC+:} false; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 if test -n "$CC"; then
3653 ac_cv_prog_CC="$CC" # Let the user override the test.
3654 else
3655 ac_prog_rejected=no
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3664 ac_prog_rejected=yes
3665 continue
3667 ac_cv_prog_CC="cc"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3671 done
3672 done
3673 IFS=$as_save_IFS
3675 if test $ac_prog_rejected = yes; then
3676 # We found a bogon in the path, so make sure we never use it.
3677 set dummy $ac_cv_prog_CC
3678 shift
3679 if test $# != 0; then
3680 # We chose a different compiler from the bogus one.
3681 # However, it has the same basename, so the bogon will be chosen
3682 # first if we set CC to just the basename; use the full file name.
3683 shift
3684 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3689 CC=$ac_cv_prog_CC
3690 if test -n "$CC"; then
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3692 $as_echo "$CC" >&6; }
3693 else
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3700 if test -z "$CC"; then
3701 if test -n "$ac_tool_prefix"; then
3702 for ac_prog in cl.exe
3704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if ${ac_cv_prog_CC+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 if test -n "$CC"; then
3712 ac_cv_prog_CC="$CC" # Let the user override the test.
3713 else
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 break 2
3725 done
3726 done
3727 IFS=$as_save_IFS
3731 CC=$ac_cv_prog_CC
3732 if test -n "$CC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3734 $as_echo "$CC" >&6; }
3735 else
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3741 test -n "$CC" && break
3742 done
3744 if test -z "$CC"; then
3745 ac_ct_CC=$CC
3746 for ac_prog in cl.exe
3748 # Extract the first word of "$ac_prog", so it can be a program name with args.
3749 set dummy $ac_prog; ac_word=$2
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 $as_echo_n "checking for $ac_word... " >&6; }
3752 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 if test -n "$ac_ct_CC"; then
3756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3757 else
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765 ac_cv_prog_ac_ct_CC="$ac_prog"
3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 break 2
3769 done
3770 done
3771 IFS=$as_save_IFS
3775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3776 if test -n "$ac_ct_CC"; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3778 $as_echo "$ac_ct_CC" >&6; }
3779 else
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3785 test -n "$ac_ct_CC" && break
3786 done
3788 if test "x$ac_ct_CC" = x; then
3789 CC=""
3790 else
3791 case $cross_compiling:$ac_tool_warned in
3792 yes:)
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3795 ac_tool_warned=yes ;;
3796 esac
3797 CC=$ac_ct_CC
3804 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3806 as_fn_error $? "no acceptable C compiler found in \$PATH
3807 See \`config.log' for more details" "$LINENO" 5; }
3809 # Provide some information about the compiler.
3810 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3811 set X $ac_compile
3812 ac_compiler=$2
3813 for ac_option in --version -v -V -qversion; do
3814 { { ac_try="$ac_compiler $ac_option >&5"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 $as_echo "$ac_try_echo"; } >&5
3821 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3822 ac_status=$?
3823 if test -s conftest.err; then
3824 sed '10a\
3825 ... rest of stderr output deleted ...
3826 10q' conftest.err >conftest.er1
3827 cat conftest.er1 >&5
3829 rm -f conftest.er1 conftest.err
3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }
3832 done
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3838 main ()
3842 return 0;
3844 _ACEOF
3845 ac_clean_files_save=$ac_clean_files
3846 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3847 # Try to create an executable without -o first, disregard a.out.
3848 # It will help us diagnose broken compilers, and finding out an intuition
3849 # of exeext.
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3851 $as_echo_n "checking whether the C compiler works... " >&6; }
3852 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3854 # The possible output files:
3855 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3857 ac_rmfiles=
3858 for ac_file in $ac_files
3860 case $ac_file in
3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3862 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3863 esac
3864 done
3865 rm -f $ac_rmfiles
3867 if { { ac_try="$ac_link_default"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873 $as_echo "$ac_try_echo"; } >&5
3874 (eval "$ac_link_default") 2>&5
3875 ac_status=$?
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }; then :
3878 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3879 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3880 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3881 # so that the user can short-circuit this test for compilers unknown to
3882 # Autoconf.
3883 for ac_file in $ac_files ''
3885 test -f "$ac_file" || continue
3886 case $ac_file in
3887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3889 [ab].out )
3890 # We found the default executable, but exeext='' is most
3891 # certainly right.
3892 break;;
3893 *.* )
3894 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3895 then :; else
3896 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3898 # We set ac_cv_exeext here because the later test for it is not
3899 # safe: cross compilers may not add the suffix if given an `-o'
3900 # argument, so we may need to know it at that point already.
3901 # Even if this section looks crufty: it has the advantage of
3902 # actually working.
3903 break;;
3905 break;;
3906 esac
3907 done
3908 test "$ac_cv_exeext" = no && ac_cv_exeext=
3910 else
3911 ac_file=''
3913 if test -z "$ac_file"; then :
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3916 $as_echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3921 as_fn_error 77 "C compiler cannot create executables
3922 See \`config.log' for more details" "$LINENO" 5; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3925 $as_echo "yes" >&6; }
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3928 $as_echo_n "checking for C compiler default output file name... " >&6; }
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3930 $as_echo "$ac_file" >&6; }
3931 ac_exeext=$ac_cv_exeext
3933 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3934 ac_clean_files=$ac_clean_files_save
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3936 $as_echo_n "checking for suffix of executables... " >&6; }
3937 if { { ac_try="$ac_link"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944 (eval "$ac_link") 2>&5
3945 ac_status=$?
3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }; then :
3948 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3949 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3950 # work properly (i.e., refer to `conftest.exe'), while it won't with
3951 # `rm'.
3952 for ac_file in conftest.exe conftest conftest.*; do
3953 test -f "$ac_file" || continue
3954 case $ac_file in
3955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3956 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3957 break;;
3958 * ) break;;
3959 esac
3960 done
3961 else
3962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3964 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3965 See \`config.log' for more details" "$LINENO" 5; }
3967 rm -f conftest conftest$ac_cv_exeext
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3969 $as_echo "$ac_cv_exeext" >&6; }
3971 rm -f conftest.$ac_ext
3972 EXEEXT=$ac_cv_exeext
3973 ac_exeext=$EXEEXT
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3976 #include <stdio.h>
3978 main ()
3980 FILE *f = fopen ("conftest.out", "w");
3981 return ferror (f) || fclose (f) != 0;
3984 return 0;
3986 _ACEOF
3987 ac_clean_files="$ac_clean_files conftest.out"
3988 # Check that the compiler produces executables we can run. If not, either
3989 # the compiler is broken, or we cross compile.
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3991 $as_echo_n "checking whether we are cross compiling... " >&6; }
3992 if test "$cross_compiling" != yes; then
3993 { { ac_try="$ac_link"
3994 case "(($ac_try" in
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3997 esac
3998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999 $as_echo "$ac_try_echo"; } >&5
4000 (eval "$ac_link") 2>&5
4001 ac_status=$?
4002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003 test $ac_status = 0; }
4004 if { ac_try='./conftest$ac_cv_exeext'
4005 { { case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008 esac
4009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4010 $as_echo "$ac_try_echo"; } >&5
4011 (eval "$ac_try") 2>&5
4012 ac_status=$?
4013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4014 test $ac_status = 0; }; }; then
4015 cross_compiling=no
4016 else
4017 if test "$cross_compiling" = maybe; then
4018 cross_compiling=yes
4019 else
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error $? "cannot run C compiled programs.
4023 If you meant to cross compile, use \`--host'.
4024 See \`config.log' for more details" "$LINENO" 5; }
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4029 $as_echo "$cross_compiling" >&6; }
4031 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4032 ac_clean_files=$ac_clean_files_save
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4034 $as_echo_n "checking for suffix of object files... " >&6; }
4035 if ${ac_cv_objext+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037 else
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4042 main ()
4046 return 0;
4048 _ACEOF
4049 rm -f conftest.o conftest.obj
4050 if { { ac_try="$ac_compile"
4051 case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054 esac
4055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056 $as_echo "$ac_try_echo"; } >&5
4057 (eval "$ac_compile") 2>&5
4058 ac_status=$?
4059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4060 test $ac_status = 0; }; then :
4061 for ac_file in conftest.o conftest.obj conftest.*; do
4062 test -f "$ac_file" || continue;
4063 case $ac_file in
4064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4065 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4066 break;;
4067 esac
4068 done
4069 else
4070 $as_echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4075 as_fn_error $? "cannot compute suffix of object files: cannot compile
4076 See \`config.log' for more details" "$LINENO" 5; }
4078 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4081 $as_echo "$ac_cv_objext" >&6; }
4082 OBJEXT=$ac_cv_objext
4083 ac_objext=$OBJEXT
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4085 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4086 if ${ac_cv_c_compiler_gnu+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4093 main ()
4095 #ifndef __GNUC__
4096 choke me
4097 #endif
4100 return 0;
4102 _ACEOF
4103 if ac_fn_c_try_compile "$LINENO"; then :
4104 ac_compiler_gnu=yes
4105 else
4106 ac_compiler_gnu=no
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4113 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4114 if test $ac_compiler_gnu = yes; then
4115 GCC=yes
4116 else
4117 GCC=
4119 ac_test_CFLAGS=${CFLAGS+set}
4120 ac_save_CFLAGS=$CFLAGS
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4122 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4123 if ${ac_cv_prog_cc_g+:} false; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 ac_save_c_werror_flag=$ac_c_werror_flag
4127 ac_c_werror_flag=yes
4128 ac_cv_prog_cc_g=no
4129 CFLAGS="-g"
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4134 main ()
4138 return 0;
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_g=yes
4143 else
4144 CFLAGS=""
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4149 main ()
4153 return 0;
4155 _ACEOF
4156 if ac_fn_c_try_compile "$LINENO"; then :
4158 else
4159 ac_c_werror_flag=$ac_save_c_werror_flag
4160 CFLAGS="-g"
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4165 main ()
4169 return 0;
4171 _ACEOF
4172 if ac_fn_c_try_compile "$LINENO"; then :
4173 ac_cv_prog_cc_g=yes
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 ac_c_werror_flag=$ac_save_c_werror_flag
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4183 $as_echo "$ac_cv_prog_cc_g" >&6; }
4184 if test "$ac_test_CFLAGS" = set; then
4185 CFLAGS=$ac_save_CFLAGS
4186 elif test $ac_cv_prog_cc_g = yes; then
4187 if test "$GCC" = yes; then
4188 CFLAGS="-g -O2"
4189 else
4190 CFLAGS="-g"
4192 else
4193 if test "$GCC" = yes; then
4194 CFLAGS="-O2"
4195 else
4196 CFLAGS=
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4200 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4201 if ${ac_cv_prog_cc_c89+:} false; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 ac_cv_prog_cc_c89=no
4205 ac_save_CC=$CC
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #include <stdarg.h>
4209 #include <stdio.h>
4210 struct stat;
4211 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4212 struct buf { int x; };
4213 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4214 static char *e (p, i)
4215 char **p;
4216 int i;
4218 return p[i];
4220 static char *f (char * (*g) (char **, int), char **p, ...)
4222 char *s;
4223 va_list v;
4224 va_start (v,p);
4225 s = g (p, va_arg (v,int));
4226 va_end (v);
4227 return s;
4230 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4231 function prototypes and stuff, but not '\xHH' hex character constants.
4232 These don't provoke an error unfortunately, instead are silently treated
4233 as 'x'. The following induces an error, until -std is added to get
4234 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4235 array size at least. It's necessary to write '\x00'==0 to get something
4236 that's true only with -std. */
4237 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4239 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4240 inside strings and character constants. */
4241 #define FOO(x) 'x'
4242 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4244 int test (int i, double x);
4245 struct s1 {int (*f) (int a);};
4246 struct s2 {int (*f) (double a);};
4247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4248 int argc;
4249 char **argv;
4251 main ()
4253 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4255 return 0;
4257 _ACEOF
4258 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4259 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4261 CC="$ac_save_CC $ac_arg"
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263 ac_cv_prog_cc_c89=$ac_arg
4265 rm -f core conftest.err conftest.$ac_objext
4266 test "x$ac_cv_prog_cc_c89" != "xno" && break
4267 done
4268 rm -f conftest.$ac_ext
4269 CC=$ac_save_CC
4272 # AC_CACHE_VAL
4273 case "x$ac_cv_prog_cc_c89" in
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4276 $as_echo "none needed" >&6; } ;;
4277 xno)
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4279 $as_echo "unsupported" >&6; } ;;
4281 CC="$CC $ac_cv_prog_cc_c89"
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4283 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4284 esac
4285 if test "x$ac_cv_prog_cc_c89" != xno; then :
4289 ac_ext=c
4290 ac_cpp='$CPP $CPPFLAGS'
4291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295 ac_ext=cpp
4296 ac_cpp='$CXXCPP $CPPFLAGS'
4297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4300 if test -z "$CXX"; then
4301 if test -n "$CCC"; then
4302 CXX=$CCC
4303 else
4304 if test -n "$ac_tool_prefix"; then
4305 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if ${ac_cv_prog_CXX+:} false; then :
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -n "$CXX"; then
4315 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4320 IFS=$as_save_IFS
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 break 2
4328 done
4329 done
4330 IFS=$as_save_IFS
4334 CXX=$ac_cv_prog_CXX
4335 if test -n "$CXX"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4337 $as_echo "$CXX" >&6; }
4338 else
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4344 test -n "$CXX" && break
4345 done
4347 if test -z "$CXX"; then
4348 ac_ct_CXX=$CXX
4349 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4351 # Extract the first word of "$ac_prog", so it can be a program name with args.
4352 set dummy $ac_prog; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 if test -n "$ac_ct_CXX"; then
4359 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4364 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4368 ac_cv_prog_ac_ct_CXX="$ac_prog"
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4372 done
4373 done
4374 IFS=$as_save_IFS
4378 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4379 if test -n "$ac_ct_CXX"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4381 $as_echo "$ac_ct_CXX" >&6; }
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4388 test -n "$ac_ct_CXX" && break
4389 done
4391 if test "x$ac_ct_CXX" = x; then
4392 CXX="g++"
4393 else
4394 case $cross_compiling:$ac_tool_warned in
4395 yes:)
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4398 ac_tool_warned=yes ;;
4399 esac
4400 CXX=$ac_ct_CXX
4406 # Provide some information about the compiler.
4407 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4408 set X $ac_compile
4409 ac_compiler=$2
4410 for ac_option in --version -v -V -qversion; do
4411 { { ac_try="$ac_compiler $ac_option >&5"
4412 case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415 esac
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4419 ac_status=$?
4420 if test -s conftest.err; then
4421 sed '10a\
4422 ... rest of stderr output deleted ...
4423 10q' conftest.err >conftest.er1
4424 cat conftest.er1 >&5
4426 rm -f conftest.er1 conftest.err
4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; }
4429 done
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4432 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4433 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4440 main ()
4442 #ifndef __GNUC__
4443 choke me
4444 #endif
4447 return 0;
4449 _ACEOF
4450 if ac_fn_cxx_try_compile "$LINENO"; then :
4451 ac_compiler_gnu=yes
4452 else
4453 ac_compiler_gnu=no
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4460 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4461 if test $ac_compiler_gnu = yes; then
4462 GXX=yes
4463 else
4464 GXX=
4466 ac_test_CXXFLAGS=${CXXFLAGS+set}
4467 ac_save_CXXFLAGS=$CXXFLAGS
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4469 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4470 if ${ac_cv_prog_cxx_g+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4474 ac_cxx_werror_flag=yes
4475 ac_cv_prog_cxx_g=no
4476 CXXFLAGS="-g"
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4481 main ()
4485 return 0;
4487 _ACEOF
4488 if ac_fn_cxx_try_compile "$LINENO"; then :
4489 ac_cv_prog_cxx_g=yes
4490 else
4491 CXXFLAGS=""
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4496 main ()
4500 return 0;
4502 _ACEOF
4503 if ac_fn_cxx_try_compile "$LINENO"; then :
4505 else
4506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4507 CXXFLAGS="-g"
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4512 main ()
4516 return 0;
4518 _ACEOF
4519 if ac_fn_cxx_try_compile "$LINENO"; then :
4520 ac_cv_prog_cxx_g=yes
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4530 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4531 if test "$ac_test_CXXFLAGS" = set; then
4532 CXXFLAGS=$ac_save_CXXFLAGS
4533 elif test $ac_cv_prog_cxx_g = yes; then
4534 if test "$GXX" = yes; then
4535 CXXFLAGS="-g -O2"
4536 else
4537 CXXFLAGS="-g"
4539 else
4540 if test "$GXX" = yes; then
4541 CXXFLAGS="-O2"
4542 else
4543 CXXFLAGS=
4546 ac_ext=c
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
4554 set dummy ${ac_tool_prefix}cpp; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if ${ac_cv_prog_CPPBIN+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$CPPBIN"; then
4561 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4574 done
4575 done
4576 IFS=$as_save_IFS
4580 CPPBIN=$ac_cv_prog_CPPBIN
4581 if test -n "$CPPBIN"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
4583 $as_echo "$CPPBIN" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4591 if test -z "$ac_cv_prog_CPPBIN"; then
4592 ac_ct_CPPBIN=$CPPBIN
4593 # Extract the first word of "cpp", so it can be a program name with args.
4594 set dummy cpp; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$ac_ct_CPPBIN"; then
4601 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_ac_ct_CPPBIN="cpp"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4614 done
4615 done
4616 IFS=$as_save_IFS
4620 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4621 if test -n "$ac_ct_CPPBIN"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4623 $as_echo "$ac_ct_CPPBIN" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4629 if test "x$ac_ct_CPPBIN" = x; then
4630 CPPBIN="cpp"
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633 yes:)
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 ac_tool_warned=yes ;;
4637 esac
4638 CPPBIN=$ac_ct_CPPBIN
4640 else
4641 CPPBIN="$ac_cv_prog_CPPBIN"
4645 cat >>confdefs.h <<_ACEOF
4646 #define EXEEXT "$ac_exeext"
4647 _ACEOF
4650 case $host in
4651 *-darwin*)
4652 if test "x$enable_win64" = "xyes"
4653 then
4654 CC="$CC -m64"
4655 CXX="$CXX -m64"
4656 host_cpu="x86_64"
4657 notice_platform="64-bit "
4658 TARGETFLAGS="-m64"
4660 else
4661 CC="$CC -m32"
4662 CXX="$CXX -m32"
4663 host_cpu="i386"
4664 notice_platform="32-bit "
4665 TARGETFLAGS="-m32"
4667 enable_win16=${enable_win16:-yes}
4669 with_fontconfig=${with_fontconfig:-no}
4671 x86_64*)
4672 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4673 then
4674 CC="$CC -m32"
4675 CXX="$CXX -m32"
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4677 $as_echo_n "checking whether $CC works... " >&6; }
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4683 main ()
4687 return 0;
4689 _ACEOF
4690 if ac_fn_c_try_link "$LINENO"; then :
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4692 $as_echo "yes" >&6; }
4693 else
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4696 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4698 rm -f core conftest.err conftest.$ac_objext \
4699 conftest$ac_exeext conftest.$ac_ext
4700 host_cpu="i386"
4701 notice_platform="32-bit "
4702 TARGETFLAGS="-m32"
4704 enable_win16=${enable_win16:-yes}
4705 else
4706 if test "x${GCC}" = "xyes"
4707 then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4709 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 #include <stdarg.h>
4714 main ()
4716 void func(__builtin_ms_va_list *args);
4718 return 0;
4720 _ACEOF
4721 if ac_fn_c_try_compile "$LINENO"; then :
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4723 $as_echo "yes" >&6; }
4724 else
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4727 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 TARGETFLAGS="-m64"
4735 arm*)
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports Thumb" >&5
4737 $as_echo_n "checking whether $CC supports Thumb... " >&6; }
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740 int ac_test(int i) { return i; }
4742 main ()
4744 asm(".thumb\nblx ac_test\n.arm"); if (ac_test(1)) return 1
4746 return 0;
4748 _ACEOF
4749 if ac_fn_c_try_link "$LINENO"; then :
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4751 $as_echo "yes" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4755 as_fn_error $? "You need a target with Thumb support to build Wine for ARM." "$LINENO" 5
4757 rm -f core conftest.err conftest.$ac_objext \
4758 conftest$ac_exeext conftest.$ac_ext
4759 CFLAGS="$CFLAGS -marm"
4761 *-mingw32*|*-cygwin*)
4762 enable_win16=${enable_win16:-no}
4763 CFLAGS="$CFLAGS -D_WIN32"
4765 i[3456789]86*)
4766 enable_win16=${enable_win16:-yes}
4768 esac
4770 enable_win16=${enable_win16:-no}
4771 enable_win64=${enable_win64:-no}
4773 enable_winetest=${enable_winetest:-$enable_tests}
4775 if test -n "$with_wine64"
4776 then
4777 if test "x$enable_win64" = "xyes"
4778 then
4779 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4780 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4782 enable_fonts=${enable_fonts:-no}
4783 enable_server=${enable_server:-no}
4784 elif test "x$enable_win64" = "xyes"
4785 then
4786 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4790 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4791 if ${wine_cv_toolsdir+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 wine_cv_toolsdir="$with_wine_tools"
4795 if test -z "$with_wine_tools"; then
4796 if test "$cross_compiling" = "yes"; then
4797 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4798 elif test -n "$with_wine64"; then
4799 wine_cv_toolsdir="$with_wine64"
4802 if test -z "$wine_cv_toolsdir"; then
4803 wine_cv_toolsdir="\$(top_builddir)"
4804 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4805 case "$wine_cv_toolsdir" in
4806 /*) ;;
4807 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4808 esac
4809 enable_tools=${enable_tools:-no}
4810 else
4811 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4815 $as_echo "$wine_cv_toolsdir" >&6; }
4816 TOOLSDIR=$wine_cv_toolsdir
4818 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4819 then
4820 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4824 for ac_prog in flex
4826 # Extract the first word of "$ac_prog", so it can be a program name with args.
4827 set dummy $ac_prog; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_prog_FLEX+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -n "$FLEX"; then
4834 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843 ac_cv_prog_FLEX="$ac_prog"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4847 done
4848 done
4849 IFS=$as_save_IFS
4853 FLEX=$ac_cv_prog_FLEX
4854 if test -n "$FLEX"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4856 $as_echo "$FLEX" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4863 test -n "$FLEX" && break
4864 done
4865 test -n "$FLEX" || FLEX="none"
4867 if test "$FLEX" = "none"
4868 then
4869 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4872 $as_echo_n "checking whether flex is recent enough... " >&6; }
4873 cat >conftest.l <<EOF
4874 %top{
4875 #include "prediluvian.h"
4879 if $FLEX -t conftest.l >/dev/null 2>&5
4880 then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4882 $as_echo "yes" >&6; }
4883 else
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4886 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4889 for ac_prog in bison
4891 # Extract the first word of "$ac_prog", so it can be a program name with args.
4892 set dummy $ac_prog; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_prog_BISON+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 if test -n "$BISON"; then
4899 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_prog_BISON="$ac_prog"
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4912 done
4913 done
4914 IFS=$as_save_IFS
4918 BISON=$ac_cv_prog_BISON
4919 if test -n "$BISON"; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4921 $as_echo "$BISON" >&6; }
4922 else
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4928 test -n "$BISON" && break
4929 done
4930 test -n "$BISON" || BISON="none"
4932 if test "$BISON" = "none"
4933 then
4934 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4937 if test -n "$ac_tool_prefix"; then
4938 for ac_prog in ar gar
4940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if ${ac_cv_prog_AR+:} false; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 if test -n "$AR"; then
4948 ac_cv_prog_AR="$AR" # Let the user override the test.
4949 else
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4961 done
4962 done
4963 IFS=$as_save_IFS
4967 AR=$ac_cv_prog_AR
4968 if test -n "$AR"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4970 $as_echo "$AR" >&6; }
4971 else
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4977 test -n "$AR" && break
4978 done
4980 if test -z "$AR"; then
4981 ac_ct_AR=$AR
4982 for ac_prog in ar gar
4984 # Extract the first word of "$ac_prog", so it can be a program name with args.
4985 set dummy $ac_prog; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test -n "$ac_ct_AR"; then
4992 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001 ac_cv_prog_ac_ct_AR="$ac_prog"
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5005 done
5006 done
5007 IFS=$as_save_IFS
5011 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5012 if test -n "$ac_ct_AR"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5014 $as_echo "$ac_ct_AR" >&6; }
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5021 test -n "$ac_ct_AR" && break
5022 done
5024 if test "x$ac_ct_AR" = x; then
5025 AR="ar"
5026 else
5027 case $cross_compiling:$ac_tool_warned in
5028 yes:)
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5031 ac_tool_warned=yes ;;
5032 esac
5033 AR=$ac_ct_AR
5037 if test -n "$ac_tool_prefix"; then
5038 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5039 set dummy ${ac_tool_prefix}strip; ac_word=$2
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if ${ac_cv_prog_STRIP+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if test -n "$STRIP"; then
5046 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5055 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5059 done
5060 done
5061 IFS=$as_save_IFS
5065 STRIP=$ac_cv_prog_STRIP
5066 if test -n "$STRIP"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5068 $as_echo "$STRIP" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5076 if test -z "$ac_cv_prog_STRIP"; then
5077 ac_ct_STRIP=$STRIP
5078 # Extract the first word of "strip", so it can be a program name with args.
5079 set dummy strip; ac_word=$2
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081 $as_echo_n "checking for $ac_word... " >&6; }
5082 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if test -n "$ac_ct_STRIP"; then
5086 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5095 ac_cv_prog_ac_ct_STRIP="strip"
5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097 break 2
5099 done
5100 done
5101 IFS=$as_save_IFS
5105 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5106 if test -n "$ac_ct_STRIP"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5108 $as_echo "$ac_ct_STRIP" >&6; }
5109 else
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5114 if test "x$ac_ct_STRIP" = x; then
5115 STRIP="strip"
5116 else
5117 case $cross_compiling:$ac_tool_warned in
5118 yes:)
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5121 ac_tool_warned=yes ;;
5122 esac
5123 STRIP=$ac_ct_STRIP
5125 else
5126 STRIP="$ac_cv_prog_STRIP"
5129 ARFLAGS=rc
5131 if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5133 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if ${ac_cv_prog_RANLIB+:} false; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$RANLIB"; then
5140 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5153 done
5154 done
5155 IFS=$as_save_IFS
5159 RANLIB=$ac_cv_prog_RANLIB
5160 if test -n "$RANLIB"; then
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5162 $as_echo "$RANLIB" >&6; }
5163 else
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5165 $as_echo "no" >&6; }
5170 if test -z "$ac_cv_prog_RANLIB"; then
5171 ac_ct_RANLIB=$RANLIB
5172 # Extract the first word of "ranlib", so it can be a program name with args.
5173 set dummy ranlib; ac_word=$2
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175 $as_echo_n "checking for $ac_word... " >&6; }
5176 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 if test -n "$ac_ct_RANLIB"; then
5180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5181 else
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_prog_ac_ct_RANLIB="ranlib"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5193 done
5194 done
5195 IFS=$as_save_IFS
5199 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5200 if test -n "$ac_ct_RANLIB"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5202 $as_echo "$ac_ct_RANLIB" >&6; }
5203 else
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5208 if test "x$ac_ct_RANLIB" = x; then
5209 RANLIB=":"
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212 yes:)
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215 ac_tool_warned=yes ;;
5216 esac
5217 RANLIB=$ac_ct_RANLIB
5219 else
5220 RANLIB="$ac_cv_prog_RANLIB"
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5224 $as_echo_n "checking whether ln -s works... " >&6; }
5225 LN_S=$as_ln_s
5226 if test "$LN_S" = "ln -s"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5228 $as_echo "yes" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5231 $as_echo "no, using $LN_S" >&6; }
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5235 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5236 if ${ac_cv_path_GREP+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 if test -z "$GREP"; then
5240 ac_path_GREP_found=false
5241 # Loop through the user's path and test for each of PROGNAME-LIST
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_prog in grep ggrep; do
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5250 as_fn_executable_p "$ac_path_GREP" || continue
5251 # Check for GNU ac_path_GREP and select it if it is found.
5252 # Check for GNU $ac_path_GREP
5253 case `"$ac_path_GREP" --version 2>&1` in
5254 *GNU*)
5255 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5257 ac_count=0
5258 $as_echo_n 0123456789 >"conftest.in"
5259 while :
5261 cat "conftest.in" "conftest.in" >"conftest.tmp"
5262 mv "conftest.tmp" "conftest.in"
5263 cp "conftest.in" "conftest.nl"
5264 $as_echo 'GREP' >> "conftest.nl"
5265 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5267 as_fn_arith $ac_count + 1 && ac_count=$as_val
5268 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5269 # Best one so far, save it but keep looking for a better one
5270 ac_cv_path_GREP="$ac_path_GREP"
5271 ac_path_GREP_max=$ac_count
5273 # 10*(2^10) chars as input seems more than enough
5274 test $ac_count -gt 10 && break
5275 done
5276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277 esac
5279 $ac_path_GREP_found && break 3
5280 done
5281 done
5282 done
5283 IFS=$as_save_IFS
5284 if test -z "$ac_cv_path_GREP"; then
5285 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5287 else
5288 ac_cv_path_GREP=$GREP
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5293 $as_echo "$ac_cv_path_GREP" >&6; }
5294 GREP="$ac_cv_path_GREP"
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5298 $as_echo_n "checking for egrep... " >&6; }
5299 if ${ac_cv_path_EGREP+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5303 then ac_cv_path_EGREP="$GREP -E"
5304 else
5305 if test -z "$EGREP"; then
5306 ac_path_EGREP_found=false
5307 # Loop through the user's path and test for each of PROGNAME-LIST
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5311 IFS=$as_save_IFS
5312 test -z "$as_dir" && as_dir=.
5313 for ac_prog in egrep; do
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5316 as_fn_executable_p "$ac_path_EGREP" || continue
5317 # Check for GNU ac_path_EGREP and select it if it is found.
5318 # Check for GNU $ac_path_EGREP
5319 case `"$ac_path_EGREP" --version 2>&1` in
5320 *GNU*)
5321 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5323 ac_count=0
5324 $as_echo_n 0123456789 >"conftest.in"
5325 while :
5327 cat "conftest.in" "conftest.in" >"conftest.tmp"
5328 mv "conftest.tmp" "conftest.in"
5329 cp "conftest.in" "conftest.nl"
5330 $as_echo 'EGREP' >> "conftest.nl"
5331 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5333 as_fn_arith $ac_count + 1 && ac_count=$as_val
5334 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5335 # Best one so far, save it but keep looking for a better one
5336 ac_cv_path_EGREP="$ac_path_EGREP"
5337 ac_path_EGREP_max=$ac_count
5339 # 10*(2^10) chars as input seems more than enough
5340 test $ac_count -gt 10 && break
5341 done
5342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5343 esac
5345 $ac_path_EGREP_found && break 3
5346 done
5347 done
5348 done
5349 IFS=$as_save_IFS
5350 if test -z "$ac_cv_path_EGREP"; then
5351 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5353 else
5354 ac_cv_path_EGREP=$EGREP
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5360 $as_echo "$ac_cv_path_EGREP" >&6; }
5361 EGREP="$ac_cv_path_EGREP"
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5365 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5366 if test -z "$MKDIR_P"; then
5367 if ${ac_cv_path_mkdir+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_prog in mkdir gmkdir; do
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5378 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5379 'mkdir (GNU coreutils) '* | \
5380 'mkdir (coreutils) '* | \
5381 'mkdir (fileutils) '4.1*)
5382 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5383 break 3;;
5384 esac
5385 done
5386 done
5387 done
5388 IFS=$as_save_IFS
5392 test -d ./--version && rmdir ./--version
5393 if test "${ac_cv_path_mkdir+set}" = set; then
5394 MKDIR_P="$ac_cv_path_mkdir -p"
5395 else
5396 # As a last resort, use the slow shell script. Don't cache a
5397 # value for MKDIR_P within a source directory, because that will
5398 # break other packages using the cache if that directory is
5399 # removed, or if the value is a relative name.
5400 MKDIR_P="$ac_install_sh -d"
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5404 $as_echo "$MKDIR_P" >&6; }
5406 # Extract the first word of "ldconfig", so it can be a program name with args.
5407 set dummy ldconfig; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if ${ac_cv_path_LDCONFIG+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 case $LDCONFIG in
5414 [\\/]* | ?:[\\/]*)
5415 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in /sbin /usr/sbin $PATH
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5429 done
5430 done
5431 IFS=$as_save_IFS
5433 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5435 esac
5437 LDCONFIG=$ac_cv_path_LDCONFIG
5438 if test -n "$LDCONFIG"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
5440 $as_echo "$LDCONFIG" >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5448 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM="STRIPPROG=\"\$(STRIP)\" \$(top_srcdir)/tools/install-sh"
5449 # Find a good install program. We prefer a C program (faster),
5450 # so one script is as good as another. But avoid the broken or
5451 # incompatible versions:
5452 # SysV /etc/install, /usr/sbin/install
5453 # SunOS /usr/etc/install
5454 # IRIX /sbin/install
5455 # AIX /bin/install
5456 # AmigaOS /C/install, which installs bootblocks on floppy discs
5457 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5458 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5459 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5460 # OS/2's system install, which has a completely different semantic
5461 # ./install, which can be erroneously created by make from ./install.sh.
5462 # Reject install programs that cannot install multiple files.
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5464 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5465 if test -z "$INSTALL"; then
5466 if ${ac_cv_path_install+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 # Account for people who put trailing slashes in PATH elements.
5475 case $as_dir/ in #((
5476 ./ | .// | /[cC]/* | \
5477 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5478 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5479 /usr/ucb/* ) ;;
5481 # OSF1 and SCO ODT 3.0 have their own names for install.
5482 # Don't use installbsd from OSF since it installs stuff as root
5483 # by default.
5484 for ac_prog in ginstall scoinst install; do
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5487 if test $ac_prog = install &&
5488 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5489 # AIX install. It has an incompatible calling convention.
5491 elif test $ac_prog = install &&
5492 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5493 # program-specific install script used by HP pwplus--don't use.
5495 else
5496 rm -rf conftest.one conftest.two conftest.dir
5497 echo one > conftest.one
5498 echo two > conftest.two
5499 mkdir conftest.dir
5500 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5501 test -s conftest.one && test -s conftest.two &&
5502 test -s conftest.dir/conftest.one &&
5503 test -s conftest.dir/conftest.two
5504 then
5505 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5506 break 3
5510 done
5511 done
5513 esac
5515 done
5516 IFS=$as_save_IFS
5518 rm -rf conftest.one conftest.two conftest.dir
5521 if test "${ac_cv_path_install+set}" = set; then
5522 INSTALL=$ac_cv_path_install
5523 else
5524 # As a last resort, use the slow shell script. Don't cache a
5525 # value for INSTALL within a source directory, because that will
5526 # break other packages using the cache if that directory is
5527 # removed, or if the value is a relative name.
5528 INSTALL=$ac_install_sh
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5532 $as_echo "$INSTALL" >&6; }
5534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5535 # It thinks the first close brace ends the variable substitution.
5536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5543 for ac_prog in fontforge
5545 # Extract the first word of "$ac_prog", so it can be a program name with args.
5546 set dummy $ac_prog; ac_word=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if ${ac_cv_prog_FONTFORGE+:} false; then :
5550 $as_echo_n "(cached) " >&6
5551 else
5552 if test -n "$FONTFORGE"; then
5553 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5558 IFS=$as_save_IFS
5559 test -z "$as_dir" && as_dir=.
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5562 ac_cv_prog_FONTFORGE="$ac_prog"
5563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 break 2
5566 done
5567 done
5568 IFS=$as_save_IFS
5572 FONTFORGE=$ac_cv_prog_FONTFORGE
5573 if test -n "$FONTFORGE"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
5575 $as_echo "$FONTFORGE" >&6; }
5576 else
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5582 test -n "$FONTFORGE" && break
5583 done
5584 test -n "$FONTFORGE" || FONTFORGE="false"
5586 for ac_prog in rsvg
5588 # Extract the first word of "$ac_prog", so it can be a program name with args.
5589 set dummy $ac_prog; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_prog_RSVG+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 if test -n "$RSVG"; then
5596 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605 ac_cv_prog_RSVG="$ac_prog"
5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5609 done
5610 done
5611 IFS=$as_save_IFS
5615 RSVG=$ac_cv_prog_RSVG
5616 if test -n "$RSVG"; then
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5618 $as_echo "$RSVG" >&6; }
5619 else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5625 test -n "$RSVG" && break
5626 done
5627 test -n "$RSVG" || RSVG="false"
5629 for ac_prog in convert
5631 # Extract the first word of "$ac_prog", so it can be a program name with args.
5632 set dummy $ac_prog; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if ${ac_cv_prog_CONVERT+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -n "$CONVERT"; then
5639 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648 ac_cv_prog_CONVERT="$ac_prog"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5652 done
5653 done
5654 IFS=$as_save_IFS
5658 CONVERT=$ac_cv_prog_CONVERT
5659 if test -n "$CONVERT"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5661 $as_echo "$CONVERT" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5668 test -n "$CONVERT" && break
5669 done
5670 test -n "$CONVERT" || CONVERT="false"
5672 for ac_prog in icotool
5674 # Extract the first word of "$ac_prog", so it can be a program name with args.
5675 set dummy $ac_prog; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_ICOTOOL+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 if test -n "$ICOTOOL"; then
5682 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_ICOTOOL="$ac_prog"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5695 done
5696 done
5697 IFS=$as_save_IFS
5701 ICOTOOL=$ac_cv_prog_ICOTOOL
5702 if test -n "$ICOTOOL"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5704 $as_echo "$ICOTOOL" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5711 test -n "$ICOTOOL" && break
5712 done
5713 test -n "$ICOTOOL" || ICOTOOL="false"
5715 for ac_prog in msgfmt
5717 # Extract the first word of "$ac_prog", so it can be a program name with args.
5718 set dummy $ac_prog; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if ${ac_cv_prog_MSGFMT+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 if test -n "$MSGFMT"; then
5725 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_MSGFMT="$ac_prog"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5738 done
5739 done
5740 IFS=$as_save_IFS
5744 MSGFMT=$ac_cv_prog_MSGFMT
5745 if test -n "$MSGFMT"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5747 $as_echo "$MSGFMT" >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5754 test -n "$MSGFMT" && break
5755 done
5756 test -n "$MSGFMT" || MSGFMT="false"
5758 if test -n "$ac_tool_prefix"; then
5759 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5760 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 if test -n "$PKG_CONFIG"; then
5767 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5772 IFS=$as_save_IFS
5773 test -z "$as_dir" && as_dir=.
5774 for ac_exec_ext in '' $ac_executable_extensions; do
5775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5776 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
5777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778 break 2
5780 done
5781 done
5782 IFS=$as_save_IFS
5786 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5787 if test -n "$PKG_CONFIG"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5789 $as_echo "$PKG_CONFIG" >&6; }
5790 else
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5797 if test -n "$ac_cv_prog_PKG_CONFIG"; then
5798 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
5799 elif test "$cross_compiling" != yes; then
5800 unset ac_cv_prog_PKG_CONFIG
5801 # Extract the first word of "pkg-config", so it can be a program name with args.
5802 set dummy pkg-config; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 if test -n "$PKG_CONFIG"; then
5809 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818 ac_cv_prog_PKG_CONFIG="pkg-config"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 break 2
5822 done
5823 done
5824 IFS=$as_save_IFS
5828 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5829 if test -n "$PKG_CONFIG"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5831 $as_echo "$PKG_CONFIG" >&6; }
5832 else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5840 if test "x$enable_maintainer_mode" != "xyes"
5841 then
5842 MAINTAINER_MODE=\#
5844 else
5845 test "$srcdir" = . || as_fn_error $? "Maintainer mode cannot work out of tree." "$LINENO" 5
5846 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5847 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5849 if test "$CONVERT" = false
5850 then
5851 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5852 else
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5854 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5855 convert_version=`convert --version | head -n1`
5856 if test "x$convert_version" != "x"
5857 then
5858 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5859 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5860 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5861 then
5862 CONVERT=false
5865 if test "$CONVERT" = false
5866 then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5868 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5869 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5870 else
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5872 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5876 if test "$ICOTOOL" = false
5877 then
5878 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5881 $as_echo_n "checking for recent enough icotool... " >&6; }
5882 icotool_version=`icotool --version | head -n1`
5883 if test "x$icotool_version" != "x"
5884 then
5885 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5886 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5887 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5888 then
5889 ICOTOOL=false
5890 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5893 if test "$ICOTOOL" = false
5894 then
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5896 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5897 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5898 else
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5900 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5904 with_gettext=yes
5905 with_gettextpo=yes
5906 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5909 test "x$with_gettext" != xno || MSGFMT=false
5910 if test "$MSGFMT" != "false"
5911 then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether msgfmt supports contexts" >&5
5913 $as_echo_n "checking whether msgfmt supports contexts... " >&6; }
5914 cat >conftest.po <<EOF
5915 # comment
5916 msgctxt "ctxt"
5917 msgid "id"
5918 msgstr "str"
5920 if $MSGFMT -o /dev/null conftest.po 2>&5
5921 then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5923 $as_echo "yes" >&6; }
5924 else
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5927 MSGFMT=false
5930 if test "$MSGFMT" = false; then :
5931 case "x$with_gettext" in
5932 x) as_fn_append wine_warnings "|gettext tools not found (or too old), translations won't be built." ;;
5933 xno) ;;
5934 *) as_fn_error $? "gettext tools not found (or too old), translations won't be built.
5935 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5936 esac
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5941 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5942 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5943 $as_echo_n "(cached) " >&6
5944 else
5945 ac_check_lib_save_LIBS=$LIBS
5946 LIBS="-li386 $LIBS"
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5950 /* Override any GCC internal prototype to avoid an error.
5951 Use char because int might match the return type of a GCC
5952 builtin and then its argument prototype would still apply. */
5953 #ifdef __cplusplus
5954 extern "C"
5955 #endif
5956 char i386_set_ldt ();
5958 main ()
5960 return i386_set_ldt ();
5962 return 0;
5964 _ACEOF
5965 if ac_fn_c_try_link "$LINENO"; then :
5966 ac_cv_lib_i386_i386_set_ldt=yes
5967 else
5968 ac_cv_lib_i386_i386_set_ldt=no
5970 rm -f core conftest.err conftest.$ac_objext \
5971 conftest$ac_exeext conftest.$ac_ext
5972 LIBS=$ac_check_lib_save_LIBS
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5975 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5976 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5977 cat >>confdefs.h <<_ACEOF
5978 #define HAVE_LIBI386 1
5979 _ACEOF
5981 LIBS="-li386 $LIBS"
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5986 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5987 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 ac_check_lib_save_LIBS=$LIBS
5991 LIBS="-lossaudio $LIBS"
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5995 /* Override any GCC internal prototype to avoid an error.
5996 Use char because int might match the return type of a GCC
5997 builtin and then its argument prototype would still apply. */
5998 #ifdef __cplusplus
5999 extern "C"
6000 #endif
6001 char _oss_ioctl ();
6003 main ()
6005 return _oss_ioctl ();
6007 return 0;
6009 _ACEOF
6010 if ac_fn_c_try_link "$LINENO"; then :
6011 ac_cv_lib_ossaudio__oss_ioctl=yes
6012 else
6013 ac_cv_lib_ossaudio__oss_ioctl=no
6015 rm -f core conftest.err conftest.$ac_objext \
6016 conftest$ac_exeext conftest.$ac_ext
6017 LIBS=$ac_check_lib_save_LIBS
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6020 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6021 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
6022 cat >>confdefs.h <<_ACEOF
6023 #define HAVE_LIBOSSAUDIO 1
6024 _ACEOF
6026 LIBS="-lossaudio $LIBS"
6031 XLIB=""
6033 OPENGL_LIBS=""
6037 test "x$with_fontconfig" != "xno" || ac_cv_header_fontconfig_fontconfig_h=no
6039 # Check whether --enable-largefile was given.
6040 if test "${enable_largefile+set}" = set; then :
6041 enableval=$enable_largefile;
6044 if test "$enable_largefile" != no; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6047 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6048 if ${ac_cv_sys_largefile_CC+:} false; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 ac_cv_sys_largefile_CC=no
6052 if test "$GCC" != yes; then
6053 ac_save_CC=$CC
6054 while :; do
6055 # IRIX 6.2 and later do not support large files by default,
6056 # so use the C compiler's -n32 option if that helps.
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059 #include <sys/types.h>
6060 /* Check that off_t can represent 2**63 - 1 correctly.
6061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6062 since some C++ compilers masquerading as C compilers
6063 incorrectly reject 9223372036854775807. */
6064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6066 && LARGE_OFF_T % 2147483647 == 1)
6067 ? 1 : -1];
6069 main ()
6073 return 0;
6075 _ACEOF
6076 if ac_fn_c_try_compile "$LINENO"; then :
6077 break
6079 rm -f core conftest.err conftest.$ac_objext
6080 CC="$CC -n32"
6081 if ac_fn_c_try_compile "$LINENO"; then :
6082 ac_cv_sys_largefile_CC=' -n32'; break
6084 rm -f core conftest.err conftest.$ac_objext
6085 break
6086 done
6087 CC=$ac_save_CC
6088 rm -f conftest.$ac_ext
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6092 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6093 if test "$ac_cv_sys_largefile_CC" != no; then
6094 CC=$CC$ac_cv_sys_largefile_CC
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6098 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6099 if ${ac_cv_sys_file_offset_bits+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 while :; do
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 #include <sys/types.h>
6106 /* Check that off_t can represent 2**63 - 1 correctly.
6107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6108 since some C++ compilers masquerading as C compilers
6109 incorrectly reject 9223372036854775807. */
6110 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6112 && LARGE_OFF_T % 2147483647 == 1)
6113 ? 1 : -1];
6115 main ()
6119 return 0;
6121 _ACEOF
6122 if ac_fn_c_try_compile "$LINENO"; then :
6123 ac_cv_sys_file_offset_bits=no; break
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128 #define _FILE_OFFSET_BITS 64
6129 #include <sys/types.h>
6130 /* Check that off_t can represent 2**63 - 1 correctly.
6131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6132 since some C++ compilers masquerading as C compilers
6133 incorrectly reject 9223372036854775807. */
6134 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6136 && LARGE_OFF_T % 2147483647 == 1)
6137 ? 1 : -1];
6139 main ()
6143 return 0;
6145 _ACEOF
6146 if ac_fn_c_try_compile "$LINENO"; then :
6147 ac_cv_sys_file_offset_bits=64; break
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 ac_cv_sys_file_offset_bits=unknown
6151 break
6152 done
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6155 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6156 case $ac_cv_sys_file_offset_bits in #(
6157 no | unknown) ;;
6159 cat >>confdefs.h <<_ACEOF
6160 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6161 _ACEOF
6163 esac
6164 rm -rf conftest*
6165 if test $ac_cv_sys_file_offset_bits = unknown; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6167 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6168 if ${ac_cv_sys_large_files+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 while :; do
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6174 #include <sys/types.h>
6175 /* Check that off_t can represent 2**63 - 1 correctly.
6176 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6177 since some C++ compilers masquerading as C compilers
6178 incorrectly reject 9223372036854775807. */
6179 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6180 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6181 && LARGE_OFF_T % 2147483647 == 1)
6182 ? 1 : -1];
6184 main ()
6188 return 0;
6190 _ACEOF
6191 if ac_fn_c_try_compile "$LINENO"; then :
6192 ac_cv_sys_large_files=no; break
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 #define _LARGE_FILES 1
6198 #include <sys/types.h>
6199 /* Check that off_t can represent 2**63 - 1 correctly.
6200 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6201 since some C++ compilers masquerading as C compilers
6202 incorrectly reject 9223372036854775807. */
6203 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6204 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6205 && LARGE_OFF_T % 2147483647 == 1)
6206 ? 1 : -1];
6208 main ()
6212 return 0;
6214 _ACEOF
6215 if ac_fn_c_try_compile "$LINENO"; then :
6216 ac_cv_sys_large_files=1; break
6218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6219 ac_cv_sys_large_files=unknown
6220 break
6221 done
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6224 $as_echo "$ac_cv_sys_large_files" >&6; }
6225 case $ac_cv_sys_large_files in #(
6226 no | unknown) ;;
6228 cat >>confdefs.h <<_ACEOF
6229 #define _LARGE_FILES $ac_cv_sys_large_files
6230 _ACEOF
6232 esac
6233 rm -rf conftest*
6240 ac_ext=c
6241 ac_cpp='$CPP $CPPFLAGS'
6242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6246 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6247 # On Suns, sometimes $CPP names a directory.
6248 if test -n "$CPP" && test -d "$CPP"; then
6249 CPP=
6251 if test -z "$CPP"; then
6252 if ${ac_cv_prog_CPP+:} false; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 # Double quotes because CPP needs to be expanded
6256 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6258 ac_preproc_ok=false
6259 for ac_c_preproc_warn_flag in '' yes
6261 # Use a header file that comes with gcc, so configuring glibc
6262 # with a fresh cross-compiler works.
6263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264 # <limits.h> exists even on freestanding compilers.
6265 # On the NeXT, cc -E runs the code through the compiler's parser,
6266 # not just through cpp. "Syntax error" is here to catch this case.
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 #ifdef __STDC__
6270 # include <limits.h>
6271 #else
6272 # include <assert.h>
6273 #endif
6274 Syntax error
6275 _ACEOF
6276 if ac_fn_c_try_cpp "$LINENO"; then :
6278 else
6279 # Broken: fails on valid input.
6280 continue
6282 rm -f conftest.err conftest.i conftest.$ac_ext
6284 # OK, works on sane cases. Now check whether nonexistent headers
6285 # can be detected and how.
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 #include <ac_nonexistent.h>
6289 _ACEOF
6290 if ac_fn_c_try_cpp "$LINENO"; then :
6291 # Broken: success on invalid input.
6292 continue
6293 else
6294 # Passes both tests.
6295 ac_preproc_ok=:
6296 break
6298 rm -f conftest.err conftest.i conftest.$ac_ext
6300 done
6301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6302 rm -f conftest.i conftest.err conftest.$ac_ext
6303 if $ac_preproc_ok; then :
6304 break
6307 done
6308 ac_cv_prog_CPP=$CPP
6311 CPP=$ac_cv_prog_CPP
6312 else
6313 ac_cv_prog_CPP=$CPP
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6316 $as_echo "$CPP" >&6; }
6317 ac_preproc_ok=false
6318 for ac_c_preproc_warn_flag in '' yes
6320 # Use a header file that comes with gcc, so configuring glibc
6321 # with a fresh cross-compiler works.
6322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6323 # <limits.h> exists even on freestanding compilers.
6324 # On the NeXT, cc -E runs the code through the compiler's parser,
6325 # not just through cpp. "Syntax error" is here to catch this case.
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 #ifdef __STDC__
6329 # include <limits.h>
6330 #else
6331 # include <assert.h>
6332 #endif
6333 Syntax error
6334 _ACEOF
6335 if ac_fn_c_try_cpp "$LINENO"; then :
6337 else
6338 # Broken: fails on valid input.
6339 continue
6341 rm -f conftest.err conftest.i conftest.$ac_ext
6343 # OK, works on sane cases. Now check whether nonexistent headers
6344 # can be detected and how.
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347 #include <ac_nonexistent.h>
6348 _ACEOF
6349 if ac_fn_c_try_cpp "$LINENO"; then :
6350 # Broken: success on invalid input.
6351 continue
6352 else
6353 # Passes both tests.
6354 ac_preproc_ok=:
6355 break
6357 rm -f conftest.err conftest.i conftest.$ac_ext
6359 done
6360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6361 rm -f conftest.i conftest.err conftest.$ac_ext
6362 if $ac_preproc_ok; then :
6364 else
6365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6367 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6368 See \`config.log' for more details" "$LINENO" 5; }
6371 ac_ext=c
6372 ac_cpp='$CPP $CPPFLAGS'
6373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6379 $as_echo_n "checking for ANSI C header files... " >&6; }
6380 if ${ac_cv_header_stdc+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385 #include <stdlib.h>
6386 #include <stdarg.h>
6387 #include <string.h>
6388 #include <float.h>
6391 main ()
6395 return 0;
6397 _ACEOF
6398 if ac_fn_c_try_compile "$LINENO"; then :
6399 ac_cv_header_stdc=yes
6400 else
6401 ac_cv_header_stdc=no
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 if test $ac_cv_header_stdc = yes; then
6406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409 #include <string.h>
6411 _ACEOF
6412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6413 $EGREP "memchr" >/dev/null 2>&1; then :
6415 else
6416 ac_cv_header_stdc=no
6418 rm -f conftest*
6422 if test $ac_cv_header_stdc = yes; then
6423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6425 /* end confdefs.h. */
6426 #include <stdlib.h>
6428 _ACEOF
6429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6430 $EGREP "free" >/dev/null 2>&1; then :
6432 else
6433 ac_cv_header_stdc=no
6435 rm -f conftest*
6439 if test $ac_cv_header_stdc = yes; then
6440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6441 if test "$cross_compiling" = yes; then :
6443 else
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446 #include <ctype.h>
6447 #include <stdlib.h>
6448 #if ((' ' & 0x0FF) == 0x020)
6449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6451 #else
6452 # define ISLOWER(c) \
6453 (('a' <= (c) && (c) <= 'i') \
6454 || ('j' <= (c) && (c) <= 'r') \
6455 || ('s' <= (c) && (c) <= 'z'))
6456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6457 #endif
6459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6461 main ()
6463 int i;
6464 for (i = 0; i < 256; i++)
6465 if (XOR (islower (i), ISLOWER (i))
6466 || toupper (i) != TOUPPER (i))
6467 return 2;
6468 return 0;
6470 _ACEOF
6471 if ac_fn_c_try_run "$LINENO"; then :
6473 else
6474 ac_cv_header_stdc=no
6476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6477 conftest.$ac_objext conftest.beam conftest.$ac_ext
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6483 $as_echo "$ac_cv_header_stdc" >&6; }
6484 if test $ac_cv_header_stdc = yes; then
6486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6492 inttypes.h stdint.h unistd.h
6493 do :
6494 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6495 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6497 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6498 cat >>confdefs.h <<_ACEOF
6499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6500 _ACEOF
6504 done
6507 for ac_header in \
6508 AL/al.h \
6509 ApplicationServices/ApplicationServices.h \
6510 AudioToolbox/AudioConverter.h \
6511 AudioUnit/AudioUnit.h \
6512 AudioUnit/AudioComponent.h \
6513 CL/cl.h \
6514 Carbon/Carbon.h \
6515 CoreAudio/CoreAudio.h \
6516 CoreServices/CoreServices.h \
6517 DiskArbitration/DiskArbitration.h \
6518 IOKit/IOKitLib.h \
6519 IOKit/hid/IOHIDLib.h \
6520 OpenAL/al.h \
6521 OpenCL/opencl.h \
6522 QuickTime/ImageCompression.h \
6523 Security/Security.h \
6524 alias.h \
6525 alsa/asoundlib.h \
6526 arpa/inet.h \
6527 arpa/nameser.h \
6528 asm/types.h \
6529 asm/user.h \
6530 curses.h \
6531 direct.h \
6532 dirent.h \
6533 dlfcn.h \
6534 elf.h \
6535 float.h \
6536 fnmatch.h \
6537 fontconfig/fontconfig.h \
6538 getopt.h \
6539 gettext-po.h \
6540 grp.h \
6541 gsm.h \
6542 gsm/gsm.h \
6543 ieeefp.h \
6544 inet/mib2.h \
6545 io.h \
6546 kstat.h \
6547 lber.h \
6548 ldap.h \
6549 libproc.h \
6550 link.h \
6551 linux/cdrom.h \
6552 linux/compiler.h \
6553 linux/filter.h \
6554 linux/hdreg.h \
6555 linux/input.h \
6556 linux/ioctl.h \
6557 linux/joystick.h \
6558 linux/major.h \
6559 linux/param.h \
6560 linux/serial.h \
6561 linux/types.h \
6562 linux/ucdrom.h \
6563 lwp.h \
6564 mach-o/nlist.h \
6565 mach-o/loader.h \
6566 mach/mach.h \
6567 mach/machine.h \
6568 machine/cpu.h \
6569 machine/limits.h \
6570 machine/sysarch.h \
6571 mntent.h \
6572 ncurses.h \
6573 netdb.h \
6574 netinet/in.h \
6575 netinet/in_systm.h \
6576 netinet/tcp.h \
6577 netinet/tcp_fsm.h \
6578 poll.h \
6579 port.h \
6580 process.h \
6581 pthread.h \
6582 pwd.h \
6583 sched.h \
6584 scsi/scsi.h \
6585 scsi/scsi_ioctl.h \
6586 scsi/sg.h \
6587 stdbool.h \
6588 stdint.h \
6589 stropts.h \
6590 sys/asoundlib.h \
6591 sys/attr.h \
6592 sys/cdio.h \
6593 sys/elf32.h \
6594 sys/epoll.h \
6595 sys/event.h \
6596 sys/exec_elf.h \
6597 sys/filio.h \
6598 sys/inotify.h \
6599 sys/ioctl.h \
6600 sys/ipc.h \
6601 sys/limits.h \
6602 sys/link.h \
6603 sys/mman.h \
6604 sys/modem.h \
6605 sys/msg.h \
6606 sys/mtio.h \
6607 sys/param.h \
6608 sys/poll.h \
6609 sys/prctl.h \
6610 sys/protosw.h \
6611 sys/ptrace.h \
6612 sys/queue.h \
6613 sys/resource.h \
6614 sys/scsiio.h \
6615 sys/shm.h \
6616 sys/signal.h \
6617 sys/socket.h \
6618 sys/socketvar.h \
6619 sys/sockio.h \
6620 sys/statvfs.h \
6621 sys/strtio.h \
6622 sys/syscall.h \
6623 sys/tihdr.h \
6624 sys/time.h \
6625 sys/timeout.h \
6626 sys/times.h \
6627 sys/uio.h \
6628 sys/user.h \
6629 sys/utsname.h \
6630 sys/vm86.h \
6631 sys/wait.h \
6632 syscall.h \
6633 termios.h \
6634 unistd.h \
6635 utime.h \
6636 valgrind/memcheck.h \
6637 valgrind/valgrind.h \
6638 zlib.h
6640 do :
6641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6642 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6643 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6644 cat >>confdefs.h <<_ACEOF
6645 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6646 _ACEOF
6650 done
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6653 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6654 if ${ac_cv_header_stat_broken+:} false; then :
6655 $as_echo_n "(cached) " >&6
6656 else
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 #include <sys/types.h>
6660 #include <sys/stat.h>
6662 #if defined S_ISBLK && defined S_IFDIR
6663 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6664 #endif
6666 #if defined S_ISBLK && defined S_IFCHR
6667 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6668 #endif
6670 #if defined S_ISLNK && defined S_IFREG
6671 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6672 #endif
6674 #if defined S_ISSOCK && defined S_IFREG
6675 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6676 #endif
6678 _ACEOF
6679 if ac_fn_c_try_compile "$LINENO"; then :
6680 ac_cv_header_stat_broken=no
6681 else
6682 ac_cv_header_stat_broken=yes
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6687 $as_echo "$ac_cv_header_stat_broken" >&6; }
6688 if test $ac_cv_header_stat_broken = yes; then
6690 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6696 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
6697 do :
6698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6699 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6700 #ifdef HAVE_SYS_PARAM_H
6701 # include <sys/param.h>
6702 #endif
6704 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6705 cat >>confdefs.h <<_ACEOF
6706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6707 _ACEOF
6711 done
6714 for ac_header in \
6715 netinet/ip.h \
6716 net/if.h \
6717 net/if_arp.h \
6718 net/if_dl.h \
6719 net/if_types.h \
6720 net/route.h \
6721 netinet/if_ether.h \
6722 netinet/if_inarp.h \
6723 netinet/in_pcb.h \
6724 netinet/ip_icmp.h \
6725 netinet/ip_var.h \
6726 netinet/udp.h \
6727 netipx/ipx.h \
6728 sys/un.h \
6730 do :
6731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6732 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6733 #ifdef HAVE_SYS_SOCKET_H
6734 # include <sys/socket.h>
6735 #endif
6736 #ifdef HAVE_SYS_SOCKETVAR_H
6737 # include <sys/socketvar.h>
6738 #endif
6739 #ifdef HAVE_NET_ROUTE_H
6740 # include <net/route.h>
6741 #endif
6742 #ifdef HAVE_NETINET_IN_H
6743 # include <netinet/in.h>
6744 #endif
6745 #ifdef HAVE_NETINET_IN_SYSTM_H
6746 # include <netinet/in_systm.h>
6747 #endif
6748 #ifdef HAVE_NET_IF_H
6749 # include <net/if.h>
6750 #endif
6751 #ifdef HAVE_NETINET_IP_H
6752 # include <netinet/ip.h>
6753 #endif
6755 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6756 cat >>confdefs.h <<_ACEOF
6757 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6758 _ACEOF
6762 done
6765 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6766 do :
6767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6768 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6769 #ifdef HAVE_ALIAS_H
6770 # include <alias.h>
6771 #endif
6772 #ifdef HAVE_SYS_SOCKET_H
6773 # include <sys/socket.h>
6774 #endif
6775 #ifdef HAVE_SYS_SOCKETVAR_H
6776 # include <sys/socketvar.h>
6777 #endif
6778 #ifdef HAVE_SYS_TIMEOUT_H
6779 # include <sys/timeout.h>
6780 #endif
6781 #ifdef HAVE_NETINET_IN_H
6782 # include <netinet/in.h>
6783 #endif
6784 #ifdef HAVE_NETINET_IN_SYSTM_H
6785 # include <netinet/in_systm.h>
6786 #endif
6787 #ifdef HAVE_NETINET_IP_H
6788 # include <netinet/ip.h>
6789 #endif
6790 #ifdef HAVE_NETINET_IP_VAR_H
6791 # include <netinet/ip_var.h>
6792 #endif
6793 #ifdef HAVE_NETINET_IP_ICMP_H
6794 # include <netinet/ip_icmp.h>
6795 #endif
6796 #ifdef HAVE_NETINET_UDP_H
6797 # include <netinet/udp.h>
6798 #endif
6799 #ifdef HAVE_NETINET_TCP_H
6800 # include <netinet/tcp.h>
6801 #endif
6802 #ifdef HAVE_NETINET_TCP_TIMER_H
6803 #include <netinet/tcp_timer.h>
6804 #endif
6806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6807 cat >>confdefs.h <<_ACEOF
6808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6809 _ACEOF
6813 done
6816 for ac_header in linux/ipx.h linux/irda.h linux/rtnetlink.h
6817 do :
6818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6819 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6820 #ifdef HAVE_ASM_TYPES_H
6821 # include <asm/types.h>
6822 #endif
6823 #ifdef HAVE_SYS_SOCKET_H
6824 # include <sys/socket.h>
6825 #endif
6826 #ifdef HAVE_LINUX_TYPES_H
6827 # include <linux/types.h>
6828 #endif
6830 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6831 cat >>confdefs.h <<_ACEOF
6832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6833 _ACEOF
6837 done
6840 for ac_header in mach-o/dyld_images.h
6841 do :
6842 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6843 # include <stdbool.h>
6844 #endif
6845 #ifdef HAVE_STDINT_H
6846 # include <stdint.h>
6847 #endif
6849 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6850 cat >>confdefs.h <<_ACEOF
6851 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6852 _ACEOF
6856 done
6859 for ac_header in resolv.h
6860 do :
6861 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6862 #ifdef HAVE_SYS_SOCKET_H
6863 # include <sys/socket.h>
6864 #endif
6865 #ifdef HAVE_NETINET_IN_H
6866 # include <netinet/in.h>
6867 #endif
6868 #ifdef HAVE_ARPA_NAMESER_H
6869 # include <arpa/nameser.h>
6870 #endif
6872 if test "x$ac_cv_header_resolv_h" = xyes; then :
6873 cat >>confdefs.h <<_ACEOF
6874 #define HAVE_RESOLV_H 1
6875 _ACEOF
6879 done
6882 for ac_header in ifaddrs.h
6883 do :
6884 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6886 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6887 cat >>confdefs.h <<_ACEOF
6888 #define HAVE_IFADDRS_H 1
6889 _ACEOF
6893 done
6896 for ac_header in ucontext.h
6897 do :
6898 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6900 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6901 cat >>confdefs.h <<_ACEOF
6902 #define HAVE_UCONTEXT_H 1
6903 _ACEOF
6907 done
6910 for ac_header in sys/thr.h
6911 do :
6912 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6913 #ifdef HAVE_UCONTEXT_H
6914 #include <ucontext.h>
6915 #endif
6917 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6918 cat >>confdefs.h <<_ACEOF
6919 #define HAVE_SYS_THR_H 1
6920 _ACEOF
6924 done
6927 for ac_header in pthread_np.h
6928 do :
6929 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6930 #include <pthread.h>
6931 #endif
6933 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6934 cat >>confdefs.h <<_ACEOF
6935 #define HAVE_PTHREAD_NP_H 1
6936 _ACEOF
6940 done
6943 for ac_header in linux/videodev.h linux/videodev2.h libv4l1.h
6944 do :
6945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6946 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6947 #include <sys/time.h>
6948 #endif
6949 #include <sys/types.h>
6950 #ifdef HAVE_ASM_TYPES_H
6951 #include <asm/types.h>
6952 #endif
6954 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6955 cat >>confdefs.h <<_ACEOF
6956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6957 _ACEOF
6961 done
6964 for ac_header in libprocstat.h
6965 do :
6966 ac_fn_c_check_header_compile "$LINENO" "libprocstat.h" "ac_cv_header_libprocstat_h" "#ifdef HAVE_SYS_PARAM_H
6967 #include <sys/param.h>
6968 #endif
6969 #ifdef HAVE_SYS_QUEUE_H
6970 #include <sys/queue.h>
6971 #endif
6972 #ifdef HAVE_SYS_SOCKET_H
6973 #include <sys/socket.h>
6974 #endif
6976 if test "x$ac_cv_header_libprocstat_h" = xyes; then :
6977 cat >>confdefs.h <<_ACEOF
6978 #define HAVE_LIBPROCSTAT_H 1
6979 _ACEOF
6983 done
6987 dlldir="\${libdir}/wine"
6989 DLLPREFIX=""
6991 DLLFLAGS="-D_REENTRANT"
6993 IMPLIBEXT="def"
6995 LDRPATH_INSTALL=""
6997 LDRPATH_LOCAL=""
6999 LIBEXT="so"
7000 DLLEXT=".so"
7001 STATIC_IMPLIBEXT="def.a"
7002 # Extract the first word of "ldd", so it can be a program name with args.
7003 set dummy ldd; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if ${ac_cv_path_LDD+:} false; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 case $LDD in
7010 [\\/]* | ?:[\\/]*)
7011 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 as_dummy="/sbin:/usr/sbin:$PATH"
7016 for as_dir in $as_dummy
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7026 done
7027 done
7028 IFS=$as_save_IFS
7030 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
7032 esac
7034 LDD=$ac_cv_path_LDD
7035 if test -n "$LDD"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
7037 $as_echo "$LDD" >&6; }
7038 else
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7044 if test -n "$ac_tool_prefix"; then
7045 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
7046 set dummy ${ac_tool_prefix}readelf; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_READELF+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 if test -n "$READELF"; then
7053 ac_cv_prog_READELF="$READELF" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7066 done
7067 done
7068 IFS=$as_save_IFS
7072 READELF=$ac_cv_prog_READELF
7073 if test -n "$READELF"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
7075 $as_echo "$READELF" >&6; }
7076 else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7083 if test -z "$ac_cv_prog_READELF"; then
7084 ac_ct_READELF=$READELF
7085 # Extract the first word of "readelf", so it can be a program name with args.
7086 set dummy readelf; ac_word=$2
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7088 $as_echo_n "checking for $ac_word... " >&6; }
7089 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
7090 $as_echo_n "(cached) " >&6
7091 else
7092 if test -n "$ac_ct_READELF"; then
7093 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7102 ac_cv_prog_ac_ct_READELF="readelf"
7103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7106 done
7107 done
7108 IFS=$as_save_IFS
7112 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
7113 if test -n "$ac_ct_READELF"; then
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
7115 $as_echo "$ac_ct_READELF" >&6; }
7116 else
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7118 $as_echo "no" >&6; }
7121 if test "x$ac_ct_READELF" = x; then
7122 READELF="true"
7123 else
7124 case $cross_compiling:$ac_tool_warned in
7125 yes:)
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7128 ac_tool_warned=yes ;;
7129 esac
7130 READELF=$ac_ct_READELF
7132 else
7133 READELF="$ac_cv_prog_READELF"
7137 wine_binary="wine"
7138 test "x$enable_win64" != "xyes" || wine_binary="wine64"
7140 LOADER_RULES="
7141 all: $wine_binary wine-installed
7143 install install-lib:: wine-installed \$(DESTDIR)\$(bindir)
7144 \$(INSTALL_PROGRAM) wine-installed \$(DESTDIR)\$(bindir)/$wine_binary
7146 uninstall::
7147 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary
7151 case $host_os in
7152 cygwin*|mingw32*)
7153 if test -n "$ac_tool_prefix"; then
7154 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7155 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 $as_echo_n "checking for $ac_word... " >&6; }
7158 if ${ac_cv_prog_DLLTOOL+:} false; then :
7159 $as_echo_n "(cached) " >&6
7160 else
7161 if test -n "$DLLTOOL"; then
7162 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7163 else
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165 for as_dir in $PATH
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7171 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 break 2
7175 done
7176 done
7177 IFS=$as_save_IFS
7181 DLLTOOL=$ac_cv_prog_DLLTOOL
7182 if test -n "$DLLTOOL"; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7184 $as_echo "$DLLTOOL" >&6; }
7185 else
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7192 if test -z "$ac_cv_prog_DLLTOOL"; then
7193 ac_ct_DLLTOOL=$DLLTOOL
7194 # Extract the first word of "dlltool", so it can be a program name with args.
7195 set dummy dlltool; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7199 $as_echo_n "(cached) " >&6
7200 else
7201 if test -n "$ac_ct_DLLTOOL"; then
7202 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7203 else
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7215 done
7216 done
7217 IFS=$as_save_IFS
7221 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7222 if test -n "$ac_ct_DLLTOOL"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7224 $as_echo "$ac_ct_DLLTOOL" >&6; }
7225 else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7230 if test "x$ac_ct_DLLTOOL" = x; then
7231 DLLTOOL="false"
7232 else
7233 case $cross_compiling:$ac_tool_warned in
7234 yes:)
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7236 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7237 ac_tool_warned=yes ;;
7238 esac
7239 DLLTOOL=$ac_ct_DLLTOOL
7241 else
7242 DLLTOOL="$ac_cv_prog_DLLTOOL"
7245 LIBEXT="dll"
7246 DLLEXT=""
7247 IMPLIBEXT="a"
7248 STATIC_IMPLIBEXT="a"
7249 enable_iphlpapi=${enable_iphlpapi:-no}
7250 enable_kernel32=${enable_kernel32:-no}
7251 enable_msvcrt=${enable_msvcrt:-no}
7252 enable_ntdll=${enable_ntdll:-no}
7253 enable_ws2_32=${enable_ws2_32:-no}
7254 enable_loader=${enable_loader:-no}
7255 enable_server=${enable_server:-no}
7256 with_x=${with_x:-no}
7257 with_pthread=${with_pthread:-no}
7259 crtlibs=""
7260 case $host_os in
7261 mingw32*)
7262 crtlibs="-lmsvcrt"
7263 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
7265 esac
7267 LIBWINE_RULES="
7268 all: libwine.dll libwine.a
7270 libwine.a: wine.def
7271 \$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
7273 libwine.dll: \$(OBJS) wine.def Makefile.in
7274 \$(CC) -shared \$(srcdir)/wine.def -o \$@ \$(OBJS) $crtlibs \$(EXTRALIBS)
7276 install install-lib:: libwine.dll \$(DESTDIR)\$(libdir) dummy
7277 \$(INSTALL_DATA) libwine.dll \$(DESTDIR)\$(libdir)/libwine.dll
7279 install install-dev:: libwine.a \$(DESTDIR)\$(libdir) dummy
7280 \$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
7282 uninstall::
7283 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.a libwine.dll
7285 clean::
7286 \$(RM) libwine.dll version.c
7291 darwin*|macosx*)
7292 LIBEXT="dylib"
7293 DLLFLAGS="$DLLFLAGS -fPIC"
7294 LIBWINE_LDFLAGS="-multiply_defined suppress"
7295 LDRPATH_INSTALL="-Wl,-rpath,@loader_path/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7296 LDRPATH_LOCAL="-Wl,-rpath,@loader_path/\$(top_builddir)/libs/wine"
7297 COREFOUNDATIONLIB="-framework CoreFoundation"
7299 IOKITLIB="-framework IOKit -framework CoreFoundation"
7301 FORCEFEEDBACKLIB="-framework ForceFeedback -framework CoreFoundation"
7303 APPLICATIONSERVICESLIB="-framework ApplicationServices"
7305 CORESERVICESLIB="-framework CoreServices"
7307 APPKITLIB="-framework AppKit"
7309 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000,-sectcreate,__TEXT,__info_plist,wine_info.plist"
7310 case $host_os in
7311 darwin11*) LDEXECFLAGS="-Wl,-macosx_version_min,10.6 $LDEXECFLAGS" ;;
7312 esac
7313 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
7314 then
7315 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
7318 if test "$ac_cv_header_Security_Security_h" = "yes"
7319 then
7320 SECURITYLIB="-framework Security -framework CoreFoundation"
7322 ac_save_LIBS="$LIBS"
7323 LIBS="$LIBS $SECURITYLIB"
7324 for ac_func in SSLCopyPeerCertificates
7325 do :
7326 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
7327 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
7328 cat >>confdefs.h <<_ACEOF
7329 #define HAVE_SSLCOPYPEERCERTIFICATES 1
7330 _ACEOF
7333 done
7335 LIBS="$ac_save_LIBS"
7336 with_gnutls=${with_gnutls:-no}
7338 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
7339 then
7340 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
7341 then
7342 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
7344 else
7345 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
7348 ac_save_LIBS="$LIBS"
7349 LIBS="$LIBS $COREAUDIO"
7350 for ac_func in AUGraphAddNode
7351 do :
7352 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
7353 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
7354 cat >>confdefs.h <<_ACEOF
7355 #define HAVE_AUGRAPHADDNODE 1
7356 _ACEOF
7359 done
7361 LIBS="$ac_save_LIBS"
7363 if test "$ac_cv_header_OpenAL_al_h" = "yes"
7364 then
7365 FRAMEWORK_OPENAL="-framework OpenAL"
7368 cat >>confdefs.h <<_ACEOF
7369 #define HAVE_OPENAL 1
7370 _ACEOF
7372 ac_cv_lib_openal=yes
7374 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
7375 then
7376 LIBOPENCL="-framework OpenCL"
7378 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
7380 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
7381 then
7382 ac_save_LIBS="$LIBS"
7383 LIBS="$LIBS $IOKITLIB"
7384 for ac_func in IOHIDManagerCreate
7385 do :
7386 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
7387 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
7388 cat >>confdefs.h <<_ACEOF
7389 #define HAVE_IOHIDMANAGERCREATE 1
7390 _ACEOF
7393 done
7395 LIBS="$ac_save_LIBS"
7397 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
7398 then
7399 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
7401 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
7402 else
7403 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
7405 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
7406 then
7407 CARBONLIB="-framework Carbon"
7411 if test "$ac_cv_header_ApplicationServices_ApplicationServices_h" = "yes"
7412 then
7413 ac_save_LIBS="$LIBS"
7414 LIBS="$LIBS $APPLICATIONSERVICESLIB"
7415 ac_fn_c_check_func "$LINENO" "CGDisplayModeGetWidth" "ac_cv_func_CGDisplayModeGetWidth"
7416 if test "x$ac_cv_func_CGDisplayModeGetWidth" = xyes; then :
7417 enable_winemac_drv=${enable_winemac_drv:-yes}
7420 LIBS="$ac_save_LIBS"
7423 if test "x$enable_win16" = "xyes"
7424 then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
7426 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
7427 if test "$cross_compiling" = yes; then :
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
7429 $as_echo "cross-compiling, assuming yes" >&6; }
7430 else
7431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 asm(".text\n"
7434 "bad:\tnop;nop\n"
7435 "good:\tnop;nop\n\t"
7436 ".globl _testfunc\n"
7437 "_testfunc:\tcallw good");
7438 extern void testfunc();
7440 main ()
7442 unsigned short *p = (unsigned short *)testfunc;
7443 return p[0] != 0xe866 || p[1] != 0xfffa
7445 return 0;
7447 _ACEOF
7448 if ac_fn_c_try_run "$LINENO"; then :
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7450 $as_echo "yes" >&6; }
7451 else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7454 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
7456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7457 conftest.$ac_objext conftest.beam conftest.$ac_ext
7462 LIBWINE_RULES="
7463 all: libwine.dylib
7465 libwine.\$(VERSION).dylib: \$(OBJS) Makefile.in
7466 \$(CC) -dynamiclib -install_name @rpath/libwine.\$(SOVERSION).dylib -Wl,-rpath,@loader_path/ -compatibility_version \$(SOVERSION) -current_version \$(VERSION) \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7468 libwine.\$(SOVERSION).dylib: libwine.\$(VERSION).dylib
7469 \$(RM) \$@ && \$(LN_S) libwine.\$(VERSION).dylib \$@
7471 libwine.dylib: libwine.\$(SOVERSION).dylib
7472 \$(RM) \$@ && \$(LN_S) libwine.\$(SOVERSION).dylib \$@
7474 install install-lib:: libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir) dummy
7475 \$(INSTALL_PROGRAM) libwine.\$(VERSION).dylib \$(DESTDIR)\$(libdir)/libwine.\$(VERSION).dylib
7476 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.\$(SOVERSION).dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
7478 install install-dev:: \$(DESTDIR)\$(libdir) dummy
7479 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib && \$(LN_S) libwine.\$(VERSION).dylib libwine.dylib
7481 uninstall::
7482 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib
7484 clean::
7485 \$(RM) libwine.dylib libwine.\$(VERSION).dylib libwine.\$(SOVERSION).dylib version.c
7489 as_fn_append LOADER_RULES "
7490 $wine_binary: main.o Makefile.in wine_info.plist
7491 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
7493 wine-installed: main.o Makefile.in wine_info.plist
7494 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
7496 wine_info.plist: wine_info.plist.in \$(top_builddir)/include/config.h
7497 LC_ALL=C sed -e 's,@PACKAGE_VERSION@,$PACKAGE_VERSION,g' \$(srcdir)/wine_info.plist.in >\$@ || (\$(RM) \$@ && false)
7501 linux-android*)
7502 DLLFLAGS="$DLLFLAGS -fPIC"
7503 DLLPREFIX="lib"
7504 LDEXECFLAGS=""
7505 dlldir="\${libdir}"
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7507 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7508 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 ac_wine_try_cflags_saved=$CFLAGS
7512 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514 /* end confdefs.h. */
7515 int main(int argc, char **argv) { return 0; }
7516 _ACEOF
7517 if ac_fn_c_try_link "$LINENO"; then :
7518 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7519 else
7520 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7522 rm -f core conftest.err conftest.$ac_objext \
7523 conftest$ac_exeext conftest.$ac_ext
7524 CFLAGS=$ac_wine_try_cflags_saved
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7527 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7528 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7529 LDEXECFLAGS="-Wl,--export-dynamic"
7531 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7533 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7534 if eval \${$as_ac_var+:} false; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 ac_wine_try_cflags_saved=$CFLAGS
7538 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7541 int main(int argc, char **argv) { return 0; }
7542 _ACEOF
7543 if ac_fn_c_try_link "$LINENO"; then :
7544 eval "$as_ac_var=yes"
7545 else
7546 eval "$as_ac_var=no"
7548 rm -f core conftest.err conftest.$ac_objext \
7549 conftest$ac_exeext conftest.$ac_ext
7550 CFLAGS=$ac_wine_try_cflags_saved
7552 eval ac_res=\$$as_ac_var
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7554 $as_echo "$ac_res" >&6; }
7555 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7556 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7557 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7558 else
7559 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7561 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7562 if eval \${$as_ac_var+:} false; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 ac_wine_try_cflags_saved=$CFLAGS
7566 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7569 int main(int argc, char **argv) { return 0; }
7570 _ACEOF
7571 if ac_fn_c_try_link "$LINENO"; then :
7572 eval "$as_ac_var=yes"
7573 else
7574 eval "$as_ac_var=no"
7576 rm -f core conftest.err conftest.$ac_objext \
7577 conftest$ac_exeext conftest.$ac_ext
7578 CFLAGS=$ac_wine_try_cflags_saved
7580 eval ac_res=\$$as_ac_var
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7582 $as_echo "$ac_res" >&6; }
7583 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7584 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7585 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7590 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7591 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7592 $as_echo_n "(cached) " >&6
7593 else
7594 ac_wine_try_cflags_saved=$CFLAGS
7595 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598 int main(int argc, char **argv) { return 0; }
7599 _ACEOF
7600 if ac_fn_c_try_link "$LINENO"; then :
7601 ac_cv_cflags__Wl___enable_new_dtags=yes
7602 else
7603 ac_cv_cflags__Wl___enable_new_dtags=no
7605 rm -f core conftest.err conftest.$ac_objext \
7606 conftest$ac_exeext conftest.$ac_ext
7607 CFLAGS=$ac_wine_try_cflags_saved
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7610 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7611 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7612 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7615 case $host_cpu in
7616 *i[3456789]86* | x86_64)
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7618 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7619 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621 else
7622 ac_wine_try_cflags_saved=$CFLAGS
7623 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h. */
7626 int main(int argc, char **argv) { return 0; }
7627 _ACEOF
7628 if ac_fn_c_try_link "$LINENO"; then :
7629 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7630 else
7631 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7633 rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635 CFLAGS=$ac_wine_try_cflags_saved
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7638 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7639 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7640 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
7643 esac
7645 LIBWINE_RULES="
7646 all: libwine.so
7648 libwine.so: \$(OBJS) Makefile.in
7649 \$(CC) -shared \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
7651 install install-lib:: libwine.so \$(DESTDIR)\$(libdir) dummy
7652 \$(INSTALL_PROGRAM) libwine.so \$(DESTDIR)\$(libdir)/libwine.so
7654 uninstall::
7655 \$(RM) \$(DESTDIR)\$(libdir)/libwine.so
7657 clean::
7658 \$(RM) libwine.so version.c
7662 as_fn_append LOADER_RULES "
7663 $wine_binary: main.o Makefile.in
7664 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
7666 wine-installed: main.o Makefile.in
7667 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
7672 DLLFLAGS="$DLLFLAGS -fPIC"
7673 LDEXECFLAGS=""
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
7675 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
7676 if ${ac_cv_c_dll_gnuelf+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 ac_wine_try_cflags_saved=$CFLAGS
7680 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 void myfunc() {}
7684 _ACEOF
7685 if ac_fn_c_try_link "$LINENO"; then :
7686 ac_cv_c_dll_gnuelf="yes"
7687 else
7688 ac_cv_c_dll_gnuelf="no"
7690 rm -f core conftest.err conftest.$ac_objext \
7691 conftest$ac_exeext conftest.$ac_ext
7692 CFLAGS=$ac_wine_try_cflags_saved
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
7695 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
7696 if test "$ac_cv_c_dll_gnuelf" = "yes"
7697 then
7698 LDSHARED="\$(CC) -shared"
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
7700 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
7701 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703 else
7704 ac_wine_try_cflags_saved=$CFLAGS
7705 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7708 int main(int argc, char **argv) { return 0; }
7709 _ACEOF
7710 if ac_fn_c_try_link "$LINENO"; then :
7711 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
7712 else
7713 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
7715 rm -f core conftest.err conftest.$ac_objext \
7716 conftest$ac_exeext conftest.$ac_ext
7717 CFLAGS=$ac_wine_try_cflags_saved
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
7720 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
7721 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
7722 LDSHARED="\$(CC) -shared -Wl,-soname,libwine.so.\$(SOVERSION)"
7723 else
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
7725 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
7726 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
7727 $as_echo_n "(cached) " >&6
7728 else
7729 ac_wine_try_cflags_saved=$CFLAGS
7730 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7733 int main(int argc, char **argv) { return 0; }
7734 _ACEOF
7735 if ac_fn_c_try_link "$LINENO"; then :
7736 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
7737 else
7738 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
7740 rm -f core conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
7742 CFLAGS=$ac_wine_try_cflags_saved
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
7745 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
7746 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
7747 LDSHARED="\$(CC) -shared -Wl,-h,libwine.so.\$(SOVERSION)"
7751 echo '{ global: *; };' >conftest.map
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
7753 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
7754 if ${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756 else
7757 ac_wine_try_cflags_saved=$CFLAGS
7758 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h. */
7761 int main(int argc, char **argv) { return 0; }
7762 _ACEOF
7763 if ac_fn_c_try_link "$LINENO"; then :
7764 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
7765 else
7766 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
7768 rm -f core conftest.err conftest.$ac_objext \
7769 conftest$ac_exeext conftest.$ac_ext
7770 CFLAGS=$ac_wine_try_cflags_saved
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
7773 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
7774 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
7775 LDSHARED="$LDSHARED -Wl,--version-script=\$(srcdir)/wine.map"
7777 rm -f conftest.map
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
7780 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
7781 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 ac_wine_try_cflags_saved=$CFLAGS
7785 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788 int main(int argc, char **argv) { return 0; }
7789 _ACEOF
7790 if ac_fn_c_try_link "$LINENO"; then :
7791 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
7792 else
7793 ac_cv_cflags__fPIC__Wl___export_dynamic=no
7795 rm -f core conftest.err conftest.$ac_objext \
7796 conftest$ac_exeext conftest.$ac_ext
7797 CFLAGS=$ac_wine_try_cflags_saved
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
7800 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
7801 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
7802 LDEXECFLAGS="-Wl,--export-dynamic"
7805 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
7807 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
7808 if eval \${$as_ac_var+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 ac_wine_try_cflags_saved=$CFLAGS
7812 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815 int main(int argc, char **argv) { return 0; }
7816 _ACEOF
7817 if ac_fn_c_try_link "$LINENO"; then :
7818 eval "$as_ac_var=yes"
7819 else
7820 eval "$as_ac_var=no"
7822 rm -f core conftest.err conftest.$ac_objext \
7823 conftest$ac_exeext conftest.$ac_ext
7824 CFLAGS=$ac_wine_try_cflags_saved
7826 eval ac_res=\$$as_ac_var
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7828 $as_echo "$ac_res" >&6; }
7829 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7830 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7831 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7832 else
7833 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
7835 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
7836 if eval \${$as_ac_var+:} false; then :
7837 $as_echo_n "(cached) " >&6
7838 else
7839 ac_wine_try_cflags_saved=$CFLAGS
7840 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843 int main(int argc, char **argv) { return 0; }
7844 _ACEOF
7845 if ac_fn_c_try_link "$LINENO"; then :
7846 eval "$as_ac_var=yes"
7847 else
7848 eval "$as_ac_var=no"
7850 rm -f core conftest.err conftest.$ac_objext \
7851 conftest$ac_exeext conftest.$ac_ext
7852 CFLAGS=$ac_wine_try_cflags_saved
7854 eval ac_res=\$$as_ac_var
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7856 $as_echo "$ac_res" >&6; }
7857 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
7858 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(MAKEDEP) -R \$(bindir) \$(libdir)\`"
7859 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
7864 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
7865 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 ac_wine_try_cflags_saved=$CFLAGS
7869 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 int main(int argc, char **argv) { return 0; }
7873 _ACEOF
7874 if ac_fn_c_try_link "$LINENO"; then :
7875 ac_cv_cflags__Wl___enable_new_dtags=yes
7876 else
7877 ac_cv_cflags__Wl___enable_new_dtags=no
7879 rm -f core conftest.err conftest.$ac_objext \
7880 conftest$ac_exeext conftest.$ac_ext
7881 CFLAGS=$ac_wine_try_cflags_saved
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
7884 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
7885 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
7886 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
7889 case $host_cpu in
7890 *i[3456789]86* | x86_64)
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
7892 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
7893 if ${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 ac_wine_try_cflags_saved=$CFLAGS
7897 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7900 int main(int argc, char **argv) { return 0; }
7901 _ACEOF
7902 if ac_fn_c_try_link "$LINENO"; then :
7903 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
7904 else
7905 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
7907 rm -f core conftest.err conftest.$ac_objext \
7908 conftest$ac_exeext conftest.$ac_ext
7909 CFLAGS=$ac_wine_try_cflags_saved
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
7912 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
7913 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
7914 case $host_os in
7915 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
7916 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
7917 esac
7920 # Extract the first word of "prelink", so it can be a program name with args.
7921 set dummy prelink; ac_word=$2
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7923 $as_echo_n "checking for $ac_word... " >&6; }
7924 if ${ac_cv_path_PRELINK+:} false; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 case $PRELINK in
7928 [\\/]* | ?:[\\/]*)
7929 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7933 for as_dir in /sbin /usr/sbin $PATH
7935 IFS=$as_save_IFS
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7939 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 break 2
7943 done
7944 done
7945 IFS=$as_save_IFS
7947 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
7949 esac
7951 PRELINK=$ac_cv_path_PRELINK
7952 if test -n "$PRELINK"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
7954 $as_echo "$PRELINK" >&6; }
7955 else
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7961 if test "x$PRELINK" = xfalse
7962 then
7963 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7966 esac
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
7970 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
7971 if ${ac_cv_c_dll_unixware+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 ac_wine_try_cflags_saved=$CFLAGS
7975 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7978 void myfunc() {}
7979 _ACEOF
7980 if ac_fn_c_try_link "$LINENO"; then :
7981 ac_cv_c_dll_unixware="yes"
7982 else
7983 ac_cv_c_dll_unixware="no"
7985 rm -f core conftest.err conftest.$ac_objext \
7986 conftest$ac_exeext conftest.$ac_ext
7987 CFLAGS=$ac_wine_try_cflags_saved
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7990 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7991 if test "$ac_cv_c_dll_unixware" = "yes"
7992 then
7993 LDSHARED="\$(CC) -Wl,-G,-h,libwine.so.\$(SOVERSION)"
7996 LIBWINE_RULES="
7997 all: libwine.so
7999 libwine.so.\$(VERSION): \$(OBJS) wine.map Makefile.in
8000 $LDSHARED \$(OBJS) \$(EXTRALIBS) \$(LDFLAGS) \$(LIBS) -o \$@
8002 libwine.so.\$(SOVERSION): libwine.so.\$(VERSION)
8003 \$(RM) \$@ && \$(LN_S) libwine.so.\$(VERSION) \$@
8005 libwine.so: libwine.so.\$(SOVERSION)
8006 \$(RM) \$@ && \$(LN_S) libwine.so.\$(SOVERSION) \$@
8008 install install-lib:: libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir) dummy
8009 \$(INSTALL_PROGRAM) libwine.so.\$(VERSION) \$(DESTDIR)\$(libdir)/libwine.so.\$(VERSION)
8010 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so.\$(SOVERSION) && \$(LN_S) libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
8012 install install-dev:: \$(DESTDIR)\$(libdir) dummy
8013 cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so && \$(LN_S) libwine.so.\$(VERSION) libwine.so
8015 uninstall::
8016 -cd \$(DESTDIR)\$(libdir) && \$(RM) libwine.so libwine.so.\$(VERSION) libwine.so.\$(SOVERSION)
8018 clean::
8019 \$(RM) libwine.so.\$(SOVERSION) libwine.so.\$(VERSION) version.c
8023 as_fn_append LOADER_RULES "
8024 $wine_binary: main.o Makefile.in
8025 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_LOCAL)
8027 wine-installed: main.o Makefile.in
8028 \$(CC) -o \$@ $LDEXECFLAGS main.o \$(LIBWINE) \$(LIBPORT) \$(EXTRALIBS) \$(LDFLAGS) \$(LDRPATH_INSTALL)
8031 esac
8033 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
8034 enable_winemac_drv=${enable_winemac_drv:-no}
8036 CROSSTARGET=""
8038 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
8039 then
8040 case "$host_cpu" in
8041 i[3456789]86*)
8042 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
8043 mingw32-gcc" ;;
8044 x86_64)
8045 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 " ;;
8047 ac_prefix_list="" ;;
8048 esac
8049 for ac_prog in $ac_prefix_list
8051 # Extract the first word of "$ac_prog", so it can be a program name with args.
8052 set dummy $ac_prog; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if ${ac_cv_prog_CROSSCC+:} false; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 if test -n "$CROSSCC"; then
8059 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8060 else
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8068 ac_cv_prog_CROSSCC="$ac_prog"
8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 break 2
8072 done
8073 done
8074 IFS=$as_save_IFS
8078 CROSSCC=$ac_cv_prog_CROSSCC
8079 if test -n "$CROSSCC"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
8081 $as_echo "$CROSSCC" >&6; }
8082 else
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8088 test -n "$CROSSCC" && break
8089 done
8090 test -n "$CROSSCC" || CROSSCC="false"
8092 if test "$CROSSCC" != "false"
8093 then
8094 ac_save_CC="$CC"
8095 CC="$CROSSCC"
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
8097 $as_echo_n "checking whether $CROSSCC works... " >&6; }
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8102 main ()
8106 return 0;
8108 _ACEOF
8109 if ac_fn_c_try_compile "$LINENO"; then :
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8111 $as_echo "yes" >&6; }
8112 set x $CROSSCC
8113 shift
8114 while test $# -ge 1
8116 case "$1" in
8117 *-gcc) CROSSTARGET=`expr "$1" : '\(.*\)-gcc'` ;;
8118 esac
8119 shift
8120 done
8121 else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8126 CC="$ac_save_CC"
8131 if test "$ac_cv_header_pthread_h" = "yes"
8132 then
8133 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
8134 if test "x$ac_cv_func_pthread_create" = xyes; then :
8136 else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
8138 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
8139 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 ac_check_lib_save_LIBS=$LIBS
8143 LIBS="-lpthread $LIBS"
8144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8147 /* Override any GCC internal prototype to avoid an error.
8148 Use char because int might match the return type of a GCC
8149 builtin and then its argument prototype would still apply. */
8150 #ifdef __cplusplus
8151 extern "C"
8152 #endif
8153 char pthread_create ();
8155 main ()
8157 return pthread_create ();
8159 return 0;
8161 _ACEOF
8162 if ac_fn_c_try_link "$LINENO"; then :
8163 ac_cv_lib_pthread_pthread_create=yes
8164 else
8165 ac_cv_lib_pthread_pthread_create=no
8167 rm -f core conftest.err conftest.$ac_objext \
8168 conftest$ac_exeext conftest.$ac_ext
8169 LIBS=$ac_check_lib_save_LIBS
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
8172 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
8173 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
8174 LIBPTHREAD="-lpthread"
8181 if test "x$ac_cv_func_pthread_create" != xyes -a "x$LIBPTHREAD" = x; then :
8182 case "x$with_pthread" in
8183 xno) ;;
8184 *) as_fn_error $? "pthread ${notice_platform}development files not found.
8185 Wine cannot support threads without libpthread.
8186 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
8187 esac
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8192 $as_echo_n "checking for X... " >&6; }
8195 # Check whether --with-x was given.
8196 if test "${with_x+set}" = set; then :
8197 withval=$with_x;
8200 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8201 if test "x$with_x" = xno; then
8202 # The user explicitly disabled X.
8203 have_x=disabled
8204 else
8205 case $x_includes,$x_libraries in #(
8206 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8207 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 # One or both of the vars are not set, and there is no cached value.
8211 ac_x_includes=no ac_x_libraries=no
8212 rm -f -r conftest.dir
8213 if mkdir conftest.dir; then
8214 cd conftest.dir
8215 cat >Imakefile <<'_ACEOF'
8216 incroot:
8217 @echo incroot='${INCROOT}'
8218 usrlibdir:
8219 @echo usrlibdir='${USRLIBDIR}'
8220 libdir:
8221 @echo libdir='${LIBDIR}'
8222 _ACEOF
8223 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8224 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8225 for ac_var in incroot usrlibdir libdir; do
8226 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8227 done
8228 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8229 for ac_extension in a so sl dylib la dll; do
8230 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8231 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8232 ac_im_usrlibdir=$ac_im_libdir; break
8234 done
8235 # Screen out bogus values from the imake configuration. They are
8236 # bogus both because they are the default anyway, and because
8237 # using them would break gcc on systems where it needs fixed includes.
8238 case $ac_im_incroot in
8239 /usr/include) ac_x_includes= ;;
8240 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8241 esac
8242 case $ac_im_usrlibdir in
8243 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8244 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8245 esac
8247 cd ..
8248 rm -f -r conftest.dir
8251 # Standard set of common directories for X headers.
8252 # Check X11 before X11Rn because it is often a symlink to the current release.
8253 ac_x_header_dirs='
8254 /usr/X11/include
8255 /usr/X11R7/include
8256 /usr/X11R6/include
8257 /usr/X11R5/include
8258 /usr/X11R4/include
8260 /usr/include/X11
8261 /usr/include/X11R7
8262 /usr/include/X11R6
8263 /usr/include/X11R5
8264 /usr/include/X11R4
8266 /usr/local/X11/include
8267 /usr/local/X11R7/include
8268 /usr/local/X11R6/include
8269 /usr/local/X11R5/include
8270 /usr/local/X11R4/include
8272 /usr/local/include/X11
8273 /usr/local/include/X11R7
8274 /usr/local/include/X11R6
8275 /usr/local/include/X11R5
8276 /usr/local/include/X11R4
8278 /usr/X386/include
8279 /usr/x386/include
8280 /usr/XFree86/include/X11
8282 /usr/include
8283 /usr/local/include
8284 /usr/unsupported/include
8285 /usr/athena/include
8286 /usr/local/x11r5/include
8287 /usr/lpp/Xamples/include
8289 /usr/openwin/include
8290 /usr/openwin/share/include'
8292 if test "$ac_x_includes" = no; then
8293 # Guess where to find include files, by looking for Xlib.h.
8294 # First, try using that file with no special directory specified.
8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h. */
8297 #include <X11/Xlib.h>
8298 _ACEOF
8299 if ac_fn_c_try_cpp "$LINENO"; then :
8300 # We can compile using X headers with no special include directory.
8301 ac_x_includes=
8302 else
8303 for ac_dir in $ac_x_header_dirs; do
8304 if test -r "$ac_dir/X11/Xlib.h"; then
8305 ac_x_includes=$ac_dir
8306 break
8308 done
8310 rm -f conftest.err conftest.i conftest.$ac_ext
8311 fi # $ac_x_includes = no
8313 if test "$ac_x_libraries" = no; then
8314 # Check for the libraries.
8315 # See if we find them without any special options.
8316 # Don't add to $LIBS permanently.
8317 ac_save_LIBS=$LIBS
8318 LIBS="-lX11 $LIBS"
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321 #include <X11/Xlib.h>
8323 main ()
8325 XrmInitialize ()
8327 return 0;
8329 _ACEOF
8330 if ac_fn_c_try_link "$LINENO"; then :
8331 LIBS=$ac_save_LIBS
8332 # We can link X programs with no special library path.
8333 ac_x_libraries=
8334 else
8335 LIBS=$ac_save_LIBS
8336 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8338 # Don't even attempt the hair of trying to link an X program!
8339 for ac_extension in a so sl dylib la dll; do
8340 if test -r "$ac_dir/libX11.$ac_extension"; then
8341 ac_x_libraries=$ac_dir
8342 break 2
8344 done
8345 done
8347 rm -f core conftest.err conftest.$ac_objext \
8348 conftest$ac_exeext conftest.$ac_ext
8349 fi # $ac_x_libraries = no
8351 case $ac_x_includes,$ac_x_libraries in #(
8352 no,* | *,no | *\'*)
8353 # Didn't find X, or a directory has "'" in its name.
8354 ac_cv_have_x="have_x=no";; #(
8356 # Record where we found X for the cache.
8357 ac_cv_have_x="have_x=yes\
8358 ac_x_includes='$ac_x_includes'\
8359 ac_x_libraries='$ac_x_libraries'"
8360 esac
8362 ;; #(
8363 *) have_x=yes;;
8364 esac
8365 eval "$ac_cv_have_x"
8366 fi # $with_x != no
8368 if test "$have_x" != yes; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8370 $as_echo "$have_x" >&6; }
8371 no_x=yes
8372 else
8373 # If each of the values was on the command line, it overrides each guess.
8374 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8375 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8376 # Update the cache value to reflect the command line values.
8377 ac_cv_have_x="have_x=yes\
8378 ac_x_includes='$x_includes'\
8379 ac_x_libraries='$x_libraries'"
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8381 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8384 if test "$no_x" = yes; then
8385 # Not all programs may use this symbol, but it does not hurt to define it.
8387 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8389 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8390 else
8391 if test -n "$x_includes"; then
8392 X_CFLAGS="$X_CFLAGS -I$x_includes"
8395 # It would also be nice to do this for all -L options, not just this one.
8396 if test -n "$x_libraries"; then
8397 X_LIBS="$X_LIBS -L$x_libraries"
8398 # For Solaris; some versions of Sun CC require a space after -R and
8399 # others require no space. Words are not sufficient . . . .
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
8401 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
8402 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8403 ac_xsave_c_werror_flag=$ac_c_werror_flag
8404 ac_c_werror_flag=yes
8405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8406 /* end confdefs.h. */
8409 main ()
8413 return 0;
8415 _ACEOF
8416 if ac_fn_c_try_link "$LINENO"; then :
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 X_LIBS="$X_LIBS -R$x_libraries"
8420 else
8421 LIBS="$ac_xsave_LIBS -R $x_libraries"
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8426 main ()
8430 return 0;
8432 _ACEOF
8433 if ac_fn_c_try_link "$LINENO"; then :
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8435 $as_echo "yes" >&6; }
8436 X_LIBS="$X_LIBS -R $x_libraries"
8437 else
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
8439 $as_echo "neither works" >&6; }
8441 rm -f core conftest.err conftest.$ac_objext \
8442 conftest$ac_exeext conftest.$ac_ext
8444 rm -f core conftest.err conftest.$ac_objext \
8445 conftest$ac_exeext conftest.$ac_ext
8446 ac_c_werror_flag=$ac_xsave_c_werror_flag
8447 LIBS=$ac_xsave_LIBS
8450 # Check for system-dependent libraries X programs must link with.
8451 # Do this before checking for the system-independent R6 libraries
8452 # (-lICE), since we may need -lsocket or whatever for X linking.
8454 if test "$ISC" = yes; then
8455 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8456 else
8457 # Martyn Johnson says this is needed for Ultrix, if the X
8458 # libraries were built with DECnet support. And Karl Berry says
8459 # the Alpha needs dnet_stub (dnet does not exist).
8460 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8464 /* Override any GCC internal prototype to avoid an error.
8465 Use char because int might match the return type of a GCC
8466 builtin and then its argument prototype would still apply. */
8467 #ifdef __cplusplus
8468 extern "C"
8469 #endif
8470 char XOpenDisplay ();
8472 main ()
8474 return XOpenDisplay ();
8476 return 0;
8478 _ACEOF
8479 if ac_fn_c_try_link "$LINENO"; then :
8481 else
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
8483 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
8484 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
8485 $as_echo_n "(cached) " >&6
8486 else
8487 ac_check_lib_save_LIBS=$LIBS
8488 LIBS="-ldnet $LIBS"
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8492 /* Override any GCC internal prototype to avoid an error.
8493 Use char because int might match the return type of a GCC
8494 builtin and then its argument prototype would still apply. */
8495 #ifdef __cplusplus
8496 extern "C"
8497 #endif
8498 char dnet_ntoa ();
8500 main ()
8502 return dnet_ntoa ();
8504 return 0;
8506 _ACEOF
8507 if ac_fn_c_try_link "$LINENO"; then :
8508 ac_cv_lib_dnet_dnet_ntoa=yes
8509 else
8510 ac_cv_lib_dnet_dnet_ntoa=no
8512 rm -f core conftest.err conftest.$ac_objext \
8513 conftest$ac_exeext conftest.$ac_ext
8514 LIBS=$ac_check_lib_save_LIBS
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8517 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8518 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
8519 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8522 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
8524 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
8525 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
8526 $as_echo_n "(cached) " >&6
8527 else
8528 ac_check_lib_save_LIBS=$LIBS
8529 LIBS="-ldnet_stub $LIBS"
8530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531 /* end confdefs.h. */
8533 /* Override any GCC internal prototype to avoid an error.
8534 Use char because int might match the return type of a GCC
8535 builtin and then its argument prototype would still apply. */
8536 #ifdef __cplusplus
8537 extern "C"
8538 #endif
8539 char dnet_ntoa ();
8541 main ()
8543 return dnet_ntoa ();
8545 return 0;
8547 _ACEOF
8548 if ac_fn_c_try_link "$LINENO"; then :
8549 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8550 else
8551 ac_cv_lib_dnet_stub_dnet_ntoa=no
8553 rm -f core conftest.err conftest.$ac_objext \
8554 conftest$ac_exeext conftest.$ac_ext
8555 LIBS=$ac_check_lib_save_LIBS
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8558 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8559 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
8560 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8565 rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567 LIBS="$ac_xsave_LIBS"
8569 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8570 # to get the SysV transport functions.
8571 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8572 # needs -lnsl.
8573 # The nsl library prevents programs from opening the X display
8574 # on Irix 5.2, according to T.E. Dickey.
8575 # The functions gethostbyname, getservbyname, and inet_addr are
8576 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8577 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
8578 if test "x$ac_cv_func_gethostbyname" = xyes; then :
8582 if test $ac_cv_func_gethostbyname = no; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
8584 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
8585 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 ac_check_lib_save_LIBS=$LIBS
8589 LIBS="-lnsl $LIBS"
8590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591 /* end confdefs.h. */
8593 /* Override any GCC internal prototype to avoid an error.
8594 Use char because int might match the return type of a GCC
8595 builtin and then its argument prototype would still apply. */
8596 #ifdef __cplusplus
8597 extern "C"
8598 #endif
8599 char gethostbyname ();
8601 main ()
8603 return gethostbyname ();
8605 return 0;
8607 _ACEOF
8608 if ac_fn_c_try_link "$LINENO"; then :
8609 ac_cv_lib_nsl_gethostbyname=yes
8610 else
8611 ac_cv_lib_nsl_gethostbyname=no
8613 rm -f core conftest.err conftest.$ac_objext \
8614 conftest$ac_exeext conftest.$ac_ext
8615 LIBS=$ac_check_lib_save_LIBS
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
8618 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
8619 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
8620 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8623 if test $ac_cv_lib_nsl_gethostbyname = no; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
8625 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
8626 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 ac_check_lib_save_LIBS=$LIBS
8630 LIBS="-lbsd $LIBS"
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8634 /* Override any GCC internal prototype to avoid an error.
8635 Use char because int might match the return type of a GCC
8636 builtin and then its argument prototype would still apply. */
8637 #ifdef __cplusplus
8638 extern "C"
8639 #endif
8640 char gethostbyname ();
8642 main ()
8644 return gethostbyname ();
8646 return 0;
8648 _ACEOF
8649 if ac_fn_c_try_link "$LINENO"; then :
8650 ac_cv_lib_bsd_gethostbyname=yes
8651 else
8652 ac_cv_lib_bsd_gethostbyname=no
8654 rm -f core conftest.err conftest.$ac_objext \
8655 conftest$ac_exeext conftest.$ac_ext
8656 LIBS=$ac_check_lib_save_LIBS
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
8659 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
8660 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
8661 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8667 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8668 # socket/setsockopt and other routines are undefined under SCO ODT
8669 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8670 # on later versions), says Simon Leinen: it contains gethostby*
8671 # variants that don't use the name server (or something). -lsocket
8672 # must be given before -lnsl if both are needed. We assume that
8673 # if connect needs -lnsl, so does gethostbyname.
8674 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
8675 if test "x$ac_cv_func_connect" = xyes; then :
8679 if test $ac_cv_func_connect = no; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
8681 $as_echo_n "checking for connect in -lsocket... " >&6; }
8682 if ${ac_cv_lib_socket_connect+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 ac_check_lib_save_LIBS=$LIBS
8686 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8690 /* Override any GCC internal prototype to avoid an error.
8691 Use char because int might match the return type of a GCC
8692 builtin and then its argument prototype would still apply. */
8693 #ifdef __cplusplus
8694 extern "C"
8695 #endif
8696 char connect ();
8698 main ()
8700 return connect ();
8702 return 0;
8704 _ACEOF
8705 if ac_fn_c_try_link "$LINENO"; then :
8706 ac_cv_lib_socket_connect=yes
8707 else
8708 ac_cv_lib_socket_connect=no
8710 rm -f core conftest.err conftest.$ac_objext \
8711 conftest$ac_exeext conftest.$ac_ext
8712 LIBS=$ac_check_lib_save_LIBS
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
8715 $as_echo "$ac_cv_lib_socket_connect" >&6; }
8716 if test "x$ac_cv_lib_socket_connect" = xyes; then :
8717 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8722 # Guillermo Gomez says -lposix is necessary on A/UX.
8723 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
8724 if test "x$ac_cv_func_remove" = xyes; then :
8728 if test $ac_cv_func_remove = no; then
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
8730 $as_echo_n "checking for remove in -lposix... " >&6; }
8731 if ${ac_cv_lib_posix_remove+:} false; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734 ac_check_lib_save_LIBS=$LIBS
8735 LIBS="-lposix $LIBS"
8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8737 /* end confdefs.h. */
8739 /* Override any GCC internal prototype to avoid an error.
8740 Use char because int might match the return type of a GCC
8741 builtin and then its argument prototype would still apply. */
8742 #ifdef __cplusplus
8743 extern "C"
8744 #endif
8745 char remove ();
8747 main ()
8749 return remove ();
8751 return 0;
8753 _ACEOF
8754 if ac_fn_c_try_link "$LINENO"; then :
8755 ac_cv_lib_posix_remove=yes
8756 else
8757 ac_cv_lib_posix_remove=no
8759 rm -f core conftest.err conftest.$ac_objext \
8760 conftest$ac_exeext conftest.$ac_ext
8761 LIBS=$ac_check_lib_save_LIBS
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
8764 $as_echo "$ac_cv_lib_posix_remove" >&6; }
8765 if test "x$ac_cv_lib_posix_remove" = xyes; then :
8766 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8771 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8772 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
8773 if test "x$ac_cv_func_shmat" = xyes; then :
8777 if test $ac_cv_func_shmat = no; then
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
8779 $as_echo_n "checking for shmat in -lipc... " >&6; }
8780 if ${ac_cv_lib_ipc_shmat+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 ac_check_lib_save_LIBS=$LIBS
8784 LIBS="-lipc $LIBS"
8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8788 /* Override any GCC internal prototype to avoid an error.
8789 Use char because int might match the return type of a GCC
8790 builtin and then its argument prototype would still apply. */
8791 #ifdef __cplusplus
8792 extern "C"
8793 #endif
8794 char shmat ();
8796 main ()
8798 return shmat ();
8800 return 0;
8802 _ACEOF
8803 if ac_fn_c_try_link "$LINENO"; then :
8804 ac_cv_lib_ipc_shmat=yes
8805 else
8806 ac_cv_lib_ipc_shmat=no
8808 rm -f core conftest.err conftest.$ac_objext \
8809 conftest$ac_exeext conftest.$ac_ext
8810 LIBS=$ac_check_lib_save_LIBS
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
8813 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
8814 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
8815 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8821 # Check for libraries that X11R6 Xt/Xaw programs need.
8822 ac_save_LDFLAGS=$LDFLAGS
8823 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8824 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8825 # check for ICE first), but we must link in the order -lSM -lICE or
8826 # we get undefined symbols. So assume we have SM if we have ICE.
8827 # These have to be linked with before -lX11, unlike the other
8828 # libraries we check for below, so use a different variable.
8829 # John Interrante, Karl Berry
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
8831 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
8832 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
8833 $as_echo_n "(cached) " >&6
8834 else
8835 ac_check_lib_save_LIBS=$LIBS
8836 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8840 /* Override any GCC internal prototype to avoid an error.
8841 Use char because int might match the return type of a GCC
8842 builtin and then its argument prototype would still apply. */
8843 #ifdef __cplusplus
8844 extern "C"
8845 #endif
8846 char IceConnectionNumber ();
8848 main ()
8850 return IceConnectionNumber ();
8852 return 0;
8854 _ACEOF
8855 if ac_fn_c_try_link "$LINENO"; then :
8856 ac_cv_lib_ICE_IceConnectionNumber=yes
8857 else
8858 ac_cv_lib_ICE_IceConnectionNumber=no
8860 rm -f core conftest.err conftest.$ac_objext \
8861 conftest$ac_exeext conftest.$ac_ext
8862 LIBS=$ac_check_lib_save_LIBS
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8865 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
8866 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
8867 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8870 LDFLAGS=$ac_save_LDFLAGS
8875 if test "$have_x" = "yes"
8876 then
8877 XLIB="-lX11"
8878 ac_save_CPPFLAGS="$CPPFLAGS"
8879 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
8882 $as_echo_n "checking for -lX11... " >&6; }
8883 if ${ac_cv_lib_soname_X11+:} false; then :
8884 $as_echo_n "(cached) " >&6
8885 else
8886 ac_check_soname_save_LIBS=$LIBS
8887 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8891 /* Override any GCC internal prototype to avoid an error.
8892 Use char because int might match the return type of a GCC
8893 builtin and then its argument prototype would still apply. */
8894 #ifdef __cplusplus
8895 extern "C"
8896 #endif
8897 char XCreateWindow ();
8899 main ()
8901 return XCreateWindow ();
8903 return 0;
8905 _ACEOF
8906 if ac_fn_c_try_link "$LINENO"; then :
8907 case "$LIBEXT" in
8908 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8909 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'` ;;
8910 *) ac_cv_lib_soname_X11=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libX11\\.$LIBEXT" | sed -e "s/^.*\\[\\(libX11\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8911 if test "x$ac_cv_lib_soname_X11" = x; then :
8912 ac_cv_lib_soname_X11=`$LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8913 fi ;;
8914 esac
8916 rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
8918 LIBS=$ac_check_soname_save_LIBS
8920 if test "x$ac_cv_lib_soname_X11" = "x"; then :
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8922 $as_echo "not found" >&6; }
8924 else
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
8926 $as_echo "$ac_cv_lib_soname_X11" >&6; }
8928 cat >>confdefs.h <<_ACEOF
8929 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
8930 _ACEOF
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
8935 $as_echo_n "checking for -lXext... " >&6; }
8936 if ${ac_cv_lib_soname_Xext+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938 else
8939 ac_check_soname_save_LIBS=$LIBS
8940 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8944 /* Override any GCC internal prototype to avoid an error.
8945 Use char because int might match the return type of a GCC
8946 builtin and then its argument prototype would still apply. */
8947 #ifdef __cplusplus
8948 extern "C"
8949 #endif
8950 char XextCreateExtension ();
8952 main ()
8954 return XextCreateExtension ();
8956 return 0;
8958 _ACEOF
8959 if ac_fn_c_try_link "$LINENO"; then :
8960 case "$LIBEXT" in
8961 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8962 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'` ;;
8963 *) ac_cv_lib_soname_Xext=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXext\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXext\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
8964 if test "x$ac_cv_lib_soname_Xext" = x; then :
8965 ac_cv_lib_soname_Xext=`$LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
8966 fi ;;
8967 esac
8969 rm -f core conftest.err conftest.$ac_objext \
8970 conftest$ac_exeext conftest.$ac_ext
8971 LIBS=$ac_check_soname_save_LIBS
8973 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8975 $as_echo "not found" >&6; }
8977 else
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
8979 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
8981 cat >>confdefs.h <<_ACEOF
8982 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8983 _ACEOF
8985 XLIB="-lXext $XLIB"
8988 for ac_header in X11/Xlib.h \
8989 X11/XKBlib.h \
8990 X11/Xutil.h \
8991 X11/Xcursor/Xcursor.h \
8992 X11/extensions/shape.h \
8993 X11/extensions/XInput.h \
8994 X11/extensions/XInput2.h \
8995 X11/extensions/XShm.h \
8996 X11/extensions/Xcomposite.h \
8997 X11/extensions/Xinerama.h \
8998 X11/extensions/Xrandr.h \
8999 X11/extensions/Xrender.h \
9000 X11/extensions/xf86vmode.h \
9001 X11/extensions/xf86vmproto.h
9002 do :
9003 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9004 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
9005 # include <X11/Xlib.h>
9006 #endif
9007 #ifdef HAVE_X11_XUTIL_H
9008 # include <X11/Xutil.h>
9009 #endif
9011 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9012 cat >>confdefs.h <<_ACEOF
9013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9014 _ACEOF
9018 done
9021 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9022 then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
9024 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
9025 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
9026 $as_echo_n "(cached) " >&6
9027 else
9028 ac_check_lib_save_LIBS=$LIBS
9029 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9033 /* Override any GCC internal prototype to avoid an error.
9034 Use char because int might match the return type of a GCC
9035 builtin and then its argument prototype would still apply. */
9036 #ifdef __cplusplus
9037 extern "C"
9038 #endif
9039 char XkbQueryExtension ();
9041 main ()
9043 return XkbQueryExtension ();
9045 return 0;
9047 _ACEOF
9048 if ac_fn_c_try_link "$LINENO"; then :
9049 ac_cv_lib_X11_XkbQueryExtension=yes
9050 else
9051 ac_cv_lib_X11_XkbQueryExtension=no
9053 rm -f core conftest.err conftest.$ac_objext \
9054 conftest$ac_exeext conftest.$ac_ext
9055 LIBS=$ac_check_lib_save_LIBS
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9058 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9059 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
9061 $as_echo "#define HAVE_XKB 1" >>confdefs.h
9067 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9068 then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
9070 $as_echo_n "checking for -lXcursor... " >&6; }
9071 if ${ac_cv_lib_soname_Xcursor+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 ac_check_soname_save_LIBS=$LIBS
9075 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9079 /* Override any GCC internal prototype to avoid an error.
9080 Use char because int might match the return type of a GCC
9081 builtin and then its argument prototype would still apply. */
9082 #ifdef __cplusplus
9083 extern "C"
9084 #endif
9085 char XcursorImageLoadCursor ();
9087 main ()
9089 return XcursorImageLoadCursor ();
9091 return 0;
9093 _ACEOF
9094 if ac_fn_c_try_link "$LINENO"; then :
9095 case "$LIBEXT" in
9096 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9097 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'` ;;
9098 *) ac_cv_lib_soname_Xcursor=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcursor\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcursor\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9099 if test "x$ac_cv_lib_soname_Xcursor" = x; then :
9100 ac_cv_lib_soname_Xcursor=`$LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9101 fi ;;
9102 esac
9104 rm -f core conftest.err conftest.$ac_objext \
9105 conftest$ac_exeext conftest.$ac_ext
9106 LIBS=$ac_check_soname_save_LIBS
9108 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9110 $as_echo "not found" >&6; }
9112 else
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
9114 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
9116 cat >>confdefs.h <<_ACEOF
9117 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9118 _ACEOF
9123 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
9124 case "x$with_xcursor" in
9125 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
9126 xno) ;;
9127 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
9128 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
9129 esac
9132 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9133 then
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
9135 $as_echo_n "checking for -lXi... " >&6; }
9136 if ${ac_cv_lib_soname_Xi+:} false; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 ac_check_soname_save_LIBS=$LIBS
9140 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9144 /* Override any GCC internal prototype to avoid an error.
9145 Use char because int might match the return type of a GCC
9146 builtin and then its argument prototype would still apply. */
9147 #ifdef __cplusplus
9148 extern "C"
9149 #endif
9150 char XOpenDevice ();
9152 main ()
9154 return XOpenDevice ();
9156 return 0;
9158 _ACEOF
9159 if ac_fn_c_try_link "$LINENO"; then :
9160 case "$LIBEXT" in
9161 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9162 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'` ;;
9163 *) ac_cv_lib_soname_Xi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9164 if test "x$ac_cv_lib_soname_Xi" = x; then :
9165 ac_cv_lib_soname_Xi=`$LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9166 fi ;;
9167 esac
9169 rm -f core conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext conftest.$ac_ext
9171 LIBS=$ac_check_soname_save_LIBS
9173 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9175 $as_echo "not found" >&6; }
9177 else
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
9179 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
9181 cat >>confdefs.h <<_ACEOF
9182 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9183 _ACEOF
9188 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
9189 case "x$with_xinput" in
9190 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
9191 xno) ;;
9192 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
9193 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
9194 esac
9197 if test "x$ac_cv_lib_soname_Xi" != x
9198 then
9199 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
9200 case "x$with_xinput2" in
9201 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
9202 xno) ;;
9203 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
9204 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
9205 esac
9209 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9210 then
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
9212 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
9213 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
9214 $as_echo_n "(cached) " >&6
9215 else
9216 ac_check_lib_save_LIBS=$LIBS
9217 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219 /* end confdefs.h. */
9221 /* Override any GCC internal prototype to avoid an error.
9222 Use char because int might match the return type of a GCC
9223 builtin and then its argument prototype would still apply. */
9224 #ifdef __cplusplus
9225 extern "C"
9226 #endif
9227 char XShmQueryExtension ();
9229 main ()
9231 return XShmQueryExtension ();
9233 return 0;
9235 _ACEOF
9236 if ac_fn_c_try_link "$LINENO"; then :
9237 ac_cv_lib_Xext_XShmQueryExtension=yes
9238 else
9239 ac_cv_lib_Xext_XShmQueryExtension=no
9241 rm -f core conftest.err conftest.$ac_objext \
9242 conftest$ac_exeext conftest.$ac_ext
9243 LIBS=$ac_check_lib_save_LIBS
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9246 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9247 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
9249 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
9254 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
9255 case "x$with_xshm" in
9256 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
9257 xno) ;;
9258 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
9259 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
9260 esac
9263 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9264 then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
9266 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9267 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270 ac_check_lib_save_LIBS=$LIBS
9271 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9275 /* Override any GCC internal prototype to avoid an error.
9276 Use char because int might match the return type of a GCC
9277 builtin and then its argument prototype would still apply. */
9278 #ifdef __cplusplus
9279 extern "C"
9280 #endif
9281 char XShapeQueryExtension ();
9283 main ()
9285 return XShapeQueryExtension ();
9287 return 0;
9289 _ACEOF
9290 if ac_fn_c_try_link "$LINENO"; then :
9291 ac_cv_lib_Xext_XShapeQueryExtension=yes
9292 else
9293 ac_cv_lib_Xext_XShapeQueryExtension=no
9295 rm -f core conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9297 LIBS=$ac_check_lib_save_LIBS
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9300 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9301 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
9303 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
9308 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
9309 case "x$with_xshape" in
9310 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
9311 xno) ;;
9312 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
9313 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
9314 esac
9317 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
9318 then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
9320 $as_echo_n "checking for -lXxf86vm... " >&6; }
9321 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 ac_check_soname_save_LIBS=$LIBS
9325 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h. */
9329 /* Override any GCC internal prototype to avoid an error.
9330 Use char because int might match the return type of a GCC
9331 builtin and then its argument prototype would still apply. */
9332 #ifdef __cplusplus
9333 extern "C"
9334 #endif
9335 char XF86VidModeQueryExtension ();
9337 main ()
9339 return XF86VidModeQueryExtension ();
9341 return 0;
9343 _ACEOF
9344 if ac_fn_c_try_link "$LINENO"; then :
9345 case "$LIBEXT" in
9346 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9347 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'` ;;
9348 *) ac_cv_lib_soname_Xxf86vm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXxf86vm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9349 if test "x$ac_cv_lib_soname_Xxf86vm" = x; then :
9350 ac_cv_lib_soname_Xxf86vm=`$LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9351 fi ;;
9352 esac
9354 rm -f core conftest.err conftest.$ac_objext \
9355 conftest$ac_exeext conftest.$ac_ext
9356 LIBS=$ac_check_soname_save_LIBS
9358 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9360 $as_echo "not found" >&6; }
9362 else
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
9364 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
9366 cat >>confdefs.h <<_ACEOF
9367 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
9368 _ACEOF
9373 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
9374 case "x$with_xxf86vm" in
9375 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
9376 xno) ;;
9377 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
9378 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
9379 esac
9382 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"
9383 then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
9385 $as_echo_n "checking for -lXrender... " >&6; }
9386 if ${ac_cv_lib_soname_Xrender+:} false; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 ac_check_soname_save_LIBS=$LIBS
9390 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9394 /* Override any GCC internal prototype to avoid an error.
9395 Use char because int might match the return type of a GCC
9396 builtin and then its argument prototype would still apply. */
9397 #ifdef __cplusplus
9398 extern "C"
9399 #endif
9400 char XRenderQueryExtension ();
9402 main ()
9404 return XRenderQueryExtension ();
9406 return 0;
9408 _ACEOF
9409 if ac_fn_c_try_link "$LINENO"; then :
9410 case "$LIBEXT" in
9411 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9412 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'` ;;
9413 *) ac_cv_lib_soname_Xrender=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrender\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrender\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9414 if test "x$ac_cv_lib_soname_Xrender" = x; then :
9415 ac_cv_lib_soname_Xrender=`$LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9416 fi ;;
9417 esac
9419 rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
9421 LIBS=$ac_check_soname_save_LIBS
9423 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9425 $as_echo "not found" >&6; }
9427 else
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
9429 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
9431 cat >>confdefs.h <<_ACEOF
9432 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
9433 _ACEOF
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
9436 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
9437 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
9438 $as_echo_n "(cached) " >&6
9439 else
9440 ac_check_lib_save_LIBS=$LIBS
9441 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9445 /* Override any GCC internal prototype to avoid an error.
9446 Use char because int might match the return type of a GCC
9447 builtin and then its argument prototype would still apply. */
9448 #ifdef __cplusplus
9449 extern "C"
9450 #endif
9451 char XRenderSetPictureTransform ();
9453 main ()
9455 return XRenderSetPictureTransform ();
9457 return 0;
9459 _ACEOF
9460 if ac_fn_c_try_link "$LINENO"; then :
9461 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9462 else
9463 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
9465 rm -f core conftest.err conftest.$ac_objext \
9466 conftest$ac_exeext conftest.$ac_ext
9467 LIBS=$ac_check_lib_save_LIBS
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9470 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9471 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
9473 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
9478 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
9479 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
9480 $as_echo_n "(cached) " >&6
9481 else
9482 ac_check_lib_save_LIBS=$LIBS
9483 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9487 /* Override any GCC internal prototype to avoid an error.
9488 Use char because int might match the return type of a GCC
9489 builtin and then its argument prototype would still apply. */
9490 #ifdef __cplusplus
9491 extern "C"
9492 #endif
9493 char XRenderCreateLinearGradient ();
9495 main ()
9497 return XRenderCreateLinearGradient ();
9499 return 0;
9501 _ACEOF
9502 if ac_fn_c_try_link "$LINENO"; then :
9503 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
9504 else
9505 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
9507 rm -f core conftest.err conftest.$ac_objext \
9508 conftest$ac_exeext conftest.$ac_ext
9509 LIBS=$ac_check_lib_save_LIBS
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
9512 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
9513 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
9515 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
9522 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
9523 case "x$with_xrender" in
9524 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
9525 xno) ;;
9526 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
9527 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
9528 esac
9531 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
9532 then
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535 #include <X11/Xlib.h>
9536 #include <X11/extensions/Xrandr.h>
9538 main ()
9540 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
9542 return 0;
9544 _ACEOF
9545 if ac_fn_c_try_compile "$LINENO"; then :
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
9547 $as_echo_n "checking for -lXrandr... " >&6; }
9548 if ${ac_cv_lib_soname_Xrandr+:} false; then :
9549 $as_echo_n "(cached) " >&6
9550 else
9551 ac_check_soname_save_LIBS=$LIBS
9552 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9556 /* Override any GCC internal prototype to avoid an error.
9557 Use char because int might match the return type of a GCC
9558 builtin and then its argument prototype would still apply. */
9559 #ifdef __cplusplus
9560 extern "C"
9561 #endif
9562 char XRRQueryExtension ();
9564 main ()
9566 return XRRQueryExtension ();
9568 return 0;
9570 _ACEOF
9571 if ac_fn_c_try_link "$LINENO"; then :
9572 case "$LIBEXT" in
9573 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9574 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'` ;;
9575 *) ac_cv_lib_soname_Xrandr=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXrandr\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXrandr\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9576 if test "x$ac_cv_lib_soname_Xrandr" = x; then :
9577 ac_cv_lib_soname_Xrandr=`$LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9578 fi ;;
9579 esac
9581 rm -f core conftest.err conftest.$ac_objext \
9582 conftest$ac_exeext conftest.$ac_ext
9583 LIBS=$ac_check_soname_save_LIBS
9585 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9587 $as_echo "not found" >&6; }
9589 else
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
9591 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
9593 cat >>confdefs.h <<_ACEOF
9594 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
9595 _ACEOF
9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9598 /* end confdefs.h. */
9599 #include <X11/Xlib.h>
9600 #include <X11/extensions/Xrandr.h>
9602 main ()
9604 static typeof(XRRGetScreenResources) *f; if (f) return 0;
9606 return 0;
9608 _ACEOF
9609 if ac_fn_c_try_compile "$LINENO"; then :
9611 $as_echo "#define HAVE_XRRGETSCREENRESOURCES 1" >>confdefs.h
9614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
9620 case "x$with_xrandr" in
9621 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
9622 xno) ;;
9623 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
9624 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
9625 esac
9628 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9629 then
9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632 #include <X11/Xlib.h>
9633 #include <X11/extensions/Xinerama.h>
9635 main ()
9637 static typeof(XineramaQueryScreens) * func; if (func) return 0;
9639 return 0;
9641 _ACEOF
9642 if ac_fn_c_try_compile "$LINENO"; then :
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
9644 $as_echo_n "checking for -lXinerama... " >&6; }
9645 if ${ac_cv_lib_soname_Xinerama+:} false; then :
9646 $as_echo_n "(cached) " >&6
9647 else
9648 ac_check_soname_save_LIBS=$LIBS
9649 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9653 /* Override any GCC internal prototype to avoid an error.
9654 Use char because int might match the return type of a GCC
9655 builtin and then its argument prototype would still apply. */
9656 #ifdef __cplusplus
9657 extern "C"
9658 #endif
9659 char XineramaQueryScreens ();
9661 main ()
9663 return XineramaQueryScreens ();
9665 return 0;
9667 _ACEOF
9668 if ac_fn_c_try_link "$LINENO"; then :
9669 case "$LIBEXT" in
9670 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9671 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'` ;;
9672 *) ac_cv_lib_soname_Xinerama=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXinerama\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXinerama\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9673 if test "x$ac_cv_lib_soname_Xinerama" = x; then :
9674 ac_cv_lib_soname_Xinerama=`$LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9675 fi ;;
9676 esac
9678 rm -f core conftest.err conftest.$ac_objext \
9679 conftest$ac_exeext conftest.$ac_ext
9680 LIBS=$ac_check_soname_save_LIBS
9682 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9684 $as_echo "not found" >&6; }
9686 else
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
9688 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
9690 cat >>confdefs.h <<_ACEOF
9691 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
9692 _ACEOF
9697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9699 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
9700 case "x$with_xinerama" in
9701 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
9702 xno) ;;
9703 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
9704 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
9705 esac
9708 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
9709 then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
9711 $as_echo_n "checking for -lXcomposite... " >&6; }
9712 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
9713 $as_echo_n "(cached) " >&6
9714 else
9715 ac_check_soname_save_LIBS=$LIBS
9716 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_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 XCompositeRedirectWindow ();
9728 main ()
9730 return XCompositeRedirectWindow ();
9732 return 0;
9734 _ACEOF
9735 if ac_fn_c_try_link "$LINENO"; then :
9736 case "$LIBEXT" in
9737 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9738 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'` ;;
9739 *) ac_cv_lib_soname_Xcomposite=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libXcomposite\\.$LIBEXT" | sed -e "s/^.*\\[\\(libXcomposite\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9740 if test "x$ac_cv_lib_soname_Xcomposite" = x; then :
9741 ac_cv_lib_soname_Xcomposite=`$LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9742 fi ;;
9743 esac
9745 rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747 LIBS=$ac_check_soname_save_LIBS
9749 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9751 $as_echo "not found" >&6; }
9753 else
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
9755 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
9757 cat >>confdefs.h <<_ACEOF
9758 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
9759 _ACEOF
9764 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
9765 case "x$with_xcomposite" in
9766 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
9767 xno) ;;
9768 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
9769 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
9770 esac
9773 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
9774 #include <X11/Xlib.h>
9775 #endif
9777 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
9779 cat >>confdefs.h <<_ACEOF
9780 #define HAVE_XICCALLBACK_CALLBACK 1
9781 _ACEOF
9785 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
9786 #include <X11/Xlib.h>
9787 #endif
9789 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
9791 cat >>confdefs.h <<_ACEOF
9792 #define HAVE_XEVENT_XCOOKIE 1
9793 _ACEOF
9800 opengl_msg=""
9801 if test "x$with_opengl" != "xno"
9802 then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9804 $as_echo_n "checking for -lGL... " >&6; }
9805 if ${ac_cv_lib_soname_GL+:} false; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 ac_check_soname_save_LIBS=$LIBS
9809 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9813 /* Override any GCC internal prototype to avoid an error.
9814 Use char because int might match the return type of a GCC
9815 builtin and then its argument prototype would still apply. */
9816 #ifdef __cplusplus
9817 extern "C"
9818 #endif
9819 char glXCreateContext ();
9821 main ()
9823 return glXCreateContext ();
9825 return 0;
9827 _ACEOF
9828 if ac_fn_c_try_link "$LINENO"; then :
9829 case "$LIBEXT" in
9830 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9831 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'` ;;
9832 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9833 if test "x$ac_cv_lib_soname_GL" = x; then :
9834 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9835 fi ;;
9836 esac
9838 rm -f core conftest.err conftest.$ac_objext \
9839 conftest$ac_exeext conftest.$ac_ext
9840 LIBS=$ac_check_soname_save_LIBS
9842 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9844 $as_echo "not found" >&6; }
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
9846 $as_echo_n "checking for -lGL... " >&6; }
9847 if ${ac_cv_lib_soname_GL+:} false; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 ac_check_soname_save_LIBS=$LIBS
9851 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"
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9855 /* Override any GCC internal prototype to avoid an error.
9856 Use char because int might match the return type of a GCC
9857 builtin and then its argument prototype would still apply. */
9858 #ifdef __cplusplus
9859 extern "C"
9860 #endif
9861 char glXCreateContext ();
9863 main ()
9865 return glXCreateContext ();
9867 return 0;
9869 _ACEOF
9870 if ac_fn_c_try_link "$LINENO"; then :
9871 case "$LIBEXT" in
9872 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9873 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'` ;;
9874 *) ac_cv_lib_soname_GL=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libGL\\.$LIBEXT" | sed -e "s/^.*\\[\\(libGL\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9875 if test "x$ac_cv_lib_soname_GL" = x; then :
9876 ac_cv_lib_soname_GL=`$LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
9877 fi ;;
9878 esac
9880 rm -f core conftest.err conftest.$ac_objext \
9881 conftest$ac_exeext conftest.$ac_ext
9882 LIBS=$ac_check_soname_save_LIBS
9884 if test "x$ac_cv_lib_soname_GL" = "x"; then :
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9886 $as_echo "not found" >&6; }
9887 if test -f /usr/X11R6/lib/libGL.a
9888 then
9889 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
9890 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
9891 else
9892 opengl_msg="No OpenGL library found on this system."
9894 else
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9896 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9898 cat >>confdefs.h <<_ACEOF
9899 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9900 _ACEOF
9902 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"
9904 else
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
9906 $as_echo "$ac_cv_lib_soname_GL" >&6; }
9908 cat >>confdefs.h <<_ACEOF
9909 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
9910 _ACEOF
9912 OPENGL_LIBS="-lGL"
9914 if test "x$with_glu" != "xno"
9915 then
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluLookAt in -lGLU" >&5
9917 $as_echo_n "checking for gluLookAt in -lGLU... " >&6; }
9918 if ${ac_cv_lib_GLU_gluLookAt+:} false; then :
9919 $as_echo_n "(cached) " >&6
9920 else
9921 ac_check_lib_save_LIBS=$LIBS
9922 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9926 /* Override any GCC internal prototype to avoid an error.
9927 Use char because int might match the return type of a GCC
9928 builtin and then its argument prototype would still apply. */
9929 #ifdef __cplusplus
9930 extern "C"
9931 #endif
9932 char gluLookAt ();
9934 main ()
9936 return gluLookAt ();
9938 return 0;
9940 _ACEOF
9941 if ac_fn_c_try_link "$LINENO"; then :
9942 ac_cv_lib_GLU_gluLookAt=yes
9943 else
9944 ac_cv_lib_GLU_gluLookAt=no
9946 rm -f core conftest.err conftest.$ac_objext \
9947 conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluLookAt" >&5
9951 $as_echo "$ac_cv_lib_GLU_gluLookAt" >&6; }
9952 if test "x$ac_cv_lib_GLU_gluLookAt" = xyes; then :
9956 if test "x$ac_cv_lib_GLU_gluLookAt" != xyes; then :
9957 case "x$with_glu" in
9958 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
9959 xno) ;;
9960 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
9961 This is an error since --with-glu was requested." "$LINENO" 5 ;;
9962 esac
9966 if test "x$with_osmesa" != "xno"
9967 then
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lOSMesa" >&5
9969 $as_echo_n "checking for -lOSMesa... " >&6; }
9970 if ${ac_cv_lib_soname_OSMesa+:} false; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 ac_check_soname_save_LIBS=$LIBS
9974 LIBS="-lOSMesa $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976 /* end confdefs.h. */
9978 /* Override any GCC internal prototype to avoid an error.
9979 Use char because int might match the return type of a GCC
9980 builtin and then its argument prototype would still apply. */
9981 #ifdef __cplusplus
9982 extern "C"
9983 #endif
9984 char glAccum ();
9986 main ()
9988 return glAccum ();
9990 return 0;
9992 _ACEOF
9993 if ac_fn_c_try_link "$LINENO"; then :
9994 case "$LIBEXT" in
9995 dll) ac_cv_lib_soname_OSMesa=`$ac_cv_path_LDD conftest.exe | grep "OSMesa" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9996 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'` ;;
9997 *) ac_cv_lib_soname_OSMesa=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libOSMesa\\.$LIBEXT" | sed -e "s/^.*\\[\\(libOSMesa\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
9998 if test "x$ac_cv_lib_soname_OSMesa" = x; then :
9999 ac_cv_lib_soname_OSMesa=`$LDD conftest$ac_exeext | grep "libOSMesa\\.$LIBEXT" | sed -e "s/^.*\(libOSMesa\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10000 fi ;;
10001 esac
10003 rm -f core conftest.err conftest.$ac_objext \
10004 conftest$ac_exeext conftest.$ac_ext
10005 LIBS=$ac_check_soname_save_LIBS
10007 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10009 $as_echo "not found" >&6; }
10011 else
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_OSMesa" >&5
10013 $as_echo "$ac_cv_lib_soname_OSMesa" >&6; }
10015 cat >>confdefs.h <<_ACEOF
10016 #define SONAME_LIBOSMESA "$ac_cv_lib_soname_OSMesa"
10017 _ACEOF
10021 if test "x$ac_cv_lib_soname_OSMesa" = "x"; then :
10022 case "x$with_osmesa" in
10023 x) as_fn_append wine_notices "|libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported." ;;
10024 xno) ;;
10025 *) as_fn_error $? "libOSMesa ${notice_platform}development files not found (or too old), OpenGL rendering in bitmaps won't be supported.
10026 This is an error since --with-osmesa was requested." "$LINENO" 5 ;;
10027 esac
10031 if test -n "$opengl_msg"; then :
10032 case "x$with_opengl" in
10033 x) as_fn_append wine_warnings "|$opengl_msg
10034 OpenGL and Direct3D won't be supported." ;;
10035 xno) ;;
10036 *) as_fn_error $? "$opengl_msg
10037 OpenGL and Direct3D won't be supported.
10038 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
10039 esac
10042 CPPFLAGS="$ac_save_CPPFLAGS"
10043 else
10044 XLIB=""
10045 X_CFLAGS=""
10046 X_LIBS=""
10047 enable_winex11_drv=${enable_winex11_drv:-no}
10049 if test "x$XLIB" = "x"; then :
10050 case "x$with_x" in
10051 xno) ;;
10052 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
10053 without X support, which probably isn't what you want. You will need
10054 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
10055 Use the --without-x option if you really want this." "$LINENO" 5 ;;
10056 esac
10059 test "x$ac_cv_lib_GLU_gluLookAt" != xyes && enable_glu32=${enable_glu32:-no}
10061 if test "$ac_cv_header_CL_cl_h" = "yes"
10062 then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
10064 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
10065 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068 ac_check_lib_save_LIBS=$LIBS
10069 LIBS="-lOpenCL $LIBS"
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10073 /* Override any GCC internal prototype to avoid an error.
10074 Use char because int might match the return type of a GCC
10075 builtin and then its argument prototype would still apply. */
10076 #ifdef __cplusplus
10077 extern "C"
10078 #endif
10079 char clGetPlatformInfo ();
10081 main ()
10083 return clGetPlatformInfo ();
10085 return 0;
10087 _ACEOF
10088 if ac_fn_c_try_link "$LINENO"; then :
10089 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
10090 else
10091 ac_cv_lib_OpenCL_clGetPlatformInfo=no
10093 rm -f core conftest.err conftest.$ac_objext \
10094 conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_check_lib_save_LIBS
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
10098 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
10099 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
10100 LIBOPENCL="-lOpenCL"
10105 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
10106 case "x$with_opencl" in
10107 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
10108 xno) ;;
10109 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
10110 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
10111 esac
10113 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
10116 if test "x$with_xml" != "xno"
10117 then
10118 if test -n "$XML2_CFLAGS"; then :
10120 elif test -n "$PKG_CONFIG"; then :
10121 XML2_CFLAGS=`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`
10123 test "$cross_compiling" = yes || XML2_CFLAGS=${XML2_CFLAGS:-`xml2-config --cflags 2>/dev/null`}
10124 if test -n "$XML2_LIBS"; then :
10126 elif test -n "$PKG_CONFIG"; then :
10127 XML2_LIBS=`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`
10129 test "$cross_compiling" = yes || XML2_LIBS=${XML2_LIBS:-`xml2-config --libs 2>/dev/null`}
10130 XML2_LIBS=${XML2_LIBS:-"-lxml2"}
10131 ac_save_CPPFLAGS=$CPPFLAGS
10132 CPPFLAGS="$CPPFLAGS $XML2_CFLAGS"
10133 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
10134 do :
10135 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10136 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10138 cat >>confdefs.h <<_ACEOF
10139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10140 _ACEOF
10144 done
10146 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"
10147 then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
10149 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
10150 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 ac_check_lib_save_LIBS=$LIBS
10154 LIBS="-lxml2 $XML2_LIBS $LIBS"
10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156 /* end confdefs.h. */
10158 /* Override any GCC internal prototype to avoid an error.
10159 Use char because int might match the return type of a GCC
10160 builtin and then its argument prototype would still apply. */
10161 #ifdef __cplusplus
10162 extern "C"
10163 #endif
10164 char xmlParseMemory ();
10166 main ()
10168 return xmlParseMemory ();
10170 return 0;
10172 _ACEOF
10173 if ac_fn_c_try_link "$LINENO"; then :
10174 ac_cv_lib_xml2_xmlParseMemory=yes
10175 else
10176 ac_cv_lib_xml2_xmlParseMemory=no
10178 rm -f core conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
10180 LIBS=$ac_check_lib_save_LIBS
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10183 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
10184 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
10186 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
10188 else
10189 XML2_LIBS=""
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
10193 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
10194 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
10195 $as_echo_n "(cached) " >&6
10196 else
10197 ac_check_lib_save_LIBS=$LIBS
10198 LIBS="-lxml2 $XML2_LIBS $LIBS"
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10202 /* Override any GCC internal prototype to avoid an error.
10203 Use char because int might match the return type of a GCC
10204 builtin and then its argument prototype would still apply. */
10205 #ifdef __cplusplus
10206 extern "C"
10207 #endif
10208 char xmlReadMemory ();
10210 main ()
10212 return xmlReadMemory ();
10214 return 0;
10216 _ACEOF
10217 if ac_fn_c_try_link "$LINENO"; then :
10218 ac_cv_lib_xml2_xmlReadMemory=yes
10219 else
10220 ac_cv_lib_xml2_xmlReadMemory=no
10222 rm -f core conftest.err conftest.$ac_objext \
10223 conftest$ac_exeext conftest.$ac_ext
10224 LIBS=$ac_check_lib_save_LIBS
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10227 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
10228 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
10230 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
10235 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
10236 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 ac_check_lib_save_LIBS=$LIBS
10240 LIBS="-lxml2 $XML2_LIBS $LIBS"
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10244 /* Override any GCC internal prototype to avoid an error.
10245 Use char because int might match the return type of a GCC
10246 builtin and then its argument prototype would still apply. */
10247 #ifdef __cplusplus
10248 extern "C"
10249 #endif
10250 char xmlNewDocPI ();
10252 main ()
10254 return xmlNewDocPI ();
10256 return 0;
10258 _ACEOF
10259 if ac_fn_c_try_link "$LINENO"; then :
10260 ac_cv_lib_xml2_xmlNewDocPI=yes
10261 else
10262 ac_cv_lib_xml2_xmlNewDocPI=no
10264 rm -f core conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
10266 LIBS=$ac_check_lib_save_LIBS
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
10269 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
10270 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
10272 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
10277 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
10278 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
10279 $as_echo_n "(cached) " >&6
10280 else
10281 ac_check_lib_save_LIBS=$LIBS
10282 LIBS="-lxml2 $XML2_LIBS $LIBS"
10283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10284 /* end confdefs.h. */
10286 /* Override any GCC internal prototype to avoid an error.
10287 Use char because int might match the return type of a GCC
10288 builtin and then its argument prototype would still apply. */
10289 #ifdef __cplusplus
10290 extern "C"
10291 #endif
10292 char xmlSchemaSetParserStructuredErrors ();
10294 main ()
10296 return xmlSchemaSetParserStructuredErrors ();
10298 return 0;
10300 _ACEOF
10301 if ac_fn_c_try_link "$LINENO"; then :
10302 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
10303 else
10304 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
10306 rm -f core conftest.err conftest.$ac_objext \
10307 conftest$ac_exeext conftest.$ac_ext
10308 LIBS=$ac_check_lib_save_LIBS
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
10311 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
10312 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
10314 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
10319 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
10320 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
10321 $as_echo_n "(cached) " >&6
10322 else
10323 ac_check_lib_save_LIBS=$LIBS
10324 LIBS="-lxml2 $XML2_LIBS $LIBS"
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10328 /* Override any GCC internal prototype to avoid an error.
10329 Use char because int might match the return type of a GCC
10330 builtin and then its argument prototype would still apply. */
10331 #ifdef __cplusplus
10332 extern "C"
10333 #endif
10334 char xmlSchemaSetValidStructuredErrors ();
10336 main ()
10338 return xmlSchemaSetValidStructuredErrors ();
10340 return 0;
10342 _ACEOF
10343 if ac_fn_c_try_link "$LINENO"; then :
10344 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
10345 else
10346 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
10348 rm -f core conftest.err conftest.$ac_objext \
10349 conftest$ac_exeext conftest.$ac_ext
10350 LIBS=$ac_check_lib_save_LIBS
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
10353 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
10354 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
10356 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
10361 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
10362 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
10363 $as_echo_n "(cached) " >&6
10364 else
10365 ac_check_lib_save_LIBS=$LIBS
10366 LIBS="-lxml2 $XML2_LIBS $LIBS"
10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368 /* end confdefs.h. */
10370 /* Override any GCC internal prototype to avoid an error.
10371 Use char because int might match the return type of a GCC
10372 builtin and then its argument prototype would still apply. */
10373 #ifdef __cplusplus
10374 extern "C"
10375 #endif
10376 char xmlFirstElementChild ();
10378 main ()
10380 return xmlFirstElementChild ();
10382 return 0;
10384 _ACEOF
10385 if ac_fn_c_try_link "$LINENO"; then :
10386 ac_cv_lib_xml2_xmlFirstElementChild=yes
10387 else
10388 ac_cv_lib_xml2_xmlFirstElementChild=no
10390 rm -f core conftest.err conftest.$ac_objext \
10391 conftest$ac_exeext conftest.$ac_ext
10392 LIBS=$ac_check_lib_save_LIBS
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
10395 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
10396 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
10398 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
10402 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
10404 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
10406 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
10410 else
10411 XML2_CFLAGS=""
10412 XML2_LIBS=""
10414 CPPFLAGS=$ac_save_CPPFLAGS
10415 test -z "$XML2_CFLAGS" || XML2_CFLAGS=`echo " $XML2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10416 test -z "$XML2_LIBS" || XML2_LIBS=`echo " $XML2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10419 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
10420 case "x$with_xml" in
10421 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
10422 xno) ;;
10423 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
10424 This is an error since --with-xml was requested." "$LINENO" 5 ;;
10425 esac
10428 if test "x$with_xslt" != "xno"
10429 then
10430 if test -n "$XSLT_CFLAGS"; then :
10432 elif test -n "$PKG_CONFIG"; then :
10433 XSLT_CFLAGS=`$PKG_CONFIG --cflags libxslt 2>/dev/null`
10435 test "$cross_compiling" = yes || XSLT_CFLAGS=${XSLT_CFLAGS:-`xslt-config --cflags 2>/dev/null`}
10436 if test -n "$XSLT_LIBS"; then :
10438 elif test -n "$PKG_CONFIG"; then :
10439 XSLT_LIBS=`$PKG_CONFIG --libs libxslt 2>/dev/null`
10441 test "$cross_compiling" = yes || XSLT_LIBS=${XSLT_LIBS:-`xslt-config --libs 2>/dev/null`}
10442 XSLT_LIBS=${XSLT_LIBS:-"-lxml2"}
10443 ac_save_CPPFLAGS=$CPPFLAGS
10444 CPPFLAGS="$CPPFLAGS $XSLT_CFLAGS"
10445 for ac_header in libxslt/pattern.h libxslt/transform.h
10446 do :
10447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10448 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
10449 # include <libxslt/pattern.h>
10450 #endif
10452 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10453 cat >>confdefs.h <<_ACEOF
10454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10455 _ACEOF
10459 done
10461 if test "$ac_cv_header_libxslt_transform_h" = "yes"
10462 then
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
10464 $as_echo_n "checking for -lxslt... " >&6; }
10465 if ${ac_cv_lib_soname_xslt+:} false; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 ac_check_soname_save_LIBS=$LIBS
10469 LIBS="-lxslt $XSLT_LIBS $LIBS"
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10473 /* Override any GCC internal prototype to avoid an error.
10474 Use char because int might match the return type of a GCC
10475 builtin and then its argument prototype would still apply. */
10476 #ifdef __cplusplus
10477 extern "C"
10478 #endif
10479 char xsltCompilePattern ();
10481 main ()
10483 return xsltCompilePattern ();
10485 return 0;
10487 _ACEOF
10488 if ac_fn_c_try_link "$LINENO"; then :
10489 case "$LIBEXT" in
10490 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10491 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'` ;;
10492 *) ac_cv_lib_soname_xslt=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libxslt\\.$LIBEXT" | sed -e "s/^.*\\[\\(libxslt\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10493 if test "x$ac_cv_lib_soname_xslt" = x; then :
10494 ac_cv_lib_soname_xslt=`$LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10495 fi ;;
10496 esac
10498 rm -f core conftest.err conftest.$ac_objext \
10499 conftest$ac_exeext conftest.$ac_ext
10500 LIBS=$ac_check_soname_save_LIBS
10502 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10504 $as_echo "not found" >&6; }
10506 else
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
10508 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
10510 cat >>confdefs.h <<_ACEOF
10511 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
10512 _ACEOF
10516 else
10517 XSLT_CFLAGS=""
10519 CPPFLAGS=$ac_save_CPPFLAGS
10520 test -z "$XSLT_CFLAGS" || XSLT_CFLAGS=`echo " $XSLT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10521 test -z "$XSLT_LIBS" || XSLT_LIBS=`echo " $XSLT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10524 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
10525 case "x$with_xslt" in
10526 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
10527 xno) ;;
10528 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
10529 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
10530 esac
10533 if test "x$with_dbus" != "xno"
10534 then
10535 if test -n "$DBUS_CFLAGS"; then :
10537 elif test -n "$PKG_CONFIG"; then :
10538 DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1 2>/dev/null`
10541 if test -n "$DBUS_LIBS"; then :
10543 elif test -n "$PKG_CONFIG"; then :
10544 DBUS_LIBS=`$PKG_CONFIG --libs dbus-1 2>/dev/null`
10548 ac_save_CPPFLAGS=$CPPFLAGS
10549 CPPFLAGS="$CPPFLAGS $DBUS_CFLAGS"
10550 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
10551 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
10553 $as_echo_n "checking for -ldbus-1... " >&6; }
10554 if ${ac_cv_lib_soname_dbus_1+:} false; then :
10555 $as_echo_n "(cached) " >&6
10556 else
10557 ac_check_soname_save_LIBS=$LIBS
10558 LIBS="-ldbus-1 $DBUS_LIBS $LIBS"
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10562 /* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
10565 #ifdef __cplusplus
10566 extern "C"
10567 #endif
10568 char dbus_connection_close ();
10570 main ()
10572 return dbus_connection_close ();
10574 return 0;
10576 _ACEOF
10577 if ac_fn_c_try_link "$LINENO"; then :
10578 case "$LIBEXT" in
10579 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10580 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'` ;;
10581 *) 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'`
10582 if test "x$ac_cv_lib_soname_dbus_1" = x; then :
10583 ac_cv_lib_soname_dbus_1=`$LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10584 fi ;;
10585 esac
10587 rm -f core conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589 LIBS=$ac_check_soname_save_LIBS
10591 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10593 $as_echo "not found" >&6; }
10594 DBUS_CFLAGS=""
10595 else
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
10597 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
10599 cat >>confdefs.h <<_ACEOF
10600 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
10601 _ACEOF
10605 else
10606 DBUS_CFLAGS=""
10610 CPPFLAGS=$ac_save_CPPFLAGS
10611 test -z "$DBUS_CFLAGS" || DBUS_CFLAGS=`echo " $DBUS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10612 test -z "$DBUS_LIBS" || DBUS_LIBS=`echo " $DBUS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10615 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
10616 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10617 case "x$with_dbus" in
10618 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
10619 xno) ;;
10620 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
10621 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
10622 esac
10625 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
10626 then
10627 if test -n "$HAL_CFLAGS"; then :
10629 elif test -n "$PKG_CONFIG"; then :
10630 HAL_CFLAGS=`$PKG_CONFIG --cflags hal 2>/dev/null`
10633 if test -n "$HAL_LIBS"; then :
10635 elif test -n "$PKG_CONFIG"; then :
10636 HAL_LIBS=`$PKG_CONFIG --libs hal 2>/dev/null`
10639 HAL_LIBS=${HAL_LIBS:-"-ldbus-1"}
10640 ac_save_CPPFLAGS=$CPPFLAGS
10641 CPPFLAGS="$CPPFLAGS $HAL_CFLAGS"
10642 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
10643 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
10645 $as_echo_n "checking for -lhal... " >&6; }
10646 if ${ac_cv_lib_soname_hal+:} false; then :
10647 $as_echo_n "(cached) " >&6
10648 else
10649 ac_check_soname_save_LIBS=$LIBS
10650 LIBS="-lhal $HAL_LIBS $LIBS"
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10654 /* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
10657 #ifdef __cplusplus
10658 extern "C"
10659 #endif
10660 char libhal_ctx_new ();
10662 main ()
10664 return libhal_ctx_new ();
10666 return 0;
10668 _ACEOF
10669 if ac_fn_c_try_link "$LINENO"; then :
10670 case "$LIBEXT" in
10671 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10672 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'` ;;
10673 *) ac_cv_lib_soname_hal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libhal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libhal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10674 if test "x$ac_cv_lib_soname_hal" = x; then :
10675 ac_cv_lib_soname_hal=`$LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10676 fi ;;
10677 esac
10679 rm -f core conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681 LIBS=$ac_check_soname_save_LIBS
10683 if test "x$ac_cv_lib_soname_hal" = "x"; then :
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10685 $as_echo "not found" >&6; }
10686 HAL_CFLAGS=""
10687 else
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
10689 $as_echo "$ac_cv_lib_soname_hal" >&6; }
10691 cat >>confdefs.h <<_ACEOF
10692 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
10693 _ACEOF
10697 else
10698 HAL_CFLAGS=""
10702 CPPFLAGS=$ac_save_CPPFLAGS
10703 test -z "$HAL_CFLAGS" || HAL_CFLAGS=`echo " $HAL_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10704 test -z "$HAL_LIBS" || HAL_LIBS=`echo " $HAL_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10706 if test "x$ac_cv_lib_soname_hal" = "x" -a \
10707 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
10708 case "x$with_hal" in
10709 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
10710 xno) ;;
10711 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
10712 This is an error since --with-hal was requested." "$LINENO" 5 ;;
10713 esac
10717 if test "x$with_gnutls" != "xno"
10718 then
10719 if test -n "$GNUTLS_CFLAGS"; then :
10721 elif test -n "$PKG_CONFIG"; then :
10722 GNUTLS_CFLAGS=`$PKG_CONFIG --cflags gnutls 2>/dev/null`
10725 if test -n "$GNUTLS_LIBS"; then :
10727 elif test -n "$PKG_CONFIG"; then :
10728 GNUTLS_LIBS=`$PKG_CONFIG --libs gnutls 2>/dev/null`
10732 ac_save_CPPFLAGS=$CPPFLAGS
10733 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
10734 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
10735 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10738 #include <gnutls/gnutls.h>
10739 #include <gnutls/crypto.h>
10741 main ()
10743 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
10745 return 0;
10747 _ACEOF
10748 if ac_fn_c_try_compile "$LINENO"; then :
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
10750 $as_echo_n "checking for -lgnutls... " >&6; }
10751 if ${ac_cv_lib_soname_gnutls+:} false; then :
10752 $as_echo_n "(cached) " >&6
10753 else
10754 ac_check_soname_save_LIBS=$LIBS
10755 LIBS="-lgnutls $GNUTLS_LIBS $LIBS"
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10759 /* Override any GCC internal prototype to avoid an error.
10760 Use char because int might match the return type of a GCC
10761 builtin and then its argument prototype would still apply. */
10762 #ifdef __cplusplus
10763 extern "C"
10764 #endif
10765 char gnutls_global_init ();
10767 main ()
10769 return gnutls_global_init ();
10771 return 0;
10773 _ACEOF
10774 if ac_fn_c_try_link "$LINENO"; then :
10775 case "$LIBEXT" in
10776 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10777 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'` ;;
10778 *) ac_cv_lib_soname_gnutls=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgnutls\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgnutls\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10779 if test "x$ac_cv_lib_soname_gnutls" = x; then :
10780 ac_cv_lib_soname_gnutls=`$LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10781 fi ;;
10782 esac
10784 rm -f core conftest.err conftest.$ac_objext \
10785 conftest$ac_exeext conftest.$ac_ext
10786 LIBS=$ac_check_soname_save_LIBS
10788 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10790 $as_echo "not found" >&6; }
10791 GNUTLS_CFLAGS=""
10792 else
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
10794 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
10796 cat >>confdefs.h <<_ACEOF
10797 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
10798 _ACEOF
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804 else
10805 GNUTLS_CFLAGS=""
10809 CPPFLAGS=$ac_save_CPPFLAGS
10810 test -z "$GNUTLS_CFLAGS" || GNUTLS_CFLAGS=`echo " $GNUTLS_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
10811 test -z "$GNUTLS_LIBS" || GNUTLS_LIBS=`echo " $GNUTLS_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
10814 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
10815 case "x$with_gnutls" in
10816 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
10817 xno) ;;
10818 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
10819 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
10820 esac
10823 CURSESLIBS=""
10824 if test "$ac_cv_header_ncurses_h" = "yes"
10825 then
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
10827 $as_echo_n "checking for -lncurses... " >&6; }
10828 if ${ac_cv_lib_soname_ncurses+:} false; then :
10829 $as_echo_n "(cached) " >&6
10830 else
10831 ac_check_soname_save_LIBS=$LIBS
10832 LIBS="-lncurses $LIBS"
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10836 /* Override any GCC internal prototype to avoid an error.
10837 Use char because int might match the return type of a GCC
10838 builtin and then its argument prototype would still apply. */
10839 #ifdef __cplusplus
10840 extern "C"
10841 #endif
10842 char waddch ();
10844 main ()
10846 return waddch ();
10848 return 0;
10850 _ACEOF
10851 if ac_fn_c_try_link "$LINENO"; then :
10852 case "$LIBEXT" in
10853 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10854 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'` ;;
10855 *) ac_cv_lib_soname_ncurses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libncurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libncurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10856 if test "x$ac_cv_lib_soname_ncurses" = x; then :
10857 ac_cv_lib_soname_ncurses=`$LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10858 fi ;;
10859 esac
10861 rm -f core conftest.err conftest.$ac_objext \
10862 conftest$ac_exeext conftest.$ac_ext
10863 LIBS=$ac_check_soname_save_LIBS
10865 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10867 $as_echo "not found" >&6; }
10869 else
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
10871 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
10873 cat >>confdefs.h <<_ACEOF
10874 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
10875 _ACEOF
10877 CURSESLIBS="-lncurses"
10879 elif test "$ac_cv_header_curses_h" = "yes"
10880 then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
10882 $as_echo_n "checking for -lcurses... " >&6; }
10883 if ${ac_cv_lib_soname_curses+:} false; then :
10884 $as_echo_n "(cached) " >&6
10885 else
10886 ac_check_soname_save_LIBS=$LIBS
10887 LIBS="-lcurses $LIBS"
10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10891 /* Override any GCC internal prototype to avoid an error.
10892 Use char because int might match the return type of a GCC
10893 builtin and then its argument prototype would still apply. */
10894 #ifdef __cplusplus
10895 extern "C"
10896 #endif
10897 char waddch ();
10899 main ()
10901 return waddch ();
10903 return 0;
10905 _ACEOF
10906 if ac_fn_c_try_link "$LINENO"; then :
10907 case "$LIBEXT" in
10908 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10909 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'` ;;
10910 *) ac_cv_lib_soname_curses=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcurses\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcurses\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
10911 if test "x$ac_cv_lib_soname_curses" = x; then :
10912 ac_cv_lib_soname_curses=`$LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
10913 fi ;;
10914 esac
10916 rm -f core conftest.err conftest.$ac_objext \
10917 conftest$ac_exeext conftest.$ac_ext
10918 LIBS=$ac_check_soname_save_LIBS
10920 if test "x$ac_cv_lib_soname_curses" = "x"; then :
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10922 $as_echo "not found" >&6; }
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
10926 $as_echo "$ac_cv_lib_soname_curses" >&6; }
10928 cat >>confdefs.h <<_ACEOF
10929 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
10930 _ACEOF
10932 CURSESLIBS="-lcurses"
10935 ac_save_LIBS="$LIBS"
10936 LIBS="$LIBS $CURSESLIBS"
10937 for ac_func in mousemask
10938 do :
10939 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
10940 if test "x$ac_cv_func_mousemask" = xyes; then :
10941 cat >>confdefs.h <<_ACEOF
10942 #define HAVE_MOUSEMASK 1
10943 _ACEOF
10946 done
10948 LIBS="$ac_save_LIBS"
10949 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
10950 case "x$with_curses" in
10951 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
10952 xno) ;;
10953 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
10954 This is an error since --with-curses was requested." "$LINENO" 5 ;;
10955 esac
10958 if test "x$with_sane" != "xno"
10959 then
10960 if test -n "$SANE_CFLAGS"; then :
10962 elif test -n "$PKG_CONFIG"; then :
10963 SANE_CFLAGS=`$PKG_CONFIG --cflags libsane 2>/dev/null`
10965 test "$cross_compiling" = yes || SANE_CFLAGS=${SANE_CFLAGS:-`sane-config --cflags 2>/dev/null`}
10966 if test -n "$SANE_LIBS"; then :
10968 elif test -n "$PKG_CONFIG"; then :
10969 SANE_LIBS=`$PKG_CONFIG --libs libsane 2>/dev/null`
10971 test "$cross_compiling" = yes || SANE_LIBS=${SANE_LIBS:-`sane-config --ldflags 2>/dev/null`}
10973 ac_save_CPPFLAGS=$CPPFLAGS
10974 CPPFLAGS="$CPPFLAGS $SANE_CFLAGS"
10975 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
10976 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
10978 $as_echo_n "checking for -lsane... " >&6; }
10979 if ${ac_cv_lib_soname_sane+:} false; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 ac_check_soname_save_LIBS=$LIBS
10983 LIBS="-lsane $SANE_LIBS $LIBS"
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10987 /* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
10990 #ifdef __cplusplus
10991 extern "C"
10992 #endif
10993 char sane_init ();
10995 main ()
10997 return sane_init ();
10999 return 0;
11001 _ACEOF
11002 if ac_fn_c_try_link "$LINENO"; then :
11003 case "$LIBEXT" in
11004 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11005 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'` ;;
11006 *) ac_cv_lib_soname_sane=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libsane\\.$LIBEXT" | sed -e "s/^.*\\[\\(libsane\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11007 if test "x$ac_cv_lib_soname_sane" = x; then :
11008 ac_cv_lib_soname_sane=`$LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11009 fi ;;
11010 esac
11012 rm -f core conftest.err conftest.$ac_objext \
11013 conftest$ac_exeext conftest.$ac_ext
11014 LIBS=$ac_check_soname_save_LIBS
11016 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11018 $as_echo "not found" >&6; }
11019 SANE_CFLAGS=""
11020 else
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
11022 $as_echo "$ac_cv_lib_soname_sane" >&6; }
11024 cat >>confdefs.h <<_ACEOF
11025 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
11026 _ACEOF
11030 else
11031 SANE_CFLAGS=""
11035 CPPFLAGS=$ac_save_CPPFLAGS
11036 test -z "$SANE_CFLAGS" || SANE_CFLAGS=`echo " $SANE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11037 test -z "$SANE_LIBS" || SANE_LIBS=`echo " $SANE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11040 if test "x$ac_cv_lib_soname_sane" = "x"; then :
11041 case "x$with_sane" in
11042 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
11043 xno) ;;
11044 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
11045 This is an error since --with-sane was requested." "$LINENO" 5 ;;
11046 esac
11049 if test "x$with_v4l" != "xno"
11050 then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
11052 $as_echo_n "checking for -lv4l1... " >&6; }
11053 if ${ac_cv_lib_soname_v4l1+:} false; then :
11054 $as_echo_n "(cached) " >&6
11055 else
11056 ac_check_soname_save_LIBS=$LIBS
11057 LIBS="-lv4l1 $LIBS"
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11061 /* Override any GCC internal prototype to avoid an error.
11062 Use char because int might match the return type of a GCC
11063 builtin and then its argument prototype would still apply. */
11064 #ifdef __cplusplus
11065 extern "C"
11066 #endif
11067 char v4l1_open ();
11069 main ()
11071 return v4l1_open ();
11073 return 0;
11075 _ACEOF
11076 if ac_fn_c_try_link "$LINENO"; then :
11077 case "$LIBEXT" in
11078 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11079 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'` ;;
11080 *) ac_cv_lib_soname_v4l1=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libv4l1\\.$LIBEXT" | sed -e "s/^.*\\[\\(libv4l1\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11081 if test "x$ac_cv_lib_soname_v4l1" = x; then :
11082 ac_cv_lib_soname_v4l1=`$LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11083 fi ;;
11084 esac
11086 rm -f core conftest.err conftest.$ac_objext \
11087 conftest$ac_exeext conftest.$ac_ext
11088 LIBS=$ac_check_soname_save_LIBS
11090 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11092 $as_echo "not found" >&6; }
11094 else
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
11096 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
11098 cat >>confdefs.h <<_ACEOF
11099 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
11100 _ACEOF
11105 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
11106 case "x$with_v4l" in
11107 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
11108 xno) ;;
11109 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
11110 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
11111 esac
11114 if test "x$with_gphoto" != "xno"
11115 then
11116 if test -n "$GPHOTO2_CFLAGS"; then :
11118 elif test -n "$PKG_CONFIG"; then :
11119 GPHOTO2_CFLAGS=`$PKG_CONFIG --cflags libgphoto2 2>/dev/null`
11121 test "$cross_compiling" = yes || GPHOTO2_CFLAGS=${GPHOTO2_CFLAGS:-`gphoto2-config --cflags 2>/dev/null`}
11122 if test -n "$GPHOTO2_LIBS"; then :
11124 elif test -n "$PKG_CONFIG"; then :
11125 GPHOTO2_LIBS=`$PKG_CONFIG --libs libgphoto2 2>/dev/null`
11127 test "$cross_compiling" = yes || GPHOTO2_LIBS=${GPHOTO2_LIBS:-`gphoto2-config --libs 2>/dev/null`}
11128 GPHOTO2_LIBS=${GPHOTO2_LIBS:-"-lgphoto2"}
11129 ac_save_CPPFLAGS=$CPPFLAGS
11130 CPPFLAGS="$CPPFLAGS $GPHOTO2_CFLAGS"
11131 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
11132 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
11134 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
11135 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
11136 $as_echo_n "(cached) " >&6
11137 else
11138 ac_check_lib_save_LIBS=$LIBS
11139 LIBS="-lgphoto2 $GPHOTO2_LIBS $LIBS"
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11143 /* Override any GCC internal prototype to avoid an error.
11144 Use char because int might match the return type of a GCC
11145 builtin and then its argument prototype would still apply. */
11146 #ifdef __cplusplus
11147 extern "C"
11148 #endif
11149 char gp_camera_new ();
11151 main ()
11153 return gp_camera_new ();
11155 return 0;
11157 _ACEOF
11158 if ac_fn_c_try_link "$LINENO"; then :
11159 ac_cv_lib_gphoto2_gp_camera_new=yes
11160 else
11161 ac_cv_lib_gphoto2_gp_camera_new=no
11163 rm -f core conftest.err conftest.$ac_objext \
11164 conftest$ac_exeext conftest.$ac_ext
11165 LIBS=$ac_check_lib_save_LIBS
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11168 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
11169 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
11171 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
11173 else
11174 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11177 else
11178 GPHOTO2_LIBS=""; GPHOTO2_CFLAGS=""
11182 CPPFLAGS=$ac_save_CPPFLAGS
11183 test -z "$GPHOTO2_CFLAGS" || GPHOTO2_CFLAGS=`echo " $GPHOTO2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11184 test -z "$GPHOTO2_LIBS" || GPHOTO2_LIBS=`echo " $GPHOTO2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11186 if test -n "$GPHOTO2_PORT_CFLAGS"; then :
11188 elif test -n "$PKG_CONFIG"; then :
11189 GPHOTO2_PORT_CFLAGS=`$PKG_CONFIG --cflags libgphoto2_port 2>/dev/null`
11191 test "$cross_compiling" = yes || GPHOTO2_PORT_CFLAGS=${GPHOTO2_PORT_CFLAGS:-`gphoto2-port-config --cflags 2>/dev/null`}
11192 if test -n "$GPHOTO2_PORT_LIBS"; then :
11194 elif test -n "$PKG_CONFIG"; then :
11195 GPHOTO2_PORT_LIBS=`$PKG_CONFIG --libs libgphoto2_port 2>/dev/null`
11197 test "$cross_compiling" = yes || GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-`gphoto2-port-config --libs 2>/dev/null`}
11198 GPHOTO2_PORT_LIBS=${GPHOTO2_PORT_LIBS:-"-lgphoto2_port"}
11199 ac_save_CPPFLAGS=$CPPFLAGS
11200 CPPFLAGS="$CPPFLAGS $GPHOTO2_PORT_CFLAGS"
11201 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-port.h" "ac_cv_header_gphoto2_port_h" "$ac_includes_default"
11202 if test "x$ac_cv_header_gphoto2_port_h" = xyes; then :
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_port_info_list_new in -lgphoto2_port" >&5
11204 $as_echo_n "checking for gp_port_info_list_new in -lgphoto2_port... " >&6; }
11205 if ${ac_cv_lib_gphoto2_port_gp_port_info_list_new+:} false; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 ac_check_lib_save_LIBS=$LIBS
11209 LIBS="-lgphoto2_port $GPHOTO2_PORT_LIBS $LIBS"
11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11213 /* Override any GCC internal prototype to avoid an error.
11214 Use char because int might match the return type of a GCC
11215 builtin and then its argument prototype would still apply. */
11216 #ifdef __cplusplus
11217 extern "C"
11218 #endif
11219 char gp_port_info_list_new ();
11221 main ()
11223 return gp_port_info_list_new ();
11225 return 0;
11227 _ACEOF
11228 if ac_fn_c_try_link "$LINENO"; then :
11229 ac_cv_lib_gphoto2_port_gp_port_info_list_new=yes
11230 else
11231 ac_cv_lib_gphoto2_port_gp_port_info_list_new=no
11233 rm -f core conftest.err conftest.$ac_objext \
11234 conftest$ac_exeext conftest.$ac_ext
11235 LIBS=$ac_check_lib_save_LIBS
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&5
11238 $as_echo "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" >&6; }
11239 if test "x$ac_cv_lib_gphoto2_port_gp_port_info_list_new" = xyes; then :
11241 $as_echo "#define HAVE_GPHOTO2_PORT 1" >>confdefs.h
11243 else
11244 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11247 else
11248 GPHOTO2_PORT_LIBS=""; GPHOTO2_PORT_CFLAGS=""
11252 CPPFLAGS=$ac_save_CPPFLAGS
11253 test -z "$GPHOTO2_PORT_CFLAGS" || GPHOTO2_PORT_CFLAGS=`echo " $GPHOTO2_PORT_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11254 test -z "$GPHOTO2_PORT_LIBS" || GPHOTO2_PORT_LIBS=`echo " $GPHOTO2_PORT_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11257 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
11258 case "x$with_gphoto" in
11259 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
11260 xno) ;;
11261 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
11262 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11263 esac
11265 if test "$ac_cv_lib_gphoto2_port_gp_port_info_list_new" != "yes"; then :
11266 case "x$with_gphoto" in
11267 x) as_fn_append wine_notices "|libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected." ;;
11268 xno) ;;
11269 *) as_fn_error $? "libgphoto2_port ${notice_platform}development files not found, digital cameras won't be auto-detected.
11270 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
11271 esac
11275 if test "$ac_cv_header_resolv_h" = "yes"
11276 then
11277 ac_save_LIBS="$LIBS"
11278 for lib in '' -lresolv
11280 LIBS="$lib $ac_save_LIBS"
11281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11282 /* end confdefs.h. */
11283 #ifdef HAVE_NETINET_IN_H
11284 #include <netinet/in.h>
11285 #endif
11286 #include <resolv.h>
11288 main ()
11290 res_query("foo",ns_c_in,0,0,0);
11292 return 0;
11294 _ACEOF
11295 if ac_fn_c_try_link "$LINENO"; then :
11297 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
11299 RESOLVLIBS="$lib"
11302 rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
11304 if test "${RESOLVLIBS+set}" = set; then
11305 break
11307 done
11308 LIBS="$ac_save_LIBS"
11311 if test "x$with_lcms2" != "xno"
11312 then
11313 if test -n "$LCMS2_CFLAGS"; then :
11315 elif test -n "$PKG_CONFIG"; then :
11316 LCMS2_CFLAGS=`$PKG_CONFIG --cflags lcms2 2>/dev/null`
11319 if test -n "$LCMS2_LIBS"; then :
11321 elif test -n "$PKG_CONFIG"; then :
11322 LCMS2_LIBS=`$PKG_CONFIG --libs lcms2 2>/dev/null`
11325 LCMS2_LIBS=${LCMS2_LIBS:-"-llcms2"}
11326 ac_save_CPPFLAGS=$CPPFLAGS
11327 CPPFLAGS="$CPPFLAGS $LCMS2_CFLAGS"
11328 for ac_header in lcms2.h
11329 do :
11330 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
11331 if test "x$ac_cv_header_lcms2_h" = xyes; then :
11332 cat >>confdefs.h <<_ACEOF
11333 #define HAVE_LCMS2_H 1
11334 _ACEOF
11338 done
11340 if test "$ac_cv_header_lcms2_h" = "yes"
11341 then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms2" >&5
11343 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms2... " >&6; }
11344 if ${ac_cv_lib_lcms2_cmsOpenProfileFromFile+:} false; then :
11345 $as_echo_n "(cached) " >&6
11346 else
11347 ac_check_lib_save_LIBS=$LIBS
11348 LIBS="-llcms2 $LIBS"
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11355 #ifdef __cplusplus
11356 extern "C"
11357 #endif
11358 char cmsOpenProfileFromFile ();
11360 main ()
11362 return cmsOpenProfileFromFile ();
11364 return 0;
11366 _ACEOF
11367 if ac_fn_c_try_link "$LINENO"; then :
11368 ac_cv_lib_lcms2_cmsOpenProfileFromFile=yes
11369 else
11370 ac_cv_lib_lcms2_cmsOpenProfileFromFile=no
11372 rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11374 LIBS=$ac_check_lib_save_LIBS
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&5
11377 $as_echo "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" >&6; }
11378 if test "x$ac_cv_lib_lcms2_cmsOpenProfileFromFile" = xyes; then :
11380 $as_echo "#define HAVE_LCMS2 1" >>confdefs.h
11382 else
11383 LCMS2_LIBS=""
11386 else
11387 LCMS2_CFLAGS=""
11388 LCMS2_LIBS=""
11390 CPPFLAGS=$ac_save_CPPFLAGS
11391 test -z "$LCMS2_CFLAGS" || LCMS2_CFLAGS=`echo " $LCMS2_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11392 test -z "$LCMS2_LIBS" || LCMS2_LIBS=`echo " $LCMS2_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11395 if test "$ac_cv_lib_lcms2_cmsOpenProfileFromFile" != "yes"; then :
11396 case "x$with_cms" in
11397 x) as_fn_append wine_notices "|liblcms2 ${notice_platform}development files not found, Color Management won't be supported." ;;
11398 xno) ;;
11399 *) as_fn_error $? "liblcms2 ${notice_platform}development files not found, Color Management won't be supported.
11400 This is an error since --with-cms was requested." "$LINENO" 5 ;;
11401 esac
11404 if test "x$with_freetype" != "xno"
11405 then
11406 if test -n "$FREETYPE_CFLAGS"; then :
11408 elif test -n "$PKG_CONFIG"; then :
11409 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags freetype2 2>/dev/null`
11411 test "$cross_compiling" = yes || FREETYPE_CFLAGS=${FREETYPE_CFLAGS:-`(freetype-config --cflags || freetype2-config --cflags) 2>/dev/null`}
11412 if test -n "$FREETYPE_LIBS"; then :
11414 elif test -n "$PKG_CONFIG"; then :
11415 FREETYPE_LIBS=`$PKG_CONFIG --libs freetype2 2>/dev/null`
11417 test "$cross_compiling" = yes || FREETYPE_LIBS=${FREETYPE_LIBS:-`(freetype-config --libs || freetype2-config --libs) 2>/dev/null`}
11418 FREETYPE_LIBS=${FREETYPE_LIBS:-"-lfreetype"}
11419 ac_save_CPPFLAGS=$CPPFLAGS
11420 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
11422 $as_echo_n "checking for -lfreetype... " >&6; }
11423 if ${ac_cv_lib_soname_freetype+:} false; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 ac_check_soname_save_LIBS=$LIBS
11427 LIBS="-lfreetype $FREETYPE_LIBS $LIBS"
11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11431 /* Override any GCC internal prototype to avoid an error.
11432 Use char because int might match the return type of a GCC
11433 builtin and then its argument prototype would still apply. */
11434 #ifdef __cplusplus
11435 extern "C"
11436 #endif
11437 char FT_Init_FreeType ();
11439 main ()
11441 return FT_Init_FreeType ();
11443 return 0;
11445 _ACEOF
11446 if ac_fn_c_try_link "$LINENO"; then :
11447 case "$LIBEXT" in
11448 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11449 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'` ;;
11450 *) ac_cv_lib_soname_freetype=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfreetype\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfreetype\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
11451 if test "x$ac_cv_lib_soname_freetype" = x; then :
11452 ac_cv_lib_soname_freetype=`$LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
11453 fi ;;
11454 esac
11456 rm -f core conftest.err conftest.$ac_objext \
11457 conftest$ac_exeext conftest.$ac_ext
11458 LIBS=$ac_check_soname_save_LIBS
11460 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11462 $as_echo "not found" >&6; }
11463 ft_lib=no
11464 else
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
11466 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
11468 cat >>confdefs.h <<_ACEOF
11469 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
11470 _ACEOF
11472 ft_lib=yes
11474 if test "$ft_lib" = "yes"
11475 then
11476 for ac_header in ft2build.h \
11477 freetype/freetype.h \
11478 freetype/ftglyph.h \
11479 freetype/fttypes.h \
11480 freetype/tttables.h \
11481 freetype/ftsnames.h \
11482 freetype/ttnameid.h \
11483 freetype/ftoutln.h \
11484 freetype/ftwinfnt.h \
11485 freetype/ftmodapi.h \
11486 freetype/ftlcdfil.h
11487 do :
11488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11489 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
11490 # include <ft2build.h>
11491 #endif
11493 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11494 cat >>confdefs.h <<_ACEOF
11495 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11496 _ACEOF
11500 done
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504 #include <ft2build.h>
11505 #include <freetype/fttrigon.h>
11506 _ACEOF
11507 if ac_fn_c_try_cpp "$LINENO"; then :
11509 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
11511 wine_cv_fttrigon=yes
11512 else
11513 wine_cv_fttrigon=no
11515 rm -f conftest.err conftest.i conftest.$ac_ext
11516 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
11518 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
11520 cat >>confdefs.h <<_ACEOF
11521 #define HAVE_FT_TRUETYPEENGINETYPE 1
11522 _ACEOF
11527 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
11528 then
11530 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11532 else
11533 FREETYPE_LIBS=""
11535 else
11536 FREETYPE_LIBS=""
11538 CPPFLAGS=$ac_save_CPPFLAGS
11539 test -z "$FREETYPE_CFLAGS" || FREETYPE_CFLAGS=`echo " $FREETYPE_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11540 test -z "$FREETYPE_LIBS" || FREETYPE_LIBS=`echo " $FREETYPE_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11543 if test "x$ac_cv_header_freetype_freetype_h" != xyes -o "x$wine_cv_fttrigon" != xyes; then :
11544 case "x$with_freetype" in
11545 xno) ;;
11546 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
11547 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
11548 esac
11550 test "x$ac_cv_header_freetype_freetype_h" = xyes -a "x$wine_cv_fttrigon" = xyes || enable_fonts=${enable_fonts:-no}
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
11553 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
11554 if ${ac_cv_c_ppdev+:} false; then :
11555 $as_echo_n "(cached) " >&6
11556 else
11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559 #ifdef HAVE_SYS_IOCTL_H
11560 # include <sys/ioctl.h>
11561 #endif
11562 #include <linux/ppdev.h>
11564 main ()
11566 ioctl (1,PPCLAIM,0)
11568 return 0;
11570 _ACEOF
11571 if ac_fn_c_try_compile "$LINENO"; then :
11572 ac_cv_c_ppdev="yes"
11573 else
11574 ac_cv_c_ppdev="no"
11576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
11579 $as_echo "$ac_cv_c_ppdev" >&6; }
11580 if test "$ac_cv_c_ppdev" = "yes"
11581 then
11583 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
11587 ac_wine_check_funcs_save_LIBS="$LIBS"
11588 LIBS="$LIBS $LIBPTHREAD"
11589 for ac_func in \
11590 pthread_attr_get_np \
11591 pthread_getattr_np \
11592 pthread_getthreadid_np \
11593 pthread_get_stackaddr_np \
11594 pthread_get_stacksize_np
11595 do :
11596 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11597 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11598 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11599 cat >>confdefs.h <<_ACEOF
11600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11601 _ACEOF
11604 done
11606 LIBS="$ac_wine_check_funcs_save_LIBS"
11608 if test "$ac_cv_header_zlib_h" = "yes"
11609 then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
11611 $as_echo_n "checking for inflate in -lz... " >&6; }
11612 if ${ac_cv_lib_z_inflate+:} false; then :
11613 $as_echo_n "(cached) " >&6
11614 else
11615 ac_check_lib_save_LIBS=$LIBS
11616 LIBS="-lz $LIBS"
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11620 /* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
11623 #ifdef __cplusplus
11624 extern "C"
11625 #endif
11626 char inflate ();
11628 main ()
11630 return inflate ();
11632 return 0;
11634 _ACEOF
11635 if ac_fn_c_try_link "$LINENO"; then :
11636 ac_cv_lib_z_inflate=yes
11637 else
11638 ac_cv_lib_z_inflate=no
11640 rm -f core conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
11642 LIBS=$ac_check_lib_save_LIBS
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
11645 $as_echo "$ac_cv_lib_z_inflate" >&6; }
11646 if test "x$ac_cv_lib_z_inflate" = xyes; then :
11648 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11650 ZLIB="-lz"
11655 if test "x$ZLIB" = "x"; then :
11656 case "x$with_zlib" in
11657 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
11658 xno) ;;
11659 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
11660 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
11661 esac
11664 if test "x$enable_tools" != xno
11665 then
11666 if test "$ac_cv_header_gettext_po_h" = "yes"
11667 then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
11669 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
11670 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
11671 $as_echo_n "(cached) " >&6
11672 else
11673 ac_check_lib_save_LIBS=$LIBS
11674 LIBS="-lgettextpo $LIBS"
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11678 /* Override any GCC internal prototype to avoid an error.
11679 Use char because int might match the return type of a GCC
11680 builtin and then its argument prototype would still apply. */
11681 #ifdef __cplusplus
11682 extern "C"
11683 #endif
11684 char po_message_msgctxt ();
11686 main ()
11688 return po_message_msgctxt ();
11690 return 0;
11692 _ACEOF
11693 if ac_fn_c_try_link "$LINENO"; then :
11694 ac_cv_lib_gettextpo_po_message_msgctxt=yes
11695 else
11696 ac_cv_lib_gettextpo_po_message_msgctxt=no
11698 rm -f core conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext conftest.$ac_ext
11700 LIBS=$ac_check_lib_save_LIBS
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
11703 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
11704 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
11706 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
11708 LIBGETTEXTPO="-lgettextpo"
11713 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
11714 case "x$with_gettextpo" in
11715 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
11716 xno) ;;
11717 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
11718 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
11719 esac
11723 if test "x$with_gstreamer" != "xno"
11724 then
11725 if test -n "$GSTREAMER_CFLAGS"; then :
11727 elif test -n "$PKG_CONFIG"; then :
11728 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
11731 if test -n "$GSTREAMER_LIBS"; then :
11733 elif test -n "$PKG_CONFIG"; then :
11734 GSTREAMER_LIBS=`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`
11738 ac_save_CPPFLAGS=$CPPFLAGS
11739 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
11740 ac_gst_incl=""
11741 for i in $GSTREAMER_CFLAGS
11743 case "$i" in
11744 -I*) ac_gst_incl="$ac_gst_incl $i";;
11745 esac
11746 done
11747 GSTREAMER_CFLAGS=$ac_gst_incl
11748 CPPFLAGS="$ac_save_CPPFLAGS $GSTREAMER_CFLAGS"
11749 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
11750 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
11751 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
11752 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
11754 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
11755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11756 /* end confdefs.h. */
11757 #include <gst/app/gstappsink.h>
11759 main ()
11761 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
11763 return 0;
11765 _ACEOF
11766 if ac_fn_c_try_compile "$LINENO"; then :
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11768 $as_echo "yes" >&6; }
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
11770 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
11771 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
11772 $as_echo_n "(cached) " >&6
11773 else
11774 ac_check_lib_save_LIBS=$LIBS
11775 LIBS="-lgstreamer-0.10 $LIBS"
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11779 /* Override any GCC internal prototype to avoid an error.
11780 Use char because int might match the return type of a GCC
11781 builtin and then its argument prototype would still apply. */
11782 #ifdef __cplusplus
11783 extern "C"
11784 #endif
11785 char gst_pad_get_caps_reffed ();
11787 main ()
11789 return gst_pad_get_caps_reffed ();
11791 return 0;
11793 _ACEOF
11794 if ac_fn_c_try_link "$LINENO"; then :
11795 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
11796 else
11797 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
11799 rm -f core conftest.err conftest.$ac_objext \
11800 conftest$ac_exeext conftest.$ac_ext
11801 LIBS=$ac_check_lib_save_LIBS
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
11804 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
11805 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
11807 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
11808 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 ac_check_lib_save_LIBS=$LIBS
11812 LIBS="-lgstapp-0.10 $GSTREAMER_LIBS $LIBS"
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11814 /* end confdefs.h. */
11816 /* Override any GCC internal prototype to avoid an error.
11817 Use char because int might match the return type of a GCC
11818 builtin and then its argument prototype would still apply. */
11819 #ifdef __cplusplus
11820 extern "C"
11821 #endif
11822 char gst_app_buffer_new ();
11824 main ()
11826 return gst_app_buffer_new ();
11828 return 0;
11830 _ACEOF
11831 if ac_fn_c_try_link "$LINENO"; then :
11832 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
11833 else
11834 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
11836 rm -f core conftest.err conftest.$ac_objext \
11837 conftest$ac_exeext conftest.$ac_ext
11838 LIBS=$ac_check_lib_save_LIBS
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
11841 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
11842 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
11848 else
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 else
11857 GSTREAMER_CFLAGS=""
11861 CPPFLAGS=$ac_save_CPPFLAGS
11862 test -z "$GSTREAMER_CFLAGS" || GSTREAMER_CFLAGS=`echo " $GSTREAMER_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
11863 test -z "$GSTREAMER_LIBS" || GSTREAMER_LIBS=`echo " $GSTREAMER_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
11866 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
11867 case "x$with_gstreamer" in
11868 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
11869 xno) ;;
11870 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
11871 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
11872 esac
11874 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
11876 ALSALIBS=""
11878 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11879 then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
11881 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
11882 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
11883 $as_echo_n "(cached) " >&6
11884 else
11885 ac_check_lib_save_LIBS=$LIBS
11886 LIBS="-lasound $LIBS"
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11890 /* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11893 #ifdef __cplusplus
11894 extern "C"
11895 #endif
11896 char snd_pcm_hw_params_get_access_mask ();
11898 main ()
11900 return snd_pcm_hw_params_get_access_mask ();
11902 return 0;
11904 _ACEOF
11905 if ac_fn_c_try_link "$LINENO"; then :
11906 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
11907 else
11908 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
11910 rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 LIBS=$ac_check_lib_save_LIBS
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
11915 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
11916 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11919 #ifdef HAVE_ALSA_ASOUNDLIB_H
11920 #include <alsa/asoundlib.h>
11921 #elif defined(HAVE_SYS_ASOUNDLIB_H)
11922 #include <sys/asoundlib.h>
11923 #endif
11925 main ()
11927 snd_pcm_hw_params_get_access_mask(NULL, NULL)
11929 return 0;
11931 _ACEOF
11932 if ac_fn_c_try_compile "$LINENO"; then :
11933 ALSALIBS="-lasound"
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940 if test "x$with_oss" != xno
11941 then
11942 ac_save_CPPFLAGS="$CPPFLAGS"
11943 if test -f /etc/oss.conf
11944 then
11945 . /etc/oss.conf
11947 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
11948 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
11949 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11950 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11951 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
11953 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
11955 cat >>confdefs.h <<_ACEOF
11956 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
11957 _ACEOF
11959 OSS4INCL="$ac_oss_incl"
11966 CPPFLAGS="$ac_save_CPPFLAGS"
11967 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
11968 then
11969 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
11973 if test "x$with_capi" != "xno"
11974 then
11975 if test -n "$CAPI20_CFLAGS"; then :
11977 elif test -n "$PKG_CONFIG"; then :
11978 CAPI20_CFLAGS=`$PKG_CONFIG --cflags capi20 2>/dev/null`
11981 if test -n "$CAPI20_LIBS"; then :
11983 elif test -n "$PKG_CONFIG"; then :
11984 CAPI20_LIBS=`$PKG_CONFIG --libs capi20 2>/dev/null`
11988 ac_save_CPPFLAGS=$CPPFLAGS
11989 CPPFLAGS="$CPPFLAGS $CAPI20_CFLAGS"
11990 for ac_header in capi20.h linux/capi.h
11991 do :
11992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11993 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define __user
11995 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11996 cat >>confdefs.h <<_ACEOF
11997 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11998 _ACEOF
12002 done
12004 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
12005 then
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
12007 $as_echo_n "checking for -lcapi20... " >&6; }
12008 if ${ac_cv_lib_soname_capi20+:} false; then :
12009 $as_echo_n "(cached) " >&6
12010 else
12011 ac_check_soname_save_LIBS=$LIBS
12012 LIBS="-lcapi20 $CAPI20_LIBS $LIBS"
12013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h. */
12016 /* Override any GCC internal prototype to avoid an error.
12017 Use char because int might match the return type of a GCC
12018 builtin and then its argument prototype would still apply. */
12019 #ifdef __cplusplus
12020 extern "C"
12021 #endif
12022 char capi20_register ();
12024 main ()
12026 return capi20_register ();
12028 return 0;
12030 _ACEOF
12031 if ac_fn_c_try_link "$LINENO"; then :
12032 case "$LIBEXT" in
12033 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12034 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'` ;;
12035 *) ac_cv_lib_soname_capi20=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcapi20\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcapi20\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12036 if test "x$ac_cv_lib_soname_capi20" = x; then :
12037 ac_cv_lib_soname_capi20=`$LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12038 fi ;;
12039 esac
12041 rm -f core conftest.err conftest.$ac_objext \
12042 conftest$ac_exeext conftest.$ac_ext
12043 LIBS=$ac_check_soname_save_LIBS
12045 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12047 $as_echo "not found" >&6; }
12049 else
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
12051 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
12053 cat >>confdefs.h <<_ACEOF
12054 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
12055 _ACEOF
12060 CPPFLAGS=$ac_save_CPPFLAGS
12061 test -z "$CAPI20_CFLAGS" || CAPI20_CFLAGS=`echo " $CAPI20_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12062 test -z "$CAPI20_LIBS" || CAPI20_LIBS=`echo " $CAPI20_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12065 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
12066 case "x$with_capi" in
12067 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
12068 xno) ;;
12069 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
12070 This is an error since --with-capi was requested." "$LINENO" 5 ;;
12071 esac
12074 CUPSINCL=""
12076 if test "x$with_cups" != "xno"
12077 then
12078 ac_save_CPPFLAGS="$CPPFLAGS"
12079 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
12080 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
12081 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
12082 for ac_header in cups/cups.h
12083 do :
12084 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
12085 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
12086 cat >>confdefs.h <<_ACEOF
12087 #define HAVE_CUPS_CUPS_H 1
12088 _ACEOF
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
12090 $as_echo_n "checking for -lcups... " >&6; }
12091 if ${ac_cv_lib_soname_cups+:} false; then :
12092 $as_echo_n "(cached) " >&6
12093 else
12094 ac_check_soname_save_LIBS=$LIBS
12095 LIBS="-lcups $ac_cups_libs $LIBS"
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12099 /* Override any GCC internal prototype to avoid an error.
12100 Use char because int might match the return type of a GCC
12101 builtin and then its argument prototype would still apply. */
12102 #ifdef __cplusplus
12103 extern "C"
12104 #endif
12105 char cupsGetDefault ();
12107 main ()
12109 return cupsGetDefault ();
12111 return 0;
12113 _ACEOF
12114 if ac_fn_c_try_link "$LINENO"; then :
12115 case "$LIBEXT" in
12116 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12117 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'` ;;
12118 *) ac_cv_lib_soname_cups=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libcups\\.$LIBEXT" | sed -e "s/^.*\\[\\(libcups\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12119 if test "x$ac_cv_lib_soname_cups" = x; then :
12120 ac_cv_lib_soname_cups=`$LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12121 fi ;;
12122 esac
12124 rm -f core conftest.err conftest.$ac_objext \
12125 conftest$ac_exeext conftest.$ac_ext
12126 LIBS=$ac_check_soname_save_LIBS
12128 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12130 $as_echo "not found" >&6; }
12132 else
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
12134 $as_echo "$ac_cv_lib_soname_cups" >&6; }
12136 cat >>confdefs.h <<_ACEOF
12137 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12138 _ACEOF
12140 CUPSINCL="$ac_cups_cflags"
12144 done
12146 CPPFLAGS="$ac_save_CPPFLAGS"
12148 if test "x$ac_cv_lib_soname_cups" = "x"; then :
12149 case "x$with_cups" in
12150 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
12151 xno) ;;
12152 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
12153 This is an error since --with-cups was requested." "$LINENO" 5 ;;
12154 esac
12157 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12158 then
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12160 $as_echo_n "checking for -lfontconfig... " >&6; }
12161 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 ac_check_soname_save_LIBS=$LIBS
12165 LIBS="-lfontconfig $LIBS"
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12169 /* Override any GCC internal prototype to avoid an error.
12170 Use char because int might match the return type of a GCC
12171 builtin and then its argument prototype would still apply. */
12172 #ifdef __cplusplus
12173 extern "C"
12174 #endif
12175 char FcInit ();
12177 main ()
12179 return FcInit ();
12181 return 0;
12183 _ACEOF
12184 if ac_fn_c_try_link "$LINENO"; then :
12185 case "$LIBEXT" in
12186 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12187 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'` ;;
12188 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12189 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12190 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12191 fi ;;
12192 esac
12194 rm -f core conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_soname_save_LIBS
12198 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12200 $as_echo "not found" >&6; }
12202 else
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12204 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12206 cat >>confdefs.h <<_ACEOF
12207 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12208 _ACEOF
12212 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
12213 then
12214 ac_save_CPPFLAGS="$CPPFLAGS"
12215 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
12216 $as_unset ac_cv_header_fontconfig_fontconfig_h
12217 for ac_header in fontconfig/fontconfig.h
12218 do :
12219 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
12220 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
12221 cat >>confdefs.h <<_ACEOF
12222 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
12223 _ACEOF
12227 done
12229 CPPFLAGS="$ac_save_CPPFLAGS"
12230 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
12231 then
12232 FONTCONFIGINCL="$X_CFLAGS"
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
12235 $as_echo_n "checking for -lfontconfig... " >&6; }
12236 if ${ac_cv_lib_soname_fontconfig+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238 else
12239 ac_check_soname_save_LIBS=$LIBS
12240 LIBS="-lfontconfig $X_LIBS $LIBS"
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12244 /* Override any GCC internal prototype to avoid an error.
12245 Use char because int might match the return type of a GCC
12246 builtin and then its argument prototype would still apply. */
12247 #ifdef __cplusplus
12248 extern "C"
12249 #endif
12250 char FcInit ();
12252 main ()
12254 return FcInit ();
12256 return 0;
12258 _ACEOF
12259 if ac_fn_c_try_link "$LINENO"; then :
12260 case "$LIBEXT" in
12261 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12262 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'` ;;
12263 *) ac_cv_lib_soname_fontconfig=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libfontconfig\\.$LIBEXT" | sed -e "s/^.*\\[\\(libfontconfig\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12264 if test "x$ac_cv_lib_soname_fontconfig" = x; then :
12265 ac_cv_lib_soname_fontconfig=`$LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12266 fi ;;
12267 esac
12269 rm -f core conftest.err conftest.$ac_objext \
12270 conftest$ac_exeext conftest.$ac_ext
12271 LIBS=$ac_check_soname_save_LIBS
12273 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12275 $as_echo "not found" >&6; }
12277 else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
12279 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
12281 cat >>confdefs.h <<_ACEOF
12282 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
12283 _ACEOF
12289 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
12290 case "x$with_fontconfig" in
12291 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
12292 xno) ;;
12293 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
12294 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
12295 esac
12298 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
12299 then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
12301 $as_echo_n "checking for -lgsm... " >&6; }
12302 if ${ac_cv_lib_soname_gsm+:} false; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 ac_check_soname_save_LIBS=$LIBS
12306 LIBS="-lgsm $LIBS"
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12310 /* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 char gsm_create ();
12318 main ()
12320 return gsm_create ();
12322 return 0;
12324 _ACEOF
12325 if ac_fn_c_try_link "$LINENO"; then :
12326 case "$LIBEXT" in
12327 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12328 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'` ;;
12329 *) ac_cv_lib_soname_gsm=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libgsm\\.$LIBEXT" | sed -e "s/^.*\\[\\(libgsm\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12330 if test "x$ac_cv_lib_soname_gsm" = x; then :
12331 ac_cv_lib_soname_gsm=`$LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12332 fi ;;
12333 esac
12335 rm -f core conftest.err conftest.$ac_objext \
12336 conftest$ac_exeext conftest.$ac_ext
12337 LIBS=$ac_check_soname_save_LIBS
12339 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12341 $as_echo "not found" >&6; }
12343 else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
12345 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
12347 cat >>confdefs.h <<_ACEOF
12348 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
12349 _ACEOF
12354 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
12355 case "x$with_gsm" in
12356 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
12357 xno) ;;
12358 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
12359 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
12360 esac
12363 if test "x$with_jpeg" != "xno"
12364 then
12365 if test -n "$JPEG_CFLAGS"; then :
12367 elif test -n "$PKG_CONFIG"; then :
12368 JPEG_CFLAGS=`$PKG_CONFIG --cflags libjpeg 2>/dev/null`
12371 if test -n "$JPEG_LIBS"; then :
12373 elif test -n "$PKG_CONFIG"; then :
12374 JPEG_LIBS=`$PKG_CONFIG --libs libjpeg 2>/dev/null`
12378 ac_save_CPPFLAGS=$CPPFLAGS
12379 CPPFLAGS="$CPPFLAGS $JPEG_CFLAGS"
12380 for ac_header in jpeglib.h
12381 do :
12382 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
12383 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
12384 cat >>confdefs.h <<_ACEOF
12385 #define HAVE_JPEGLIB_H 1
12386 _ACEOF
12390 done
12392 if test "$ac_cv_header_jpeglib_h" = "yes"
12393 then
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
12395 $as_echo_n "checking for -ljpeg... " >&6; }
12396 if ${ac_cv_lib_soname_jpeg+:} false; then :
12397 $as_echo_n "(cached) " >&6
12398 else
12399 ac_check_soname_save_LIBS=$LIBS
12400 LIBS="-ljpeg $JPEG_LIBS $LIBS"
12401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12402 /* end confdefs.h. */
12404 /* Override any GCC internal prototype to avoid an error.
12405 Use char because int might match the return type of a GCC
12406 builtin and then its argument prototype would still apply. */
12407 #ifdef __cplusplus
12408 extern "C"
12409 #endif
12410 char jpeg_start_decompress ();
12412 main ()
12414 return jpeg_start_decompress ();
12416 return 0;
12418 _ACEOF
12419 if ac_fn_c_try_link "$LINENO"; then :
12420 case "$LIBEXT" in
12421 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12422 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'` ;;
12423 *) ac_cv_lib_soname_jpeg=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libjpeg\\.$LIBEXT" | sed -e "s/^.*\\[\\(libjpeg\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12424 if test "x$ac_cv_lib_soname_jpeg" = x; then :
12425 ac_cv_lib_soname_jpeg=`$LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12426 fi ;;
12427 esac
12429 rm -f core conftest.err conftest.$ac_objext \
12430 conftest$ac_exeext conftest.$ac_ext
12431 LIBS=$ac_check_soname_save_LIBS
12433 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12435 $as_echo "not found" >&6; }
12436 JPEG_CFLAGS=""
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
12439 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
12441 cat >>confdefs.h <<_ACEOF
12442 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
12443 _ACEOF
12447 else
12448 JPEG_CFLAGS=""
12450 CPPFLAGS=$ac_save_CPPFLAGS
12451 test -z "$JPEG_CFLAGS" || JPEG_CFLAGS=`echo " $JPEG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12452 test -z "$JPEG_LIBS" || JPEG_LIBS=`echo " $JPEG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12455 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
12456 case "x$with_jpeg" in
12457 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
12458 xno) ;;
12459 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
12460 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
12461 esac
12464 if test "x$with_png" != "xno"
12465 then
12466 if test -n "$PNG_CFLAGS"; then :
12468 elif test -n "$PKG_CONFIG"; then :
12469 PNG_CFLAGS=`$PKG_CONFIG --cflags libpng 2>/dev/null`
12471 test "$cross_compiling" = yes || PNG_CFLAGS=${PNG_CFLAGS:-$X_CFLAGS}
12472 if test -n "$PNG_LIBS"; then :
12474 elif test -n "$PKG_CONFIG"; then :
12475 PNG_LIBS=`$PKG_CONFIG --libs libpng 2>/dev/null`
12477 test "$cross_compiling" = yes || PNG_LIBS=${PNG_LIBS:-$X_LIBS}
12479 ac_save_CPPFLAGS=$CPPFLAGS
12480 CPPFLAGS="$CPPFLAGS $PNG_CFLAGS"
12481 for ac_header in png.h
12482 do :
12483 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
12484 if test "x$ac_cv_header_png_h" = xyes; then :
12485 cat >>confdefs.h <<_ACEOF
12486 #define HAVE_PNG_H 1
12487 _ACEOF
12491 done
12493 if test "$ac_cv_header_png_h" = "yes"
12494 then
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
12496 $as_echo_n "checking for -lpng... " >&6; }
12497 if ${ac_cv_lib_soname_png+:} false; then :
12498 $as_echo_n "(cached) " >&6
12499 else
12500 ac_check_soname_save_LIBS=$LIBS
12501 LIBS="-lpng $PNG_LIBS -lm -lz $LIBS"
12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12505 /* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
12508 #ifdef __cplusplus
12509 extern "C"
12510 #endif
12511 char png_create_read_struct ();
12513 main ()
12515 return png_create_read_struct ();
12517 return 0;
12519 _ACEOF
12520 if ac_fn_c_try_link "$LINENO"; then :
12521 case "$LIBEXT" in
12522 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12523 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'` ;;
12524 *) 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'`
12525 if test "x$ac_cv_lib_soname_png" = x; then :
12526 ac_cv_lib_soname_png=`$LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12527 fi ;;
12528 esac
12530 rm -f core conftest.err conftest.$ac_objext \
12531 conftest$ac_exeext conftest.$ac_ext
12532 LIBS=$ac_check_soname_save_LIBS
12534 if test "x$ac_cv_lib_soname_png" = "x"; then :
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12536 $as_echo "not found" >&6; }
12537 PNG_CFLAGS=""
12538 else
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
12540 $as_echo "$ac_cv_lib_soname_png" >&6; }
12542 cat >>confdefs.h <<_ACEOF
12543 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
12544 _ACEOF
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12548 #include <png.h>
12550 main ()
12552 typeof(png_set_expand_gray_1_2_4_to_8) *p
12554 return 0;
12556 _ACEOF
12557 if ac_fn_c_try_compile "$LINENO"; then :
12559 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
12562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12564 else
12565 PNG_CFLAGS=""
12567 CPPFLAGS=$ac_save_CPPFLAGS
12568 test -z "$PNG_CFLAGS" || PNG_CFLAGS=`echo " $PNG_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12569 test -z "$PNG_LIBS" || PNG_LIBS=`echo " $PNG_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12572 if test "x$ac_cv_lib_soname_png" = "x"; then :
12573 case "x$with_png" in
12574 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
12575 xno) ;;
12576 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
12577 This is an error since --with-png was requested." "$LINENO" 5 ;;
12578 esac
12581 if test "x$with_tiff" != "xno"
12582 then
12583 if test -n "$TIFF_CFLAGS"; then :
12585 elif test -n "$PKG_CONFIG"; then :
12586 TIFF_CFLAGS=`$PKG_CONFIG --cflags libtiff 2>/dev/null`
12589 if test -n "$TIFF_LIBS"; then :
12591 elif test -n "$PKG_CONFIG"; then :
12592 TIFF_LIBS=`$PKG_CONFIG --libs libtiff 2>/dev/null`
12596 ac_save_CPPFLAGS=$CPPFLAGS
12597 CPPFLAGS="$CPPFLAGS $TIFF_CFLAGS"
12598 for ac_header in tiffio.h
12599 do :
12600 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
12601 if test "x$ac_cv_header_tiffio_h" = xyes; then :
12602 cat >>confdefs.h <<_ACEOF
12603 #define HAVE_TIFFIO_H 1
12604 _ACEOF
12608 done
12610 if test "$ac_cv_header_tiffio_h" = "yes"
12611 then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
12613 $as_echo_n "checking for -ltiff... " >&6; }
12614 if ${ac_cv_lib_soname_tiff+:} false; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617 ac_check_soname_save_LIBS=$LIBS
12618 LIBS="-ltiff $TIFF_LIBS $LIBS"
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12622 /* Override any GCC internal prototype to avoid an error.
12623 Use char because int might match the return type of a GCC
12624 builtin and then its argument prototype would still apply. */
12625 #ifdef __cplusplus
12626 extern "C"
12627 #endif
12628 char TIFFClientOpen ();
12630 main ()
12632 return TIFFClientOpen ();
12634 return 0;
12636 _ACEOF
12637 if ac_fn_c_try_link "$LINENO"; then :
12638 case "$LIBEXT" in
12639 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12640 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'` ;;
12641 *) ac_cv_lib_soname_tiff=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libtiff\\.$LIBEXT" | sed -e "s/^.*\\[\\(libtiff\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12642 if test "x$ac_cv_lib_soname_tiff" = x; then :
12643 ac_cv_lib_soname_tiff=`$LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12644 fi ;;
12645 esac
12647 rm -f core conftest.err conftest.$ac_objext \
12648 conftest$ac_exeext conftest.$ac_ext
12649 LIBS=$ac_check_soname_save_LIBS
12651 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12653 $as_echo "not found" >&6; }
12655 else
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
12657 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
12659 cat >>confdefs.h <<_ACEOF
12660 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
12661 _ACEOF
12666 CPPFLAGS=$ac_save_CPPFLAGS
12667 test -z "$TIFF_CFLAGS" || TIFF_CFLAGS=`echo " $TIFF_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12668 test -z "$TIFF_LIBS" || TIFF_LIBS=`echo " $TIFF_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12671 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
12672 case "x$with_tiff" in
12673 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
12674 xno) ;;
12675 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
12676 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
12677 esac
12680 if test "x$with_mpg123" != "xno"
12681 then
12682 if test -n "$MPG123_CFLAGS"; then :
12684 elif test -n "$PKG_CONFIG"; then :
12685 MPG123_CFLAGS=`$PKG_CONFIG --cflags libmpg123 2>/dev/null`
12688 if test -n "$MPG123_LIBS"; then :
12690 elif test -n "$PKG_CONFIG"; then :
12691 MPG123_LIBS=`$PKG_CONFIG --libs libmpg123 2>/dev/null`
12694 MPG123_LIBS=${MPG123_LIBS:-"-lmpg123"}
12695 ac_save_CPPFLAGS=$CPPFLAGS
12696 CPPFLAGS="$CPPFLAGS $MPG123_CFLAGS"
12697 for ac_header in mpg123.h
12698 do :
12699 ac_fn_c_check_header_mongrel "$LINENO" "mpg123.h" "ac_cv_header_mpg123_h" "$ac_includes_default"
12700 if test "x$ac_cv_header_mpg123_h" = xyes; then :
12701 cat >>confdefs.h <<_ACEOF
12702 #define HAVE_MPG123_H 1
12703 _ACEOF
12707 done
12709 if test "$ac_cv_header_mpg123_h" = "yes"
12710 then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
12712 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
12713 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
12714 $as_echo_n "(cached) " >&6
12715 else
12716 ac_check_lib_save_LIBS=$LIBS
12717 LIBS="-lmpg123 $MPG123_LIBS $LIBS"
12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12721 /* Override any GCC internal prototype to avoid an error.
12722 Use char because int might match the return type of a GCC
12723 builtin and then its argument prototype would still apply. */
12724 #ifdef __cplusplus
12725 extern "C"
12726 #endif
12727 char mpg123_feed ();
12729 main ()
12731 return mpg123_feed ();
12733 return 0;
12735 _ACEOF
12736 if ac_fn_c_try_link "$LINENO"; then :
12737 ac_cv_lib_mpg123_mpg123_feed=yes
12738 else
12739 ac_cv_lib_mpg123_mpg123_feed=no
12741 rm -f core conftest.err conftest.$ac_objext \
12742 conftest$ac_exeext conftest.$ac_ext
12743 LIBS=$ac_check_lib_save_LIBS
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
12746 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
12747 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
12749 else
12750 MPG123_LIBS=""
12753 else
12754 MPG123_CFLAGS=""
12755 MPG123_LIBS=""
12757 CPPFLAGS=$ac_save_CPPFLAGS
12758 test -z "$MPG123_CFLAGS" || MPG123_CFLAGS=`echo " $MPG123_CFLAGS" | sed 's/ -I\([^/]\)/ -I\$(top_builddir)\/\1/g'`
12759 test -z "$MPG123_LIBS" || MPG123_LIBS=`echo " $MPG123_LIBS" | sed 's/ -L\([^/]\)/ -L\$(top_builddir)\/\1/g'`
12762 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
12763 case "x$with_mpg123" in
12764 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
12765 xno) ;;
12766 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
12767 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
12768 esac
12770 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}
12772 if test "$ac_cv_header_AL_al_h" = "yes"
12773 then
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
12775 $as_echo_n "checking for -lopenal... " >&6; }
12776 if ${ac_cv_lib_soname_openal+:} false; then :
12777 $as_echo_n "(cached) " >&6
12778 else
12779 ac_check_soname_save_LIBS=$LIBS
12780 LIBS="-lopenal $LIBS"
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12784 /* Override any GCC internal prototype to avoid an error.
12785 Use char because int might match the return type of a GCC
12786 builtin and then its argument prototype would still apply. */
12787 #ifdef __cplusplus
12788 extern "C"
12789 #endif
12790 char alGetSource3i ();
12792 main ()
12794 return alGetSource3i ();
12796 return 0;
12798 _ACEOF
12799 if ac_fn_c_try_link "$LINENO"; then :
12800 case "$LIBEXT" in
12801 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12802 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'` ;;
12803 *) ac_cv_lib_soname_openal=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libopenal\\.$LIBEXT" | sed -e "s/^.*\\[\\(libopenal\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12804 if test "x$ac_cv_lib_soname_openal" = x; then :
12805 ac_cv_lib_soname_openal=`$LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12806 fi ;;
12807 esac
12809 rm -f core conftest.err conftest.$ac_objext \
12810 conftest$ac_exeext conftest.$ac_ext
12811 LIBS=$ac_check_soname_save_LIBS
12813 if test "x$ac_cv_lib_soname_openal" = "x"; then :
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12815 $as_echo "not found" >&6; }
12817 else
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
12819 $as_echo "$ac_cv_lib_soname_openal" >&6; }
12821 cat >>confdefs.h <<_ACEOF
12822 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
12823 _ACEOF
12825 LIBOPENAL="-lopenal"
12827 ac_cv_lib_openal=yes
12829 cat >>confdefs.h <<_ACEOF
12830 #define HAVE_OPENAL 1
12831 _ACEOF
12835 if test "x$ac_cv_lib_openal" != xyes; then :
12836 case "x$with_openal" in
12837 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
12838 xno) ;;
12839 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
12840 This is an error since --with-openal was requested." "$LINENO" 5 ;;
12841 esac
12843 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
12845 if test "$ac_cv_header_kstat_h" = "yes"
12846 then
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
12848 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
12849 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
12850 $as_echo_n "(cached) " >&6
12851 else
12852 ac_check_lib_save_LIBS=$LIBS
12853 LIBS="-lkstat $LIBS"
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12857 /* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12860 #ifdef __cplusplus
12861 extern "C"
12862 #endif
12863 char kstat_open ();
12865 main ()
12867 return kstat_open ();
12869 return 0;
12871 _ACEOF
12872 if ac_fn_c_try_link "$LINENO"; then :
12873 ac_cv_lib_kstat_kstat_open=yes
12874 else
12875 ac_cv_lib_kstat_kstat_open=no
12877 rm -f core conftest.err conftest.$ac_objext \
12878 conftest$ac_exeext conftest.$ac_ext
12879 LIBS=$ac_check_lib_save_LIBS
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
12882 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
12883 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
12885 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
12887 LIBKSTAT="-lkstat"
12893 if test "$ac_cv_header_libprocstat_h" = "yes"
12894 then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5
12896 $as_echo_n "checking for procstat_open_sysctl in -lprocstat... " >&6; }
12897 if ${ac_cv_lib_procstat_procstat_open_sysctl+:} false; then :
12898 $as_echo_n "(cached) " >&6
12899 else
12900 ac_check_lib_save_LIBS=$LIBS
12901 LIBS="-lprocstat $LIBS"
12902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12903 /* end confdefs.h. */
12905 /* Override any GCC internal prototype to avoid an error.
12906 Use char because int might match the return type of a GCC
12907 builtin and then its argument prototype would still apply. */
12908 #ifdef __cplusplus
12909 extern "C"
12910 #endif
12911 char procstat_open_sysctl ();
12913 main ()
12915 return procstat_open_sysctl ();
12917 return 0;
12919 _ACEOF
12920 if ac_fn_c_try_link "$LINENO"; then :
12921 ac_cv_lib_procstat_procstat_open_sysctl=yes
12922 else
12923 ac_cv_lib_procstat_procstat_open_sysctl=no
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927 LIBS=$ac_check_lib_save_LIBS
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5
12930 $as_echo "$ac_cv_lib_procstat_procstat_open_sysctl" >&6; }
12931 if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes; then :
12933 $as_echo "#define HAVE_LIBPROCSTAT 1" >>confdefs.h
12935 LIBPROCSTAT="-lprocstat"
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
12942 $as_echo_n "checking for -lodbc... " >&6; }
12943 if ${ac_cv_lib_soname_odbc+:} false; then :
12944 $as_echo_n "(cached) " >&6
12945 else
12946 ac_check_soname_save_LIBS=$LIBS
12947 LIBS="-lodbc $LIBS"
12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h. */
12951 /* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
12954 #ifdef __cplusplus
12955 extern "C"
12956 #endif
12957 char SQLConnect ();
12959 main ()
12961 return SQLConnect ();
12963 return 0;
12965 _ACEOF
12966 if ac_fn_c_try_link "$LINENO"; then :
12967 case "$LIBEXT" in
12968 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
12969 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'` ;;
12970 *) ac_cv_lib_soname_odbc=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libodbc\\.$LIBEXT" | sed -e "s/^.*\\[\\(libodbc\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
12971 if test "x$ac_cv_lib_soname_odbc" = x; then :
12972 ac_cv_lib_soname_odbc=`$LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
12973 fi ;;
12974 esac
12976 rm -f core conftest.err conftest.$ac_objext \
12977 conftest$ac_exeext conftest.$ac_ext
12978 LIBS=$ac_check_soname_save_LIBS
12980 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12982 $as_echo "not found" >&6; }
12983 cat >>confdefs.h <<_ACEOF
12984 #define SONAME_LIBODBC "libodbc.$LIBEXT"
12985 _ACEOF
12987 else
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
12989 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
12991 cat >>confdefs.h <<_ACEOF
12992 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12993 _ACEOF
12998 if test "x$with_netapi" != "xno"
12999 then
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lnetapi" >&5
13001 $as_echo_n "checking for -lnetapi... " >&6; }
13002 if ${ac_cv_lib_soname_netapi+:} false; then :
13003 $as_echo_n "(cached) " >&6
13004 else
13005 ac_check_soname_save_LIBS=$LIBS
13006 LIBS="-lnetapi $LIBS"
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13010 /* Override any GCC internal prototype to avoid an error.
13011 Use char because int might match the return type of a GCC
13012 builtin and then its argument prototype would still apply. */
13013 #ifdef __cplusplus
13014 extern "C"
13015 #endif
13016 char libnetapi_init ();
13018 main ()
13020 return libnetapi_init ();
13022 return 0;
13024 _ACEOF
13025 if ac_fn_c_try_link "$LINENO"; then :
13026 case "$LIBEXT" in
13027 dll) ac_cv_lib_soname_netapi=`$ac_cv_path_LDD conftest.exe | grep "netapi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
13028 dylib) ac_cv_lib_soname_netapi=`otool -L conftest$ac_exeext | grep "libnetapi\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libnetapi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
13029 *) ac_cv_lib_soname_netapi=`$READELF -d conftest$ac_exeext | grep "NEEDED.*libnetapi\\.$LIBEXT" | sed -e "s/^.*\\[\\(libnetapi\\.$LIBEXT[^ ]*\\)\\].*$/\1/"';2,$d'`
13030 if test "x$ac_cv_lib_soname_netapi" = x; then :
13031 ac_cv_lib_soname_netapi=`$LDD conftest$ac_exeext | grep "libnetapi\\.$LIBEXT" | sed -e "s/^.*\(libnetapi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
13032 fi ;;
13033 esac
13035 rm -f core conftest.err conftest.$ac_objext \
13036 conftest$ac_exeext conftest.$ac_ext
13037 LIBS=$ac_check_soname_save_LIBS
13039 if test "x$ac_cv_lib_soname_netapi" = "x"; then :
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13041 $as_echo "not found" >&6; }
13042 cat >>confdefs.h <<_ACEOF
13043 #define SONAME_LIBNETAPI "libnetapi.$LIBEXT"
13044 _ACEOF
13046 else
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_netapi" >&5
13048 $as_echo "$ac_cv_lib_soname_netapi" >&6; }
13050 cat >>confdefs.h <<_ACEOF
13051 #define SONAME_LIBNETAPI "$ac_cv_lib_soname_netapi"
13052 _ACEOF
13058 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
13059 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
13060 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
13061 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
13063 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
13064 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
13065 "x$with_alsa$with_coreaudio$with_oss" != xnonono
13066 then
13067 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
13071 EXTRACFLAGS=""
13073 if test "x${GCC}" = "xyes"
13074 then
13075 EXTRACFLAGS="-Wall -pipe"
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
13078 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
13079 if ${ac_cv_c_gcc_strength_bug+:} false; then :
13080 $as_echo_n "(cached) " >&6
13081 else
13082 if test "$cross_compiling" = yes; then :
13083 ac_cv_c_gcc_strength_bug="yes"
13084 else
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13087 int L[4] = {0,1,2,3};
13089 main ()
13091 static int Array[3];
13092 unsigned int B = 3;
13093 int i;
13094 for(i=0; i<B; i++) Array[i] = i - 3;
13095 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13096 L[i] = 4;
13097 return (Array[1] != -2 || L[2] != 3)
13099 return 0;
13101 _ACEOF
13102 if ac_fn_c_try_run "$LINENO"; then :
13103 ac_cv_c_gcc_strength_bug="no"
13104 else
13105 ac_cv_c_gcc_strength_bug="yes"
13107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13108 conftest.$ac_objext conftest.beam conftest.$ac_ext
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
13113 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
13114 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13115 then
13116 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
13120 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
13121 if ${ac_cv_cflags__fno_builtin+:} false; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124 ac_wine_try_cflags_saved=$CFLAGS
13125 CFLAGS="$CFLAGS -fno-builtin"
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127 /* end confdefs.h. */
13128 int main(int argc, char **argv) { return 0; }
13129 _ACEOF
13130 if ac_fn_c_try_link "$LINENO"; then :
13131 ac_cv_cflags__fno_builtin=yes
13132 else
13133 ac_cv_cflags__fno_builtin=no
13135 rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137 CFLAGS=$ac_wine_try_cflags_saved
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
13140 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
13141 if test $ac_cv_cflags__fno_builtin = yes; then :
13142 BUILTINFLAG="-fno-builtin"
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
13146 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
13147 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 ac_wine_try_cflags_saved=$CFLAGS
13151 CFLAGS="$CFLAGS -fno-strict-aliasing"
13152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153 /* end confdefs.h. */
13154 int main(int argc, char **argv) { return 0; }
13155 _ACEOF
13156 if ac_fn_c_try_link "$LINENO"; then :
13157 ac_cv_cflags__fno_strict_aliasing=yes
13158 else
13159 ac_cv_cflags__fno_strict_aliasing=no
13161 rm -f core conftest.err conftest.$ac_objext \
13162 conftest$ac_exeext conftest.$ac_ext
13163 CFLAGS=$ac_wine_try_cflags_saved
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
13166 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
13167 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
13168 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13170 saved_CFLAGS=$CFLAGS
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror=unknown-warning-option" >&5
13172 $as_echo_n "checking whether the compiler supports -Werror=unknown-warning-option... " >&6; }
13173 if ${ac_cv_cflags__Werror_unknown_warning_option+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 ac_wine_try_cflags_saved=$CFLAGS
13177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13180 int main(int argc, char **argv) { return 0; }
13181 _ACEOF
13182 if ac_fn_c_try_link "$LINENO"; then :
13183 ac_cv_cflags__Werror_unknown_warning_option=yes
13184 else
13185 ac_cv_cflags__Werror_unknown_warning_option=no
13187 rm -f core conftest.err conftest.$ac_objext \
13188 conftest$ac_exeext conftest.$ac_ext
13189 CFLAGS=$ac_wine_try_cflags_saved
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror_unknown_warning_option" >&5
13192 $as_echo "$ac_cv_cflags__Werror_unknown_warning_option" >&6; }
13193 if test $ac_cv_cflags__Werror_unknown_warning_option = yes; then :
13194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
13197 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
13198 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 ac_wine_try_cflags_saved=$CFLAGS
13202 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13205 int main(int argc, char **argv) { return 0; }
13206 _ACEOF
13207 if ac_fn_c_try_link "$LINENO"; then :
13208 ac_cv_cflags__Wdeclaration_after_statement=yes
13209 else
13210 ac_cv_cflags__Wdeclaration_after_statement=no
13212 rm -f core conftest.err conftest.$ac_objext \
13213 conftest$ac_exeext conftest.$ac_ext
13214 CFLAGS=$ac_wine_try_cflags_saved
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
13217 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
13218 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
13219 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
13222 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
13223 if ${ac_cv_cflags__Wempty_body+:} false; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 ac_wine_try_cflags_saved=$CFLAGS
13227 CFLAGS="$CFLAGS -Wempty-body"
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13230 int main(int argc, char **argv) { return 0; }
13231 _ACEOF
13232 if ac_fn_c_try_link "$LINENO"; then :
13233 ac_cv_cflags__Wempty_body=yes
13234 else
13235 ac_cv_cflags__Wempty_body=no
13237 rm -f core conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13239 CFLAGS=$ac_wine_try_cflags_saved
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
13242 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
13243 if test $ac_cv_cflags__Wempty_body = yes; then :
13244 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
13247 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
13248 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
13249 $as_echo_n "(cached) " >&6
13250 else
13251 ac_wine_try_cflags_saved=$CFLAGS
13252 CFLAGS="$CFLAGS -Wignored-qualifiers"
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13255 int main(int argc, char **argv) { return 0; }
13256 _ACEOF
13257 if ac_fn_c_try_link "$LINENO"; then :
13258 ac_cv_cflags__Wignored_qualifiers=yes
13259 else
13260 ac_cv_cflags__Wignored_qualifiers=no
13262 rm -f core conftest.err conftest.$ac_objext \
13263 conftest$ac_exeext conftest.$ac_ext
13264 CFLAGS=$ac_wine_try_cflags_saved
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
13267 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
13268 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
13269 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
13272 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
13273 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
13274 $as_echo_n "(cached) " >&6
13275 else
13276 ac_wine_try_cflags_saved=$CFLAGS
13277 CFLAGS="$CFLAGS -Wstrict-prototypes"
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13280 int main(int argc, char **argv) { return 0; }
13281 _ACEOF
13282 if ac_fn_c_try_link "$LINENO"; then :
13283 ac_cv_cflags__Wstrict_prototypes=yes
13284 else
13285 ac_cv_cflags__Wstrict_prototypes=no
13287 rm -f core conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
13289 CFLAGS=$ac_wine_try_cflags_saved
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
13292 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
13293 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
13294 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
13297 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
13298 if ${ac_cv_cflags__Wtype_limits+:} false; then :
13299 $as_echo_n "(cached) " >&6
13300 else
13301 ac_wine_try_cflags_saved=$CFLAGS
13302 CFLAGS="$CFLAGS -Wtype-limits"
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13305 int main(int argc, char **argv) { return 0; }
13306 _ACEOF
13307 if ac_fn_c_try_link "$LINENO"; then :
13308 ac_cv_cflags__Wtype_limits=yes
13309 else
13310 ac_cv_cflags__Wtype_limits=no
13312 rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext
13314 CFLAGS=$ac_wine_try_cflags_saved
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
13317 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
13318 if test $ac_cv_cflags__Wtype_limits = yes; then :
13319 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
13322 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
13323 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
13324 $as_echo_n "(cached) " >&6
13325 else
13326 ac_wine_try_cflags_saved=$CFLAGS
13327 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13330 int main(int argc, char **argv) { return 0; }
13331 _ACEOF
13332 if ac_fn_c_try_link "$LINENO"; then :
13333 ac_cv_cflags__Wunused_but_set_parameter=yes
13334 else
13335 ac_cv_cflags__Wunused_but_set_parameter=no
13337 rm -f core conftest.err conftest.$ac_objext \
13338 conftest$ac_exeext conftest.$ac_ext
13339 CFLAGS=$ac_wine_try_cflags_saved
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
13342 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
13343 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
13344 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
13347 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
13348 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 ac_wine_try_cflags_saved=$CFLAGS
13352 CFLAGS="$CFLAGS -Wwrite-strings"
13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13355 int main(int argc, char **argv) { return 0; }
13356 _ACEOF
13357 if ac_fn_c_try_link "$LINENO"; then :
13358 ac_cv_cflags__Wwrite_strings=yes
13359 else
13360 ac_cv_cflags__Wwrite_strings=no
13362 rm -f core conftest.err conftest.$ac_objext \
13363 conftest$ac_exeext conftest.$ac_ext
13364 CFLAGS=$ac_wine_try_cflags_saved
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
13367 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
13368 if test $ac_cv_cflags__Wwrite_strings = yes; then :
13369 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wpointer-arith" >&5
13373 $as_echo_n "checking whether the compiler supports -Wpointer-arith... " >&6; }
13374 if ${ac_cv_cflags__Wpointer_arith+:} false; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377 ac_wine_try_cflags_saved=$CFLAGS
13378 CFLAGS="$CFLAGS -Wpointer-arith"
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13380 /* end confdefs.h. */
13381 int main(int argc, char **argv) { return 0; }
13382 _ACEOF
13383 if ac_fn_c_try_link "$LINENO"; then :
13384 ac_cv_cflags__Wpointer_arith=yes
13385 else
13386 ac_cv_cflags__Wpointer_arith=no
13388 rm -f core conftest.err conftest.$ac_objext \
13389 conftest$ac_exeext conftest.$ac_ext
13390 CFLAGS=$ac_wine_try_cflags_saved
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wpointer_arith" >&5
13393 $as_echo "$ac_cv_cflags__Wpointer_arith" >&6; }
13394 if test $ac_cv_cflags__Wpointer_arith = yes; then :
13395 saved_string_h_CFLAGS=$CFLAGS
13396 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
13398 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
13399 if ${ac_cv_c_string_h_warnings+:} false; then :
13400 $as_echo_n "(cached) " >&6
13401 else
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13404 #include <string.h>
13406 main ()
13410 return 0;
13412 _ACEOF
13413 if ac_fn_c_try_compile "$LINENO"; then :
13414 ac_cv_c_string_h_warnings=no
13415 else
13416 ac_cv_c_string_h_warnings=yes
13418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
13421 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
13422 test "$ac_cv_c_string_h_warnings" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
13423 CFLAGS=$saved_string_h_CFLAGS
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wlogical-op" >&5
13427 $as_echo_n "checking whether the compiler supports -Wlogical-op... " >&6; }
13428 if ${ac_cv_cflags__Wlogical_op+:} false; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431 ac_wine_try_cflags_saved=$CFLAGS
13432 CFLAGS="$CFLAGS -Wlogical-op"
13433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13434 /* end confdefs.h. */
13435 int main(int argc, char **argv) { return 0; }
13436 _ACEOF
13437 if ac_fn_c_try_link "$LINENO"; then :
13438 ac_cv_cflags__Wlogical_op=yes
13439 else
13440 ac_cv_cflags__Wlogical_op=no
13442 rm -f core conftest.err conftest.$ac_objext \
13443 conftest$ac_exeext conftest.$ac_ext
13444 CFLAGS=$ac_wine_try_cflags_saved
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wlogical_op" >&5
13447 $as_echo "$ac_cv_cflags__Wlogical_op" >&6; }
13448 if test $ac_cv_cflags__Wlogical_op = yes; then :
13449 saved_string_h_CFLAGS=$CFLAGS
13450 CFLAGS="$CFLAGS -Wlogical-op -Werror"
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
13452 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
13453 if ${ac_cv_c_logicalop_noisy+:} false; then :
13454 $as_echo_n "(cached) " >&6
13455 else
13456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13457 /* end confdefs.h. */
13458 #include <string.h>
13459 char*f(const char *h,char n) {return strchr(h,n);}
13461 main ()
13465 return 0;
13467 _ACEOF
13468 if ac_fn_c_try_compile "$LINENO"; then :
13469 ac_cv_c_logicalop_noisy=no
13470 else
13471 ac_cv_c_logicalop_noisy=yes
13473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
13476 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
13477 CFLAGS=$saved_string_h_CFLAGS
13478 test "$ac_cv_c_logicalop_noisy" = yes || EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
13481 CFLAGS=$saved_CFLAGS
13483 for ac_flag in $CFLAGS; do
13484 case $ac_flag in
13485 -g) case $host_os in
13486 darwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstabs+" >&5
13487 $as_echo_n "checking whether the compiler supports -gstabs+... " >&6; }
13488 if ${ac_cv_cflags__gstabsp+:} false; then :
13489 $as_echo_n "(cached) " >&6
13490 else
13491 ac_wine_try_cflags_saved=$CFLAGS
13492 CFLAGS="$CFLAGS -gstabs+"
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13495 int main(int argc, char **argv) { return 0; }
13496 _ACEOF
13497 if ac_fn_c_try_link "$LINENO"; then :
13498 ac_cv_cflags__gstabsp=yes
13499 else
13500 ac_cv_cflags__gstabsp=no
13502 rm -f core conftest.err conftest.$ac_objext \
13503 conftest$ac_exeext conftest.$ac_ext
13504 CFLAGS=$ac_wine_try_cflags_saved
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstabsp" >&5
13507 $as_echo "$ac_cv_cflags__gstabsp" >&6; }
13508 if test $ac_cv_cflags__gstabsp = yes; then :
13509 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
13510 fi ;;
13511 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gdwarf-2" >&5
13512 $as_echo_n "checking whether the compiler supports -gdwarf-2... " >&6; }
13513 if ${ac_cv_cflags__gdwarf_2+:} false; then :
13514 $as_echo_n "(cached) " >&6
13515 else
13516 ac_wine_try_cflags_saved=$CFLAGS
13517 CFLAGS="$CFLAGS -gdwarf-2"
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13520 int main(int argc, char **argv) { return 0; }
13521 _ACEOF
13522 if ac_fn_c_try_link "$LINENO"; then :
13523 ac_cv_cflags__gdwarf_2=yes
13524 else
13525 ac_cv_cflags__gdwarf_2=no
13527 rm -f core conftest.err conftest.$ac_objext \
13528 conftest$ac_exeext conftest.$ac_ext
13529 CFLAGS=$ac_wine_try_cflags_saved
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gdwarf_2" >&5
13532 $as_echo "$ac_cv_cflags__gdwarf_2" >&6; }
13533 if test $ac_cv_cflags__gdwarf_2 = yes; then :
13534 EXTRACFLAGS="$EXTRACFLAGS -gdwarf-2"
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -gstrict-dwarf" >&5
13537 $as_echo_n "checking whether the compiler supports -gstrict-dwarf... " >&6; }
13538 if ${ac_cv_cflags__gstrict_dwarf+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540 else
13541 ac_wine_try_cflags_saved=$CFLAGS
13542 CFLAGS="$CFLAGS -gstrict-dwarf"
13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h. */
13545 int main(int argc, char **argv) { return 0; }
13546 _ACEOF
13547 if ac_fn_c_try_link "$LINENO"; then :
13548 ac_cv_cflags__gstrict_dwarf=yes
13549 else
13550 ac_cv_cflags__gstrict_dwarf=no
13552 rm -f core conftest.err conftest.$ac_objext \
13553 conftest$ac_exeext conftest.$ac_ext
13554 CFLAGS=$ac_wine_try_cflags_saved
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__gstrict_dwarf" >&5
13557 $as_echo "$ac_cv_cflags__gstrict_dwarf" >&6; }
13558 if test $ac_cv_cflags__gstrict_dwarf = yes; then :
13559 EXTRACFLAGS="$EXTRACFLAGS -gstrict-dwarf"
13560 fi ;;
13561 esac ;;
13562 esac
13563 done
13565 case $host_cpu in
13566 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
13567 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
13568 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
13569 $as_echo_n "(cached) " >&6
13570 else
13571 ac_wine_try_cflags_saved=$CFLAGS
13572 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13575 int main(int argc, char **argv) { return 0; }
13576 _ACEOF
13577 if ac_fn_c_try_link "$LINENO"; then :
13578 ac_cv_cflags__fno_omit_frame_pointer=yes
13579 else
13580 ac_cv_cflags__fno_omit_frame_pointer=no
13582 rm -f core conftest.err conftest.$ac_objext \
13583 conftest$ac_exeext conftest.$ac_ext
13584 CFLAGS=$ac_wine_try_cflags_saved
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
13587 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
13588 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
13589 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
13590 fi ;;
13591 esac
13593 case $host in
13594 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
13595 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
13596 if ${ac_cv_cflags__Wno_format+:} false; then :
13597 $as_echo_n "(cached) " >&6
13598 else
13599 ac_wine_try_cflags_saved=$CFLAGS
13600 CFLAGS="$CFLAGS -Wno-format"
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13603 int main(int argc, char **argv) { return 0; }
13604 _ACEOF
13605 if ac_fn_c_try_link "$LINENO"; then :
13606 ac_cv_cflags__Wno_format=yes
13607 else
13608 ac_cv_cflags__Wno_format=no
13610 rm -f core conftest.err conftest.$ac_objext \
13611 conftest$ac_exeext conftest.$ac_ext
13612 CFLAGS=$ac_wine_try_cflags_saved
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
13615 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
13616 if test $ac_cv_cflags__Wno_format = yes; then :
13617 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
13618 fi ;;
13619 esac
13621 if test "x$enable_maintainer_mode" = "xyes"
13622 then
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
13624 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
13625 if ${ac_cv_cflags__Werror+:} false; then :
13626 $as_echo_n "(cached) " >&6
13627 else
13628 ac_wine_try_cflags_saved=$CFLAGS
13629 CFLAGS="$CFLAGS -Werror"
13630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631 /* end confdefs.h. */
13632 int main(int argc, char **argv) { return 0; }
13633 _ACEOF
13634 if ac_fn_c_try_link "$LINENO"; then :
13635 ac_cv_cflags__Werror=yes
13636 else
13637 ac_cv_cflags__Werror=no
13639 rm -f core conftest.err conftest.$ac_objext \
13640 conftest$ac_exeext conftest.$ac_ext
13641 CFLAGS=$ac_wine_try_cflags_saved
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
13644 $as_echo "$ac_cv_cflags__Werror" >&6; }
13645 if test $ac_cv_cflags__Werror = yes; then :
13646 EXTRACFLAGS="$EXTRACFLAGS -Werror"
13650 saved_CFLAGS="$CFLAGS"
13651 CFLAGS="$CFLAGS -Werror"
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
13653 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
13654 if ${ac_cv_have_ms_hook_prologue+:} false; then :
13655 $as_echo_n "(cached) " >&6
13656 else
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13659 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
13661 main ()
13665 return 0;
13667 _ACEOF
13668 if ac_fn_c_try_compile "$LINENO"; then :
13669 ac_cv_have_ms_hook_prologue="yes"
13670 else
13671 ac_cv_have_ms_hook_prologue="no"
13673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
13676 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
13677 CFLAGS="$saved_CFLAGS"
13678 if test "$ac_cv_have_ms_hook_prologue" = "yes"
13679 then
13681 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
13683 else
13684 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
13691 $as_echo_n "checking for the need to disable Fortify... " >&6; }
13692 if ${ac_cv_c_fortify_enabled+:} false; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13697 #include <string.h>
13699 main ()
13701 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
13702 #error Fortify enabled
13703 #endif
13705 return 0;
13707 _ACEOF
13708 if ac_fn_c_try_compile "$LINENO"; then :
13709 ac_cv_c_fortify_enabled=no
13710 else
13711 ac_cv_c_fortify_enabled=yes
13713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
13716 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
13717 if test "$ac_cv_c_fortify_enabled" = yes
13718 then
13719 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
13724 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
13725 if ${ac_cv_c_extern_prefix+:} false; then :
13726 $as_echo_n "(cached) " >&6
13727 else
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13730 extern int ac_test;
13732 main ()
13734 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
13736 return 0;
13738 _ACEOF
13739 if ac_fn_c_try_link "$LINENO"; then :
13740 ac_cv_c_extern_prefix="yes"
13741 else
13742 ac_cv_c_extern_prefix="no"
13744 rm -f core conftest.err conftest.$ac_objext \
13745 conftest$ac_exeext conftest.$ac_ext
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
13748 $as_echo "$ac_cv_c_extern_prefix" >&6; }
13750 case $host_cpu in
13751 *i[3456789]86*)
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
13753 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
13754 if ${ac_cv_c_stdcall_suffix+:} false; then :
13755 $as_echo_n "(cached) " >&6
13756 else
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13759 #ifndef _MSC_VER
13760 #define __stdcall __attribute__((__stdcall__))
13761 #endif
13762 int __stdcall ac_test(int i) { return i; }
13764 main ()
13766 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
13768 return 0;
13770 _ACEOF
13771 if ac_fn_c_try_link "$LINENO"; then :
13772 ac_cv_c_stdcall_suffix="yes"
13773 else
13774 ac_cv_c_stdcall_suffix="no"
13776 rm -f core conftest.err conftest.$ac_objext \
13777 conftest$ac_exeext conftest.$ac_ext
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
13780 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
13781 *) ac_cv_c_stdcall_suffix="no" ;;
13782 esac
13785 if test "$ac_cv_c_extern_prefix" = "yes"
13786 then
13787 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
13789 asm_name_prefix="_"
13790 else
13791 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
13793 asm_name_prefix=""
13797 if test "$ac_cv_c_stdcall_suffix" = "yes"
13798 then
13799 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
13801 else
13802 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
13808 $as_echo_n "checking how to define a function in assembly code... " >&6; }
13809 if ${ac_cv_asm_func_def+:} false; then :
13810 $as_echo_n "(cached) " >&6
13811 else
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13816 main ()
13818 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
13820 return 0;
13822 _ACEOF
13823 if ac_fn_c_try_link "$LINENO"; then :
13824 ac_cv_asm_func_def=".def"
13825 else
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13830 main ()
13832 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
13834 return 0;
13836 _ACEOF
13837 if ac_fn_c_try_link "$LINENO"; then :
13838 ac_cv_asm_func_def=".type @function"
13839 else
13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h. */
13844 main ()
13846 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
13848 return 0;
13850 _ACEOF
13851 if ac_fn_c_try_link "$LINENO"; then :
13852 ac_cv_asm_func_def=".type 2"
13853 else
13854 ac_cv_asm_func_def="unknown"
13856 rm -f core conftest.err conftest.$ac_objext \
13857 conftest$ac_exeext conftest.$ac_ext
13859 rm -f core conftest.err conftest.$ac_objext \
13860 conftest$ac_exeext conftest.$ac_ext
13862 rm -f core conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
13866 $as_echo "$ac_cv_asm_func_def" >&6; }
13869 case "$ac_cv_asm_func_def" in
13870 ".def")
13871 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
13873 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
13874 ".type @function")
13875 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
13877 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
13878 ".type 2")
13879 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
13881 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
13883 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
13885 asm_func_header="" ;;
13886 esac
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
13889 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
13890 if ${ac_cv_c_asm_outside_funcs+:} false; then :
13891 $as_echo_n "(cached) " >&6
13892 else
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13895 asm(".text\n\t.long 0");
13897 main ()
13901 return 0;
13903 _ACEOF
13904 if ac_fn_c_try_compile "$LINENO"; then :
13905 ac_cv_c_asm_outside_funcs="yes"
13906 else
13907 ac_cv_c_asm_outside_funcs="no"
13909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
13912 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
13915 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
13916 if ${ac_cv_c_dot_previous+:} false; then :
13917 $as_echo_n "(cached) " >&6
13918 else
13919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h. */
13923 main ()
13925 asm(".text\nac_test:\t.long 0\n\t.previous");
13927 return 0;
13929 _ACEOF
13930 if ac_fn_c_try_link "$LINENO"; then :
13931 ac_cv_c_dot_previous="yes"
13932 else
13933 ac_cv_c_dot_previous="no"
13935 rm -f core conftest.err conftest.$ac_objext \
13936 conftest$ac_exeext conftest.$ac_ext
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
13939 $as_echo "$ac_cv_c_dot_previous" >&6; }
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
13942 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
13943 if ${ac_cv_c_cfi_support+:} false; then :
13944 $as_echo_n "(cached) " >&6
13945 else
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13948 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
13950 main ()
13954 return 0;
13956 _ACEOF
13957 if ac_fn_c_try_compile "$LINENO"; then :
13958 ac_cv_c_cfi_support="yes"
13959 else
13960 ac_cv_c_cfi_support="no"
13962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
13965 $as_echo "$ac_cv_c_cfi_support" >&6; }
13967 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
13968 asm_func_trailer=""
13969 if test "$ac_cv_c_dot_previous" = "yes"
13970 then
13971 asm_func_trailer="\\n\\t.previous"
13973 if test "$ac_cv_c_cfi_support" = "yes"
13974 then
13975 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
13976 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
13978 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
13980 UNWINDFLAGS=-fasynchronous-unwind-tables
13982 else
13983 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
13987 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
13990 if test "$ac_cv_c_asm_outside_funcs" = "yes"
13991 then
13992 cat >>confdefs.h <<_ACEOF
13993 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
13994 _ACEOF
13996 else
13997 cat >>confdefs.h <<_ACEOF
13998 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
13999 _ACEOF
14003 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
14006 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
14010 case $build_os in
14011 cygwin*|mingw32*) TOOLSEXT=".exe"
14013 esac
14015 case $host_os in
14016 linux*)
14017 case $host_cpu in
14018 *i[3456789]86*|x86_64*)
14019 as_fn_append LOADER_RULES "
14020 all: $wine_binary-preloader
14022 $wine_binary-preloader: preloader.o Makefile.in
14023 \$(CC) -o \$@ -static -nostartfiles -nodefaultlibs -Wl,-Ttext=0x7c400000 preloader.o \$(LIBPORT) \$(LDFLAGS)
14025 install install-lib:: $wine_binary-preloader \$(DESTDIR)\$(bindir)
14026 \$(INSTALL_PROGRAM) $wine_binary-preloader \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14028 uninstall::
14029 \$(RM) \$(DESTDIR)\$(bindir)/$wine_binary-preloader
14030 " ;;
14031 esac
14033 esac
14036 ac_save_CFLAGS="$CFLAGS"
14037 CFLAGS="$CFLAGS $BUILTINFLAG"
14038 for ac_func in \
14039 __res_get_state \
14040 __res_getservers \
14041 _finite \
14042 _isnan \
14043 _pclose \
14044 _popen \
14045 _snprintf \
14046 _spawnvp \
14047 _strdup \
14048 _stricmp \
14049 _strnicmp \
14050 _strtoi64 \
14051 _strtoui64 \
14052 _vsnprintf \
14053 asctime_r \
14054 chsize \
14055 dlopen \
14056 epoll_create \
14057 ffs \
14058 finite \
14059 fnmatch \
14060 fork \
14061 fpclass \
14062 fstatfs \
14063 fstatvfs \
14064 ftruncate \
14065 futimens \
14066 futimes \
14067 futimesat \
14068 getattrlist \
14069 getdirentries \
14070 getopt_long_only \
14071 getpwuid \
14072 gettimeofday \
14073 getuid \
14074 if_nameindex \
14075 kqueue \
14076 lstat \
14077 memmove \
14078 mmap \
14079 pclose \
14080 pipe2 \
14081 poll \
14082 popen \
14083 port_create \
14084 prctl \
14085 pread \
14086 proc_pidinfo \
14087 pwrite \
14088 readdir \
14089 readlink \
14090 sched_yield \
14091 select \
14092 setproctitle \
14093 setrlimit \
14094 settimeofday \
14095 sigaltstack \
14096 sigprocmask \
14097 snprintf \
14098 statfs \
14099 statvfs \
14100 strcasecmp \
14101 strdup \
14102 strerror \
14103 strncasecmp \
14104 strtold \
14105 strtoll \
14106 strtoull \
14107 symlink \
14108 tcdrain \
14109 thr_kill2 \
14110 timegm \
14111 usleep \
14112 vsnprintf
14114 do :
14115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14116 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14117 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14118 cat >>confdefs.h <<_ACEOF
14119 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14120 _ACEOF
14123 done
14125 CFLAGS="$ac_save_CFLAGS"
14127 if test "$ac_cv_func_dlopen" = no
14128 then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14130 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14131 if ${ac_cv_lib_dl_dlopen+:} false; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134 ac_check_lib_save_LIBS=$LIBS
14135 LIBS="-ldl $LIBS"
14136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14137 /* end confdefs.h. */
14139 /* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
14142 #ifdef __cplusplus
14143 extern "C"
14144 #endif
14145 char dlopen ();
14147 main ()
14149 return dlopen ();
14151 return 0;
14153 _ACEOF
14154 if ac_fn_c_try_link "$LINENO"; then :
14155 ac_cv_lib_dl_dlopen=yes
14156 else
14157 ac_cv_lib_dl_dlopen=no
14159 rm -f core conftest.err conftest.$ac_objext \
14160 conftest$ac_exeext conftest.$ac_ext
14161 LIBS=$ac_check_lib_save_LIBS
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14164 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14165 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14166 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
14167 LIBDL="-ldl"
14172 ac_wine_check_funcs_save_LIBS="$LIBS"
14173 LIBS="$LIBS $LIBDL"
14174 for ac_func in dladdr
14175 do :
14176 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
14177 if test "x$ac_cv_func_dladdr" = xyes; then :
14178 cat >>confdefs.h <<_ACEOF
14179 #define HAVE_DLADDR 1
14180 _ACEOF
14183 done
14185 LIBS="$ac_wine_check_funcs_save_LIBS"
14187 if test "$ac_cv_func_poll" = no
14188 then
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
14190 $as_echo_n "checking for poll in -lpoll... " >&6; }
14191 if ${ac_cv_lib_poll_poll+:} false; then :
14192 $as_echo_n "(cached) " >&6
14193 else
14194 ac_check_lib_save_LIBS=$LIBS
14195 LIBS="-lpoll $LIBS"
14196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14197 /* end confdefs.h. */
14199 /* Override any GCC internal prototype to avoid an error.
14200 Use char because int might match the return type of a GCC
14201 builtin and then its argument prototype would still apply. */
14202 #ifdef __cplusplus
14203 extern "C"
14204 #endif
14205 char poll ();
14207 main ()
14209 return poll ();
14211 return 0;
14213 _ACEOF
14214 if ac_fn_c_try_link "$LINENO"; then :
14215 ac_cv_lib_poll_poll=yes
14216 else
14217 ac_cv_lib_poll_poll=no
14219 rm -f core conftest.err conftest.$ac_objext \
14220 conftest$ac_exeext conftest.$ac_ext
14221 LIBS=$ac_check_lib_save_LIBS
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
14224 $as_echo "$ac_cv_lib_poll_poll" >&6; }
14225 if test "x$ac_cv_lib_poll_poll" = xyes; then :
14226 $as_echo "#define HAVE_POLL 1" >>confdefs.h
14227 LIBPOLL="-lpoll"
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
14234 $as_echo_n "checking for library containing gethostbyname... " >&6; }
14235 if ${ac_cv_search_gethostbyname+:} false; then :
14236 $as_echo_n "(cached) " >&6
14237 else
14238 ac_func_search_save_LIBS=$LIBS
14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h. */
14242 /* Override any GCC internal prototype to avoid an error.
14243 Use char because int might match the return type of a GCC
14244 builtin and then its argument prototype would still apply. */
14245 #ifdef __cplusplus
14246 extern "C"
14247 #endif
14248 char gethostbyname ();
14250 main ()
14252 return gethostbyname ();
14254 return 0;
14256 _ACEOF
14257 for ac_lib in '' nsl; do
14258 if test -z "$ac_lib"; then
14259 ac_res="none required"
14260 else
14261 ac_res=-l$ac_lib
14262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14264 if ac_fn_c_try_link "$LINENO"; then :
14265 ac_cv_search_gethostbyname=$ac_res
14267 rm -f core conftest.err conftest.$ac_objext \
14268 conftest$ac_exeext
14269 if ${ac_cv_search_gethostbyname+:} false; then :
14270 break
14272 done
14273 if ${ac_cv_search_gethostbyname+:} false; then :
14275 else
14276 ac_cv_search_gethostbyname=no
14278 rm conftest.$ac_ext
14279 LIBS=$ac_func_search_save_LIBS
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
14282 $as_echo "$ac_cv_search_gethostbyname" >&6; }
14283 ac_res=$ac_cv_search_gethostbyname
14284 if test "$ac_res" != no; then :
14285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
14291 $as_echo_n "checking for library containing connect... " >&6; }
14292 if ${ac_cv_search_connect+:} false; then :
14293 $as_echo_n "(cached) " >&6
14294 else
14295 ac_func_search_save_LIBS=$LIBS
14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14299 /* Override any GCC internal prototype to avoid an error.
14300 Use char because int might match the return type of a GCC
14301 builtin and then its argument prototype would still apply. */
14302 #ifdef __cplusplus
14303 extern "C"
14304 #endif
14305 char connect ();
14307 main ()
14309 return connect ();
14311 return 0;
14313 _ACEOF
14314 for ac_lib in '' socket; do
14315 if test -z "$ac_lib"; then
14316 ac_res="none required"
14317 else
14318 ac_res=-l$ac_lib
14319 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14321 if ac_fn_c_try_link "$LINENO"; then :
14322 ac_cv_search_connect=$ac_res
14324 rm -f core conftest.err conftest.$ac_objext \
14325 conftest$ac_exeext
14326 if ${ac_cv_search_connect+:} false; then :
14327 break
14329 done
14330 if ${ac_cv_search_connect+:} false; then :
14332 else
14333 ac_cv_search_connect=no
14335 rm conftest.$ac_ext
14336 LIBS=$ac_func_search_save_LIBS
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
14339 $as_echo "$ac_cv_search_connect" >&6; }
14340 ac_res=$ac_cv_search_connect
14341 if test "$ac_res" != no; then :
14342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
14348 $as_echo_n "checking for library containing inet_aton... " >&6; }
14349 if ${ac_cv_search_inet_aton+:} false; then :
14350 $as_echo_n "(cached) " >&6
14351 else
14352 ac_func_search_save_LIBS=$LIBS
14353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h. */
14356 /* Override any GCC internal prototype to avoid an error.
14357 Use char because int might match the return type of a GCC
14358 builtin and then its argument prototype would still apply. */
14359 #ifdef __cplusplus
14360 extern "C"
14361 #endif
14362 char inet_aton ();
14364 main ()
14366 return inet_aton ();
14368 return 0;
14370 _ACEOF
14371 for ac_lib in '' resolv; do
14372 if test -z "$ac_lib"; then
14373 ac_res="none required"
14374 else
14375 ac_res=-l$ac_lib
14376 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14378 if ac_fn_c_try_link "$LINENO"; then :
14379 ac_cv_search_inet_aton=$ac_res
14381 rm -f core conftest.err conftest.$ac_objext \
14382 conftest$ac_exeext
14383 if ${ac_cv_search_inet_aton+:} false; then :
14384 break
14386 done
14387 if ${ac_cv_search_inet_aton+:} false; then :
14389 else
14390 ac_cv_search_inet_aton=no
14392 rm conftest.$ac_ext
14393 LIBS=$ac_func_search_save_LIBS
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
14396 $as_echo "$ac_cv_search_inet_aton" >&6; }
14397 ac_res=$ac_cv_search_inet_aton
14398 if test "$ac_res" != no; then :
14399 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14404 for ac_func in \
14405 getaddrinfo \
14406 getnameinfo \
14407 getnetbyname \
14408 getprotobyname \
14409 getprotobynumber \
14410 getservbyport \
14411 inet_addr \
14412 inet_network \
14413 inet_ntop \
14414 inet_pton \
14415 sendmsg \
14416 socketpair \
14418 do :
14419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14420 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14421 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14422 cat >>confdefs.h <<_ACEOF
14423 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14424 _ACEOF
14427 done
14430 ac_save_LIBS=$LIBS
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14432 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14433 if ${ac_cv_search_clock_gettime+:} false; then :
14434 $as_echo_n "(cached) " >&6
14435 else
14436 ac_func_search_save_LIBS=$LIBS
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14440 /* Override any GCC internal prototype to avoid an error.
14441 Use char because int might match the return type of a GCC
14442 builtin and then its argument prototype would still apply. */
14443 #ifdef __cplusplus
14444 extern "C"
14445 #endif
14446 char clock_gettime ();
14448 main ()
14450 return clock_gettime ();
14452 return 0;
14454 _ACEOF
14455 for ac_lib in '' rt; do
14456 if test -z "$ac_lib"; then
14457 ac_res="none required"
14458 else
14459 ac_res=-l$ac_lib
14460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14462 if ac_fn_c_try_link "$LINENO"; then :
14463 ac_cv_search_clock_gettime=$ac_res
14465 rm -f core conftest.err conftest.$ac_objext \
14466 conftest$ac_exeext
14467 if ${ac_cv_search_clock_gettime+:} false; then :
14468 break
14470 done
14471 if ${ac_cv_search_clock_gettime+:} false; then :
14473 else
14474 ac_cv_search_clock_gettime=no
14476 rm conftest.$ac_ext
14477 LIBS=$ac_func_search_save_LIBS
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14480 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14481 ac_res=$ac_cv_search_clock_gettime
14482 if test "$ac_res" != no; then :
14483 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14485 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14487 test "$ac_res" = "none required" || LIBRT="$ac_res"
14491 LIBS=$ac_save_LIBS
14493 LDAPLIBS=""
14495 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
14496 then
14497 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
14499 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
14501 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
14502 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
14503 $as_echo_n "(cached) " >&6
14504 else
14505 ac_check_lib_save_LIBS=$LIBS
14506 LIBS="-lldap_r $LIBPTHREAD $LIBS"
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14510 /* Override any GCC internal prototype to avoid an error.
14511 Use char because int might match the return type of a GCC
14512 builtin and then its argument prototype would still apply. */
14513 #ifdef __cplusplus
14514 extern "C"
14515 #endif
14516 char ldap_initialize ();
14518 main ()
14520 return ldap_initialize ();
14522 return 0;
14524 _ACEOF
14525 if ac_fn_c_try_link "$LINENO"; then :
14526 ac_cv_lib_ldap_r_ldap_initialize=yes
14527 else
14528 ac_cv_lib_ldap_r_ldap_initialize=no
14530 rm -f core conftest.err conftest.$ac_objext \
14531 conftest$ac_exeext conftest.$ac_ext
14532 LIBS=$ac_check_lib_save_LIBS
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
14535 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
14536 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
14538 $as_echo_n "checking for ber_init in -llber... " >&6; }
14539 if ${ac_cv_lib_lber_ber_init+:} false; then :
14540 $as_echo_n "(cached) " >&6
14541 else
14542 ac_check_lib_save_LIBS=$LIBS
14543 LIBS="-llber $LIBPTHREAD $LIBS"
14544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14545 /* end confdefs.h. */
14547 /* Override any GCC internal prototype to avoid an error.
14548 Use char because int might match the return type of a GCC
14549 builtin and then its argument prototype would still apply. */
14550 #ifdef __cplusplus
14551 extern "C"
14552 #endif
14553 char ber_init ();
14555 main ()
14557 return ber_init ();
14559 return 0;
14561 _ACEOF
14562 if ac_fn_c_try_link "$LINENO"; then :
14563 ac_cv_lib_lber_ber_init=yes
14564 else
14565 ac_cv_lib_lber_ber_init=no
14567 rm -f core conftest.err conftest.$ac_objext \
14568 conftest$ac_exeext conftest.$ac_ext
14569 LIBS=$ac_check_lib_save_LIBS
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
14572 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
14573 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
14575 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
14577 LDAPLIBS="-lldap_r -llber"
14584 ac_wine_check_funcs_save_LIBS="$LIBS"
14585 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
14586 for ac_func in \
14587 ldap_count_references \
14588 ldap_first_reference \
14589 ldap_next_reference \
14590 ldap_parse_reference \
14591 ldap_parse_sort_control \
14592 ldap_parse_sortresponse_control \
14593 ldap_parse_vlv_control \
14594 ldap_parse_vlvresponse_control
14595 do :
14596 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14597 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14598 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14599 cat >>confdefs.h <<_ACEOF
14600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14601 _ACEOF
14604 done
14606 LIBS="$ac_wine_check_funcs_save_LIBS"
14608 if test "x$LDAPLIBS" = "x"; then :
14609 case "x$with_ldap" in
14610 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
14611 xno) ;;
14612 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
14613 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
14614 esac
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
14618 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
14619 if ${wine_cv_one_arg_mkdir+:} false; then :
14620 $as_echo_n "(cached) " >&6
14621 else
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14624 #include <sys/stat.h>
14626 main ()
14628 mkdir("foo");
14630 return 0;
14632 _ACEOF
14633 if ac_fn_c_try_compile "$LINENO"; then :
14634 wine_cv_one_arg_mkdir=yes
14635 else
14636 wine_cv_one_arg_mkdir=no
14638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
14641 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
14642 if test "$wine_cv_one_arg_mkdir" = "yes"
14643 then
14645 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
14650 $as_echo_n "checking for sched_setaffinity... " >&6; }
14651 if ${wine_cv_have_sched_setaffinity+:} false; then :
14652 $as_echo_n "(cached) " >&6
14653 else
14654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14655 /* end confdefs.h. */
14656 #define _GNU_SOURCE
14657 #include <sched.h>
14659 main ()
14661 sched_setaffinity(0, 0, 0);
14663 return 0;
14665 _ACEOF
14666 if ac_fn_c_try_link "$LINENO"; then :
14667 wine_cv_have_sched_setaffinity=yes
14668 else
14669 wine_cv_have_sched_setaffinity=no
14671 rm -f core conftest.err conftest.$ac_objext \
14672 conftest$ac_exeext conftest.$ac_ext
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
14675 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
14676 if test "$wine_cv_have_sched_setaffinity" = "yes"
14677 then
14679 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5
14684 $as_echo_n "checking for fallocate... " >&6; }
14685 if ${wine_cv_have_fallocate+:} false; then :
14686 $as_echo_n "(cached) " >&6
14687 else
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14690 #define _GNU_SOURCE
14691 #include <fcntl.h>
14693 main ()
14695 fallocate(-1, 0, 0, 0);
14697 return 0;
14699 _ACEOF
14700 if ac_fn_c_try_link "$LINENO"; then :
14701 wine_cv_have_fallocate=yes
14702 else
14703 wine_cv_have_fallocate=no
14705 rm -f core conftest.err conftest.$ac_objext \
14706 conftest$ac_exeext conftest.$ac_ext
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_fallocate" >&5
14709 $as_echo "$wine_cv_have_fallocate" >&6; }
14710 if test "$wine_cv_have_fallocate" = "yes"
14711 then
14713 $as_echo "#define HAVE_FALLOCATE 1" >>confdefs.h
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14719 $as_echo_n "checking for inline... " >&6; }
14720 if ${ac_cv_c_inline+:} false; then :
14721 $as_echo_n "(cached) " >&6
14722 else
14723 ac_cv_c_inline=no
14724 for ac_kw in inline __inline__ __inline; do
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h. */
14727 #ifndef __cplusplus
14728 typedef int foo_t;
14729 static $ac_kw foo_t static_foo () {return 0; }
14730 $ac_kw foo_t foo () {return 0; }
14731 #endif
14733 _ACEOF
14734 if ac_fn_c_try_compile "$LINENO"; then :
14735 ac_cv_c_inline=$ac_kw
14737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14738 test "$ac_cv_c_inline" != no && break
14739 done
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14743 $as_echo "$ac_cv_c_inline" >&6; }
14745 case $ac_cv_c_inline in
14746 inline | yes) ;;
14748 case $ac_cv_c_inline in
14749 no) ac_val=;;
14750 *) ac_val=$ac_cv_c_inline;;
14751 esac
14752 cat >>confdefs.h <<_ACEOF
14753 #ifndef __cplusplus
14754 #define inline $ac_val
14755 #endif
14756 _ACEOF
14758 esac
14760 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14761 if test "x$ac_cv_type_mode_t" = xyes; then :
14763 cat >>confdefs.h <<_ACEOF
14764 #define HAVE_MODE_T 1
14765 _ACEOF
14769 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14770 if test "x$ac_cv_type_off_t" = xyes; then :
14772 cat >>confdefs.h <<_ACEOF
14773 #define HAVE_OFF_T 1
14774 _ACEOF
14778 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14779 if test "x$ac_cv_type_pid_t" = xyes; then :
14781 cat >>confdefs.h <<_ACEOF
14782 #define HAVE_PID_T 1
14783 _ACEOF
14787 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14788 if test "x$ac_cv_type_size_t" = xyes; then :
14790 cat >>confdefs.h <<_ACEOF
14791 #define HAVE_SIZE_T 1
14792 _ACEOF
14796 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14797 if test "x$ac_cv_type_ssize_t" = xyes; then :
14799 cat >>confdefs.h <<_ACEOF
14800 #define HAVE_SSIZE_T 1
14801 _ACEOF
14805 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14806 if test "x$ac_cv_type_long_long" = xyes; then :
14808 cat >>confdefs.h <<_ACEOF
14809 #define HAVE_LONG_LONG 1
14810 _ACEOF
14814 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
14815 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
14817 cat >>confdefs.h <<_ACEOF
14818 #define HAVE_FSBLKCNT_T 1
14819 _ACEOF
14823 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
14824 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
14826 cat >>confdefs.h <<_ACEOF
14827 #define HAVE_FSFILCNT_T 1
14828 _ACEOF
14833 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
14834 #include <signal.h>
14836 if test "x$ac_cv_type_sigset_t" = xyes; then :
14838 cat >>confdefs.h <<_ACEOF
14839 #define HAVE_SIGSET_T 1
14840 _ACEOF
14845 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
14847 if test "x$ac_cv_type_request_sense" = xyes; then :
14849 cat >>confdefs.h <<_ACEOF
14850 #define HAVE_REQUEST_SENSE 1
14851 _ACEOF
14857 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
14858 #ifdef HAVE_SYS_SOCKET_H
14859 #include <sys/socket.h>
14860 #endif
14861 #ifdef HAVE_SYS_SOCKETVAR_H
14862 #include <sys/socketvar.h>
14863 #endif
14864 #ifdef HAVE_NET_ROUTE_H
14865 #include <net/route.h>
14866 #endif
14867 #ifdef HAVE_NETINET_IN_H
14868 #include <netinet/in.h>
14869 #endif
14870 #ifdef HAVE_NETINET_IN_SYSTM_H
14871 #include <netinet/in_systm.h>
14872 #endif
14873 #ifdef HAVE_NETINET_IP_H
14874 #include <netinet/ip.h>
14875 #endif
14876 #ifdef HAVE_NETINET_IN_PCB_H
14877 #include <netinet/in_pcb.h>
14878 #endif
14880 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
14882 cat >>confdefs.h <<_ACEOF
14883 #define HAVE_STRUCT_XINPGEN 1
14884 _ACEOF
14890 ac_fn_c_check_type "$LINENO" "struct r_debug" "ac_cv_type_struct_r_debug" "#ifdef HAVE_LINK_H
14891 #include <link.h>
14892 #endif
14893 #ifdef HAVE_SYS_LINK_H
14894 #include <sys/link.h>
14895 #endif
14897 if test "x$ac_cv_type_struct_r_debug" = xyes; then :
14899 cat >>confdefs.h <<_ACEOF
14900 #define HAVE_STRUCT_R_DEBUG 1
14901 _ACEOF
14905 ac_fn_c_check_type "$LINENO" "struct link_map" "ac_cv_type_struct_link_map" "#ifdef HAVE_LINK_H
14906 #include <link.h>
14907 #endif
14908 #ifdef HAVE_SYS_LINK_H
14909 #include <sys/link.h>
14910 #endif
14912 if test "x$ac_cv_type_struct_link_map" = xyes; then :
14914 cat >>confdefs.h <<_ACEOF
14915 #define HAVE_STRUCT_LINK_MAP 1
14916 _ACEOF
14922 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
14923 #include <linux/input.h>
14924 #endif
14926 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
14928 cat >>confdefs.h <<_ACEOF
14929 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
14930 _ACEOF
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
14937 $as_echo_n "checking for sigaddset... " >&6; }
14938 if ${wine_cv_have_sigaddset+:} false; then :
14939 $as_echo_n "(cached) " >&6
14940 else
14941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942 /* end confdefs.h. */
14943 #include <signal.h>
14945 main ()
14947 sigset_t set; sigaddset(&set,SIGTERM);
14949 return 0;
14951 _ACEOF
14952 if ac_fn_c_try_link "$LINENO"; then :
14953 wine_cv_have_sigaddset=yes
14954 else
14955 wine_cv_have_sigaddset=no
14957 rm -f core conftest.err conftest.$ac_objext \
14958 conftest$ac_exeext conftest.$ac_ext
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
14961 $as_echo "$wine_cv_have_sigaddset" >&6; }
14962 if test "$wine_cv_have_sigaddset" = "yes"
14963 then
14965 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
14971 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
14972 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
14973 $as_echo_n "(cached) " >&6
14974 else
14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976 /* end confdefs.h. */
14977 #include <netdb.h>
14979 main ()
14982 char *name=0;
14983 struct hostent he;
14984 struct hostent *result;
14985 char *buf=0;
14986 int bufsize=0;
14987 int errnr;
14988 char *addr=0;
14989 int addrlen=0;
14990 int addrtype=0;
14991 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14992 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
14995 return 0;
14997 _ACEOF
14998 if ac_fn_c_try_link "$LINENO"; then :
14999 wine_cv_linux_gethostbyname_r_6=yes
15000 else
15001 wine_cv_linux_gethostbyname_r_6=no
15004 rm -f core conftest.err conftest.$ac_objext \
15005 conftest$ac_exeext conftest.$ac_ext
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
15009 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
15010 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15011 then
15013 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
15017 if test "$ac_cv_header_linux_joystick_h" = "yes"
15018 then
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
15020 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
15021 if ${wine_cv_linux_joystick_22_api+:} false; then :
15022 $as_echo_n "(cached) " >&6
15023 else
15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15025 /* end confdefs.h. */
15027 #include <sys/ioctl.h>
15028 #include <sys/types.h>
15029 #include <linux/joystick.h>
15031 struct js_event blub;
15032 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15033 #error "no 2.2 header"
15034 #endif
15037 main ()
15039 /*empty*/
15041 return 0;
15043 _ACEOF
15044 if ac_fn_c_try_compile "$LINENO"; then :
15045 wine_cv_linux_joystick_22_api=yes
15046 else
15047 wine_cv_linux_joystick_22_api=no
15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
15053 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
15054 if test "$wine_cv_linux_joystick_22_api" = "yes"
15055 then
15057 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
15063 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
15064 #ifdef HAVE_SYS_PARAM_H
15065 # include <sys/param.h>
15066 #endif
15067 #ifdef HAVE_SYS_MOUNT_H
15068 # include <sys/mount.h>
15069 #endif
15070 #ifdef HAVE_SYS_VFS_H
15071 # include <sys/vfs.h>
15072 #endif
15073 #ifdef HAVE_SYS_STATFS_H
15074 # include <sys/statfs.h>
15075 #endif
15077 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
15079 cat >>confdefs.h <<_ACEOF
15080 #define HAVE_STRUCT_STATFS_F_BFREE 1
15081 _ACEOF
15085 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
15086 #ifdef HAVE_SYS_PARAM_H
15087 # include <sys/param.h>
15088 #endif
15089 #ifdef HAVE_SYS_MOUNT_H
15090 # include <sys/mount.h>
15091 #endif
15092 #ifdef HAVE_SYS_VFS_H
15093 # include <sys/vfs.h>
15094 #endif
15095 #ifdef HAVE_SYS_STATFS_H
15096 # include <sys/statfs.h>
15097 #endif
15099 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
15101 cat >>confdefs.h <<_ACEOF
15102 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
15103 _ACEOF
15107 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
15108 #ifdef HAVE_SYS_PARAM_H
15109 # include <sys/param.h>
15110 #endif
15111 #ifdef HAVE_SYS_MOUNT_H
15112 # include <sys/mount.h>
15113 #endif
15114 #ifdef HAVE_SYS_VFS_H
15115 # include <sys/vfs.h>
15116 #endif
15117 #ifdef HAVE_SYS_STATFS_H
15118 # include <sys/statfs.h>
15119 #endif
15121 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
15123 cat >>confdefs.h <<_ACEOF
15124 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
15125 _ACEOF
15129 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
15130 #ifdef HAVE_SYS_PARAM_H
15131 # include <sys/param.h>
15132 #endif
15133 #ifdef HAVE_SYS_MOUNT_H
15134 # include <sys/mount.h>
15135 #endif
15136 #ifdef HAVE_SYS_VFS_H
15137 # include <sys/vfs.h>
15138 #endif
15139 #ifdef HAVE_SYS_STATFS_H
15140 # include <sys/statfs.h>
15141 #endif
15143 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
15145 cat >>confdefs.h <<_ACEOF
15146 #define HAVE_STRUCT_STATFS_F_FFREE 1
15147 _ACEOF
15151 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
15152 #ifdef HAVE_SYS_PARAM_H
15153 # include <sys/param.h>
15154 #endif
15155 #ifdef HAVE_SYS_MOUNT_H
15156 # include <sys/mount.h>
15157 #endif
15158 #ifdef HAVE_SYS_VFS_H
15159 # include <sys/vfs.h>
15160 #endif
15161 #ifdef HAVE_SYS_STATFS_H
15162 # include <sys/statfs.h>
15163 #endif
15165 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
15167 cat >>confdefs.h <<_ACEOF
15168 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
15169 _ACEOF
15173 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
15174 #ifdef HAVE_SYS_PARAM_H
15175 # include <sys/param.h>
15176 #endif
15177 #ifdef HAVE_SYS_MOUNT_H
15178 # include <sys/mount.h>
15179 #endif
15180 #ifdef HAVE_SYS_VFS_H
15181 # include <sys/vfs.h>
15182 #endif
15183 #ifdef HAVE_SYS_STATFS_H
15184 # include <sys/statfs.h>
15185 #endif
15187 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
15189 cat >>confdefs.h <<_ACEOF
15190 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
15191 _ACEOF
15197 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
15198 #include <sys/statvfs.h>
15199 #endif
15201 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
15203 cat >>confdefs.h <<_ACEOF
15204 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
15205 _ACEOF
15211 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#ifdef HAVE_DIRENT_H
15212 #include <dirent.h>
15213 #endif
15215 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
15217 cat >>confdefs.h <<_ACEOF
15218 #define HAVE_STRUCT_DIRENT_D_RECLEN 1
15219 _ACEOF
15225 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
15226 #ifdef HAVE_SYS_SOCKET_H
15227 # include <sys/socket.h>
15228 #endif
15229 #ifdef HAVE_SYS_UN_H
15230 # include <sys/un.h>
15231 #endif
15233 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
15235 cat >>confdefs.h <<_ACEOF
15236 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
15237 _ACEOF
15241 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
15242 #ifdef HAVE_SYS_SOCKET_H
15243 # include <sys/socket.h>
15244 #endif
15245 #ifdef HAVE_SYS_UN_H
15246 # include <sys/un.h>
15247 #endif
15249 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
15251 cat >>confdefs.h <<_ACEOF
15252 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15253 _ACEOF
15257 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
15258 #ifdef HAVE_SYS_SOCKET_H
15259 # include <sys/socket.h>
15260 #endif
15261 #ifdef HAVE_SYS_UN_H
15262 # include <sys/un.h>
15263 #endif
15265 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
15267 cat >>confdefs.h <<_ACEOF
15268 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15269 _ACEOF
15275 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
15276 #ifdef HAVE_SCSI_SG_H
15277 #include <scsi/sg.h>
15278 #endif
15280 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
15282 cat >>confdefs.h <<_ACEOF
15283 #define HAVE_SCSIREQ_T_CMD 1
15284 _ACEOF
15288 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>
15289 #ifdef HAVE_SCSI_SG_H
15290 #include <scsi/sg.h>
15291 #endif
15293 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
15295 cat >>confdefs.h <<_ACEOF
15296 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
15297 _ACEOF
15303 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
15305 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
15307 cat >>confdefs.h <<_ACEOF
15308 #define HAVE_SIGINFO_T_SI_FD 1
15309 _ACEOF
15315 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
15316 #ifdef HAVE_SYS_MTIO_H
15317 #include <sys/mtio.h>
15318 #endif
15320 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
15322 cat >>confdefs.h <<_ACEOF
15323 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
15324 _ACEOF
15328 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
15329 #ifdef HAVE_SYS_MTIO_H
15330 #include <sys/mtio.h>
15331 #endif
15333 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
15335 cat >>confdefs.h <<_ACEOF
15336 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
15337 _ACEOF
15341 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
15342 #ifdef HAVE_SYS_MTIO_H
15343 #include <sys/mtio.h>
15344 #endif
15346 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
15348 cat >>confdefs.h <<_ACEOF
15349 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
15350 _ACEOF
15356 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
15357 #include <getopt.h>
15358 #endif
15360 if test "x$ac_cv_member_struct_option_name" = xyes; then :
15362 cat >>confdefs.h <<_ACEOF
15363 #define HAVE_STRUCT_OPTION_NAME 1
15364 _ACEOF
15370 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
15371 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
15373 cat >>confdefs.h <<_ACEOF
15374 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15375 _ACEOF
15379 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
15380 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
15382 cat >>confdefs.h <<_ACEOF
15383 #define HAVE_STRUCT_STAT_ST_MTIM 1
15384 _ACEOF
15388 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
15389 if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
15391 cat >>confdefs.h <<_ACEOF
15392 #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
15393 _ACEOF
15397 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
15398 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
15400 cat >>confdefs.h <<_ACEOF
15401 #define HAVE_STRUCT_STAT_ST_CTIM 1
15402 _ACEOF
15406 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default"
15407 if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes; then :
15409 cat >>confdefs.h <<_ACEOF
15410 #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
15411 _ACEOF
15415 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
15416 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
15418 cat >>confdefs.h <<_ACEOF
15419 #define HAVE_STRUCT_STAT_ST_ATIM 1
15420 _ACEOF
15424 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default"
15425 if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes; then :
15427 cat >>confdefs.h <<_ACEOF
15428 #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
15429 _ACEOF
15433 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
15434 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
15436 cat >>confdefs.h <<_ACEOF
15437 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
15438 _ACEOF
15442 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim" "ac_cv_member_struct_stat_st_birthtim" "$ac_includes_default"
15443 if test "x$ac_cv_member_struct_stat_st_birthtim" = xyes; then :
15445 cat >>confdefs.h <<_ACEOF
15446 #define HAVE_STRUCT_STAT_ST_BIRTHTIM 1
15447 _ACEOF
15451 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default"
15452 if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes; then :
15454 cat >>confdefs.h <<_ACEOF
15455 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1
15456 _ACEOF
15460 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtime" "ac_cv_member_struct_stat___st_birthtime" "$ac_includes_default"
15461 if test "x$ac_cv_member_struct_stat___st_birthtime" = xyes; then :
15463 cat >>confdefs.h <<_ACEOF
15464 #define HAVE_STRUCT_STAT___ST_BIRTHTIME 1
15465 _ACEOF
15469 ac_fn_c_check_member "$LINENO" "struct stat" "__st_birthtim" "ac_cv_member_struct_stat___st_birthtim" "$ac_includes_default"
15470 if test "x$ac_cv_member_struct_stat___st_birthtim" = xyes; then :
15472 cat >>confdefs.h <<_ACEOF
15473 #define HAVE_STRUCT_STAT___ST_BIRTHTIM 1
15474 _ACEOF
15480 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
15481 #include <sys/types.h>
15482 #endif
15483 #ifdef HAVE_NETINET_IN_H
15484 #include <netinet/in.h>
15485 #endif
15487 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
15489 cat >>confdefs.h <<_ACEOF
15490 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
15491 _ACEOF
15497 ac_fn_c_check_type "$LINENO" "struct __res_state" "ac_cv_type_struct___res_state" "#ifdef HAVE_RESOLV_H
15498 #include <resolv.h>
15499 #endif
15501 if test "x$ac_cv_type_struct___res_state" = xyes; then :
15503 cat >>confdefs.h <<_ACEOF
15504 #define HAVE_STRUCT___RES_STATE 1
15505 _ACEOF
15511 ac_fn_c_check_member "$LINENO" "struct __res_state" "_u._ext.nscount6" "ac_cv_member_struct___res_state__u__ext_nscount6" "#ifdef HAVE_RESOLV_H
15512 #include <resolv.h>
15513 #endif
15515 if test "x$ac_cv_member_struct___res_state__u__ext_nscount6" = xyes; then :
15517 cat >>confdefs.h <<_ACEOF
15518 #define HAVE_STRUCT___RES_STATE__U__EXT_NSCOUNT6 1
15519 _ACEOF
15525 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
15526 #include <sys/types.h>
15527 #endif
15528 #ifdef HAVE_NETINET_IN_H
15529 # include <netinet/in.h>
15530 #endif
15531 #ifdef HAVE_ARPA_NAMESER_H
15532 # include <arpa/nameser.h>
15533 #endif
15535 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
15537 cat >>confdefs.h <<_ACEOF
15538 #define HAVE_NS_MSG__MSG_PTR 1
15539 _ACEOF
15545 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_inhist" "ac_cv_member_struct_icmpstat_icps_inhist" "#ifdef HAVE_SYS_TYPES_H
15546 #include <sys/types.h>
15547 #endif
15548 #ifdef HAVE_NETINET_IP_H
15549 #include <netinet/ip.h>
15550 #endif
15551 #ifdef HAVE_NETINET_IP_ICMP_H
15552 #include <netinet/ip_icmp.h>
15553 #endif
15554 #ifdef HAVE_NETINET_ICMP_VAR_H
15555 #include <netinet/icmp_var.h>
15556 #endif
15558 if test "x$ac_cv_member_struct_icmpstat_icps_inhist" = xyes; then :
15560 cat >>confdefs.h <<_ACEOF
15561 #define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
15562 _ACEOF
15568 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
15569 #include <sys/types.h>
15570 #endif
15571 #ifdef HAVE_ALIAS_H
15572 #include <alias.h>
15573 #endif
15574 #ifdef HAVE_SYS_SOCKET_H
15575 #include <sys/socket.h>
15576 #endif
15577 #ifdef HAVE_SYS_SOCKETVAR_H
15578 #include <sys/socketvar.h>
15579 #endif
15580 #ifdef HAVE_SYS_TIMEOUT_H
15581 #include <sys/timeout.h>
15582 #endif
15583 #ifdef HAVE_NETINET_IN_H
15584 #include <netinet/in.h>
15585 #endif
15586 #ifdef HAVE_NETINET_IN_SYSTM_H
15587 #include <netinet/in_systm.h>
15588 #endif
15589 #ifdef HAVE_NETINET_IP_H
15590 #include <netinet/ip.h>
15591 #endif
15592 #ifdef HAVE_NETINET_IP_VAR_H
15593 #include <netinet/ip_var.h>
15594 #endif
15595 #ifdef HAVE_NETINET_IP_ICMP_H
15596 #include <netinet/ip_icmp.h>
15597 #endif
15598 #ifdef HAVE_NETINET_ICMP_VAR_H
15599 #include <netinet/icmp_var.h>
15600 #endif
15602 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
15604 cat >>confdefs.h <<_ACEOF
15605 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
15606 _ACEOF
15612 ac_fn_c_check_member "$LINENO" "struct ipstat" "ips_total" "ac_cv_member_struct_ipstat_ips_total" "#ifdef HAVE_SYS_TYPES_H
15613 #include <sys/types.h>
15614 #endif
15615 #ifdef HAVE_SYS_SOCKETVAR_H
15616 #include <sys/socketvar.h>
15617 #endif
15618 #ifdef HAVE_NETINET_IN_H
15619 #include <netinet/in.h>
15620 #endif
15621 #ifdef HAVE_NETINET_IP_VAR_H
15622 #include <netinet/ip_var.h>
15623 #endif
15625 if test "x$ac_cv_member_struct_ipstat_ips_total" = xyes; then :
15627 cat >>confdefs.h <<_ACEOF
15628 #define HAVE_STRUCT_IPSTAT_IPS_TOTAL 1
15629 _ACEOF
15635 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
15636 #include <netinet/ip_var.h>
15637 #endif
15639 if test "x$ac_cv_member_struct_ip_stats_ips_total" = xyes; then :
15641 cat >>confdefs.h <<_ACEOF
15642 #define HAVE_STRUCT_IP_STATS_IPS_TOTAL 1
15643 _ACEOF
15649 ac_fn_c_check_member "$LINENO" "struct tcpstat" "tcps_connattempt" "ac_cv_member_struct_tcpstat_tcps_connattempt" "#ifdef HAVE_SYS_TYPES_H
15650 #include <sys/types.h>
15651 #endif
15652 #ifdef HAVE_SYS_SOCKETVAR_H
15653 #include <sys/socketvar.h>
15654 #endif
15655 #ifdef HAVE_NETINET_IN_H
15656 #include <netinet/in.h>
15657 #endif
15658 #ifdef HAVE_NETINET_TCP_H
15659 #include <netinet/tcp.h>
15660 #endif
15661 #ifdef HAVE_NETINET_TCP_VAR_H
15662 #include <netinet/tcp_var.h>
15663 #endif
15665 if test "x$ac_cv_member_struct_tcpstat_tcps_connattempt" = xyes; then :
15667 cat >>confdefs.h <<_ACEOF
15668 #define HAVE_STRUCT_TCPSTAT_TCPS_CONNATTEMPT 1
15669 _ACEOF
15675 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
15676 #include <netinet/tcp_var.h>
15677 #endif
15679 if test "x$ac_cv_member_struct_tcp_stats_tcps_connattempt" = xyes; then :
15681 cat >>confdefs.h <<_ACEOF
15682 #define HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT 1
15683 _ACEOF
15689 ac_fn_c_check_member "$LINENO" "struct udpstat" "udps_ipackets" "ac_cv_member_struct_udpstat_udps_ipackets" "#ifdef HAVE_SYS_TYPES_H
15690 #include <sys/types.h>
15691 #endif
15692 #ifdef HAVE_NETINET_IN_H
15693 #include <netinet/in.h>
15694 #endif
15695 #ifdef HAVE_NETINET_IP_VAR_H
15696 #include <netinet/ip_var.h>
15697 #endif
15698 #ifdef HAVE_NETINET_UDP_H
15699 #include <netinet/udp.h>
15700 #endif
15701 #ifdef HAVE_NETINET_UDP_VAR_H
15702 #include <netinet/udp_var.h>
15703 #endif
15705 if test "x$ac_cv_member_struct_udpstat_udps_ipackets" = xyes; then :
15707 cat >>confdefs.h <<_ACEOF
15708 #define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
15709 _ACEOF
15715 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
15716 #include <sys/types.h>
15717 #endif
15718 #ifdef HAVE_NET_IF_H
15719 # include <net/if.h>
15720 #endif
15722 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
15724 cat >>confdefs.h <<_ACEOF
15725 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
15726 _ACEOF
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
15733 $as_echo_n "checking for timezone variable... " >&6; }
15734 if ${ac_cv_have_timezone+:} false; then :
15735 $as_echo_n "(cached) " >&6
15736 else
15737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15738 /* end confdefs.h. */
15739 #include <time.h>
15741 main ()
15743 timezone = 1
15745 return 0;
15747 _ACEOF
15748 if ac_fn_c_try_link "$LINENO"; then :
15749 ac_cv_have_timezone="yes"
15750 else
15751 ac_cv_have_timezone="no"
15753 rm -f core conftest.err conftest.$ac_objext \
15754 conftest$ac_exeext conftest.$ac_ext
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
15757 $as_echo "$ac_cv_have_timezone" >&6; }
15758 if test "$ac_cv_have_timezone" = "yes"
15759 then
15761 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
15765 $as_echo_n "checking for daylight variable... " >&6; }
15766 if ${ac_cv_have_daylight+:} false; then :
15767 $as_echo_n "(cached) " >&6
15768 else
15769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15770 /* end confdefs.h. */
15771 #include <time.h>
15773 main ()
15775 daylight = 1
15777 return 0;
15779 _ACEOF
15780 if ac_fn_c_try_link "$LINENO"; then :
15781 ac_cv_have_daylight="yes"
15782 else
15783 ac_cv_have_daylight="no"
15785 rm -f core conftest.err conftest.$ac_objext \
15786 conftest$ac_exeext conftest.$ac_ext
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
15789 $as_echo "$ac_cv_have_daylight" >&6; }
15790 if test "$ac_cv_have_daylight" = "yes"
15791 then
15793 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
15797 ac_save_LIBS="$LIBS"
15798 LIBS="$LIBS -lm"
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
15800 $as_echo_n "checking for isinf... " >&6; }
15801 if ${ac_cv_have_isinf+:} false; then :
15802 $as_echo_n "(cached) " >&6
15803 else
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15806 #include <math.h>
15808 main ()
15810 float f = 0.0; return isinf(f)
15812 return 0;
15814 _ACEOF
15815 if ac_fn_c_try_link "$LINENO"; then :
15816 ac_cv_have_isinf="yes"
15817 else
15818 ac_cv_have_isinf="no"
15820 rm -f core conftest.err conftest.$ac_objext \
15821 conftest$ac_exeext conftest.$ac_ext
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
15824 $as_echo "$ac_cv_have_isinf" >&6; }
15825 if test "$ac_cv_have_isinf" = "yes"
15826 then
15828 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
15833 $as_echo_n "checking for isnan... " >&6; }
15834 if ${ac_cv_have_isnan+:} false; then :
15835 $as_echo_n "(cached) " >&6
15836 else
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15839 #include <math.h>
15841 main ()
15843 float f = 0.0; return isnan(f)
15845 return 0;
15847 _ACEOF
15848 if ac_fn_c_try_link "$LINENO"; then :
15849 ac_cv_have_isnan="yes"
15850 else
15851 ac_cv_have_isnan="no"
15853 rm -f core conftest.err conftest.$ac_objext \
15854 conftest$ac_exeext conftest.$ac_ext
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
15857 $as_echo "$ac_cv_have_isnan" >&6; }
15858 if test "$ac_cv_have_isnan" = "yes"
15859 then
15861 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
15864 LIBS="$ac_save_LIBS"
15867 case $host_cpu in
15868 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
15869 $as_echo_n "checking whether we need to define __i386__... " >&6; }
15870 if ${ac_cv_cpp_def___i386__+:} false; then :
15871 $as_echo_n "(cached) " >&6
15872 else
15873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15874 /* end confdefs.h. */
15875 #ifndef __i386__
15877 #endif
15878 _ACEOF
15879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15880 $EGREP "yes" >/dev/null 2>&1; then :
15881 ac_cv_cpp_def___i386__=yes
15882 else
15883 ac_cv_cpp_def___i386__=no
15885 rm -f conftest*
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
15889 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
15890 if test $ac_cv_cpp_def___i386__ = yes; then :
15891 CFLAGS="$CFLAGS -D__i386__"
15892 LINTFLAGS="$LINTFLAGS -D__i386__"
15893 fi ;;
15894 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
15895 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
15896 if ${ac_cv_cpp_def___x86_64__+:} false; then :
15897 $as_echo_n "(cached) " >&6
15898 else
15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900 /* end confdefs.h. */
15901 #ifndef __x86_64__
15903 #endif
15904 _ACEOF
15905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15906 $EGREP "yes" >/dev/null 2>&1; then :
15907 ac_cv_cpp_def___x86_64__=yes
15908 else
15909 ac_cv_cpp_def___x86_64__=no
15911 rm -f conftest*
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
15915 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
15916 if test $ac_cv_cpp_def___x86_64__ = yes; then :
15917 CFLAGS="$CFLAGS -D__x86_64__"
15918 LINTFLAGS="$LINTFLAGS -D__x86_64__"
15919 fi ;;
15920 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
15921 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
15922 if ${ac_cv_cpp_def___sparc64__+:} false; then :
15923 $as_echo_n "(cached) " >&6
15924 else
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15927 #ifndef __sparc64__
15929 #endif
15930 _ACEOF
15931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15932 $EGREP "yes" >/dev/null 2>&1; then :
15933 ac_cv_cpp_def___sparc64__=yes
15934 else
15935 ac_cv_cpp_def___sparc64__=no
15937 rm -f conftest*
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
15941 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
15942 if test $ac_cv_cpp_def___sparc64__ = yes; then :
15943 CFLAGS="$CFLAGS -D__sparc64__"
15944 LINTFLAGS="$LINTFLAGS -D__sparc64__"
15945 fi ;;
15946 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
15947 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
15948 if ${ac_cv_cpp_def___sparc__+:} false; then :
15949 $as_echo_n "(cached) " >&6
15950 else
15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952 /* end confdefs.h. */
15953 #ifndef __sparc__
15955 #endif
15956 _ACEOF
15957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15958 $EGREP "yes" >/dev/null 2>&1; then :
15959 ac_cv_cpp_def___sparc__=yes
15960 else
15961 ac_cv_cpp_def___sparc__=no
15963 rm -f conftest*
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
15967 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
15968 if test $ac_cv_cpp_def___sparc__ = yes; then :
15969 CFLAGS="$CFLAGS -D__sparc__"
15970 LINTFLAGS="$LINTFLAGS -D__sparc__"
15971 fi ;;
15972 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
15973 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
15974 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
15975 $as_echo_n "(cached) " >&6
15976 else
15977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15978 /* end confdefs.h. */
15979 #ifndef __powerpc64__
15981 #endif
15982 _ACEOF
15983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15984 $EGREP "yes" >/dev/null 2>&1; then :
15985 ac_cv_cpp_def___powerpc64__=yes
15986 else
15987 ac_cv_cpp_def___powerpc64__=no
15989 rm -f conftest*
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
15993 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
15994 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
15995 CFLAGS="$CFLAGS -D__powerpc64__"
15996 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
15997 fi ;;
15998 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
15999 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
16000 if ${ac_cv_cpp_def___powerpc__+:} false; then :
16001 $as_echo_n "(cached) " >&6
16002 else
16003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16004 /* end confdefs.h. */
16005 #ifndef __powerpc__
16007 #endif
16008 _ACEOF
16009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16010 $EGREP "yes" >/dev/null 2>&1; then :
16011 ac_cv_cpp_def___powerpc__=yes
16012 else
16013 ac_cv_cpp_def___powerpc__=no
16015 rm -f conftest*
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
16019 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
16020 if test $ac_cv_cpp_def___powerpc__ = yes; then :
16021 CFLAGS="$CFLAGS -D__powerpc__"
16022 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16023 fi ;;
16024 *aarch64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __aarch64__" >&5
16025 $as_echo_n "checking whether we need to define __aarch64__... " >&6; }
16026 if ${ac_cv_cpp_def___aarch64__+:} false; then :
16027 $as_echo_n "(cached) " >&6
16028 else
16029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16030 /* end confdefs.h. */
16031 #ifndef __aarch64__
16033 #endif
16034 _ACEOF
16035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16036 $EGREP "yes" >/dev/null 2>&1; then :
16037 ac_cv_cpp_def___aarch64__=yes
16038 else
16039 ac_cv_cpp_def___aarch64__=no
16041 rm -f conftest*
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___aarch64__" >&5
16045 $as_echo "$ac_cv_cpp_def___aarch64__" >&6; }
16046 if test $ac_cv_cpp_def___aarch64__ = yes; then :
16047 CFLAGS="$CFLAGS -D__aarch64__"
16048 LINTFLAGS="$LINTFLAGS -D__aarch64__"
16049 fi ;;
16050 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
16051 $as_echo_n "checking whether we need to define __arm__... " >&6; }
16052 if ${ac_cv_cpp_def___arm__+:} false; then :
16053 $as_echo_n "(cached) " >&6
16054 else
16055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056 /* end confdefs.h. */
16057 #ifndef __arm__
16059 #endif
16060 _ACEOF
16061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16062 $EGREP "yes" >/dev/null 2>&1; then :
16063 ac_cv_cpp_def___arm__=yes
16064 else
16065 ac_cv_cpp_def___arm__=no
16067 rm -f conftest*
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
16071 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
16072 if test $ac_cv_cpp_def___arm__ = yes; then :
16073 CFLAGS="$CFLAGS -D__arm__"
16074 LINTFLAGS="$LINTFLAGS -D__arm__"
16075 fi ;;
16076 esac
16078 case $host_vendor in
16079 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
16080 $as_echo_n "checking whether we need to define __sun__... " >&6; }
16081 if ${ac_cv_cpp_def___sun__+:} false; then :
16082 $as_echo_n "(cached) " >&6
16083 else
16084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16085 /* end confdefs.h. */
16086 #ifndef __sun__
16088 #endif
16089 _ACEOF
16090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16091 $EGREP "yes" >/dev/null 2>&1; then :
16092 ac_cv_cpp_def___sun__=yes
16093 else
16094 ac_cv_cpp_def___sun__=no
16096 rm -f conftest*
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
16100 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
16101 if test $ac_cv_cpp_def___sun__ = yes; then :
16102 CFLAGS="$CFLAGS -D__sun__"
16103 LINTFLAGS="$LINTFLAGS -D__sun__"
16104 fi ;;
16105 esac
16111 ac_config_commands="$ac_config_commands include/stamp-h"
16113 $as_echo_n "creating Makefile rules..." >&6
16116 MAKE_IMPLIB_RULES="DLLFLAGS = $DLLFLAGS
16119 if test -n "$CROSSTARGET"
16120 then
16121 as_fn_append MAKE_IMPLIB_RULES "MAKEDEPFLAGS = -xo -xcross.o
16122 all: \$(STATICLIB:.a=.cross.a)
16127 if test -n "$DLLEXT"
16128 then
16129 deps="\$(MODULE)$DLLEXT \$(MODULE).fake"
16130 else
16131 deps="\$(MODULE)"
16134 MAKE_DLL_RULES="
16135 DLLFLAGS = $DLLFLAGS
16136 MAINSPEC = \$(MODULE:%.dll=%).spec
16137 IDL_TLB_RES = \$(IDL_TLB_SRCS:.idl=_t.res)
16138 MODULEFLAGS = -shared \$(srcdir)/\$(MAINSPEC) \$(EXTRADLLFLAGS)
16140 all: $deps
16144 MAKE_PROG_RULES="
16145 DLLFLAGS = $DLLFLAGS
16147 all: $deps
16152 MAKE_TEST_RULES="
16153 DLLFLAGS = $DLLFLAGS
16154 TESTMODULE = \$(TESTDLL:%.dll=%)_test.exe
16155 TESTMODULE_STRIPPED = \$(TESTDLL:%.dll=%)_test-stripped.exe$DLLEXT
16156 WINETEST_RES = \$(top_builddir)/programs/winetest/\$(TESTDLL:%.dll=%)_test.res
16157 RUNTESTFLAGS = -q -P wine -T \$(top_builddir) -M \$(TESTDLL) -p \$(TESTMODULE)$DLLEXT
16158 EXTRA_OBJS = testlist.o
16160 all: \$(TESTMODULE)$DLLEXT \$(WINETEST_RES)
16162 \$(C_SRCS:.c=.ok): \$(TESTMODULE)$DLLEXT \$(TESTDLL:%=../%$DLLEXT)
16164 check test: \$(C_SRCS:.c=.ok)
16166 .PHONY: check test crosstest
16169 if test -n "$CROSSTARGET"
16170 then
16171 as_fn_append MAKE_TEST_RULES "
16172 MAKEDEPFLAGS = -xo -xcross.o
16173 CROSSTESTMODULE = \$(TESTDLL:%.dll=%)_crosstest.exe
16175 crosstest: \$(CROSSTESTMODULE)
16180 wine_rules_file=conf$$rules.make
16181 rm -f $wine_rules_file
16182 ALL_POT_FILES=""
16183 ALL_TEST_RESOURCES=""
16186 wine_fn_append_file ()
16188 as_fn_append $1 " \\$as_nl $2"
16191 wine_fn_append_rule ()
16193 $as_echo "$1" >>$wine_rules_file
16196 wine_fn_has_flag ()
16198 expr ",$ac_flags," : ".*,$1,.*" >/dev/null
16201 wine_fn_depend_rules ()
16203 ac_alldeps=$1
16204 ac_makedep="\$(MAKEDEP)"
16205 ac_input=Make.vars.in:$ac_dir/Makefile.in
16206 case $1 in
16207 *.in) ac_input=$ac_input:$1 ;;
16208 *) ac_makedep="$1 $ac_makedep" ;;
16209 esac
16211 wine_fn_append_rule \
16212 "$ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps \$(MAKEDEP)
16213 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
16214 depend: $ac_dir/depend
16215 .PHONY: $ac_dir/depend
16216 $ac_dir/depend: $ac_makedep dummy
16217 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
16220 wine_fn_pot_rules ()
16222 test "x$with_gettextpo" = xyes || return
16224 if wine_fn_has_flag mc
16225 then
16226 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
16227 wine_fn_append_rule \
16228 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
16229 @cd $ac_dir && \$(MAKE) msg.pot
16230 $ac_dir/msg.pot: tools/wmc include"
16232 if wine_fn_has_flag po
16233 then
16234 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
16235 wine_fn_append_rule \
16236 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
16237 @cd $ac_dir && \$(MAKE) rsrc.pot
16238 $ac_dir/rsrc.pot: tools/wrc include"
16242 wine_fn_all_rules ()
16244 ac_rules=$1
16246 wine_fn_depend_rules ${ac_rules:-Make.rules}
16247 wine_fn_append_rule \
16248 "all: $ac_dir
16249 .PHONY: $ac_dir
16250 $ac_dir: $ac_dir/Makefile dummy
16251 @cd $ac_dir && \$(MAKE)"
16254 wine_fn_install_rules ()
16256 wine_fn_has_flag install-lib || wine_fn_has_flag install-dev || return
16258 wine_fn_append_rule \
16259 ".PHONY: $ac_dir/install $ac_dir/uninstall
16260 $ac_dir/install:: $ac_dir
16261 @cd $ac_dir && \$(MAKE) install
16262 $ac_dir/uninstall:: $ac_dir/Makefile
16263 @cd $ac_dir && \$(MAKE) uninstall
16264 install:: $ac_dir/install
16265 __uninstall__: $ac_dir/uninstall"
16267 if wine_fn_has_flag install-lib
16268 then
16269 wine_fn_append_rule \
16270 ".PHONY: $ac_dir/install-lib
16271 $ac_dir/install-lib:: $ac_dir
16272 @cd $ac_dir && \$(MAKE) install-lib
16273 install-lib:: $ac_dir/install-lib"
16276 if wine_fn_has_flag install-dev
16277 then
16278 wine_fn_append_rule \
16279 ".PHONY: $ac_dir/install-dev
16280 $ac_dir/install-dev:: $ac_dir
16281 @cd $ac_dir && \$(MAKE) install-dev
16282 install-dev:: $ac_dir/install-dev"
16286 wine_fn_clean_rules ()
16288 ac_clean=$@
16290 if wine_fn_has_flag clean
16291 then
16292 wine_fn_append_rule \
16293 "__clean__: $ac_dir/clean
16294 .PHONY: $ac_dir/clean
16295 $ac_dir/clean: $ac_dir/Makefile
16296 @cd $ac_dir && \$(MAKE) clean
16297 \$(RM) $ac_dir/Makefile"
16298 else
16299 wine_fn_append_rule \
16300 "clean::
16301 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_dir/Makefile"
16305 wine_fn_disabled_rules ()
16307 ac_clean=$@
16309 wine_fn_append_rule \
16310 "clean::
16311 \$(RM) \$(CLEAN_FILES:%=$ac_dir/%) $ac_clean $ac_dir/Makefile"
16314 wine_fn_config_makefile ()
16316 ac_dir=$1
16317 ac_enable=$2
16318 ac_flags=$3
16320 if eval test \"x\$"$ac_enable"\" = x"no"; then :
16321 wine_fn_disabled_rules; return
16323 wine_fn_all_rules
16324 wine_fn_install_rules
16325 wine_fn_clean_rules
16328 wine_fn_config_lib ()
16330 ac_name=$1
16331 ac_flags=$2
16332 ac_dir=dlls/$ac_name
16334 wine_fn_all_rules Make.rules.in
16335 wine_fn_clean_rules
16337 wine_fn_append_rule \
16338 ".PHONY: $ac_dir/install $ac_dir/uninstall
16339 $ac_dir/install:: $ac_dir \$(DESTDIR)\$(dlldir)
16340 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
16341 $ac_dir/uninstall::
16342 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
16343 install install-dev:: $ac_dir/install
16344 __uninstall__: $ac_dir/uninstall
16345 __builddeps__: $ac_dir
16346 $ac_dir: tools/widl tools/winebuild tools/winegcc include"
16349 wine_fn_config_dll ()
16351 ac_name=$1
16352 ac_dir=dlls/$ac_name
16353 ac_enable=$2
16354 ac_flags=$3
16355 ac_implib=${4:-$ac_name}
16356 ac_file=$ac_dir/lib$ac_implib
16357 ac_dll=$ac_name
16358 ac_deps="tools/widl tools/winebuild tools/winegcc include"
16359 ac_implibflags=""
16361 case $ac_name in
16362 *16) ac_implibflags=" -m16" ;;
16363 *.*) ;;
16364 *) ac_dll=$ac_dll.dll ;;
16365 esac
16367 ac_clean=
16368 wine_fn_has_flag implib && ac_clean="$ac_clean $ac_file.$IMPLIBEXT"
16369 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
16370 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
16371 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_dll"
16373 if eval test \"x\$"$ac_enable"\" = x"no"; then :
16374 if wine_fn_has_flag implib && test "$ac_enable" != enable_win16
16375 then
16376 wine_fn_depend_rules Make.rules.in
16377 wine_fn_clean_rules $ac_clean
16378 else
16379 wine_fn_disabled_rules $ac_clean
16380 return
16382 else
16383 wine_fn_all_rules Make.rules.in
16384 wine_fn_clean_rules $ac_clean
16385 wine_fn_append_rule \
16386 "$ac_dir: __builddeps__
16387 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
16388 @cd $ac_dir && \$(MAKE) \$@
16389 .PHONY: $ac_dir/install-lib $ac_dir/uninstall
16390 install install-lib:: $ac_dir/install-lib
16391 __uninstall__: $ac_dir/uninstall"
16392 if test -n "$DLLEXT"
16393 then
16394 wine_fn_append_rule \
16395 "$ac_dir/install-lib:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
16396 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT
16397 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
16398 $ac_dir/uninstall::
16399 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
16400 else
16401 wine_fn_append_rule \
16402 "$ac_dir/install-lib:: $ac_dir \$(DESTDIR)\$(dlldir)
16403 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
16404 $ac_dir/uninstall::
16405 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
16408 wine_fn_pot_rules
16411 if wine_fn_has_flag staticimplib
16412 then
16413 wine_fn_append_rule \
16414 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
16415 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
16416 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
16417 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
16418 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
16419 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
16420 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
16421 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
16422 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
16423 $ac_dir/uninstall::
16424 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
16425 install install-dev:: $ac_dir/install-dev
16426 __uninstall__: $ac_dir/uninstall"
16428 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
16429 then
16430 wine_fn_append_rule \
16431 "$ac_dir/install-dev:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
16432 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
16433 $ac_dir/uninstall::
16434 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
16437 if test -n "$CROSSTARGET"
16438 then
16439 wine_fn_append_rule \
16440 "__builddeps__: $ac_file.cross.a
16441 $ac_file.cross.a: $ac_dir/Makefile dummy
16442 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
16445 elif wine_fn_has_flag implib
16446 then
16447 wine_fn_append_rule \
16448 "__builddeps__: $ac_file.$IMPLIBEXT
16449 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
16450 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
16451 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
16452 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec
16453 .PHONY: $ac_dir/install-dev $ac_dir/uninstall
16454 $ac_dir/install-dev:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
16455 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
16456 $ac_dir/uninstall::
16457 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
16458 install install-dev:: $ac_dir/install-dev
16459 __uninstall__: $ac_dir/uninstall"
16460 if test -n "$CROSSTARGET"
16461 then
16462 wine_fn_append_rule \
16463 "__builddeps__: $ac_file.cross.a
16464 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
16465 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export $srcdir/$ac_dir/$ac_name.spec"
16468 if test "$ac_name" != "$ac_implib"
16469 then
16470 wine_fn_append_rule \
16471 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
16472 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
16473 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
16474 clean::
16475 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
16476 if test -n "$CROSSTARGET"
16477 then
16478 wine_fn_append_rule \
16479 "__builddeps__: dlls/lib$ac_implib.cross.a
16480 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
16481 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@
16482 clean::
16483 \$(RM) dlls/lib$ac_implib.cross.a"
16489 wine_fn_config_program ()
16491 ac_name=$1
16492 ac_dir=programs/$ac_name
16493 ac_enable=$2
16494 ac_flags=$3
16495 ac_program=$ac_name
16497 case $ac_name in
16498 *.*) ;;
16499 *) ac_program=$ac_program.exe ;;
16500 esac
16502 ac_clean=
16503 wine_fn_has_flag mc && ac_clean="$ac_clean $ac_dir/msg.pot"
16504 wine_fn_has_flag po && ac_clean="$ac_clean $ac_dir/rsrc.pot"
16505 wine_fn_has_flag manpage && ac_clean="$ac_clean $ac_dir/$ac_name.man"
16506 test -n "$DLLEXT" || ac_clean="$ac_clean $ac_dir/$ac_program"
16508 if eval test \"x\$"$ac_enable"\" = x"no"; then :
16509 wine_fn_disabled_rules $ac_clean; return
16512 wine_fn_all_rules Make.rules.in
16513 wine_fn_clean_rules $ac_clean
16514 wine_fn_append_rule "$ac_dir: __builddeps__"
16515 wine_fn_pot_rules
16517 wine_fn_has_flag install || return
16518 wine_fn_append_rule \
16519 ".PHONY: $ac_dir/install $ac_dir/uninstall
16520 install install-lib:: $ac_dir/install
16521 __uninstall__: $ac_dir/uninstall"
16523 if test -n "$DLLEXT"
16524 then
16525 wine_fn_append_rule \
16526 "$ac_dir/install:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
16527 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT
16528 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
16529 $ac_dir/uninstall::
16530 \$(RM) \$(DESTDIR)\$(dlldir)/$DLLPREFIX$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
16532 if test -z "$with_wine64" && wine_fn_has_flag installbin
16533 then
16534 wine_fn_append_rule \
16535 "$ac_dir/install:: __tooldeps__ \$(DESTDIR)\$(bindir)
16536 \$(INSTALL_SCRIPT) \$(TOOLSDIR)/tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
16537 $ac_dir/uninstall::
16538 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
16540 else
16541 wine_fn_append_rule \
16542 "$ac_dir/install:: $ac_dir \$(DESTDIR)\$(bindir)
16543 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(bindir)/$ac_program
16544 $ac_dir/uninstall::
16545 \$(RM) \$(DESTDIR)\$(bindir)/$ac_program"
16548 if test -z "$with_wine64" && wine_fn_has_flag manpage
16549 then
16550 wine_fn_append_rule \
16551 "$ac_dir/install:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
16552 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
16553 $ac_dir/uninstall::
16554 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
16558 wine_fn_config_test ()
16560 ac_dir=$1
16561 ac_name=$2
16562 ac_flags=$3
16564 ac_clean=
16565 test -n "$CROSSTARGET" && ac_clean=`expr $ac_dir/${ac_name} : "\\(.*\\)_test"`_crosstest.exe
16566 test -n "$DLLEXT" || ac_clean="$ac_dir/${ac_name}.exe $ac_dir/${ac_name}-stripped.exe"
16567 ac_clean="$ac_clean $ac_dir/testlist.c"
16569 if test "x$enable_tests" = xno; then :
16570 wine_fn_disabled_rules $ac_clean; return
16573 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
16574 wine_fn_all_rules Make.rules.in
16575 wine_fn_clean_rules $ac_clean
16577 wine_fn_append_rule \
16578 "$ac_dir: programs/winetest/Makefile __builddeps__
16579 programs/winetest: $ac_dir
16580 check test: $ac_dir/test
16581 .PHONY: $ac_dir/test
16582 $ac_dir/test: dummy
16583 @cd $ac_dir && \$(MAKE) test
16584 testclean::
16585 \$(RM) $ac_dir/*.ok"
16587 if test -n "$CROSSTARGET"
16588 then
16589 wine_fn_append_rule \
16590 "crosstest: $ac_dir/crosstest
16591 .PHONY: $ac_dir/crosstest
16592 $ac_dir/crosstest: $ac_dir/Makefile __builddeps__ dummy
16593 @cd $ac_dir && \$(MAKE) crosstest"
16597 wine_fn_config_tool ()
16599 ac_dir=$1
16600 ac_flags=$2
16601 if test "x$enable_tools" = xno; then :
16602 return
16605 wine_fn_all_rules
16606 wine_fn_install_rules
16607 wine_fn_clean_rules
16609 wine_fn_append_rule "__tooldeps__: $ac_dir"
16610 wine_fn_append_rule "$ac_dir: libs/port"
16611 case $ac_dir in
16612 tools/winebuild) wine_fn_append_rule "\$(WINEBUILD): $ac_dir" ;;
16613 esac
16616 wine_fn_config_makerules ()
16618 ac_rules=$1
16619 ac_deps=$2
16620 wine_fn_append_rule \
16621 "$ac_rules: $ac_rules.in $ac_deps config.status
16622 @./config.status $ac_rules
16623 distclean::
16624 \$(RM) $ac_rules"
16627 wine_fn_config_symlink ()
16629 ac_linkdir=
16630 if test "x$1" = "x-d"
16631 then
16632 ac_linkdir=$2
16633 shift; shift
16635 ac_links=$@
16636 wine_fn_append_rule \
16637 "$ac_links:
16638 @./config.status \$@
16639 distclean::
16640 \$(RM) $ac_links"
16641 test -n "$ac_linkdir" || return
16642 wine_fn_append_rule "$ac_linkdir/Makefile $ac_linkdir/depend: $ac_links"
16645 if test -z "$CROSSTARGET"
16646 then
16647 wine_fn_append_rule \
16648 "crosstest:
16649 @echo \"crosstest is not supported (mingw not installed?)\" && false"
16651 wine_fn_append_rule "
16652 # Rules automatically generated by configure
16654 .INIT: Makefile
16655 .MAKEFILEDEPS:
16656 all: Makefile
16657 Makefile: Makefile.in Make.vars.in Make.rules config.status
16658 @./config.status Make.tmp Makefile"
16660 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
16661 wine_fn_config_symlink -d dlls/shell32 dlls/shell32/AUTHORS
16662 if test "x$enable_fonts" != xno; then
16663 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
16664 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
16665 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
16666 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
16667 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.ttf fonts/tahoma.ttf fonts/tahomabd.ttf
16669 ac_config_links="$ac_config_links loader/l_intl.nls:loader/l_intl.nls"
16670 test "$srcdir" = "." || wine_fn_config_symlink loader/l_intl.nls
16671 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
16672 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
16673 ac_config_links="$ac_config_links wine:tools/winewrapper"
16674 wine_fn_config_symlink wine
16675 if test "x$enable_win64" != xno; then
16676 ac_config_links="$ac_config_links wine64:tools/winewrapper"
16677 wine_fn_config_symlink wine64
16680 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
16682 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
16684 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
16686 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
16688 ac_config_commands="$ac_config_commands dlls/user32/resources"
16690 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
16692 ac_config_commands="$ac_config_commands include/wine"
16695 wine_fn_config_makerules Make.rules
16696 MAKE_RULES=Make.rules
16697 ac_config_files="$ac_config_files Make.rules"
16700 wine_fn_config_dll acledit enable_acledit
16701 wine_fn_config_dll aclui enable_aclui implib
16702 wine_fn_config_dll activeds enable_activeds implib
16703 wine_fn_config_dll actxprxy enable_actxprxy clean
16704 wine_fn_config_lib adsiid
16705 wine_fn_config_dll advapi32 enable_advapi32 clean,implib
16706 wine_fn_config_test dlls/advapi32/tests advapi32_test
16707 wine_fn_config_dll advpack enable_advpack implib
16708 wine_fn_config_test dlls/advpack/tests advpack_test
16709 wine_fn_config_dll amstream enable_amstream clean
16710 wine_fn_config_test dlls/amstream/tests amstream_test
16711 wine_fn_config_dll api-ms-win-core-localregistry-l1-1-0 enable_api_ms_win_core_localregistry_l1_1_0
16712 wine_fn_config_dll api-ms-win-core-processthreads-l1-1-0 enable_api_ms_win_core_processthreads_l1_1_0
16713 wine_fn_config_dll api-ms-win-core-winrt-error-l1-1-0 enable_api_ms_win_core_winrt_error_l1_1_0
16714 wine_fn_config_dll api-ms-win-core-winrt-string-l1-1-0 enable_api_ms_win_core_winrt_string_l1_1_0
16715 wine_fn_config_dll api-ms-win-downlevel-advapi32-l1-1-0 enable_api_ms_win_downlevel_advapi32_l1_1_0
16716 wine_fn_config_dll api-ms-win-downlevel-advapi32-l2-1-0 enable_api_ms_win_downlevel_advapi32_l2_1_0
16717 wine_fn_config_dll api-ms-win-downlevel-normaliz-l1-1-0 enable_api_ms_win_downlevel_normaliz_l1_1_0
16718 wine_fn_config_dll api-ms-win-downlevel-ole32-l1-1-0 enable_api_ms_win_downlevel_ole32_l1_1_0
16719 wine_fn_config_dll api-ms-win-downlevel-shell32-l1-1-0 enable_api_ms_win_downlevel_shell32_l1_1_0
16720 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l1-1-0 enable_api_ms_win_downlevel_shlwapi_l1_1_0
16721 wine_fn_config_dll api-ms-win-downlevel-shlwapi-l2-1-0 enable_api_ms_win_downlevel_shlwapi_l2_1_0
16722 wine_fn_config_dll api-ms-win-downlevel-user32-l1-1-0 enable_api_ms_win_downlevel_user32_l1_1_0
16723 wine_fn_config_dll api-ms-win-downlevel-version-l1-1-0 enable_api_ms_win_downlevel_version_l1_1_0
16724 wine_fn_config_dll api-ms-win-security-base-l1-1-0 enable_api_ms_win_security_base_l1_1_0
16725 wine_fn_config_dll apphelp enable_apphelp
16726 wine_fn_config_test dlls/apphelp/tests apphelp_test
16727 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
16728 wine_fn_config_dll atl enable_atl clean,implib
16729 wine_fn_config_test dlls/atl/tests atl_test
16730 wine_fn_config_dll atl100 enable_atl100 implib
16731 wine_fn_config_test dlls/atl100/tests atl100_test
16732 wine_fn_config_dll atl110 enable_atl110
16733 wine_fn_config_dll atl80 enable_atl80 implib
16734 wine_fn_config_test dlls/atl80/tests atl80_test
16735 wine_fn_config_dll atl90 enable_atl90
16736 wine_fn_config_dll authz enable_authz
16737 wine_fn_config_dll avicap32 enable_avicap32 implib
16738 wine_fn_config_dll avifil32 enable_avifil32 clean,implib,po
16739 wine_fn_config_test dlls/avifil32/tests avifil32_test
16740 wine_fn_config_dll avifile.dll16 enable_win16
16741 wine_fn_config_dll avrt enable_avrt implib
16742 wine_fn_config_dll bcrypt enable_bcrypt
16743 wine_fn_config_dll browseui enable_browseui clean,po
16744 wine_fn_config_test dlls/browseui/tests browseui_test
16745 wine_fn_config_dll cabinet enable_cabinet implib
16746 wine_fn_config_test dlls/cabinet/tests cabinet_test
16747 wine_fn_config_dll capi2032 enable_capi2032 implib
16748 wine_fn_config_dll cards enable_cards implib
16749 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
16750 wine_fn_config_dll clusapi enable_clusapi implib
16751 wine_fn_config_dll comcat enable_comcat
16752 wine_fn_config_test dlls/comcat/tests comcat_test
16753 wine_fn_config_dll comctl32 enable_comctl32 implib,po
16754 wine_fn_config_test dlls/comctl32/tests comctl32_test
16755 wine_fn_config_dll comdlg32 enable_comdlg32 clean,implib,po
16756 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
16757 wine_fn_config_dll comm.drv16 enable_win16
16758 wine_fn_config_dll commdlg.dll16 enable_win16
16759 wine_fn_config_dll compobj.dll16 enable_win16
16760 wine_fn_config_dll compstui enable_compstui implib
16761 wine_fn_config_dll comsvcs enable_comsvcs implib
16762 wine_fn_config_dll credui enable_credui implib,po
16763 wine_fn_config_test dlls/credui/tests credui_test
16764 wine_fn_config_dll crtdll enable_crtdll implib
16765 wine_fn_config_dll crypt32 enable_crypt32 implib,po
16766 wine_fn_config_test dlls/crypt32/tests crypt32_test
16767 wine_fn_config_dll cryptdlg enable_cryptdlg po
16768 wine_fn_config_dll cryptdll enable_cryptdll implib
16769 wine_fn_config_dll cryptnet enable_cryptnet implib
16770 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
16771 wine_fn_config_dll cryptui enable_cryptui implib,po
16772 wine_fn_config_test dlls/cryptui/tests cryptui_test
16773 wine_fn_config_dll ctapi32 enable_ctapi32
16774 wine_fn_config_dll ctl3d.dll16 enable_win16
16775 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
16776 wine_fn_config_dll ctl3dv2.dll16 enable_win16
16777 wine_fn_config_dll d3d10 enable_d3d10 implib
16778 wine_fn_config_test dlls/d3d10/tests d3d10_test
16779 wine_fn_config_dll d3d10core enable_d3d10core implib
16780 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
16781 wine_fn_config_dll d3d11 enable_d3d11
16782 wine_fn_config_dll d3d8 enable_d3d8 implib
16783 wine_fn_config_test dlls/d3d8/tests d3d8_test
16784 wine_fn_config_dll d3d9 enable_d3d9 implib
16785 wine_fn_config_test dlls/d3d9/tests d3d9_test
16786 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
16787 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
16788 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
16789 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
16790 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
16791 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
16792 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
16793 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
16794 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
16795 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
16796 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
16797 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
16798 wine_fn_config_dll d3dim enable_d3dim implib
16799 wine_fn_config_dll d3drm enable_d3drm implib
16800 wine_fn_config_test dlls/d3drm/tests d3drm_test
16801 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
16802 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
16803 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
16804 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
16805 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
16806 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
16807 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
16808 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
16809 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
16810 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
16811 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
16812 wine_fn_config_dll d3dx11_42 enable_d3dx11_42
16813 wine_fn_config_dll d3dx11_43 enable_d3dx11_43
16814 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
16815 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
16816 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
16817 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
16818 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
16819 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
16820 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
16821 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
16822 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
16823 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
16824 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
16825 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
16826 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
16827 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
16828 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
16829 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
16830 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
16831 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
16832 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
16833 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
16834 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
16835 wine_fn_config_dll d3dxof enable_d3dxof clean,implib
16836 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
16837 wine_fn_config_dll dbgeng enable_dbgeng implib
16838 wine_fn_config_dll dbghelp enable_dbghelp implib
16839 wine_fn_config_dll dciman32 enable_dciman32 implib
16840 wine_fn_config_dll ddeml.dll16 enable_win16
16841 wine_fn_config_dll ddraw enable_ddraw clean,implib
16842 wine_fn_config_test dlls/ddraw/tests ddraw_test
16843 wine_fn_config_dll ddrawex enable_ddrawex clean
16844 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
16845 wine_fn_config_dll devenum enable_devenum clean,po
16846 wine_fn_config_test dlls/devenum/tests devenum_test
16847 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
16848 wine_fn_config_dll difxapi enable_difxapi
16849 wine_fn_config_dll dinput enable_dinput clean,implib,po,staticimplib
16850 wine_fn_config_test dlls/dinput/tests dinput_test
16851 wine_fn_config_dll dinput8 enable_dinput8 clean,implib
16852 wine_fn_config_test dlls/dinput8/tests dinput8_test
16853 wine_fn_config_dll dispdib.dll16 enable_win16
16854 wine_fn_config_dll dispex enable_dispex clean
16855 wine_fn_config_test dlls/dispex/tests dispex_test
16856 wine_fn_config_dll display.drv16 enable_win16
16857 wine_fn_config_dll dmband enable_dmband clean
16858 wine_fn_config_test dlls/dmband/tests dmband_test
16859 wine_fn_config_dll dmcompos enable_dmcompos clean
16860 wine_fn_config_dll dmime enable_dmime clean
16861 wine_fn_config_test dlls/dmime/tests dmime_test
16862 wine_fn_config_dll dmloader enable_dmloader clean
16863 wine_fn_config_test dlls/dmloader/tests dmloader_test
16864 wine_fn_config_dll dmscript enable_dmscript clean
16865 wine_fn_config_dll dmstyle enable_dmstyle clean
16866 wine_fn_config_dll dmsynth enable_dmsynth clean
16867 wine_fn_config_test dlls/dmsynth/tests dmsynth_test
16868 wine_fn_config_dll dmusic enable_dmusic clean
16869 wine_fn_config_test dlls/dmusic/tests dmusic_test
16870 wine_fn_config_dll dmusic32 enable_dmusic32 implib
16871 wine_fn_config_dll dnsapi enable_dnsapi implib
16872 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
16873 wine_fn_config_dll dplay enable_dplay implib
16874 wine_fn_config_dll dplayx enable_dplayx clean,implib
16875 wine_fn_config_test dlls/dplayx/tests dplayx_test
16876 wine_fn_config_dll dpnaddr enable_dpnaddr
16877 wine_fn_config_dll dpnet enable_dpnet clean,implib
16878 wine_fn_config_test dlls/dpnet/tests dpnet_test
16879 wine_fn_config_dll dpnhpast enable_dpnhpast
16880 wine_fn_config_dll dpnlobby enable_dpnlobby
16881 wine_fn_config_dll dpwsockx enable_dpwsockx
16882 wine_fn_config_dll drmclien enable_drmclien
16883 wine_fn_config_dll dsound enable_dsound clean,implib
16884 wine_fn_config_test dlls/dsound/tests dsound_test
16885 wine_fn_config_dll dssenh enable_dssenh
16886 wine_fn_config_test dlls/dssenh/tests dssenh_test
16887 wine_fn_config_dll dswave enable_dswave clean
16888 wine_fn_config_dll dwmapi enable_dwmapi implib
16889 wine_fn_config_dll dwrite enable_dwrite implib
16890 wine_fn_config_test dlls/dwrite/tests dwrite_test
16891 wine_fn_config_dll dxdiagn enable_dxdiagn clean,po
16892 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
16893 wine_fn_config_lib dxerr8
16894 wine_fn_config_lib dxerr9
16895 wine_fn_config_dll dxgi enable_dxgi implib
16896 wine_fn_config_test dlls/dxgi/tests dxgi_test
16897 wine_fn_config_lib dxguid
16898 wine_fn_config_dll explorerframe enable_explorerframe clean
16899 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
16900 wine_fn_config_dll faultrep enable_faultrep implib
16901 wine_fn_config_test dlls/faultrep/tests faultrep_test
16902 wine_fn_config_dll fltlib enable_fltlib
16903 wine_fn_config_dll fusion enable_fusion
16904 wine_fn_config_test dlls/fusion/tests fusion_test
16905 wine_fn_config_dll fwpuclnt enable_fwpuclnt
16906 wine_fn_config_dll gameux enable_gameux clean
16907 wine_fn_config_test dlls/gameux/tests gameux_test
16908 wine_fn_config_dll gdi.exe16 enable_win16
16909 wine_fn_config_dll gdi32 enable_gdi32 clean,implib,po
16910 wine_fn_config_test dlls/gdi32/tests gdi32_test
16911 wine_fn_config_dll gdiplus enable_gdiplus implib
16912 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
16913 wine_fn_config_dll glu32 enable_glu32 implib
16914 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
16915 wine_fn_config_dll gpkcsp enable_gpkcsp
16916 wine_fn_config_dll hal enable_hal
16917 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
16918 wine_fn_config_dll hid enable_hid implib
16919 wine_fn_config_dll hlink enable_hlink clean,implib
16920 wine_fn_config_test dlls/hlink/tests hlink_test
16921 wine_fn_config_dll hnetcfg enable_hnetcfg clean
16922 wine_fn_config_dll httpapi enable_httpapi
16923 wine_fn_config_dll iccvid enable_iccvid po
16924 wine_fn_config_dll icmp enable_icmp
16925 wine_fn_config_dll ieframe enable_ieframe clean,implib,po
16926 wine_fn_config_test dlls/ieframe/tests ieframe_test
16927 wine_fn_config_dll ifsmgr.vxd enable_win16
16928 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
16929 wine_fn_config_dll imagehlp enable_imagehlp implib
16930 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
16931 wine_fn_config_dll imm.dll16 enable_win16
16932 wine_fn_config_dll imm32 enable_imm32 implib
16933 wine_fn_config_test dlls/imm32/tests imm32_test
16934 wine_fn_config_dll inetcomm enable_inetcomm clean,implib
16935 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
16936 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
16937 wine_fn_config_dll inetmib1 enable_inetmib1
16938 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
16939 wine_fn_config_dll infosoft enable_infosoft clean
16940 wine_fn_config_test dlls/infosoft/tests infosoft_test
16941 wine_fn_config_dll initpki enable_initpki
16942 wine_fn_config_dll inkobj enable_inkobj
16943 wine_fn_config_dll inseng enable_inseng clean
16944 wine_fn_config_dll iphlpapi enable_iphlpapi implib
16945 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
16946 wine_fn_config_dll itircl enable_itircl
16947 wine_fn_config_dll itss enable_itss clean
16948 wine_fn_config_test dlls/itss/tests itss_test
16949 wine_fn_config_dll joy.cpl enable_joy_cpl po
16950 wine_fn_config_dll jscript enable_jscript clean,po
16951 wine_fn_config_test dlls/jscript/tests jscript_test
16952 wine_fn_config_dll kernel32 enable_kernel32 clean,implib,mc
16953 wine_fn_config_test dlls/kernel32/tests kernel32_test
16954 wine_fn_config_dll keyboard.drv16 enable_win16
16955 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
16956 wine_fn_config_dll ktmw32 enable_ktmw32
16957 wine_fn_config_dll loadperf enable_loadperf implib
16958 wine_fn_config_dll localspl enable_localspl po
16959 wine_fn_config_test dlls/localspl/tests localspl_test
16960 wine_fn_config_dll localui enable_localui po
16961 wine_fn_config_test dlls/localui/tests localui_test
16962 wine_fn_config_dll lz32 enable_lz32 implib
16963 wine_fn_config_test dlls/lz32/tests lz32_test
16964 wine_fn_config_dll lzexpand.dll16 enable_win16
16965 wine_fn_config_dll mapi32 enable_mapi32 implib,po
16966 wine_fn_config_test dlls/mapi32/tests mapi32_test
16967 wine_fn_config_dll mapistub enable_mapistub
16968 wine_fn_config_dll mciavi32 enable_mciavi32
16969 wine_fn_config_dll mcicda enable_mcicda
16970 wine_fn_config_dll mciqtz32 enable_mciqtz32
16971 wine_fn_config_dll mciseq enable_mciseq
16972 wine_fn_config_dll mciwave enable_mciwave
16973 wine_fn_config_dll mgmtapi enable_mgmtapi
16974 wine_fn_config_dll midimap enable_midimap
16975 wine_fn_config_dll mlang enable_mlang clean,implib
16976 wine_fn_config_test dlls/mlang/tests mlang_test
16977 wine_fn_config_dll mmcndmgr enable_mmcndmgr clean
16978 wine_fn_config_test dlls/mmcndmgr/tests mmcndmgr_test
16979 wine_fn_config_dll mmdevapi enable_mmdevapi clean
16980 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
16981 wine_fn_config_dll mmdevldr.vxd enable_win16
16982 wine_fn_config_dll mmsystem.dll16 enable_win16
16983 wine_fn_config_dll monodebg.vxd enable_win16
16984 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
16985 wine_fn_config_dll mouse.drv16 enable_win16
16986 wine_fn_config_dll mpr enable_mpr implib,po
16987 wine_fn_config_test dlls/mpr/tests mpr_test
16988 wine_fn_config_dll mprapi enable_mprapi implib
16989 wine_fn_config_dll msacm.dll16 enable_win16
16990 wine_fn_config_dll msacm32.drv enable_msacm32_drv
16991 wine_fn_config_dll msacm32 enable_msacm32 implib,po
16992 wine_fn_config_test dlls/msacm32/tests msacm32_test
16993 wine_fn_config_dll msadp32.acm enable_msadp32_acm
16994 wine_fn_config_dll mscat32 enable_mscat32
16995 wine_fn_config_dll mscms enable_mscms implib
16996 wine_fn_config_test dlls/mscms/tests mscms_test
16997 wine_fn_config_dll mscoree enable_mscoree clean
16998 wine_fn_config_test dlls/mscoree/tests mscoree_test
16999 wine_fn_config_dll msctf enable_msctf clean
17000 wine_fn_config_test dlls/msctf/tests msctf_test
17001 wine_fn_config_dll msdaps enable_msdaps clean
17002 wine_fn_config_dll msdmo enable_msdmo implib
17003 wine_fn_config_dll msftedit enable_msftedit
17004 wine_fn_config_dll msg711.acm enable_msg711_acm
17005 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
17006 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb clean
17007 wine_fn_config_dll mshtml enable_mshtml clean,implib,po
17008 wine_fn_config_test dlls/mshtml/tests mshtml_test clean
17009 wine_fn_config_dll msi enable_msi clean,implib,po
17010 wine_fn_config_test dlls/msi/tests msi_test
17011 wine_fn_config_dll msident enable_msident clean
17012 wine_fn_config_dll msimg32 enable_msimg32 implib
17013 wine_fn_config_dll msimsg enable_msimsg
17014 wine_fn_config_dll msimtf enable_msimtf clean
17015 wine_fn_config_dll msisip enable_msisip
17016 wine_fn_config_dll msisys.ocx enable_msisys_ocx
17017 wine_fn_config_dll msls31 enable_msls31
17018 wine_fn_config_dll msnet32 enable_msnet32
17019 wine_fn_config_dll mspatcha enable_mspatcha
17020 wine_fn_config_dll msrle32 enable_msrle32 po
17021 wine_fn_config_dll mssign32 enable_mssign32
17022 wine_fn_config_dll mssip32 enable_mssip32
17023 wine_fn_config_dll mstask enable_mstask clean
17024 wine_fn_config_test dlls/mstask/tests mstask_test
17025 wine_fn_config_dll msvcirt enable_msvcirt
17026 wine_fn_config_dll msvcm80 enable_msvcm80
17027 wine_fn_config_dll msvcm90 enable_msvcm90
17028 wine_fn_config_dll msvcp100 enable_msvcp100
17029 wine_fn_config_test dlls/msvcp100/tests msvcp100_test
17030 wine_fn_config_dll msvcp110 enable_msvcp110
17031 wine_fn_config_dll msvcp60 enable_msvcp60
17032 wine_fn_config_test dlls/msvcp60/tests msvcp60_test
17033 wine_fn_config_dll msvcp70 enable_msvcp70
17034 wine_fn_config_dll msvcp71 enable_msvcp71
17035 wine_fn_config_dll msvcp80 enable_msvcp80
17036 wine_fn_config_dll msvcp90 enable_msvcp90
17037 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
17038 wine_fn_config_dll msvcr100 enable_msvcr100
17039 wine_fn_config_test dlls/msvcr100/tests msvcr100_test
17040 wine_fn_config_dll msvcr110 enable_msvcr110
17041 wine_fn_config_dll msvcr70 enable_msvcr70 implib
17042 wine_fn_config_dll msvcr71 enable_msvcr71 implib
17043 wine_fn_config_dll msvcr80 enable_msvcr80
17044 wine_fn_config_dll msvcr90 enable_msvcr90
17045 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
17046 wine_fn_config_dll msvcrt enable_msvcrt implib
17047 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
17048 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
17049 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
17050 wine_fn_config_dll msvcrtd enable_msvcrtd implib
17051 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
17052 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
17053 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
17054 wine_fn_config_dll msvidc32 enable_msvidc32 po
17055 wine_fn_config_dll msvideo.dll16 enable_win16
17056 wine_fn_config_dll mswsock enable_mswsock implib
17057 wine_fn_config_dll msxml enable_msxml clean
17058 wine_fn_config_dll msxml2 enable_msxml2 clean
17059 wine_fn_config_dll msxml3 enable_msxml3 clean
17060 wine_fn_config_test dlls/msxml3/tests msxml3_test clean
17061 wine_fn_config_dll msxml4 enable_msxml4 clean
17062 wine_fn_config_dll msxml6 enable_msxml6 clean
17063 wine_fn_config_dll nddeapi enable_nddeapi implib
17064 wine_fn_config_dll netapi32 enable_netapi32 implib
17065 wine_fn_config_test dlls/netapi32/tests netapi32_test
17066 wine_fn_config_dll netcfgx enable_netcfgx
17067 wine_fn_config_dll newdev enable_newdev implib
17068 wine_fn_config_dll normaliz enable_normaliz implib
17069 wine_fn_config_dll npmshtml enable_npmshtml
17070 wine_fn_config_dll ntdll enable_ntdll implib
17071 wine_fn_config_test dlls/ntdll/tests ntdll_test
17072 wine_fn_config_dll ntdsapi enable_ntdsapi implib
17073 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
17074 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
17075 wine_fn_config_dll ntprint enable_ntprint
17076 wine_fn_config_test dlls/ntprint/tests ntprint_test
17077 wine_fn_config_dll objsel enable_objsel clean
17078 wine_fn_config_dll odbc32 enable_odbc32 implib
17079 wine_fn_config_dll odbccp32 enable_odbccp32 implib
17080 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
17081 wine_fn_config_dll odbccu32 enable_odbccu32
17082 wine_fn_config_dll ole2.dll16 enable_win16
17083 wine_fn_config_dll ole2conv.dll16 enable_win16
17084 wine_fn_config_dll ole2disp.dll16 enable_win16
17085 wine_fn_config_dll ole2nls.dll16 enable_win16
17086 wine_fn_config_dll ole2prox.dll16 enable_win16
17087 wine_fn_config_dll ole2thk.dll16 enable_win16
17088 wine_fn_config_dll ole32 enable_ole32 clean,implib
17089 wine_fn_config_test dlls/ole32/tests ole32_test
17090 wine_fn_config_dll oleacc enable_oleacc clean,implib,po
17091 wine_fn_config_test dlls/oleacc/tests oleacc_test
17092 wine_fn_config_dll oleaut32 enable_oleaut32 clean,implib,po
17093 wine_fn_config_test dlls/oleaut32/tests oleaut32_test clean
17094 wine_fn_config_dll olecli.dll16 enable_win16
17095 wine_fn_config_dll olecli32 enable_olecli32 implib
17096 wine_fn_config_dll oledb32 enable_oledb32 clean
17097 wine_fn_config_test dlls/oledb32/tests oledb32_test clean
17098 wine_fn_config_dll oledlg enable_oledlg implib,po
17099 wine_fn_config_dll olepro32 enable_olepro32 implib
17100 wine_fn_config_dll olesvr.dll16 enable_win16
17101 wine_fn_config_dll olesvr32 enable_olesvr32 implib
17102 wine_fn_config_dll olethk32 enable_olethk32
17103 wine_fn_config_dll openal32 enable_openal32
17104 wine_fn_config_dll opencl enable_opencl
17105 wine_fn_config_dll opengl32 enable_opengl32 implib
17106 wine_fn_config_test dlls/opengl32/tests opengl32_test
17107 wine_fn_config_dll pdh enable_pdh implib
17108 wine_fn_config_test dlls/pdh/tests pdh_test
17109 wine_fn_config_dll photometadatahandler enable_photometadatahandler
17110 wine_fn_config_dll pidgen enable_pidgen
17111 wine_fn_config_dll powrprof enable_powrprof implib
17112 wine_fn_config_dll printui enable_printui
17113 wine_fn_config_dll propsys enable_propsys clean,implib
17114 wine_fn_config_test dlls/propsys/tests propsys_test
17115 wine_fn_config_dll psapi enable_psapi implib
17116 wine_fn_config_test dlls/psapi/tests psapi_test
17117 wine_fn_config_dll pstorec enable_pstorec clean
17118 wine_fn_config_dll qcap enable_qcap
17119 wine_fn_config_test dlls/qcap/tests qcap_test
17120 wine_fn_config_dll qedit enable_qedit clean
17121 wine_fn_config_test dlls/qedit/tests qedit_test
17122 wine_fn_config_dll qmgr enable_qmgr clean
17123 wine_fn_config_test dlls/qmgr/tests qmgr_test
17124 wine_fn_config_dll qmgrprxy enable_qmgrprxy clean
17125 wine_fn_config_dll quartz enable_quartz clean,implib
17126 wine_fn_config_test dlls/quartz/tests quartz_test clean
17127 wine_fn_config_dll query enable_query
17128 wine_fn_config_dll rasapi16.dll16 enable_win16
17129 wine_fn_config_dll rasapi32 enable_rasapi32 implib
17130 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
17131 wine_fn_config_dll rasdlg enable_rasdlg implib
17132 wine_fn_config_dll regapi enable_regapi
17133 wine_fn_config_dll resutils enable_resutils implib
17134 wine_fn_config_dll riched20 enable_riched20 implib
17135 wine_fn_config_test dlls/riched20/tests riched20_test
17136 wine_fn_config_dll riched32 enable_riched32
17137 wine_fn_config_test dlls/riched32/tests riched32_test
17138 wine_fn_config_dll rpcrt4 enable_rpcrt4 clean,implib
17139 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test clean
17140 wine_fn_config_dll rsabase enable_rsabase
17141 wine_fn_config_dll rsaenh enable_rsaenh implib
17142 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
17143 wine_fn_config_dll rstrtmgr enable_rstrtmgr
17144 wine_fn_config_dll rtutils enable_rtutils implib
17145 wine_fn_config_dll samlib enable_samlib
17146 wine_fn_config_dll sane.ds enable_sane_ds po
17147 wine_fn_config_dll scarddlg enable_scarddlg
17148 wine_fn_config_dll sccbase enable_sccbase
17149 wine_fn_config_dll schannel enable_schannel
17150 wine_fn_config_test dlls/schannel/tests schannel_test
17151 wine_fn_config_dll scrrun enable_scrrun clean
17152 wine_fn_config_test dlls/scrrun/tests scrrun_test clean
17153 wine_fn_config_dll scsiport.sys enable_scsiport_sys
17154 wine_fn_config_dll secur32 enable_secur32 implib
17155 wine_fn_config_test dlls/secur32/tests secur32_test
17156 wine_fn_config_dll security enable_security
17157 wine_fn_config_dll sensapi enable_sensapi implib
17158 wine_fn_config_dll serialui enable_serialui implib,po
17159 wine_fn_config_test dlls/serialui/tests serialui_test
17160 wine_fn_config_dll setupapi enable_setupapi implib,po
17161 wine_fn_config_test dlls/setupapi/tests setupapi_test
17162 wine_fn_config_dll setupx.dll16 enable_win16
17163 wine_fn_config_dll sfc enable_sfc implib
17164 wine_fn_config_dll sfc_os enable_sfc_os implib
17165 wine_fn_config_dll shdoclc enable_shdoclc po
17166 wine_fn_config_dll shdocvw enable_shdocvw clean,implib
17167 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
17168 wine_fn_config_dll shell.dll16 enable_win16
17169 wine_fn_config_dll shell32 enable_shell32 clean,implib,po
17170 wine_fn_config_test dlls/shell32/tests shell32_test
17171 wine_fn_config_dll shfolder enable_shfolder implib
17172 wine_fn_config_dll shlwapi enable_shlwapi implib,po
17173 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
17174 wine_fn_config_dll slbcsp enable_slbcsp
17175 wine_fn_config_dll slc enable_slc implib
17176 wine_fn_config_dll snmpapi enable_snmpapi implib
17177 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
17178 wine_fn_config_dll softpub enable_softpub
17179 wine_fn_config_dll sound.drv16 enable_win16
17180 wine_fn_config_dll spoolss enable_spoolss implib
17181 wine_fn_config_test dlls/spoolss/tests spoolss_test
17182 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb clean
17183 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb clean
17184 wine_fn_config_dll sti enable_sti clean,implib
17185 wine_fn_config_test dlls/sti/tests sti_test
17186 wine_fn_config_dll storage.dll16 enable_win16
17187 wine_fn_config_dll stress.dll16 enable_win16
17188 wine_fn_config_lib strmbase
17189 wine_fn_config_lib strmiids
17190 wine_fn_config_dll svrapi enable_svrapi
17191 wine_fn_config_dll sxs enable_sxs implib
17192 wine_fn_config_test dlls/sxs/tests sxs_test
17193 wine_fn_config_dll system.drv16 enable_win16
17194 wine_fn_config_dll t2embed enable_t2embed
17195 wine_fn_config_dll tapi32 enable_tapi32 implib
17196 wine_fn_config_dll toolhelp.dll16 enable_win16
17197 wine_fn_config_dll traffic enable_traffic
17198 wine_fn_config_dll twain.dll16 enable_win16
17199 wine_fn_config_dll twain_32 enable_twain_32
17200 wine_fn_config_test dlls/twain_32/tests twain_32_test
17201 wine_fn_config_dll typelib.dll16 enable_win16
17202 wine_fn_config_dll unicows enable_unicows implib
17203 wine_fn_config_dll updspapi enable_updspapi
17204 wine_fn_config_dll url enable_url implib
17205 wine_fn_config_dll urlmon enable_urlmon clean,implib,po
17206 wine_fn_config_test dlls/urlmon/tests urlmon_test
17207 wine_fn_config_dll usbd.sys enable_usbd_sys implib
17208 wine_fn_config_dll user.exe16 enable_win16
17209 wine_fn_config_dll user32 enable_user32 clean,implib,po
17210 wine_fn_config_test dlls/user32/tests user32_test
17211 wine_fn_config_dll userenv enable_userenv implib
17212 wine_fn_config_test dlls/userenv/tests userenv_test
17213 wine_fn_config_dll usp10 enable_usp10 implib
17214 wine_fn_config_test dlls/usp10/tests usp10_test
17215 wine_fn_config_lib uuid
17216 wine_fn_config_dll uxtheme enable_uxtheme implib
17217 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
17218 wine_fn_config_dll vbscript enable_vbscript clean
17219 wine_fn_config_test dlls/vbscript/tests vbscript_test clean
17220 wine_fn_config_dll vcomp enable_vcomp
17221 wine_fn_config_dll vcomp100 enable_vcomp100
17222 wine_fn_config_dll vcomp90 enable_vcomp90
17223 wine_fn_config_dll vdhcp.vxd enable_win16
17224 wine_fn_config_dll vdmdbg enable_vdmdbg implib
17225 wine_fn_config_dll ver.dll16 enable_win16
17226 wine_fn_config_dll version enable_version implib
17227 wine_fn_config_test dlls/version/tests version_test
17228 wine_fn_config_dll vmm.vxd enable_win16
17229 wine_fn_config_dll vnbt.vxd enable_win16
17230 wine_fn_config_dll vnetbios.vxd enable_win16
17231 wine_fn_config_dll vtdapi.vxd enable_win16
17232 wine_fn_config_dll vwin32.vxd enable_win16
17233 wine_fn_config_dll w32skrnl enable_win16
17234 wine_fn_config_dll w32sys.dll16 enable_win16
17235 wine_fn_config_dll wbemdisp enable_wbemdisp clean
17236 wine_fn_config_dll wbemprox enable_wbemprox clean
17237 wine_fn_config_test dlls/wbemprox/tests wbemprox_test
17238 wine_fn_config_dll webservices enable_webservices implib
17239 wine_fn_config_dll wer enable_wer implib
17240 wine_fn_config_test dlls/wer/tests wer_test
17241 wine_fn_config_dll wevtapi enable_wevtapi
17242 wine_fn_config_dll wiaservc enable_wiaservc clean
17243 wine_fn_config_dll win32s16.dll16 enable_win16
17244 wine_fn_config_dll win87em.dll16 enable_win16
17245 wine_fn_config_dll winaspi.dll16 enable_win16
17246 wine_fn_config_dll windebug.dll16 enable_win16
17247 wine_fn_config_dll windowscodecs enable_windowscodecs clean,implib
17248 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
17249 wine_fn_config_dll windowscodecsext enable_windowscodecsext implib
17250 wine_fn_config_test dlls/windowscodecsext/tests windowscodecsext_test
17251 wine_fn_config_dll winealsa.drv enable_winealsa_drv
17252 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
17253 wine_fn_config_lib winecrt0
17254 wine_fn_config_dll wined3d enable_wined3d implib
17255 wine_fn_config_dll winegstreamer enable_winegstreamer
17256 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
17257 wine_fn_config_dll winemac.drv enable_winemac_drv
17258 wine_fn_config_dll winemapi enable_winemapi
17259 wine_fn_config_dll winemp3.acm enable_winemp3_acm
17260 wine_fn_config_dll wineoss.drv enable_wineoss_drv
17261 wine_fn_config_dll wineps.drv enable_wineps_drv clean,po
17262 wine_fn_config_dll wineps16.drv16 enable_win16
17263 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
17264 wine_fn_config_dll winex11.drv enable_winex11_drv
17265 wine_fn_config_dll wing.dll16 enable_win16
17266 wine_fn_config_dll wing32 enable_wing32
17267 wine_fn_config_dll winhttp enable_winhttp clean,implib
17268 wine_fn_config_test dlls/winhttp/tests winhttp_test
17269 wine_fn_config_dll wininet enable_wininet implib,po
17270 wine_fn_config_test dlls/wininet/tests wininet_test
17271 wine_fn_config_dll winmm enable_winmm implib,po
17272 wine_fn_config_test dlls/winmm/tests winmm_test
17273 wine_fn_config_dll winnls.dll16 enable_win16
17274 wine_fn_config_dll winnls32 enable_winnls32 implib
17275 wine_fn_config_dll winscard enable_winscard implib
17276 wine_fn_config_dll winsock.dll16 enable_win16
17277 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
17278 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
17279 wine_fn_config_dll winsta enable_winsta
17280 wine_fn_config_dll wintab.dll16 enable_win16
17281 wine_fn_config_dll wintab32 enable_wintab32 implib
17282 wine_fn_config_test dlls/wintab32/tests wintab32_test
17283 wine_fn_config_dll wintrust enable_wintrust implib
17284 wine_fn_config_test dlls/wintrust/tests wintrust_test
17285 wine_fn_config_dll wlanapi enable_wlanapi
17286 wine_fn_config_dll wldap32 enable_wldap32 implib,po
17287 wine_fn_config_test dlls/wldap32/tests wldap32_test
17288 wine_fn_config_dll wmi enable_wmi
17289 wine_fn_config_dll wmiutils enable_wmiutils clean
17290 wine_fn_config_test dlls/wmiutils/tests wmiutils_test
17291 wine_fn_config_dll wmvcore enable_wmvcore
17292 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
17293 wine_fn_config_dll wow32 enable_win16 implib
17294 wine_fn_config_dll ws2_32 enable_ws2_32 implib
17295 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
17296 wine_fn_config_dll wshom.ocx enable_wshom_ocx clean
17297 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test clean
17298 wine_fn_config_dll wsnmp32 enable_wsnmp32 implib
17299 wine_fn_config_test dlls/wsnmp32/tests wsnmp32_test
17300 wine_fn_config_dll wsock32 enable_wsock32 implib
17301 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
17302 wine_fn_config_dll wuapi enable_wuapi clean
17303 wine_fn_config_dll wuaueng enable_wuaueng
17304 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
17305 wine_fn_config_dll xinput1_1 enable_xinput1_1
17306 wine_fn_config_dll xinput1_2 enable_xinput1_2
17307 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
17308 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
17309 wine_fn_config_dll xinput1_4 enable_xinput1_4
17310 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
17311 wine_fn_config_dll xmllite enable_xmllite
17312 wine_fn_config_test dlls/xmllite/tests xmllite_test
17313 wine_fn_config_dll xolehlp enable_xolehlp
17314 wine_fn_config_dll xpsprint enable_xpsprint
17315 wine_fn_config_dll xpssvcs enable_xpssvcs
17316 wine_fn_config_makefile documentation enable_documentation clean
17317 wine_fn_config_makefile fonts enable_fonts clean,install-lib
17318 wine_fn_config_makefile include enable_include clean,install-dev
17319 wine_fn_config_makefile libs/port enable_libs_port
17320 wine_fn_config_makefile libs/wine enable_libs_wine clean,install-dev,install-lib
17321 wine_fn_config_makefile libs/wpp enable_libs_wpp
17322 wine_fn_config_makefile loader enable_loader clean,install-lib,manpage
17323 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
17324 wine_fn_config_program attrib enable_attrib install,po
17325 wine_fn_config_program cabarc enable_cabarc install
17326 wine_fn_config_program cacls enable_cacls install
17327 wine_fn_config_program clock enable_clock install,po
17328 wine_fn_config_program cmd enable_cmd install,po
17329 wine_fn_config_test programs/cmd/tests cmd.exe_test
17330 wine_fn_config_program conhost enable_conhost install
17331 wine_fn_config_program control enable_control install
17332 wine_fn_config_program cscript enable_cscript install
17333 wine_fn_config_program dxdiag enable_dxdiag install,po
17334 wine_fn_config_program eject enable_eject install
17335 wine_fn_config_program expand enable_expand install
17336 wine_fn_config_program explorer enable_explorer install,po
17337 wine_fn_config_program extrac32 enable_extrac32 install
17338 wine_fn_config_program findstr enable_findstr install
17339 wine_fn_config_program hh enable_hh install
17340 wine_fn_config_program hostname enable_hostname install,po
17341 wine_fn_config_program icinfo enable_icinfo install
17342 wine_fn_config_program iexplore enable_iexplore install
17343 wine_fn_config_program ipconfig enable_ipconfig install,po
17344 wine_fn_config_program lodctr enable_lodctr install
17345 wine_fn_config_program mofcomp enable_mofcomp install
17346 wine_fn_config_program mshta enable_mshta install
17347 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
17348 wine_fn_config_program net enable_net install,po
17349 wine_fn_config_program netsh enable_netsh install
17350 wine_fn_config_program netstat enable_netstat install,po
17351 wine_fn_config_program ngen enable_ngen install
17352 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
17353 wine_fn_config_program oleview enable_oleview install,po
17354 wine_fn_config_program ping enable_ping install
17355 wine_fn_config_program plugplay enable_plugplay install
17356 wine_fn_config_program presentationfontcache enable_presentationfontcache install
17357 wine_fn_config_program progman enable_progman install,po
17358 wine_fn_config_program reg enable_reg install,po
17359 wine_fn_config_program regasm enable_regasm install
17360 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
17361 wine_fn_config_test programs/regedit/tests regedit.exe_test
17362 wine_fn_config_program regsvcs enable_regsvcs install
17363 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
17364 wine_fn_config_program rpcss enable_rpcss clean,install
17365 wine_fn_config_program rundll.exe16 enable_win16 install
17366 wine_fn_config_program rundll32 enable_rundll32 install
17367 wine_fn_config_program sc enable_sc install
17368 wine_fn_config_program schtasks enable_schtasks install
17369 wine_fn_config_program secedit enable_secedit install
17370 wine_fn_config_program servicemodelreg enable_servicemodelreg install
17371 wine_fn_config_program services enable_services clean,install
17372 wine_fn_config_test programs/services/tests services.exe_test
17373 wine_fn_config_program spoolsv enable_spoolsv install
17374 wine_fn_config_program start enable_start install,po
17375 wine_fn_config_program svchost enable_svchost install
17376 wine_fn_config_program taskkill enable_taskkill install,po
17377 wine_fn_config_program tasklist enable_tasklist install
17378 wine_fn_config_program taskmgr enable_taskmgr install,po
17379 wine_fn_config_program termsv enable_termsv install
17380 wine_fn_config_program uninstaller enable_uninstaller install,po
17381 wine_fn_config_program unlodctr enable_unlodctr install
17382 wine_fn_config_program view enable_view install,po
17383 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
17384 wine_fn_config_program winebrowser enable_winebrowser install
17385 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
17386 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
17387 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
17388 wine_fn_config_program winedevice enable_winedevice install
17389 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
17390 wine_fn_config_program winemenubuilder enable_winemenubuilder install
17391 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
17392 wine_fn_config_program winemsibuilder enable_winemsibuilder install
17393 wine_fn_config_program winepath enable_winepath install,installbin,manpage
17394 wine_fn_config_program winetest enable_winetest clean
17395 wine_fn_config_program winevdm enable_win16 install
17396 wine_fn_config_program winhelp.exe16 enable_win16 install
17397 wine_fn_config_program winhlp32 enable_winhlp32 install,po
17398 wine_fn_config_program winoldap.mod16 enable_win16 install
17399 wine_fn_config_program winver enable_winver install
17400 wine_fn_config_program wmic enable_wmic install,po
17401 wine_fn_config_program wordpad enable_wordpad install,po
17402 wine_fn_config_program write enable_write install,po
17403 wine_fn_config_program wscript enable_wscript clean,install
17404 wine_fn_config_test programs/wscript/tests wscript.exe_test
17405 wine_fn_config_program wusa enable_wusa install
17406 wine_fn_config_program xcopy enable_xcopy install,po
17407 wine_fn_config_makefile server enable_server clean,install-lib,manpage
17408 wine_fn_config_tool tools clean,install-dev,install-lib,manpage
17409 wine_fn_config_tool tools/widl clean,install-dev,manpage
17410 wine_fn_config_tool tools/winebuild clean,install-dev,manpage
17411 wine_fn_config_tool tools/winedump clean,install-dev,manpage
17412 wine_fn_config_tool tools/winegcc clean,install-dev,manpage
17413 wine_fn_config_tool tools/wmc clean,install-dev,manpage
17414 wine_fn_config_tool tools/wrc clean,install-dev,manpage
17416 LINGUAS="\
17417 ar \
17418 bg \
17419 ca \
17420 cs \
17421 da \
17422 de \
17423 el \
17424 en \
17425 en_US \
17426 eo \
17427 es \
17428 fa \
17429 fi \
17430 fr \
17431 he \
17432 hi \
17433 hr \
17434 hu \
17435 it \
17436 ja \
17437 ko \
17438 lt \
17439 ml \
17440 nb_NO \
17441 nl \
17442 or \
17443 pa \
17444 pl \
17445 pt_BR \
17446 pt_PT \
17447 rm \
17448 ro \
17449 ru \
17450 sk \
17451 sl \
17452 sr_RS@cyrillic \
17453 sr_RS@latin \
17454 sv \
17455 te \
17456 th \
17457 tr \
17458 uk \
17459 wa \
17460 zh_CN \
17461 zh_TW"
17465 ac_config_commands="$ac_config_commands Makefile"
17468 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
17472 if test "x$enable_maintainer_mode" = xyes
17473 then
17474 wine_fn_append_rule "configure: configure.ac aclocal.m4
17475 autoconf --warnings=all
17476 include/config.h.in: include/stamp-h.in
17477 include/stamp-h.in: configure.ac aclocal.m4
17478 autoheader --warnings=all
17479 @echo timestamp > \$@"
17482 if test "x$with_gettextpo" = xyes
17483 then
17484 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
17485 wine_fn_append_rule "ALL_POT_FILES =$ALL_POT_FILES
17486 \$(LINGUAS:%=po/%.po): po/wine.pot
17487 msgmerge --previous -q \$@ po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
17488 po/wine.pot: \$(ALL_POT_FILES)
17489 msgcat -o \$@ \$(ALL_POT_FILES)"
17492 if test "$MSGFMT" != false
17493 then
17494 PORCFLAGS="--po-dir=\$(top_builddir)/po"
17496 wine_fn_append_rule "__builddeps__: \$(ALL_MO_FILES)
17497 clean::
17498 \$(RM) \$(ALL_MO_FILES)"
17500 posrc="po"
17501 test "$srcdir" = . || posrc="$srcdir/po"
17502 for i in $LINGUAS
17504 wine_fn_append_rule "po/$i.mo: $posrc/$i.po
17505 \$(MSGFMT) -o \$@ $posrc/$i.po"
17506 done
17507 else
17508 LINGUAS=
17511 if test "x$enable_tools" != xno
17512 then
17513 ac_config_commands="$ac_config_commands tools"
17515 wine_fn_append_rule "tools/makedep$ac_exeext: tools/makedep.c include/config.h
17516 \$(CC) \$(ALLCFLAGS) -o \$@ $srcdir/tools/makedep.c \$(LDFLAGS)
17517 clean:: __clean__
17518 \$(RM) tools/makedep$ac_exeext"
17521 if test -n "$with_wine64"
17522 then
17523 wine_fn_append_rule "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
17524 fonts server tools:
17525 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
17526 $with_wine64/loader/wine:
17527 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
17528 $with_wine64/loader/wine-preloader:
17529 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
17530 clean::
17531 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
17532 else
17533 as_fn_append LOADER_RULES "
17534 all: wine.inf
17536 wine.inf: wine.inf.in \$(top_builddir)/include/config.h
17537 LC_ALL=C sed -e 's,@PACKAGE_STRING@,$PACKAGE_STRING,g' \$(srcdir)/wine.inf.in >\$@ || (\$(RM) \$@ && false)
17539 install install-lib:: wine.inf \$(DESTDIR)\$(datadir)/wine install-man-pages
17540 \$(INSTALL_DATA) wine.inf \$(DESTDIR)\$(datadir)/wine/wine.inf
17541 \$(INSTALL_DATA) \$(srcdir)/l_intl.nls \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17543 uninstall::
17544 \$(RM) \$(DESTDIR)\$(datadir)/wine/wine.inf \$(DESTDIR)\$(datadir)/wine/l_intl.nls
17548 $as_echo " done" >&6
17549 cat >confcache <<\_ACEOF
17550 # This file is a shell script that caches the results of configure
17551 # tests run on this system so they can be shared between configure
17552 # scripts and configure runs, see configure's option --config-cache.
17553 # It is not useful on other systems. If it contains results you don't
17554 # want to keep, you may remove or edit it.
17556 # config.status only pays attention to the cache file if you give it
17557 # the --recheck option to rerun configure.
17559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17561 # following values.
17563 _ACEOF
17565 # The following way of writing the cache mishandles newlines in values,
17566 # but we know of no workaround that is simple, portable, and efficient.
17567 # So, we kill variables containing newlines.
17568 # Ultrix sh set writes to stderr and can't be redirected directly,
17569 # and sets the high bit in the cache file unless we assign to the vars.
17571 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17572 eval ac_val=\$$ac_var
17573 case $ac_val in #(
17574 *${as_nl}*)
17575 case $ac_var in #(
17576 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17577 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17578 esac
17579 case $ac_var in #(
17580 _ | IFS | as_nl) ;; #(
17581 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17582 *) { eval $ac_var=; unset $ac_var;} ;;
17583 esac ;;
17584 esac
17585 done
17587 (set) 2>&1 |
17588 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17589 *${as_nl}ac_space=\ *)
17590 # `set' does not quote correctly, so add quotes: double-quote
17591 # substitution turns \\\\ into \\, and sed turns \\ into \.
17592 sed -n \
17593 "s/'/'\\\\''/g;
17594 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17595 ;; #(
17597 # `set' quotes correctly as required by POSIX, so do not add quotes.
17598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17600 esac |
17601 sort
17603 sed '
17604 /^ac_cv_env_/b end
17605 t clear
17606 :clear
17607 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17608 t end
17609 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17610 :end' >>confcache
17611 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17612 if test -w "$cache_file"; then
17613 if test "x$cache_file" != "x/dev/null"; then
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17615 $as_echo "$as_me: updating cache $cache_file" >&6;}
17616 if test ! -f "$cache_file" || test -h "$cache_file"; then
17617 cat confcache >"$cache_file"
17618 else
17619 case $cache_file in #(
17620 */* | ?:*)
17621 mv -f confcache "$cache_file"$$ &&
17622 mv -f "$cache_file"$$ "$cache_file" ;; #(
17624 mv -f confcache "$cache_file" ;;
17625 esac
17628 else
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17630 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17633 rm -f confcache
17635 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17636 # Let make expand exec_prefix.
17637 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17639 DEFS=-DHAVE_CONFIG_H
17641 ac_libobjs=
17642 ac_ltlibobjs=
17644 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17645 # 1. Remove the extension, and $U if already installed.
17646 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17647 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17648 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17649 # will be set to the directory where LIBOBJS objects are built.
17650 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17651 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17652 done
17653 LIBOBJS=$ac_libobjs
17655 LTLIBOBJS=$ac_ltlibobjs
17659 : "${CONFIG_STATUS=./config.status}"
17660 ac_write_fail=0
17661 ac_clean_files_save=$ac_clean_files
17662 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17664 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17665 as_write_fail=0
17666 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17667 #! $SHELL
17668 # Generated by $as_me.
17669 # Run this file to recreate the current configuration.
17670 # Compiler output produced by configure, useful for debugging
17671 # configure, is in config.log if it exists.
17673 debug=false
17674 ac_cs_recheck=false
17675 ac_cs_silent=false
17677 SHELL=\${CONFIG_SHELL-$SHELL}
17678 export SHELL
17679 _ASEOF
17680 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17681 ## -------------------- ##
17682 ## M4sh Initialization. ##
17683 ## -------------------- ##
17685 # Be more Bourne compatible
17686 DUALCASE=1; export DUALCASE # for MKS sh
17687 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17688 emulate sh
17689 NULLCMD=:
17690 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17691 # is contrary to our usage. Disable this feature.
17692 alias -g '${1+"$@"}'='"$@"'
17693 setopt NO_GLOB_SUBST
17694 else
17695 case `(set -o) 2>/dev/null` in #(
17696 *posix*) :
17697 set -o posix ;; #(
17698 *) :
17700 esac
17704 as_nl='
17706 export as_nl
17707 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17708 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17709 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17710 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17711 # Prefer a ksh shell builtin over an external printf program on Solaris,
17712 # but without wasting forks for bash or zsh.
17713 if test -z "$BASH_VERSION$ZSH_VERSION" \
17714 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17715 as_echo='print -r --'
17716 as_echo_n='print -rn --'
17717 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17718 as_echo='printf %s\n'
17719 as_echo_n='printf %s'
17720 else
17721 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17722 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17723 as_echo_n='/usr/ucb/echo -n'
17724 else
17725 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17726 as_echo_n_body='eval
17727 arg=$1;
17728 case $arg in #(
17729 *"$as_nl"*)
17730 expr "X$arg" : "X\\(.*\\)$as_nl";
17731 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17732 esac;
17733 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17735 export as_echo_n_body
17736 as_echo_n='sh -c $as_echo_n_body as_echo'
17738 export as_echo_body
17739 as_echo='sh -c $as_echo_body as_echo'
17742 # The user is always right.
17743 if test "${PATH_SEPARATOR+set}" != set; then
17744 PATH_SEPARATOR=:
17745 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17746 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17747 PATH_SEPARATOR=';'
17752 # IFS
17753 # We need space, tab and new line, in precisely that order. Quoting is
17754 # there to prevent editors from complaining about space-tab.
17755 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17756 # splitting by setting IFS to empty value.)
17757 IFS=" "" $as_nl"
17759 # Find who we are. Look in the path if we contain no directory separator.
17760 as_myself=
17761 case $0 in #((
17762 *[\\/]* ) as_myself=$0 ;;
17763 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17764 for as_dir in $PATH
17766 IFS=$as_save_IFS
17767 test -z "$as_dir" && as_dir=.
17768 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17769 done
17770 IFS=$as_save_IFS
17773 esac
17774 # We did not find ourselves, most probably we were run as `sh COMMAND'
17775 # in which case we are not to be found in the path.
17776 if test "x$as_myself" = x; then
17777 as_myself=$0
17779 if test ! -f "$as_myself"; then
17780 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17781 exit 1
17784 # Unset variables that we do not need and which cause bugs (e.g. in
17785 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17786 # suppresses any "Segmentation fault" message there. '((' could
17787 # trigger a bug in pdksh 5.2.14.
17788 for as_var in BASH_ENV ENV MAIL MAILPATH
17789 do eval test x\${$as_var+set} = xset \
17790 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17791 done
17792 PS1='$ '
17793 PS2='> '
17794 PS4='+ '
17796 # NLS nuisances.
17797 LC_ALL=C
17798 export LC_ALL
17799 LANGUAGE=C
17800 export LANGUAGE
17802 # CDPATH.
17803 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17806 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17807 # ----------------------------------------
17808 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17809 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17810 # script with STATUS, using 1 if that was 0.
17811 as_fn_error ()
17813 as_status=$1; test $as_status -eq 0 && as_status=1
17814 if test "$4"; then
17815 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17816 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17818 $as_echo "$as_me: error: $2" >&2
17819 as_fn_exit $as_status
17820 } # as_fn_error
17823 # as_fn_set_status STATUS
17824 # -----------------------
17825 # Set $? to STATUS, without forking.
17826 as_fn_set_status ()
17828 return $1
17829 } # as_fn_set_status
17831 # as_fn_exit STATUS
17832 # -----------------
17833 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17834 as_fn_exit ()
17836 set +e
17837 as_fn_set_status $1
17838 exit $1
17839 } # as_fn_exit
17841 # as_fn_unset VAR
17842 # ---------------
17843 # Portably unset VAR.
17844 as_fn_unset ()
17846 { eval $1=; unset $1;}
17848 as_unset=as_fn_unset
17849 # as_fn_append VAR VALUE
17850 # ----------------------
17851 # Append the text in VALUE to the end of the definition contained in VAR. Take
17852 # advantage of any shell optimizations that allow amortized linear growth over
17853 # repeated appends, instead of the typical quadratic growth present in naive
17854 # implementations.
17855 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17856 eval 'as_fn_append ()
17858 eval $1+=\$2
17860 else
17861 as_fn_append ()
17863 eval $1=\$$1\$2
17865 fi # as_fn_append
17867 # as_fn_arith ARG...
17868 # ------------------
17869 # Perform arithmetic evaluation on the ARGs, and store the result in the
17870 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17871 # must be portable across $(()) and expr.
17872 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17873 eval 'as_fn_arith ()
17875 as_val=$(( $* ))
17877 else
17878 as_fn_arith ()
17880 as_val=`expr "$@" || test $? -eq 1`
17882 fi # as_fn_arith
17885 if expr a : '\(a\)' >/dev/null 2>&1 &&
17886 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17887 as_expr=expr
17888 else
17889 as_expr=false
17892 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17893 as_basename=basename
17894 else
17895 as_basename=false
17898 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17899 as_dirname=dirname
17900 else
17901 as_dirname=false
17904 as_me=`$as_basename -- "$0" ||
17905 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17906 X"$0" : 'X\(//\)$' \| \
17907 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17908 $as_echo X/"$0" |
17909 sed '/^.*\/\([^/][^/]*\)\/*$/{
17910 s//\1/
17913 /^X\/\(\/\/\)$/{
17914 s//\1/
17917 /^X\/\(\/\).*/{
17918 s//\1/
17921 s/.*/./; q'`
17923 # Avoid depending upon Character Ranges.
17924 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17925 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17926 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17927 as_cr_digits='0123456789'
17928 as_cr_alnum=$as_cr_Letters$as_cr_digits
17930 ECHO_C= ECHO_N= ECHO_T=
17931 case `echo -n x` in #(((((
17932 -n*)
17933 case `echo 'xy\c'` in
17934 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17935 xy) ECHO_C='\c';;
17936 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17937 ECHO_T=' ';;
17938 esac;;
17940 ECHO_N='-n';;
17941 esac
17943 rm -f conf$$ conf$$.exe conf$$.file
17944 if test -d conf$$.dir; then
17945 rm -f conf$$.dir/conf$$.file
17946 else
17947 rm -f conf$$.dir
17948 mkdir conf$$.dir 2>/dev/null
17950 if (echo >conf$$.file) 2>/dev/null; then
17951 if ln -s conf$$.file conf$$ 2>/dev/null; then
17952 as_ln_s='ln -s'
17953 # ... but there are two gotchas:
17954 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17955 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17956 # In both cases, we have to default to `cp -pR'.
17957 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17958 as_ln_s='cp -pR'
17959 elif ln conf$$.file conf$$ 2>/dev/null; then
17960 as_ln_s=ln
17961 else
17962 as_ln_s='cp -pR'
17964 else
17965 as_ln_s='cp -pR'
17967 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17968 rmdir conf$$.dir 2>/dev/null
17971 # as_fn_mkdir_p
17972 # -------------
17973 # Create "$as_dir" as a directory, including parents if necessary.
17974 as_fn_mkdir_p ()
17977 case $as_dir in #(
17978 -*) as_dir=./$as_dir;;
17979 esac
17980 test -d "$as_dir" || eval $as_mkdir_p || {
17981 as_dirs=
17982 while :; do
17983 case $as_dir in #(
17984 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17985 *) as_qdir=$as_dir;;
17986 esac
17987 as_dirs="'$as_qdir' $as_dirs"
17988 as_dir=`$as_dirname -- "$as_dir" ||
17989 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17990 X"$as_dir" : 'X\(//\)[^/]' \| \
17991 X"$as_dir" : 'X\(//\)$' \| \
17992 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17993 $as_echo X"$as_dir" |
17994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17995 s//\1/
17998 /^X\(\/\/\)[^/].*/{
17999 s//\1/
18002 /^X\(\/\/\)$/{
18003 s//\1/
18006 /^X\(\/\).*/{
18007 s//\1/
18010 s/.*/./; q'`
18011 test -d "$as_dir" && break
18012 done
18013 test -z "$as_dirs" || eval "mkdir $as_dirs"
18014 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18017 } # as_fn_mkdir_p
18018 if mkdir -p . 2>/dev/null; then
18019 as_mkdir_p='mkdir -p "$as_dir"'
18020 else
18021 test -d ./-p && rmdir ./-p
18022 as_mkdir_p=false
18026 # as_fn_executable_p FILE
18027 # -----------------------
18028 # Test if FILE is an executable regular file.
18029 as_fn_executable_p ()
18031 test -f "$1" && test -x "$1"
18032 } # as_fn_executable_p
18033 as_test_x='test -x'
18034 as_executable_p=as_fn_executable_p
18036 # Sed expression to map a string onto a valid CPP name.
18037 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18039 # Sed expression to map a string onto a valid variable name.
18040 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18043 exec 6>&1
18044 ## ----------------------------------- ##
18045 ## Main body of $CONFIG_STATUS script. ##
18046 ## ----------------------------------- ##
18047 _ASEOF
18048 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18051 # Save the log message, to keep $0 and so on meaningful, and to
18052 # report actual input values of CONFIG_FILES etc. instead of their
18053 # values after options handling.
18054 ac_log="
18055 This file was extended by Wine $as_me 1.7.6, which was
18056 generated by GNU Autoconf 2.69. Invocation command line was
18058 CONFIG_FILES = $CONFIG_FILES
18059 CONFIG_HEADERS = $CONFIG_HEADERS
18060 CONFIG_LINKS = $CONFIG_LINKS
18061 CONFIG_COMMANDS = $CONFIG_COMMANDS
18062 $ $0 $@
18064 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18067 _ACEOF
18069 case $ac_config_files in *"
18070 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18071 esac
18073 case $ac_config_headers in *"
18074 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18075 esac
18078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18079 # Files that config.status was made for.
18080 config_files="$ac_config_files"
18081 config_headers="$ac_config_headers"
18082 config_links="$ac_config_links"
18083 config_commands="$ac_config_commands"
18085 _ACEOF
18087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18088 ac_cs_usage="\
18089 \`$as_me' instantiates files and other configuration actions
18090 from templates according to the current configuration. Unless the files
18091 and actions are specified as TAGs, all are instantiated by default.
18093 Usage: $0 [OPTION]... [TAG]...
18095 -h, --help print this help, then exit
18096 -V, --version print version number and configuration settings, then exit
18097 --config print configuration, then exit
18098 -q, --quiet, --silent
18099 do not print progress messages
18100 -d, --debug don't remove temporary files
18101 --recheck update $as_me by reconfiguring in the same conditions
18102 --file=FILE[:TEMPLATE]
18103 instantiate the configuration file FILE
18104 --header=FILE[:TEMPLATE]
18105 instantiate the configuration header FILE
18107 Configuration files:
18108 $config_files
18110 Configuration headers:
18111 $config_headers
18113 Configuration links:
18114 $config_links
18116 Configuration commands:
18117 $config_commands
18119 Report bugs to <wine-devel@winehq.org>.
18120 Wine home page: <http://www.winehq.org>."
18122 _ACEOF
18123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18124 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18125 ac_cs_version="\\
18126 Wine config.status 1.7.6
18127 configured by $0, generated by GNU Autoconf 2.69,
18128 with options \\"\$ac_cs_config\\"
18130 Copyright (C) 2012 Free Software Foundation, Inc.
18131 This config.status script is free software; the Free Software Foundation
18132 gives unlimited permission to copy, distribute and modify it."
18134 ac_pwd='$ac_pwd'
18135 srcdir='$srcdir'
18136 INSTALL='$INSTALL'
18137 MKDIR_P='$MKDIR_P'
18138 test -n "\$AWK" || AWK=awk
18139 _ACEOF
18141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18142 # The default lists apply if the user does not specify any file.
18143 ac_need_defaults=:
18144 while test $# != 0
18146 case $1 in
18147 --*=?*)
18148 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18149 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18150 ac_shift=:
18152 --*=)
18153 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18154 ac_optarg=
18155 ac_shift=:
18158 ac_option=$1
18159 ac_optarg=$2
18160 ac_shift=shift
18162 esac
18164 case $ac_option in
18165 # Handling of the options.
18166 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18167 ac_cs_recheck=: ;;
18168 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18169 $as_echo "$ac_cs_version"; exit ;;
18170 --config | --confi | --conf | --con | --co | --c )
18171 $as_echo "$ac_cs_config"; exit ;;
18172 --debug | --debu | --deb | --de | --d | -d )
18173 debug=: ;;
18174 --file | --fil | --fi | --f )
18175 $ac_shift
18176 case $ac_optarg in
18177 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18178 '') as_fn_error $? "missing file argument" ;;
18179 esac
18180 as_fn_append CONFIG_FILES " '$ac_optarg'"
18181 ac_need_defaults=false;;
18182 --header | --heade | --head | --hea )
18183 $ac_shift
18184 case $ac_optarg in
18185 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18186 esac
18187 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18188 ac_need_defaults=false;;
18189 --he | --h)
18190 # Conflict between --help and --header
18191 as_fn_error $? "ambiguous option: \`$1'
18192 Try \`$0 --help' for more information.";;
18193 --help | --hel | -h )
18194 $as_echo "$ac_cs_usage"; exit ;;
18195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18196 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18197 ac_cs_silent=: ;;
18199 # This is an error.
18200 -*) as_fn_error $? "unrecognized option: \`$1'
18201 Try \`$0 --help' for more information." ;;
18203 *) as_fn_append ac_config_targets " $1"
18204 ac_need_defaults=false ;;
18206 esac
18207 shift
18208 done
18210 ac_configure_extra_args=
18212 if $ac_cs_silent; then
18213 exec 6>/dev/null
18214 ac_configure_extra_args="$ac_configure_extra_args --silent"
18217 _ACEOF
18218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18219 if \$ac_cs_recheck; then
18220 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18221 shift
18222 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18223 CONFIG_SHELL='$SHELL'
18224 export CONFIG_SHELL
18225 exec "\$@"
18228 _ACEOF
18229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18230 exec 5>>config.log
18232 echo
18233 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18234 ## Running $as_me. ##
18235 _ASBOX
18236 $as_echo "$ac_log"
18237 } >&5
18239 _ACEOF
18240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18242 # INIT-COMMANDS
18244 wine_fn_output_makefile ()
18246 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
18247 `cat $wine_rules_file`
18248 _WINE_EOF
18249 as_fn_error $? "could not create Makefile" "$LINENO" 5
18252 _ACEOF
18254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18256 # Handling of arguments.
18257 for ac_config_target in $ac_config_targets
18259 case $ac_config_target in
18260 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18261 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
18262 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
18263 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
18264 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
18265 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
18266 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
18267 "loader/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS loader/l_intl.nls:loader/l_intl.nls" ;;
18268 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
18269 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
18270 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
18271 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
18272 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
18273 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
18274 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
18275 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
18276 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
18277 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
18278 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
18279 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18280 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
18281 "tools") CONFIG_COMMANDS="$CONFIG_COMMANDS tools" ;;
18283 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18284 esac
18285 done
18288 # If the user did not use the arguments to specify the items to instantiate,
18289 # then the envvar interface is used. Set only those that are not.
18290 # We use the long form for the default assignment because of an extremely
18291 # bizarre bug on SunOS 4.1.3.
18292 if $ac_need_defaults; then
18293 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18294 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18295 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18296 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18299 # Have a temporary directory for convenience. Make it in the build tree
18300 # simply because there is no reason against having it here, and in addition,
18301 # creating and moving files from /tmp can sometimes cause problems.
18302 # Hook for its removal unless debugging.
18303 # Note that there is a small window in which the directory will not be cleaned:
18304 # after its creation but before its name has been assigned to `$tmp'.
18305 $debug ||
18307 tmp= ac_tmp=
18308 trap 'exit_status=$?
18309 : "${ac_tmp:=$tmp}"
18310 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18312 trap 'as_fn_exit 1' 1 2 13 15
18314 # Create a (secure) tmp directory for tmp files.
18317 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18318 test -d "$tmp"
18319 } ||
18321 tmp=./conf$$-$RANDOM
18322 (umask 077 && mkdir "$tmp")
18323 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18324 ac_tmp=$tmp
18326 # Set up the scripts for CONFIG_FILES section.
18327 # No need to generate them if there are no CONFIG_FILES.
18328 # This happens for instance with `./config.status config.h'.
18329 if test -n "$CONFIG_FILES"; then
18331 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18332 ac_cs_awk_getline=:
18333 ac_cs_awk_pipe_init=
18334 ac_cs_awk_read_file='
18335 while ((getline aline < (F[key])) > 0)
18336 print(aline)
18337 close(F[key])'
18338 ac_cs_awk_pipe_fini=
18339 else
18340 ac_cs_awk_getline=false
18341 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18342 ac_cs_awk_read_file='
18343 print "|#_!!_#|"
18344 print "cat " F[key] " &&"
18345 '$ac_cs_awk_pipe_init
18346 # The final `:' finishes the AND list.
18347 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18349 ac_cr=`echo X | tr X '\015'`
18350 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18351 # But we know of no other shell where ac_cr would be empty at this
18352 # point, so we can use a bashism as a fallback.
18353 if test "x$ac_cr" = x; then
18354 eval ac_cr=\$\'\\r\'
18356 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18357 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18358 ac_cs_awk_cr='\\r'
18359 else
18360 ac_cs_awk_cr=$ac_cr
18363 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18364 _ACEOF
18366 # Create commands to substitute file output variables.
18368 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18369 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18370 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18371 echo "_ACAWK" &&
18372 echo "_ACEOF"
18373 } >conf$$files.sh &&
18374 . ./conf$$files.sh ||
18375 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18376 rm -f conf$$files.sh
18379 echo "cat >conf$$subs.awk <<_ACEOF" &&
18380 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18381 echo "_ACEOF"
18382 } >conf$$subs.sh ||
18383 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18384 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18385 ac_delim='%!_!# '
18386 for ac_last_try in false false false false false :; do
18387 . ./conf$$subs.sh ||
18388 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18390 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18391 if test $ac_delim_n = $ac_delim_num; then
18392 break
18393 elif $ac_last_try; then
18394 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18395 else
18396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18398 done
18399 rm -f conf$$subs.sh
18401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18402 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18403 _ACEOF
18404 sed -n '
18406 s/^/S["/; s/!.*/"]=/
18409 s/^[^!]*!//
18410 :repl
18411 t repl
18412 s/'"$ac_delim"'$//
18413 t delim
18416 s/\(.\{148\}\)..*/\1/
18417 t more1
18418 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18421 b repl
18422 :more1
18423 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18426 s/.\{148\}//
18427 t nl
18428 :delim
18430 s/\(.\{148\}\)..*/\1/
18431 t more2
18432 s/["\\]/\\&/g; s/^/"/; s/$/"/
18435 :more2
18436 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18439 s/.\{148\}//
18440 t delim
18441 ' <conf$$subs.awk | sed '
18442 /^[^""]/{
18444 s/\n//
18446 ' >>$CONFIG_STATUS || ac_write_fail=1
18447 rm -f conf$$subs.awk
18448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18449 _ACAWK
18450 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18451 for (key in S) S_is_set[key] = 1
18452 FS = "\a"
18453 \$ac_cs_awk_pipe_init
18456 line = $ 0
18457 nfields = split(line, field, "@")
18458 substed = 0
18459 len = length(field[1])
18460 for (i = 2; i < nfields; i++) {
18461 key = field[i]
18462 keylen = length(key)
18463 if (S_is_set[key]) {
18464 value = S[key]
18465 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18466 len += length(value) + length(field[++i])
18467 substed = 1
18468 } else
18469 len += 1 + keylen
18471 if (nfields == 3 && !substed) {
18472 key = field[2]
18473 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18474 \$ac_cs_awk_read_file
18475 next
18478 print line
18480 \$ac_cs_awk_pipe_fini
18481 _ACAWK
18482 _ACEOF
18483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18484 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18485 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18486 else
18488 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18489 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18490 _ACEOF
18492 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18493 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18494 # trailing colons and then remove the whole line if VPATH becomes empty
18495 # (actually we leave an empty line to preserve line numbers).
18496 if test "x$srcdir" = x.; then
18497 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18499 s///
18500 s/^/:/
18501 s/[ ]*$/:/
18502 s/:\$(srcdir):/:/g
18503 s/:\${srcdir}:/:/g
18504 s/:@srcdir@:/:/g
18505 s/^:*//
18506 s/:*$//
18508 s/\(=[ ]*\).*/\1/
18510 s/\n//
18511 s/^[^=]*=[ ]*$//
18515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18516 fi # test -n "$CONFIG_FILES"
18518 # Set up the scripts for CONFIG_HEADERS section.
18519 # No need to generate them if there are no CONFIG_HEADERS.
18520 # This happens for instance with `./config.status Makefile'.
18521 if test -n "$CONFIG_HEADERS"; then
18522 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18523 BEGIN {
18524 _ACEOF
18526 # Transform confdefs.h into an awk script `defines.awk', embedded as
18527 # here-document in config.status, that substitutes the proper values into
18528 # config.h.in to produce config.h.
18530 # Create a delimiter string that does not exist in confdefs.h, to ease
18531 # handling of long lines.
18532 ac_delim='%!_!# '
18533 for ac_last_try in false false :; do
18534 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18535 if test -z "$ac_tt"; then
18536 break
18537 elif $ac_last_try; then
18538 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18539 else
18540 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18542 done
18544 # For the awk script, D is an array of macro values keyed by name,
18545 # likewise P contains macro parameters if any. Preserve backslash
18546 # newline sequences.
18548 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18549 sed -n '
18550 s/.\{148\}/&'"$ac_delim"'/g
18551 t rset
18552 :rset
18553 s/^[ ]*#[ ]*define[ ][ ]*/ /
18554 t def
18556 :def
18557 s/\\$//
18558 t bsnl
18559 s/["\\]/\\&/g
18560 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18561 D["\1"]=" \3"/p
18562 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18564 :bsnl
18565 s/["\\]/\\&/g
18566 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18567 D["\1"]=" \3\\\\\\n"\\/p
18568 t cont
18569 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18570 t cont
18572 :cont
18574 s/.\{148\}/&'"$ac_delim"'/g
18575 t clear
18576 :clear
18577 s/\\$//
18578 t bsnlc
18579 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18581 :bsnlc
18582 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18583 b cont
18584 ' <confdefs.h | sed '
18585 s/'"$ac_delim"'/"\\\
18586 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18589 for (key in D) D_is_set[key] = 1
18590 FS = "\a"
18592 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18593 line = \$ 0
18594 split(line, arg, " ")
18595 if (arg[1] == "#") {
18596 defundef = arg[2]
18597 mac1 = arg[3]
18598 } else {
18599 defundef = substr(arg[1], 2)
18600 mac1 = arg[2]
18602 split(mac1, mac2, "(") #)
18603 macro = mac2[1]
18604 prefix = substr(line, 1, index(line, defundef) - 1)
18605 if (D_is_set[macro]) {
18606 # Preserve the white space surrounding the "#".
18607 print prefix "define", macro P[macro] D[macro]
18608 next
18609 } else {
18610 # Replace #undef with comments. This is necessary, for example,
18611 # in the case of _POSIX_SOURCE, which is predefined and required
18612 # on some systems where configure will not decide to define it.
18613 if (defundef == "undef") {
18614 print "/*", prefix defundef, macro, "*/"
18615 next
18619 { print }
18620 _ACAWK
18621 _ACEOF
18622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18623 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18624 fi # test -n "$CONFIG_HEADERS"
18627 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18628 shift
18629 for ac_tag
18631 case $ac_tag in
18632 :[FHLC]) ac_mode=$ac_tag; continue;;
18633 esac
18634 case $ac_mode$ac_tag in
18635 :[FHL]*:*);;
18636 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18637 :[FH]-) ac_tag=-:-;;
18638 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18639 esac
18640 ac_save_IFS=$IFS
18641 IFS=:
18642 set x $ac_tag
18643 IFS=$ac_save_IFS
18644 shift
18645 ac_file=$1
18646 shift
18648 case $ac_mode in
18649 :L) ac_source=$1;;
18650 :[FH])
18651 ac_file_inputs=
18652 for ac_f
18654 case $ac_f in
18655 -) ac_f="$ac_tmp/stdin";;
18656 *) # Look for the file first in the build tree, then in the source tree
18657 # (if the path is not absolute). The absolute path cannot be DOS-style,
18658 # because $ac_f cannot contain `:'.
18659 test -f "$ac_f" ||
18660 case $ac_f in
18661 [\\/$]*) false;;
18662 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18663 esac ||
18664 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18665 esac
18666 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18667 as_fn_append ac_file_inputs " '$ac_f'"
18668 done
18670 # Let's still pretend it is `configure' which instantiates (i.e., don't
18671 # use $as_me), people would be surprised to read:
18672 # /* config.h. Generated by config.status. */
18673 configure_input='Generated from '`
18674 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18675 `' by configure.'
18676 if test x"$ac_file" != x-; then
18677 configure_input="$ac_file. $configure_input"
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18679 $as_echo "$as_me: creating $ac_file" >&6;}
18681 # Neutralize special characters interpreted by sed in replacement strings.
18682 case $configure_input in #(
18683 *\&* | *\|* | *\\* )
18684 ac_sed_conf_input=`$as_echo "$configure_input" |
18685 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18686 *) ac_sed_conf_input=$configure_input;;
18687 esac
18689 case $ac_tag in
18690 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18692 esac
18694 esac
18696 ac_dir=`$as_dirname -- "$ac_file" ||
18697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18698 X"$ac_file" : 'X\(//\)[^/]' \| \
18699 X"$ac_file" : 'X\(//\)$' \| \
18700 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18701 $as_echo X"$ac_file" |
18702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18703 s//\1/
18706 /^X\(\/\/\)[^/].*/{
18707 s//\1/
18710 /^X\(\/\/\)$/{
18711 s//\1/
18714 /^X\(\/\).*/{
18715 s//\1/
18718 s/.*/./; q'`
18719 as_dir="$ac_dir"; as_fn_mkdir_p
18720 ac_builddir=.
18722 case "$ac_dir" in
18723 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18725 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18726 # A ".." for each directory in $ac_dir_suffix.
18727 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18728 case $ac_top_builddir_sub in
18729 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18730 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18731 esac ;;
18732 esac
18733 ac_abs_top_builddir=$ac_pwd
18734 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18735 # for backward compatibility:
18736 ac_top_builddir=$ac_top_build_prefix
18738 case $srcdir in
18739 .) # We are building in place.
18740 ac_srcdir=.
18741 ac_top_srcdir=$ac_top_builddir_sub
18742 ac_abs_top_srcdir=$ac_pwd ;;
18743 [\\/]* | ?:[\\/]* ) # Absolute name.
18744 ac_srcdir=$srcdir$ac_dir_suffix;
18745 ac_top_srcdir=$srcdir
18746 ac_abs_top_srcdir=$srcdir ;;
18747 *) # Relative name.
18748 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18749 ac_top_srcdir=$ac_top_build_prefix$srcdir
18750 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18751 esac
18752 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18755 case $ac_mode in
18758 # CONFIG_FILE
18761 case $INSTALL in
18762 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18763 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18764 esac
18765 ac_MKDIR_P=$MKDIR_P
18766 case $MKDIR_P in
18767 [\\/$]* | ?:[\\/]* ) ;;
18768 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18769 esac
18770 _ACEOF
18772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18773 # If the template does not know about datarootdir, expand it.
18774 # FIXME: This hack should be removed a few years after 2.60.
18775 ac_datarootdir_hack=; ac_datarootdir_seen=
18776 ac_sed_dataroot='
18777 /datarootdir/ {
18781 /@datadir@/p
18782 /@docdir@/p
18783 /@infodir@/p
18784 /@localedir@/p
18785 /@mandir@/p'
18786 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18787 *datarootdir*) ac_datarootdir_seen=yes;;
18788 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18790 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18791 _ACEOF
18792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18793 ac_datarootdir_hack='
18794 s&@datadir@&$datadir&g
18795 s&@docdir@&$docdir&g
18796 s&@infodir@&$infodir&g
18797 s&@localedir@&$localedir&g
18798 s&@mandir@&$mandir&g
18799 s&\\\${datarootdir}&$datarootdir&g' ;;
18800 esac
18801 _ACEOF
18803 # Neutralize VPATH when `$srcdir' = `.'.
18804 # Shell code in configure.ac might set extrasub.
18805 # FIXME: do we really want to maintain this feature?
18806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18807 ac_sed_extra="$ac_vpsub
18808 $extrasub
18809 _ACEOF
18810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18812 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18813 s|@configure_input@|$ac_sed_conf_input|;t t
18814 s&@top_builddir@&$ac_top_builddir_sub&;t t
18815 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18816 s&@srcdir@&$ac_srcdir&;t t
18817 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18818 s&@top_srcdir@&$ac_top_srcdir&;t t
18819 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18820 s&@builddir@&$ac_builddir&;t t
18821 s&@abs_builddir@&$ac_abs_builddir&;t t
18822 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18823 s&@INSTALL@&$ac_INSTALL&;t t
18824 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18825 $ac_datarootdir_hack
18827 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18828 if $ac_cs_awk_getline; then
18829 $AWK -f "$ac_tmp/subs.awk"
18830 else
18831 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18832 fi \
18833 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18835 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18836 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18837 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18838 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18840 which seems to be undefined. Please make sure it is defined" >&5
18841 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18842 which seems to be undefined. Please make sure it is defined" >&2;}
18844 rm -f "$ac_tmp/stdin"
18845 case $ac_file in
18846 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18847 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18848 esac \
18849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18853 # CONFIG_HEADER
18855 if test x"$ac_file" != x-; then
18857 $as_echo "/* $configure_input */" \
18858 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18859 } >"$ac_tmp/config.h" \
18860 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18861 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18863 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18864 else
18865 rm -f "$ac_file"
18866 mv "$ac_tmp/config.h" "$ac_file" \
18867 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18869 else
18870 $as_echo "/* $configure_input */" \
18871 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18872 || as_fn_error $? "could not create -" "$LINENO" 5
18877 # CONFIG_LINK
18880 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18882 else
18883 # Prefer the file from the source tree if names are identical.
18884 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18885 ac_source=$srcdir/$ac_source
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18889 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18891 if test ! -r "$ac_source"; then
18892 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18894 rm -f "$ac_file"
18896 # Try a relative symlink, then a hard link, then a copy.
18897 case $ac_source in
18898 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18899 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18900 esac
18901 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18902 ln "$ac_source" "$ac_file" 2>/dev/null ||
18903 cp -p "$ac_source" "$ac_file" ||
18904 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18907 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18908 $as_echo "$as_me: executing $ac_file commands" >&6;}
18910 esac
18913 case $ac_file$ac_mode in
18914 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
18915 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
18916 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
18917 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
18918 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
18919 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
18920 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
18921 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
18922 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
18923 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
18924 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
18925 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
18926 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
18927 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
18928 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
18929 "Makefile":C) wine_fn_output_makefile Makefile ;;
18930 "tools":C) as_dir=tools; as_fn_mkdir_p ;;
18932 esac
18933 done # for ac_tag
18936 as_fn_exit 0
18937 _ACEOF
18938 ac_clean_files=$ac_clean_files_save
18940 test $ac_write_fail = 0 ||
18941 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18944 # configure is writing to config.log, and then calls config.status.
18945 # config.status does its own redirection, appending to config.log.
18946 # Unfortunately, on DOS this fails, as config.log is still kept open
18947 # by configure, so config.status won't be able to write to it; its
18948 # output is simply discarded. So we exec the FD to /dev/null,
18949 # effectively closing config.log, so it can be properly (re)opened and
18950 # appended to by config.status. When coming back to configure, we
18951 # need to make the FD available again.
18952 if test "$no_create" != yes; then
18953 ac_cs_success=:
18954 ac_config_status_args=
18955 test "$silent" = yes &&
18956 ac_config_status_args="$ac_config_status_args --quiet"
18957 exec 5>/dev/null
18958 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18959 exec 5>>config.log
18960 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18961 # would make configure fail if this is the last instruction.
18962 $ac_cs_success || as_fn_exit 1
18964 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18966 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18970 if test "$no_create" = "yes"
18971 then
18972 exit 0
18975 ac_save_IFS="$IFS"
18976 if test "x$wine_notices != "x; then
18977 echo >&6
18978 IFS="|"
18979 for msg in $wine_notices; do
18980 IFS="$ac_save_IFS"
18981 if test -n "$msg"; then
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
18983 $as_echo "$as_me: $msg" >&6;}
18985 done
18987 IFS="|"
18988 for msg in $wine_warnings; do
18989 IFS="$ac_save_IFS"
18990 if test -n "$msg"; then
18991 echo >&2
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
18993 $as_echo "$as_me: WARNING: $msg" >&2;}
18995 done
18996 IFS="$ac_save_IFS"
18998 $as_echo "
18999 $as_me: Finished. Do '${ac_make}' to compile Wine.
19000 " >&6