server: add async_terminated to allow server-side request changes before user apc
[wine/hacks.git] / configure
blob7e4742b5cafeb1f690421c509c5fc135f2766747
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Wine 1.2.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: wine-devel@winehq.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='Wine'
554 PACKAGE_TARNAME='wine'
555 PACKAGE_VERSION='1.2'
556 PACKAGE_STRING='Wine 1.2'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
560 ac_unique_file="server/atom.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 ALL_TEST_BINARIES
600 ALL_WINETEST_DEPENDS
601 LDAPLIBS
602 LIBPOLL
603 LIBDL
604 EXTRA_BINARIES
605 MAIN_BINARY
606 SOCKETLIBS
607 CRTLIBS
608 TOOLSEXT
609 LDPATH
610 UNWINDFLAGS
611 BUILTINFLAG
612 EXTRACFLAGS
613 LIBKSTAT
614 LIBOPENAL
615 LIBMPG123
616 PNGINCL
617 FONTCONFIGINCL
618 CUPSINCL
619 AUDIOIOLIBS
620 ALSALIBS
621 PULSECFLAGS
622 PULSELIBS
623 ESDLIBS
624 ESDINCL
625 ESDCONFIG
626 ZLIB
627 FREETYPEINCL
628 FREETYPELIBS
629 ft_devel
630 LCMSLIBS
631 RESOLVLIBS
632 GPHOTO2INCL
633 GPHOTO2LIBS
634 gphoto2port_devel
635 gphoto2_devel
636 SANEINCL
637 sane_devel
638 GNUTLSINCL
639 HALINCL
640 XSLTINCL
641 XML2INCL
642 XML2LIBS
643 NASLIBS
644 X_EXTRA_LIBS
645 X_LIBS
646 X_PRE_LIBS
647 X_CFLAGS
648 XMKMF
649 LIBPTHREAD
650 CROSSTARGET
651 CROSSTEST
652 CROSSCC
653 CARBONLIB
654 FRAMEWORK_OPENAL
655 COREAUDIO
656 DISKARBITRATIONLIB
657 LDEXECFLAGS
658 IOKITLIB
659 COREFOUNDATIONLIB
660 SECURITYLIB
661 DLLWRAP
662 DLLTOOL
664 LDRPATH_LOCAL
665 LDRPATH_INSTALL
666 IMPLIBEXT
667 LIBEXT
668 LDDLLFLAGS
669 LDSHARED
670 DLLFLAGS
671 DLLEXT
673 OPENGL_LIBS
674 XLIB
675 PRELINK
676 MAINTAINER_MODE
677 ICOTOOL
678 CONVERT
679 RSVG
680 PKG_CONFIG
681 FONTFORGE
682 LINTFLAGS
683 LINT
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 LDCONFIG
688 EGREP
689 GREP
690 LN_S
691 STRIP
692 RANLIB
693 ARFLAGS
694 ac_ct_AR
696 BISON
697 FLEX
698 TOOLSDIR
699 WOW64_DISABLE
700 TARGETFLAGS
701 CPPBIN
702 ac_ct_CXX
703 CXXFLAGS
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
712 SET_MAKE
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files='MAKE_RULES
760 MAKE_TEST_RULES
761 MAKE_DLL_RULES
762 MAKE_IMPLIB_RULES
763 MAKE_PROG_RULES'
764 ac_user_opts='
765 enable_option_checking
766 enable_win16
767 enable_win64
768 enable_tests
769 enable_maintainer_mode
770 with_alsa
771 with_audioio
772 with_capi
773 with_cms
774 with_coreaudio
775 with_cups
776 with_curses
777 with_esd
778 with_fontconfig
779 with_freetype
780 with_gphoto
781 with_glu
782 with_gnutls
783 with_gsm
784 with_hal
785 with_jack
786 with_jpeg
787 with_ldap
788 with_mpg123
789 with_nas
790 with_openal
791 with_opengl
792 with_openssl
793 with_oss
794 with_png
795 with_pthread
796 with_pulse
797 with_sane
798 with_tiff
799 with_v4l
800 with_xcomposite
801 with_xcursor
802 with_xinerama
803 with_xinput
804 with_xml
805 with_xrandr
806 with_xrender
807 with_xshape
808 with_xshm
809 with_xslt
810 with_xxf86vm
811 with_wine_tools
812 with_wine64
813 enable_largefile
814 with_x
816 ac_precious_vars='build_alias
817 host_alias
818 target_alias
820 CFLAGS
821 LDFLAGS
822 LIBS
823 CPPFLAGS
825 CXXFLAGS
828 XMKMF'
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
879 ac_prev=
880 ac_dashdash=
881 for ac_option
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
890 case $ac_option in
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *) ac_optarg=yes ;;
893 esac
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
899 ac_dashdash=yes ;;
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 bindir=$ac_optarg ;;
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
918 --config-cache | -C)
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
922 ac_prev=datadir ;;
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=no ;;
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
959 -enable-* | --enable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=\$ac_optarg ;;
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
982 exec_prefix=$ac_optarg ;;
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
986 with_gas=yes ;;
988 -help | --help | --hel | --he | -h)
989 ac_init_help=long ;;
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
995 -host | --host | --hos | --ho)
996 ac_prev=host_alias ;;
997 -host=* | --host=* | --hos=* | --ho=*)
998 host_alias=$ac_optarg ;;
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 ac_prev=htmldir ;;
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 | --ht=*)
1004 htmldir=$ac_optarg ;;
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
1011 includedir=$ac_optarg ;;
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 ac_prev=infodir ;;
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016 infodir=$ac_optarg ;;
1018 -libdir | --libdir | --libdi | --libd)
1019 ac_prev=libdir ;;
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021 libdir=$ac_optarg ;;
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
1028 libexecdir=$ac_optarg ;;
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
1036 | --localstate | --localstat | --localsta | --localst | --locals)
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040 localstatedir=$ac_optarg ;;
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 ac_prev=mandir ;;
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045 mandir=$ac_optarg ;;
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1049 with_fp=no ;;
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052 | --no-cr | --no-c | -n)
1053 no_create=yes ;;
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 no_recursion=yes ;;
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066 oldincludedir=$ac_optarg ;;
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 ac_prev=prefix ;;
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071 prefix=$ac_optarg ;;
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078 program_prefix=$ac_optarg ;;
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085 program_suffix=$ac_optarg ;;
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
1102 program_transform_name=$ac_optarg ;;
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 ac_prev=pdfdir ;;
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1109 -psdir | --psdir | --psdi | --psd | --ps)
1110 ac_prev=psdir ;;
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 psdir=$ac_optarg ;;
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1116 silent=yes ;;
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
1122 sbindir=$ac_optarg ;;
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
1133 sharedstatedir=$ac_optarg ;;
1135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
1138 site=$ac_optarg ;;
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143 srcdir=$ac_optarg ;;
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150 sysconfdir=$ac_optarg ;;
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1153 ac_prev=target_alias ;;
1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155 target_alias=$ac_optarg ;;
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
1163 -with-* | --with-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=\$ac_optarg ;;
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204 x_includes=$ac_optarg ;;
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211 x_libraries=$ac_optarg ;;
1213 -*) as_fn_error "unrecognized option: \`$ac_option'
1214 Try \`$0 --help' for more information."
1217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1223 esac
1224 eval $ac_envvar=\$ac_optarg
1225 export $ac_envvar ;;
1228 # FIXME: should be removed in autoconf 3.0.
1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235 esac
1236 done
1238 if test -n "$ac_prev"; then
1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240 as_fn_error "missing argument to $ac_option"
1243 if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
1246 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248 esac
1251 # Check all directory arguments for consistency.
1252 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
1265 case $ac_val in
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 esac
1269 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1270 done
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293 test "$silent" = yes && exec 6>/dev/null
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error "pwd does not report name of working directory"
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1322 /^X\(\/\/\)$/{
1323 s//\1/
1326 /^X\(\/\).*/{
1327 s//\1/
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1335 else
1336 ac_srcdir_defaulted=no
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343 ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1345 pwd)`
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1353 case $srcdir in
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355 esac
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361 done
1364 # Report the --help message.
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370 \`configure' configures Wine 1.2 to adapt to many kinds of systems.
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1377 Defaults for the options are specified in brackets.
1379 Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1394 [PREFIX]
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1401 For better control, use the options below.
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1423 _ACEOF
1425 cat <<\_ACEOF
1427 X features:
1428 --x-includes=DIR X include files are in DIR
1429 --x-libraries=DIR X library files are in DIR
1431 System types:
1432 --build=BUILD configure for building on BUILD [guessed]
1433 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434 _ACEOF
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of Wine 1.2:";;
1440 esac
1441 cat <<\_ACEOF
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --disable-win16 do not include Win16 support
1448 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1449 binaries)
1450 --disable-tests do not build the regression tests
1451 --enable-maintainer-mode
1452 enable maintainer-specific build rules
1453 --disable-largefile omit support for large files
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --without-alsa do not use the Alsa sound support
1459 --without-audioio do not use the AudioIO sound support
1460 --without-capi do not use CAPI (ISDN support)
1461 --without-cms do not use CMS (color management support)
1462 --without-coreaudio do not use the CoreAudio sound support
1463 --without-cups do not use CUPS
1464 --without-curses do not use (n)curses
1465 --without-esd do not use the EsounD sound support
1466 --without-fontconfig do not use fontconfig
1467 --without-freetype do not use the FreeType library
1468 --without-gphoto do not use gphoto (Digital Camera support)
1469 --without-glu do not use the GLU library
1470 --without-gnutls do not use GnuTLS (schannel support)
1471 --without-gsm do not use libgsm (GSM 06.10 codec support)
1472 --without-hal do not use HAL (dynamic device support)
1473 --without-jack do not use the Jack sound support
1474 --without-jpeg do not use JPEG
1475 --without-ldap do not use LDAP
1476 --without-mpg123 do not use the mpg123 library
1477 --without-nas do not use the NAS sound support
1478 --without-openal do not use OpenAL
1479 --without-opengl do not use OpenGL
1480 --without-openssl do not use OpenSSL
1481 --without-oss do not use the OSS sound support
1482 --without-png do not use PNG
1483 --without-pthread do not use the pthread library
1484 --without-pulse do not use PulseAudio sound support
1485 --without-sane do not use SANE (scanner support)
1486 --without-tiff do not use TIFF
1487 --without-v4l do not use v4l1 (v4l support)
1488 --without-xcomposite do not use the Xcomposite extension
1489 --without-xcursor do not use the Xcursor extension
1490 --without-xinerama do not use Xinerama (multi-monitor support)
1491 --without-xinput do not use the Xinput extension
1492 --without-xml do not use XML
1493 --without-xrandr do not use Xrandr (resolution changes)
1494 --without-xrender do not use the Xrender extension
1495 --without-xshape do not use the Xshape extension
1496 --without-xshm do not use XShm (shared memory extension)
1497 --without-xslt do not use XSLT
1498 --without-xxf86vm do not use XFree video mode extension
1499 --with-wine-tools=DIR use Wine tools from directory DIR
1500 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1501 --with-x use the X Window System
1503 Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1513 CPP C preprocessor
1514 XMKMF Path to xmkmf, Makefile generator for X Window System
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1519 Report bugs to <wine-devel@winehq.org>.
1520 Wine home page: <http://www.winehq.org>.
1521 _ACEOF
1522 ac_status=$?
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 continue
1531 ac_builddir=.
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1549 case $srcdir in
1550 .) # We are building in place.
1551 ac_srcdir=.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1573 else
1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1577 done
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582 cat <<\_ACEOF
1583 Wine configure 1.2
1584 generated by GNU Autoconf 2.65
1586 Copyright (C) 2009 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1589 _ACEOF
1590 exit
1593 ## ------------------------ ##
1594 ## Autoconf initialization. ##
1595 ## ------------------------ ##
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext
1604 if { { ac_try="$ac_compile"
1605 case "(($ac_try" in
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1608 esac
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_compile") 2>conftest.err
1612 ac_status=$?
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest.$ac_objext; then :
1623 ac_retval=0
1624 else
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1628 ac_retval=1
1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631 as_fn_set_status $ac_retval
1633 } # ac_fn_c_try_compile
1635 # ac_fn_cxx_try_compile LINENO
1636 # ----------------------------
1637 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1638 ac_fn_cxx_try_compile ()
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext
1642 if { { ac_try="$ac_compile"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_compile") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_cxx_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest.$ac_objext; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1666 ac_retval=1
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 as_fn_set_status $ac_retval
1671 } # ac_fn_cxx_try_compile
1673 # ac_fn_c_try_link LINENO
1674 # -----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_link ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext conftest$ac_exeext
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest$ac_exeext && {
1699 test "$cross_compiling" = yes ||
1700 $as_test_x conftest$ac_exeext
1701 }; then :
1702 ac_retval=0
1703 else
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1707 ac_retval=1
1709 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1710 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1711 # interfere with the next link command; also delete a directory that is
1712 # left behind by Apple's compiler. We do this before executing the actions.
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715 as_fn_set_status $ac_retval
1717 } # ac_fn_c_try_link
1719 # ac_fn_c_try_cpp LINENO
1720 # ----------------------
1721 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_cpp ()
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } >/dev/null && {
1741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1749 ac_retval=1
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 as_fn_set_status $ac_retval
1754 } # ac_fn_c_try_cpp
1756 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1759 # the include files in INCLUDES and setting the cache variable VAR
1760 # accordingly.
1761 ac_fn_c_check_header_mongrel ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1768 $as_echo_n "(cached) " >&6
1770 eval ac_res=\$$3
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 else
1774 # Is the header compilable?
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1776 $as_echo_n "checking $2 usability... " >&6; }
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783 ac_header_compiler=yes
1784 else
1785 ac_header_compiler=no
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1789 $as_echo "$ac_header_compiler" >&6; }
1791 # Is the header present?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1793 $as_echo_n "checking $2 presence... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 #include <$2>
1797 _ACEOF
1798 if ac_fn_c_try_cpp "$LINENO"; then :
1799 ac_header_preproc=yes
1800 else
1801 ac_header_preproc=no
1803 rm -f conftest.err conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1805 $as_echo "$ac_header_preproc" >&6; }
1807 # So? What about this header?
1808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1809 yes:no: )
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1811 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1815 no:yes:* )
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1817 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1819 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1821 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1823 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 ( cat <<\_ASBOX
1827 ## ------------------------------------ ##
1828 ## Report this to wine-devel@winehq.org ##
1829 ## ------------------------------------ ##
1830 _ASBOX
1831 ) | sed "s/^/$as_me: WARNING: /" >&2
1833 esac
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1837 $as_echo_n "(cached) " >&6
1838 else
1839 eval "$3=\$ac_header_compiler"
1841 eval ac_res=\$$3
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_c_check_header_mongrel
1849 # ac_fn_c_try_run LINENO
1850 # ----------------------
1851 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1852 # that executables *can* be run.
1853 ac_fn_c_try_run ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_link"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_link") 2>&5
1864 ac_status=$?
1865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1867 { { case "(($ac_try" in
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873 (eval "$ac_try") 2>&5
1874 ac_status=$?
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; }; }; then :
1877 ac_retval=0
1878 else
1879 $as_echo "$as_me: program exited with status $ac_status" >&5
1880 $as_echo "$as_me: failed program was:" >&5
1881 sed 's/^/| /' conftest.$ac_ext >&5
1883 ac_retval=$ac_status
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_c_try_run
1891 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1892 # -------------------------------------------------------
1893 # Tests whether HEADER exists and can be compiled using the include files in
1894 # INCLUDES, setting the cache variable VAR accordingly.
1895 ac_fn_c_check_header_compile ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1906 #include <$2>
1907 _ACEOF
1908 if ac_fn_c_try_compile "$LINENO"; then :
1909 eval "$3=yes"
1910 else
1911 eval "$3=no"
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915 eval ac_res=\$$3
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1917 $as_echo "$ac_res" >&6; }
1918 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 } # ac_fn_c_check_header_compile
1922 # ac_fn_c_check_func LINENO FUNC VAR
1923 # ----------------------------------
1924 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1925 ac_fn_c_check_func ()
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1937 #define $2 innocuous_$2
1939 /* System header to define __stub macros and hopefully few prototypes,
1940 which can conflict with char $2 (); below.
1941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1942 <limits.h> exists even on freestanding compilers. */
1944 #ifdef __STDC__
1945 # include <limits.h>
1946 #else
1947 # include <assert.h>
1948 #endif
1950 #undef $2
1952 /* Override any GCC internal prototype to avoid an error.
1953 Use char because int might match the return type of a GCC
1954 builtin and then its argument prototype would still apply. */
1955 #ifdef __cplusplus
1956 extern "C"
1957 #endif
1958 char $2 ();
1959 /* The GNU C library defines this for functions which it implements
1960 to always fail with ENOSYS. Some functions are actually named
1961 something starting with __ and the normal name is an alias. */
1962 #if defined __stub_$2 || defined __stub___$2
1963 choke me
1964 #endif
1967 main ()
1969 return $2 ();
1971 return 0;
1973 _ACEOF
1974 if ac_fn_c_try_link "$LINENO"; then :
1975 eval "$3=yes"
1976 else
1977 eval "$3=no"
1979 rm -f core conftest.err conftest.$ac_objext \
1980 conftest$ac_exeext conftest.$ac_ext
1982 eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987 } # ac_fn_c_check_func
1989 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1990 # ----------------------------------------------------
1991 # Tries to find if the field MEMBER exists in type AGGR, after including
1992 # INCLUDES, setting cache variable VAR accordingly.
1993 ac_fn_c_check_member ()
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1997 $as_echo_n "checking for $2.$3... " >&6; }
1998 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2005 main ()
2007 static $2 ac_aggr;
2008 if (ac_aggr.$3)
2009 return 0;
2011 return 0;
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 eval "$4=yes"
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2021 main ()
2023 static $2 ac_aggr;
2024 if (sizeof ac_aggr.$3)
2025 return 0;
2027 return 0;
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$4=yes"
2032 else
2033 eval "$4=no"
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 eval ac_res=\$$4
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2041 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044 } # ac_fn_c_check_member
2046 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2047 # -------------------------------------------
2048 # Tests whether TYPE exists after having included INCLUDES, setting cache
2049 # variable VAR accordingly.
2050 ac_fn_c_check_type ()
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2054 $as_echo_n "checking for $2... " >&6; }
2055 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2056 $as_echo_n "(cached) " >&6
2057 else
2058 eval "$3=no"
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 main ()
2065 if (sizeof ($2))
2066 return 0;
2068 return 0;
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2076 main ()
2078 if (sizeof (($2)))
2079 return 0;
2081 return 0;
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2086 else
2087 eval "$3=yes"
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 eval ac_res=\$$3
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 $as_echo "$ac_res" >&6; }
2096 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2098 } # ac_fn_c_check_type
2099 cat >config.log <<_ACEOF
2100 This file contains any messages produced by compilers while
2101 running configure, to aid debugging if configure makes a mistake.
2103 It was created by Wine $as_me 1.2, which was
2104 generated by GNU Autoconf 2.65. Invocation command line was
2106 $ $0 $@
2108 _ACEOF
2109 exec 5>>config.log
2111 cat <<_ASUNAME
2112 ## --------- ##
2113 ## Platform. ##
2114 ## --------- ##
2116 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2122 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2125 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2126 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2127 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2129 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2130 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2131 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2133 _ASUNAME
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2138 IFS=$as_save_IFS
2139 test -z "$as_dir" && as_dir=.
2140 $as_echo "PATH: $as_dir"
2141 done
2142 IFS=$as_save_IFS
2144 } >&5
2146 cat >&5 <<_ACEOF
2149 ## ----------- ##
2150 ## Core tests. ##
2151 ## ----------- ##
2153 _ACEOF
2156 # Keep a trace of the command line.
2157 # Strip out --no-create and --no-recursion so they do not pile up.
2158 # Strip out --silent because we don't want to record it for future runs.
2159 # Also quote any args containing shell meta-characters.
2160 # Make two passes to allow for proper duplicate-argument suppression.
2161 ac_configure_args=
2162 ac_configure_args0=
2163 ac_configure_args1=
2164 ac_must_keep_next=false
2165 for ac_pass in 1 2
2167 for ac_arg
2169 case $ac_arg in
2170 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2172 | -silent | --silent | --silen | --sile | --sil)
2173 continue ;;
2174 *\'*)
2175 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 esac
2177 case $ac_pass in
2178 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2180 as_fn_append ac_configure_args1 " '$ac_arg'"
2181 if test $ac_must_keep_next = true; then
2182 ac_must_keep_next=false # Got value, back to normal.
2183 else
2184 case $ac_arg in
2185 *=* | --config-cache | -C | -disable-* | --disable-* \
2186 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2187 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2188 | -with-* | --with-* | -without-* | --without-* | --x)
2189 case "$ac_configure_args0 " in
2190 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2191 esac
2193 -* ) ac_must_keep_next=true ;;
2194 esac
2196 as_fn_append ac_configure_args " '$ac_arg'"
2198 esac
2199 done
2200 done
2201 { ac_configure_args0=; unset ac_configure_args0;}
2202 { ac_configure_args1=; unset ac_configure_args1;}
2204 # When interrupted or exit'd, cleanup temporary files, and complete
2205 # config.log. We remove comments because anyway the quotes in there
2206 # would cause problems or look ugly.
2207 # WARNING: Use '\'' to represent an apostrophe within the trap.
2208 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2209 trap 'exit_status=$?
2210 # Save into config.log some information that might help in debugging.
2212 echo
2214 cat <<\_ASBOX
2215 ## ---------------- ##
2216 ## Cache variables. ##
2217 ## ---------------- ##
2218 _ASBOX
2219 echo
2220 # The following way of writing the cache mishandles newlines in values,
2222 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2223 eval ac_val=\$$ac_var
2224 case $ac_val in #(
2225 *${as_nl}*)
2226 case $ac_var in #(
2227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2228 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2229 esac
2230 case $ac_var in #(
2231 _ | IFS | as_nl) ;; #(
2232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2233 *) { eval $ac_var=; unset $ac_var;} ;;
2234 esac ;;
2235 esac
2236 done
2237 (set) 2>&1 |
2238 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2239 *${as_nl}ac_space=\ *)
2240 sed -n \
2241 "s/'\''/'\''\\\\'\'''\''/g;
2242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2243 ;; #(
2245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2247 esac |
2248 sort
2250 echo
2252 cat <<\_ASBOX
2253 ## ----------------- ##
2254 ## Output variables. ##
2255 ## ----------------- ##
2256 _ASBOX
2257 echo
2258 for ac_var in $ac_subst_vars
2260 eval ac_val=\$$ac_var
2261 case $ac_val in
2262 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263 esac
2264 $as_echo "$ac_var='\''$ac_val'\''"
2265 done | sort
2266 echo
2268 if test -n "$ac_subst_files"; then
2269 cat <<\_ASBOX
2270 ## ------------------- ##
2271 ## File substitutions. ##
2272 ## ------------------- ##
2273 _ASBOX
2274 echo
2275 for ac_var in $ac_subst_files
2277 eval ac_val=\$$ac_var
2278 case $ac_val in
2279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 esac
2281 $as_echo "$ac_var='\''$ac_val'\''"
2282 done | sort
2283 echo
2286 if test -s confdefs.h; then
2287 cat <<\_ASBOX
2288 ## ----------- ##
2289 ## confdefs.h. ##
2290 ## ----------- ##
2291 _ASBOX
2292 echo
2293 cat confdefs.h
2294 echo
2296 test "$ac_signal" != 0 &&
2297 $as_echo "$as_me: caught signal $ac_signal"
2298 $as_echo "$as_me: exit $exit_status"
2299 } >&5
2300 rm -f core *.core core.conftest.* &&
2301 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2302 exit $exit_status
2304 for ac_signal in 1 2 13 15; do
2305 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2306 done
2307 ac_signal=0
2309 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2310 rm -f -r conftest* confdefs.h
2312 $as_echo "/* confdefs.h */" > confdefs.h
2314 # Predefined preprocessor variables.
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_NAME "$PACKAGE_NAME"
2318 _ACEOF
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2322 _ACEOF
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2326 _ACEOF
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_STRING "$PACKAGE_STRING"
2330 _ACEOF
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2334 _ACEOF
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_URL "$PACKAGE_URL"
2338 _ACEOF
2341 # Let the site file select an alternate cache file if it wants to.
2342 # Prefer an explicitly selected file to automatically selected ones.
2343 ac_site_file1=NONE
2344 ac_site_file2=NONE
2345 if test -n "$CONFIG_SITE"; then
2346 ac_site_file1=$CONFIG_SITE
2347 elif test "x$prefix" != xNONE; then
2348 ac_site_file1=$prefix/share/config.site
2349 ac_site_file2=$prefix/etc/config.site
2350 else
2351 ac_site_file1=$ac_default_prefix/share/config.site
2352 ac_site_file2=$ac_default_prefix/etc/config.site
2354 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2356 test "x$ac_site_file" = xNONE && continue
2357 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2359 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2360 sed 's/^/| /' "$ac_site_file" >&5
2361 . "$ac_site_file"
2363 done
2365 if test -r "$cache_file"; then
2366 # Some versions of bash will fail to source /dev/null (special files
2367 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2368 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2370 $as_echo "$as_me: loading cache $cache_file" >&6;}
2371 case $cache_file in
2372 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2373 *) . "./$cache_file";;
2374 esac
2376 else
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2378 $as_echo "$as_me: creating cache $cache_file" >&6;}
2379 >$cache_file
2382 # Check that the precious variables saved in the cache have kept the same
2383 # value.
2384 ac_cache_corrupted=false
2385 for ac_var in $ac_precious_vars; do
2386 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2387 eval ac_new_set=\$ac_env_${ac_var}_set
2388 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2389 eval ac_new_val=\$ac_env_${ac_var}_value
2390 case $ac_old_set,$ac_new_set in
2391 set,)
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2393 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2394 ac_cache_corrupted=: ;;
2395 ,set)
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2398 ac_cache_corrupted=: ;;
2399 ,);;
2401 if test "x$ac_old_val" != "x$ac_new_val"; then
2402 # differences in whitespace do not lead to failure.
2403 ac_old_val_w=`echo x $ac_old_val`
2404 ac_new_val_w=`echo x $ac_new_val`
2405 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2407 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2408 ac_cache_corrupted=:
2409 else
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2411 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2412 eval $ac_var=\$ac_old_val
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2415 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2417 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2418 fi;;
2419 esac
2420 # Pass precious variables to config.status.
2421 if test "$ac_new_set" = set; then
2422 case $ac_new_val in
2423 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2424 *) ac_arg=$ac_var=$ac_new_val ;;
2425 esac
2426 case " $ac_configure_args " in
2427 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2428 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2429 esac
2431 done
2432 if $ac_cache_corrupted; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2436 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2437 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2439 ## -------------------- ##
2440 ## Main body of script. ##
2441 ## -------------------- ##
2443 ac_ext=c
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451 ac_config_headers="$ac_config_headers include/config.h"
2453 ac_aux_dir=
2454 for ac_dir in tools "$srcdir"/tools; do
2455 for ac_t in install-sh install.sh shtool; do
2456 if test -f "$ac_dir/$ac_t"; then
2457 ac_aux_dir=$ac_dir
2458 ac_install_sh="$ac_aux_dir/$ac_t -c"
2459 break 2
2461 done
2462 done
2463 if test -z "$ac_aux_dir"; then
2464 as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2467 # These three variables are undocumented and unsupported,
2468 # and are intended to be withdrawn in a future Autoconf release.
2469 # They can cause serious problems if a builder's source tree is in a directory
2470 # whose full name contains unusual characters.
2471 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2472 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2473 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2479 # Check whether --enable-win16 was given.
2480 if test "${enable_win16+set}" = set; then :
2481 enableval=$enable_win16;
2484 # Check whether --enable-win64 was given.
2485 if test "${enable_win64+set}" = set; then :
2486 enableval=$enable_win64;
2489 # Check whether --enable-tests was given.
2490 if test "${enable_tests+set}" = set; then :
2491 enableval=$enable_tests;
2494 # Check whether --enable-maintainer-mode was given.
2495 if test "${enable_maintainer_mode+set}" = set; then :
2496 enableval=$enable_maintainer_mode;
2501 # Check whether --with-alsa was given.
2502 if test "${with_alsa+set}" = set; then :
2503 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2507 # Check whether --with-audioio was given.
2508 if test "${with_audioio+set}" = set; then :
2509 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2513 # Check whether --with-capi was given.
2514 if test "${with_capi+set}" = set; then :
2515 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2519 # Check whether --with-cms was given.
2520 if test "${with_cms+set}" = set; then :
2521 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2525 # Check whether --with-coreaudio was given.
2526 if test "${with_coreaudio+set}" = set; then :
2527 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2531 # Check whether --with-cups was given.
2532 if test "${with_cups+set}" = set; then :
2533 withval=$with_cups;
2537 # Check whether --with-curses was given.
2538 if test "${with_curses+set}" = set; then :
2539 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2543 # Check whether --with-esd was given.
2544 if test "${with_esd+set}" = set; then :
2545 withval=$with_esd;
2549 # Check whether --with-fontconfig was given.
2550 if test "${with_fontconfig+set}" = set; then :
2551 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2555 # Check whether --with-freetype was given.
2556 if test "${with_freetype+set}" = set; then :
2557 withval=$with_freetype;
2561 # Check whether --with-gphoto was given.
2562 if test "${with_gphoto+set}" = set; then :
2563 withval=$with_gphoto;
2567 # Check whether --with-glu was given.
2568 if test "${with_glu+set}" = set; then :
2569 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2573 # Check whether --with-gnutls was given.
2574 if test "${with_gnutls+set}" = set; then :
2575 withval=$with_gnutls;
2579 # Check whether --with-gsm was given.
2580 if test "${with_gsm+set}" = set; then :
2581 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2585 # Check whether --with-hal was given.
2586 if test "${with_hal+set}" = set; then :
2587 withval=$with_hal;
2591 # Check whether --with-jack was given.
2592 if test "${with_jack+set}" = set; then :
2593 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2597 # Check whether --with-jpeg was given.
2598 if test "${with_jpeg+set}" = set; then :
2599 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2603 # Check whether --with-ldap was given.
2604 if test "${with_ldap+set}" = set; then :
2605 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2609 # Check whether --with-mpg123 was given.
2610 if test "${with_mpg123+set}" = set; then :
2611 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2615 # Check whether --with-nas was given.
2616 if test "${with_nas+set}" = set; then :
2617 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2621 # Check whether --with-openal was given.
2622 if test "${with_openal+set}" = set; then :
2623 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2627 # Check whether --with-opengl was given.
2628 if test "${with_opengl+set}" = set; then :
2629 withval=$with_opengl;
2633 # Check whether --with-openssl was given.
2634 if test "${with_openssl+set}" = set; then :
2635 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2639 # Check whether --with-oss was given.
2640 if test "${with_oss+set}" = set; then :
2641 withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2645 # Check whether --with-png was given.
2646 if test "${with_png+set}" = set; then :
2647 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2651 # Check whether --with-pthread was given.
2652 if test "${with_pthread+set}" = set; then :
2653 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2657 # Check whether --with-pulse was given.
2658 if test "${with_pulse+set}" = set; then :
2659 withval=$with_pulse;
2663 # Check whether --with-sane was given.
2664 if test "${with_sane+set}" = set; then :
2665 withval=$with_sane;
2669 # Check whether --with-tiff was given.
2670 if test "${with_tiff+set}" = set; then :
2671 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2675 # Check whether --with-v4l was given.
2676 if test "${with_v4l+set}" = set; then :
2677 withval=$with_v4l;
2681 # Check whether --with-xcomposite was given.
2682 if test "${with_xcomposite+set}" = set; then :
2683 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2687 # Check whether --with-xcursor was given.
2688 if test "${with_xcursor+set}" = set; then :
2689 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2693 # Check whether --with-xinerama was given.
2694 if test "${with_xinerama+set}" = set; then :
2695 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2699 # Check whether --with-xinput was given.
2700 if test "${with_xinput+set}" = set; then :
2701 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2705 # Check whether --with-xml was given.
2706 if test "${with_xml+set}" = set; then :
2707 withval=$with_xml;
2711 # Check whether --with-xrandr was given.
2712 if test "${with_xrandr+set}" = set; then :
2713 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2717 # Check whether --with-xrender was given.
2718 if test "${with_xrender+set}" = set; then :
2719 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2723 # Check whether --with-xshape was given.
2724 if test "${with_xshape+set}" = set; then :
2725 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2729 # Check whether --with-xshm was given.
2730 if test "${with_xshm+set}" = set; then :
2731 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2735 # Check whether --with-xslt was given.
2736 if test "${with_xslt+set}" = set; then :
2737 withval=$with_xslt;
2741 # Check whether --with-xxf86vm was given.
2742 if test "${with_xxf86vm+set}" = set; then :
2743 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
2748 # Check whether --with-wine-tools was given.
2749 if test "${with_wine_tools+set}" = set; then :
2750 withval=$with_wine_tools;
2754 # Check whether --with-wine64 was given.
2755 if test "${with_wine64+set}" = set; then :
2756 withval=$with_wine64;
2760 # Make sure we can run config.sub.
2761 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2762 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2765 $as_echo_n "checking build system type... " >&6; }
2766 if test "${ac_cv_build+set}" = set; then :
2767 $as_echo_n "(cached) " >&6
2768 else
2769 ac_build_alias=$build_alias
2770 test "x$ac_build_alias" = x &&
2771 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2772 test "x$ac_build_alias" = x &&
2773 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2774 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2775 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2779 $as_echo "$ac_cv_build" >&6; }
2780 case $ac_cv_build in
2781 *-*-*) ;;
2782 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2783 esac
2784 build=$ac_cv_build
2785 ac_save_IFS=$IFS; IFS='-'
2786 set x $ac_cv_build
2787 shift
2788 build_cpu=$1
2789 build_vendor=$2
2790 shift; shift
2791 # Remember, the first character of IFS is used to create $*,
2792 # except with old shells:
2793 build_os=$*
2794 IFS=$ac_save_IFS
2795 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2799 $as_echo_n "checking host system type... " >&6; }
2800 if test "${ac_cv_host+set}" = set; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 if test "x$host_alias" = x; then
2804 ac_cv_host=$ac_cv_build
2805 else
2806 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2807 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2812 $as_echo "$ac_cv_host" >&6; }
2813 case $ac_cv_host in
2814 *-*-*) ;;
2815 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2816 esac
2817 host=$ac_cv_host
2818 ac_save_IFS=$IFS; IFS='-'
2819 set x $ac_cv_host
2820 shift
2821 host_cpu=$1
2822 host_vendor=$2
2823 shift; shift
2824 # Remember, the first character of IFS is used to create $*,
2825 # except with old shells:
2826 host_os=$*
2827 IFS=$ac_save_IFS
2828 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2832 case "$srcdir" in
2833 .) ;;
2834 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2835 as_fn_error "you are building out of the source tree, but the source tree contains object files.
2836 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2837 fi ;;
2838 esac
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2842 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2843 set x ${MAKE-make}
2844 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2845 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 cat >conftest.make <<\_ACEOF
2849 SHELL = /bin/sh
2850 all:
2851 @echo '@@@%%%=$(MAKE)=@@@%%%'
2852 _ACEOF
2853 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2854 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2855 *@@@%%%=?*=@@@%%%*)
2856 eval ac_cv_prog_make_${ac_make}_set=yes;;
2858 eval ac_cv_prog_make_${ac_make}_set=no;;
2859 esac
2860 rm -f conftest.make
2862 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2864 $as_echo "yes" >&6; }
2865 SET_MAKE=
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 SET_MAKE="MAKE=${MAKE-make}"
2872 ac_ext=c
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877 if test -n "$ac_tool_prefix"; then
2878 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2879 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_CC+set}" = set; then :
2883 $as_echo_n "(cached) " >&6
2884 else
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2899 done
2900 done
2901 IFS=$as_save_IFS
2905 CC=$ac_cv_prog_CC
2906 if test -n "$CC"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2908 $as_echo "$CC" >&6; }
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2916 if test -z "$ac_cv_prog_CC"; then
2917 ac_ct_CC=$CC
2918 # Extract the first word of "gcc", so it can be a program name with args.
2919 set dummy gcc; ac_word=$2
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921 $as_echo_n "checking for $ac_word... " >&6; }
2922 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if test -n "$ac_ct_CC"; then
2926 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2931 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_ac_ct_CC="gcc"
2936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2
2939 done
2940 done
2941 IFS=$as_save_IFS
2945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2946 if test -n "$ac_ct_CC"; then
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2948 $as_echo "$ac_ct_CC" >&6; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2954 if test "x$ac_ct_CC" = x; then
2955 CC=""
2956 else
2957 case $cross_compiling:$ac_tool_warned in
2958 yes:)
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2961 ac_tool_warned=yes ;;
2962 esac
2963 CC=$ac_ct_CC
2965 else
2966 CC="$ac_cv_prog_CC"
2969 if test -z "$CC"; then
2970 if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2972 set dummy ${ac_tool_prefix}cc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if test "${ac_cv_prog_CC+set}" = set; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_CC="${ac_tool_prefix}cc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2992 done
2993 done
2994 IFS=$as_save_IFS
2998 CC=$ac_cv_prog_CC
2999 if test -n "$CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001 $as_echo "$CC" >&6; }
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3010 if test -z "$CC"; then
3011 # Extract the first word of "cc", so it can be a program name with args.
3012 set dummy cc; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if test "${ac_cv_prog_CC+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 if test -n "$CC"; then
3019 ac_cv_prog_CC="$CC" # Let the user override the test.
3020 else
3021 ac_prog_rejected=no
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3030 ac_prog_rejected=yes
3031 continue
3033 ac_cv_prog_CC="cc"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 break 2
3037 done
3038 done
3039 IFS=$as_save_IFS
3041 if test $ac_prog_rejected = yes; then
3042 # We found a bogon in the path, so make sure we never use it.
3043 set dummy $ac_cv_prog_CC
3044 shift
3045 if test $# != 0; then
3046 # We chose a different compiler from the bogus one.
3047 # However, it has the same basename, so the bogon will be chosen
3048 # first if we set CC to just the basename; use the full file name.
3049 shift
3050 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058 $as_echo "$CC" >&6; }
3059 else
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3066 if test -z "$CC"; then
3067 if test -n "$ac_tool_prefix"; then
3068 for ac_prog in cl.exe
3070 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3071 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073 $as_echo_n "checking for $ac_word... " >&6; }
3074 if test "${ac_cv_prog_CC+set}" = set; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 if test -n "$CC"; then
3078 ac_cv_prog_CC="$CC" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3091 done
3092 done
3093 IFS=$as_save_IFS
3097 CC=$ac_cv_prog_CC
3098 if test -n "$CC"; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3100 $as_echo "$CC" >&6; }
3101 else
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103 $as_echo "no" >&6; }
3107 test -n "$CC" && break
3108 done
3110 if test -z "$CC"; then
3111 ac_ct_CC=$CC
3112 for ac_prog in cl.exe
3114 # Extract the first word of "$ac_prog", so it can be a program name with args.
3115 set dummy $ac_prog; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 if test -n "$ac_ct_CC"; then
3122 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3127 IFS=$as_save_IFS
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131 ac_cv_prog_ac_ct_CC="$ac_prog"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 break 2
3135 done
3136 done
3137 IFS=$as_save_IFS
3141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3142 if test -n "$ac_ct_CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3144 $as_echo "$ac_ct_CC" >&6; }
3145 else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3151 test -n "$ac_ct_CC" && break
3152 done
3154 if test "x$ac_ct_CC" = x; then
3155 CC=""
3156 else
3157 case $cross_compiling:$ac_tool_warned in
3158 yes:)
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3161 ac_tool_warned=yes ;;
3162 esac
3163 CC=$ac_ct_CC
3170 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172 as_fn_error "no acceptable C compiler found in \$PATH
3173 See \`config.log' for more details." "$LINENO" 5; }
3175 # Provide some information about the compiler.
3176 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3177 set X $ac_compile
3178 ac_compiler=$2
3179 for ac_option in --version -v -V -qversion; do
3180 { { ac_try="$ac_compiler $ac_option >&5"
3181 case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184 esac
3185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186 $as_echo "$ac_try_echo"; } >&5
3187 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3188 ac_status=$?
3189 if test -s conftest.err; then
3190 sed '10a\
3191 ... rest of stderr output deleted ...
3192 10q' conftest.err >conftest.er1
3193 cat conftest.er1 >&5
3195 rm -f conftest.er1 conftest.err
3196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3197 test $ac_status = 0; }
3198 done
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3204 main ()
3208 return 0;
3210 _ACEOF
3211 ac_clean_files_save=$ac_clean_files
3212 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3213 # Try to create an executable without -o first, disregard a.out.
3214 # It will help us diagnose broken compilers, and finding out an intuition
3215 # of exeext.
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3217 $as_echo_n "checking whether the C compiler works... " >&6; }
3218 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3220 # The possible output files:
3221 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3223 ac_rmfiles=
3224 for ac_file in $ac_files
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3228 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3229 esac
3230 done
3231 rm -f $ac_rmfiles
3233 if { { ac_try="$ac_link_default"
3234 case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_link_default") 2>&5
3241 ac_status=$?
3242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243 test $ac_status = 0; }; then :
3244 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3245 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3246 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3247 # so that the user can short-circuit this test for compilers unknown to
3248 # Autoconf.
3249 for ac_file in $ac_files ''
3251 test -f "$ac_file" || continue
3252 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3255 [ab].out )
3256 # We found the default executable, but exeext='' is most
3257 # certainly right.
3258 break;;
3259 *.* )
3260 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3261 then :; else
3262 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3264 # We set ac_cv_exeext here because the later test for it is not
3265 # safe: cross compilers may not add the suffix if given an `-o'
3266 # argument, so we may need to know it at that point already.
3267 # Even if this section looks crufty: it has the advantage of
3268 # actually working.
3269 break;;
3271 break;;
3272 esac
3273 done
3274 test "$ac_cv_exeext" = no && ac_cv_exeext=
3276 else
3277 ac_file=''
3279 if test -z "$ac_file"; then :
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3281 $as_echo "no" >&6; }
3282 $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 { as_fn_set_status 77
3288 as_fn_error "C compiler cannot create executables
3289 See \`config.log' for more details." "$LINENO" 5; }; }
3290 else
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3295 $as_echo_n "checking for C compiler default output file name... " >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3297 $as_echo "$ac_file" >&6; }
3298 ac_exeext=$ac_cv_exeext
3300 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3301 ac_clean_files=$ac_clean_files_save
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3303 $as_echo_n "checking for suffix of executables... " >&6; }
3304 if { { ac_try="$ac_link"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link") 2>&5
3312 ac_status=$?
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3316 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3317 # work properly (i.e., refer to `conftest.exe'), while it won't with
3318 # `rm'.
3319 for ac_file in conftest.exe conftest conftest.*; do
3320 test -f "$ac_file" || continue
3321 case $ac_file in
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3323 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324 break;;
3325 * ) break;;
3326 esac
3327 done
3328 else
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error "cannot compute suffix of executables: cannot compile and link
3332 See \`config.log' for more details." "$LINENO" 5; }
3334 rm -f conftest conftest$ac_cv_exeext
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3336 $as_echo "$ac_cv_exeext" >&6; }
3338 rm -f conftest.$ac_ext
3339 EXEEXT=$ac_cv_exeext
3340 ac_exeext=$EXEEXT
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3343 #include <stdio.h>
3345 main ()
3347 FILE *f = fopen ("conftest.out", "w");
3348 return ferror (f) || fclose (f) != 0;
3351 return 0;
3353 _ACEOF
3354 ac_clean_files="$ac_clean_files conftest.out"
3355 # Check that the compiler produces executables we can run. If not, either
3356 # the compiler is broken, or we cross compile.
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3358 $as_echo_n "checking whether we are cross compiling... " >&6; }
3359 if test "$cross_compiling" != yes; then
3360 { { ac_try="$ac_link"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366 $as_echo "$ac_try_echo"; } >&5
3367 (eval "$ac_link") 2>&5
3368 ac_status=$?
3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370 test $ac_status = 0; }
3371 if { ac_try='./conftest$ac_cv_exeext'
3372 { { case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375 esac
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_try") 2>&5
3379 ac_status=$?
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }; }; then
3382 cross_compiling=no
3383 else
3384 if test "$cross_compiling" = maybe; then
3385 cross_compiling=yes
3386 else
3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error "cannot run C compiled programs.
3390 If you meant to cross compile, use \`--host'.
3391 See \`config.log' for more details." "$LINENO" 5; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3396 $as_echo "$cross_compiling" >&6; }
3398 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3399 ac_clean_files=$ac_clean_files_save
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3401 $as_echo_n "checking for suffix of object files... " >&6; }
3402 if test "${ac_cv_objext+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3409 main ()
3413 return 0;
3415 _ACEOF
3416 rm -f conftest.o conftest.obj
3417 if { { ac_try="$ac_compile"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424 (eval "$ac_compile") 2>&5
3425 ac_status=$?
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }; then :
3428 for ac_file in conftest.o conftest.obj conftest.*; do
3429 test -f "$ac_file" || continue;
3430 case $ac_file in
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3432 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3433 break;;
3434 esac
3435 done
3436 else
3437 $as_echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error "cannot compute suffix of object files: cannot compile
3443 See \`config.log' for more details." "$LINENO" 5; }
3445 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3448 $as_echo "$ac_cv_objext" >&6; }
3449 OBJEXT=$ac_cv_objext
3450 ac_objext=$OBJEXT
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3452 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3453 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3460 main ()
3462 #ifndef __GNUC__
3463 choke me
3464 #endif
3467 return 0;
3469 _ACEOF
3470 if ac_fn_c_try_compile "$LINENO"; then :
3471 ac_compiler_gnu=yes
3472 else
3473 ac_compiler_gnu=no
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3480 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3481 if test $ac_compiler_gnu = yes; then
3482 GCC=yes
3483 else
3484 GCC=
3486 ac_test_CFLAGS=${CFLAGS+set}
3487 ac_save_CFLAGS=$CFLAGS
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3489 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3490 if test "${ac_cv_prog_cc_g+set}" = set; then :
3491 $as_echo_n "(cached) " >&6
3492 else
3493 ac_save_c_werror_flag=$ac_c_werror_flag
3494 ac_c_werror_flag=yes
3495 ac_cv_prog_cc_g=no
3496 CFLAGS="-g"
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3501 main ()
3505 return 0;
3507 _ACEOF
3508 if ac_fn_c_try_compile "$LINENO"; then :
3509 ac_cv_prog_cc_g=yes
3510 else
3511 CFLAGS=""
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3516 main ()
3520 return 0;
3522 _ACEOF
3523 if ac_fn_c_try_compile "$LINENO"; then :
3525 else
3526 ac_c_werror_flag=$ac_save_c_werror_flag
3527 CFLAGS="-g"
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3532 main ()
3536 return 0;
3538 _ACEOF
3539 if ac_fn_c_try_compile "$LINENO"; then :
3540 ac_cv_prog_cc_g=yes
3542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_c_werror_flag=$ac_save_c_werror_flag
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3550 $as_echo "$ac_cv_prog_cc_g" >&6; }
3551 if test "$ac_test_CFLAGS" = set; then
3552 CFLAGS=$ac_save_CFLAGS
3553 elif test $ac_cv_prog_cc_g = yes; then
3554 if test "$GCC" = yes; then
3555 CFLAGS="-g -O2"
3556 else
3557 CFLAGS="-g"
3559 else
3560 if test "$GCC" = yes; then
3561 CFLAGS="-O2"
3562 else
3563 CFLAGS=
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3567 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3568 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 ac_cv_prog_cc_c89=no
3572 ac_save_CC=$CC
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575 #include <stdarg.h>
3576 #include <stdio.h>
3577 #include <sys/types.h>
3578 #include <sys/stat.h>
3579 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3580 struct buf { int x; };
3581 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3582 static char *e (p, i)
3583 char **p;
3584 int i;
3586 return p[i];
3588 static char *f (char * (*g) (char **, int), char **p, ...)
3590 char *s;
3591 va_list v;
3592 va_start (v,p);
3593 s = g (p, va_arg (v,int));
3594 va_end (v);
3595 return s;
3598 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3599 function prototypes and stuff, but not '\xHH' hex character constants.
3600 These don't provoke an error unfortunately, instead are silently treated
3601 as 'x'. The following induces an error, until -std is added to get
3602 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3603 array size at least. It's necessary to write '\x00'==0 to get something
3604 that's true only with -std. */
3605 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3607 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3608 inside strings and character constants. */
3609 #define FOO(x) 'x'
3610 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3612 int test (int i, double x);
3613 struct s1 {int (*f) (int a);};
3614 struct s2 {int (*f) (double a);};
3615 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3616 int argc;
3617 char **argv;
3619 main ()
3621 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3623 return 0;
3625 _ACEOF
3626 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3627 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3629 CC="$ac_save_CC $ac_arg"
3630 if ac_fn_c_try_compile "$LINENO"; then :
3631 ac_cv_prog_cc_c89=$ac_arg
3633 rm -f core conftest.err conftest.$ac_objext
3634 test "x$ac_cv_prog_cc_c89" != "xno" && break
3635 done
3636 rm -f conftest.$ac_ext
3637 CC=$ac_save_CC
3640 # AC_CACHE_VAL
3641 case "x$ac_cv_prog_cc_c89" in
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3644 $as_echo "none needed" >&6; } ;;
3645 xno)
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3647 $as_echo "unsupported" >&6; } ;;
3649 CC="$CC $ac_cv_prog_cc_c89"
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3651 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3652 esac
3653 if test "x$ac_cv_prog_cc_c89" != xno; then :
3657 ac_ext=c
3658 ac_cpp='$CPP $CPPFLAGS'
3659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3663 ac_ext=cpp
3664 ac_cpp='$CXXCPP $CPPFLAGS'
3665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3668 if test -z "$CXX"; then
3669 if test -n "$CCC"; then
3670 CXX=$CCC
3671 else
3672 if test -n "$ac_tool_prefix"; then
3673 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_CXX+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -n "$CXX"; then
3683 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 break 2
3696 done
3697 done
3698 IFS=$as_save_IFS
3702 CXX=$ac_cv_prog_CXX
3703 if test -n "$CXX"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3705 $as_echo "$CXX" >&6; }
3706 else
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3712 test -n "$CXX" && break
3713 done
3715 if test -z "$CXX"; then
3716 ac_ct_CXX=$CXX
3717 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3719 # Extract the first word of "$ac_prog", so it can be a program name with args.
3720 set dummy $ac_prog; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 if test -n "$ac_ct_CXX"; then
3727 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_ac_ct_CXX="$ac_prog"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3740 done
3741 done
3742 IFS=$as_save_IFS
3746 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3747 if test -n "$ac_ct_CXX"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3749 $as_echo "$ac_ct_CXX" >&6; }
3750 else
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3756 test -n "$ac_ct_CXX" && break
3757 done
3759 if test "x$ac_ct_CXX" = x; then
3760 CXX="g++"
3761 else
3762 case $cross_compiling:$ac_tool_warned in
3763 yes:)
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3766 ac_tool_warned=yes ;;
3767 esac
3768 CXX=$ac_ct_CXX
3774 # Provide some information about the compiler.
3775 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3776 set X $ac_compile
3777 ac_compiler=$2
3778 for ac_option in --version -v -V -qversion; do
3779 { { ac_try="$ac_compiler $ac_option >&5"
3780 case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3787 ac_status=$?
3788 if test -s conftest.err; then
3789 sed '10a\
3790 ... rest of stderr output deleted ...
3791 10q' conftest.err >conftest.er1
3792 cat conftest.er1 >&5
3794 rm -f conftest.er1 conftest.err
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }
3797 done
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3800 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3801 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3808 main ()
3810 #ifndef __GNUC__
3811 choke me
3812 #endif
3815 return 0;
3817 _ACEOF
3818 if ac_fn_cxx_try_compile "$LINENO"; then :
3819 ac_compiler_gnu=yes
3820 else
3821 ac_compiler_gnu=no
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3828 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3829 if test $ac_compiler_gnu = yes; then
3830 GXX=yes
3831 else
3832 GXX=
3834 ac_test_CXXFLAGS=${CXXFLAGS+set}
3835 ac_save_CXXFLAGS=$CXXFLAGS
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3837 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3838 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3842 ac_cxx_werror_flag=yes
3843 ac_cv_prog_cxx_g=no
3844 CXXFLAGS="-g"
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3849 main ()
3853 return 0;
3855 _ACEOF
3856 if ac_fn_cxx_try_compile "$LINENO"; then :
3857 ac_cv_prog_cxx_g=yes
3858 else
3859 CXXFLAGS=""
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3864 main ()
3868 return 0;
3870 _ACEOF
3871 if ac_fn_cxx_try_compile "$LINENO"; then :
3873 else
3874 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3875 CXXFLAGS="-g"
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3880 main ()
3884 return 0;
3886 _ACEOF
3887 if ac_fn_cxx_try_compile "$LINENO"; then :
3888 ac_cv_prog_cxx_g=yes
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3898 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3899 if test "$ac_test_CXXFLAGS" = set; then
3900 CXXFLAGS=$ac_save_CXXFLAGS
3901 elif test $ac_cv_prog_cxx_g = yes; then
3902 if test "$GXX" = yes; then
3903 CXXFLAGS="-g -O2"
3904 else
3905 CXXFLAGS="-g"
3907 else
3908 if test "$GXX" = yes; then
3909 CXXFLAGS="-O2"
3910 else
3911 CXXFLAGS=
3914 ac_ext=c
3915 ac_cpp='$CPP $CPPFLAGS'
3916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920 if test -n "$ac_tool_prefix"; then
3921 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3922 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 $as_echo_n "checking for $ac_word... " >&6; }
3925 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
3927 else
3928 if test -n "$CPPBIN"; then
3929 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3930 else
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3934 IFS=$as_save_IFS
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3938 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3940 break 2
3942 done
3943 done
3944 IFS=$as_save_IFS
3948 CPPBIN=$ac_cv_prog_CPPBIN
3949 if test -n "$CPPBIN"; then
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3951 $as_echo "$CPPBIN" >&6; }
3952 else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3959 if test -z "$ac_cv_prog_CPPBIN"; then
3960 ac_ct_CPPBIN=$CPPBIN
3961 # Extract the first word of "cpp", so it can be a program name with args.
3962 set dummy cpp; ac_word=$2
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964 $as_echo_n "checking for $ac_word... " >&6; }
3965 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if test -n "$ac_ct_CPPBIN"; then
3969 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3978 ac_cv_prog_ac_ct_CPPBIN="cpp"
3979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3982 done
3983 done
3984 IFS=$as_save_IFS
3988 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3989 if test -n "$ac_ct_CPPBIN"; then
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
3991 $as_echo "$ac_ct_CPPBIN" >&6; }
3992 else
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3994 $as_echo "no" >&6; }
3997 if test "x$ac_ct_CPPBIN" = x; then
3998 CPPBIN="cpp"
3999 else
4000 case $cross_compiling:$ac_tool_warned in
4001 yes:)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4004 ac_tool_warned=yes ;;
4005 esac
4006 CPPBIN=$ac_ct_CPPBIN
4008 else
4009 CPPBIN="$ac_cv_prog_CPPBIN"
4013 cat >>confdefs.h <<_ACEOF
4014 #define EXEEXT "$ac_exeext"
4015 _ACEOF
4018 case $host in
4019 *-darwin*)
4020 if test "x$enable_win64" = "xyes"
4021 then
4022 CC="$CC -m64"
4023 CXX="$CXX -m64"
4024 LD="${LD:-ld} -arch x86_64"
4025 AS="${AS:-as} -arch x86_64"
4026 host_cpu="x86_64"
4027 notice_platform="64-bit "
4028 TARGETFLAGS="-m64"
4030 else
4031 CC="$CC -m32"
4032 CXX="$CXX -m32"
4033 LD="${LD:-ld} -arch i386"
4034 AS="${AS:-as} -arch i386"
4035 host_cpu="i386"
4036 notice_platform="32-bit "
4037 TARGETFLAGS="-m32"
4039 enable_win16=${enable_win16:-yes}
4042 x86_64*)
4043 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4044 then
4045 CC="$CC -m32"
4046 CXX="$CXX -m32"
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4048 $as_echo_n "checking whether $CC works... " >&6; }
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4054 main ()
4058 return 0;
4060 _ACEOF
4061 if ac_fn_c_try_link "$LINENO"; then :
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063 $as_echo "yes" >&6; }
4064 else
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4066 $as_echo "no" >&6; }
4067 as_fn_error "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4069 rm -f core conftest.err conftest.$ac_objext \
4070 conftest$ac_exeext conftest.$ac_ext
4071 LD="${LD:-ld} -m elf_i386"
4072 AS="${AS:-as} --32"
4073 host_cpu="i386"
4074 notice_platform="32-bit "
4075 TARGETFLAGS="-m32"
4077 enable_win16=${enable_win16:-yes}
4078 else
4079 if test "x${GCC}" = "xyes"
4080 then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4082 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4085 #include <stdarg.h>
4087 main ()
4089 void func(__builtin_ms_va_list *args);
4091 return 0;
4093 _ACEOF
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4096 $as_echo "yes" >&6; }
4097 else
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099 $as_echo "no" >&6; }
4100 as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104 TARGETFLAGS="-m64"
4108 *-mingw32*|*-cygwin*)
4109 enable_win16=${enable_win16:-no}
4110 CFLAGS="$CFLAGS -D_WIN32"
4112 i[3456789]86*)
4113 enable_win16=${enable_win16:-yes}
4115 esac
4117 enable_win16=${enable_win16:-no}
4119 enable_winetest=${enable_winetest:-$enable_tests}
4121 if test -n "$with_wine64"
4122 then
4123 if test "x$enable_win64" = "xyes"
4124 then
4125 as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4126 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4128 WOW64_DISABLE=\#
4130 enable_fonts=${enable_fonts:-no}
4131 enable_server=${enable_server:-no}
4132 enable_tools=${enable_tools:-no}
4133 elif test "x$enable_win64" = "xyes"
4134 then
4135 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4139 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4140 if test "${wine_cv_toolsdir+set}" = set; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 wine_cv_toolsdir="$with_wine_tools"
4144 if test -z "$with_wine_tools"; then
4145 if test "$cross_compiling" = "yes"; then
4146 as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4147 elif test -n "$with_wine64"; then
4148 wine_cv_toolsdir="$with_wine64"
4151 if test -z "$wine_cv_toolsdir"; then
4152 wine_cv_toolsdir="\$(TOPOBJDIR)"
4153 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4154 case "$wine_cv_toolsdir" in
4155 /*) ;;
4156 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
4157 esac
4158 else
4159 as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4163 $as_echo "$wine_cv_toolsdir" >&6; }
4164 TOOLSDIR=$wine_cv_toolsdir
4166 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4167 then
4168 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4172 for ac_prog in flex
4174 # Extract the first word of "$ac_prog", so it can be a program name with args.
4175 set dummy $ac_prog; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if test "${ac_cv_prog_FLEX+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if test -n "$FLEX"; then
4182 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_FLEX="$ac_prog"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4195 done
4196 done
4197 IFS=$as_save_IFS
4201 FLEX=$ac_cv_prog_FLEX
4202 if test -n "$FLEX"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4204 $as_echo "$FLEX" >&6; }
4205 else
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4211 test -n "$FLEX" && break
4212 done
4213 test -n "$FLEX" || FLEX="none"
4215 if test "$FLEX" = "none"
4216 then
4217 as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4220 $as_echo_n "checking whether flex is recent enough... " >&6; }
4221 cat >conftest.l <<EOF
4222 %top{
4223 #include "prediluvian.h"
4227 if $FLEX -t conftest.l >/dev/null 2>&1
4228 then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4230 $as_echo "yes" >&6; }
4231 else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4234 as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4237 for ac_prog in bison
4239 # Extract the first word of "$ac_prog", so it can be a program name with args.
4240 set dummy $ac_prog; ac_word=$2
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 $as_echo_n "checking for $ac_word... " >&6; }
4243 if test "${ac_cv_prog_BISON+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -n "$BISON"; then
4247 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_prog_BISON="$ac_prog"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4260 done
4261 done
4262 IFS=$as_save_IFS
4266 BISON=$ac_cv_prog_BISON
4267 if test -n "$BISON"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4269 $as_echo "$BISON" >&6; }
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4276 test -n "$BISON" && break
4277 done
4278 test -n "$BISON" || BISON="none"
4280 if test "$BISON" = "none"
4281 then
4282 as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4285 if test -n "$ac_tool_prefix"; then
4286 for ac_prog in ar gar
4288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if test "${ac_cv_prog_AR+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 if test -n "$AR"; then
4296 ac_cv_prog_AR="$AR" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 break 2
4309 done
4310 done
4311 IFS=$as_save_IFS
4315 AR=$ac_cv_prog_AR
4316 if test -n "$AR"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4318 $as_echo "$AR" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4325 test -n "$AR" && break
4326 done
4328 if test -z "$AR"; then
4329 ac_ct_AR=$AR
4330 for ac_prog in ar gar
4332 # Extract the first word of "$ac_prog", so it can be a program name with args.
4333 set dummy $ac_prog; ac_word=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 if test -n "$ac_ct_AR"; then
4340 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349 ac_cv_prog_ac_ct_AR="$ac_prog"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4353 done
4354 done
4355 IFS=$as_save_IFS
4359 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4360 if test -n "$ac_ct_AR"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4362 $as_echo "$ac_ct_AR" >&6; }
4363 else
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4369 test -n "$ac_ct_AR" && break
4370 done
4372 if test "x$ac_ct_AR" = x; then
4373 AR="ar"
4374 else
4375 case $cross_compiling:$ac_tool_warned in
4376 yes:)
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4379 ac_tool_warned=yes ;;
4380 esac
4381 AR=$ac_ct_AR
4385 ARFLAGS=rc
4387 if test -n "$ac_tool_prefix"; then
4388 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4389 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 if test -n "$RANLIB"; then
4396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4409 done
4410 done
4411 IFS=$as_save_IFS
4415 RANLIB=$ac_cv_prog_RANLIB
4416 if test -n "$RANLIB"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4418 $as_echo "$RANLIB" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4426 if test -z "$ac_cv_prog_RANLIB"; then
4427 ac_ct_RANLIB=$RANLIB
4428 # Extract the first word of "ranlib", so it can be a program name with args.
4429 set dummy ranlib; ac_word=$2
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4431 $as_echo_n "checking for $ac_word... " >&6; }
4432 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 if test -n "$ac_ct_RANLIB"; then
4436 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_ac_ct_RANLIB="ranlib"
4446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4451 IFS=$as_save_IFS
4455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4456 if test -n "$ac_ct_RANLIB"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4458 $as_echo "$ac_ct_RANLIB" >&6; }
4459 else
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4464 if test "x$ac_ct_RANLIB" = x; then
4465 RANLIB=":"
4466 else
4467 case $cross_compiling:$ac_tool_warned in
4468 yes:)
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4471 ac_tool_warned=yes ;;
4472 esac
4473 RANLIB=$ac_ct_RANLIB
4475 else
4476 RANLIB="$ac_cv_prog_RANLIB"
4479 if test -n "$ac_tool_prefix"; then
4480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4481 set dummy ${ac_tool_prefix}strip; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if test "${ac_cv_prog_STRIP+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if test -n "$STRIP"; then
4488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4489 else
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4501 done
4502 done
4503 IFS=$as_save_IFS
4507 STRIP=$ac_cv_prog_STRIP
4508 if test -n "$STRIP"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4510 $as_echo "$STRIP" >&6; }
4511 else
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4518 if test -z "$ac_cv_prog_STRIP"; then
4519 ac_ct_STRIP=$STRIP
4520 # Extract the first word of "strip", so it can be a program name with args.
4521 set dummy strip; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if test -n "$ac_ct_STRIP"; then
4528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_ac_ct_STRIP="strip"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4543 IFS=$as_save_IFS
4547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4548 if test -n "$ac_ct_STRIP"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4550 $as_echo "$ac_ct_STRIP" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4556 if test "x$ac_ct_STRIP" = x; then
4557 STRIP="strip"
4558 else
4559 case $cross_compiling:$ac_tool_warned in
4560 yes:)
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4563 ac_tool_warned=yes ;;
4564 esac
4565 STRIP=$ac_ct_STRIP
4567 else
4568 STRIP="$ac_cv_prog_STRIP"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4572 $as_echo_n "checking whether ln -s works... " >&6; }
4573 LN_S=$as_ln_s
4574 if test "$LN_S" = "ln -s"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4576 $as_echo "yes" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4579 $as_echo "no, using $LN_S" >&6; }
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4583 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4584 if test "${ac_cv_path_GREP+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -z "$GREP"; then
4588 ac_path_GREP_found=false
4589 # Loop through the user's path and test for each of PROGNAME-LIST
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_prog in grep ggrep; do
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4598 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4599 # Check for GNU ac_path_GREP and select it if it is found.
4600 # Check for GNU $ac_path_GREP
4601 case `"$ac_path_GREP" --version 2>&1` in
4602 *GNU*)
4603 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4605 ac_count=0
4606 $as_echo_n 0123456789 >"conftest.in"
4607 while :
4609 cat "conftest.in" "conftest.in" >"conftest.tmp"
4610 mv "conftest.tmp" "conftest.in"
4611 cp "conftest.in" "conftest.nl"
4612 $as_echo 'GREP' >> "conftest.nl"
4613 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4615 as_fn_arith $ac_count + 1 && ac_count=$as_val
4616 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4617 # Best one so far, save it but keep looking for a better one
4618 ac_cv_path_GREP="$ac_path_GREP"
4619 ac_path_GREP_max=$ac_count
4621 # 10*(2^10) chars as input seems more than enough
4622 test $ac_count -gt 10 && break
4623 done
4624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4625 esac
4627 $ac_path_GREP_found && break 3
4628 done
4629 done
4630 done
4631 IFS=$as_save_IFS
4632 if test -z "$ac_cv_path_GREP"; then
4633 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635 else
4636 ac_cv_path_GREP=$GREP
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4641 $as_echo "$ac_cv_path_GREP" >&6; }
4642 GREP="$ac_cv_path_GREP"
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4646 $as_echo_n "checking for egrep... " >&6; }
4647 if test "${ac_cv_path_EGREP+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4651 then ac_cv_path_EGREP="$GREP -E"
4652 else
4653 if test -z "$EGREP"; then
4654 ac_path_EGREP_found=false
4655 # Loop through the user's path and test for each of PROGNAME-LIST
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_prog in egrep; do
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4664 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4665 # Check for GNU ac_path_EGREP and select it if it is found.
4666 # Check for GNU $ac_path_EGREP
4667 case `"$ac_path_EGREP" --version 2>&1` in
4668 *GNU*)
4669 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4671 ac_count=0
4672 $as_echo_n 0123456789 >"conftest.in"
4673 while :
4675 cat "conftest.in" "conftest.in" >"conftest.tmp"
4676 mv "conftest.tmp" "conftest.in"
4677 cp "conftest.in" "conftest.nl"
4678 $as_echo 'EGREP' >> "conftest.nl"
4679 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681 as_fn_arith $ac_count + 1 && ac_count=$as_val
4682 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4683 # Best one so far, save it but keep looking for a better one
4684 ac_cv_path_EGREP="$ac_path_EGREP"
4685 ac_path_EGREP_max=$ac_count
4687 # 10*(2^10) chars as input seems more than enough
4688 test $ac_count -gt 10 && break
4689 done
4690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4691 esac
4693 $ac_path_EGREP_found && break 3
4694 done
4695 done
4696 done
4697 IFS=$as_save_IFS
4698 if test -z "$ac_cv_path_EGREP"; then
4699 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4701 else
4702 ac_cv_path_EGREP=$EGREP
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4708 $as_echo "$ac_cv_path_EGREP" >&6; }
4709 EGREP="$ac_cv_path_EGREP"
4712 # Extract the first word of "ldconfig", so it can be a program name with args.
4713 set dummy ldconfig; ac_word=$2
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 case $LDCONFIG in
4720 [\\/]* | ?:[\\/]*)
4721 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in /sbin /usr/sbin $PATH
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4735 done
4736 done
4737 IFS=$as_save_IFS
4739 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4741 esac
4743 LDCONFIG=$ac_cv_path_LDCONFIG
4744 if test -n "$LDCONFIG"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4746 $as_echo "$LDCONFIG" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4753 # Find a good install program. We prefer a C program (faster),
4754 # so one script is as good as another. But avoid the broken or
4755 # incompatible versions:
4756 # SysV /etc/install, /usr/sbin/install
4757 # SunOS /usr/etc/install
4758 # IRIX /sbin/install
4759 # AIX /bin/install
4760 # AmigaOS /C/install, which installs bootblocks on floppy discs
4761 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4762 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4763 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4764 # OS/2's system install, which has a completely different semantic
4765 # ./install, which can be erroneously created by make from ./install.sh.
4766 # Reject install programs that cannot install multiple files.
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4768 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4769 if test -z "$INSTALL"; then
4770 if test "${ac_cv_path_install+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 # Account for people who put trailing slashes in PATH elements.
4779 case $as_dir/ in #((
4780 ./ | .// | /[cC]/* | \
4781 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4782 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4783 /usr/ucb/* ) ;;
4785 # OSF1 and SCO ODT 3.0 have their own names for install.
4786 # Don't use installbsd from OSF since it installs stuff as root
4787 # by default.
4788 for ac_prog in ginstall scoinst install; do
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4791 if test $ac_prog = install &&
4792 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4793 # AIX install. It has an incompatible calling convention.
4795 elif test $ac_prog = install &&
4796 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4797 # program-specific install script used by HP pwplus--don't use.
4799 else
4800 rm -rf conftest.one conftest.two conftest.dir
4801 echo one > conftest.one
4802 echo two > conftest.two
4803 mkdir conftest.dir
4804 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4805 test -s conftest.one && test -s conftest.two &&
4806 test -s conftest.dir/conftest.one &&
4807 test -s conftest.dir/conftest.two
4808 then
4809 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4810 break 3
4814 done
4815 done
4817 esac
4819 done
4820 IFS=$as_save_IFS
4822 rm -rf conftest.one conftest.two conftest.dir
4825 if test "${ac_cv_path_install+set}" = set; then
4826 INSTALL=$ac_cv_path_install
4827 else
4828 # As a last resort, use the slow shell script. Don't cache a
4829 # value for INSTALL within a source directory, because that will
4830 # break other packages using the cache if that directory is
4831 # removed, or if the value is a relative name.
4832 INSTALL=$ac_install_sh
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4836 $as_echo "$INSTALL" >&6; }
4838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4839 # It thinks the first close brace ends the variable substitution.
4840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4842 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4844 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4846 case "$INSTALL" in
4847 [\\/$]* | ?:[\\/]* ) ;;
4848 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4849 esac
4851 for ac_prog in lclint lint
4853 # Extract the first word of "$ac_prog", so it can be a program name with args.
4854 set dummy $ac_prog; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if test "${ac_cv_prog_LINT+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 if test -n "$LINT"; then
4861 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_LINT="$ac_prog"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4874 done
4875 done
4876 IFS=$as_save_IFS
4880 LINT=$ac_cv_prog_LINT
4881 if test -n "$LINT"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4883 $as_echo "$LINT" >&6; }
4884 else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4890 test -n "$LINT" && break
4891 done
4893 if test "$LINT" = "lint"
4894 then
4895 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4900 for ac_prog in fontforge
4902 # Extract the first word of "$ac_prog", so it can be a program name with args.
4903 set dummy $ac_prog; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 if test -n "$FONTFORGE"; then
4910 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_FONTFORGE="$ac_prog"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4923 done
4924 done
4925 IFS=$as_save_IFS
4929 FONTFORGE=$ac_cv_prog_FONTFORGE
4930 if test -n "$FONTFORGE"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4932 $as_echo "$FONTFORGE" >&6; }
4933 else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4939 test -n "$FONTFORGE" && break
4940 done
4941 test -n "$FONTFORGE" || FONTFORGE="false"
4943 for ac_prog in pkg-config
4945 # Extract the first word of "$ac_prog", so it can be a program name with args.
4946 set dummy $ac_prog; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$PKG_CONFIG"; then
4953 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_PKG_CONFIG="$ac_prog"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4966 done
4967 done
4968 IFS=$as_save_IFS
4972 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4973 if test -n "$PKG_CONFIG"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4975 $as_echo "$PKG_CONFIG" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4982 test -n "$PKG_CONFIG" && break
4983 done
4984 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4986 for ac_prog in rsvg
4988 # Extract the first word of "$ac_prog", so it can be a program name with args.
4989 set dummy $ac_prog; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_prog_RSVG+set}" = set; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 if test -n "$RSVG"; then
4996 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_RSVG="$ac_prog"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5009 done
5010 done
5011 IFS=$as_save_IFS
5015 RSVG=$ac_cv_prog_RSVG
5016 if test -n "$RSVG"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5018 $as_echo "$RSVG" >&6; }
5019 else
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5025 test -n "$RSVG" && break
5026 done
5027 test -n "$RSVG" || RSVG="false"
5029 for ac_prog in convert
5031 # Extract the first word of "$ac_prog", so it can be a program name with args.
5032 set dummy $ac_prog; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_CONVERT+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$CONVERT"; then
5039 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_CONVERT="$ac_prog"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5052 done
5053 done
5054 IFS=$as_save_IFS
5058 CONVERT=$ac_cv_prog_CONVERT
5059 if test -n "$CONVERT"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5061 $as_echo "$CONVERT" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 test -n "$CONVERT" && break
5069 done
5070 test -n "$CONVERT" || CONVERT="false"
5072 for ac_prog in icotool
5074 # Extract the first word of "$ac_prog", so it can be a program name with args.
5075 set dummy $ac_prog; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 if test -n "$ICOTOOL"; then
5082 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_ICOTOOL="$ac_prog"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5095 done
5096 done
5097 IFS=$as_save_IFS
5101 ICOTOOL=$ac_cv_prog_ICOTOOL
5102 if test -n "$ICOTOOL"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5104 $as_echo "$ICOTOOL" >&6; }
5105 else
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5111 test -n "$ICOTOOL" && break
5112 done
5113 test -n "$ICOTOOL" || ICOTOOL="false"
5116 if test "x$enable_maintainer_mode" != "xyes"
5117 then
5118 MAINTAINER_MODE=\#
5120 else
5121 if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi
5122 if test "$RSVG" = "false"; then as_fn_append wine_warnings "|rsvg is missing, icons can't be rebuilt."; fi
5124 if test "$CONVERT" = false
5125 then
5126 as_fn_append wine_warnings "|imagemagick is missing, icons can't be rebuilt."
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5129 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5130 convert_version=`convert --version | head -n1`
5131 if test "x$convert_version" != "x"
5132 then
5133 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5134 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5135 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5136 then
5137 CONVERT=false
5138 as_fn_append wine_warnings "|imagemagick version 6.6 or newer is needed to rebuild icons."
5141 if test "$CONVERT" = false
5142 then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5144 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5147 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5151 if test "$ICOTOOL" = false
5152 then
5153 as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5156 $as_echo_n "checking for recent enough icotool... " >&6; }
5157 icotool_version=`icotool --version | head -n1`
5158 if test "x$icotool_version" != "x"
5159 then
5160 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5161 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5162 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5163 then
5164 ICOTOOL=false
5165 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5168 if test "$ICOTOOL" = false
5169 then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5171 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5174 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5180 case $host_cpu in
5181 *i[3456789]86*)
5182 # Extract the first word of "prelink", so it can be a program name with args.
5183 set dummy prelink; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if test "${ac_cv_path_PRELINK+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 case $PRELINK in
5190 [\\/]* | ?:[\\/]*)
5191 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in /sbin /usr/sbin $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5205 done
5206 done
5207 IFS=$as_save_IFS
5209 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5211 esac
5213 PRELINK=$ac_cv_path_PRELINK
5214 if test -n "$PRELINK"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
5216 $as_echo "$PRELINK" >&6; }
5217 else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5224 esac
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5228 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5229 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231 else
5232 ac_check_lib_save_LIBS=$LIBS
5233 LIBS="-li386 $LIBS"
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5237 /* Override any GCC internal prototype to avoid an error.
5238 Use char because int might match the return type of a GCC
5239 builtin and then its argument prototype would still apply. */
5240 #ifdef __cplusplus
5241 extern "C"
5242 #endif
5243 char i386_set_ldt ();
5245 main ()
5247 return i386_set_ldt ();
5249 return 0;
5251 _ACEOF
5252 if ac_fn_c_try_link "$LINENO"; then :
5253 ac_cv_lib_i386_i386_set_ldt=yes
5254 else
5255 ac_cv_lib_i386_i386_set_ldt=no
5257 rm -f core conftest.err conftest.$ac_objext \
5258 conftest$ac_exeext conftest.$ac_ext
5259 LIBS=$ac_check_lib_save_LIBS
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5262 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5263 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5264 cat >>confdefs.h <<_ACEOF
5265 #define HAVE_LIBI386 1
5266 _ACEOF
5268 LIBS="-li386 $LIBS"
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5273 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5274 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 ac_check_lib_save_LIBS=$LIBS
5278 LIBS="-lossaudio $LIBS"
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5282 /* Override any GCC internal prototype to avoid an error.
5283 Use char because int might match the return type of a GCC
5284 builtin and then its argument prototype would still apply. */
5285 #ifdef __cplusplus
5286 extern "C"
5287 #endif
5288 char _oss_ioctl ();
5290 main ()
5292 return _oss_ioctl ();
5294 return 0;
5296 _ACEOF
5297 if ac_fn_c_try_link "$LINENO"; then :
5298 ac_cv_lib_ossaudio__oss_ioctl=yes
5299 else
5300 ac_cv_lib_ossaudio__oss_ioctl=no
5302 rm -f core conftest.err conftest.$ac_objext \
5303 conftest$ac_exeext conftest.$ac_ext
5304 LIBS=$ac_check_lib_save_LIBS
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5307 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5308 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5309 cat >>confdefs.h <<_ACEOF
5310 #define HAVE_LIBOSSAUDIO 1
5311 _ACEOF
5313 LIBS="-lossaudio $LIBS"
5318 XLIB=""
5320 OPENGL_LIBS=""
5324 # Check whether --enable-largefile was given.
5325 if test "${enable_largefile+set}" = set; then :
5326 enableval=$enable_largefile;
5329 if test "$enable_largefile" != no; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5332 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5333 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5334 $as_echo_n "(cached) " >&6
5335 else
5336 ac_cv_sys_largefile_CC=no
5337 if test "$GCC" != yes; then
5338 ac_save_CC=$CC
5339 while :; do
5340 # IRIX 6.2 and later do not support large files by default,
5341 # so use the C compiler's -n32 option if that helps.
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <sys/types.h>
5345 /* Check that off_t can represent 2**63 - 1 correctly.
5346 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5347 since some C++ compilers masquerading as C compilers
5348 incorrectly reject 9223372036854775807. */
5349 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5350 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5351 && LARGE_OFF_T % 2147483647 == 1)
5352 ? 1 : -1];
5354 main ()
5358 return 0;
5360 _ACEOF
5361 if ac_fn_c_try_compile "$LINENO"; then :
5362 break
5364 rm -f core conftest.err conftest.$ac_objext
5365 CC="$CC -n32"
5366 if ac_fn_c_try_compile "$LINENO"; then :
5367 ac_cv_sys_largefile_CC=' -n32'; break
5369 rm -f core conftest.err conftest.$ac_objext
5370 break
5371 done
5372 CC=$ac_save_CC
5373 rm -f conftest.$ac_ext
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5377 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5378 if test "$ac_cv_sys_largefile_CC" != no; then
5379 CC=$CC$ac_cv_sys_largefile_CC
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5383 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5384 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 while :; do
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390 #include <sys/types.h>
5391 /* Check that off_t can represent 2**63 - 1 correctly.
5392 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5393 since some C++ compilers masquerading as C compilers
5394 incorrectly reject 9223372036854775807. */
5395 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5396 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5397 && LARGE_OFF_T % 2147483647 == 1)
5398 ? 1 : -1];
5400 main ()
5404 return 0;
5406 _ACEOF
5407 if ac_fn_c_try_compile "$LINENO"; then :
5408 ac_cv_sys_file_offset_bits=no; break
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #define _FILE_OFFSET_BITS 64
5414 #include <sys/types.h>
5415 /* Check that off_t can represent 2**63 - 1 correctly.
5416 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5417 since some C++ compilers masquerading as C compilers
5418 incorrectly reject 9223372036854775807. */
5419 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5420 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5421 && LARGE_OFF_T % 2147483647 == 1)
5422 ? 1 : -1];
5424 main ()
5428 return 0;
5430 _ACEOF
5431 if ac_fn_c_try_compile "$LINENO"; then :
5432 ac_cv_sys_file_offset_bits=64; break
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 ac_cv_sys_file_offset_bits=unknown
5436 break
5437 done
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5440 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5441 case $ac_cv_sys_file_offset_bits in #(
5442 no | unknown) ;;
5444 cat >>confdefs.h <<_ACEOF
5445 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5446 _ACEOF
5448 esac
5449 rm -rf conftest*
5450 if test $ac_cv_sys_file_offset_bits = unknown; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5452 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5453 if test "${ac_cv_sys_large_files+set}" = set; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 while :; do
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5459 #include <sys/types.h>
5460 /* Check that off_t can represent 2**63 - 1 correctly.
5461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5462 since some C++ compilers masquerading as C compilers
5463 incorrectly reject 9223372036854775807. */
5464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5466 && LARGE_OFF_T % 2147483647 == 1)
5467 ? 1 : -1];
5469 main ()
5473 return 0;
5475 _ACEOF
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 ac_cv_sys_large_files=no; break
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482 #define _LARGE_FILES 1
5483 #include <sys/types.h>
5484 /* Check that off_t can represent 2**63 - 1 correctly.
5485 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5486 since some C++ compilers masquerading as C compilers
5487 incorrectly reject 9223372036854775807. */
5488 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5489 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5490 && LARGE_OFF_T % 2147483647 == 1)
5491 ? 1 : -1];
5493 main ()
5497 return 0;
5499 _ACEOF
5500 if ac_fn_c_try_compile "$LINENO"; then :
5501 ac_cv_sys_large_files=1; break
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 ac_cv_sys_large_files=unknown
5505 break
5506 done
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5509 $as_echo "$ac_cv_sys_large_files" >&6; }
5510 case $ac_cv_sys_large_files in #(
5511 no | unknown) ;;
5513 cat >>confdefs.h <<_ACEOF
5514 #define _LARGE_FILES $ac_cv_sys_large_files
5515 _ACEOF
5517 esac
5518 rm -rf conftest*
5523 ac_ext=c
5524 ac_cpp='$CPP $CPPFLAGS'
5525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5529 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5530 # On Suns, sometimes $CPP names a directory.
5531 if test -n "$CPP" && test -d "$CPP"; then
5532 CPP=
5534 if test -z "$CPP"; then
5535 if test "${ac_cv_prog_CPP+set}" = set; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 # Double quotes because CPP needs to be expanded
5539 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5541 ac_preproc_ok=false
5542 for ac_c_preproc_warn_flag in '' yes
5544 # Use a header file that comes with gcc, so configuring glibc
5545 # with a fresh cross-compiler works.
5546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5547 # <limits.h> exists even on freestanding compilers.
5548 # On the NeXT, cc -E runs the code through the compiler's parser,
5549 # not just through cpp. "Syntax error" is here to catch this case.
5550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 /* end confdefs.h. */
5552 #ifdef __STDC__
5553 # include <limits.h>
5554 #else
5555 # include <assert.h>
5556 #endif
5557 Syntax error
5558 _ACEOF
5559 if ac_fn_c_try_cpp "$LINENO"; then :
5561 else
5562 # Broken: fails on valid input.
5563 continue
5565 rm -f conftest.err conftest.$ac_ext
5567 # OK, works on sane cases. Now check whether nonexistent headers
5568 # can be detected and how.
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 #include <ac_nonexistent.h>
5572 _ACEOF
5573 if ac_fn_c_try_cpp "$LINENO"; then :
5574 # Broken: success on invalid input.
5575 continue
5576 else
5577 # Passes both tests.
5578 ac_preproc_ok=:
5579 break
5581 rm -f conftest.err conftest.$ac_ext
5583 done
5584 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5585 rm -f conftest.err conftest.$ac_ext
5586 if $ac_preproc_ok; then :
5587 break
5590 done
5591 ac_cv_prog_CPP=$CPP
5594 CPP=$ac_cv_prog_CPP
5595 else
5596 ac_cv_prog_CPP=$CPP
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5599 $as_echo "$CPP" >&6; }
5600 ac_preproc_ok=false
5601 for ac_c_preproc_warn_flag in '' yes
5603 # Use a header file that comes with gcc, so configuring glibc
5604 # with a fresh cross-compiler works.
5605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5606 # <limits.h> exists even on freestanding compilers.
5607 # On the NeXT, cc -E runs the code through the compiler's parser,
5608 # not just through cpp. "Syntax error" is here to catch this case.
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5611 #ifdef __STDC__
5612 # include <limits.h>
5613 #else
5614 # include <assert.h>
5615 #endif
5616 Syntax error
5617 _ACEOF
5618 if ac_fn_c_try_cpp "$LINENO"; then :
5620 else
5621 # Broken: fails on valid input.
5622 continue
5624 rm -f conftest.err conftest.$ac_ext
5626 # OK, works on sane cases. Now check whether nonexistent headers
5627 # can be detected and how.
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <ac_nonexistent.h>
5631 _ACEOF
5632 if ac_fn_c_try_cpp "$LINENO"; then :
5633 # Broken: success on invalid input.
5634 continue
5635 else
5636 # Passes both tests.
5637 ac_preproc_ok=:
5638 break
5640 rm -f conftest.err conftest.$ac_ext
5642 done
5643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5644 rm -f conftest.err conftest.$ac_ext
5645 if $ac_preproc_ok; then :
5647 else
5648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5650 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5651 See \`config.log' for more details." "$LINENO" 5; }
5654 ac_ext=c
5655 ac_cpp='$CPP $CPPFLAGS'
5656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5662 $as_echo_n "checking for ANSI C header files... " >&6; }
5663 if test "${ac_cv_header_stdc+set}" = set; then :
5664 $as_echo_n "(cached) " >&6
5665 else
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 #include <stdlib.h>
5669 #include <stdarg.h>
5670 #include <string.h>
5671 #include <float.h>
5674 main ()
5678 return 0;
5680 _ACEOF
5681 if ac_fn_c_try_compile "$LINENO"; then :
5682 ac_cv_header_stdc=yes
5683 else
5684 ac_cv_header_stdc=no
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5688 if test $ac_cv_header_stdc = yes; then
5689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 #include <string.h>
5694 _ACEOF
5695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5696 $EGREP "memchr" >/dev/null 2>&1; then :
5698 else
5699 ac_cv_header_stdc=no
5701 rm -f conftest*
5705 if test $ac_cv_header_stdc = yes; then
5706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 #include <stdlib.h>
5711 _ACEOF
5712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5713 $EGREP "free" >/dev/null 2>&1; then :
5715 else
5716 ac_cv_header_stdc=no
5718 rm -f conftest*
5722 if test $ac_cv_header_stdc = yes; then
5723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5724 if test "$cross_compiling" = yes; then :
5726 else
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h. */
5729 #include <ctype.h>
5730 #include <stdlib.h>
5731 #if ((' ' & 0x0FF) == 0x020)
5732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5734 #else
5735 # define ISLOWER(c) \
5736 (('a' <= (c) && (c) <= 'i') \
5737 || ('j' <= (c) && (c) <= 'r') \
5738 || ('s' <= (c) && (c) <= 'z'))
5739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5740 #endif
5742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5744 main ()
5746 int i;
5747 for (i = 0; i < 256; i++)
5748 if (XOR (islower (i), ISLOWER (i))
5749 || toupper (i) != TOUPPER (i))
5750 return 2;
5751 return 0;
5753 _ACEOF
5754 if ac_fn_c_try_run "$LINENO"; then :
5756 else
5757 ac_cv_header_stdc=no
5759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5760 conftest.$ac_objext conftest.beam conftest.$ac_ext
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5766 $as_echo "$ac_cv_header_stdc" >&6; }
5767 if test $ac_cv_header_stdc = yes; then
5769 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5773 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5774 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5775 inttypes.h stdint.h unistd.h
5776 do :
5777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5778 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5780 eval as_val=\$$as_ac_Header
5781 if test "x$as_val" = x""yes; then :
5782 cat >>confdefs.h <<_ACEOF
5783 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5784 _ACEOF
5788 done
5791 for ac_header in \
5792 AL/al.h \
5793 AudioToolbox/AudioConverter.h \
5794 AudioUnit/AudioUnit.h \
5795 Carbon/Carbon.h \
5796 CoreAudio/CoreAudio.h \
5797 DiskArbitration/DiskArbitration.h \
5798 IOKit/IOKitLib.h \
5799 IOKit/hid/IOHIDLib.h \
5800 OpenAL/al.h \
5801 alias.h \
5802 alsa/asoundlib.h \
5803 arpa/inet.h \
5804 arpa/nameser.h \
5805 asm/types.h \
5806 capi20.h \
5807 curses.h \
5808 direct.h \
5809 dirent.h \
5810 dlfcn.h \
5811 elf.h \
5812 float.h \
5813 fnmatch.h \
5814 fontconfig/fontconfig.h \
5815 getopt.h \
5816 grp.h \
5817 gsm.h \
5818 gsm/gsm.h \
5819 ieeefp.h \
5820 inet/mib2.h \
5821 io.h \
5822 jack/jack.h \
5823 jpeglib.h \
5824 kstat.h \
5825 lber.h \
5826 lcms.h \
5827 lcms/lcms.h \
5828 ldap.h \
5829 libaudioio.h \
5830 link.h \
5831 linux/cdrom.h \
5832 linux/compiler.h \
5833 linux/hdreg.h \
5834 linux/input.h \
5835 linux/ioctl.h \
5836 linux/joystick.h \
5837 linux/major.h \
5838 linux/param.h \
5839 linux/serial.h \
5840 linux/types.h \
5841 linux/ucdrom.h \
5842 mach-o/nlist.h \
5843 mach/mach.h \
5844 mach/machine.h \
5845 machine/cpu.h \
5846 machine/limits.h \
5847 machine/soundcard.h \
5848 machine/sysarch.h \
5849 mntent.h \
5850 mpg123.h \
5851 ncurses.h \
5852 netdb.h \
5853 netinet/in.h \
5854 netinet/in_systm.h \
5855 netinet/tcp.h \
5856 netinet/tcp_fsm.h \
5857 openssl/err.h \
5858 openssl/ssl.h \
5859 png.h \
5860 poll.h \
5861 port.h \
5862 process.h \
5863 pthread.h \
5864 pwd.h \
5865 regex.h \
5866 sched.h \
5867 scsi/scsi.h \
5868 scsi/scsi_ioctl.h \
5869 scsi/sg.h \
5870 soundcard.h \
5871 stdbool.h \
5872 stdint.h \
5873 strings.h \
5874 stropts.h \
5875 sys/asoundlib.h \
5876 sys/cdio.h \
5877 sys/elf32.h \
5878 sys/epoll.h \
5879 sys/errno.h \
5880 sys/event.h \
5881 sys/exec_elf.h \
5882 sys/filio.h \
5883 sys/inotify.h \
5884 sys/ioctl.h \
5885 sys/ipc.h \
5886 sys/limits.h \
5887 sys/link.h \
5888 sys/mman.h \
5889 sys/modem.h \
5890 sys/msg.h \
5891 sys/mtio.h \
5892 sys/param.h \
5893 sys/poll.h \
5894 sys/prctl.h \
5895 sys/protosw.h \
5896 sys/ptrace.h \
5897 sys/resource.h \
5898 sys/scsiio.h \
5899 sys/shm.h \
5900 sys/signal.h \
5901 sys/socket.h \
5902 sys/socketvar.h \
5903 sys/sockio.h \
5904 sys/soundcard.h \
5905 sys/statvfs.h \
5906 sys/strtio.h \
5907 sys/syscall.h \
5908 sys/tihdr.h \
5909 sys/time.h \
5910 sys/timeout.h \
5911 sys/times.h \
5912 sys/uio.h \
5913 sys/un.h \
5914 sys/utsname.h \
5915 sys/vm86.h \
5916 sys/wait.h \
5917 syscall.h \
5918 termios.h \
5919 tiffio.h \
5920 unistd.h \
5921 utime.h \
5922 valgrind/memcheck.h \
5923 valgrind/valgrind.h \
5924 zlib.h
5926 do :
5927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5928 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5929 eval as_val=\$$as_ac_Header
5930 if test "x$as_val" = x""yes; then :
5931 cat >>confdefs.h <<_ACEOF
5932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5933 _ACEOF
5937 done
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5940 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5941 if test "${ac_cv_header_stat_broken+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5945 /* end confdefs.h. */
5946 #include <sys/types.h>
5947 #include <sys/stat.h>
5949 #if defined S_ISBLK && defined S_IFDIR
5950 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5951 #endif
5953 #if defined S_ISBLK && defined S_IFCHR
5954 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5955 #endif
5957 #if defined S_ISLNK && defined S_IFREG
5958 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5959 #endif
5961 #if defined S_ISSOCK && defined S_IFREG
5962 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5963 #endif
5965 _ACEOF
5966 if ac_fn_c_try_compile "$LINENO"; then :
5967 ac_cv_header_stat_broken=no
5968 else
5969 ac_cv_header_stat_broken=yes
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5974 $as_echo "$ac_cv_header_stat_broken" >&6; }
5975 if test $ac_cv_header_stat_broken = yes; then
5977 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5983 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5984 do :
5985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5986 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5987 #ifdef HAVE_SYS_PARAM_H
5988 # include <sys/param.h>
5989 #endif
5991 eval as_val=\$$as_ac_Header
5992 if test "x$as_val" = x""yes; then :
5993 cat >>confdefs.h <<_ACEOF
5994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5995 _ACEOF
5999 done
6002 for ac_header in \
6003 netinet/ip.h \
6004 net/if.h \
6005 net/if_arp.h \
6006 net/if_dl.h \
6007 net/if_types.h \
6008 net/route.h \
6009 netinet/if_ether.h \
6010 netinet/if_inarp.h \
6011 netinet/in_pcb.h \
6012 netinet/ip_icmp.h \
6013 netinet/ip_var.h \
6014 netinet/udp.h \
6015 netipx/ipx.h \
6017 do :
6018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6019 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6020 #ifdef HAVE_SYS_SOCKET_H
6021 # include <sys/socket.h>
6022 #endif
6023 #ifdef HAVE_SYS_SOCKETVAR_H
6024 # include <sys/socketvar.h>
6025 #endif
6026 #ifdef HAVE_NET_ROUTE_H
6027 # include <net/route.h>
6028 #endif
6029 #ifdef HAVE_NETINET_IN_H
6030 # include <netinet/in.h>
6031 #endif
6032 #ifdef HAVE_NETINET_IN_SYSTM_H
6033 # include <netinet/in_systm.h>
6034 #endif
6035 #ifdef HAVE_NET_IF_H
6036 # include <net/if.h>
6037 #endif
6038 #ifdef HAVE_NETINET_IP_H
6039 # include <netinet/ip.h>
6040 #endif
6042 eval as_val=\$$as_ac_Header
6043 if test "x$as_val" = x""yes; then :
6044 cat >>confdefs.h <<_ACEOF
6045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6046 _ACEOF
6050 done
6053 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
6054 do :
6055 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6056 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6057 #ifdef HAVE_ALIAS_H
6058 # include <alias.h>
6059 #endif
6060 #ifdef HAVE_SYS_SOCKET_H
6061 # include <sys/socket.h>
6062 #endif
6063 #ifdef HAVE_SYS_SOCKETVAR_H
6064 # include <sys/socketvar.h>
6065 #endif
6066 #ifdef HAVE_SYS_TIMEOUT_H
6067 # include <sys/timeout.h>
6068 #endif
6069 #ifdef HAVE_NETINET_IN_H
6070 # include <netinet/in.h>
6071 #endif
6072 #ifdef HAVE_NETINET_IN_SYSTM_H
6073 # include <netinet/in_systm.h>
6074 #endif
6075 #ifdef HAVE_NETINET_IP_H
6076 # include <netinet/ip.h>
6077 #endif
6078 #ifdef HAVE_NETINET_IP_VAR_H
6079 # include <netinet/ip_var.h>
6080 #endif
6081 #ifdef HAVE_NETINET_IP_ICMP_H
6082 # include <netinet/ip_icmp.h>
6083 #endif
6084 #ifdef HAVE_NETINET_UDP_H
6085 # include <netinet/udp.h>
6086 #endif
6087 #ifdef HAVE_NETINET_TCP_H
6088 # include <netinet/tcp.h>
6089 #endif
6090 #ifdef HAVE_NETINET_TCP_TIMER_H
6091 #include <netinet/tcp_timer.h>
6092 #endif
6094 eval as_val=\$$as_ac_Header
6095 if test "x$as_val" = x""yes; then :
6096 cat >>confdefs.h <<_ACEOF
6097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6098 _ACEOF
6102 done
6105 for ac_header in linux/ipx.h linux/irda.h
6106 do :
6107 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6108 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6109 #ifdef HAVE_ASM_TYPES_H
6110 # include <asm/types.h>
6111 #endif
6112 #ifdef HAVE_SYS_SOCKET_H
6113 # include <sys/socket.h>
6114 #endif
6115 #ifdef HAVE_LINUX_TYPES_H
6116 # include <linux/types.h>
6117 #endif
6119 eval as_val=\$$as_ac_Header
6120 if test "x$as_val" = x""yes; then :
6121 cat >>confdefs.h <<_ACEOF
6122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6123 _ACEOF
6127 done
6130 for ac_header in mach-o/dyld_images.h
6131 do :
6132 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6133 # include <stdbool.h>
6134 #endif
6135 #ifdef HAVE_STDINT_H
6136 # include <stdint.h>
6137 #endif
6139 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6140 cat >>confdefs.h <<_ACEOF
6141 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6142 _ACEOF
6146 done
6149 for ac_header in resolv.h
6150 do :
6151 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6152 #ifdef HAVE_SYS_SOCKET_H
6153 # include <sys/socket.h>
6154 #endif
6155 #ifdef HAVE_NETINET_IN_H
6156 # include <netinet/in.h>
6157 #endif
6158 #ifdef HAVE_ARPA_NAMESER_H
6159 # include <arpa/nameser.h>
6160 #endif
6162 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6163 cat >>confdefs.h <<_ACEOF
6164 #define HAVE_RESOLV_H 1
6165 _ACEOF
6169 done
6172 for ac_header in ifaddrs.h
6173 do :
6174 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6176 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6177 cat >>confdefs.h <<_ACEOF
6178 #define HAVE_IFADDRS_H 1
6179 _ACEOF
6183 done
6186 for ac_header in ucontext.h
6187 do :
6188 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6190 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6191 cat >>confdefs.h <<_ACEOF
6192 #define HAVE_UCONTEXT_H 1
6193 _ACEOF
6197 done
6200 for ac_header in sys/thr.h
6201 do :
6202 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6203 #ifdef HAVE_UCONTEXT_H
6204 #include <ucontext.h>
6205 #endif
6207 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6208 cat >>confdefs.h <<_ACEOF
6209 #define HAVE_SYS_THR_H 1
6210 _ACEOF
6214 done
6217 for ac_header in pthread_np.h
6218 do :
6219 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6220 #include <pthread.h>
6221 #endif
6223 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6224 cat >>confdefs.h <<_ACEOF
6225 #define HAVE_PTHREAD_NP_H 1
6226 _ACEOF
6230 done
6233 for ac_header in linux/videodev.h
6234 do :
6235 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6236 #include <sys/time.h>
6237 #endif
6238 #include <sys/types.h>
6239 #ifdef HAVE_ASM_TYPES_H
6240 #include <asm/types.h>
6241 #endif
6243 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6244 cat >>confdefs.h <<_ACEOF
6245 #define HAVE_LINUX_VIDEODEV_H 1
6246 _ACEOF
6250 done
6253 for ac_header in linux/capi.h
6254 do :
6255 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6257 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6258 cat >>confdefs.h <<_ACEOF
6259 #define HAVE_LINUX_CAPI_H 1
6260 _ACEOF
6264 done
6268 DLLEXT=""
6270 DLLFLAGS="-D_REENTRANT"
6272 LDSHARED=""
6274 LDDLLFLAGS=""
6276 LIBEXT="so"
6278 IMPLIBEXT="def"
6280 LDRPATH_INSTALL=""
6282 LDRPATH_LOCAL=""
6284 STATIC_IMPLIBEXT="def.a"
6285 # Extract the first word of "ldd", so it can be a program name with args.
6286 set dummy ldd; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_path_LDD+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 case $LDD in
6293 [\\/]* | ?:[\\/]*)
6294 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 as_dummy="/sbin:/usr/sbin:$PATH"
6299 for as_dir in $as_dummy
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6309 done
6310 done
6311 IFS=$as_save_IFS
6313 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6315 esac
6317 LDD=$ac_cv_path_LDD
6318 if test -n "$LDD"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6320 $as_echo "$LDD" >&6; }
6321 else
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6328 case $host_os in
6329 cygwin*|mingw32*)
6330 if test -n "$ac_tool_prefix"; then
6331 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6332 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 if test -n "$DLLTOOL"; then
6339 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 break 2
6352 done
6353 done
6354 IFS=$as_save_IFS
6358 DLLTOOL=$ac_cv_prog_DLLTOOL
6359 if test -n "$DLLTOOL"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6361 $as_echo "$DLLTOOL" >&6; }
6362 else
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6369 if test -z "$ac_cv_prog_DLLTOOL"; then
6370 ac_ct_DLLTOOL=$DLLTOOL
6371 # Extract the first word of "dlltool", so it can be a program name with args.
6372 set dummy dlltool; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 if test -n "$ac_ct_DLLTOOL"; then
6379 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6392 done
6393 done
6394 IFS=$as_save_IFS
6398 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6399 if test -n "$ac_ct_DLLTOOL"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6401 $as_echo "$ac_ct_DLLTOOL" >&6; }
6402 else
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6407 if test "x$ac_ct_DLLTOOL" = x; then
6408 DLLTOOL="false"
6409 else
6410 case $cross_compiling:$ac_tool_warned in
6411 yes:)
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6414 ac_tool_warned=yes ;;
6415 esac
6416 DLLTOOL=$ac_ct_DLLTOOL
6418 else
6419 DLLTOOL="$ac_cv_prog_DLLTOOL"
6422 if test -n "$ac_tool_prefix"; then
6423 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6424 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426 $as_echo_n "checking for $ac_word... " >&6; }
6427 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429 else
6430 if test -n "$DLLWRAP"; then
6431 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6432 else
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 for as_dir in $PATH
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 break 2
6444 done
6445 done
6446 IFS=$as_save_IFS
6450 DLLWRAP=$ac_cv_prog_DLLWRAP
6451 if test -n "$DLLWRAP"; then
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6453 $as_echo "$DLLWRAP" >&6; }
6454 else
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456 $as_echo "no" >&6; }
6461 if test -z "$ac_cv_prog_DLLWRAP"; then
6462 ac_ct_DLLWRAP=$DLLWRAP
6463 # Extract the first word of "dllwrap", so it can be a program name with args.
6464 set dummy dllwrap; ac_word=$2
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466 $as_echo_n "checking for $ac_word... " >&6; }
6467 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 if test -n "$ac_ct_DLLWRAP"; then
6471 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6472 else
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6484 done
6485 done
6486 IFS=$as_save_IFS
6490 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6491 if test -n "$ac_ct_DLLWRAP"; then
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6493 $as_echo "$ac_ct_DLLWRAP" >&6; }
6494 else
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496 $as_echo "no" >&6; }
6499 if test "x$ac_ct_DLLWRAP" = x; then
6500 DLLWRAP="false"
6501 else
6502 case $cross_compiling:$ac_tool_warned in
6503 yes:)
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506 ac_tool_warned=yes ;;
6507 esac
6508 DLLWRAP=$ac_ct_DLLWRAP
6510 else
6511 DLLWRAP="$ac_cv_prog_DLLWRAP"
6514 if test "$DLLWRAP" = "false"; then
6515 LIBEXT="a"
6516 else
6517 LIBEXT="dll"
6519 IMPLIBEXT="a"
6520 STATIC_IMPLIBEXT="a"
6521 enable_iphlpapi=${enable_iphlpapi:-no}
6522 enable_kernel32=${enable_kernel32:-no}
6523 enable_msvcrt=${enable_msvcrt:-no}
6524 enable_ntdll=${enable_ntdll:-no}
6525 enable_ws2_32=${enable_ws2_32:-no}
6526 enable_loader=${enable_loader:-no}
6527 enable_server=${enable_server:-no}
6528 with_x=${with_x:-no}
6529 with_pthread=${with_pthread:-no}
6531 darwin*|macosx*)
6532 DLLEXT=".so"
6533 LIBEXT="dylib"
6534 DLLFLAGS="$DLLFLAGS -fPIC"
6535 LDDLLFLAGS="-bundle -multiply_defined suppress"
6536 LIBWINE_LDFLAGS="-multiply_defined suppress"
6537 LDSHARED="\$(CC) -dynamiclib"
6538 STRIP="$STRIP -x"
6539 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6540 SECURITYLIB="-framework Security -framework CoreFoundation"
6542 COREFOUNDATIONLIB="-framework CoreFoundation"
6544 IOKITLIB="-framework IOKit -framework CoreFoundation"
6546 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6548 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6549 then
6550 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6553 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6554 then
6555 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6558 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6559 then
6560 FRAMEWORK_OPENAL="-framework OpenAL"
6563 cat >>confdefs.h <<_ACEOF
6564 #define HAVE_OPENAL 1
6565 _ACEOF
6567 ac_cv_lib_openal=yes
6569 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6570 then
6571 ac_save_LIBS="$LIBS"
6572 LIBS="$LIBS $IOKITLIB"
6573 for ac_func in IOHIDManagerCreate
6574 do :
6575 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6576 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6577 cat >>confdefs.h <<_ACEOF
6578 #define HAVE_IOHIDMANAGERCREATE 1
6579 _ACEOF
6582 done
6584 LIBS="$ac_save_LIBS"
6586 case $host_cpu in
6587 *powerpc*)
6588 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6589 esac
6590 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6591 then
6592 CARBONLIB="-framework Carbon"
6594 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6596 if test "x$enable_win16" = "xyes"
6597 then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6599 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6600 if test "$cross_compiling" = yes; then :
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6602 $as_echo "cross-compiling, assuming yes" >&6; }
6603 else
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6606 asm(".text\n"
6607 "bad:\tnop;nop\n"
6608 "good:\tnop;nop\n\t"
6609 ".globl _testfunc\n"
6610 "_testfunc:\tcallw good");
6611 extern void testfunc();
6613 main ()
6615 unsigned short *p = (unsigned short *)testfunc;
6616 return p[0] != 0xe866 || p[1] != 0xfffa
6618 return 0;
6620 _ACEOF
6621 if ac_fn_c_try_run "$LINENO"; then :
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6623 $as_echo "yes" >&6; }
6624 else
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6626 $as_echo "no" >&6; }
6627 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
6629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6630 conftest.$ac_objext conftest.beam conftest.$ac_ext
6636 DLLFLAGS="$DLLFLAGS -fPIC"
6637 DLLEXT=".so"
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6639 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6640 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643 ac_wine_try_cflags_saved=$CFLAGS
6644 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6647 void myfunc() {}
6648 _ACEOF
6649 if ac_fn_c_try_link "$LINENO"; then :
6650 ac_cv_c_dll_gnuelf="yes"
6651 else
6652 ac_cv_c_dll_gnuelf="no"
6654 rm -f core conftest.err conftest.$ac_objext \
6655 conftest$ac_exeext conftest.$ac_ext
6656 CFLAGS=$ac_wine_try_cflags_saved
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6659 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6660 if test "$ac_cv_c_dll_gnuelf" = "yes"
6661 then
6662 LDSHARED="\$(CC) -shared"
6663 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6665 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6666 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 ac_wine_try_cflags_saved=$CFLAGS
6670 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6673 int main(int argc, char **argv) { return 0; }
6674 _ACEOF
6675 if ac_fn_c_try_link "$LINENO"; then :
6676 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6677 else
6678 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6680 rm -f core conftest.err conftest.$ac_objext \
6681 conftest$ac_exeext conftest.$ac_ext
6682 CFLAGS=$ac_wine_try_cflags_saved
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6685 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6686 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6687 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6688 else
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6690 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6691 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 ac_wine_try_cflags_saved=$CFLAGS
6695 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 int main(int argc, char **argv) { return 0; }
6699 _ACEOF
6700 if ac_fn_c_try_link "$LINENO"; then :
6701 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6702 else
6703 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6705 rm -f core conftest.err conftest.$ac_objext \
6706 conftest$ac_exeext conftest.$ac_ext
6707 CFLAGS=$ac_wine_try_cflags_saved
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6710 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6711 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6712 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6717 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6718 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 ac_wine_try_cflags_saved=$CFLAGS
6722 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6725 int main(int argc, char **argv) { return 0; }
6726 _ACEOF
6727 if ac_fn_c_try_link "$LINENO"; then :
6728 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6729 else
6730 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6732 rm -f core conftest.err conftest.$ac_objext \
6733 conftest$ac_exeext conftest.$ac_ext
6734 CFLAGS=$ac_wine_try_cflags_saved
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6737 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6738 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6739 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
6743 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6744 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 ac_wine_try_cflags_saved=$CFLAGS
6748 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 int main(int argc, char **argv) { return 0; }
6752 _ACEOF
6753 if ac_fn_c_try_link "$LINENO"; then :
6754 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6755 else
6756 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6758 rm -f core conftest.err conftest.$ac_objext \
6759 conftest$ac_exeext conftest.$ac_ext
6760 CFLAGS=$ac_wine_try_cflags_saved
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6763 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6764 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6765 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6768 echo '{ global: *; };' >conftest.map
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6770 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6771 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 ac_wine_try_cflags_saved=$CFLAGS
6775 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 int main(int argc, char **argv) { return 0; }
6779 _ACEOF
6780 if ac_fn_c_try_link "$LINENO"; then :
6781 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6782 else
6783 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6785 rm -f core conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
6787 CFLAGS=$ac_wine_try_cflags_saved
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6790 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6791 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6792 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6794 rm -f conftest.map
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6797 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6798 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 ac_wine_try_cflags_saved=$CFLAGS
6802 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h. */
6805 int main(int argc, char **argv) { return 0; }
6806 _ACEOF
6807 if ac_fn_c_try_link "$LINENO"; then :
6808 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6809 else
6810 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6812 rm -f core conftest.err conftest.$ac_objext \
6813 conftest$ac_exeext conftest.$ac_ext
6814 CFLAGS=$ac_wine_try_cflags_saved
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6817 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6818 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6819 LDEXECFLAGS="-Wl,--export-dynamic"
6823 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6825 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 ac_wine_try_cflags_saved=$CFLAGS
6830 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6833 int main(int argc, char **argv) { return 0; }
6834 _ACEOF
6835 if ac_fn_c_try_link "$LINENO"; then :
6836 eval "$as_ac_var=yes"
6837 else
6838 eval "$as_ac_var=no"
6840 rm -f core conftest.err conftest.$ac_objext \
6841 conftest$ac_exeext conftest.$ac_ext
6842 CFLAGS=$ac_wine_try_cflags_saved
6844 eval ac_res=\$$as_ac_var
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6846 $as_echo "$ac_res" >&6; }
6847 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6848 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6849 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6850 else
6851 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6853 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 ac_wine_try_cflags_saved=$CFLAGS
6858 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861 int main(int argc, char **argv) { return 0; }
6862 _ACEOF
6863 if ac_fn_c_try_link "$LINENO"; then :
6864 eval "$as_ac_var=yes"
6865 else
6866 eval "$as_ac_var=no"
6868 rm -f core conftest.err conftest.$ac_objext \
6869 conftest$ac_exeext conftest.$ac_ext
6870 CFLAGS=$ac_wine_try_cflags_saved
6872 eval ac_res=\$$as_ac_var
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6874 $as_echo "$ac_res" >&6; }
6875 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6876 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6877 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6882 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6883 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 ac_wine_try_cflags_saved=$CFLAGS
6887 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 int main(int argc, char **argv) { return 0; }
6891 _ACEOF
6892 if ac_fn_c_try_link "$LINENO"; then :
6893 ac_cv_cflags__Wl___enable_new_dtags=yes
6894 else
6895 ac_cv_cflags__Wl___enable_new_dtags=no
6897 rm -f core conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6899 CFLAGS=$ac_wine_try_cflags_saved
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6902 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6903 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6904 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6907 case $host_cpu in
6908 *i[3456789]86* | x86_64)
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6910 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6911 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 ac_wine_try_cflags_saved=$CFLAGS
6915 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6917 /* end confdefs.h. */
6918 int main(int argc, char **argv) { return 0; }
6919 _ACEOF
6920 if ac_fn_c_try_link "$LINENO"; then :
6921 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6922 else
6923 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
6925 rm -f core conftest.err conftest.$ac_objext \
6926 conftest$ac_exeext conftest.$ac_ext
6927 CFLAGS=$ac_wine_try_cflags_saved
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
6930 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
6931 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
6932 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6935 esac
6937 else
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6939 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6940 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 ac_wine_try_cflags_saved=$CFLAGS
6944 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947 void myfunc() {}
6948 _ACEOF
6949 if ac_fn_c_try_link "$LINENO"; then :
6950 ac_cv_c_dll_unixware="yes"
6951 else
6952 ac_cv_c_dll_unixware="no"
6954 rm -f core conftest.err conftest.$ac_objext \
6955 conftest$ac_exeext conftest.$ac_ext
6956 CFLAGS=$ac_wine_try_cflags_saved
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6959 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6960 if test "$ac_cv_c_dll_unixware" = "yes"
6961 then
6962 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6963 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6965 else
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6967 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6968 if test "${ac_cv_c_dll_hpux+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 ac_wine_try_cflags_saved=$CFLAGS
6972 CFLAGS="$CFLAGS -shared"
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975 void myfunc() {}
6976 _ACEOF
6977 if ac_fn_c_try_link "$LINENO"; then :
6978 ac_cv_c_dll_hpux="yes"
6979 else
6980 ac_cv_c_dll_hpux="no"
6982 rm -f core conftest.err conftest.$ac_objext \
6983 conftest$ac_exeext conftest.$ac_ext
6984 CFLAGS=$ac_wine_try_cflags_saved
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
6987 $as_echo "$ac_cv_c_dll_hpux" >&6; }
6988 if test "$ac_cv_c_dll_hpux" = "yes"
6989 then
6990 LIBEXT="sl"
6991 DLLEXT=".sl"
6992 LDDLLFLAGS="-shared -fPIC"
6993 LDSHARED="\$(CC) -shared"
6998 esac
7000 enable_winequartz_drv=${enable_winequartz_drv:-no}
7002 if test "$LIBEXT" = "a"; then
7003 as_fn_error "could not find a way to build shared libraries.
7004 It is currently not possible to build Wine without shared library
7005 (.so) support to allow transparent switch between .so and .dll files.
7006 If you are using Linux, you will need a newer binutils.
7007 " "$LINENO" 5
7010 if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll"
7011 then
7012 case "$host_cpu" in
7013 i[3456789]86*)
7014 ac_prefix_list="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 " ;;
7015 x86_64)
7016 ac_prefix_list="x86_64-pc-mingw32-gcc x86_64-w64-mingw32-gcc " ;;
7018 ac_prefix_list="" ;;
7019 esac
7020 for ac_prog in $ac_prefix_list
7022 # Extract the first word of "$ac_prog", so it can be a program name with args.
7023 set dummy $ac_prog; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 if test -n "$CROSSCC"; then
7030 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7031 else
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039 ac_cv_prog_CROSSCC="$ac_prog"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7041 break 2
7043 done
7044 done
7045 IFS=$as_save_IFS
7049 CROSSCC=$ac_cv_prog_CROSSCC
7050 if test -n "$CROSSCC"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7052 $as_echo "$CROSSCC" >&6; }
7053 else
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 $as_echo "no" >&6; }
7059 test -n "$CROSSCC" && break
7060 done
7061 test -n "$CROSSCC" || CROSSCC="false"
7063 if test "$CROSSCC" != "false"
7064 then
7065 CROSSTEST="\$(CROSSTEST)"
7067 set x $CROSSCC
7068 shift
7069 target=""
7070 while test $# -ge 1
7072 case "$1" in
7073 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7074 esac
7075 shift
7076 done
7077 if test -n "$target"
7078 then
7079 CROSSTARGET="$target"
7086 if test "$ac_cv_header_pthread_h" = "yes"
7087 then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7089 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7090 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 ac_check_lib_save_LIBS=$LIBS
7094 LIBS="-lpthread $LIBS"
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7098 /* Override any GCC internal prototype to avoid an error.
7099 Use char because int might match the return type of a GCC
7100 builtin and then its argument prototype would still apply. */
7101 #ifdef __cplusplus
7102 extern "C"
7103 #endif
7104 char pthread_create ();
7106 main ()
7108 return pthread_create ();
7110 return 0;
7112 _ACEOF
7113 if ac_fn_c_try_link "$LINENO"; then :
7114 ac_cv_lib_pthread_pthread_create=yes
7115 else
7116 ac_cv_lib_pthread_pthread_create=no
7118 rm -f core conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext conftest.$ac_ext
7120 LIBS=$ac_check_lib_save_LIBS
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7123 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7124 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7125 LIBPTHREAD="-lpthread"
7130 if test "x$LIBPTHREAD" = "x"; then :
7131 case "x$with_pthread" in
7132 xno) ;;
7133 *) as_fn_error "pthread ${notice_platform}development files not found.
7134 Wine cannot support threads without libpthread.
7135 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7136 esac
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7141 $as_echo_n "checking for X... " >&6; }
7144 # Check whether --with-x was given.
7145 if test "${with_x+set}" = set; then :
7146 withval=$with_x;
7149 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7150 if test "x$with_x" = xno; then
7151 # The user explicitly disabled X.
7152 have_x=disabled
7153 else
7154 case $x_includes,$x_libraries in #(
7155 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7156 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 # One or both of the vars are not set, and there is no cached value.
7160 ac_x_includes=no ac_x_libraries=no
7161 rm -f -r conftest.dir
7162 if mkdir conftest.dir; then
7163 cd conftest.dir
7164 cat >Imakefile <<'_ACEOF'
7165 incroot:
7166 @echo incroot='${INCROOT}'
7167 usrlibdir:
7168 @echo usrlibdir='${USRLIBDIR}'
7169 libdir:
7170 @echo libdir='${LIBDIR}'
7171 _ACEOF
7172 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7173 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7174 for ac_var in incroot usrlibdir libdir; do
7175 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7176 done
7177 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7178 for ac_extension in a so sl dylib la dll; do
7179 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7180 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7181 ac_im_usrlibdir=$ac_im_libdir; break
7183 done
7184 # Screen out bogus values from the imake configuration. They are
7185 # bogus both because they are the default anyway, and because
7186 # using them would break gcc on systems where it needs fixed includes.
7187 case $ac_im_incroot in
7188 /usr/include) ac_x_includes= ;;
7189 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7190 esac
7191 case $ac_im_usrlibdir in
7192 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7193 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7194 esac
7196 cd ..
7197 rm -f -r conftest.dir
7200 # Standard set of common directories for X headers.
7201 # Check X11 before X11Rn because it is often a symlink to the current release.
7202 ac_x_header_dirs='
7203 /usr/X11/include
7204 /usr/X11R7/include
7205 /usr/X11R6/include
7206 /usr/X11R5/include
7207 /usr/X11R4/include
7209 /usr/include/X11
7210 /usr/include/X11R7
7211 /usr/include/X11R6
7212 /usr/include/X11R5
7213 /usr/include/X11R4
7215 /usr/local/X11/include
7216 /usr/local/X11R7/include
7217 /usr/local/X11R6/include
7218 /usr/local/X11R5/include
7219 /usr/local/X11R4/include
7221 /usr/local/include/X11
7222 /usr/local/include/X11R7
7223 /usr/local/include/X11R6
7224 /usr/local/include/X11R5
7225 /usr/local/include/X11R4
7227 /usr/X386/include
7228 /usr/x386/include
7229 /usr/XFree86/include/X11
7231 /usr/include
7232 /usr/local/include
7233 /usr/unsupported/include
7234 /usr/athena/include
7235 /usr/local/x11r5/include
7236 /usr/lpp/Xamples/include
7238 /usr/openwin/include
7239 /usr/openwin/share/include'
7241 if test "$ac_x_includes" = no; then
7242 # Guess where to find include files, by looking for Xlib.h.
7243 # First, try using that file with no special directory specified.
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7246 #include <X11/Xlib.h>
7247 _ACEOF
7248 if ac_fn_c_try_cpp "$LINENO"; then :
7249 # We can compile using X headers with no special include directory.
7250 ac_x_includes=
7251 else
7252 for ac_dir in $ac_x_header_dirs; do
7253 if test -r "$ac_dir/X11/Xlib.h"; then
7254 ac_x_includes=$ac_dir
7255 break
7257 done
7259 rm -f conftest.err conftest.$ac_ext
7260 fi # $ac_x_includes = no
7262 if test "$ac_x_libraries" = no; then
7263 # Check for the libraries.
7264 # See if we find them without any special options.
7265 # Don't add to $LIBS permanently.
7266 ac_save_LIBS=$LIBS
7267 LIBS="-lX11 $LIBS"
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7270 #include <X11/Xlib.h>
7272 main ()
7274 XrmInitialize ()
7276 return 0;
7278 _ACEOF
7279 if ac_fn_c_try_link "$LINENO"; then :
7280 LIBS=$ac_save_LIBS
7281 # We can link X programs with no special library path.
7282 ac_x_libraries=
7283 else
7284 LIBS=$ac_save_LIBS
7285 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7287 # Don't even attempt the hair of trying to link an X program!
7288 for ac_extension in a so sl dylib la dll; do
7289 if test -r "$ac_dir/libX11.$ac_extension"; then
7290 ac_x_libraries=$ac_dir
7291 break 2
7293 done
7294 done
7296 rm -f core conftest.err conftest.$ac_objext \
7297 conftest$ac_exeext conftest.$ac_ext
7298 fi # $ac_x_libraries = no
7300 case $ac_x_includes,$ac_x_libraries in #(
7301 no,* | *,no | *\'*)
7302 # Didn't find X, or a directory has "'" in its name.
7303 ac_cv_have_x="have_x=no";; #(
7305 # Record where we found X for the cache.
7306 ac_cv_have_x="have_x=yes\
7307 ac_x_includes='$ac_x_includes'\
7308 ac_x_libraries='$ac_x_libraries'"
7309 esac
7311 ;; #(
7312 *) have_x=yes;;
7313 esac
7314 eval "$ac_cv_have_x"
7315 fi # $with_x != no
7317 if test "$have_x" != yes; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7319 $as_echo "$have_x" >&6; }
7320 no_x=yes
7321 else
7322 # If each of the values was on the command line, it overrides each guess.
7323 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7324 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7325 # Update the cache value to reflect the command line values.
7326 ac_cv_have_x="have_x=yes\
7327 ac_x_includes='$x_includes'\
7328 ac_x_libraries='$x_libraries'"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7330 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7333 if test "$no_x" = yes; then
7334 # Not all programs may use this symbol, but it does not hurt to define it.
7336 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7338 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7339 else
7340 if test -n "$x_includes"; then
7341 X_CFLAGS="$X_CFLAGS -I$x_includes"
7344 # It would also be nice to do this for all -L options, not just this one.
7345 if test -n "$x_libraries"; then
7346 X_LIBS="$X_LIBS -L$x_libraries"
7347 # For Solaris; some versions of Sun CC require a space after -R and
7348 # others require no space. Words are not sufficient . . . .
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7350 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7351 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7352 ac_xsave_c_werror_flag=$ac_c_werror_flag
7353 ac_c_werror_flag=yes
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7358 main ()
7362 return 0;
7364 _ACEOF
7365 if ac_fn_c_try_link "$LINENO"; then :
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 X_LIBS="$X_LIBS -R$x_libraries"
7369 else
7370 LIBS="$ac_xsave_LIBS -R $x_libraries"
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7375 main ()
7379 return 0;
7381 _ACEOF
7382 if ac_fn_c_try_link "$LINENO"; then :
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7384 $as_echo "yes" >&6; }
7385 X_LIBS="$X_LIBS -R $x_libraries"
7386 else
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7388 $as_echo "neither works" >&6; }
7390 rm -f core conftest.err conftest.$ac_objext \
7391 conftest$ac_exeext conftest.$ac_ext
7393 rm -f core conftest.err conftest.$ac_objext \
7394 conftest$ac_exeext conftest.$ac_ext
7395 ac_c_werror_flag=$ac_xsave_c_werror_flag
7396 LIBS=$ac_xsave_LIBS
7399 # Check for system-dependent libraries X programs must link with.
7400 # Do this before checking for the system-independent R6 libraries
7401 # (-lICE), since we may need -lsocket or whatever for X linking.
7403 if test "$ISC" = yes; then
7404 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7405 else
7406 # Martyn Johnson says this is needed for Ultrix, if the X
7407 # libraries were built with DECnet support. And Karl Berry says
7408 # the Alpha needs dnet_stub (dnet does not exist).
7409 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7413 /* Override any GCC internal prototype to avoid an error.
7414 Use char because int might match the return type of a GCC
7415 builtin and then its argument prototype would still apply. */
7416 #ifdef __cplusplus
7417 extern "C"
7418 #endif
7419 char XOpenDisplay ();
7421 main ()
7423 return XOpenDisplay ();
7425 return 0;
7427 _ACEOF
7428 if ac_fn_c_try_link "$LINENO"; then :
7430 else
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7432 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7433 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 ac_check_lib_save_LIBS=$LIBS
7437 LIBS="-ldnet $LIBS"
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7441 /* Override any GCC internal prototype to avoid an error.
7442 Use char because int might match the return type of a GCC
7443 builtin and then its argument prototype would still apply. */
7444 #ifdef __cplusplus
7445 extern "C"
7446 #endif
7447 char dnet_ntoa ();
7449 main ()
7451 return dnet_ntoa ();
7453 return 0;
7455 _ACEOF
7456 if ac_fn_c_try_link "$LINENO"; then :
7457 ac_cv_lib_dnet_dnet_ntoa=yes
7458 else
7459 ac_cv_lib_dnet_dnet_ntoa=no
7461 rm -f core conftest.err conftest.$ac_objext \
7462 conftest$ac_exeext conftest.$ac_ext
7463 LIBS=$ac_check_lib_save_LIBS
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7466 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7467 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7468 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7471 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7473 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7474 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 ac_check_lib_save_LIBS=$LIBS
7478 LIBS="-ldnet_stub $LIBS"
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7482 /* Override any GCC internal prototype to avoid an error.
7483 Use char because int might match the return type of a GCC
7484 builtin and then its argument prototype would still apply. */
7485 #ifdef __cplusplus
7486 extern "C"
7487 #endif
7488 char dnet_ntoa ();
7490 main ()
7492 return dnet_ntoa ();
7494 return 0;
7496 _ACEOF
7497 if ac_fn_c_try_link "$LINENO"; then :
7498 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7499 else
7500 ac_cv_lib_dnet_stub_dnet_ntoa=no
7502 rm -f core conftest.err conftest.$ac_objext \
7503 conftest$ac_exeext conftest.$ac_ext
7504 LIBS=$ac_check_lib_save_LIBS
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7507 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7508 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7509 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7514 rm -f core conftest.err conftest.$ac_objext \
7515 conftest$ac_exeext conftest.$ac_ext
7516 LIBS="$ac_xsave_LIBS"
7518 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7519 # to get the SysV transport functions.
7520 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7521 # needs -lnsl.
7522 # The nsl library prevents programs from opening the X display
7523 # on Irix 5.2, according to T.E. Dickey.
7524 # The functions gethostbyname, getservbyname, and inet_addr are
7525 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7526 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7527 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7531 if test $ac_cv_func_gethostbyname = no; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7533 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7534 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 ac_check_lib_save_LIBS=$LIBS
7538 LIBS="-lnsl $LIBS"
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7542 /* Override any GCC internal prototype to avoid an error.
7543 Use char because int might match the return type of a GCC
7544 builtin and then its argument prototype would still apply. */
7545 #ifdef __cplusplus
7546 extern "C"
7547 #endif
7548 char gethostbyname ();
7550 main ()
7552 return gethostbyname ();
7554 return 0;
7556 _ACEOF
7557 if ac_fn_c_try_link "$LINENO"; then :
7558 ac_cv_lib_nsl_gethostbyname=yes
7559 else
7560 ac_cv_lib_nsl_gethostbyname=no
7562 rm -f core conftest.err conftest.$ac_objext \
7563 conftest$ac_exeext conftest.$ac_ext
7564 LIBS=$ac_check_lib_save_LIBS
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7567 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7568 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7569 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7572 if test $ac_cv_lib_nsl_gethostbyname = no; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7574 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7575 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 ac_check_lib_save_LIBS=$LIBS
7579 LIBS="-lbsd $LIBS"
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7583 /* Override any GCC internal prototype to avoid an error.
7584 Use char because int might match the return type of a GCC
7585 builtin and then its argument prototype would still apply. */
7586 #ifdef __cplusplus
7587 extern "C"
7588 #endif
7589 char gethostbyname ();
7591 main ()
7593 return gethostbyname ();
7595 return 0;
7597 _ACEOF
7598 if ac_fn_c_try_link "$LINENO"; then :
7599 ac_cv_lib_bsd_gethostbyname=yes
7600 else
7601 ac_cv_lib_bsd_gethostbyname=no
7603 rm -f core conftest.err conftest.$ac_objext \
7604 conftest$ac_exeext conftest.$ac_ext
7605 LIBS=$ac_check_lib_save_LIBS
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7608 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7609 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7610 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7616 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7617 # socket/setsockopt and other routines are undefined under SCO ODT
7618 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7619 # on later versions), says Simon Leinen: it contains gethostby*
7620 # variants that don't use the name server (or something). -lsocket
7621 # must be given before -lnsl if both are needed. We assume that
7622 # if connect needs -lnsl, so does gethostbyname.
7623 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7624 if test "x$ac_cv_func_connect" = x""yes; then :
7628 if test $ac_cv_func_connect = no; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7630 $as_echo_n "checking for connect in -lsocket... " >&6; }
7631 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 ac_check_lib_save_LIBS=$LIBS
7635 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7639 /* Override any GCC internal prototype to avoid an error.
7640 Use char because int might match the return type of a GCC
7641 builtin and then its argument prototype would still apply. */
7642 #ifdef __cplusplus
7643 extern "C"
7644 #endif
7645 char connect ();
7647 main ()
7649 return connect ();
7651 return 0;
7653 _ACEOF
7654 if ac_fn_c_try_link "$LINENO"; then :
7655 ac_cv_lib_socket_connect=yes
7656 else
7657 ac_cv_lib_socket_connect=no
7659 rm -f core conftest.err conftest.$ac_objext \
7660 conftest$ac_exeext conftest.$ac_ext
7661 LIBS=$ac_check_lib_save_LIBS
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7664 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7665 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7666 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7671 # Guillermo Gomez says -lposix is necessary on A/UX.
7672 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7673 if test "x$ac_cv_func_remove" = x""yes; then :
7677 if test $ac_cv_func_remove = no; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7679 $as_echo_n "checking for remove in -lposix... " >&6; }
7680 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7681 $as_echo_n "(cached) " >&6
7682 else
7683 ac_check_lib_save_LIBS=$LIBS
7684 LIBS="-lposix $LIBS"
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7688 /* Override any GCC internal prototype to avoid an error.
7689 Use char because int might match the return type of a GCC
7690 builtin and then its argument prototype would still apply. */
7691 #ifdef __cplusplus
7692 extern "C"
7693 #endif
7694 char remove ();
7696 main ()
7698 return remove ();
7700 return 0;
7702 _ACEOF
7703 if ac_fn_c_try_link "$LINENO"; then :
7704 ac_cv_lib_posix_remove=yes
7705 else
7706 ac_cv_lib_posix_remove=no
7708 rm -f core conftest.err conftest.$ac_objext \
7709 conftest$ac_exeext conftest.$ac_ext
7710 LIBS=$ac_check_lib_save_LIBS
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7713 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7714 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7715 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7720 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7721 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7722 if test "x$ac_cv_func_shmat" = x""yes; then :
7726 if test $ac_cv_func_shmat = no; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7728 $as_echo_n "checking for shmat in -lipc... " >&6; }
7729 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7730 $as_echo_n "(cached) " >&6
7731 else
7732 ac_check_lib_save_LIBS=$LIBS
7733 LIBS="-lipc $LIBS"
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7737 /* Override any GCC internal prototype to avoid an error.
7738 Use char because int might match the return type of a GCC
7739 builtin and then its argument prototype would still apply. */
7740 #ifdef __cplusplus
7741 extern "C"
7742 #endif
7743 char shmat ();
7745 main ()
7747 return shmat ();
7749 return 0;
7751 _ACEOF
7752 if ac_fn_c_try_link "$LINENO"; then :
7753 ac_cv_lib_ipc_shmat=yes
7754 else
7755 ac_cv_lib_ipc_shmat=no
7757 rm -f core conftest.err conftest.$ac_objext \
7758 conftest$ac_exeext conftest.$ac_ext
7759 LIBS=$ac_check_lib_save_LIBS
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7762 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7763 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7764 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7770 # Check for libraries that X11R6 Xt/Xaw programs need.
7771 ac_save_LDFLAGS=$LDFLAGS
7772 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7773 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7774 # check for ICE first), but we must link in the order -lSM -lICE or
7775 # we get undefined symbols. So assume we have SM if we have ICE.
7776 # These have to be linked with before -lX11, unlike the other
7777 # libraries we check for below, so use a different variable.
7778 # John Interrante, Karl Berry
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7780 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7781 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7782 $as_echo_n "(cached) " >&6
7783 else
7784 ac_check_lib_save_LIBS=$LIBS
7785 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7789 /* Override any GCC internal prototype to avoid an error.
7790 Use char because int might match the return type of a GCC
7791 builtin and then its argument prototype would still apply. */
7792 #ifdef __cplusplus
7793 extern "C"
7794 #endif
7795 char IceConnectionNumber ();
7797 main ()
7799 return IceConnectionNumber ();
7801 return 0;
7803 _ACEOF
7804 if ac_fn_c_try_link "$LINENO"; then :
7805 ac_cv_lib_ICE_IceConnectionNumber=yes
7806 else
7807 ac_cv_lib_ICE_IceConnectionNumber=no
7809 rm -f core conftest.err conftest.$ac_objext \
7810 conftest$ac_exeext conftest.$ac_ext
7811 LIBS=$ac_check_lib_save_LIBS
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7814 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7815 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7816 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7819 LDFLAGS=$ac_save_LDFLAGS
7824 if test "$have_x" = "yes"
7825 then
7826 XLIB="-lX11"
7827 ac_save_CPPFLAGS="$CPPFLAGS"
7828 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7831 $as_echo_n "checking for -lX11... " >&6; }
7832 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 ac_check_soname_save_LIBS=$LIBS
7836 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7840 /* Override any GCC internal prototype to avoid an error.
7841 Use char because int might match the return type of a GCC
7842 builtin and then its argument prototype would still apply. */
7843 #ifdef __cplusplus
7844 extern "C"
7845 #endif
7846 char XCreateWindow ();
7848 main ()
7850 return XCreateWindow ();
7852 return 0;
7854 _ACEOF
7855 if ac_fn_c_try_link "$LINENO"; then :
7856 case "$LIBEXT" in
7857 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7858 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'` ;;
7859 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7860 esac
7862 rm -f core conftest.err conftest.$ac_objext \
7863 conftest$ac_exeext conftest.$ac_ext
7864 LIBS=$ac_check_soname_save_LIBS
7866 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7868 $as_echo "not found" >&6; }
7870 else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7872 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7874 cat >>confdefs.h <<_ACEOF
7875 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7876 _ACEOF
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7881 $as_echo_n "checking for -lXext... " >&6; }
7882 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 ac_check_soname_save_LIBS=$LIBS
7886 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7890 /* Override any GCC internal prototype to avoid an error.
7891 Use char because int might match the return type of a GCC
7892 builtin and then its argument prototype would still apply. */
7893 #ifdef __cplusplus
7894 extern "C"
7895 #endif
7896 char XextCreateExtension ();
7898 main ()
7900 return XextCreateExtension ();
7902 return 0;
7904 _ACEOF
7905 if ac_fn_c_try_link "$LINENO"; then :
7906 case "$LIBEXT" in
7907 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7908 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'` ;;
7909 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7910 esac
7912 rm -f core conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914 LIBS=$ac_check_soname_save_LIBS
7916 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7918 $as_echo "not found" >&6; }
7920 else
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7922 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7924 cat >>confdefs.h <<_ACEOF
7925 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7926 _ACEOF
7928 XLIB="-lXext $XLIB"
7931 for ac_header in X11/Xlib.h \
7932 X11/XKBlib.h \
7933 X11/Xutil.h \
7934 X11/Xcursor/Xcursor.h \
7935 X11/extensions/shape.h \
7936 X11/extensions/XInput.h \
7937 X11/extensions/XShm.h \
7938 X11/extensions/Xcomposite.h \
7939 X11/extensions/Xinerama.h \
7940 X11/extensions/Xrandr.h \
7941 X11/extensions/Xrender.h \
7942 X11/extensions/xf86vmode.h \
7943 X11/extensions/xf86vmproto.h
7944 do :
7945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7946 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
7947 # include <X11/Xlib.h>
7948 #endif
7949 #ifdef HAVE_X11_XUTIL_H
7950 # include <X11/Xutil.h>
7951 #endif
7953 eval as_val=\$$as_ac_Header
7954 if test "x$as_val" = x""yes; then :
7955 cat >>confdefs.h <<_ACEOF
7956 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7957 _ACEOF
7961 done
7964 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7965 then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
7967 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
7968 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 ac_check_lib_save_LIBS=$LIBS
7972 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7976 /* Override any GCC internal prototype to avoid an error.
7977 Use char because int might match the return type of a GCC
7978 builtin and then its argument prototype would still apply. */
7979 #ifdef __cplusplus
7980 extern "C"
7981 #endif
7982 char XkbQueryExtension ();
7984 main ()
7986 return XkbQueryExtension ();
7988 return 0;
7990 _ACEOF
7991 if ac_fn_c_try_link "$LINENO"; then :
7992 ac_cv_lib_X11_XkbQueryExtension=yes
7993 else
7994 ac_cv_lib_X11_XkbQueryExtension=no
7996 rm -f core conftest.err conftest.$ac_objext \
7997 conftest$ac_exeext conftest.$ac_ext
7998 LIBS=$ac_check_lib_save_LIBS
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8001 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8002 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
8004 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8010 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8011 then
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8013 $as_echo_n "checking for -lXcursor... " >&6; }
8014 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
8016 else
8017 ac_check_soname_save_LIBS=$LIBS
8018 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8022 /* Override any GCC internal prototype to avoid an error.
8023 Use char because int might match the return type of a GCC
8024 builtin and then its argument prototype would still apply. */
8025 #ifdef __cplusplus
8026 extern "C"
8027 #endif
8028 char XcursorImageLoadCursor ();
8030 main ()
8032 return XcursorImageLoadCursor ();
8034 return 0;
8036 _ACEOF
8037 if ac_fn_c_try_link "$LINENO"; then :
8038 case "$LIBEXT" in
8039 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8040 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'` ;;
8041 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8042 esac
8044 rm -f core conftest.err conftest.$ac_objext \
8045 conftest$ac_exeext conftest.$ac_ext
8046 LIBS=$ac_check_soname_save_LIBS
8048 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8050 $as_echo "not found" >&6; }
8052 else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8054 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8056 cat >>confdefs.h <<_ACEOF
8057 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8058 _ACEOF
8063 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8064 case "x$with_xcursor" in
8065 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8066 xno) ;;
8067 *) as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8068 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8069 esac
8072 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8073 then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8075 $as_echo_n "checking for -lXi... " >&6; }
8076 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
8078 else
8079 ac_check_soname_save_LIBS=$LIBS
8080 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8084 /* Override any GCC internal prototype to avoid an error.
8085 Use char because int might match the return type of a GCC
8086 builtin and then its argument prototype would still apply. */
8087 #ifdef __cplusplus
8088 extern "C"
8089 #endif
8090 char XOpenDevice ();
8092 main ()
8094 return XOpenDevice ();
8096 return 0;
8098 _ACEOF
8099 if ac_fn_c_try_link "$LINENO"; then :
8100 case "$LIBEXT" in
8101 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8102 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'` ;;
8103 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8104 esac
8106 rm -f core conftest.err conftest.$ac_objext \
8107 conftest$ac_exeext conftest.$ac_ext
8108 LIBS=$ac_check_soname_save_LIBS
8110 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8112 $as_echo "not found" >&6; }
8114 else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8116 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8118 cat >>confdefs.h <<_ACEOF
8119 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8120 _ACEOF
8125 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8126 case "x$with_xinput" in
8127 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8128 xno) ;;
8129 *) as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8130 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8131 esac
8134 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8135 then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8137 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8138 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8139 $as_echo_n "(cached) " >&6
8140 else
8141 ac_check_lib_save_LIBS=$LIBS
8142 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8146 /* Override any GCC internal prototype to avoid an error.
8147 Use char because int might match the return type of a GCC
8148 builtin and then its argument prototype would still apply. */
8149 #ifdef __cplusplus
8150 extern "C"
8151 #endif
8152 char XShmQueryExtension ();
8154 main ()
8156 return XShmQueryExtension ();
8158 return 0;
8160 _ACEOF
8161 if ac_fn_c_try_link "$LINENO"; then :
8162 ac_cv_lib_Xext_XShmQueryExtension=yes
8163 else
8164 ac_cv_lib_Xext_XShmQueryExtension=no
8166 rm -f core conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8168 LIBS=$ac_check_lib_save_LIBS
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8171 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8172 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8174 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8179 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8180 case "x$with_xshm" in
8181 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8182 xno) ;;
8183 *) as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8184 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8185 esac
8188 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8189 then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8191 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8192 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8193 $as_echo_n "(cached) " >&6
8194 else
8195 ac_check_lib_save_LIBS=$LIBS
8196 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8200 /* Override any GCC internal prototype to avoid an error.
8201 Use char because int might match the return type of a GCC
8202 builtin and then its argument prototype would still apply. */
8203 #ifdef __cplusplus
8204 extern "C"
8205 #endif
8206 char XShapeQueryExtension ();
8208 main ()
8210 return XShapeQueryExtension ();
8212 return 0;
8214 _ACEOF
8215 if ac_fn_c_try_link "$LINENO"; then :
8216 ac_cv_lib_Xext_XShapeQueryExtension=yes
8217 else
8218 ac_cv_lib_Xext_XShapeQueryExtension=no
8220 rm -f core conftest.err conftest.$ac_objext \
8221 conftest$ac_exeext conftest.$ac_ext
8222 LIBS=$ac_check_lib_save_LIBS
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8225 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8226 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8228 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8233 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8234 case "x$with_xshape" in
8235 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8236 xno) ;;
8237 *) as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8238 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8239 esac
8242 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8243 then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8245 $as_echo_n "checking for -lXxf86vm... " >&6; }
8246 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8247 $as_echo_n "(cached) " >&6
8248 else
8249 ac_check_soname_save_LIBS=$LIBS
8250 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8254 /* Override any GCC internal prototype to avoid an error.
8255 Use char because int might match the return type of a GCC
8256 builtin and then its argument prototype would still apply. */
8257 #ifdef __cplusplus
8258 extern "C"
8259 #endif
8260 char XF86VidModeQueryExtension ();
8262 main ()
8264 return XF86VidModeQueryExtension ();
8266 return 0;
8268 _ACEOF
8269 if ac_fn_c_try_link "$LINENO"; then :
8270 case "$LIBEXT" in
8271 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8272 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'` ;;
8273 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8274 esac
8276 rm -f core conftest.err conftest.$ac_objext \
8277 conftest$ac_exeext conftest.$ac_ext
8278 LIBS=$ac_check_soname_save_LIBS
8280 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8282 $as_echo "not found" >&6; }
8284 else
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8286 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8288 cat >>confdefs.h <<_ACEOF
8289 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8290 _ACEOF
8295 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8296 case "x$with_xxf86vm" in
8297 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8298 xno) ;;
8299 *) as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8300 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8301 esac
8304 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"
8305 then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8307 $as_echo_n "checking for -lXrender... " >&6; }
8308 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 ac_check_soname_save_LIBS=$LIBS
8312 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h. */
8316 /* Override any GCC internal prototype to avoid an error.
8317 Use char because int might match the return type of a GCC
8318 builtin and then its argument prototype would still apply. */
8319 #ifdef __cplusplus
8320 extern "C"
8321 #endif
8322 char XRenderQueryExtension ();
8324 main ()
8326 return XRenderQueryExtension ();
8328 return 0;
8330 _ACEOF
8331 if ac_fn_c_try_link "$LINENO"; then :
8332 case "$LIBEXT" in
8333 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8334 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'` ;;
8335 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8336 esac
8338 rm -f core conftest.err conftest.$ac_objext \
8339 conftest$ac_exeext conftest.$ac_ext
8340 LIBS=$ac_check_soname_save_LIBS
8342 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8344 $as_echo "not found" >&6; }
8346 else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8348 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8350 cat >>confdefs.h <<_ACEOF
8351 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8352 _ACEOF
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8355 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8356 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 ac_check_lib_save_LIBS=$LIBS
8360 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8364 /* Override any GCC internal prototype to avoid an error.
8365 Use char because int might match the return type of a GCC
8366 builtin and then its argument prototype would still apply. */
8367 #ifdef __cplusplus
8368 extern "C"
8369 #endif
8370 char XRenderSetPictureTransform ();
8372 main ()
8374 return XRenderSetPictureTransform ();
8376 return 0;
8378 _ACEOF
8379 if ac_fn_c_try_link "$LINENO"; then :
8380 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8381 else
8382 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8384 rm -f core conftest.err conftest.$ac_objext \
8385 conftest$ac_exeext conftest.$ac_ext
8386 LIBS=$ac_check_lib_save_LIBS
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8389 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8390 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8392 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8399 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8400 case "x$with_xrender" in
8401 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8402 xno) ;;
8403 *) as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8404 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8405 esac
8408 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8409 then
8410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411 /* end confdefs.h. */
8412 #include <X11/Xlib.h>
8413 #include <X11/extensions/Xrandr.h>
8415 main ()
8417 static typeof(XRRSetScreenConfigAndRate) * func;
8419 return 0;
8421 _ACEOF
8422 if ac_fn_c_try_compile "$LINENO"; then :
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8424 $as_echo_n "checking for -lXrandr... " >&6; }
8425 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 ac_check_soname_save_LIBS=$LIBS
8429 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8433 /* Override any GCC internal prototype to avoid an error.
8434 Use char because int might match the return type of a GCC
8435 builtin and then its argument prototype would still apply. */
8436 #ifdef __cplusplus
8437 extern "C"
8438 #endif
8439 char XRRQueryExtension ();
8441 main ()
8443 return XRRQueryExtension ();
8445 return 0;
8447 _ACEOF
8448 if ac_fn_c_try_link "$LINENO"; then :
8449 case "$LIBEXT" in
8450 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8451 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'` ;;
8452 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8453 esac
8455 rm -f core conftest.err conftest.$ac_objext \
8456 conftest$ac_exeext conftest.$ac_ext
8457 LIBS=$ac_check_soname_save_LIBS
8459 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8461 $as_echo "not found" >&6; }
8463 else
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8465 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8467 cat >>confdefs.h <<_ACEOF
8468 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8469 _ACEOF
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8477 case "x$with_xrandr" in
8478 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8479 xno) ;;
8480 *) as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8481 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8482 esac
8485 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8486 then
8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8489 #include <X11/Xlib.h>
8490 #include <X11/extensions/Xinerama.h>
8492 main ()
8494 static typeof(XineramaQueryScreens) * func;
8496 return 0;
8498 _ACEOF
8499 if ac_fn_c_try_compile "$LINENO"; then :
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8501 $as_echo_n "checking for -lXinerama... " >&6; }
8502 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 ac_check_soname_save_LIBS=$LIBS
8506 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8510 /* Override any GCC internal prototype to avoid an error.
8511 Use char because int might match the return type of a GCC
8512 builtin and then its argument prototype would still apply. */
8513 #ifdef __cplusplus
8514 extern "C"
8515 #endif
8516 char XineramaQueryScreens ();
8518 main ()
8520 return XineramaQueryScreens ();
8522 return 0;
8524 _ACEOF
8525 if ac_fn_c_try_link "$LINENO"; then :
8526 case "$LIBEXT" in
8527 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8528 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'` ;;
8529 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8530 esac
8532 rm -f core conftest.err conftest.$ac_objext \
8533 conftest$ac_exeext conftest.$ac_ext
8534 LIBS=$ac_check_soname_save_LIBS
8536 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8538 $as_echo "not found" >&6; }
8540 else
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8542 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8544 cat >>confdefs.h <<_ACEOF
8545 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8546 _ACEOF
8551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8553 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8554 case "x$with_xinerama" in
8555 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8556 xno) ;;
8557 *) as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8558 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8559 esac
8562 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8563 then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8565 $as_echo_n "checking for -lXcomposite... " >&6; }
8566 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 ac_check_soname_save_LIBS=$LIBS
8570 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8574 /* Override any GCC internal prototype to avoid an error.
8575 Use char because int might match the return type of a GCC
8576 builtin and then its argument prototype would still apply. */
8577 #ifdef __cplusplus
8578 extern "C"
8579 #endif
8580 char XCompositeRedirectWindow ();
8582 main ()
8584 return XCompositeRedirectWindow ();
8586 return 0;
8588 _ACEOF
8589 if ac_fn_c_try_link "$LINENO"; then :
8590 case "$LIBEXT" in
8591 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8592 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'` ;;
8593 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8594 esac
8596 rm -f core conftest.err conftest.$ac_objext \
8597 conftest$ac_exeext conftest.$ac_ext
8598 LIBS=$ac_check_soname_save_LIBS
8600 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8602 $as_echo "not found" >&6; }
8604 else
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8606 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8608 cat >>confdefs.h <<_ACEOF
8609 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8610 _ACEOF
8615 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8616 case "x$with_xcomposite" in
8617 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8618 xno) ;;
8619 *) as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8620 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8621 esac
8624 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8625 #include <X11/Xlib.h>
8626 #endif
8628 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8630 cat >>confdefs.h <<_ACEOF
8631 #define HAVE_XICCALLBACK_CALLBACK 1
8632 _ACEOF
8639 opengl_msg=""
8640 if test "x$with_opengl" != "xno"
8641 then
8642 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8643 do :
8644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8645 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8646 # include <GL/glx.h>
8647 #endif
8649 eval as_val=\$$as_ac_Header
8650 if test "x$as_val" = x""yes; then :
8651 cat >>confdefs.h <<_ACEOF
8652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8653 _ACEOF
8657 done
8659 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8660 then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8662 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8663 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8664 $as_echo_n "(cached) " >&6
8665 else
8666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8668 #include <GL/gl.h>
8670 main ()
8672 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8674 return 0;
8676 _ACEOF
8677 if ac_fn_c_try_compile "$LINENO"; then :
8678 wine_cv_opengl_header_version_OK="yes"
8679 else
8680 wine_cv_opengl_header_version_OK="no"
8682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8685 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8687 if test "$wine_cv_opengl_header_version_OK" = "yes"
8688 then
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8690 $as_echo_n "checking for -lGL... " >&6; }
8691 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 ac_check_soname_save_LIBS=$LIBS
8695 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697 /* end confdefs.h. */
8699 /* Override any GCC internal prototype to avoid an error.
8700 Use char because int might match the return type of a GCC
8701 builtin and then its argument prototype would still apply. */
8702 #ifdef __cplusplus
8703 extern "C"
8704 #endif
8705 char glXCreateContext ();
8707 main ()
8709 return glXCreateContext ();
8711 return 0;
8713 _ACEOF
8714 if ac_fn_c_try_link "$LINENO"; then :
8715 case "$LIBEXT" in
8716 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8717 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'` ;;
8718 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8719 esac
8721 rm -f core conftest.err conftest.$ac_objext \
8722 conftest$ac_exeext conftest.$ac_ext
8723 LIBS=$ac_check_soname_save_LIBS
8725 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8727 $as_echo "not found" >&6; }
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8729 $as_echo_n "checking for -lGL... " >&6; }
8730 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 ac_check_soname_save_LIBS=$LIBS
8734 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"
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8738 /* Override any GCC internal prototype to avoid an error.
8739 Use char because int might match the return type of a GCC
8740 builtin and then its argument prototype would still apply. */
8741 #ifdef __cplusplus
8742 extern "C"
8743 #endif
8744 char glXCreateContext ();
8746 main ()
8748 return glXCreateContext ();
8750 return 0;
8752 _ACEOF
8753 if ac_fn_c_try_link "$LINENO"; then :
8754 case "$LIBEXT" in
8755 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8756 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'` ;;
8757 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8758 esac
8760 rm -f core conftest.err conftest.$ac_objext \
8761 conftest$ac_exeext conftest.$ac_ext
8762 LIBS=$ac_check_soname_save_LIBS
8764 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8766 $as_echo "not found" >&6; }
8767 if test -f /usr/X11R6/lib/libGL.a
8768 then
8769 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8770 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8771 else
8772 opengl_msg="No OpenGL library found on this system."
8774 else
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8776 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8778 cat >>confdefs.h <<_ACEOF
8779 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8780 _ACEOF
8782 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"
8784 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8787 else
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8789 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8791 cat >>confdefs.h <<_ACEOF
8792 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8793 _ACEOF
8795 OPENGL_LIBS="-lGL"
8797 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8800 if test "$ac_cv_header_GL_glu_h" = "yes"
8801 then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8803 $as_echo_n "checking for -lGLU... " >&6; }
8804 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 ac_check_soname_save_LIBS=$LIBS
8808 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810 /* end confdefs.h. */
8812 /* Override any GCC internal prototype to avoid an error.
8813 Use char because int might match the return type of a GCC
8814 builtin and then its argument prototype would still apply. */
8815 #ifdef __cplusplus
8816 extern "C"
8817 #endif
8818 char gluLookAt ();
8820 main ()
8822 return gluLookAt ();
8824 return 0;
8826 _ACEOF
8827 if ac_fn_c_try_link "$LINENO"; then :
8828 case "$LIBEXT" in
8829 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8830 dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8831 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8832 esac
8834 rm -f core conftest.err conftest.$ac_objext \
8835 conftest$ac_exeext conftest.$ac_ext
8836 LIBS=$ac_check_soname_save_LIBS
8838 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8840 $as_echo "not found" >&6; }
8842 else
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8844 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8846 cat >>confdefs.h <<_ACEOF
8847 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8848 _ACEOF
8853 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8854 case "x$with_glu" in
8855 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8856 xno) ;;
8857 *) as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8858 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8859 esac
8861 else
8862 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8864 else
8865 opengl_msg="OpenGL development headers not found."
8867 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8868 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8869 else
8870 enable_opengl32=${enable_opengl32:-no}
8871 enable_glu32=${enable_glu32:-no}
8873 if test -n "$opengl_msg"; then :
8874 case "x$with_opengl" in
8875 x) as_fn_append wine_warnings "|$opengl_msg
8876 OpenGL and Direct3D won't be supported." ;;
8877 xno) ;;
8878 *) as_fn_error "$opengl_msg
8879 OpenGL and Direct3D won't be supported.
8880 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8881 esac
8884 NASLIBS=""
8886 for ac_header in audio/audiolib.h
8887 do :
8888 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8889 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8890 cat >>confdefs.h <<_ACEOF
8891 #define HAVE_AUDIO_AUDIOLIB_H 1
8892 _ACEOF
8893 for ac_header in audio/soundlib.h
8894 do :
8895 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8897 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8898 cat >>confdefs.h <<_ACEOF
8899 #define HAVE_AUDIO_SOUNDLIB_H 1
8900 _ACEOF
8904 done
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8907 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8908 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8909 $as_echo_n "(cached) " >&6
8910 else
8911 ac_check_lib_save_LIBS=$LIBS
8912 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8916 /* Override any GCC internal prototype to avoid an error.
8917 Use char because int might match the return type of a GCC
8918 builtin and then its argument prototype would still apply. */
8919 #ifdef __cplusplus
8920 extern "C"
8921 #endif
8922 char AuCreateFlow ();
8924 main ()
8926 return AuCreateFlow ();
8928 return 0;
8930 _ACEOF
8931 if ac_fn_c_try_link "$LINENO"; then :
8932 ac_cv_lib_audio_AuCreateFlow=yes
8933 else
8934 ac_cv_lib_audio_AuCreateFlow=no
8936 rm -f core conftest.err conftest.$ac_objext \
8937 conftest$ac_exeext conftest.$ac_ext
8938 LIBS=$ac_check_lib_save_LIBS
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8941 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
8942 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
8944 $as_echo "#define HAVE_NAS 1" >>confdefs.h
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
8947 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
8948 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951 ac_check_lib_save_LIBS=$LIBS
8952 LIBS="-lXau $X_LIBS $LIBS"
8953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8954 /* end confdefs.h. */
8956 /* Override any GCC internal prototype to avoid an error.
8957 Use char because int might match the return type of a GCC
8958 builtin and then its argument prototype would still apply. */
8959 #ifdef __cplusplus
8960 extern "C"
8961 #endif
8962 char XauGetBestAuthByAddr ();
8964 main ()
8966 return XauGetBestAuthByAddr ();
8968 return 0;
8970 _ACEOF
8971 if ac_fn_c_try_link "$LINENO"; then :
8972 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8973 else
8974 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
8976 rm -f core conftest.err conftest.$ac_objext \
8977 conftest$ac_exeext conftest.$ac_ext
8978 LIBS=$ac_check_lib_save_LIBS
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
8981 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
8982 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
8983 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8984 else
8985 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8993 done
8996 CPPFLAGS="$ac_save_CPPFLAGS"
8997 else
8998 XLIB=""
8999 X_CFLAGS=""
9000 X_LIBS=""
9001 enable_winex11_drv=${enable_winex11_drv:-no}
9002 enable_opengl32=${enable_opengl32:-no}
9003 enable_glu32=${enable_glu32:-no}
9005 if test "x$XLIB" = "x"; then :
9006 case "x$with_x" in
9007 xno) ;;
9008 *) as_fn_error "X ${notice_platform}development files not found. Wine will be built
9009 without X support, which probably isn't what you want. You will need to install
9010 ${notice_platform}development packages of Xlib/Xfree86 at the very least.
9011 Use the --without-x option if you really want this." "$LINENO" 5 ;;
9012 esac
9016 XML2LIBS=""
9018 XML2INCL=""
9020 XSLTINCL=""
9022 if test "x$with_xml" != "xno"
9023 then
9024 ac_save_CPPFLAGS="$CPPFLAGS"
9025 if test "$PKG_CONFIG" != "false"
9026 then
9027 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9028 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9029 else
9030 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9031 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9033 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9034 for ac_header in libxml/parser.h
9035 do :
9036 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9037 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
9038 cat >>confdefs.h <<_ACEOF
9039 #define HAVE_LIBXML_PARSER_H 1
9040 _ACEOF
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9042 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9043 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 ac_check_lib_save_LIBS=$LIBS
9047 LIBS="-lxml2 $ac_xml_libs $LIBS"
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9051 /* Override any GCC internal prototype to avoid an error.
9052 Use char because int might match the return type of a GCC
9053 builtin and then its argument prototype would still apply. */
9054 #ifdef __cplusplus
9055 extern "C"
9056 #endif
9057 char xmlParseMemory ();
9059 main ()
9061 return xmlParseMemory ();
9063 return 0;
9065 _ACEOF
9066 if ac_fn_c_try_link "$LINENO"; then :
9067 ac_cv_lib_xml2_xmlParseMemory=yes
9068 else
9069 ac_cv_lib_xml2_xmlParseMemory=no
9071 rm -f core conftest.err conftest.$ac_objext \
9072 conftest$ac_exeext conftest.$ac_ext
9073 LIBS=$ac_check_lib_save_LIBS
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9076 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9077 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
9079 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9081 XML2LIBS="$ac_xml_libs"
9082 XML2INCL="$ac_xml_cflags"
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9086 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9087 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9088 $as_echo_n "(cached) " >&6
9089 else
9090 ac_check_lib_save_LIBS=$LIBS
9091 LIBS="-lxml2 $ac_xml_libs $LIBS"
9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9095 /* Override any GCC internal prototype to avoid an error.
9096 Use char because int might match the return type of a GCC
9097 builtin and then its argument prototype would still apply. */
9098 #ifdef __cplusplus
9099 extern "C"
9100 #endif
9101 char xmlReadMemory ();
9103 main ()
9105 return xmlReadMemory ();
9107 return 0;
9109 _ACEOF
9110 if ac_fn_c_try_link "$LINENO"; then :
9111 ac_cv_lib_xml2_xmlReadMemory=yes
9112 else
9113 ac_cv_lib_xml2_xmlReadMemory=no
9115 rm -f core conftest.err conftest.$ac_objext \
9116 conftest$ac_exeext conftest.$ac_ext
9117 LIBS=$ac_check_lib_save_LIBS
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9120 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9121 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9123 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9128 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9129 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9130 $as_echo_n "(cached) " >&6
9131 else
9132 ac_check_lib_save_LIBS=$LIBS
9133 LIBS="-lxml2 $ac_xml_libs $LIBS"
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9137 /* Override any GCC internal prototype to avoid an error.
9138 Use char because int might match the return type of a GCC
9139 builtin and then its argument prototype would still apply. */
9140 #ifdef __cplusplus
9141 extern "C"
9142 #endif
9143 char xmlNewDocPI ();
9145 main ()
9147 return xmlNewDocPI ();
9149 return 0;
9151 _ACEOF
9152 if ac_fn_c_try_link "$LINENO"; then :
9153 ac_cv_lib_xml2_xmlNewDocPI=yes
9154 else
9155 ac_cv_lib_xml2_xmlNewDocPI=no
9157 rm -f core conftest.err conftest.$ac_objext \
9158 conftest$ac_exeext conftest.$ac_ext
9159 LIBS=$ac_check_lib_save_LIBS
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9162 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9163 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9165 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9172 done
9174 CPPFLAGS="$ac_save_CPPFLAGS"
9176 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9177 case "x$with_xml" in
9178 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9179 xno) ;;
9180 *) as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9181 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9182 esac
9185 if test "x$with_xslt" != "xno"
9186 then
9187 if test "$PKG_CONFIG" != "false"
9188 then
9189 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9190 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9191 else
9192 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9193 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9195 ac_save_CPPFLAGS="$CPPFLAGS"
9196 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9197 for ac_header in libxslt/pattern.h libxslt/transform.h
9198 do :
9199 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9200 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9201 # include <libxslt/pattern.h>
9202 #endif
9204 eval as_val=\$$as_ac_Header
9205 if test "x$as_val" = x""yes; then :
9206 cat >>confdefs.h <<_ACEOF
9207 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9208 _ACEOF
9212 done
9214 CPPFLAGS="$ac_save_CPPFLAGS"
9215 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9216 then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9218 $as_echo_n "checking for -lxslt... " >&6; }
9219 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 ac_check_soname_save_LIBS=$LIBS
9223 LIBS="-lxslt $ac_xslt_libs $LIBS"
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9227 /* Override any GCC internal prototype to avoid an error.
9228 Use char because int might match the return type of a GCC
9229 builtin and then its argument prototype would still apply. */
9230 #ifdef __cplusplus
9231 extern "C"
9232 #endif
9233 char xsltCompilePattern ();
9235 main ()
9237 return xsltCompilePattern ();
9239 return 0;
9241 _ACEOF
9242 if ac_fn_c_try_link "$LINENO"; then :
9243 case "$LIBEXT" in
9244 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9245 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'` ;;
9246 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9247 esac
9249 rm -f core conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
9251 LIBS=$ac_check_soname_save_LIBS
9253 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9255 $as_echo "not found" >&6; }
9257 else
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9259 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9261 cat >>confdefs.h <<_ACEOF
9262 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9263 _ACEOF
9265 XSLTINCL="$ac_xslt_cflags"
9269 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9270 case "x$with_xslt" in
9271 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9272 xno) ;;
9273 *) as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9274 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9275 esac
9278 HALINCL=""
9280 if test "x$with_hal" != "xno"
9281 then
9282 ac_save_CPPFLAGS="$CPPFLAGS"
9283 if test "$PKG_CONFIG" != "false"
9284 then
9285 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9286 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9287 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9289 for ac_header in dbus/dbus.h hal/libhal.h
9290 do :
9291 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9292 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9293 eval as_val=\$$as_ac_Header
9294 if test "x$as_val" = x""yes; then :
9295 cat >>confdefs.h <<_ACEOF
9296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9297 _ACEOF
9301 done
9303 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9304 then
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9306 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9307 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 ac_check_lib_save_LIBS=$LIBS
9311 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9315 /* Override any GCC internal prototype to avoid an error.
9316 Use char because int might match the return type of a GCC
9317 builtin and then its argument prototype would still apply. */
9318 #ifdef __cplusplus
9319 extern "C"
9320 #endif
9321 char dbus_connection_close ();
9323 main ()
9325 return dbus_connection_close ();
9327 return 0;
9329 _ACEOF
9330 if ac_fn_c_try_link "$LINENO"; then :
9331 ac_cv_lib_dbus_1_dbus_connection_close=yes
9332 else
9333 ac_cv_lib_dbus_1_dbus_connection_close=no
9335 rm -f core conftest.err conftest.$ac_objext \
9336 conftest$ac_exeext conftest.$ac_ext
9337 LIBS=$ac_check_lib_save_LIBS
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9340 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9341 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9343 $as_echo_n "checking for -lhal... " >&6; }
9344 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9345 $as_echo_n "(cached) " >&6
9346 else
9347 ac_check_soname_save_LIBS=$LIBS
9348 LIBS="-lhal $ac_hal_libs $LIBS"
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9352 /* Override any GCC internal prototype to avoid an error.
9353 Use char because int might match the return type of a GCC
9354 builtin and then its argument prototype would still apply. */
9355 #ifdef __cplusplus
9356 extern "C"
9357 #endif
9358 char libhal_ctx_new ();
9360 main ()
9362 return libhal_ctx_new ();
9364 return 0;
9366 _ACEOF
9367 if ac_fn_c_try_link "$LINENO"; then :
9368 case "$LIBEXT" in
9369 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9370 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'` ;;
9371 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9372 esac
9374 rm -f core conftest.err conftest.$ac_objext \
9375 conftest$ac_exeext conftest.$ac_ext
9376 LIBS=$ac_check_soname_save_LIBS
9378 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9380 $as_echo "not found" >&6; }
9382 else
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9384 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9386 cat >>confdefs.h <<_ACEOF
9387 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9388 _ACEOF
9390 HALINCL="$ac_hal_cflags"
9395 CPPFLAGS="$ac_save_CPPFLAGS"
9397 if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9398 case "x$with_hal" in
9399 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9400 xno) ;;
9401 *) as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9402 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9403 esac
9406 if test "x$with_gnutls" != "xno"
9407 then
9408 ac_save_CPPFLAGS="$CPPFLAGS"
9409 if test "$PKG_CONFIG" != "false"
9410 then
9411 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9412 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9413 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9415 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9416 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9419 #include <gnutls/gnutls.h>
9421 main ()
9423 typeof(gnutls_mac_get_key_size) *pfunc;
9425 return 0;
9427 _ACEOF
9428 if ac_fn_c_try_compile "$LINENO"; then :
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9430 $as_echo_n "checking for -lgnutls... " >&6; }
9431 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9432 $as_echo_n "(cached) " >&6
9433 else
9434 ac_check_soname_save_LIBS=$LIBS
9435 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9439 /* Override any GCC internal prototype to avoid an error.
9440 Use char because int might match the return type of a GCC
9441 builtin and then its argument prototype would still apply. */
9442 #ifdef __cplusplus
9443 extern "C"
9444 #endif
9445 char gnutls_global_init ();
9447 main ()
9449 return gnutls_global_init ();
9451 return 0;
9453 _ACEOF
9454 if ac_fn_c_try_link "$LINENO"; then :
9455 case "$LIBEXT" in
9456 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9457 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'` ;;
9458 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9459 esac
9461 rm -f core conftest.err conftest.$ac_objext \
9462 conftest$ac_exeext conftest.$ac_ext
9463 LIBS=$ac_check_soname_save_LIBS
9465 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9467 $as_echo "not found" >&6; }
9469 else
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9471 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9473 cat >>confdefs.h <<_ACEOF
9474 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9475 _ACEOF
9477 GNUTLSINCL="$ac_gnutls_cflags"
9481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485 CPPFLAGS="$ac_save_CPPFLAGS"
9487 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9488 case "x$with_gnutls" in
9489 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9490 xno) ;;
9491 *) as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9492 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9493 esac
9496 CURSESLIBS=""
9497 if test "$ac_cv_header_ncurses_h" = "yes"
9498 then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9500 $as_echo_n "checking for -lncurses... " >&6; }
9501 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 ac_check_soname_save_LIBS=$LIBS
9505 LIBS="-lncurses $LIBS"
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9509 /* Override any GCC internal prototype to avoid an error.
9510 Use char because int might match the return type of a GCC
9511 builtin and then its argument prototype would still apply. */
9512 #ifdef __cplusplus
9513 extern "C"
9514 #endif
9515 char waddch ();
9517 main ()
9519 return waddch ();
9521 return 0;
9523 _ACEOF
9524 if ac_fn_c_try_link "$LINENO"; then :
9525 case "$LIBEXT" in
9526 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9527 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'` ;;
9528 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9529 esac
9531 rm -f core conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9533 LIBS=$ac_check_soname_save_LIBS
9535 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9537 $as_echo "not found" >&6; }
9539 else
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9541 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9543 cat >>confdefs.h <<_ACEOF
9544 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9545 _ACEOF
9547 CURSESLIBS="-lncurses"
9549 elif test "$ac_cv_header_curses_h" = "yes"
9550 then
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9552 $as_echo_n "checking for -lcurses... " >&6; }
9553 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9554 $as_echo_n "(cached) " >&6
9555 else
9556 ac_check_soname_save_LIBS=$LIBS
9557 LIBS="-lcurses $LIBS"
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9561 /* Override any GCC internal prototype to avoid an error.
9562 Use char because int might match the return type of a GCC
9563 builtin and then its argument prototype would still apply. */
9564 #ifdef __cplusplus
9565 extern "C"
9566 #endif
9567 char waddch ();
9569 main ()
9571 return waddch ();
9573 return 0;
9575 _ACEOF
9576 if ac_fn_c_try_link "$LINENO"; then :
9577 case "$LIBEXT" in
9578 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9579 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'` ;;
9580 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9581 esac
9583 rm -f core conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9585 LIBS=$ac_check_soname_save_LIBS
9587 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9589 $as_echo "not found" >&6; }
9591 else
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9593 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9595 cat >>confdefs.h <<_ACEOF
9596 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9597 _ACEOF
9599 CURSESLIBS="-lcurses"
9602 ac_save_LIBS="$LIBS"
9603 LIBS="$LIBS $CURSESLIBS"
9604 for ac_func in mousemask
9605 do :
9606 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9607 if test "x$ac_cv_func_mousemask" = x""yes; then :
9608 cat >>confdefs.h <<_ACEOF
9609 #define HAVE_MOUSEMASK 1
9610 _ACEOF
9613 done
9615 LIBS="$ac_save_LIBS"
9616 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9617 case "x$with_curses" in
9618 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9619 xno) ;;
9620 *) as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9621 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9622 esac
9625 if test "x$with_sane" != "xno"
9626 then
9627 ac_save_CPPFLAGS="$CPPFLAGS"
9628 # Extract the first word of "sane-config", so it can be a program name with args.
9629 set dummy sane-config; ac_word=$2
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9631 $as_echo_n "checking for $ac_word... " >&6; }
9632 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 if test -n "$sane_devel"; then
9636 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9637 else
9638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639 for as_dir in $PATH
9641 IFS=$as_save_IFS
9642 test -z "$as_dir" && as_dir=.
9643 for ac_exec_ext in '' $ac_executable_extensions; do
9644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9645 ac_cv_prog_sane_devel="sane-config"
9646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9647 break 2
9649 done
9650 done
9651 IFS=$as_save_IFS
9653 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9656 sane_devel=$ac_cv_prog_sane_devel
9657 if test -n "$sane_devel"; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9659 $as_echo "$sane_devel" >&6; }
9660 else
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 $as_echo "no" >&6; }
9666 if test "$sane_devel" != "no"
9667 then
9668 ac_sane_incl="`$sane_devel --cflags`"
9669 ac_sane_libs="`$sane_devel --ldflags`"
9670 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9672 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9673 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9675 $as_echo_n "checking for -lsane... " >&6; }
9676 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9677 $as_echo_n "(cached) " >&6
9678 else
9679 ac_check_soname_save_LIBS=$LIBS
9680 LIBS="-lsane $ac_sane_libs $LIBS"
9681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682 /* end confdefs.h. */
9684 /* Override any GCC internal prototype to avoid an error.
9685 Use char because int might match the return type of a GCC
9686 builtin and then its argument prototype would still apply. */
9687 #ifdef __cplusplus
9688 extern "C"
9689 #endif
9690 char sane_init ();
9692 main ()
9694 return sane_init ();
9696 return 0;
9698 _ACEOF
9699 if ac_fn_c_try_link "$LINENO"; then :
9700 case "$LIBEXT" in
9701 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9702 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'` ;;
9703 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9704 esac
9706 rm -f core conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
9708 LIBS=$ac_check_soname_save_LIBS
9710 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9712 $as_echo "not found" >&6; }
9714 else
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9716 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9718 cat >>confdefs.h <<_ACEOF
9719 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9720 _ACEOF
9722 SANEINCL="$ac_sane_incl"
9728 CPPFLAGS="$ac_save_CPPFLAGS"
9730 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9731 case "x$with_sane" in
9732 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9733 xno) ;;
9734 *) as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9735 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9736 esac
9739 if test "x$with_v4l" != "xno"
9740 then
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9742 $as_echo_n "checking for -lv4l1... " >&6; }
9743 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
9745 else
9746 ac_check_soname_save_LIBS=$LIBS
9747 LIBS="-lv4l1 $LIBS"
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h. */
9751 /* Override any GCC internal prototype to avoid an error.
9752 Use char because int might match the return type of a GCC
9753 builtin and then its argument prototype would still apply. */
9754 #ifdef __cplusplus
9755 extern "C"
9756 #endif
9757 char v4l1_open ();
9759 main ()
9761 return v4l1_open ();
9763 return 0;
9765 _ACEOF
9766 if ac_fn_c_try_link "$LINENO"; then :
9767 case "$LIBEXT" in
9768 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9769 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'` ;;
9770 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9771 esac
9773 rm -f core conftest.err conftest.$ac_objext \
9774 conftest$ac_exeext conftest.$ac_ext
9775 LIBS=$ac_check_soname_save_LIBS
9777 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9779 $as_echo "not found" >&6; }
9781 else
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9783 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9785 cat >>confdefs.h <<_ACEOF
9786 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9787 _ACEOF
9792 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9793 case "x$with_v4l" in
9794 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
9795 xno) ;;
9796 *) as_fn_error "libv4l ${notice_platform}development files not found.
9797 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9798 esac
9801 if test "x$with_gphoto" != "xno"
9802 then
9803 ac_save_CPPFLAGS="$CPPFLAGS"
9804 # Extract the first word of "gphoto2-config", so it can be a program name with args.
9805 set dummy gphoto2-config; ac_word=$2
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9807 $as_echo_n "checking for $ac_word... " >&6; }
9808 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 if test -n "$gphoto2_devel"; then
9812 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9813 else
9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 for as_dir in $PATH
9817 IFS=$as_save_IFS
9818 test -z "$as_dir" && as_dir=.
9819 for ac_exec_ext in '' $ac_executable_extensions; do
9820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9821 ac_cv_prog_gphoto2_devel="gphoto2-config"
9822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9823 break 2
9825 done
9826 done
9827 IFS=$as_save_IFS
9829 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9832 gphoto2_devel=$ac_cv_prog_gphoto2_devel
9833 if test -n "$gphoto2_devel"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
9835 $as_echo "$gphoto2_devel" >&6; }
9836 else
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9842 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
9843 set dummy gphoto2-port-config; ac_word=$2
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9845 $as_echo_n "checking for $ac_word... " >&6; }
9846 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 if test -n "$gphoto2port_devel"; then
9850 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9851 else
9852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9853 for as_dir in $PATH
9855 IFS=$as_save_IFS
9856 test -z "$as_dir" && as_dir=.
9857 for ac_exec_ext in '' $ac_executable_extensions; do
9858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9859 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
9860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9861 break 2
9863 done
9864 done
9865 IFS=$as_save_IFS
9867 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9870 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9871 if test -n "$gphoto2port_devel"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
9873 $as_echo "$gphoto2port_devel" >&6; }
9874 else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9880 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9881 then
9882 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9883 ac_gphoto2_libs=""
9884 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9886 case "$i" in
9887 -L/usr/lib|-L/usr/lib64) ;;
9888 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9889 esac
9890 done
9891 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9893 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
9894 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9895 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
9897 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
9898 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
9899 $as_echo_n "(cached) " >&6
9900 else
9901 ac_check_lib_save_LIBS=$LIBS
9902 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9906 /* Override any GCC internal prototype to avoid an error.
9907 Use char because int might match the return type of a GCC
9908 builtin and then its argument prototype would still apply. */
9909 #ifdef __cplusplus
9910 extern "C"
9911 #endif
9912 char gp_camera_new ();
9914 main ()
9916 return gp_camera_new ();
9918 return 0;
9920 _ACEOF
9921 if ac_fn_c_try_link "$LINENO"; then :
9922 ac_cv_lib_gphoto2_gp_camera_new=yes
9923 else
9924 ac_cv_lib_gphoto2_gp_camera_new=no
9926 rm -f core conftest.err conftest.$ac_objext \
9927 conftest$ac_exeext conftest.$ac_ext
9928 LIBS=$ac_check_lib_save_LIBS
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
9931 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
9932 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
9934 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
9936 GPHOTO2LIBS="$ac_gphoto2_libs"
9938 GPHOTO2INCL="$ac_gphoto2_incl"
9945 CPPFLAGS="$ac_save_CPPFLAGS"
9947 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
9948 case "x$with_gphoto" in
9949 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
9950 xno) ;;
9951 *) as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9952 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
9953 esac
9957 RESOLVLIBS=""
9959 if test "$ac_cv_header_resolv_h" = "yes"
9960 then
9961 ac_save_LIBS="$LIBS"
9962 LIBS="$LIBS -lresolv"
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9965 #ifdef HAVE_NETINET_IN_H
9966 #include <netinet/in.h>
9967 #endif
9968 #include <resolv.h>
9970 main ()
9972 res_init();
9974 return 0;
9976 _ACEOF
9977 if ac_fn_c_try_link "$LINENO"; then :
9979 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
9981 RESOLVLIBS="-lresolv"
9983 rm -f core conftest.err conftest.$ac_objext \
9984 conftest$ac_exeext conftest.$ac_ext
9985 LIBS="$ac_save_LIBS"
9988 LCMSLIBS=""
9990 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
9991 then
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
9993 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
9994 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 ac_check_lib_save_LIBS=$LIBS
9998 LIBS="-llcms $LIBS"
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10002 /* Override any GCC internal prototype to avoid an error.
10003 Use char because int might match the return type of a GCC
10004 builtin and then its argument prototype would still apply. */
10005 #ifdef __cplusplus
10006 extern "C"
10007 #endif
10008 char cmsOpenProfileFromFile ();
10010 main ()
10012 return cmsOpenProfileFromFile ();
10014 return 0;
10016 _ACEOF
10017 if ac_fn_c_try_link "$LINENO"; then :
10018 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10019 else
10020 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10022 rm -f core conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10024 LIBS=$ac_check_lib_save_LIBS
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10027 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10028 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
10030 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10032 LCMSLIBS="-llcms"
10036 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10037 case "x$with_cms" in
10038 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10039 xno) ;;
10040 *) as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10041 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10042 esac
10045 if test "x$with_freetype" != "xno"
10046 then
10047 for ac_prog in freetype-config freetype2-config
10049 # Extract the first word of "$ac_prog", so it can be a program name with args.
10050 set dummy $ac_prog; ac_word=$2
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10052 $as_echo_n "checking for $ac_word... " >&6; }
10053 if test "${ac_cv_prog_ft_devel+set}" = set; then :
10054 $as_echo_n "(cached) " >&6
10055 else
10056 if test -n "$ft_devel"; then
10057 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10058 else
10059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060 for as_dir in $PATH
10062 IFS=$as_save_IFS
10063 test -z "$as_dir" && as_dir=.
10064 for ac_exec_ext in '' $ac_executable_extensions; do
10065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10066 ac_cv_prog_ft_devel="$ac_prog"
10067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10068 break 2
10070 done
10071 done
10072 IFS=$as_save_IFS
10076 ft_devel=$ac_cv_prog_ft_devel
10077 if test -n "$ft_devel"; then
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10079 $as_echo "$ft_devel" >&6; }
10080 else
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10086 test -n "$ft_devel" && break
10087 done
10088 test -n "$ft_devel" || ft_devel="no"
10090 if test "$ft_devel" != "no"
10091 then
10092 ac_freetype_incl=`$ft_devel --cflags`
10093 ac_freetype_libs=`$ft_devel --libs`
10095 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10097 $as_echo_n "checking for -lfreetype... " >&6; }
10098 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10099 $as_echo_n "(cached) " >&6
10100 else
10101 ac_check_soname_save_LIBS=$LIBS
10102 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10106 /* Override any GCC internal prototype to avoid an error.
10107 Use char because int might match the return type of a GCC
10108 builtin and then its argument prototype would still apply. */
10109 #ifdef __cplusplus
10110 extern "C"
10111 #endif
10112 char FT_Init_FreeType ();
10114 main ()
10116 return FT_Init_FreeType ();
10118 return 0;
10120 _ACEOF
10121 if ac_fn_c_try_link "$LINENO"; then :
10122 case "$LIBEXT" in
10123 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10124 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'` ;;
10125 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10126 esac
10128 rm -f core conftest.err conftest.$ac_objext \
10129 conftest$ac_exeext conftest.$ac_ext
10130 LIBS=$ac_check_soname_save_LIBS
10132 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10134 $as_echo "not found" >&6; }
10135 ft_lib=no
10136 else
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10138 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10140 cat >>confdefs.h <<_ACEOF
10141 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10142 _ACEOF
10144 ft_lib=yes
10146 if test "$ft_lib" = "yes"
10147 then
10148 ac_save_CPPFLAGS="$CPPFLAGS"
10149 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10150 for ac_header in ft2build.h \
10151 freetype/freetype.h \
10152 freetype/ftglyph.h \
10153 freetype/fttypes.h \
10154 freetype/tttables.h \
10155 freetype/ftsnames.h \
10156 freetype/ttnameid.h \
10157 freetype/ftoutln.h \
10158 freetype/ftwinfnt.h \
10159 freetype/ftmodapi.h \
10160 freetype/ftlcdfil.h \
10161 freetype/internal/sfnt.h
10162 do :
10163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10164 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10165 # include <ft2build.h>
10166 #endif
10168 eval as_val=\$$as_ac_Header
10169 if test "x$as_val" = x""yes; then :
10170 cat >>confdefs.h <<_ACEOF
10171 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10172 _ACEOF
10176 done
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180 #include <ft2build.h>
10181 #include <freetype/fttrigon.h>
10182 _ACEOF
10183 if ac_fn_c_try_cpp "$LINENO"; then :
10185 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10187 wine_cv_fttrigon=yes
10188 else
10189 wine_cv_fttrigon=no
10191 rm -f conftest.err conftest.$ac_ext
10192 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10194 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10196 cat >>confdefs.h <<_ACEOF
10197 #define HAVE_FT_TRUETYPEENGINETYPE 1
10198 _ACEOF
10203 ac_save_CFLAGS="$CFLAGS"
10204 CFLAGS="$CFLAGS $ac_freetype_libs"
10205 for ac_func in FT_Load_Sfnt_Table
10206 do :
10207 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10208 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10209 cat >>confdefs.h <<_ACEOF
10210 #define HAVE_FT_LOAD_SFNT_TABLE 1
10211 _ACEOF
10214 done
10216 CFLAGS="$ac_save_CFLAGS"
10217 CPPFLAGS="$ac_save_CPPFLAGS"
10218 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10219 then
10221 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10223 FREETYPELIBS="$ac_freetype_libs"
10225 FREETYPEINCL="$ac_freetype_incl"
10230 if test "x$FREETYPELIBS" = "x"; then :
10231 case "x$with_freetype" in
10232 xno) ;;
10233 *) as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10234 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10235 esac
10237 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10240 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10241 if test "${ac_cv_c_ppdev+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h. */
10246 #ifdef HAVE_SYS_IOCTL_H
10247 # include <sys/ioctl.h>
10248 #endif
10249 #include <linux/ppdev.h>
10251 main ()
10253 ioctl (1,PPCLAIM,0)
10255 return 0;
10257 _ACEOF
10258 if ac_fn_c_try_compile "$LINENO"; then :
10259 ac_cv_c_ppdev="yes"
10260 else
10261 ac_cv_c_ppdev="no"
10263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10266 $as_echo "$ac_cv_c_ppdev" >&6; }
10267 if test "$ac_cv_c_ppdev" = "yes"
10268 then
10270 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10274 ac_wine_check_funcs_save_LIBS="$LIBS"
10275 LIBS="$LIBS $LIBPTHREAD"
10276 for ac_func in \
10277 pthread_attr_get_np \
10278 pthread_getattr_np \
10279 pthread_get_stackaddr_np \
10280 pthread_get_stacksize_np
10281 do :
10282 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10283 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10284 eval as_val=\$$as_ac_var
10285 if test "x$as_val" = x""yes; then :
10286 cat >>confdefs.h <<_ACEOF
10287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10288 _ACEOF
10291 done
10293 LIBS="$ac_wine_check_funcs_save_LIBS"
10295 if test "$ac_cv_header_zlib_h" = "yes"
10296 then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10298 $as_echo_n "checking for inflate in -lz... " >&6; }
10299 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 ac_check_lib_save_LIBS=$LIBS
10303 LIBS="-lz $LIBS"
10304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305 /* end confdefs.h. */
10307 /* Override any GCC internal prototype to avoid an error.
10308 Use char because int might match the return type of a GCC
10309 builtin and then its argument prototype would still apply. */
10310 #ifdef __cplusplus
10311 extern "C"
10312 #endif
10313 char inflate ();
10315 main ()
10317 return inflate ();
10319 return 0;
10321 _ACEOF
10322 if ac_fn_c_try_link "$LINENO"; then :
10323 ac_cv_lib_z_inflate=yes
10324 else
10325 ac_cv_lib_z_inflate=no
10327 rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
10329 LIBS=$ac_check_lib_save_LIBS
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10332 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10333 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10335 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10337 ZLIB="-lz"
10343 if test "x$with_esd" != xno
10344 then
10345 save_CFLAGS="$CFLAGS"
10346 # Extract the first word of "esd-config", so it can be a program name with args.
10347 set dummy esd-config; ac_word=$2
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10349 $as_echo_n "checking for $ac_word... " >&6; }
10350 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10351 $as_echo_n "(cached) " >&6
10352 else
10353 case $ESDCONFIG in
10354 [\\/]* | ?:[\\/]*)
10355 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10361 IFS=$as_save_IFS
10362 test -z "$as_dir" && as_dir=.
10363 for ac_exec_ext in '' $ac_executable_extensions; do
10364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10365 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10367 break 2
10369 done
10370 done
10371 IFS=$as_save_IFS
10373 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10375 esac
10377 ESDCONFIG=$ac_cv_path_ESDCONFIG
10378 if test -n "$ESDCONFIG"; then
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10380 $as_echo "$ESDCONFIG" >&6; }
10381 else
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383 $as_echo "no" >&6; }
10387 if test "x$ESDCONFIG" != "xno"
10388 then
10389 ac_esd_incl=""
10390 for i in `$ESDCONFIG --cflags`
10392 case "$i" in
10393 -I*) ac_esd_incl="$ac_esd_incl $i";;
10394 esac
10395 done
10396 ac_esd_libs=`$ESDCONFIG --libs`
10397 CFLAGS="$CFLAGS $ac_esd_incl"
10399 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10400 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10401 if test "x$ac_cv_header_esd_h" = x""yes; then :
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10403 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10404 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 ac_check_lib_save_LIBS=$LIBS
10408 LIBS="-lesd $ac_esd_libs $LIBS"
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10412 /* Override any GCC internal prototype to avoid an error.
10413 Use char because int might match the return type of a GCC
10414 builtin and then its argument prototype would still apply. */
10415 #ifdef __cplusplus
10416 extern "C"
10417 #endif
10418 char esd_open_sound ();
10420 main ()
10422 return esd_open_sound ();
10424 return 0;
10426 _ACEOF
10427 if ac_fn_c_try_link "$LINENO"; then :
10428 ac_cv_lib_esd_esd_open_sound=yes
10429 else
10430 ac_cv_lib_esd_esd_open_sound=no
10432 rm -f core conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10434 LIBS=$ac_check_lib_save_LIBS
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10437 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10438 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10439 ESDINCL="$ac_esd_incl"
10441 ESDLIBS="$ac_esd_libs"
10444 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10451 CFLAGS="$save_CFLAGS"
10454 PULSELIBS=""
10456 PULSECFLAGS=""
10458 if test "x$with_pulse" != "xno";
10459 then
10460 ac_save_CPPFLAGS="$CPPFLAGS"
10461 if test "$PKG_CONFIG" != "false";
10462 then
10463 ac_pulse_libs="`$PKG_CONFIG --libs libpulse 2>/dev/null`"
10464 ac_pulse_cflags="`$PKG_CONFIG --cflags libpulse 2>/dev/null`"
10466 CPPFLAGS="$CPPFLAGS $ac_pulse_cflags"
10467 for ac_header in pulse/pulseaudio.h
10468 do :
10469 ac_fn_c_check_header_mongrel "$LINENO" "pulse/pulseaudio.h" "ac_cv_header_pulse_pulseaudio_h" "$ac_includes_default"
10470 if test "x$ac_cv_header_pulse_pulseaudio_h" = x""yes; then :
10471 cat >>confdefs.h <<_ACEOF
10472 #define HAVE_PULSE_PULSEAUDIO_H 1
10473 _ACEOF
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pa_stream_is_corked in -lpulse" >&5
10475 $as_echo_n "checking for pa_stream_is_corked in -lpulse... " >&6; }
10476 if test "${ac_cv_lib_pulse_pa_stream_is_corked+set}" = set; then :
10477 $as_echo_n "(cached) " >&6
10478 else
10479 ac_check_lib_save_LIBS=$LIBS
10480 LIBS="-lpulse $ac_pulse_libs $LIBS"
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10484 /* Override any GCC internal prototype to avoid an error.
10485 Use char because int might match the return type of a GCC
10486 builtin and then its argument prototype would still apply. */
10487 #ifdef __cplusplus
10488 extern "C"
10489 #endif
10490 char pa_stream_is_corked ();
10492 main ()
10494 return pa_stream_is_corked ();
10496 return 0;
10498 _ACEOF
10499 if ac_fn_c_try_link "$LINENO"; then :
10500 ac_cv_lib_pulse_pa_stream_is_corked=yes
10501 else
10502 ac_cv_lib_pulse_pa_stream_is_corked=no
10504 rm -f core conftest.err conftest.$ac_objext \
10505 conftest$ac_exeext conftest.$ac_ext
10506 LIBS=$ac_check_lib_save_LIBS
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pulse_pa_stream_is_corked" >&5
10509 $as_echo "$ac_cv_lib_pulse_pa_stream_is_corked" >&6; }
10510 if test "x$ac_cv_lib_pulse_pa_stream_is_corked" = x""yes; then :
10512 $as_echo "#define HAVE_PULSEAUDIO 1" >>confdefs.h
10514 PULSELIBS="$ac_pulse_libs"
10515 PULSECFLAGS="$ac_pulse_cflags"
10521 done
10524 CPPFLAGS="$ac_save_CPPFLAGS"
10526 if test "$ac_cv_lib_pulse_pa_stream_is_corked" != "yes"; then :
10527 case "x$with_pulse" in
10528 x) as_fn_append wine_warnings "|libpulse ${notice_platform}development files not found or too old, Pulse won't be supported." ;;
10529 xno) ;;
10530 *) as_fn_error "libpulse ${notice_platform}development files not found or too old, Pulse won't be supported.
10531 This is an error since --with-pulse was requested." "$LINENO" 5 ;;
10532 esac
10535 ALSALIBS=""
10537 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10538 then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10540 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10541 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 ac_check_lib_save_LIBS=$LIBS
10545 LIBS="-lasound $LIBS"
10546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h. */
10549 /* Override any GCC internal prototype to avoid an error.
10550 Use char because int might match the return type of a GCC
10551 builtin and then its argument prototype would still apply. */
10552 #ifdef __cplusplus
10553 extern "C"
10554 #endif
10555 char snd_pcm_hw_params_get_access ();
10557 main ()
10559 return snd_pcm_hw_params_get_access ();
10561 return 0;
10563 _ACEOF
10564 if ac_fn_c_try_link "$LINENO"; then :
10565 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10566 else
10567 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10569 rm -f core conftest.err conftest.$ac_objext \
10570 conftest$ac_exeext conftest.$ac_ext
10571 LIBS=$ac_check_lib_save_LIBS
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10574 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10575 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h. */
10578 #ifdef HAVE_ALSA_ASOUNDLIB_H
10579 #include <alsa/asoundlib.h>
10580 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10581 #include <sys/asoundlib.h>
10582 #endif
10584 main ()
10586 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10588 return 0;
10590 _ACEOF
10591 if ac_fn_c_try_compile "$LINENO"; then :
10593 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10595 ALSALIBS="-lasound"
10597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602 AUDIOIOLIBS=""
10604 if test "$ac_cv_header_libaudioio_h" = "yes"
10605 then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
10607 $as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
10608 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
10609 $as_echo_n "(cached) " >&6
10610 else
10611 ac_check_lib_save_LIBS=$LIBS
10612 LIBS="-laudioio $LIBS"
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10616 /* Override any GCC internal prototype to avoid an error.
10617 Use char because int might match the return type of a GCC
10618 builtin and then its argument prototype would still apply. */
10619 #ifdef __cplusplus
10620 extern "C"
10621 #endif
10622 char AudioIOGetVersion ();
10624 main ()
10626 return AudioIOGetVersion ();
10628 return 0;
10630 _ACEOF
10631 if ac_fn_c_try_link "$LINENO"; then :
10632 ac_cv_lib_audioio_AudioIOGetVersion=yes
10633 else
10634 ac_cv_lib_audioio_AudioIOGetVersion=no
10636 rm -f core conftest.err conftest.$ac_objext \
10637 conftest$ac_exeext conftest.$ac_ext
10638 LIBS=$ac_check_lib_save_LIBS
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10641 $as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
10642 if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
10643 AUDIOIOLIBS="-laudioio"
10645 $as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
10652 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10653 then
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10655 $as_echo_n "checking for -lcapi20... " >&6; }
10656 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 ac_check_soname_save_LIBS=$LIBS
10660 LIBS="-lcapi20 $LIBS"
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10664 /* Override any GCC internal prototype to avoid an error.
10665 Use char because int might match the return type of a GCC
10666 builtin and then its argument prototype would still apply. */
10667 #ifdef __cplusplus
10668 extern "C"
10669 #endif
10670 char capi20_register ();
10672 main ()
10674 return capi20_register ();
10676 return 0;
10678 _ACEOF
10679 if ac_fn_c_try_link "$LINENO"; then :
10680 case "$LIBEXT" in
10681 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10682 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'` ;;
10683 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10684 esac
10686 rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
10688 LIBS=$ac_check_soname_save_LIBS
10690 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10692 $as_echo "not found" >&6; }
10694 else
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10696 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10698 cat >>confdefs.h <<_ACEOF
10699 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10700 _ACEOF
10705 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10706 case "x$with_capi" in
10707 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10708 xno) ;;
10709 *) as_fn_error "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10710 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10711 esac
10714 CUPSINCL=""
10716 if test "x$with_cups" != "xno"
10717 then
10718 ac_save_CPPFLAGS="$CPPFLAGS"
10719 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10720 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10721 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10722 for ac_header in cups/cups.h
10723 do :
10724 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10725 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
10726 cat >>confdefs.h <<_ACEOF
10727 #define HAVE_CUPS_CUPS_H 1
10728 _ACEOF
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10730 $as_echo_n "checking for -lcups... " >&6; }
10731 if test "${ac_cv_lib_soname_cups+set}" = set; then :
10732 $as_echo_n "(cached) " >&6
10733 else
10734 ac_check_soname_save_LIBS=$LIBS
10735 LIBS="-lcups $ac_cups_libs $LIBS"
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10739 /* Override any GCC internal prototype to avoid an error.
10740 Use char because int might match the return type of a GCC
10741 builtin and then its argument prototype would still apply. */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 char cupsGetDefault ();
10747 main ()
10749 return cupsGetDefault ();
10751 return 0;
10753 _ACEOF
10754 if ac_fn_c_try_link "$LINENO"; then :
10755 case "$LIBEXT" in
10756 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10757 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'` ;;
10758 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10759 esac
10761 rm -f core conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
10763 LIBS=$ac_check_soname_save_LIBS
10765 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10767 $as_echo "not found" >&6; }
10769 else
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10771 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10773 cat >>confdefs.h <<_ACEOF
10774 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10775 _ACEOF
10777 CUPSINCL="$ac_cups_cflags"
10781 done
10783 CPPFLAGS="$ac_save_CPPFLAGS"
10785 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10786 case "x$with_cups" in
10787 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10788 xno) ;;
10789 *) as_fn_error "libcups ${notice_platform}development files not found, CUPS won't be supported.
10790 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10791 esac
10794 if test "$ac_cv_header_jack_jack_h" = "yes"
10795 then
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
10797 $as_echo_n "checking for -ljack... " >&6; }
10798 if test "${ac_cv_lib_soname_jack+set}" = set; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 ac_check_soname_save_LIBS=$LIBS
10802 LIBS="-ljack $LIBS"
10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h. */
10806 /* Override any GCC internal prototype to avoid an error.
10807 Use char because int might match the return type of a GCC
10808 builtin and then its argument prototype would still apply. */
10809 #ifdef __cplusplus
10810 extern "C"
10811 #endif
10812 char jack_client_new ();
10814 main ()
10816 return jack_client_new ();
10818 return 0;
10820 _ACEOF
10821 if ac_fn_c_try_link "$LINENO"; then :
10822 case "$LIBEXT" in
10823 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10824 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10825 *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10826 esac
10828 rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830 LIBS=$ac_check_soname_save_LIBS
10832 if test "x$ac_cv_lib_soname_jack" = "x"; then :
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10834 $as_echo "not found" >&6; }
10836 else
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
10838 $as_echo "$ac_cv_lib_soname_jack" >&6; }
10840 cat >>confdefs.h <<_ACEOF
10841 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
10842 _ACEOF
10848 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10849 then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10851 $as_echo_n "checking for -lfontconfig... " >&6; }
10852 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 ac_check_soname_save_LIBS=$LIBS
10856 LIBS="-lfontconfig $LIBS"
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10860 /* Override any GCC internal prototype to avoid an error.
10861 Use char because int might match the return type of a GCC
10862 builtin and then its argument prototype would still apply. */
10863 #ifdef __cplusplus
10864 extern "C"
10865 #endif
10866 char FcInit ();
10868 main ()
10870 return FcInit ();
10872 return 0;
10874 _ACEOF
10875 if ac_fn_c_try_link "$LINENO"; then :
10876 case "$LIBEXT" in
10877 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10878 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'` ;;
10879 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10880 esac
10882 rm -f core conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
10884 LIBS=$ac_check_soname_save_LIBS
10886 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10888 $as_echo "not found" >&6; }
10890 else
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10892 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10894 cat >>confdefs.h <<_ACEOF
10895 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10896 _ACEOF
10900 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
10901 then
10902 ac_save_CPPFLAGS="$CPPFLAGS"
10903 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10904 $as_unset ac_cv_header_fontconfig_fontconfig_h
10905 for ac_header in fontconfig/fontconfig.h
10906 do :
10907 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10908 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
10909 cat >>confdefs.h <<_ACEOF
10910 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
10911 _ACEOF
10915 done
10917 CPPFLAGS="$ac_save_CPPFLAGS"
10918 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10919 then
10920 FONTCONFIGINCL="$X_CFLAGS"
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10923 $as_echo_n "checking for -lfontconfig... " >&6; }
10924 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10925 $as_echo_n "(cached) " >&6
10926 else
10927 ac_check_soname_save_LIBS=$LIBS
10928 LIBS="-lfontconfig $X_LIBS $LIBS"
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10932 /* Override any GCC internal prototype to avoid an error.
10933 Use char because int might match the return type of a GCC
10934 builtin and then its argument prototype would still apply. */
10935 #ifdef __cplusplus
10936 extern "C"
10937 #endif
10938 char FcInit ();
10940 main ()
10942 return FcInit ();
10944 return 0;
10946 _ACEOF
10947 if ac_fn_c_try_link "$LINENO"; then :
10948 case "$LIBEXT" in
10949 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10950 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'` ;;
10951 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10952 esac
10954 rm -f core conftest.err conftest.$ac_objext \
10955 conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_soname_save_LIBS
10958 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10960 $as_echo "not found" >&6; }
10962 else
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10964 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10966 cat >>confdefs.h <<_ACEOF
10967 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10968 _ACEOF
10974 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10975 case "x$with_fontconfig" in
10976 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
10977 xno) ;;
10978 *) as_fn_error "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
10979 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
10980 esac
10983 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
10984 then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
10986 $as_echo_n "checking for -lssl... " >&6; }
10987 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 ac_check_soname_save_LIBS=$LIBS
10991 LIBS="-lssl $LIBS"
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10995 /* Override any GCC internal prototype to avoid an error.
10996 Use char because int might match the return type of a GCC
10997 builtin and then its argument prototype would still apply. */
10998 #ifdef __cplusplus
10999 extern "C"
11000 #endif
11001 char SSL_library_init ();
11003 main ()
11005 return SSL_library_init ();
11007 return 0;
11009 _ACEOF
11010 if ac_fn_c_try_link "$LINENO"; then :
11011 case "$LIBEXT" in
11012 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11013 dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep "libssl\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11014 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11015 esac
11017 rm -f core conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_soname_save_LIBS
11021 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11023 $as_echo "not found" >&6; }
11025 else
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11027 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11029 cat >>confdefs.h <<_ACEOF
11030 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11031 _ACEOF
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11036 $as_echo_n "checking for -lcrypto... " >&6; }
11037 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 ac_check_soname_save_LIBS=$LIBS
11041 LIBS="-lcrypto $LIBS"
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 char BIO_new_socket ();
11053 main ()
11055 return BIO_new_socket ();
11057 return 0;
11059 _ACEOF
11060 if ac_fn_c_try_link "$LINENO"; then :
11061 case "$LIBEXT" in
11062 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11063 dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep "libcrypto\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11064 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11065 esac
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11069 LIBS=$ac_check_soname_save_LIBS
11071 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11073 $as_echo "not found" >&6; }
11075 else
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11077 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11079 cat >>confdefs.h <<_ACEOF
11080 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11081 _ACEOF
11086 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11087 case "x$with_openssl" in
11088 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11089 xno) ;;
11090 *) as_fn_error "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11091 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11092 esac
11095 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11096 then
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11098 $as_echo_n "checking for -lgsm... " >&6; }
11099 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
11100 $as_echo_n "(cached) " >&6
11101 else
11102 ac_check_soname_save_LIBS=$LIBS
11103 LIBS="-lgsm $LIBS"
11104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h. */
11107 /* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11110 #ifdef __cplusplus
11111 extern "C"
11112 #endif
11113 char gsm_create ();
11115 main ()
11117 return gsm_create ();
11119 return 0;
11121 _ACEOF
11122 if ac_fn_c_try_link "$LINENO"; then :
11123 case "$LIBEXT" in
11124 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11125 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'` ;;
11126 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11127 esac
11129 rm -f core conftest.err conftest.$ac_objext \
11130 conftest$ac_exeext conftest.$ac_ext
11131 LIBS=$ac_check_soname_save_LIBS
11133 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11135 $as_echo "not found" >&6; }
11137 else
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11139 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11141 cat >>confdefs.h <<_ACEOF
11142 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11143 _ACEOF
11148 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11149 case "x$with_gsm" in
11150 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11151 xno) ;;
11152 *) as_fn_error "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11153 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11154 esac
11157 if test "$ac_cv_header_jpeglib_h" = "yes"
11158 then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11160 $as_echo_n "checking for -ljpeg... " >&6; }
11161 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
11162 $as_echo_n "(cached) " >&6
11163 else
11164 ac_check_soname_save_LIBS=$LIBS
11165 LIBS="-ljpeg $LIBS"
11166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167 /* end confdefs.h. */
11169 /* Override any GCC internal prototype to avoid an error.
11170 Use char because int might match the return type of a GCC
11171 builtin and then its argument prototype would still apply. */
11172 #ifdef __cplusplus
11173 extern "C"
11174 #endif
11175 char jpeg_start_decompress ();
11177 main ()
11179 return jpeg_start_decompress ();
11181 return 0;
11183 _ACEOF
11184 if ac_fn_c_try_link "$LINENO"; then :
11185 case "$LIBEXT" in
11186 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11187 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'` ;;
11188 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11189 esac
11191 rm -f core conftest.err conftest.$ac_objext \
11192 conftest$ac_exeext conftest.$ac_ext
11193 LIBS=$ac_check_soname_save_LIBS
11195 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11197 $as_echo "not found" >&6; }
11199 else
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11201 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11203 cat >>confdefs.h <<_ACEOF
11204 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11205 _ACEOF
11210 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11211 case "x$with_jpeg" in
11212 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11213 xno) ;;
11214 *) as_fn_error "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11215 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11216 esac
11219 if test "$ac_cv_header_png_h" = "yes"
11220 then
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11222 $as_echo_n "checking for -lpng... " >&6; }
11223 if test "${ac_cv_lib_soname_png+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11225 else
11226 ac_check_soname_save_LIBS=$LIBS
11227 LIBS="-lpng -lm -lz $LIBS"
11228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229 /* end confdefs.h. */
11231 /* Override any GCC internal prototype to avoid an error.
11232 Use char because int might match the return type of a GCC
11233 builtin and then its argument prototype would still apply. */
11234 #ifdef __cplusplus
11235 extern "C"
11236 #endif
11237 char png_create_read_struct ();
11239 main ()
11241 return png_create_read_struct ();
11243 return 0;
11245 _ACEOF
11246 if ac_fn_c_try_link "$LINENO"; then :
11247 case "$LIBEXT" in
11248 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11249 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'` ;;
11250 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11251 esac
11253 rm -f core conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255 LIBS=$ac_check_soname_save_LIBS
11257 if test "x$ac_cv_lib_soname_png" = "x"; then :
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11259 $as_echo "not found" >&6; }
11261 else
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11263 $as_echo "$ac_cv_lib_soname_png" >&6; }
11265 cat >>confdefs.h <<_ACEOF
11266 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11267 _ACEOF
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11272 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11273 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-lpng -lm -lz $LIBS"
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 char png_set_expand_gray_1_2_4_to_8 ();
11289 main ()
11291 return png_set_expand_gray_1_2_4_to_8 ();
11293 return 0;
11295 _ACEOF
11296 if ac_fn_c_try_link "$LINENO"; then :
11297 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11298 else
11299 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11301 rm -f core conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11306 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11307 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11309 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11314 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11315 then
11316 ac_save_CPPFLAGS="$CPPFLAGS"
11317 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11318 $as_unset ac_cv_header_png_h
11319 for ac_header in png.h
11320 do :
11321 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11322 if test "x$ac_cv_header_png_h" = x""yes; then :
11323 cat >>confdefs.h <<_ACEOF
11324 #define HAVE_PNG_H 1
11325 _ACEOF
11329 done
11331 CPPFLAGS="$ac_save_CPPFLAGS"
11332 if test "$ac_cv_header_png_h" = "yes"
11333 then
11334 PNGINCL="$X_CFLAGS"
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11337 $as_echo_n "checking for -lpng... " >&6; }
11338 if test "${ac_cv_lib_soname_png+set}" = set; then :
11339 $as_echo_n "(cached) " >&6
11340 else
11341 ac_check_soname_save_LIBS=$LIBS
11342 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349 #ifdef __cplusplus
11350 extern "C"
11351 #endif
11352 char png_create_read_struct ();
11354 main ()
11356 return png_create_read_struct ();
11358 return 0;
11360 _ACEOF
11361 if ac_fn_c_try_link "$LINENO"; then :
11362 case "$LIBEXT" in
11363 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11364 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'` ;;
11365 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11366 esac
11368 rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370 LIBS=$ac_check_soname_save_LIBS
11372 if test "x$ac_cv_lib_soname_png" = "x"; then :
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11374 $as_echo "not found" >&6; }
11376 else
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11378 $as_echo "$ac_cv_lib_soname_png" >&6; }
11380 cat >>confdefs.h <<_ACEOF
11381 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11382 _ACEOF
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11387 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11388 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11389 $as_echo_n "(cached) " >&6
11390 else
11391 ac_check_lib_save_LIBS=$LIBS
11392 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h. */
11396 /* Override any GCC internal prototype to avoid an error.
11397 Use char because int might match the return type of a GCC
11398 builtin and then its argument prototype would still apply. */
11399 #ifdef __cplusplus
11400 extern "C"
11401 #endif
11402 char png_set_expand_gray_1_2_4_to_8 ();
11404 main ()
11406 return png_set_expand_gray_1_2_4_to_8 ();
11408 return 0;
11410 _ACEOF
11411 if ac_fn_c_try_link "$LINENO"; then :
11412 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11413 else
11414 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11416 rm -f core conftest.err conftest.$ac_objext \
11417 conftest$ac_exeext conftest.$ac_ext
11418 LIBS=$ac_check_lib_save_LIBS
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11421 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11422 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11423 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11429 if test "x$ac_cv_lib_soname_png" = "x"; then :
11430 case "x$with_png" in
11431 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11432 xno) ;;
11433 *) as_fn_error "libpng ${notice_platform}development files not found, PNG won't be supported.
11434 This is an error since --with-png was requested." "$LINENO" 5 ;;
11435 esac
11438 if test "$ac_cv_header_tiffio_h" = "yes"
11439 then
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11441 $as_echo_n "checking for -ltiff... " >&6; }
11442 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11443 $as_echo_n "(cached) " >&6
11444 else
11445 ac_check_soname_save_LIBS=$LIBS
11446 LIBS="-ltiff $LIBS"
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11450 /* Override any GCC internal prototype to avoid an error.
11451 Use char because int might match the return type of a GCC
11452 builtin and then its argument prototype would still apply. */
11453 #ifdef __cplusplus
11454 extern "C"
11455 #endif
11456 char TIFFClientOpen ();
11458 main ()
11460 return TIFFClientOpen ();
11462 return 0;
11464 _ACEOF
11465 if ac_fn_c_try_link "$LINENO"; then :
11466 case "$LIBEXT" in
11467 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11468 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'` ;;
11469 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11470 esac
11472 rm -f core conftest.err conftest.$ac_objext \
11473 conftest$ac_exeext conftest.$ac_ext
11474 LIBS=$ac_check_soname_save_LIBS
11476 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11478 $as_echo "not found" >&6; }
11480 else
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11482 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11484 cat >>confdefs.h <<_ACEOF
11485 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11486 _ACEOF
11491 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11492 case "x$with_tiff" in
11493 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11494 xno) ;;
11495 *) as_fn_error "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11496 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11497 esac
11500 if test "$ac_cv_header_mpg123_h" = "yes"
11501 then
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11503 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11504 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11505 $as_echo_n "(cached) " >&6
11506 else
11507 ac_check_lib_save_LIBS=$LIBS
11508 LIBS="-lmpg123 $LIBS"
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11512 /* Override any GCC internal prototype to avoid an error.
11513 Use char because int might match the return type of a GCC
11514 builtin and then its argument prototype would still apply. */
11515 #ifdef __cplusplus
11516 extern "C"
11517 #endif
11518 char mpg123_feed ();
11520 main ()
11522 return mpg123_feed ();
11524 return 0;
11526 _ACEOF
11527 if ac_fn_c_try_link "$LINENO"; then :
11528 ac_cv_lib_mpg123_mpg123_feed=yes
11529 else
11530 ac_cv_lib_mpg123_mpg123_feed=no
11532 rm -f core conftest.err conftest.$ac_objext \
11533 conftest$ac_exeext conftest.$ac_ext
11534 LIBS=$ac_check_lib_save_LIBS
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11537 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11538 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11539 LIBMPG123="-lmpg123"
11544 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11545 case "x$with_mpg123" in
11546 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11547 xno) ;;
11548 *) as_fn_error "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11549 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11550 esac
11552 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}
11554 if test "$ac_cv_header_AL_al_h" = "yes"
11555 then
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11557 $as_echo_n "checking for -lopenal... " >&6; }
11558 if test "${ac_cv_lib_soname_openal+set}" = set; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 ac_check_soname_save_LIBS=$LIBS
11562 LIBS="-lopenal $LIBS"
11563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564 /* end confdefs.h. */
11566 /* Override any GCC internal prototype to avoid an error.
11567 Use char because int might match the return type of a GCC
11568 builtin and then its argument prototype would still apply. */
11569 #ifdef __cplusplus
11570 extern "C"
11571 #endif
11572 char alGetSource3i ();
11574 main ()
11576 return alGetSource3i ();
11578 return 0;
11580 _ACEOF
11581 if ac_fn_c_try_link "$LINENO"; then :
11582 case "$LIBEXT" in
11583 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11584 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'` ;;
11585 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11586 esac
11588 rm -f core conftest.err conftest.$ac_objext \
11589 conftest$ac_exeext conftest.$ac_ext
11590 LIBS=$ac_check_soname_save_LIBS
11592 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11594 $as_echo "not found" >&6; }
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11598 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11600 cat >>confdefs.h <<_ACEOF
11601 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11602 _ACEOF
11604 LIBOPENAL="-lopenal"
11606 ac_cv_lib_openal=yes
11608 cat >>confdefs.h <<_ACEOF
11609 #define HAVE_OPENAL 1
11610 _ACEOF
11614 if test "x$ac_cv_lib_openal" != xyes; then :
11615 case "x$with_openal" in
11616 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11617 xno) ;;
11618 *) as_fn_error "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11619 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11620 esac
11622 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11624 if test "$ac_cv_header_kstat_h" = "yes"
11625 then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11627 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11628 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 ac_check_lib_save_LIBS=$LIBS
11632 LIBS="-lkstat $LIBS"
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11636 /* Override any GCC internal prototype to avoid an error.
11637 Use char because int might match the return type of a GCC
11638 builtin and then its argument prototype would still apply. */
11639 #ifdef __cplusplus
11640 extern "C"
11641 #endif
11642 char kstat_open ();
11644 main ()
11646 return kstat_open ();
11648 return 0;
11650 _ACEOF
11651 if ac_fn_c_try_link "$LINENO"; then :
11652 ac_cv_lib_kstat_kstat_open=yes
11653 else
11654 ac_cv_lib_kstat_kstat_open=no
11656 rm -f core conftest.err conftest.$ac_objext \
11657 conftest$ac_exeext conftest.$ac_ext
11658 LIBS=$ac_check_lib_save_LIBS
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11661 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11662 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11664 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11666 LIBKSTAT="-lkstat"
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11673 $as_echo_n "checking for -lodbc... " >&6; }
11674 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
11675 $as_echo_n "(cached) " >&6
11676 else
11677 ac_check_soname_save_LIBS=$LIBS
11678 LIBS="-lodbc $LIBS"
11679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11680 /* end confdefs.h. */
11682 /* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
11685 #ifdef __cplusplus
11686 extern "C"
11687 #endif
11688 char SQLConnect ();
11690 main ()
11692 return SQLConnect ();
11694 return 0;
11696 _ACEOF
11697 if ac_fn_c_try_link "$LINENO"; then :
11698 case "$LIBEXT" in
11699 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11700 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'` ;;
11701 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11702 esac
11704 rm -f core conftest.err conftest.$ac_objext \
11705 conftest$ac_exeext conftest.$ac_ext
11706 LIBS=$ac_check_soname_save_LIBS
11708 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11710 $as_echo "not found" >&6; }
11711 cat >>confdefs.h <<_ACEOF
11712 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11713 _ACEOF
11715 else
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11717 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11719 cat >>confdefs.h <<_ACEOF
11720 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11721 _ACEOF
11726 if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$PULSELIBS$ac_cv_lib_soname_jack" = "x" -a \
11727 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
11728 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
11729 "$ac_cv_header_soundcard_h" != "yes" -a \
11730 "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
11731 then
11732 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11736 EXTRACFLAGS=""
11738 if test "x${GCC}" = "xyes"
11739 then
11740 EXTRACFLAGS="-Wall -pipe"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11743 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11744 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
11745 $as_echo_n "(cached) " >&6
11746 else
11747 if test "$cross_compiling" = yes; then :
11748 ac_cv_c_gcc_strength_bug="yes"
11749 else
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752 int L[4] = {0,1,2,3};
11754 main ()
11756 static int Array[3];
11757 unsigned int B = 3;
11758 int i;
11759 for(i=0; i<B; i++) Array[i] = i - 3;
11760 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11761 L[i] = 4;
11762 return (Array[1] != -2 || L[2] != 3)
11764 return 0;
11766 _ACEOF
11767 if ac_fn_c_try_run "$LINENO"; then :
11768 ac_cv_c_gcc_strength_bug="no"
11769 else
11770 ac_cv_c_gcc_strength_bug="yes"
11772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11773 conftest.$ac_objext conftest.beam conftest.$ac_ext
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11778 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11779 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11780 then
11781 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11785 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11786 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 ac_wine_try_cflags_saved=$CFLAGS
11790 CFLAGS="$CFLAGS -fno-builtin"
11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h. */
11793 int main(int argc, char **argv) { return 0; }
11794 _ACEOF
11795 if ac_fn_c_try_link "$LINENO"; then :
11796 ac_cv_cflags__fno_builtin=yes
11797 else
11798 ac_cv_cflags__fno_builtin=no
11800 rm -f core conftest.err conftest.$ac_objext \
11801 conftest$ac_exeext conftest.$ac_ext
11802 CFLAGS=$ac_wine_try_cflags_saved
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11805 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11806 if test $ac_cv_cflags__fno_builtin = yes; then :
11807 BUILTINFLAG="-fno-builtin"
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11811 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11812 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
11814 else
11815 ac_wine_try_cflags_saved=$CFLAGS
11816 CFLAGS="$CFLAGS -fno-strict-aliasing"
11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11819 int main(int argc, char **argv) { return 0; }
11820 _ACEOF
11821 if ac_fn_c_try_link "$LINENO"; then :
11822 ac_cv_cflags__fno_strict_aliasing=yes
11823 else
11824 ac_cv_cflags__fno_strict_aliasing=no
11826 rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11828 CFLAGS=$ac_wine_try_cflags_saved
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11831 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11832 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11833 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11836 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11837 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
11838 $as_echo_n "(cached) " >&6
11839 else
11840 ac_wine_try_cflags_saved=$CFLAGS
11841 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11844 int main(int argc, char **argv) { return 0; }
11845 _ACEOF
11846 if ac_fn_c_try_link "$LINENO"; then :
11847 ac_cv_cflags__Wdeclaration_after_statement=yes
11848 else
11849 ac_cv_cflags__Wdeclaration_after_statement=no
11851 rm -f core conftest.err conftest.$ac_objext \
11852 conftest$ac_exeext conftest.$ac_ext
11853 CFLAGS=$ac_wine_try_cflags_saved
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
11856 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
11857 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
11858 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11861 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11862 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
11863 $as_echo_n "(cached) " >&6
11864 else
11865 ac_wine_try_cflags_saved=$CFLAGS
11866 CFLAGS="$CFLAGS -Wstrict-prototypes"
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11869 int main(int argc, char **argv) { return 0; }
11870 _ACEOF
11871 if ac_fn_c_try_link "$LINENO"; then :
11872 ac_cv_cflags__Wstrict_prototypes=yes
11873 else
11874 ac_cv_cflags__Wstrict_prototypes=no
11876 rm -f core conftest.err conftest.$ac_objext \
11877 conftest$ac_exeext conftest.$ac_ext
11878 CFLAGS=$ac_wine_try_cflags_saved
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11881 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11882 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11883 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
11886 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
11887 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
11888 $as_echo_n "(cached) " >&6
11889 else
11890 ac_wine_try_cflags_saved=$CFLAGS
11891 CFLAGS="$CFLAGS -Wtype-limits"
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11894 int main(int argc, char **argv) { return 0; }
11895 _ACEOF
11896 if ac_fn_c_try_link "$LINENO"; then :
11897 ac_cv_cflags__Wtype_limits=yes
11898 else
11899 ac_cv_cflags__Wtype_limits=no
11901 rm -f core conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
11903 CFLAGS=$ac_wine_try_cflags_saved
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
11906 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
11907 if test $ac_cv_cflags__Wtype_limits = yes; then :
11908 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11911 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
11912 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 ac_wine_try_cflags_saved=$CFLAGS
11916 CFLAGS="$CFLAGS -Wwrite-strings"
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11919 int main(int argc, char **argv) { return 0; }
11920 _ACEOF
11921 if ac_fn_c_try_link "$LINENO"; then :
11922 ac_cv_cflags__Wwrite_strings=yes
11923 else
11924 ac_cv_cflags__Wwrite_strings=no
11926 rm -f core conftest.err conftest.$ac_objext \
11927 conftest$ac_exeext conftest.$ac_ext
11928 CFLAGS=$ac_wine_try_cflags_saved
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
11931 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
11932 if test $ac_cv_cflags__Wwrite_strings = yes; then :
11933 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
11936 saved_CFLAGS="$CFLAGS"
11937 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
11939 $as_echo_n "checking for broken string.h that generates warnings... " >&6; }
11940 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11945 #include <string.h>
11947 main ()
11951 return 0;
11953 _ACEOF
11954 if ac_fn_c_try_compile "$LINENO"; then :
11955 ac_cv_c_string_h_warnings=no
11956 else
11957 ac_cv_c_string_h_warnings=yes
11959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
11962 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
11963 CFLAGS="$saved_CFLAGS"
11964 if test "$ac_cv_c_string_h_warnings" = "no"
11965 then
11966 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11969 if test "x$enable_maintainer_mode" = "xyes"
11970 then
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
11972 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
11973 if test "${ac_cv_cflags__Werror+set}" = set; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 ac_wine_try_cflags_saved=$CFLAGS
11977 CFLAGS="$CFLAGS -Werror"
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980 int main(int argc, char **argv) { return 0; }
11981 _ACEOF
11982 if ac_fn_c_try_link "$LINENO"; then :
11983 ac_cv_cflags__Werror=yes
11984 else
11985 ac_cv_cflags__Werror=no
11987 rm -f core conftest.err conftest.$ac_objext \
11988 conftest$ac_exeext conftest.$ac_ext
11989 CFLAGS=$ac_wine_try_cflags_saved
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
11992 $as_echo "$ac_cv_cflags__Werror" >&6; }
11993 if test $ac_cv_cflags__Werror = yes; then :
11994 EXTRACFLAGS="$EXTRACFLAGS -Werror"
11998 saved_CFLAGS="$CFLAGS"
11999 CFLAGS="$CFLAGS -Werror"
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12001 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12002 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12007 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12009 main ()
12013 return 0;
12015 _ACEOF
12016 if ac_fn_c_try_compile "$LINENO"; then :
12017 ac_cv_have_ms_hook_prologue="yes"
12018 else
12019 ac_cv_have_ms_hook_prologue="no"
12021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12024 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12025 CFLAGS="$saved_CFLAGS"
12026 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12027 then
12029 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12031 else
12032 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12039 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12040 if test "${ac_cv_c_extern_prefix+set}" = set; then :
12041 $as_echo_n "(cached) " >&6
12042 else
12043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12044 /* end confdefs.h. */
12045 extern int ac_test;
12047 main ()
12049 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12051 return 0;
12053 _ACEOF
12054 if ac_fn_c_try_link "$LINENO"; then :
12055 ac_cv_c_extern_prefix="yes"
12056 else
12057 ac_cv_c_extern_prefix="no"
12059 rm -f core conftest.err conftest.$ac_objext \
12060 conftest$ac_exeext conftest.$ac_ext
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12063 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12065 case $host_cpu in
12066 *i[3456789]86*)
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12068 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12069 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
12070 $as_echo_n "(cached) " >&6
12071 else
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 #ifndef _MSC_VER
12075 #define __stdcall __attribute__((__stdcall__))
12076 #endif
12077 int __stdcall ac_test(int i) { return i; }
12079 main ()
12081 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12083 return 0;
12085 _ACEOF
12086 if ac_fn_c_try_link "$LINENO"; then :
12087 ac_cv_c_stdcall_suffix="yes"
12088 else
12089 ac_cv_c_stdcall_suffix="no"
12091 rm -f core conftest.err conftest.$ac_objext \
12092 conftest$ac_exeext conftest.$ac_ext
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12095 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12096 *) ac_cv_c_stdcall_suffix="no" ;;
12097 esac
12100 if test "$ac_cv_c_extern_prefix" = "yes"
12101 then
12102 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12104 asm_name_prefix="_"
12105 else
12106 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12108 asm_name_prefix=""
12112 if test "$ac_cv_c_stdcall_suffix" = "yes"
12113 then
12114 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12116 else
12117 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12123 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12124 if test "${ac_cv_asm_func_def+set}" = set; then :
12125 $as_echo_n "(cached) " >&6
12126 else
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12131 main ()
12133 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12135 return 0;
12137 _ACEOF
12138 if ac_fn_c_try_link "$LINENO"; then :
12139 ac_cv_asm_func_def=".def"
12140 else
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12145 main ()
12147 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12149 return 0;
12151 _ACEOF
12152 if ac_fn_c_try_link "$LINENO"; then :
12153 ac_cv_asm_func_def=".type @function"
12154 else
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12159 main ()
12161 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12163 return 0;
12165 _ACEOF
12166 if ac_fn_c_try_link "$LINENO"; then :
12167 ac_cv_asm_func_def=".type 2"
12168 else
12169 ac_cv_asm_func_def="unknown"
12171 rm -f core conftest.err conftest.$ac_objext \
12172 conftest$ac_exeext conftest.$ac_ext
12174 rm -f core conftest.err conftest.$ac_objext \
12175 conftest$ac_exeext conftest.$ac_ext
12177 rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12181 $as_echo "$ac_cv_asm_func_def" >&6; }
12184 case "$ac_cv_asm_func_def" in
12185 ".def")
12186 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12188 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12189 ".type @function")
12190 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12192 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12193 ".type 2")
12194 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12196 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12198 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12200 asm_func_header="" ;;
12201 esac
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12204 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12205 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12210 asm(".text\n\t.long 0");
12212 main ()
12216 return 0;
12218 _ACEOF
12219 if ac_fn_c_try_compile "$LINENO"; then :
12220 ac_cv_c_asm_outside_funcs="yes"
12221 else
12222 ac_cv_c_asm_outside_funcs="no"
12224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12227 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12230 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12231 if test "${ac_cv_c_dot_previous+set}" = set; then :
12232 $as_echo_n "(cached) " >&6
12233 else
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h. */
12238 main ()
12240 asm(".text\nac_test:\t.long 0\n\t.previous");
12242 return 0;
12244 _ACEOF
12245 if ac_fn_c_try_link "$LINENO"; then :
12246 ac_cv_c_dot_previous="yes"
12247 else
12248 ac_cv_c_dot_previous="no"
12250 rm -f core conftest.err conftest.$ac_objext \
12251 conftest$ac_exeext conftest.$ac_ext
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12254 $as_echo "$ac_cv_c_dot_previous" >&6; }
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12257 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12258 if test "${ac_cv_c_cfi_support+set}" = set; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h. */
12263 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12265 main ()
12269 return 0;
12271 _ACEOF
12272 if ac_fn_c_try_compile "$LINENO"; then :
12273 ac_cv_c_cfi_support="yes"
12274 else
12275 ac_cv_c_cfi_support="no"
12277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12280 $as_echo "$ac_cv_c_cfi_support" >&6; }
12282 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12283 asm_func_trailer=""
12284 if test "$ac_cv_c_dot_previous" = "yes"
12285 then
12286 asm_func_trailer="\\n\\t.previous"
12288 if test "$ac_cv_c_cfi_support" = "yes"
12289 then
12290 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12291 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12293 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12295 UNWINDFLAGS=-fasynchronous-unwind-tables
12297 else
12298 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12302 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12305 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12306 then
12307 cat >>confdefs.h <<_ACEOF
12308 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12309 _ACEOF
12311 else
12312 cat >>confdefs.h <<_ACEOF
12313 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12314 _ACEOF
12318 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12321 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12325 LDPATH=""
12327 case $build_os in
12328 cygwin*|mingw32*)
12329 TOOLSEXT=".exe"
12331 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12333 darwin*|macosx*)
12336 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12338 esac
12340 case $host_os in
12341 mingw32*)
12342 CRTLIBS="-lmsvcrt"
12344 SOCKETLIBS="-L\$(TOPOBJDIR)/dlls/ws2_32 -lws2_32"
12347 esac
12349 MAIN_BINARY="wine"
12351 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12353 case $host_cpu in
12354 *i[3456789]86*)
12355 case $host_os in
12356 linux*)
12357 EXTRA_BINARIES="wine-preloader"
12359 esac
12361 esac
12364 ac_save_CFLAGS="$CFLAGS"
12365 CFLAGS="$CFLAGS $BUILTINFLAG"
12366 for ac_func in \
12367 _pclose \
12368 _popen \
12369 _snprintf \
12370 _spawnvp \
12371 _strdup \
12372 _stricmp \
12373 _strnicmp \
12374 _strtoi64 \
12375 _strtoui64 \
12376 _vsnprintf \
12377 asctime_r \
12378 chsize \
12379 dlopen \
12380 epoll_create \
12381 ffs \
12382 finite \
12383 fnmatch \
12384 fork \
12385 fpclass \
12386 fstatfs \
12387 fstatvfs \
12388 ftruncate \
12389 futimes \
12390 futimesat \
12391 getdirentries \
12392 getopt_long \
12393 getpagesize \
12394 getpwuid \
12395 gettid \
12396 gettimeofday \
12397 getuid \
12398 kqueue \
12399 lstat \
12400 memmove \
12401 mmap \
12402 pclose \
12403 pipe2 \
12404 poll \
12405 popen \
12406 port_create \
12407 prctl \
12408 pread \
12409 pwrite \
12410 readdir \
12411 readlink \
12412 sched_setaffinity \
12413 sched_yield \
12414 select \
12415 setproctitle \
12416 setrlimit \
12417 settimeofday \
12418 sigaltstack \
12419 sigprocmask \
12420 snprintf \
12421 spawnvp \
12422 statfs \
12423 statvfs \
12424 strcasecmp \
12425 strdup \
12426 strerror \
12427 strncasecmp \
12428 strtold \
12429 strtoll \
12430 strtoull \
12431 symlink \
12432 tcgetattr \
12433 thr_kill2 \
12434 timegm \
12435 usleep \
12436 vsnprintf \
12437 wait4 \
12438 waitpid \
12440 do :
12441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12442 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12443 eval as_val=\$$as_ac_var
12444 if test "x$as_val" = x""yes; then :
12445 cat >>confdefs.h <<_ACEOF
12446 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12447 _ACEOF
12450 done
12452 CFLAGS="$ac_save_CFLAGS"
12454 if test "$ac_cv_func_dlopen" = no
12455 then
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12457 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12458 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12459 $as_echo_n "(cached) " >&6
12460 else
12461 ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-ldl $LIBS"
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12466 /* Override any GCC internal prototype to avoid an error.
12467 Use char because int might match the return type of a GCC
12468 builtin and then its argument prototype would still apply. */
12469 #ifdef __cplusplus
12470 extern "C"
12471 #endif
12472 char dlopen ();
12474 main ()
12476 return dlopen ();
12478 return 0;
12480 _ACEOF
12481 if ac_fn_c_try_link "$LINENO"; then :
12482 ac_cv_lib_dl_dlopen=yes
12483 else
12484 ac_cv_lib_dl_dlopen=no
12486 rm -f core conftest.err conftest.$ac_objext \
12487 conftest$ac_exeext conftest.$ac_ext
12488 LIBS=$ac_check_lib_save_LIBS
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12491 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12492 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12493 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12494 LIBDL="-ldl"
12499 ac_wine_check_funcs_save_LIBS="$LIBS"
12500 LIBS="$LIBS $LIBDL"
12501 for ac_func in dladdr
12502 do :
12503 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12504 if test "x$ac_cv_func_dladdr" = x""yes; then :
12505 cat >>confdefs.h <<_ACEOF
12506 #define HAVE_DLADDR 1
12507 _ACEOF
12510 done
12512 LIBS="$ac_wine_check_funcs_save_LIBS"
12514 if test "$ac_cv_func_poll" = no
12515 then
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12517 $as_echo_n "checking for poll in -lpoll... " >&6; }
12518 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12519 $as_echo_n "(cached) " >&6
12520 else
12521 ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-lpoll $LIBS"
12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12526 /* Override any GCC internal prototype to avoid an error.
12527 Use char because int might match the return type of a GCC
12528 builtin and then its argument prototype would still apply. */
12529 #ifdef __cplusplus
12530 extern "C"
12531 #endif
12532 char poll ();
12534 main ()
12536 return poll ();
12538 return 0;
12540 _ACEOF
12541 if ac_fn_c_try_link "$LINENO"; then :
12542 ac_cv_lib_poll_poll=yes
12543 else
12544 ac_cv_lib_poll_poll=no
12546 rm -f core conftest.err conftest.$ac_objext \
12547 conftest$ac_exeext conftest.$ac_ext
12548 LIBS=$ac_check_lib_save_LIBS
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12551 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12552 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12553 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12554 LIBPOLL="-lpoll"
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12561 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12562 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12563 $as_echo_n "(cached) " >&6
12564 else
12565 ac_func_search_save_LIBS=$LIBS
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12569 /* Override any GCC internal prototype to avoid an error.
12570 Use char because int might match the return type of a GCC
12571 builtin and then its argument prototype would still apply. */
12572 #ifdef __cplusplus
12573 extern "C"
12574 #endif
12575 char gethostbyname ();
12577 main ()
12579 return gethostbyname ();
12581 return 0;
12583 _ACEOF
12584 for ac_lib in '' nsl; do
12585 if test -z "$ac_lib"; then
12586 ac_res="none required"
12587 else
12588 ac_res=-l$ac_lib
12589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12591 if ac_fn_c_try_link "$LINENO"; then :
12592 ac_cv_search_gethostbyname=$ac_res
12594 rm -f core conftest.err conftest.$ac_objext \
12595 conftest$ac_exeext
12596 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12597 break
12599 done
12600 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12602 else
12603 ac_cv_search_gethostbyname=no
12605 rm conftest.$ac_ext
12606 LIBS=$ac_func_search_save_LIBS
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12609 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12610 ac_res=$ac_cv_search_gethostbyname
12611 if test "$ac_res" != no; then :
12612 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12618 $as_echo_n "checking for library containing connect... " >&6; }
12619 if test "${ac_cv_search_connect+set}" = set; then :
12620 $as_echo_n "(cached) " >&6
12621 else
12622 ac_func_search_save_LIBS=$LIBS
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12626 /* Override any GCC internal prototype to avoid an error.
12627 Use char because int might match the return type of a GCC
12628 builtin and then its argument prototype would still apply. */
12629 #ifdef __cplusplus
12630 extern "C"
12631 #endif
12632 char connect ();
12634 main ()
12636 return connect ();
12638 return 0;
12640 _ACEOF
12641 for ac_lib in '' socket; do
12642 if test -z "$ac_lib"; then
12643 ac_res="none required"
12644 else
12645 ac_res=-l$ac_lib
12646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12648 if ac_fn_c_try_link "$LINENO"; then :
12649 ac_cv_search_connect=$ac_res
12651 rm -f core conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext
12653 if test "${ac_cv_search_connect+set}" = set; then :
12654 break
12656 done
12657 if test "${ac_cv_search_connect+set}" = set; then :
12659 else
12660 ac_cv_search_connect=no
12662 rm conftest.$ac_ext
12663 LIBS=$ac_func_search_save_LIBS
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12666 $as_echo "$ac_cv_search_connect" >&6; }
12667 ac_res=$ac_cv_search_connect
12668 if test "$ac_res" != no; then :
12669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12675 $as_echo_n "checking for library containing inet_aton... " >&6; }
12676 if test "${ac_cv_search_inet_aton+set}" = set; then :
12677 $as_echo_n "(cached) " >&6
12678 else
12679 ac_func_search_save_LIBS=$LIBS
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12683 /* Override any GCC internal prototype to avoid an error.
12684 Use char because int might match the return type of a GCC
12685 builtin and then its argument prototype would still apply. */
12686 #ifdef __cplusplus
12687 extern "C"
12688 #endif
12689 char inet_aton ();
12691 main ()
12693 return inet_aton ();
12695 return 0;
12697 _ACEOF
12698 for ac_lib in '' resolv; do
12699 if test -z "$ac_lib"; then
12700 ac_res="none required"
12701 else
12702 ac_res=-l$ac_lib
12703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12705 if ac_fn_c_try_link "$LINENO"; then :
12706 ac_cv_search_inet_aton=$ac_res
12708 rm -f core conftest.err conftest.$ac_objext \
12709 conftest$ac_exeext
12710 if test "${ac_cv_search_inet_aton+set}" = set; then :
12711 break
12713 done
12714 if test "${ac_cv_search_inet_aton+set}" = set; then :
12716 else
12717 ac_cv_search_inet_aton=no
12719 rm conftest.$ac_ext
12720 LIBS=$ac_func_search_save_LIBS
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12723 $as_echo "$ac_cv_search_inet_aton" >&6; }
12724 ac_res=$ac_cv_search_inet_aton
12725 if test "$ac_res" != no; then :
12726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12731 for ac_func in \
12732 getaddrinfo \
12733 getnameinfo \
12734 getnetbyname \
12735 getprotobyname \
12736 getprotobynumber \
12737 getservbyport \
12738 inet_network \
12739 inet_ntop \
12740 inet_pton \
12741 sendmsg \
12742 socketpair \
12744 do :
12745 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12746 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12747 eval as_val=\$$as_ac_var
12748 if test "x$as_val" = x""yes; then :
12749 cat >>confdefs.h <<_ACEOF
12750 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12751 _ACEOF
12754 done
12757 LDAPLIBS=""
12759 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12760 then
12761 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12763 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
12765 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
12766 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 ac_check_lib_save_LIBS=$LIBS
12770 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12774 /* Override any GCC internal prototype to avoid an error.
12775 Use char because int might match the return type of a GCC
12776 builtin and then its argument prototype would still apply. */
12777 #ifdef __cplusplus
12778 extern "C"
12779 #endif
12780 char ldap_initialize ();
12782 main ()
12784 return ldap_initialize ();
12786 return 0;
12788 _ACEOF
12789 if ac_fn_c_try_link "$LINENO"; then :
12790 ac_cv_lib_ldap_r_ldap_initialize=yes
12791 else
12792 ac_cv_lib_ldap_r_ldap_initialize=no
12794 rm -f core conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12796 LIBS=$ac_check_lib_save_LIBS
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12799 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12800 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
12802 $as_echo_n "checking for ber_init in -llber... " >&6; }
12803 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
12804 $as_echo_n "(cached) " >&6
12805 else
12806 ac_check_lib_save_LIBS=$LIBS
12807 LIBS="-llber $LIBPTHREAD $LIBS"
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12811 /* Override any GCC internal prototype to avoid an error.
12812 Use char because int might match the return type of a GCC
12813 builtin and then its argument prototype would still apply. */
12814 #ifdef __cplusplus
12815 extern "C"
12816 #endif
12817 char ber_init ();
12819 main ()
12821 return ber_init ();
12823 return 0;
12825 _ACEOF
12826 if ac_fn_c_try_link "$LINENO"; then :
12827 ac_cv_lib_lber_ber_init=yes
12828 else
12829 ac_cv_lib_lber_ber_init=no
12831 rm -f core conftest.err conftest.$ac_objext \
12832 conftest$ac_exeext conftest.$ac_ext
12833 LIBS=$ac_check_lib_save_LIBS
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
12836 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
12837 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
12839 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
12841 LDAPLIBS="-lldap_r -llber"
12848 ac_wine_check_funcs_save_LIBS="$LIBS"
12849 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12850 for ac_func in \
12851 ldap_count_references \
12852 ldap_first_reference \
12853 ldap_next_reference \
12854 ldap_parse_reference \
12855 ldap_parse_sort_control \
12856 ldap_parse_sortresponse_control \
12857 ldap_parse_vlv_control \
12858 ldap_parse_vlvresponse_control
12859 do :
12860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12861 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12862 eval as_val=\$$as_ac_var
12863 if test "x$as_val" = x""yes; then :
12864 cat >>confdefs.h <<_ACEOF
12865 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12866 _ACEOF
12869 done
12871 LIBS="$ac_wine_check_funcs_save_LIBS"
12873 if test "x$LDAPLIBS" = "x"; then :
12874 case "x$with_ldap" in
12875 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
12876 xno) ;;
12877 *) as_fn_error "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
12878 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
12879 esac
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
12883 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
12884 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
12885 $as_echo_n "(cached) " >&6
12886 else
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12889 #include <sys/stat.h>
12891 main ()
12893 mkdir("foo");
12895 return 0;
12897 _ACEOF
12898 if ac_fn_c_try_compile "$LINENO"; then :
12899 wine_cv_one_arg_mkdir=yes
12900 else
12901 wine_cv_one_arg_mkdir=no
12903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
12906 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
12907 if test "$wine_cv_one_arg_mkdir" = "yes"
12908 then
12910 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12916 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12917 if test "${ac_cv_c_const+set}" = set; then :
12918 $as_echo_n "(cached) " >&6
12919 else
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12924 main ()
12926 /* FIXME: Include the comments suggested by Paul. */
12927 #ifndef __cplusplus
12928 /* Ultrix mips cc rejects this. */
12929 typedef int charset[2];
12930 const charset cs;
12931 /* SunOS 4.1.1 cc rejects this. */
12932 char const *const *pcpcc;
12933 char **ppc;
12934 /* NEC SVR4.0.2 mips cc rejects this. */
12935 struct point {int x, y;};
12936 static struct point const zero = {0,0};
12937 /* AIX XL C 1.02.0.0 rejects this.
12938 It does not let you subtract one const X* pointer from another in
12939 an arm of an if-expression whose if-part is not a constant
12940 expression */
12941 const char *g = "string";
12942 pcpcc = &g + (g ? g-g : 0);
12943 /* HPUX 7.0 cc rejects these. */
12944 ++pcpcc;
12945 ppc = (char**) pcpcc;
12946 pcpcc = (char const *const *) ppc;
12947 { /* SCO 3.2v4 cc rejects this. */
12948 char *t;
12949 char const *s = 0 ? (char *) 0 : (char const *) 0;
12951 *t++ = 0;
12952 if (s) return 0;
12954 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12955 int x[] = {25, 17};
12956 const int *foo = &x[0];
12957 ++foo;
12959 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12960 typedef const int *iptr;
12961 iptr p = 0;
12962 ++p;
12964 { /* AIX XL C 1.02.0.0 rejects this saying
12965 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12966 struct s { int j; const int *ap[3]; };
12967 struct s *b; b->j = 5;
12969 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12970 const int foo = 10;
12971 if (!foo) return 0;
12973 return !cs[0] && !zero.x;
12974 #endif
12977 return 0;
12979 _ACEOF
12980 if ac_fn_c_try_compile "$LINENO"; then :
12981 ac_cv_c_const=yes
12982 else
12983 ac_cv_c_const=no
12985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12988 $as_echo "$ac_cv_c_const" >&6; }
12989 if test $ac_cv_c_const = no; then
12991 $as_echo "#define const /**/" >>confdefs.h
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12996 $as_echo_n "checking for inline... " >&6; }
12997 if test "${ac_cv_c_inline+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 ac_cv_c_inline=no
13001 for ac_kw in inline __inline__ __inline; do
13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h. */
13004 #ifndef __cplusplus
13005 typedef int foo_t;
13006 static $ac_kw foo_t static_foo () {return 0; }
13007 $ac_kw foo_t foo () {return 0; }
13008 #endif
13010 _ACEOF
13011 if ac_fn_c_try_compile "$LINENO"; then :
13012 ac_cv_c_inline=$ac_kw
13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13015 test "$ac_cv_c_inline" != no && break
13016 done
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13020 $as_echo "$ac_cv_c_inline" >&6; }
13022 case $ac_cv_c_inline in
13023 inline | yes) ;;
13025 case $ac_cv_c_inline in
13026 no) ac_val=;;
13027 *) ac_val=$ac_cv_c_inline;;
13028 esac
13029 cat >>confdefs.h <<_ACEOF
13030 #ifndef __cplusplus
13031 #define inline $ac_val
13032 #endif
13033 _ACEOF
13035 esac
13037 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13038 if test "x$ac_cv_type_mode_t" = x""yes; then :
13040 cat >>confdefs.h <<_ACEOF
13041 #define HAVE_MODE_T 1
13042 _ACEOF
13046 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13047 if test "x$ac_cv_type_off_t" = x""yes; then :
13049 cat >>confdefs.h <<_ACEOF
13050 #define HAVE_OFF_T 1
13051 _ACEOF
13055 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13056 if test "x$ac_cv_type_pid_t" = x""yes; then :
13058 cat >>confdefs.h <<_ACEOF
13059 #define HAVE_PID_T 1
13060 _ACEOF
13064 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13065 if test "x$ac_cv_type_size_t" = x""yes; then :
13067 cat >>confdefs.h <<_ACEOF
13068 #define HAVE_SIZE_T 1
13069 _ACEOF
13073 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13074 if test "x$ac_cv_type_ssize_t" = x""yes; then :
13076 cat >>confdefs.h <<_ACEOF
13077 #define HAVE_SSIZE_T 1
13078 _ACEOF
13082 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13083 if test "x$ac_cv_type_long_long" = x""yes; then :
13085 cat >>confdefs.h <<_ACEOF
13086 #define HAVE_LONG_LONG 1
13087 _ACEOF
13091 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13092 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
13094 cat >>confdefs.h <<_ACEOF
13095 #define HAVE_FSBLKCNT_T 1
13096 _ACEOF
13100 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13101 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
13103 cat >>confdefs.h <<_ACEOF
13104 #define HAVE_FSFILCNT_T 1
13105 _ACEOF
13110 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13111 #include <signal.h>
13113 if test "x$ac_cv_type_sigset_t" = x""yes; then :
13115 cat >>confdefs.h <<_ACEOF
13116 #define HAVE_SIGSET_T 1
13117 _ACEOF
13122 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13124 if test "x$ac_cv_type_request_sense" = x""yes; then :
13126 cat >>confdefs.h <<_ACEOF
13127 #define HAVE_REQUEST_SENSE 1
13128 _ACEOF
13134 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13135 #ifdef HAVE_SYS_SOCKET_H
13136 #include <sys/socket.h>
13137 #endif
13138 #ifdef HAVE_SYS_SOCKETVAR_H
13139 #include <sys/socketvar.h>
13140 #endif
13141 #ifdef HAVE_NET_ROUTE_H
13142 #include <net/route.h>
13143 #endif
13144 #ifdef HAVE_NETINET_IN_H
13145 #include <netinet/in.h>
13146 #endif
13147 #ifdef HAVE_NETINET_IN_SYSTM_H
13148 #include <netinet/in_systm.h>
13149 #endif
13150 #ifdef HAVE_NETINET_IP_H
13151 #include <netinet/ip.h>
13152 #endif
13153 #ifdef HAVE_NETINET_IN_PCB_H
13154 #include <netinet/in_pcb.h>
13155 #endif
13157 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
13159 cat >>confdefs.h <<_ACEOF
13160 #define HAVE_STRUCT_XINPGEN 1
13161 _ACEOF
13167 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13168 #include <linux/input.h>
13169 #endif
13171 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
13173 cat >>confdefs.h <<_ACEOF
13174 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13175 _ACEOF
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13182 $as_echo_n "checking for sigaddset... " >&6; }
13183 if test "${wine_cv_have_sigaddset+set}" = set; then :
13184 $as_echo_n "(cached) " >&6
13185 else
13186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h. */
13188 #include <signal.h>
13190 main ()
13192 sigset_t set; sigaddset(&set,SIGTERM);
13194 return 0;
13196 _ACEOF
13197 if ac_fn_c_try_link "$LINENO"; then :
13198 wine_cv_have_sigaddset=yes
13199 else
13200 wine_cv_have_sigaddset=no
13202 rm -f core conftest.err conftest.$ac_objext \
13203 conftest$ac_exeext conftest.$ac_ext
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13206 $as_echo "$wine_cv_have_sigaddset" >&6; }
13207 if test "$wine_cv_have_sigaddset" = "yes"
13208 then
13210 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13216 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13217 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13218 $as_echo_n "(cached) " >&6
13219 else
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13222 #include <netdb.h>
13224 main ()
13227 char *name=0;
13228 struct hostent he;
13229 struct hostent *result;
13230 char *buf=0;
13231 int bufsize=0;
13232 int res,errnr;
13233 char *addr=0;
13234 int addrlen=0;
13235 int addrtype=0;
13236 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13237 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13240 return 0;
13242 _ACEOF
13243 if ac_fn_c_try_link "$LINENO"; then :
13244 wine_cv_linux_gethostbyname_r_6=yes
13245 else
13246 wine_cv_linux_gethostbyname_r_6=no
13249 rm -f core conftest.err conftest.$ac_objext \
13250 conftest$ac_exeext conftest.$ac_ext
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13254 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13255 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13256 then
13258 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13262 if test "$ac_cv_header_linux_joystick_h" = "yes"
13263 then
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13265 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13266 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
13268 else
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h. */
13272 #include <sys/ioctl.h>
13273 #include <sys/types.h>
13274 #include <linux/joystick.h>
13276 struct js_event blub;
13277 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13278 #error "no 2.2 header"
13279 #endif
13282 main ()
13284 /*empty*/
13286 return 0;
13288 _ACEOF
13289 if ac_fn_c_try_compile "$LINENO"; then :
13290 wine_cv_linux_joystick_22_api=yes
13291 else
13292 wine_cv_linux_joystick_22_api=no
13294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13298 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13299 if test "$wine_cv_linux_joystick_22_api" = "yes"
13300 then
13302 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13308 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13309 #ifdef HAVE_SYS_PARAM_H
13310 # include <sys/param.h>
13311 #endif
13312 #ifdef HAVE_SYS_MOUNT_H
13313 # include <sys/mount.h>
13314 #endif
13315 #ifdef HAVE_SYS_VFS_H
13316 # include <sys/vfs.h>
13317 #endif
13318 #ifdef HAVE_SYS_STATFS_H
13319 # include <sys/statfs.h>
13320 #endif
13322 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13324 cat >>confdefs.h <<_ACEOF
13325 #define HAVE_STRUCT_STATFS_F_BFREE 1
13326 _ACEOF
13330 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13331 #ifdef HAVE_SYS_PARAM_H
13332 # include <sys/param.h>
13333 #endif
13334 #ifdef HAVE_SYS_MOUNT_H
13335 # include <sys/mount.h>
13336 #endif
13337 #ifdef HAVE_SYS_VFS_H
13338 # include <sys/vfs.h>
13339 #endif
13340 #ifdef HAVE_SYS_STATFS_H
13341 # include <sys/statfs.h>
13342 #endif
13344 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13346 cat >>confdefs.h <<_ACEOF
13347 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13348 _ACEOF
13352 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13353 #ifdef HAVE_SYS_PARAM_H
13354 # include <sys/param.h>
13355 #endif
13356 #ifdef HAVE_SYS_MOUNT_H
13357 # include <sys/mount.h>
13358 #endif
13359 #ifdef HAVE_SYS_VFS_H
13360 # include <sys/vfs.h>
13361 #endif
13362 #ifdef HAVE_SYS_STATFS_H
13363 # include <sys/statfs.h>
13364 #endif
13366 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13368 cat >>confdefs.h <<_ACEOF
13369 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13370 _ACEOF
13374 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13375 #ifdef HAVE_SYS_PARAM_H
13376 # include <sys/param.h>
13377 #endif
13378 #ifdef HAVE_SYS_MOUNT_H
13379 # include <sys/mount.h>
13380 #endif
13381 #ifdef HAVE_SYS_VFS_H
13382 # include <sys/vfs.h>
13383 #endif
13384 #ifdef HAVE_SYS_STATFS_H
13385 # include <sys/statfs.h>
13386 #endif
13388 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13390 cat >>confdefs.h <<_ACEOF
13391 #define HAVE_STRUCT_STATFS_F_FFREE 1
13392 _ACEOF
13396 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13397 #ifdef HAVE_SYS_PARAM_H
13398 # include <sys/param.h>
13399 #endif
13400 #ifdef HAVE_SYS_MOUNT_H
13401 # include <sys/mount.h>
13402 #endif
13403 #ifdef HAVE_SYS_VFS_H
13404 # include <sys/vfs.h>
13405 #endif
13406 #ifdef HAVE_SYS_STATFS_H
13407 # include <sys/statfs.h>
13408 #endif
13410 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13412 cat >>confdefs.h <<_ACEOF
13413 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13414 _ACEOF
13418 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13419 #ifdef HAVE_SYS_PARAM_H
13420 # include <sys/param.h>
13421 #endif
13422 #ifdef HAVE_SYS_MOUNT_H
13423 # include <sys/mount.h>
13424 #endif
13425 #ifdef HAVE_SYS_VFS_H
13426 # include <sys/vfs.h>
13427 #endif
13428 #ifdef HAVE_SYS_STATFS_H
13429 # include <sys/statfs.h>
13430 #endif
13432 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13434 cat >>confdefs.h <<_ACEOF
13435 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13436 _ACEOF
13442 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13443 #include <sys/statvfs.h>
13444 #endif
13446 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13448 cat >>confdefs.h <<_ACEOF
13449 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13450 _ACEOF
13456 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13457 #ifdef HAVE_SYS_SOCKET_H
13458 # include <sys/socket.h>
13459 #endif
13460 #ifdef HAVE_SYS_UN_H
13461 # include <sys/un.h>
13462 #endif
13464 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13466 cat >>confdefs.h <<_ACEOF
13467 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13468 _ACEOF
13472 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13473 #ifdef HAVE_SYS_SOCKET_H
13474 # include <sys/socket.h>
13475 #endif
13476 #ifdef HAVE_SYS_UN_H
13477 # include <sys/un.h>
13478 #endif
13480 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13482 cat >>confdefs.h <<_ACEOF
13483 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13484 _ACEOF
13488 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13489 #ifdef HAVE_SYS_SOCKET_H
13490 # include <sys/socket.h>
13491 #endif
13492 #ifdef HAVE_SYS_UN_H
13493 # include <sys/un.h>
13494 #endif
13496 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13498 cat >>confdefs.h <<_ACEOF
13499 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13500 _ACEOF
13506 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13507 #ifdef HAVE_SCSI_SG_H
13508 #include <scsi/sg.h>
13509 #endif
13511 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13513 cat >>confdefs.h <<_ACEOF
13514 #define HAVE_SCSIREQ_T_CMD 1
13515 _ACEOF
13519 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>
13520 #ifdef HAVE_SCSI_SG_H
13521 #include <scsi/sg.h>
13522 #endif
13524 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13526 cat >>confdefs.h <<_ACEOF
13527 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13528 _ACEOF
13534 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13536 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13538 cat >>confdefs.h <<_ACEOF
13539 #define HAVE_SIGINFO_T_SI_FD 1
13540 _ACEOF
13546 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13547 #ifdef HAVE_SYS_MTIO_H
13548 #include <sys/mtio.h>
13549 #endif
13551 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13553 cat >>confdefs.h <<_ACEOF
13554 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13555 _ACEOF
13559 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13560 #ifdef HAVE_SYS_MTIO_H
13561 #include <sys/mtio.h>
13562 #endif
13564 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13566 cat >>confdefs.h <<_ACEOF
13567 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13568 _ACEOF
13572 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13573 #ifdef HAVE_SYS_MTIO_H
13574 #include <sys/mtio.h>
13575 #endif
13577 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
13579 cat >>confdefs.h <<_ACEOF
13580 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13581 _ACEOF
13587 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13588 #include <getopt.h>
13589 #endif
13591 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13593 cat >>confdefs.h <<_ACEOF
13594 #define HAVE_STRUCT_OPTION_NAME 1
13595 _ACEOF
13601 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13602 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13604 cat >>confdefs.h <<_ACEOF
13605 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13606 _ACEOF
13610 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13611 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13613 cat >>confdefs.h <<_ACEOF
13614 #define HAVE_STRUCT_STAT_ST_MTIM 1
13615 _ACEOF
13619 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13620 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
13622 cat >>confdefs.h <<_ACEOF
13623 #define HAVE_STRUCT_STAT_ST_CTIM 1
13624 _ACEOF
13628 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13629 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
13631 cat >>confdefs.h <<_ACEOF
13632 #define HAVE_STRUCT_STAT_ST_ATIM 1
13633 _ACEOF
13639 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
13640 #include <sys/types.h>
13641 #endif
13642 #ifdef HAVE_NETINET_IN_H
13643 #include <netinet/in.h>
13644 #endif
13646 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
13648 cat >>confdefs.h <<_ACEOF
13649 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13650 _ACEOF
13656 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13657 #include <sys/types.h>
13658 #endif
13659 #ifdef HAVE_NETINET_IN_H
13660 # include <netinet/in.h>
13661 #endif
13662 #ifdef HAVE_ARPA_NAMESER_H
13663 # include <arpa/nameser.h>
13664 #endif
13666 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
13668 cat >>confdefs.h <<_ACEOF
13669 #define HAVE_NS_MSG__MSG_PTR 1
13670 _ACEOF
13676 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13677 #include <sys/types.h>
13678 #endif
13679 #ifdef HAVE_ALIAS_H
13680 #include <alias.h>
13681 #endif
13682 #ifdef HAVE_SYS_SOCKET_H
13683 #include <sys/socket.h>
13684 #endif
13685 #ifdef HAVE_SYS_SOCKETVAR_H
13686 #include <sys/socketvar.h>
13687 #endif
13688 #ifdef HAVE_SYS_TIMEOUT_H
13689 #include <sys/timeout.h>
13690 #endif
13691 #ifdef HAVE_NETINET_IN_H
13692 #include <netinet/in.h>
13693 #endif
13694 #ifdef HAVE_NETINET_IN_SYSTM_H
13695 #include <netinet/in_systm.h>
13696 #endif
13697 #ifdef HAVE_NETINET_IP_H
13698 #include <netinet/ip.h>
13699 #endif
13700 #ifdef HAVE_NETINET_IP_VAR_H
13701 #include <netinet/ip_var.h>
13702 #endif
13703 #ifdef HAVE_NETINET_IP_ICMP_H
13704 #include <netinet/ip_icmp.h>
13705 #endif
13706 #ifdef HAVE_NETINET_ICMP_VAR
13707 #include <netinet/icmp_var.h>
13708 #endif
13710 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
13712 cat >>confdefs.h <<_ACEOF
13713 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13714 _ACEOF
13720 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13721 #include <sys/types.h>
13722 #endif
13723 #ifdef HAVE_NET_IF_H
13724 # include <net/if.h>
13725 #endif
13727 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
13729 cat >>confdefs.h <<_ACEOF
13730 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13731 _ACEOF
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
13738 $as_echo_n "checking for timezone variable... " >&6; }
13739 if test "${ac_cv_have_timezone+set}" = set; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13744 #include <time.h>
13746 main ()
13748 timezone = 1
13750 return 0;
13752 _ACEOF
13753 if ac_fn_c_try_link "$LINENO"; then :
13754 ac_cv_have_timezone="yes"
13755 else
13756 ac_cv_have_timezone="no"
13758 rm -f core conftest.err conftest.$ac_objext \
13759 conftest$ac_exeext conftest.$ac_ext
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
13762 $as_echo "$ac_cv_have_timezone" >&6; }
13763 if test "$ac_cv_have_timezone" = "yes"
13764 then
13766 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
13770 $as_echo_n "checking for daylight variable... " >&6; }
13771 if test "${ac_cv_have_daylight+set}" = set; then :
13772 $as_echo_n "(cached) " >&6
13773 else
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13776 #include <time.h>
13778 main ()
13780 daylight = 1
13782 return 0;
13784 _ACEOF
13785 if ac_fn_c_try_link "$LINENO"; then :
13786 ac_cv_have_daylight="yes"
13787 else
13788 ac_cv_have_daylight="no"
13790 rm -f core conftest.err conftest.$ac_objext \
13791 conftest$ac_exeext conftest.$ac_ext
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
13794 $as_echo "$ac_cv_have_daylight" >&6; }
13795 if test "$ac_cv_have_daylight" = "yes"
13796 then
13798 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
13803 $as_echo_n "checking for isinf... " >&6; }
13804 if test "${ac_cv_have_isinf+set}" = set; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h. */
13809 #include <math.h>
13811 main ()
13813 float f = 0.0; int i=isinf(f)
13815 return 0;
13817 _ACEOF
13818 if ac_fn_c_try_link "$LINENO"; then :
13819 ac_cv_have_isinf="yes"
13820 else
13821 ac_cv_have_isinf="no"
13823 rm -f core conftest.err conftest.$ac_objext \
13824 conftest$ac_exeext conftest.$ac_ext
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
13827 $as_echo "$ac_cv_have_isinf" >&6; }
13828 if test "$ac_cv_have_isinf" = "yes"
13829 then
13831 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
13836 $as_echo_n "checking for isnan... " >&6; }
13837 if test "${ac_cv_have_isnan+set}" = set; then :
13838 $as_echo_n "(cached) " >&6
13839 else
13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h. */
13842 #include <math.h>
13844 main ()
13846 float f = 0.0; int i=isnan(f)
13848 return 0;
13850 _ACEOF
13851 if ac_fn_c_try_link "$LINENO"; then :
13852 ac_cv_have_isnan="yes"
13853 else
13854 ac_cv_have_isnan="no"
13856 rm -f core conftest.err conftest.$ac_objext \
13857 conftest$ac_exeext conftest.$ac_ext
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
13860 $as_echo "$ac_cv_have_isnan" >&6; }
13861 if test "$ac_cv_have_isnan" = "yes"
13862 then
13864 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13869 case $host_cpu in
13870 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
13871 $as_echo_n "checking whether we need to define __i386__... " >&6; }
13872 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
13873 $as_echo_n "(cached) " >&6
13874 else
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13877 #ifndef __i386__
13879 #endif
13880 _ACEOF
13881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13882 $EGREP "yes" >/dev/null 2>&1; then :
13883 ac_cv_cpp_def___i386__=yes
13884 else
13885 ac_cv_cpp_def___i386__=no
13887 rm -f conftest*
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
13891 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
13892 if test $ac_cv_cpp_def___i386__ = yes; then :
13893 CFLAGS="$CFLAGS -D__i386__"
13894 LINTFLAGS="$LINTFLAGS -D__i386__"
13895 fi ;;
13896 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
13897 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
13898 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
13899 $as_echo_n "(cached) " >&6
13900 else
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13903 #ifndef __x86_64__
13905 #endif
13906 _ACEOF
13907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13908 $EGREP "yes" >/dev/null 2>&1; then :
13909 ac_cv_cpp_def___x86_64__=yes
13910 else
13911 ac_cv_cpp_def___x86_64__=no
13913 rm -f conftest*
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
13917 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
13918 if test $ac_cv_cpp_def___x86_64__ = yes; then :
13919 CFLAGS="$CFLAGS -D__x86_64__"
13920 LINTFLAGS="$LINTFLAGS -D__x86_64__"
13921 fi ;;
13922 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
13923 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
13924 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
13925 $as_echo_n "(cached) " >&6
13926 else
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13929 #ifndef __ALPHA__
13931 #endif
13932 _ACEOF
13933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13934 $EGREP "yes" >/dev/null 2>&1; then :
13935 ac_cv_cpp_def___ALPHA__=yes
13936 else
13937 ac_cv_cpp_def___ALPHA__=no
13939 rm -f conftest*
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
13943 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
13944 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
13945 CFLAGS="$CFLAGS -D__ALPHA__"
13946 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
13947 fi ;;
13948 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
13949 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
13950 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h. */
13955 #ifndef __sparc__
13957 #endif
13958 _ACEOF
13959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13960 $EGREP "yes" >/dev/null 2>&1; then :
13961 ac_cv_cpp_def___sparc__=yes
13962 else
13963 ac_cv_cpp_def___sparc__=no
13965 rm -f conftest*
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
13969 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
13970 if test $ac_cv_cpp_def___sparc__ = yes; then :
13971 CFLAGS="$CFLAGS -D__sparc__"
13972 LINTFLAGS="$LINTFLAGS -D__sparc__"
13973 fi ;;
13974 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
13975 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
13976 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
13977 $as_echo_n "(cached) " >&6
13978 else
13979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13981 #ifndef __powerpc__
13983 #endif
13984 _ACEOF
13985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13986 $EGREP "yes" >/dev/null 2>&1; then :
13987 ac_cv_cpp_def___powerpc__=yes
13988 else
13989 ac_cv_cpp_def___powerpc__=no
13991 rm -f conftest*
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
13995 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
13996 if test $ac_cv_cpp_def___powerpc__ = yes; then :
13997 CFLAGS="$CFLAGS -D__powerpc__"
13998 LINTFLAGS="$LINTFLAGS -D__powerpc__"
13999 fi ;;
14000 esac
14002 case $host_vendor in
14003 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14004 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14005 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
14006 $as_echo_n "(cached) " >&6
14007 else
14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14010 #ifndef __sun__
14012 #endif
14013 _ACEOF
14014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14015 $EGREP "yes" >/dev/null 2>&1; then :
14016 ac_cv_cpp_def___sun__=yes
14017 else
14018 ac_cv_cpp_def___sun__=no
14020 rm -f conftest*
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14024 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14025 if test $ac_cv_cpp_def___sun__ = yes; then :
14026 CFLAGS="$CFLAGS -D__sun__"
14027 LINTFLAGS="$LINTFLAGS -D__sun__"
14028 fi ;;
14029 esac
14035 ac_config_commands="$ac_config_commands include/stamp-h"
14038 ALL_MAKEFILE_DEPENDS="
14039 # Rules automatically generated by configure
14041 .INIT: Makefile
14042 .MAKEFILEDEPS:
14043 all: Makefile
14044 Makefile: Makefile.in Make.rules config.status
14045 @./config.status Make.tmp Makefile"
14047 ALL_WINETEST_DEPENDS="# Test binaries"
14049 ALL_TEST_BINARIES=""
14052 wine_fn_append_file ()
14054 as_fn_append $1 " \\$as_nl $2"
14057 wine_fn_append_rule ()
14059 as_fn_append $1 "$as_nl$2"
14062 wine_fn_all_dir_rules ()
14064 wine_fn_append_file ALL_DIRS $1
14065 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14066 "__clean__: $1/__clean__
14067 .PHONY: $1/__clean__
14068 $1/__clean__: $1/Makefile
14069 @cd $1 && \$(MAKE) clean
14070 \$(RM) $1/Makefile
14071 $1/Makefile: $1/Makefile.in config.status $2
14072 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend
14073 depend: $1/__depend__
14074 .PHONY: $1/__depend__
14075 $1/__depend__: \$(MAKEDEP) dummy
14076 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend"
14079 wine_fn_config_makefile ()
14081 ac_dir=$1
14082 ac_enable=$2
14083 eval as_val=\$$ac_enable
14084 if test "x$as_val" = x""no; then :
14085 return 0
14088 wine_fn_all_dir_rules $ac_dir "Make.rules \$(MAKEDEP)"
14089 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14090 "all: $ac_dir
14091 .PHONY: $ac_dir
14092 $ac_dir: $ac_dir/Makefile dummy
14093 @cd $ac_dir && \$(MAKE)
14094 install:: $ac_dir
14095 @cd $ac_dir && \$(MAKE) install
14096 install-lib:: $ac_dir
14097 @cd $ac_dir && \$(MAKE) install-lib
14098 install-dev:: $ac_dir
14099 @cd $ac_dir && \$(MAKE) install-dev
14100 uninstall:: $ac_dir/Makefile
14101 @cd $ac_dir && \$(MAKE) uninstall"
14104 wine_fn_config_lib ()
14106 ac_name=$1
14107 ac_dir=dlls/$ac_name
14108 wine_fn_all_dir_rules $ac_dir "dlls/Makeimplib.rules \$(MAKEDEP)"
14109 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14110 "all __builddeps__: $ac_dir
14111 __buildcrossdeps__: $ac_dir/lib$ac_name.cross.a
14112 $ac_dir $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include
14113 $ac_dir: dummy
14114 @cd $ac_dir && \$(MAKE)
14115 $ac_dir/lib$ac_name.cross.a: dummy
14116 @cd $ac_dir && \$(MAKE) lib$ac_name.cross.a
14117 install install-dev:: $ac_dir
14118 @cd $ac_dir && \$(MAKE) install
14119 uninstall:: $ac_dir/Makefile
14120 @cd $ac_dir && \$(MAKE) uninstall"
14123 wine_fn_config_dll ()
14125 ac_dir=$1
14126 ac_enable=$2
14127 ac_implib=$3
14128 ac_implibsrc=$4
14129 ac_file="dlls/$ac_dir/lib$ac_implib"
14130 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14132 wine_fn_all_dir_rules dlls/$ac_dir "dlls/Makedll.rules \$(MAKEDEP)"
14134 eval as_val=\$$ac_enable
14135 if test "x$as_val" = x""no; then :
14136 test "$ac_enable" != enable_win16 || return 0
14137 else
14138 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14139 "all: dlls/$ac_dir
14140 .PHONY: dlls/$ac_dir
14141 dlls/$ac_dir: dlls/$ac_dir/Makefile __builddeps__ dummy
14142 @cd dlls/$ac_dir && \$(MAKE)
14143 install:: dlls/$ac_dir/Makefile __builddeps__
14144 @cd dlls/$ac_dir && \$(MAKE) install
14145 install-lib:: dlls/$ac_dir/Makefile __builddeps__
14146 @cd dlls/$ac_dir && \$(MAKE) install-lib
14147 uninstall manpages htmlpages sgmlpages xmlpages:: dlls/$ac_dir/Makefile
14148 @cd dlls/$ac_dir && \$(MAKE) \$@"
14151 if test -n "$ac_implibsrc"
14152 then
14153 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14154 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14155 __buildcrossdeps__: $ac_file.cross.a
14156 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14157 $ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile
14158 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
14159 $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/Makefile dummy
14160 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
14161 install-dev:: dlls/$ac_dir/Makefile __builddeps__
14162 @cd dlls/$ac_dir && \$(MAKE) install-dev"
14163 elif test -n "$ac_implib"
14164 then
14165 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14166 "__builddeps__: $ac_file.$IMPLIBEXT
14167 __buildcrossdeps__: $ac_file.cross.a
14168 $ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile $ac_deps
14169 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
14170 install-dev:: dlls/$ac_dir/Makefile __builddeps__
14171 @cd dlls/$ac_dir && \$(MAKE) install-dev"
14173 if test "$ac_dir" != "$ac_implib"
14174 then
14175 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14176 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14177 __buildcrossdeps__: dlls/lib$ac_implib.cross.a
14178 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14179 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.$IMPLIBEXT \$@
14180 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14181 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.cross.a \$@
14182 clean::
14183 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14188 wine_fn_config_program ()
14190 ac_dir=$1
14191 ac_enable=$2
14192 ac_install=$3
14193 wine_fn_all_dir_rules programs/$ac_dir "programs/Makeprog.rules \$(MAKEDEP)"
14195 eval as_val=\$$ac_enable
14196 if test "x$as_val" = x""no; then :
14198 else
14199 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14200 "all: programs/$ac_dir
14201 .PHONY: programs/$ac_dir
14202 programs/$ac_dir: programs/$ac_dir/Makefile __builddeps__ dummy
14203 @cd programs/$ac_dir && \$(MAKE)"
14205 test -n "$ac_install" || return
14206 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14207 "install install-lib:: programs/$ac_dir/Makefile __builddeps__
14208 @cd programs/$ac_dir && \$(MAKE) install
14209 uninstall:: programs/$ac_dir/Makefile
14210 @cd programs/$ac_dir && \$(MAKE) uninstall"
14211 if test "$ac_install" = installbin -a -n "$DLLEXT" -a "x$enable_tools" != xno
14212 then
14213 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14214 "install install-lib:: tools \$(DESTDIR)\$(bindir)
14215 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_dir
14216 uninstall::
14217 \$(RM) \$(DESTDIR)\$(bindir)/$ac_dir"
14222 wine_fn_config_test ()
14224 ac_dir=$1
14225 ac_name=$2
14226 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14227 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14228 "$ac_name.exe: \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT
14229 cp \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14230 $ac_name.rc:
14231 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14232 $ac_name.res: $ac_name.rc $ac_name.exe"
14233 wine_fn_all_dir_rules $ac_dir "Maketest.rules \$(MAKEDEP)"
14235 if test "x$enable_tests" = x""no; then :
14237 else
14238 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14239 "all programs/winetest: $ac_dir
14240 .PHONY: $ac_dir
14241 $ac_dir: $ac_dir/Makefile __builddeps__ dummy
14242 @cd $ac_dir && \$(MAKE)
14243 crosstest: $ac_dir/__crosstest__
14244 .PHONY: $ac_dir/__crosstest__
14245 $ac_dir/__crosstest__: $ac_dir/Makefile __buildcrossdeps__ dummy
14246 @cd $ac_dir && \$(MAKE) crosstest
14247 test: $ac_dir/__test__
14248 .PHONY: $ac_dir/__test__
14249 $ac_dir/__test__: dummy
14250 @cd $ac_dir && \$(MAKE) test
14251 testclean::
14252 \$(RM) $ac_dir/*.ok"
14256 wine_fn_config_tool ()
14258 ac_dir=$1
14259 ac_deps="Make.rules"
14260 if test "$ac_dir" != tools
14261 then
14262 ac_deps="$ac_deps \$(MAKEDEP)"
14264 wine_fn_all_dir_rules $ac_dir "$ac_deps"
14266 if test "x$enable_tools" = x""no; then :
14268 else
14269 case $ac_dir in
14270 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14271 "install:: $ac_dir
14272 @cd $ac_dir && \$(MAKE) install
14273 install-lib:: $ac_dir
14274 @cd $ac_dir && \$(MAKE) install-lib
14275 install-dev:: $ac_dir
14276 @cd $ac_dir && \$(MAKE) install-dev" ;;
14277 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14278 "install install-dev:: $ac_dir
14279 @cd $ac_dir && \$(MAKE) install" ;;
14280 esac
14281 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14282 "uninstall:: $ac_dir/Makefile
14283 @cd $ac_dir && \$(MAKE) uninstall
14284 all __tooldeps__: $ac_dir
14285 .PHONY: $ac_dir
14286 $ac_dir: $ac_dir/Makefile libs/port dummy
14287 @cd $ac_dir && \$(MAKE)"
14291 wine_fn_config_makerules ()
14293 ac_rules=$1
14294 ac_deps=$2
14295 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14296 "$ac_rules: $ac_rules.in $ac_deps config.status
14297 @./config.status $ac_rules
14298 distclean::
14299 \$(RM) $ac_rules"
14302 wine_fn_config_symlink ()
14304 ac_link=$1
14305 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14306 "$ac_link:
14307 @./config.status $ac_link
14308 distclean::
14309 \$(RM) $ac_link"
14311 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14312 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14313 if test "x$enable_fonts" != xno; then
14314 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14315 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14317 if test "x$enable_fonts" != xno; then
14318 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14319 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14321 if test "x$enable_fonts" != xno; then
14322 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14323 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14325 if test "x$enable_fonts" != xno; then
14326 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14327 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14329 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14330 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14331 ac_config_links="$ac_config_links wine:tools/winewrapper"
14332 wine_fn_config_symlink wine
14334 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14336 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14338 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14340 ac_config_commands="$ac_config_commands dlls/user32/resources"
14342 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14344 ac_config_commands="$ac_config_commands include/wine"
14347 wine_fn_config_makerules Make.rules
14348 MAKE_RULES=Make.rules
14349 ac_config_files="$ac_config_files Make.rules"
14351 wine_fn_config_makerules Maketest.rules Make.rules
14352 MAKE_TEST_RULES=Maketest.rules
14353 ac_config_files="$ac_config_files Maketest.rules"
14355 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14356 MAKE_DLL_RULES=dlls/Makedll.rules
14357 ac_config_files="$ac_config_files dlls/Makedll.rules"
14359 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14360 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14361 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14363 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14364 MAKE_PROG_RULES=programs/Makeprog.rules
14365 ac_config_files="$ac_config_files programs/Makeprog.rules"
14368 wine_fn_config_dll acledit enable_acledit
14369 wine_fn_config_dll aclui enable_aclui aclui
14370 wine_fn_config_dll activeds enable_activeds activeds
14371 wine_fn_config_dll actxprxy enable_actxprxy
14372 wine_fn_config_lib adsiid
14373 wine_fn_config_dll advapi32 enable_advapi32 advapi32
14374 wine_fn_config_test dlls/advapi32/tests advapi32_test
14375 wine_fn_config_dll advpack enable_advpack advpack
14376 wine_fn_config_test dlls/advpack/tests advpack_test
14377 wine_fn_config_dll amstream enable_amstream
14378 wine_fn_config_test dlls/amstream/tests amstream_test
14379 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14380 wine_fn_config_dll atl enable_atl atl
14381 wine_fn_config_test dlls/atl/tests atl_test
14382 wine_fn_config_dll authz enable_authz
14383 wine_fn_config_dll avicap32 enable_avicap32 avicap32
14384 wine_fn_config_dll avifil32 enable_avifil32 avifil32
14385 wine_fn_config_test dlls/avifil32/tests avifil32_test
14386 wine_fn_config_dll avifile.dll16 enable_win16
14387 wine_fn_config_dll avrt enable_avrt avrt
14388 wine_fn_config_dll bcrypt enable_bcrypt
14389 wine_fn_config_dll browseui enable_browseui
14390 wine_fn_config_test dlls/browseui/tests browseui_test
14391 wine_fn_config_dll cabinet enable_cabinet cabinet
14392 wine_fn_config_test dlls/cabinet/tests cabinet_test
14393 wine_fn_config_dll capi2032 enable_capi2032 capi2032
14394 wine_fn_config_dll cards enable_cards cards
14395 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14396 wine_fn_config_dll clusapi enable_clusapi clusapi
14397 wine_fn_config_dll comcat enable_comcat
14398 wine_fn_config_test dlls/comcat/tests comcat_test
14399 wine_fn_config_dll comctl32 enable_comctl32 comctl32
14400 wine_fn_config_test dlls/comctl32/tests comctl32_test
14401 wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
14402 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14403 wine_fn_config_dll comm.drv16 enable_win16
14404 wine_fn_config_dll commdlg.dll16 enable_win16
14405 wine_fn_config_dll compobj.dll16 enable_win16
14406 wine_fn_config_dll compstui enable_compstui compstui
14407 wine_fn_config_dll credui enable_credui credui
14408 wine_fn_config_test dlls/credui/tests credui_test
14409 wine_fn_config_dll crtdll enable_crtdll crtdll
14410 wine_fn_config_dll crypt32 enable_crypt32 crypt32
14411 wine_fn_config_test dlls/crypt32/tests crypt32_test
14412 wine_fn_config_dll cryptdlg enable_cryptdlg
14413 wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14414 wine_fn_config_dll cryptnet enable_cryptnet cryptnet
14415 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14416 wine_fn_config_dll cryptui enable_cryptui cryptui
14417 wine_fn_config_test dlls/cryptui/tests cryptui_test
14418 wine_fn_config_dll ctapi32 enable_ctapi32
14419 wine_fn_config_dll ctl3d.dll16 enable_win16
14420 wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14421 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14422 wine_fn_config_dll d3d10 enable_d3d10 d3d10
14423 wine_fn_config_test dlls/d3d10/tests d3d10_test
14424 wine_fn_config_dll d3d10core enable_d3d10core d3d10core
14425 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14426 wine_fn_config_dll d3d8 enable_d3d8 d3d8
14427 wine_fn_config_test dlls/d3d8/tests d3d8_test
14428 wine_fn_config_dll d3d9 enable_d3d9 d3d9
14429 wine_fn_config_test dlls/d3d9/tests d3d9_test
14430 wine_fn_config_dll d3dim enable_d3dim d3dim
14431 wine_fn_config_dll d3drm enable_d3drm d3drm
14432 wine_fn_config_test dlls/d3drm/tests d3drm_test
14433 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14434 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14435 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14436 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14437 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14438 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14439 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14440 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14441 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14442 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14443 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14444 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14445 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
14446 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14447 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14448 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14449 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14450 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14451 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14452 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14453 wine_fn_config_dll d3dxof enable_d3dxof d3dxof
14454 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14455 wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14456 wine_fn_config_dll dciman32 enable_dciman32 dciman32
14457 wine_fn_config_dll ddeml.dll16 enable_win16
14458 wine_fn_config_dll ddraw enable_ddraw ddraw
14459 wine_fn_config_test dlls/ddraw/tests ddraw_test
14460 wine_fn_config_dll ddrawex enable_ddrawex
14461 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14462 wine_fn_config_dll devenum enable_devenum
14463 wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
14464 wine_fn_config_test dlls/dinput/tests dinput_test
14465 wine_fn_config_dll dinput8 enable_dinput8 dinput8
14466 wine_fn_config_dll dispdib.dll16 enable_win16
14467 wine_fn_config_dll dispex enable_dispex
14468 wine_fn_config_test dlls/dispex/tests dispex_test
14469 wine_fn_config_dll display.drv16 enable_win16
14470 wine_fn_config_dll dmband enable_dmband
14471 wine_fn_config_dll dmcompos enable_dmcompos
14472 wine_fn_config_dll dmime enable_dmime
14473 wine_fn_config_dll dmloader enable_dmloader
14474 wine_fn_config_test dlls/dmloader/tests dmloader_test
14475 wine_fn_config_dll dmscript enable_dmscript
14476 wine_fn_config_dll dmstyle enable_dmstyle
14477 wine_fn_config_dll dmsynth enable_dmsynth
14478 wine_fn_config_dll dmusic enable_dmusic
14479 wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14480 wine_fn_config_dll dnsapi enable_dnsapi dnsapi
14481 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14482 wine_fn_config_dll dplay enable_dplay dplay
14483 wine_fn_config_dll dplayx enable_dplayx dplayx
14484 wine_fn_config_test dlls/dplayx/tests dplayx_test
14485 wine_fn_config_dll dpnaddr enable_dpnaddr
14486 wine_fn_config_dll dpnet enable_dpnet dpnet
14487 wine_fn_config_dll dpnhpast enable_dpnhpast
14488 wine_fn_config_dll dpnlobby enable_dpnlobby
14489 wine_fn_config_dll dpwsockx enable_dpwsockx
14490 wine_fn_config_dll drmclien enable_drmclien
14491 wine_fn_config_dll dsound enable_dsound dsound
14492 wine_fn_config_test dlls/dsound/tests dsound_test
14493 wine_fn_config_dll dssenh enable_dssenh
14494 wine_fn_config_dll dswave enable_dswave
14495 wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14496 wine_fn_config_dll dxdiagn enable_dxdiagn
14497 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14498 wine_fn_config_lib dxerr8
14499 wine_fn_config_lib dxerr9
14500 wine_fn_config_dll dxgi enable_dxgi dxgi
14501 wine_fn_config_test dlls/dxgi/tests dxgi_test
14502 wine_fn_config_lib dxguid
14503 wine_fn_config_dll faultrep enable_faultrep
14504 wine_fn_config_dll fltlib enable_fltlib
14505 wine_fn_config_dll fusion enable_fusion
14506 wine_fn_config_test dlls/fusion/tests fusion_test
14507 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14508 wine_fn_config_dll gdi.exe16 enable_win16
14509 wine_fn_config_dll gdi32 enable_gdi32 gdi32
14510 wine_fn_config_test dlls/gdi32/tests gdi32_test
14511 wine_fn_config_dll gdiplus enable_gdiplus gdiplus
14512 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14513 wine_fn_config_dll glu32 enable_glu32 glu32
14514 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14515 wine_fn_config_dll gpkcsp enable_gpkcsp
14516 wine_fn_config_dll hal enable_hal
14517 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14518 wine_fn_config_dll hid enable_hid hid
14519 wine_fn_config_dll hlink enable_hlink hlink
14520 wine_fn_config_test dlls/hlink/tests hlink_test
14521 wine_fn_config_dll hnetcfg enable_hnetcfg
14522 wine_fn_config_dll httpapi enable_httpapi
14523 wine_fn_config_dll iccvid enable_iccvid
14524 wine_fn_config_dll icmp enable_icmp
14525 wine_fn_config_dll ifsmgr.vxd enable_win16
14526 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14527 wine_fn_config_dll imagehlp enable_imagehlp imagehlp
14528 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14529 wine_fn_config_dll imm.dll16 enable_win16
14530 wine_fn_config_dll imm32 enable_imm32 imm32
14531 wine_fn_config_test dlls/imm32/tests imm32_test
14532 wine_fn_config_dll inetcomm enable_inetcomm inetcomm
14533 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14534 wine_fn_config_dll inetmib1 enable_inetmib1
14535 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14536 wine_fn_config_dll infosoft enable_infosoft
14537 wine_fn_config_test dlls/infosoft/tests infosoft_test
14538 wine_fn_config_dll initpki enable_initpki
14539 wine_fn_config_dll inkobj enable_inkobj
14540 wine_fn_config_dll inseng enable_inseng
14541 wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
14542 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
14543 wine_fn_config_dll itircl enable_itircl
14544 wine_fn_config_dll itss enable_itss
14545 wine_fn_config_test dlls/itss/tests itss_test
14546 wine_fn_config_dll jscript enable_jscript
14547 wine_fn_config_test dlls/jscript/tests jscript_test
14548 wine_fn_config_dll kernel32 enable_kernel32 kernel32
14549 wine_fn_config_test dlls/kernel32/tests kernel32_test
14550 wine_fn_config_dll keyboard.drv16 enable_win16
14551 wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14552 wine_fn_config_dll loadperf enable_loadperf loadperf
14553 wine_fn_config_dll localspl enable_localspl
14554 wine_fn_config_test dlls/localspl/tests localspl_test
14555 wine_fn_config_dll localui enable_localui
14556 wine_fn_config_test dlls/localui/tests localui_test
14557 wine_fn_config_dll lz32 enable_lz32 lz32
14558 wine_fn_config_test dlls/lz32/tests lz32_test
14559 wine_fn_config_dll lzexpand.dll16 enable_win16
14560 wine_fn_config_dll mapi32 enable_mapi32 mapi32
14561 wine_fn_config_test dlls/mapi32/tests mapi32_test
14562 wine_fn_config_dll mapistub enable_mapistub
14563 wine_fn_config_dll mciavi32 enable_mciavi32
14564 wine_fn_config_dll mcicda enable_mcicda
14565 wine_fn_config_dll mciqtz32 enable_mciqtz32
14566 wine_fn_config_dll mciseq enable_mciseq
14567 wine_fn_config_dll mciwave enable_mciwave
14568 wine_fn_config_dll midimap enable_midimap
14569 wine_fn_config_dll mlang enable_mlang mlang
14570 wine_fn_config_test dlls/mlang/tests mlang_test
14571 wine_fn_config_dll mmdevapi enable_mmdevapi
14572 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
14573 wine_fn_config_dll mmdevldr.vxd enable_win16
14574 wine_fn_config_dll mmsystem.dll16 enable_win16
14575 wine_fn_config_dll monodebg.vxd enable_win16
14576 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14577 wine_fn_config_dll mouse.drv16 enable_win16
14578 wine_fn_config_dll mpr enable_mpr mpr
14579 wine_fn_config_dll mprapi enable_mprapi mprapi
14580 wine_fn_config_dll msacm.dll16 enable_win16
14581 wine_fn_config_dll msacm32.drv enable_msacm32_drv
14582 wine_fn_config_dll msacm32 enable_msacm32 msacm32
14583 wine_fn_config_test dlls/msacm32/tests msacm32_test
14584 wine_fn_config_dll msadp32.acm enable_msadp32_acm
14585 wine_fn_config_dll mscat32 enable_mscat32
14586 wine_fn_config_dll mscms enable_mscms mscms
14587 wine_fn_config_test dlls/mscms/tests mscms_test
14588 wine_fn_config_dll mscoree enable_mscoree
14589 wine_fn_config_dll msctf enable_msctf
14590 wine_fn_config_test dlls/msctf/tests msctf_test
14591 wine_fn_config_dll msdaps enable_msdaps
14592 wine_fn_config_dll msdmo enable_msdmo msdmo
14593 wine_fn_config_dll msftedit enable_msftedit
14594 wine_fn_config_dll msg711.acm enable_msg711_acm
14595 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14596 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14597 wine_fn_config_dll mshtml enable_mshtml mshtml
14598 wine_fn_config_test dlls/mshtml/tests mshtml_test
14599 wine_fn_config_dll msi enable_msi msi
14600 wine_fn_config_test dlls/msi/tests msi_test
14601 wine_fn_config_dll msimg32 enable_msimg32 msimg32
14602 wine_fn_config_dll msimtf enable_msimtf
14603 wine_fn_config_dll msisip enable_msisip
14604 wine_fn_config_dll msisys.ocx enable_msisys_ocx
14605 wine_fn_config_dll msnet32 enable_msnet32
14606 wine_fn_config_dll msrle32 enable_msrle32
14607 wine_fn_config_dll mssign32 enable_mssign32
14608 wine_fn_config_dll mssip32 enable_mssip32
14609 wine_fn_config_dll mstask enable_mstask
14610 wine_fn_config_test dlls/mstask/tests mstask_test
14611 wine_fn_config_dll msvcirt enable_msvcirt
14612 wine_fn_config_dll msvcr100 enable_msvcr100
14613 wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
14614 wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
14615 wine_fn_config_dll msvcr80 enable_msvcr80
14616 wine_fn_config_dll msvcr90 enable_msvcr90
14617 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
14618 wine_fn_config_dll msvcrt enable_msvcrt msvcrt
14619 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
14620 wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
14621 wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
14622 wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
14623 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
14624 wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
14625 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
14626 wine_fn_config_dll msvidc32 enable_msvidc32
14627 wine_fn_config_dll msvideo.dll16 enable_win16
14628 wine_fn_config_dll mswsock enable_mswsock mswsock
14629 wine_fn_config_dll msxml3 enable_msxml3
14630 wine_fn_config_test dlls/msxml3/tests msxml3_test
14631 wine_fn_config_dll msxml4 enable_msxml4
14632 wine_fn_config_dll nddeapi enable_nddeapi nddeapi
14633 wine_fn_config_dll netapi32 enable_netapi32 netapi32
14634 wine_fn_config_test dlls/netapi32/tests netapi32_test
14635 wine_fn_config_dll newdev enable_newdev newdev
14636 wine_fn_config_dll ntdll enable_ntdll ntdll
14637 wine_fn_config_test dlls/ntdll/tests ntdll_test
14638 wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
14639 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
14640 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
14641 wine_fn_config_dll ntprint enable_ntprint
14642 wine_fn_config_test dlls/ntprint/tests ntprint_test
14643 wine_fn_config_dll objsel enable_objsel
14644 wine_fn_config_dll odbc32 enable_odbc32 odbc32
14645 wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
14646 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
14647 wine_fn_config_dll ole2.dll16 enable_win16
14648 wine_fn_config_dll ole2conv.dll16 enable_win16
14649 wine_fn_config_dll ole2disp.dll16 enable_win16
14650 wine_fn_config_dll ole2nls.dll16 enable_win16
14651 wine_fn_config_dll ole2prox.dll16 enable_win16
14652 wine_fn_config_dll ole2thk.dll16 enable_win16
14653 wine_fn_config_dll ole32 enable_ole32 ole32
14654 wine_fn_config_test dlls/ole32/tests ole32_test
14655 wine_fn_config_dll oleacc enable_oleacc oleacc
14656 wine_fn_config_test dlls/oleacc/tests oleacc_test
14657 wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
14658 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
14659 wine_fn_config_dll olecli.dll16 enable_win16
14660 wine_fn_config_dll olecli32 enable_olecli32 olecli32
14661 wine_fn_config_dll oledb32 enable_oledb32
14662 wine_fn_config_test dlls/oledb32/tests oledb32_test
14663 wine_fn_config_dll oledlg enable_oledlg oledlg
14664 wine_fn_config_dll olepro32 enable_olepro32 olepro32
14665 wine_fn_config_dll olesvr.dll16 enable_win16
14666 wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
14667 wine_fn_config_dll olethk32 enable_olethk32
14668 wine_fn_config_dll openal32 enable_openal32
14669 wine_fn_config_dll opengl32 enable_opengl32 opengl32
14670 wine_fn_config_test dlls/opengl32/tests opengl32_test
14671 wine_fn_config_dll pdh enable_pdh pdh
14672 wine_fn_config_test dlls/pdh/tests pdh_test
14673 wine_fn_config_dll pidgen enable_pidgen
14674 wine_fn_config_dll powrprof enable_powrprof powrprof
14675 wine_fn_config_dll printui enable_printui
14676 wine_fn_config_dll propsys enable_propsys
14677 wine_fn_config_dll psapi enable_psapi psapi
14678 wine_fn_config_test dlls/psapi/tests psapi_test
14679 wine_fn_config_dll pstorec enable_pstorec
14680 wine_fn_config_dll qcap enable_qcap
14681 wine_fn_config_dll qedit enable_qedit
14682 wine_fn_config_test dlls/qedit/tests qedit_test
14683 wine_fn_config_dll qmgr enable_qmgr
14684 wine_fn_config_test dlls/qmgr/tests qmgr_test
14685 wine_fn_config_dll qmgrprxy enable_qmgrprxy
14686 wine_fn_config_dll quartz enable_quartz quartz
14687 wine_fn_config_test dlls/quartz/tests quartz_test
14688 wine_fn_config_dll query enable_query
14689 wine_fn_config_dll rasapi16.dll16 enable_win16
14690 wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
14691 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
14692 wine_fn_config_dll rasdlg enable_rasdlg rasdlg
14693 wine_fn_config_dll resutils enable_resutils resutils
14694 wine_fn_config_dll riched20 enable_riched20 riched20
14695 wine_fn_config_test dlls/riched20/tests riched20_test
14696 wine_fn_config_dll riched32 enable_riched32
14697 wine_fn_config_test dlls/riched32/tests riched32_test
14698 wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
14699 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
14700 wine_fn_config_dll rsabase enable_rsabase
14701 wine_fn_config_dll rsaenh enable_rsaenh rsaenh
14702 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
14703 wine_fn_config_dll rtutils enable_rtutils rtutils
14704 wine_fn_config_dll samlib enable_samlib
14705 wine_fn_config_dll sane.ds enable_sane_ds
14706 wine_fn_config_dll sccbase enable_sccbase
14707 wine_fn_config_dll schannel enable_schannel
14708 wine_fn_config_test dlls/schannel/tests schannel_test
14709 wine_fn_config_dll secur32 enable_secur32 secur32
14710 wine_fn_config_test dlls/secur32/tests secur32_test
14711 wine_fn_config_dll security enable_security
14712 wine_fn_config_dll sensapi enable_sensapi sensapi
14713 wine_fn_config_dll serialui enable_serialui serialui
14714 wine_fn_config_test dlls/serialui/tests serialui_test
14715 wine_fn_config_dll setupapi enable_setupapi setupapi
14716 wine_fn_config_test dlls/setupapi/tests setupapi_test
14717 wine_fn_config_dll setupx.dll16 enable_win16
14718 wine_fn_config_dll sfc enable_sfc sfc
14719 wine_fn_config_dll sfc_os enable_sfc_os sfc_os
14720 wine_fn_config_dll shdoclc enable_shdoclc
14721 wine_fn_config_dll shdocvw enable_shdocvw shdocvw
14722 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
14723 wine_fn_config_dll shell.dll16 enable_win16
14724 wine_fn_config_dll shell32 enable_shell32 shell32
14725 wine_fn_config_test dlls/shell32/tests shell32_test
14726 wine_fn_config_dll shfolder enable_shfolder shfolder
14727 wine_fn_config_dll shlwapi enable_shlwapi shlwapi
14728 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
14729 wine_fn_config_dll slbcsp enable_slbcsp
14730 wine_fn_config_dll slc enable_slc slc
14731 wine_fn_config_dll snmpapi enable_snmpapi snmpapi
14732 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
14733 wine_fn_config_dll softpub enable_softpub
14734 wine_fn_config_dll sound.drv16 enable_win16
14735 wine_fn_config_dll spoolss enable_spoolss spoolss
14736 wine_fn_config_test dlls/spoolss/tests spoolss_test
14737 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
14738 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
14739 wine_fn_config_dll sti enable_sti sti
14740 wine_fn_config_test dlls/sti/tests sti_test
14741 wine_fn_config_dll storage.dll16 enable_win16
14742 wine_fn_config_dll stress.dll16 enable_win16
14743 wine_fn_config_lib strmiids
14744 wine_fn_config_dll svrapi enable_svrapi
14745 wine_fn_config_dll sxs enable_sxs
14746 wine_fn_config_dll system.drv16 enable_win16
14747 wine_fn_config_dll t2embed enable_t2embed
14748 wine_fn_config_dll tapi32 enable_tapi32 tapi32
14749 wine_fn_config_dll toolhelp.dll16 enable_win16
14750 wine_fn_config_dll traffic enable_traffic
14751 wine_fn_config_dll twain.dll16 enable_win16
14752 wine_fn_config_dll twain_32 enable_twain_32
14753 wine_fn_config_test dlls/twain_32/tests twain_32_test
14754 wine_fn_config_dll typelib.dll16 enable_win16
14755 wine_fn_config_dll unicows enable_unicows unicows
14756 wine_fn_config_dll updspapi enable_updspapi
14757 wine_fn_config_dll url enable_url url
14758 wine_fn_config_dll urlmon enable_urlmon urlmon
14759 wine_fn_config_test dlls/urlmon/tests urlmon_test
14760 wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
14761 wine_fn_config_dll user.exe16 enable_win16
14762 wine_fn_config_dll user32 enable_user32 user32
14763 wine_fn_config_test dlls/user32/tests user32_test
14764 wine_fn_config_dll userenv enable_userenv userenv
14765 wine_fn_config_test dlls/userenv/tests userenv_test
14766 wine_fn_config_dll usp10 enable_usp10 usp10
14767 wine_fn_config_test dlls/usp10/tests usp10_test
14768 wine_fn_config_lib uuid
14769 wine_fn_config_dll uxtheme enable_uxtheme uxtheme
14770 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
14771 wine_fn_config_dll vdhcp.vxd enable_win16
14772 wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
14773 wine_fn_config_dll ver.dll16 enable_win16
14774 wine_fn_config_dll version enable_version version
14775 wine_fn_config_test dlls/version/tests version_test
14776 wine_fn_config_dll vmm.vxd enable_win16
14777 wine_fn_config_dll vnbt.vxd enable_win16
14778 wine_fn_config_dll vnetbios.vxd enable_win16
14779 wine_fn_config_dll vtdapi.vxd enable_win16
14780 wine_fn_config_dll vwin32.vxd enable_win16
14781 wine_fn_config_dll w32skrnl enable_win16
14782 wine_fn_config_dll w32sys.dll16 enable_win16
14783 wine_fn_config_dll wbemprox enable_wbemprox
14784 wine_fn_config_dll wiaservc enable_wiaservc
14785 wine_fn_config_dll win32s16.dll16 enable_win16
14786 wine_fn_config_dll win87em.dll16 enable_win16
14787 wine_fn_config_dll winaspi.dll16 enable_win16
14788 wine_fn_config_dll windebug.dll16 enable_win16
14789 wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
14790 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
14791 wine_fn_config_dll winealsa.drv enable_winealsa_drv
14792 wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
14793 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
14794 wine_fn_config_lib winecrt0
14795 wine_fn_config_dll wined3d enable_wined3d wined3d
14796 wine_fn_config_dll wineesd.drv enable_wineesd_drv
14797 wine_fn_config_dll winejack.drv enable_winejack_drv
14798 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
14799 wine_fn_config_dll winemapi enable_winemapi
14800 wine_fn_config_dll winemp3.acm enable_winemp3_acm
14801 wine_fn_config_dll winenas.drv enable_winenas_drv
14802 wine_fn_config_dll wineoss.drv enable_wineoss_drv
14803 wine_fn_config_dll wineps.drv enable_wineps_drv
14804 wine_fn_config_dll wineps16.drv16 enable_win16
14805 wine_fn_config_dll winepulse.drv enable_winepulse_drv
14806 wine_fn_config_dll winequartz.drv enable_winequartz_drv
14807 wine_fn_config_dll winex11.drv enable_winex11_drv
14808 wine_fn_config_dll wing.dll16 enable_win16
14809 wine_fn_config_dll wing32 enable_wing32
14810 wine_fn_config_dll winhttp enable_winhttp winhttp
14811 wine_fn_config_test dlls/winhttp/tests winhttp_test
14812 wine_fn_config_dll wininet enable_wininet wininet
14813 wine_fn_config_test dlls/wininet/tests wininet_test
14814 wine_fn_config_dll winmm enable_winmm winmm
14815 wine_fn_config_test dlls/winmm/tests winmm_test
14816 wine_fn_config_dll winnls.dll16 enable_win16
14817 wine_fn_config_dll winnls32 enable_winnls32 winnls32
14818 wine_fn_config_dll winscard enable_winscard winscard
14819 wine_fn_config_dll winsock.dll16 enable_win16
14820 wine_fn_config_dll winspool.drv enable_winspool_drv winspool
14821 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
14822 wine_fn_config_dll wintab.dll16 enable_win16
14823 wine_fn_config_dll wintab32 enable_wintab32 wintab32
14824 wine_fn_config_test dlls/wintab32/tests wintab32_test
14825 wine_fn_config_dll wintrust enable_wintrust wintrust
14826 wine_fn_config_test dlls/wintrust/tests wintrust_test
14827 wine_fn_config_dll wldap32 enable_wldap32 wldap32
14828 wine_fn_config_test dlls/wldap32/tests wldap32_test
14829 wine_fn_config_dll wmi enable_wmi
14830 wine_fn_config_dll wmiutils enable_wmiutils
14831 wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
14832 wine_fn_config_dll wow32 enable_win16 wow32
14833 wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
14834 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
14835 wine_fn_config_dll wsock32 enable_wsock32 wsock32
14836 wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
14837 wine_fn_config_dll wuapi enable_wuapi
14838 wine_fn_config_dll wuaueng enable_wuaueng
14839 wine_fn_config_dll xinput1_1 enable_xinput1_1
14840 wine_fn_config_dll xinput1_2 enable_xinput1_2
14841 wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
14842 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
14843 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
14844 wine_fn_config_dll xmllite enable_xmllite
14845 wine_fn_config_test dlls/xmllite/tests xmllite_test
14846 wine_fn_config_makefile documentation enable_documentation
14847 wine_fn_config_makefile fonts enable_fonts
14848 wine_fn_config_makefile include enable_include
14849 wine_fn_config_makefile libs/port enable_libs_port
14850 wine_fn_config_makefile libs/wine enable_libs_wine
14851 wine_fn_config_makefile libs/wpp enable_libs_wpp
14852 wine_fn_config_makefile loader enable_loader
14853 wine_fn_config_program attrib enable_attrib install
14854 wine_fn_config_program cacls enable_cacls install
14855 wine_fn_config_program clock enable_clock install
14856 wine_fn_config_program cmd enable_cmd install
14857 wine_fn_config_test programs/cmd/tests cmd.exe_test
14858 wine_fn_config_program cmdlgtst enable_cmdlgtst
14859 wine_fn_config_program control enable_control install
14860 wine_fn_config_program dxdiag enable_dxdiag install
14861 wine_fn_config_program eject enable_eject install
14862 wine_fn_config_program expand enable_expand install
14863 wine_fn_config_program explorer enable_explorer install
14864 wine_fn_config_program extrac32 enable_extrac32 install
14865 wine_fn_config_program hh enable_hh install
14866 wine_fn_config_program icinfo enable_icinfo install
14867 wine_fn_config_program iexplore enable_iexplore install
14868 wine_fn_config_program lodctr enable_lodctr install
14869 wine_fn_config_program mshta enable_mshta install
14870 wine_fn_config_program msiexec enable_msiexec installbin
14871 wine_fn_config_program net enable_net install
14872 wine_fn_config_program ngen enable_ngen install
14873 wine_fn_config_program notepad enable_notepad installbin
14874 wine_fn_config_program oleview enable_oleview install
14875 wine_fn_config_program ping enable_ping install
14876 wine_fn_config_program progman enable_progman install
14877 wine_fn_config_program reg enable_reg install
14878 wine_fn_config_program regedit enable_regedit installbin
14879 wine_fn_config_program regsvr32 enable_regsvr32 installbin
14880 wine_fn_config_program rpcss enable_rpcss install
14881 wine_fn_config_program rundll32 enable_rundll32 install
14882 wine_fn_config_program sc enable_sc install
14883 wine_fn_config_program secedit enable_secedit install
14884 wine_fn_config_program services enable_services install
14885 wine_fn_config_program spoolsv enable_spoolsv install
14886 wine_fn_config_program start enable_start install
14887 wine_fn_config_program svchost enable_svchost install
14888 wine_fn_config_program taskmgr enable_taskmgr install
14889 wine_fn_config_program termsv enable_termsv install
14890 wine_fn_config_program uninstaller enable_uninstaller install
14891 wine_fn_config_program unlodctr enable_unlodctr install
14892 wine_fn_config_program view enable_view
14893 wine_fn_config_program wineboot enable_wineboot installbin
14894 wine_fn_config_program winebrowser enable_winebrowser install
14895 wine_fn_config_program winecfg enable_winecfg installbin
14896 wine_fn_config_program wineconsole enable_wineconsole installbin
14897 wine_fn_config_program winedbg enable_winedbg installbin
14898 wine_fn_config_program winedevice enable_winedevice install
14899 wine_fn_config_program winefile enable_winefile installbin
14900 wine_fn_config_program winemenubuilder enable_winemenubuilder install
14901 wine_fn_config_program winemine enable_winemine installbin
14902 wine_fn_config_program winepath enable_winepath installbin
14903 wine_fn_config_program winetest enable_winetest
14904 wine_fn_config_program winevdm enable_win16 install
14905 wine_fn_config_program winhelp.exe16 enable_win16 install
14906 wine_fn_config_program winhlp32 enable_winhlp32 install
14907 wine_fn_config_program winoldap.mod16 enable_win16 install
14908 wine_fn_config_program winver enable_winver install
14909 wine_fn_config_program wordpad enable_wordpad install
14910 wine_fn_config_program write enable_write install
14911 wine_fn_config_program xcopy enable_xcopy install
14912 wine_fn_config_makefile server enable_server
14913 wine_fn_config_tool tools
14914 wine_fn_config_tool tools/widl
14915 wine_fn_config_tool tools/winebuild
14916 wine_fn_config_tool tools/winedump
14917 wine_fn_config_tool tools/winegcc
14918 wine_fn_config_tool tools/wmc
14919 wine_fn_config_tool tools/wrc
14921 ac_config_commands="$ac_config_commands Makefile"
14924 ac_config_files="$ac_config_files Make.tmp:Makefile.in"
14928 if test -n "$with_wine64"
14929 then
14930 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine
14931 fonts server:
14932 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
14933 $with_wine64/loader/wine:
14934 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
14935 clean::
14936 \$(RM) fonts server $with_wine64/loader/wine"
14939 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
14940 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
14942 cat >confcache <<\_ACEOF
14943 # This file is a shell script that caches the results of configure
14944 # tests run on this system so they can be shared between configure
14945 # scripts and configure runs, see configure's option --config-cache.
14946 # It is not useful on other systems. If it contains results you don't
14947 # want to keep, you may remove or edit it.
14949 # config.status only pays attention to the cache file if you give it
14950 # the --recheck option to rerun configure.
14952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14954 # following values.
14956 _ACEOF
14958 # The following way of writing the cache mishandles newlines in values,
14959 # but we know of no workaround that is simple, portable, and efficient.
14960 # So, we kill variables containing newlines.
14961 # Ultrix sh set writes to stderr and can't be redirected directly,
14962 # and sets the high bit in the cache file unless we assign to the vars.
14964 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14965 eval ac_val=\$$ac_var
14966 case $ac_val in #(
14967 *${as_nl}*)
14968 case $ac_var in #(
14969 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14970 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14971 esac
14972 case $ac_var in #(
14973 _ | IFS | as_nl) ;; #(
14974 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14975 *) { eval $ac_var=; unset $ac_var;} ;;
14976 esac ;;
14977 esac
14978 done
14980 (set) 2>&1 |
14981 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14982 *${as_nl}ac_space=\ *)
14983 # `set' does not quote correctly, so add quotes: double-quote
14984 # substitution turns \\\\ into \\, and sed turns \\ into \.
14985 sed -n \
14986 "s/'/'\\\\''/g;
14987 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14988 ;; #(
14990 # `set' quotes correctly as required by POSIX, so do not add quotes.
14991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14993 esac |
14994 sort
14996 sed '
14997 /^ac_cv_env_/b end
14998 t clear
14999 :clear
15000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15001 t end
15002 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15003 :end' >>confcache
15004 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15005 if test -w "$cache_file"; then
15006 test "x$cache_file" != "x/dev/null" &&
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15008 $as_echo "$as_me: updating cache $cache_file" >&6;}
15009 cat confcache >$cache_file
15010 else
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15012 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15015 rm -f confcache
15017 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15018 # Let make expand exec_prefix.
15019 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15021 DEFS=-DHAVE_CONFIG_H
15023 ac_libobjs=
15024 ac_ltlibobjs=
15025 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15026 # 1. Remove the extension, and $U if already installed.
15027 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15028 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15029 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15030 # will be set to the directory where LIBOBJS objects are built.
15031 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15032 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15033 done
15034 LIBOBJS=$ac_libobjs
15036 LTLIBOBJS=$ac_ltlibobjs
15040 : ${CONFIG_STATUS=./config.status}
15041 ac_write_fail=0
15042 ac_clean_files_save=$ac_clean_files
15043 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15045 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15046 as_write_fail=0
15047 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15048 #! $SHELL
15049 # Generated by $as_me.
15050 # Run this file to recreate the current configuration.
15051 # Compiler output produced by configure, useful for debugging
15052 # configure, is in config.log if it exists.
15054 debug=false
15055 ac_cs_recheck=false
15056 ac_cs_silent=false
15058 SHELL=\${CONFIG_SHELL-$SHELL}
15059 export SHELL
15060 _ASEOF
15061 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15062 ## -------------------- ##
15063 ## M4sh Initialization. ##
15064 ## -------------------- ##
15066 # Be more Bourne compatible
15067 DUALCASE=1; export DUALCASE # for MKS sh
15068 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15069 emulate sh
15070 NULLCMD=:
15071 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15072 # is contrary to our usage. Disable this feature.
15073 alias -g '${1+"$@"}'='"$@"'
15074 setopt NO_GLOB_SUBST
15075 else
15076 case `(set -o) 2>/dev/null` in #(
15077 *posix*) :
15078 set -o posix ;; #(
15079 *) :
15081 esac
15085 as_nl='
15087 export as_nl
15088 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15089 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15090 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15091 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15092 # Prefer a ksh shell builtin over an external printf program on Solaris,
15093 # but without wasting forks for bash or zsh.
15094 if test -z "$BASH_VERSION$ZSH_VERSION" \
15095 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15096 as_echo='print -r --'
15097 as_echo_n='print -rn --'
15098 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15099 as_echo='printf %s\n'
15100 as_echo_n='printf %s'
15101 else
15102 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15103 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15104 as_echo_n='/usr/ucb/echo -n'
15105 else
15106 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15107 as_echo_n_body='eval
15108 arg=$1;
15109 case $arg in #(
15110 *"$as_nl"*)
15111 expr "X$arg" : "X\\(.*\\)$as_nl";
15112 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15113 esac;
15114 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15116 export as_echo_n_body
15117 as_echo_n='sh -c $as_echo_n_body as_echo'
15119 export as_echo_body
15120 as_echo='sh -c $as_echo_body as_echo'
15123 # The user is always right.
15124 if test "${PATH_SEPARATOR+set}" != set; then
15125 PATH_SEPARATOR=:
15126 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15127 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15128 PATH_SEPARATOR=';'
15133 # IFS
15134 # We need space, tab and new line, in precisely that order. Quoting is
15135 # there to prevent editors from complaining about space-tab.
15136 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15137 # splitting by setting IFS to empty value.)
15138 IFS=" "" $as_nl"
15140 # Find who we are. Look in the path if we contain no directory separator.
15141 case $0 in #((
15142 *[\\/]* ) as_myself=$0 ;;
15143 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15144 for as_dir in $PATH
15146 IFS=$as_save_IFS
15147 test -z "$as_dir" && as_dir=.
15148 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15149 done
15150 IFS=$as_save_IFS
15153 esac
15154 # We did not find ourselves, most probably we were run as `sh COMMAND'
15155 # in which case we are not to be found in the path.
15156 if test "x$as_myself" = x; then
15157 as_myself=$0
15159 if test ! -f "$as_myself"; then
15160 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15161 exit 1
15164 # Unset variables that we do not need and which cause bugs (e.g. in
15165 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15166 # suppresses any "Segmentation fault" message there. '((' could
15167 # trigger a bug in pdksh 5.2.14.
15168 for as_var in BASH_ENV ENV MAIL MAILPATH
15169 do eval test x\${$as_var+set} = xset \
15170 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15171 done
15172 PS1='$ '
15173 PS2='> '
15174 PS4='+ '
15176 # NLS nuisances.
15177 LC_ALL=C
15178 export LC_ALL
15179 LANGUAGE=C
15180 export LANGUAGE
15182 # CDPATH.
15183 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15186 # as_fn_error ERROR [LINENO LOG_FD]
15187 # ---------------------------------
15188 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15189 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15190 # script with status $?, using 1 if that was 0.
15191 as_fn_error ()
15193 as_status=$?; test $as_status -eq 0 && as_status=1
15194 if test "$3"; then
15195 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15196 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15198 $as_echo "$as_me: error: $1" >&2
15199 as_fn_exit $as_status
15200 } # as_fn_error
15203 # as_fn_set_status STATUS
15204 # -----------------------
15205 # Set $? to STATUS, without forking.
15206 as_fn_set_status ()
15208 return $1
15209 } # as_fn_set_status
15211 # as_fn_exit STATUS
15212 # -----------------
15213 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15214 as_fn_exit ()
15216 set +e
15217 as_fn_set_status $1
15218 exit $1
15219 } # as_fn_exit
15221 # as_fn_unset VAR
15222 # ---------------
15223 # Portably unset VAR.
15224 as_fn_unset ()
15226 { eval $1=; unset $1;}
15228 as_unset=as_fn_unset
15229 # as_fn_append VAR VALUE
15230 # ----------------------
15231 # Append the text in VALUE to the end of the definition contained in VAR. Take
15232 # advantage of any shell optimizations that allow amortized linear growth over
15233 # repeated appends, instead of the typical quadratic growth present in naive
15234 # implementations.
15235 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15236 eval 'as_fn_append ()
15238 eval $1+=\$2
15240 else
15241 as_fn_append ()
15243 eval $1=\$$1\$2
15245 fi # as_fn_append
15247 # as_fn_arith ARG...
15248 # ------------------
15249 # Perform arithmetic evaluation on the ARGs, and store the result in the
15250 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15251 # must be portable across $(()) and expr.
15252 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15253 eval 'as_fn_arith ()
15255 as_val=$(( $* ))
15257 else
15258 as_fn_arith ()
15260 as_val=`expr "$@" || test $? -eq 1`
15262 fi # as_fn_arith
15265 if expr a : '\(a\)' >/dev/null 2>&1 &&
15266 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15267 as_expr=expr
15268 else
15269 as_expr=false
15272 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15273 as_basename=basename
15274 else
15275 as_basename=false
15278 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15279 as_dirname=dirname
15280 else
15281 as_dirname=false
15284 as_me=`$as_basename -- "$0" ||
15285 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15286 X"$0" : 'X\(//\)$' \| \
15287 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15288 $as_echo X/"$0" |
15289 sed '/^.*\/\([^/][^/]*\)\/*$/{
15290 s//\1/
15293 /^X\/\(\/\/\)$/{
15294 s//\1/
15297 /^X\/\(\/\).*/{
15298 s//\1/
15301 s/.*/./; q'`
15303 # Avoid depending upon Character Ranges.
15304 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15305 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15306 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15307 as_cr_digits='0123456789'
15308 as_cr_alnum=$as_cr_Letters$as_cr_digits
15310 ECHO_C= ECHO_N= ECHO_T=
15311 case `echo -n x` in #(((((
15312 -n*)
15313 case `echo 'xy\c'` in
15314 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15315 xy) ECHO_C='\c';;
15316 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15317 ECHO_T=' ';;
15318 esac;;
15320 ECHO_N='-n';;
15321 esac
15323 rm -f conf$$ conf$$.exe conf$$.file
15324 if test -d conf$$.dir; then
15325 rm -f conf$$.dir/conf$$.file
15326 else
15327 rm -f conf$$.dir
15328 mkdir conf$$.dir 2>/dev/null
15330 if (echo >conf$$.file) 2>/dev/null; then
15331 if ln -s conf$$.file conf$$ 2>/dev/null; then
15332 as_ln_s='ln -s'
15333 # ... but there are two gotchas:
15334 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15335 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15336 # In both cases, we have to default to `cp -p'.
15337 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15338 as_ln_s='cp -p'
15339 elif ln conf$$.file conf$$ 2>/dev/null; then
15340 as_ln_s=ln
15341 else
15342 as_ln_s='cp -p'
15344 else
15345 as_ln_s='cp -p'
15347 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15348 rmdir conf$$.dir 2>/dev/null
15351 # as_fn_mkdir_p
15352 # -------------
15353 # Create "$as_dir" as a directory, including parents if necessary.
15354 as_fn_mkdir_p ()
15357 case $as_dir in #(
15358 -*) as_dir=./$as_dir;;
15359 esac
15360 test -d "$as_dir" || eval $as_mkdir_p || {
15361 as_dirs=
15362 while :; do
15363 case $as_dir in #(
15364 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15365 *) as_qdir=$as_dir;;
15366 esac
15367 as_dirs="'$as_qdir' $as_dirs"
15368 as_dir=`$as_dirname -- "$as_dir" ||
15369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15370 X"$as_dir" : 'X\(//\)[^/]' \| \
15371 X"$as_dir" : 'X\(//\)$' \| \
15372 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15373 $as_echo X"$as_dir" |
15374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15375 s//\1/
15378 /^X\(\/\/\)[^/].*/{
15379 s//\1/
15382 /^X\(\/\/\)$/{
15383 s//\1/
15386 /^X\(\/\).*/{
15387 s//\1/
15390 s/.*/./; q'`
15391 test -d "$as_dir" && break
15392 done
15393 test -z "$as_dirs" || eval "mkdir $as_dirs"
15394 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15397 } # as_fn_mkdir_p
15398 if mkdir -p . 2>/dev/null; then
15399 as_mkdir_p='mkdir -p "$as_dir"'
15400 else
15401 test -d ./-p && rmdir ./-p
15402 as_mkdir_p=false
15405 if test -x / >/dev/null 2>&1; then
15406 as_test_x='test -x'
15407 else
15408 if ls -dL / >/dev/null 2>&1; then
15409 as_ls_L_option=L
15410 else
15411 as_ls_L_option=
15413 as_test_x='
15414 eval sh -c '\''
15415 if test -d "$1"; then
15416 test -d "$1/.";
15417 else
15418 case $1 in #(
15419 -*)set "./$1";;
15420 esac;
15421 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15422 ???[sx]*):;;*)false;;esac;fi
15423 '\'' sh
15426 as_executable_p=$as_test_x
15428 # Sed expression to map a string onto a valid CPP name.
15429 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15431 # Sed expression to map a string onto a valid variable name.
15432 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15435 exec 6>&1
15436 ## ----------------------------------- ##
15437 ## Main body of $CONFIG_STATUS script. ##
15438 ## ----------------------------------- ##
15439 _ASEOF
15440 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15443 # Save the log message, to keep $0 and so on meaningful, and to
15444 # report actual input values of CONFIG_FILES etc. instead of their
15445 # values after options handling.
15446 ac_log="
15447 This file was extended by Wine $as_me 1.2, which was
15448 generated by GNU Autoconf 2.65. Invocation command line was
15450 CONFIG_FILES = $CONFIG_FILES
15451 CONFIG_HEADERS = $CONFIG_HEADERS
15452 CONFIG_LINKS = $CONFIG_LINKS
15453 CONFIG_COMMANDS = $CONFIG_COMMANDS
15454 $ $0 $@
15456 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15459 _ACEOF
15461 case $ac_config_files in *"
15462 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15463 esac
15465 case $ac_config_headers in *"
15466 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15467 esac
15470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15471 # Files that config.status was made for.
15472 config_files="$ac_config_files"
15473 config_headers="$ac_config_headers"
15474 config_links="$ac_config_links"
15475 config_commands="$ac_config_commands"
15477 _ACEOF
15479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15480 ac_cs_usage="\
15481 \`$as_me' instantiates files and other configuration actions
15482 from templates according to the current configuration. Unless the files
15483 and actions are specified as TAGs, all are instantiated by default.
15485 Usage: $0 [OPTION]... [TAG]...
15487 -h, --help print this help, then exit
15488 -V, --version print version number and configuration settings, then exit
15489 --config print configuration, then exit
15490 -q, --quiet, --silent
15491 do not print progress messages
15492 -d, --debug don't remove temporary files
15493 --recheck update $as_me by reconfiguring in the same conditions
15494 --file=FILE[:TEMPLATE]
15495 instantiate the configuration file FILE
15496 --header=FILE[:TEMPLATE]
15497 instantiate the configuration header FILE
15499 Configuration files:
15500 $config_files
15502 Configuration headers:
15503 $config_headers
15505 Configuration links:
15506 $config_links
15508 Configuration commands:
15509 $config_commands
15511 Report bugs to <wine-devel@winehq.org>.
15512 Wine home page: <http://www.winehq.org>."
15514 _ACEOF
15515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15516 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15517 ac_cs_version="\\
15518 Wine config.status 1.2
15519 configured by $0, generated by GNU Autoconf 2.65,
15520 with options \\"\$ac_cs_config\\"
15522 Copyright (C) 2009 Free Software Foundation, Inc.
15523 This config.status script is free software; the Free Software Foundation
15524 gives unlimited permission to copy, distribute and modify it."
15526 ac_pwd='$ac_pwd'
15527 srcdir='$srcdir'
15528 INSTALL='$INSTALL'
15529 test -n "\$AWK" || AWK=awk
15530 _ACEOF
15532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15533 # The default lists apply if the user does not specify any file.
15534 ac_need_defaults=:
15535 while test $# != 0
15537 case $1 in
15538 --*=*)
15539 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15540 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15541 ac_shift=:
15544 ac_option=$1
15545 ac_optarg=$2
15546 ac_shift=shift
15548 esac
15550 case $ac_option in
15551 # Handling of the options.
15552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15553 ac_cs_recheck=: ;;
15554 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15555 $as_echo "$ac_cs_version"; exit ;;
15556 --config | --confi | --conf | --con | --co | --c )
15557 $as_echo "$ac_cs_config"; exit ;;
15558 --debug | --debu | --deb | --de | --d | -d )
15559 debug=: ;;
15560 --file | --fil | --fi | --f )
15561 $ac_shift
15562 case $ac_optarg in
15563 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15564 esac
15565 as_fn_append CONFIG_FILES " '$ac_optarg'"
15566 ac_need_defaults=false;;
15567 --header | --heade | --head | --hea )
15568 $ac_shift
15569 case $ac_optarg in
15570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15571 esac
15572 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15573 ac_need_defaults=false;;
15574 --he | --h)
15575 # Conflict between --help and --header
15576 as_fn_error "ambiguous option: \`$1'
15577 Try \`$0 --help' for more information.";;
15578 --help | --hel | -h )
15579 $as_echo "$ac_cs_usage"; exit ;;
15580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15581 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15582 ac_cs_silent=: ;;
15584 # This is an error.
15585 -*) as_fn_error "unrecognized option: \`$1'
15586 Try \`$0 --help' for more information." ;;
15588 *) as_fn_append ac_config_targets " $1"
15589 ac_need_defaults=false ;;
15591 esac
15592 shift
15593 done
15595 ac_configure_extra_args=
15597 if $ac_cs_silent; then
15598 exec 6>/dev/null
15599 ac_configure_extra_args="$ac_configure_extra_args --silent"
15602 _ACEOF
15603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15604 if \$ac_cs_recheck; then
15605 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15606 shift
15607 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15608 CONFIG_SHELL='$SHELL'
15609 export CONFIG_SHELL
15610 exec "\$@"
15613 _ACEOF
15614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15615 exec 5>>config.log
15617 echo
15618 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15619 ## Running $as_me. ##
15620 _ASBOX
15621 $as_echo "$ac_log"
15622 } >&5
15624 _ACEOF
15625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15627 # INIT-COMMANDS
15629 wine_fn_output_makefile ()
15631 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
15632 $ALL_MAKEFILE_DEPENDS
15633 _WINE_EOF
15634 as_fn_error "could not create Makefile" "$LINENO" 5
15637 _ACEOF
15639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15641 # Handling of arguments.
15642 for ac_config_target in $ac_config_targets
15644 case $ac_config_target in
15645 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15646 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
15647 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
15648 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
15649 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
15650 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
15651 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
15652 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
15653 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
15654 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
15655 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
15656 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
15657 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
15658 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
15659 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15660 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
15661 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
15662 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15663 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
15664 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
15665 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
15666 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Makefile.in" ;;
15668 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15669 esac
15670 done
15673 # If the user did not use the arguments to specify the items to instantiate,
15674 # then the envvar interface is used. Set only those that are not.
15675 # We use the long form for the default assignment because of an extremely
15676 # bizarre bug on SunOS 4.1.3.
15677 if $ac_need_defaults; then
15678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15679 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15680 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15681 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15684 # Have a temporary directory for convenience. Make it in the build tree
15685 # simply because there is no reason against having it here, and in addition,
15686 # creating and moving files from /tmp can sometimes cause problems.
15687 # Hook for its removal unless debugging.
15688 # Note that there is a small window in which the directory will not be cleaned:
15689 # after its creation but before its name has been assigned to `$tmp'.
15690 $debug ||
15692 tmp=
15693 trap 'exit_status=$?
15694 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15696 trap 'as_fn_exit 1' 1 2 13 15
15698 # Create a (secure) tmp directory for tmp files.
15701 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15702 test -n "$tmp" && test -d "$tmp"
15703 } ||
15705 tmp=./conf$$-$RANDOM
15706 (umask 077 && mkdir "$tmp")
15707 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15709 # Set up the scripts for CONFIG_FILES section.
15710 # No need to generate them if there are no CONFIG_FILES.
15711 # This happens for instance with `./config.status config.h'.
15712 if test -n "$CONFIG_FILES"; then
15714 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15715 ac_cs_awk_getline=:
15716 ac_cs_awk_pipe_init=
15717 ac_cs_awk_read_file='
15718 while ((getline aline < (F[key])) > 0)
15719 print(aline)
15720 close(F[key])'
15721 ac_cs_awk_pipe_fini=
15722 else
15723 ac_cs_awk_getline=false
15724 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15725 ac_cs_awk_read_file='
15726 print "|#_!!_#|"
15727 print "cat " F[key] " &&"
15728 '$ac_cs_awk_pipe_init
15729 # The final `:' finishes the AND list.
15730 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15732 ac_cr=`echo X | tr X '\015'`
15733 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15734 # But we know of no other shell where ac_cr would be empty at this
15735 # point, so we can use a bashism as a fallback.
15736 if test "x$ac_cr" = x; then
15737 eval ac_cr=\$\'\\r\'
15739 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15740 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15741 ac_cs_awk_cr='\r'
15742 else
15743 ac_cs_awk_cr=$ac_cr
15746 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15747 _ACEOF
15749 # Create commands to substitute file output variables.
15751 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15752 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15753 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15754 echo "_ACAWK" &&
15755 echo "_ACEOF"
15756 } >conf$$files.sh &&
15757 . ./conf$$files.sh ||
15758 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15759 rm -f conf$$files.sh
15762 echo "cat >conf$$subs.awk <<_ACEOF" &&
15763 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15764 echo "_ACEOF"
15765 } >conf$$subs.sh ||
15766 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15767 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15768 ac_delim='%!_!# '
15769 for ac_last_try in false false false false false :; do
15770 . ./conf$$subs.sh ||
15771 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15773 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15774 if test $ac_delim_n = $ac_delim_num; then
15775 break
15776 elif $ac_last_try; then
15777 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15778 else
15779 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15781 done
15782 rm -f conf$$subs.sh
15784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15785 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15786 _ACEOF
15787 sed -n '
15789 s/^/S["/; s/!.*/"]=/
15792 s/^[^!]*!//
15793 :repl
15794 t repl
15795 s/'"$ac_delim"'$//
15796 t delim
15799 s/\(.\{148\}\)..*/\1/
15800 t more1
15801 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15804 b repl
15805 :more1
15806 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15809 s/.\{148\}//
15810 t nl
15811 :delim
15813 s/\(.\{148\}\)..*/\1/
15814 t more2
15815 s/["\\]/\\&/g; s/^/"/; s/$/"/
15818 :more2
15819 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15822 s/.\{148\}//
15823 t delim
15824 ' <conf$$subs.awk | sed '
15825 /^[^""]/{
15827 s/\n//
15829 ' >>$CONFIG_STATUS || ac_write_fail=1
15830 rm -f conf$$subs.awk
15831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15832 _ACAWK
15833 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15834 for (key in S) S_is_set[key] = 1
15835 FS = "\a"
15836 \$ac_cs_awk_pipe_init
15839 line = $ 0
15840 nfields = split(line, field, "@")
15841 substed = 0
15842 len = length(field[1])
15843 for (i = 2; i < nfields; i++) {
15844 key = field[i]
15845 keylen = length(key)
15846 if (S_is_set[key]) {
15847 value = S[key]
15848 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15849 len += length(value) + length(field[++i])
15850 substed = 1
15851 } else
15852 len += 1 + keylen
15854 if (nfields == 3 && !substed) {
15855 key = field[2]
15856 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15857 \$ac_cs_awk_read_file
15858 next
15861 print line
15863 \$ac_cs_awk_pipe_fini
15864 _ACAWK
15865 _ACEOF
15866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15867 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15868 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15869 else
15871 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15872 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15873 _ACEOF
15875 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15876 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15877 # trailing colons and then remove the whole line if VPATH becomes empty
15878 # (actually we leave an empty line to preserve line numbers).
15879 if test "x$srcdir" = x.; then
15880 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15881 s/:*\$(srcdir):*/:/
15882 s/:*\${srcdir}:*/:/
15883 s/:*@srcdir@:*/:/
15884 s/^\([^=]*=[ ]*\):*/\1/
15885 s/:*$//
15886 s/^[^=]*=[ ]*$//
15890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15891 fi # test -n "$CONFIG_FILES"
15893 # Set up the scripts for CONFIG_HEADERS section.
15894 # No need to generate them if there are no CONFIG_HEADERS.
15895 # This happens for instance with `./config.status Makefile'.
15896 if test -n "$CONFIG_HEADERS"; then
15897 cat >"$tmp/defines.awk" <<\_ACAWK ||
15898 BEGIN {
15899 _ACEOF
15901 # Transform confdefs.h into an awk script `defines.awk', embedded as
15902 # here-document in config.status, that substitutes the proper values into
15903 # config.h.in to produce config.h.
15905 # Create a delimiter string that does not exist in confdefs.h, to ease
15906 # handling of long lines.
15907 ac_delim='%!_!# '
15908 for ac_last_try in false false :; do
15909 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15910 if test -z "$ac_t"; then
15911 break
15912 elif $ac_last_try; then
15913 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15914 else
15915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15917 done
15919 # For the awk script, D is an array of macro values keyed by name,
15920 # likewise P contains macro parameters if any. Preserve backslash
15921 # newline sequences.
15923 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15924 sed -n '
15925 s/.\{148\}/&'"$ac_delim"'/g
15926 t rset
15927 :rset
15928 s/^[ ]*#[ ]*define[ ][ ]*/ /
15929 t def
15931 :def
15932 s/\\$//
15933 t bsnl
15934 s/["\\]/\\&/g
15935 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15936 D["\1"]=" \3"/p
15937 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15939 :bsnl
15940 s/["\\]/\\&/g
15941 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15942 D["\1"]=" \3\\\\\\n"\\/p
15943 t cont
15944 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15945 t cont
15947 :cont
15949 s/.\{148\}/&'"$ac_delim"'/g
15950 t clear
15951 :clear
15952 s/\\$//
15953 t bsnlc
15954 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15956 :bsnlc
15957 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15958 b cont
15959 ' <confdefs.h | sed '
15960 s/'"$ac_delim"'/"\\\
15961 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15964 for (key in D) D_is_set[key] = 1
15965 FS = "\a"
15967 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15968 line = \$ 0
15969 split(line, arg, " ")
15970 if (arg[1] == "#") {
15971 defundef = arg[2]
15972 mac1 = arg[3]
15973 } else {
15974 defundef = substr(arg[1], 2)
15975 mac1 = arg[2]
15977 split(mac1, mac2, "(") #)
15978 macro = mac2[1]
15979 prefix = substr(line, 1, index(line, defundef) - 1)
15980 if (D_is_set[macro]) {
15981 # Preserve the white space surrounding the "#".
15982 print prefix "define", macro P[macro] D[macro]
15983 next
15984 } else {
15985 # Replace #undef with comments. This is necessary, for example,
15986 # in the case of _POSIX_SOURCE, which is predefined and required
15987 # on some systems where configure will not decide to define it.
15988 if (defundef == "undef") {
15989 print "/*", prefix defundef, macro, "*/"
15990 next
15994 { print }
15995 _ACAWK
15996 _ACEOF
15997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15998 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15999 fi # test -n "$CONFIG_HEADERS"
16002 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16003 shift
16004 for ac_tag
16006 case $ac_tag in
16007 :[FHLC]) ac_mode=$ac_tag; continue;;
16008 esac
16009 case $ac_mode$ac_tag in
16010 :[FHL]*:*);;
16011 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16012 :[FH]-) ac_tag=-:-;;
16013 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16014 esac
16015 ac_save_IFS=$IFS
16016 IFS=:
16017 set x $ac_tag
16018 IFS=$ac_save_IFS
16019 shift
16020 ac_file=$1
16021 shift
16023 case $ac_mode in
16024 :L) ac_source=$1;;
16025 :[FH])
16026 ac_file_inputs=
16027 for ac_f
16029 case $ac_f in
16030 -) ac_f="$tmp/stdin";;
16031 *) # Look for the file first in the build tree, then in the source tree
16032 # (if the path is not absolute). The absolute path cannot be DOS-style,
16033 # because $ac_f cannot contain `:'.
16034 test -f "$ac_f" ||
16035 case $ac_f in
16036 [\\/$]*) false;;
16037 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16038 esac ||
16039 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16040 esac
16041 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16042 as_fn_append ac_file_inputs " '$ac_f'"
16043 done
16045 # Let's still pretend it is `configure' which instantiates (i.e., don't
16046 # use $as_me), people would be surprised to read:
16047 # /* config.h. Generated by config.status. */
16048 configure_input='Generated from '`
16049 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16050 `' by configure.'
16051 if test x"$ac_file" != x-; then
16052 configure_input="$ac_file. $configure_input"
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16054 $as_echo "$as_me: creating $ac_file" >&6;}
16056 # Neutralize special characters interpreted by sed in replacement strings.
16057 case $configure_input in #(
16058 *\&* | *\|* | *\\* )
16059 ac_sed_conf_input=`$as_echo "$configure_input" |
16060 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16061 *) ac_sed_conf_input=$configure_input;;
16062 esac
16064 case $ac_tag in
16065 *:-:* | *:-) cat >"$tmp/stdin" \
16066 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16067 esac
16069 esac
16071 ac_dir=`$as_dirname -- "$ac_file" ||
16072 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16073 X"$ac_file" : 'X\(//\)[^/]' \| \
16074 X"$ac_file" : 'X\(//\)$' \| \
16075 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16076 $as_echo X"$ac_file" |
16077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16078 s//\1/
16081 /^X\(\/\/\)[^/].*/{
16082 s//\1/
16085 /^X\(\/\/\)$/{
16086 s//\1/
16089 /^X\(\/\).*/{
16090 s//\1/
16093 s/.*/./; q'`
16094 as_dir="$ac_dir"; as_fn_mkdir_p
16095 ac_builddir=.
16097 case "$ac_dir" in
16098 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16100 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16101 # A ".." for each directory in $ac_dir_suffix.
16102 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16103 case $ac_top_builddir_sub in
16104 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16105 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16106 esac ;;
16107 esac
16108 ac_abs_top_builddir=$ac_pwd
16109 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16110 # for backward compatibility:
16111 ac_top_builddir=$ac_top_build_prefix
16113 case $srcdir in
16114 .) # We are building in place.
16115 ac_srcdir=.
16116 ac_top_srcdir=$ac_top_builddir_sub
16117 ac_abs_top_srcdir=$ac_pwd ;;
16118 [\\/]* | ?:[\\/]* ) # Absolute name.
16119 ac_srcdir=$srcdir$ac_dir_suffix;
16120 ac_top_srcdir=$srcdir
16121 ac_abs_top_srcdir=$srcdir ;;
16122 *) # Relative name.
16123 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16124 ac_top_srcdir=$ac_top_build_prefix$srcdir
16125 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16126 esac
16127 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16130 case $ac_mode in
16133 # CONFIG_FILE
16136 case $INSTALL in
16137 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16138 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16139 esac
16140 _ACEOF
16142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16143 # If the template does not know about datarootdir, expand it.
16144 # FIXME: This hack should be removed a few years after 2.60.
16145 ac_datarootdir_hack=; ac_datarootdir_seen=
16146 ac_sed_dataroot='
16147 /datarootdir/ {
16151 /@datadir@/p
16152 /@docdir@/p
16153 /@infodir@/p
16154 /@localedir@/p
16155 /@mandir@/p'
16156 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16157 *datarootdir*) ac_datarootdir_seen=yes;;
16158 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16160 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16161 _ACEOF
16162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16163 ac_datarootdir_hack='
16164 s&@datadir@&$datadir&g
16165 s&@docdir@&$docdir&g
16166 s&@infodir@&$infodir&g
16167 s&@localedir@&$localedir&g
16168 s&@mandir@&$mandir&g
16169 s&\\\${datarootdir}&$datarootdir&g' ;;
16170 esac
16171 _ACEOF
16173 # Neutralize VPATH when `$srcdir' = `.'.
16174 # Shell code in configure.ac might set extrasub.
16175 # FIXME: do we really want to maintain this feature?
16176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16177 ac_sed_extra="$ac_vpsub
16178 $extrasub
16179 _ACEOF
16180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16183 s|@configure_input@|$ac_sed_conf_input|;t t
16184 s&@top_builddir@&$ac_top_builddir_sub&;t t
16185 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16186 s&@srcdir@&$ac_srcdir&;t t
16187 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16188 s&@top_srcdir@&$ac_top_srcdir&;t t
16189 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16190 s&@builddir@&$ac_builddir&;t t
16191 s&@abs_builddir@&$ac_abs_builddir&;t t
16192 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16193 s&@INSTALL@&$ac_INSTALL&;t t
16194 $ac_datarootdir_hack
16196 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16197 if $ac_cs_awk_getline; then
16198 $AWK -f "$tmp/subs.awk"
16199 else
16200 $AWK -f "$tmp/subs.awk" | $SHELL
16201 fi >$tmp/out \
16202 || as_fn_error "could not create $ac_file" "$LINENO" 5
16204 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16205 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16206 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16208 which seems to be undefined. Please make sure it is defined." >&5
16209 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16210 which seems to be undefined. Please make sure it is defined." >&2;}
16212 rm -f "$tmp/stdin"
16213 case $ac_file in
16214 -) cat "$tmp/out" && rm -f "$tmp/out";;
16215 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16216 esac \
16217 || as_fn_error "could not create $ac_file" "$LINENO" 5
16221 # CONFIG_HEADER
16223 if test x"$ac_file" != x-; then
16225 $as_echo "/* $configure_input */" \
16226 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16227 } >"$tmp/config.h" \
16228 || as_fn_error "could not create $ac_file" "$LINENO" 5
16229 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16231 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16232 else
16233 rm -f "$ac_file"
16234 mv "$tmp/config.h" "$ac_file" \
16235 || as_fn_error "could not create $ac_file" "$LINENO" 5
16237 else
16238 $as_echo "/* $configure_input */" \
16239 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16240 || as_fn_error "could not create -" "$LINENO" 5
16245 # CONFIG_LINK
16248 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16250 else
16251 # Prefer the file from the source tree if names are identical.
16252 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16253 ac_source=$srcdir/$ac_source
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16257 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16259 if test ! -r "$ac_source"; then
16260 as_fn_error "$ac_source: file not found" "$LINENO" 5
16262 rm -f "$ac_file"
16264 # Try a relative symlink, then a hard link, then a copy.
16265 case $srcdir in
16266 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16267 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16268 esac
16269 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16270 ln "$ac_source" "$ac_file" 2>/dev/null ||
16271 cp -p "$ac_source" "$ac_file" ||
16272 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16275 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16276 $as_echo "$as_me: executing $ac_file commands" >&6;}
16278 esac
16281 case $ac_file$ac_mode in
16282 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16283 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16284 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16285 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16286 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16287 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16288 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16289 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16290 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16291 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16292 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16293 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16294 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16295 "Makefile":C) wine_fn_output_makefile Makefile ;;
16297 esac
16298 done # for ac_tag
16301 as_fn_exit 0
16302 _ACEOF
16303 ac_clean_files=$ac_clean_files_save
16305 test $ac_write_fail = 0 ||
16306 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16309 # configure is writing to config.log, and then calls config.status.
16310 # config.status does its own redirection, appending to config.log.
16311 # Unfortunately, on DOS this fails, as config.log is still kept open
16312 # by configure, so config.status won't be able to write to it; its
16313 # output is simply discarded. So we exec the FD to /dev/null,
16314 # effectively closing config.log, so it can be properly (re)opened and
16315 # appended to by config.status. When coming back to configure, we
16316 # need to make the FD available again.
16317 if test "$no_create" != yes; then
16318 ac_cs_success=:
16319 ac_config_status_args=
16320 test "$silent" = yes &&
16321 ac_config_status_args="$ac_config_status_args --quiet"
16322 exec 5>/dev/null
16323 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16324 exec 5>>config.log
16325 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16326 # would make configure fail if this is the last instruction.
16327 $ac_cs_success || as_fn_exit $?
16329 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16331 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16335 if test "$no_create" = "yes"
16336 then
16337 exit 0
16340 ac_save_IFS="$IFS"
16341 if test "x$wine_notices != "x; then
16342 echo >&6
16343 IFS="|"
16344 for msg in $wine_notices; do
16345 IFS="$ac_save_IFS"
16346 if test -n "$msg"; then
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16348 $as_echo "$as_me: $msg" >&6;}
16350 done
16352 IFS="|"
16353 for msg in $wine_warnings; do
16354 IFS="$ac_save_IFS"
16355 if test -n "$msg"; then
16356 echo >&2
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16358 $as_echo "$as_me: WARNING: $msg" >&2;}
16360 done
16361 IFS="$ac_save_IFS"
16363 echo "
16364 $as_me: Finished. Do '${ac_make}' to compile Wine.
16365 " >&6