Release 1.4.
[wine/gsoc-2012-control.git] / configure
blob6e81f94257b1e893a735bf6b625484ffa25676df
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for Wine 1.4.
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, 2010 Free Software
10 # Foundation, 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 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
153 esac
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 else
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: wine-devel@winehq.org about your system, including any
243 $0: error possibly output before this message. Then install
244 $0: a modern shell, or manually run the script under such a
245 $0: shell if you do have one."
247 exit 1
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
265 { eval $1=; unset $1;}
267 as_unset=as_fn_unset
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
274 return $1
275 } # as_fn_set_status
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
318 /^X\(\/\/\)$/{
319 s//\1/
322 /^X\(\/\).*/{
323 s//\1/
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
333 } # as_fn_mkdir_p
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
343 eval $1+=\$2
345 else
346 as_fn_append ()
348 eval $1=\$$1\$2
350 fi # as_fn_append
352 # as_fn_arith ARG...
353 # ------------------
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
360 as_val=$(( $* ))
362 else
363 as_fn_arith ()
365 as_val=`expr "$@" || test $? -eq 1`
367 fi # as_fn_arith
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
375 as_fn_error ()
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
414 /^X\/\(\/\/\)$/{
415 s//\1/
418 /^X\/\(\/\).*/{
419 s//\1/
422 s/.*/./; q'`
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
445 :lineno
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
473 ECHO_N='-n';;
474 esac
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
497 else
498 as_ln_s='cp -p'
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
543 # Name of the host.
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549 # Initializations.
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
560 # Identity of this package.
561 PACKAGE_NAME='Wine'
562 PACKAGE_TARNAME='wine'
563 PACKAGE_VERSION='1.4'
564 PACKAGE_STRING='Wine 1.4'
565 PACKAGE_BUGREPORT='wine-devel@winehq.org'
566 PACKAGE_URL='http://www.winehq.org'
568 ac_unique_file="server/atom.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 PORCFLAGS
608 LINGUAS
609 ALL_TEST_RESOURCES
610 LDAPLIBS
611 LIBPOLL
612 LIBDL
613 EXTRA_BINARIES
614 MAIN_BINARY
615 SOCKETLIBS
616 CRTLIBS
617 TOOLSEXT
618 LDPATH
619 UNWINDFLAGS
620 BUILTINFLAG
621 EXTRACFLAGS
622 LIBKSTAT
623 LIBOPENAL
624 LIBMPG123
625 PNGINCL
626 FONTCONFIGINCL
627 CUPSINCL
628 OSS4INCL
629 ALSALIBS
630 GSTREAMER_INCL
631 GSTREAMER_LIBS
632 LIBGETTEXTPO
633 ZLIB
634 FREETYPEINCL
635 FREETYPELIBS
636 ft_devel
637 LCMSLIBS
638 RESOLVLIBS
639 GPHOTO2INCL
640 GPHOTO2LIBS
641 gphoto2port_devel
642 gphoto2_devel
643 SANEINCL
644 sane_devel
645 GNUTLSINCL
646 HALINCL
647 DBUSINCL
648 XSLTINCL
649 XML2INCL
650 XML2LIBS
651 X_EXTRA_LIBS
652 X_LIBS
653 X_PRE_LIBS
654 X_CFLAGS
655 XMKMF
656 LIBPTHREAD
657 CROSSTARGET
658 CROSSCC
659 CROSSTEST_DISABLE
660 PRELINK
661 CARBONLIB
662 QUICKTIMELIB
663 LIBOPENCL
664 FRAMEWORK_OPENAL
665 COREAUDIO
666 SECURITYLIB
667 DISKARBITRATIONLIB
668 LDEXECFLAGS
669 APPLICATIONSERVICESLIB
670 IOKITLIB
671 COREFOUNDATIONLIB
672 DLLWRAP
673 DLLTOOL
675 LDRPATH_LOCAL
676 LDRPATH_INSTALL
677 IMPLIBEXT
678 LIBEXT
679 LDDLLFLAGS
680 LDSHARED
681 DLLFLAGS
682 DLLEXT
684 OPENGL_LIBS
685 XLIB
686 MAINTAINER_MODE
687 MSGFMT
688 ICOTOOL
689 CONVERT
690 RSVG
691 PKG_CONFIG
692 FONTFORGE
693 LINTFLAGS
694 LINT
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 LDCONFIG
699 EGREP
700 GREP
701 LN_S
702 RANLIB
703 ARFLAGS
704 ac_ct_AR
706 BISON
707 FLEX
708 TOOLSDIR
709 WOW64_DISABLE
710 TARGETFLAGS
711 CPPBIN
712 ac_ct_CXX
713 CXXFLAGS
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
722 SET_MAKE
723 host_os
724 host_vendor
725 host_cpu
726 host
727 build_os
728 build_vendor
729 build_cpu
730 build
731 target_alias
732 host_alias
733 build_alias
734 LIBS
735 ECHO_T
736 ECHO_N
737 ECHO_C
738 DEFS
739 mandir
740 localedir
741 libdir
742 psdir
743 pdfdir
744 dvidir
745 htmldir
746 infodir
747 docdir
748 oldincludedir
749 includedir
750 localstatedir
751 sharedstatedir
752 sysconfdir
753 datadir
754 datarootdir
755 libexecdir
756 sbindir
757 bindir
758 program_transform_name
759 prefix
760 exec_prefix
761 PACKAGE_URL
762 PACKAGE_BUGREPORT
763 PACKAGE_STRING
764 PACKAGE_VERSION
765 PACKAGE_TARNAME
766 PACKAGE_NAME
767 PATH_SEPARATOR
768 SHELL'
769 ac_subst_files='MAKE_RULES
770 MAKE_TEST_RULES
771 MAKE_DLL_RULES
772 MAKE_IMPLIB_RULES
773 MAKE_PROG_RULES'
774 ac_user_opts='
775 enable_option_checking
776 enable_win16
777 enable_win64
778 enable_tests
779 enable_maintainer_mode
780 with_alsa
781 with_capi
782 with_cms
783 with_coreaudio
784 with_cups
785 with_curses
786 with_dbus
787 with_fontconfig
788 with_freetype
789 with_gettext
790 with_gettextpo
791 with_gphoto
792 with_glu
793 with_gnutls
794 with_gsm
795 with_gstreamer
796 with_hal
797 with_jpeg
798 with_ldap
799 with_mpg123
800 with_openal
801 with_opencl
802 with_opengl
803 with_openssl
804 with_oss
805 with_png
806 with_pthread
807 with_sane
808 with_tiff
809 with_v4l
810 with_xcomposite
811 with_xcursor
812 with_xinerama
813 with_xinput
814 with_xinput2
815 with_xml
816 with_xrandr
817 with_xrender
818 with_xshape
819 with_xslt
820 with_xxf86vm
821 with_zlib
822 with_wine_tools
823 with_wine64
824 enable_largefile
825 with_x
827 ac_precious_vars='build_alias
828 host_alias
829 target_alias
831 CFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
836 CXXFLAGS
839 XMKMF'
842 # Initialize some variables set by options.
843 ac_init_help=
844 ac_init_version=false
845 ac_unrecognized_opts=
846 ac_unrecognized_sep=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
849 cache_file=/dev/null
850 exec_prefix=NONE
851 no_create=
852 no_recursion=
853 prefix=NONE
854 program_prefix=NONE
855 program_suffix=NONE
856 program_transform_name=s,x,x,
857 silent=
858 site=
859 srcdir=
860 verbose=
861 x_includes=NONE
862 x_libraries=NONE
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881 infodir='${datarootdir}/info'
882 htmldir='${docdir}'
883 dvidir='${docdir}'
884 pdfdir='${docdir}'
885 psdir='${docdir}'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
890 ac_prev=
891 ac_dashdash=
892 for ac_option
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
897 ac_prev=
898 continue
901 case $ac_option in
902 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *=) ac_optarg= ;;
904 *) ac_optarg=yes ;;
905 esac
907 # Accept the important Cygnus configure options, so we can diagnose typos.
909 case $ac_dashdash$ac_option in
911 ac_dashdash=yes ;;
913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916 bindir=$ac_optarg ;;
918 -build | --build | --buil | --bui | --bu)
919 ac_prev=build_alias ;;
920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921 build_alias=$ac_optarg ;;
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928 cache_file=$ac_optarg ;;
930 --config-cache | -C)
931 cache_file=config.cache ;;
933 -datadir | --datadir | --datadi | --datad)
934 ac_prev=datadir ;;
935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
936 datadir=$ac_optarg ;;
938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
945 -disable-* | --disable-*)
946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949 as_fn_error $? "invalid feature name: $ac_useropt"
950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
954 "enable_$ac_useropt"
955 "*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
971 -enable-* | --enable-*)
972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973 # Reject names that are not valid shell variable names.
974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 as_fn_error $? "invalid feature name: $ac_useropt"
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
994 exec_prefix=$ac_optarg ;;
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
1000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
1007 -host | --host | --hos | --ho)
1008 ac_prev=host_alias ;;
1009 -host=* | --host=* | --hos=* | --ho=*)
1010 host_alias=$ac_optarg ;;
1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
1023 includedir=$ac_optarg ;;
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028 infodir=$ac_optarg ;;
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033 libdir=$ac_optarg ;;
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
1040 libexecdir=$ac_optarg ;;
1042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1047 -localstatedir | --localstatedir | --localstatedi | --localstated \
1048 | --localstate | --localstat | --localsta | --localst | --locals)
1049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052 localstatedir=$ac_optarg ;;
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057 mandir=$ac_optarg ;;
1059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064 | --no-cr | --no-c | -n)
1065 no_create=yes ;;
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078 oldincludedir=$ac_optarg ;;
1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083 prefix=$ac_optarg ;;
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090 program_prefix=$ac_optarg ;;
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097 program_suffix=$ac_optarg ;;
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
1114 program_transform_name=$ac_optarg ;;
1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
1134 sbindir=$ac_optarg ;;
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
1145 sharedstatedir=$ac_optarg ;;
1147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
1150 site=$ac_optarg ;;
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155 srcdir=$ac_optarg ;;
1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162 sysconfdir=$ac_optarg ;;
1164 -target | --target | --targe | --targ | --tar | --ta | --t)
1165 ac_prev=target_alias ;;
1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167 target_alias=$ac_optarg ;;
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
1175 -with-* | --with-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error $? "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1184 "with_$ac_useropt"
1185 "*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=\$ac_optarg ;;
1191 -without-* | --without-*)
1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195 as_fn_error $? "invalid package name: $ac_useropt"
1196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1200 "with_$ac_useropt"
1201 "*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226 Try \`$0 --help' for more information"
1229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
1232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235 esac
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247 esac
1248 done
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 as_fn_error $? "missing argument to $ac_option"
1255 if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
1258 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 esac
1263 # Check all directory arguments for consistency.
1264 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
1269 eval ac_val=\$$ac_var
1270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
1277 case $ac_val in
1278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 esac
1281 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282 done
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1287 build=$build_alias
1288 host=$host_alias
1289 target=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
1295 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used" >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1302 ac_tool_prefix=
1303 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305 test "$silent" = yes && exec 6>/dev/null
1308 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di=`ls -di .` &&
1310 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311 as_fn_error $? "working directory cannot be determined"
1312 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313 as_fn_error $? "pwd does not report name of working directory"
1316 # Find the source files, if location was not specified.
1317 if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
1319 # Try the directory containing this script, then the parent directory.
1320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325 $as_echo X"$as_myself" |
1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1334 /^X\(\/\/\)$/{
1335 s//\1/
1338 /^X\(\/\).*/{
1339 s//\1/
1342 s/.*/./; q'`
1343 srcdir=$ac_confdir
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 srcdir=..
1347 else
1348 ac_srcdir_defaulted=no
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357 pwd)`
1358 # When building in place, set srcdir=.
1359 if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1362 # Remove unnecessary trailing slashes from srcdir.
1363 # Double slashes in file names in object file debugging info
1364 # mess up M-x gdb in Emacs.
1365 case $srcdir in
1366 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 esac
1368 for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 done
1376 # Report the --help message.
1378 if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
1382 \`configure' configures Wine 1.4 to adapt to many kinds of systems.
1384 Usage: $0 [OPTION]... [VAR=VALUE]...
1386 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387 VAR=VALUE. See below for descriptions of some of the useful variables.
1389 Defaults for the options are specified in brackets.
1391 Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking ...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402 Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
1404 [$ac_default_prefix]
1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406 [PREFIX]
1408 By default, \`make install' will install all the files in
1409 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411 for instance \`--prefix=\$HOME'.
1413 For better control, use the options below.
1415 Fine tuning of the installation directories:
1416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
1435 _ACEOF
1437 cat <<\_ACEOF
1439 X features:
1440 --x-includes=DIR X include files are in DIR
1441 --x-libraries=DIR X library files are in DIR
1443 System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 _ACEOF
1449 if test -n "$ac_init_help"; then
1450 case $ac_init_help in
1451 short | recursive ) echo "Configuration of Wine 1.4:";;
1452 esac
1453 cat <<\_ACEOF
1455 Optional Features:
1456 --disable-option-checking ignore unrecognized --enable/--with options
1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --disable-win16 do not include Win16 support
1460 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1461 binaries)
1462 --disable-tests do not build the regression tests
1463 --enable-maintainer-mode
1464 enable maintainer-specific build rules
1465 --disable-largefile omit support for large files
1467 Optional Packages:
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --without-alsa do not use the Alsa sound support
1471 --without-capi do not use CAPI (ISDN support)
1472 --without-cms do not use CMS (color management support)
1473 --without-coreaudio do not use the CoreAudio sound support
1474 --without-cups do not use CUPS
1475 --without-curses do not use (n)curses
1476 --without-dbus do not use DBus (dynamic device support)
1477 --without-fontconfig do not use fontconfig
1478 --without-freetype do not use the FreeType library
1479 --without-gettext do not use gettext
1480 --with-gettextpo use the GetTextPO library to rebuild po files
1481 --without-gphoto do not use gphoto (Digital Camera support)
1482 --without-glu do not use the GLU library
1483 --without-gnutls do not use GnuTLS (schannel support)
1484 --without-gsm do not use libgsm (GSM 06.10 codec support)
1485 --without-gstreamer do not use GStreamer (codecs support)
1486 --without-hal do not use HAL (dynamic device support)
1487 --without-jpeg do not use JPEG
1488 --without-ldap do not use LDAP
1489 --without-mpg123 do not use the mpg123 library
1490 --without-openal do not use OpenAL
1491 --without-opencl do not use OpenCL
1492 --without-opengl do not use OpenGL
1493 --without-openssl do not use OpenSSL
1494 --without-oss do not use the OSS sound support
1495 --without-png do not use PNG
1496 --without-pthread do not use the pthread library
1497 --without-sane do not use SANE (scanner support)
1498 --without-tiff do not use TIFF
1499 --without-v4l do not use v4l1 (v4l support)
1500 --without-xcomposite do not use the Xcomposite extension
1501 --without-xcursor do not use the Xcursor extension
1502 --without-xinerama do not use Xinerama (multi-monitor support)
1503 --without-xinput do not use the Xinput extension
1504 --without-xinput2 do not use the Xinput 2 extension
1505 --without-xml do not use XML
1506 --without-xrandr do not use Xrandr (resolution changes)
1507 --without-xrender do not use the Xrender extension
1508 --without-xshape do not use the Xshape extension
1509 --without-xslt do not use XSLT
1510 --without-xxf86vm do not use XFree video mode extension
1511 --without-zlib do not use Zlib (data compression)
1512 --with-wine-tools=DIR use Wine tools from directory DIR
1513 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1514 --with-x use the X Window System
1516 Some influential environment variables:
1517 CC C compiler command
1518 CFLAGS C compiler flags
1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1520 nonstandard directory <lib dir>
1521 LIBS libraries to pass to the linker, e.g. -l<library>
1522 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1523 you have headers in a nonstandard directory <include dir>
1524 CXX C++ compiler command
1525 CXXFLAGS C++ compiler flags
1526 CPP C preprocessor
1527 XMKMF Path to xmkmf, Makefile generator for X Window System
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1532 Report bugs to <wine-devel@winehq.org>.
1533 Wine home page: <http://www.winehq.org>.
1534 _ACEOF
1535 ac_status=$?
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543 continue
1544 ac_builddir=.
1546 case "$ac_dir" in
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 esac ;;
1556 esac
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1562 case $srcdir in
1563 .) # We are building in place.
1564 ac_srcdir=.
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
1568 ac_srcdir=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1571 *) # Relative name.
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 esac
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1581 echo &&
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1586 else
1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588 fi || ac_status=$?
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1590 done
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1595 cat <<\_ACEOF
1596 Wine configure 1.4
1597 generated by GNU Autoconf 2.68
1599 Copyright (C) 2010 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602 _ACEOF
1603 exit
1606 ## ------------------------ ##
1607 ## Autoconf initialization. ##
1608 ## ------------------------ ##
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile ()
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext
1617 if { { ac_try="$ac_compile"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_compile") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest.$ac_objext; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1641 ac_retval=1
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1646 } # ac_fn_c_try_compile
1648 # ac_fn_cxx_try_compile LINENO
1649 # ----------------------------
1650 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_cxx_try_compile ()
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 rm -f conftest.$ac_objext
1655 if { { ac_try="$ac_compile"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_compile") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && {
1671 test -z "$ac_cxx_werror_flag" ||
1672 test ! -s conftest.err
1673 } && test -s conftest.$ac_objext; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1679 ac_retval=1
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1684 } # ac_fn_cxx_try_compile
1686 # ac_fn_c_try_link LINENO
1687 # -----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded.
1689 ac_fn_c_try_link ()
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext conftest$ac_exeext
1693 if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest$ac_exeext && {
1712 test "$cross_compiling" = yes ||
1713 $as_test_x conftest$ac_exeext
1714 }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 ac_retval=1
1722 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1723 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1724 # interfere with the next link command; also delete a directory that is
1725 # left behind by Apple's compiler. We do this before executing the actions.
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 as_fn_set_status $ac_retval
1730 } # ac_fn_c_try_link
1732 # ac_fn_c_try_cpp LINENO
1733 # ----------------------
1734 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1735 ac_fn_c_try_cpp ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 if { { ac_try="$ac_cpp conftest.$ac_ext"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } > conftest.i && {
1754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1762 ac_retval=1
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1767 } # ac_fn_c_try_cpp
1769 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1770 # -------------------------------------------------------
1771 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1772 # the include files in INCLUDES and setting the cache variable VAR
1773 # accordingly.
1774 ac_fn_c_check_header_mongrel ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if eval \${$3+:} false; then :
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1783 eval ac_res=\$$3
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785 $as_echo "$ac_res" >&6; }
1786 else
1787 # Is the header compilable?
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1789 $as_echo_n "checking $2 usability... " >&6; }
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796 ac_header_compiler=yes
1797 else
1798 ac_header_compiler=no
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1802 $as_echo "$ac_header_compiler" >&6; }
1804 # Is the header present?
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1806 $as_echo_n "checking $2 presence... " >&6; }
1807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808 /* end confdefs.h. */
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_cpp "$LINENO"; then :
1812 ac_header_preproc=yes
1813 else
1814 ac_header_preproc=no
1816 rm -f conftest.err conftest.i conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1818 $as_echo "$ac_header_preproc" >&6; }
1820 # So? What about this header?
1821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1822 yes:no: )
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1824 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1826 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 no:yes:* )
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1830 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1832 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1834 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1836 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1839 ( $as_echo "## ------------------------------------ ##
1840 ## Report this to wine-devel@winehq.org ##
1841 ## ------------------------------------ ##"
1842 ) | sed "s/^/$as_me: WARNING: /" >&2
1844 esac
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 eval "$3=\$ac_header_compiler"
1852 eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 } # ac_fn_c_check_header_mongrel
1860 # ac_fn_c_try_run LINENO
1861 # ----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1863 # that executables *can* be run.
1864 ac_fn_c_try_run ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>&5
1875 ac_status=$?
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1878 { { case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_try") 2>&5
1885 ac_status=$?
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; }; }; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: program exited with status $ac_status" >&5
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=$ac_status
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 as_fn_set_status $ac_retval
1900 } # ac_fn_c_try_run
1902 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1903 # -------------------------------------------------------
1904 # Tests whether HEADER exists and can be compiled using the include files in
1905 # INCLUDES, setting the cache variable VAR accordingly.
1906 ac_fn_c_check_header_compile ()
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1913 else
1914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1915 /* end confdefs.h. */
1917 #include <$2>
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920 eval "$3=yes"
1921 else
1922 eval "$3=no"
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_check_header_compile
1933 # ac_fn_c_check_func LINENO FUNC VAR
1934 # ----------------------------------
1935 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1936 ac_fn_c_check_func ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1948 #define $2 innocuous_$2
1950 /* System header to define __stub macros and hopefully few prototypes,
1951 which can conflict with char $2 (); below.
1952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1953 <limits.h> exists even on freestanding compilers. */
1955 #ifdef __STDC__
1956 # include <limits.h>
1957 #else
1958 # include <assert.h>
1959 #endif
1961 #undef $2
1963 /* Override any GCC internal prototype to avoid an error.
1964 Use char because int might match the return type of a GCC
1965 builtin and then its argument prototype would still apply. */
1966 #ifdef __cplusplus
1967 extern "C"
1968 #endif
1969 char $2 ();
1970 /* The GNU C library defines this for functions which it implements
1971 to always fail with ENOSYS. Some functions are actually named
1972 something starting with __ and the normal name is an alias. */
1973 #if defined __stub_$2 || defined __stub___$2
1974 choke me
1975 #endif
1978 main ()
1980 return $2 ();
1982 return 0;
1984 _ACEOF
1985 if ac_fn_c_try_link "$LINENO"; then :
1986 eval "$3=yes"
1987 else
1988 eval "$3=no"
1990 rm -f core conftest.err conftest.$ac_objext \
1991 conftest$ac_exeext conftest.$ac_ext
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_func
2000 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2001 # ----------------------------------------------------
2002 # Tries to find if the field MEMBER exists in type AGGR, after including
2003 # INCLUDES, setting cache variable VAR accordingly.
2004 ac_fn_c_check_member ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2008 $as_echo_n "checking for $2.$3... " >&6; }
2009 if eval \${$4+:} false; then :
2010 $as_echo_n "(cached) " >&6
2011 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2016 main ()
2018 static $2 ac_aggr;
2019 if (ac_aggr.$3)
2020 return 0;
2022 return 0;
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 eval "$4=yes"
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2032 main ()
2034 static $2 ac_aggr;
2035 if (sizeof ac_aggr.$3)
2036 return 0;
2038 return 0;
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 eval "$4=yes"
2043 else
2044 eval "$4=no"
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 eval ac_res=\$$4
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_member
2057 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2058 # -------------------------------------------
2059 # Tests whether TYPE exists after having included INCLUDES, setting cache
2060 # variable VAR accordingly.
2061 ac_fn_c_check_type ()
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \${$3+:} false; then :
2067 $as_echo_n "(cached) " >&6
2068 else
2069 eval "$3=no"
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2074 main ()
2076 if (sizeof ($2))
2077 return 0;
2079 return 0;
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2087 main ()
2089 if (sizeof (($2)))
2090 return 0;
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2097 else
2098 eval "$3=yes"
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 eval ac_res=\$$3
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109 } # ac_fn_c_check_type
2110 cat >config.log <<_ACEOF
2111 This file contains any messages produced by compilers while
2112 running configure, to aid debugging if configure makes a mistake.
2114 It was created by Wine $as_me 1.4, which was
2115 generated by GNU Autoconf 2.68. Invocation command line was
2117 $ $0 $@
2119 _ACEOF
2120 exec 5>>config.log
2122 cat <<_ASUNAME
2123 ## --------- ##
2124 ## Platform. ##
2125 ## --------- ##
2127 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2128 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2129 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2130 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2131 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2133 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2134 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2136 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2137 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2138 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2139 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2140 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2141 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2142 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2144 _ASUNAME
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 $as_echo "PATH: $as_dir"
2152 done
2153 IFS=$as_save_IFS
2155 } >&5
2157 cat >&5 <<_ACEOF
2160 ## ----------- ##
2161 ## Core tests. ##
2162 ## ----------- ##
2164 _ACEOF
2167 # Keep a trace of the command line.
2168 # Strip out --no-create and --no-recursion so they do not pile up.
2169 # Strip out --silent because we don't want to record it for future runs.
2170 # Also quote any args containing shell meta-characters.
2171 # Make two passes to allow for proper duplicate-argument suppression.
2172 ac_configure_args=
2173 ac_configure_args0=
2174 ac_configure_args1=
2175 ac_must_keep_next=false
2176 for ac_pass in 1 2
2178 for ac_arg
2180 case $ac_arg in
2181 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2182 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2183 | -silent | --silent | --silen | --sile | --sil)
2184 continue ;;
2185 *\'*)
2186 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2187 esac
2188 case $ac_pass in
2189 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2191 as_fn_append ac_configure_args1 " '$ac_arg'"
2192 if test $ac_must_keep_next = true; then
2193 ac_must_keep_next=false # Got value, back to normal.
2194 else
2195 case $ac_arg in
2196 *=* | --config-cache | -C | -disable-* | --disable-* \
2197 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2198 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2199 | -with-* | --with-* | -without-* | --without-* | --x)
2200 case "$ac_configure_args0 " in
2201 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2202 esac
2204 -* ) ac_must_keep_next=true ;;
2205 esac
2207 as_fn_append ac_configure_args " '$ac_arg'"
2209 esac
2210 done
2211 done
2212 { ac_configure_args0=; unset ac_configure_args0;}
2213 { ac_configure_args1=; unset ac_configure_args1;}
2215 # When interrupted or exit'd, cleanup temporary files, and complete
2216 # config.log. We remove comments because anyway the quotes in there
2217 # would cause problems or look ugly.
2218 # WARNING: Use '\'' to represent an apostrophe within the trap.
2219 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2220 trap 'exit_status=$?
2221 # Save into config.log some information that might help in debugging.
2223 echo
2225 $as_echo "## ---------------- ##
2226 ## Cache variables. ##
2227 ## ---------------- ##"
2228 echo
2229 # The following way of writing the cache mishandles newlines in values,
2231 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2232 eval ac_val=\$$ac_var
2233 case $ac_val in #(
2234 *${as_nl}*)
2235 case $ac_var in #(
2236 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2237 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2238 esac
2239 case $ac_var in #(
2240 _ | IFS | as_nl) ;; #(
2241 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2242 *) { eval $ac_var=; unset $ac_var;} ;;
2243 esac ;;
2244 esac
2245 done
2246 (set) 2>&1 |
2247 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2248 *${as_nl}ac_space=\ *)
2249 sed -n \
2250 "s/'\''/'\''\\\\'\'''\''/g;
2251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2252 ;; #(
2254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2256 esac |
2257 sort
2259 echo
2261 $as_echo "## ----------------- ##
2262 ## Output variables. ##
2263 ## ----------------- ##"
2264 echo
2265 for ac_var in $ac_subst_vars
2267 eval ac_val=\$$ac_var
2268 case $ac_val in
2269 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2270 esac
2271 $as_echo "$ac_var='\''$ac_val'\''"
2272 done | sort
2273 echo
2275 if test -n "$ac_subst_files"; then
2276 $as_echo "## ------------------- ##
2277 ## File substitutions. ##
2278 ## ------------------- ##"
2279 echo
2280 for ac_var in $ac_subst_files
2282 eval ac_val=\$$ac_var
2283 case $ac_val in
2284 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2285 esac
2286 $as_echo "$ac_var='\''$ac_val'\''"
2287 done | sort
2288 echo
2291 if test -s confdefs.h; then
2292 $as_echo "## ----------- ##
2293 ## confdefs.h. ##
2294 ## ----------- ##"
2295 echo
2296 cat confdefs.h
2297 echo
2299 test "$ac_signal" != 0 &&
2300 $as_echo "$as_me: caught signal $ac_signal"
2301 $as_echo "$as_me: exit $exit_status"
2302 } >&5
2303 rm -f core *.core core.conftest.* &&
2304 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2305 exit $exit_status
2307 for ac_signal in 1 2 13 15; do
2308 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2309 done
2310 ac_signal=0
2312 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2313 rm -f -r conftest* confdefs.h
2315 $as_echo "/* confdefs.h */" > confdefs.h
2317 # Predefined preprocessor variables.
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_NAME "$PACKAGE_NAME"
2321 _ACEOF
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2325 _ACEOF
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2329 _ACEOF
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_STRING "$PACKAGE_STRING"
2333 _ACEOF
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2337 _ACEOF
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_URL "$PACKAGE_URL"
2341 _ACEOF
2344 # Let the site file select an alternate cache file if it wants to.
2345 # Prefer an explicitly selected file to automatically selected ones.
2346 ac_site_file1=NONE
2347 ac_site_file2=NONE
2348 if test -n "$CONFIG_SITE"; then
2349 # We do not want a PATH search for config.site.
2350 case $CONFIG_SITE in #((
2351 -*) ac_site_file1=./$CONFIG_SITE;;
2352 */*) ac_site_file1=$CONFIG_SITE;;
2353 *) ac_site_file1=./$CONFIG_SITE;;
2354 esac
2355 elif test "x$prefix" != xNONE; then
2356 ac_site_file1=$prefix/share/config.site
2357 ac_site_file2=$prefix/etc/config.site
2358 else
2359 ac_site_file1=$ac_default_prefix/share/config.site
2360 ac_site_file2=$ac_default_prefix/etc/config.site
2362 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2364 test "x$ac_site_file" = xNONE && continue
2365 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2367 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2368 sed 's/^/| /' "$ac_site_file" >&5
2369 . "$ac_site_file" \
2370 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372 as_fn_error $? "failed to load site script $ac_site_file
2373 See \`config.log' for more details" "$LINENO" 5; }
2375 done
2377 if test -r "$cache_file"; then
2378 # Some versions of bash will fail to source /dev/null (special files
2379 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2380 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2382 $as_echo "$as_me: loading cache $cache_file" >&6;}
2383 case $cache_file in
2384 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2385 *) . "./$cache_file";;
2386 esac
2388 else
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2390 $as_echo "$as_me: creating cache $cache_file" >&6;}
2391 >$cache_file
2394 # Check that the precious variables saved in the cache have kept the same
2395 # value.
2396 ac_cache_corrupted=false
2397 for ac_var in $ac_precious_vars; do
2398 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2399 eval ac_new_set=\$ac_env_${ac_var}_set
2400 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2401 eval ac_new_val=\$ac_env_${ac_var}_value
2402 case $ac_old_set,$ac_new_set in
2403 set,)
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2405 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2406 ac_cache_corrupted=: ;;
2407 ,set)
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2409 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2410 ac_cache_corrupted=: ;;
2411 ,);;
2413 if test "x$ac_old_val" != "x$ac_new_val"; then
2414 # differences in whitespace do not lead to failure.
2415 ac_old_val_w=`echo x $ac_old_val`
2416 ac_new_val_w=`echo x $ac_new_val`
2417 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2419 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2420 ac_cache_corrupted=:
2421 else
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2423 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2424 eval $ac_var=\$ac_old_val
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2427 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2429 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2430 fi;;
2431 esac
2432 # Pass precious variables to config.status.
2433 if test "$ac_new_set" = set; then
2434 case $ac_new_val in
2435 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2436 *) ac_arg=$ac_var=$ac_new_val ;;
2437 esac
2438 case " $ac_configure_args " in
2439 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2440 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2441 esac
2443 done
2444 if $ac_cache_corrupted; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2448 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2449 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2451 ## -------------------- ##
2452 ## Main body of script. ##
2453 ## -------------------- ##
2455 ac_ext=c
2456 ac_cpp='$CPP $CPPFLAGS'
2457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463 ac_config_headers="$ac_config_headers include/config.h"
2465 ac_aux_dir=
2466 for ac_dir in tools "$srcdir"/tools; do
2467 if test -f "$ac_dir/install-sh"; then
2468 ac_aux_dir=$ac_dir
2469 ac_install_sh="$ac_aux_dir/install-sh -c"
2470 break
2471 elif test -f "$ac_dir/install.sh"; then
2472 ac_aux_dir=$ac_dir
2473 ac_install_sh="$ac_aux_dir/install.sh -c"
2474 break
2475 elif test -f "$ac_dir/shtool"; then
2476 ac_aux_dir=$ac_dir
2477 ac_install_sh="$ac_aux_dir/shtool install -c"
2478 break
2480 done
2481 if test -z "$ac_aux_dir"; then
2482 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2485 # These three variables are undocumented and unsupported,
2486 # and are intended to be withdrawn in a future Autoconf release.
2487 # They can cause serious problems if a builder's source tree is in a directory
2488 # whose full name contains unusual characters.
2489 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2490 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2491 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2497 # Check whether --enable-win16 was given.
2498 if test "${enable_win16+set}" = set; then :
2499 enableval=$enable_win16;
2502 # Check whether --enable-win64 was given.
2503 if test "${enable_win64+set}" = set; then :
2504 enableval=$enable_win64;
2507 # Check whether --enable-tests was given.
2508 if test "${enable_tests+set}" = set; then :
2509 enableval=$enable_tests;
2512 # Check whether --enable-maintainer-mode was given.
2513 if test "${enable_maintainer_mode+set}" = set; then :
2514 enableval=$enable_maintainer_mode;
2519 # Check whether --with-alsa was given.
2520 if test "${with_alsa+set}" = set; then :
2521 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2525 # Check whether --with-capi was given.
2526 if test "${with_capi+set}" = set; then :
2527 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2531 # Check whether --with-cms was given.
2532 if test "${with_cms+set}" = set; then :
2533 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2537 # Check whether --with-coreaudio was given.
2538 if test "${with_coreaudio+set}" = set; then :
2539 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2543 # Check whether --with-cups was given.
2544 if test "${with_cups+set}" = set; then :
2545 withval=$with_cups;
2549 # Check whether --with-curses was given.
2550 if test "${with_curses+set}" = set; then :
2551 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2555 # Check whether --with-dbus was given.
2556 if test "${with_dbus+set}" = set; then :
2557 withval=$with_dbus;
2561 # Check whether --with-fontconfig was given.
2562 if test "${with_fontconfig+set}" = set; then :
2563 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2567 # Check whether --with-freetype was given.
2568 if test "${with_freetype+set}" = set; then :
2569 withval=$with_freetype;
2573 # Check whether --with-gettext was given.
2574 if test "${with_gettext+set}" = set; then :
2575 withval=$with_gettext;
2579 # Check whether --with-gettextpo was given.
2580 if test "${with_gettextpo+set}" = set; then :
2581 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2585 # Check whether --with-gphoto was given.
2586 if test "${with_gphoto+set}" = set; then :
2587 withval=$with_gphoto;
2591 # Check whether --with-glu was given.
2592 if test "${with_glu+set}" = set; then :
2593 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2597 # Check whether --with-gnutls was given.
2598 if test "${with_gnutls+set}" = set; then :
2599 withval=$with_gnutls;
2603 # Check whether --with-gsm was given.
2604 if test "${with_gsm+set}" = set; then :
2605 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2609 # Check whether --with-gstreamer was given.
2610 if test "${with_gstreamer+set}" = set; then :
2611 withval=$with_gstreamer;
2615 # Check whether --with-hal was given.
2616 if test "${with_hal+set}" = set; then :
2617 withval=$with_hal;
2621 # Check whether --with-jpeg was given.
2622 if test "${with_jpeg+set}" = set; then :
2623 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2627 # Check whether --with-ldap was given.
2628 if test "${with_ldap+set}" = set; then :
2629 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2633 # Check whether --with-mpg123 was given.
2634 if test "${with_mpg123+set}" = set; then :
2635 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2639 # Check whether --with-openal was given.
2640 if test "${with_openal+set}" = set; then :
2641 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2645 # Check whether --with-opencl was given.
2646 if test "${with_opencl+set}" = set; then :
2647 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
2651 # Check whether --with-opengl was given.
2652 if test "${with_opengl+set}" = set; then :
2653 withval=$with_opengl;
2657 # Check whether --with-openssl was given.
2658 if test "${with_openssl+set}" = set; then :
2659 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2663 # Check whether --with-oss was given.
2664 if test "${with_oss+set}" = set; then :
2665 withval=$with_oss;
2669 # Check whether --with-png was given.
2670 if test "${with_png+set}" = set; then :
2671 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2675 # Check whether --with-pthread was given.
2676 if test "${with_pthread+set}" = set; then :
2677 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2681 # Check whether --with-sane was given.
2682 if test "${with_sane+set}" = set; then :
2683 withval=$with_sane;
2687 # Check whether --with-tiff was given.
2688 if test "${with_tiff+set}" = set; then :
2689 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2693 # Check whether --with-v4l was given.
2694 if test "${with_v4l+set}" = set; then :
2695 withval=$with_v4l;
2699 # Check whether --with-xcomposite was given.
2700 if test "${with_xcomposite+set}" = set; then :
2701 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2705 # Check whether --with-xcursor was given.
2706 if test "${with_xcursor+set}" = set; then :
2707 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2711 # Check whether --with-xinerama was given.
2712 if test "${with_xinerama+set}" = set; then :
2713 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2717 # Check whether --with-xinput was given.
2718 if test "${with_xinput+set}" = set; then :
2719 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2723 # Check whether --with-xinput2 was given.
2724 if test "${with_xinput2+set}" = set; then :
2725 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2729 # Check whether --with-xml was given.
2730 if test "${with_xml+set}" = set; then :
2731 withval=$with_xml;
2735 # Check whether --with-xrandr was given.
2736 if test "${with_xrandr+set}" = set; then :
2737 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2741 # Check whether --with-xrender was given.
2742 if test "${with_xrender+set}" = set; then :
2743 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2747 # Check whether --with-xshape was given.
2748 if test "${with_xshape+set}" = set; then :
2749 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2753 # Check whether --with-xslt was given.
2754 if test "${with_xslt+set}" = set; then :
2755 withval=$with_xslt;
2759 # Check whether --with-xxf86vm was given.
2760 if test "${with_xxf86vm+set}" = set; then :
2761 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
2765 # Check whether --with-zlib was given.
2766 if test "${with_zlib+set}" = set; then :
2767 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2772 # Check whether --with-wine-tools was given.
2773 if test "${with_wine_tools+set}" = set; then :
2774 withval=$with_wine_tools;
2778 # Check whether --with-wine64 was given.
2779 if test "${with_wine64+set}" = set; then :
2780 withval=$with_wine64;
2784 # Make sure we can run config.sub.
2785 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2786 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2789 $as_echo_n "checking build system type... " >&6; }
2790 if ${ac_cv_build+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 ac_build_alias=$build_alias
2794 test "x$ac_build_alias" = x &&
2795 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2796 test "x$ac_build_alias" = x &&
2797 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2798 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2799 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2803 $as_echo "$ac_cv_build" >&6; }
2804 case $ac_cv_build in
2805 *-*-*) ;;
2806 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2807 esac
2808 build=$ac_cv_build
2809 ac_save_IFS=$IFS; IFS='-'
2810 set x $ac_cv_build
2811 shift
2812 build_cpu=$1
2813 build_vendor=$2
2814 shift; shift
2815 # Remember, the first character of IFS is used to create $*,
2816 # except with old shells:
2817 build_os=$*
2818 IFS=$ac_save_IFS
2819 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2823 $as_echo_n "checking host system type... " >&6; }
2824 if ${ac_cv_host+:} false; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 if test "x$host_alias" = x; then
2828 ac_cv_host=$ac_cv_build
2829 else
2830 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2831 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2836 $as_echo "$ac_cv_host" >&6; }
2837 case $ac_cv_host in
2838 *-*-*) ;;
2839 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2840 esac
2841 host=$ac_cv_host
2842 ac_save_IFS=$IFS; IFS='-'
2843 set x $ac_cv_host
2844 shift
2845 host_cpu=$1
2846 host_vendor=$2
2847 shift; shift
2848 # Remember, the first character of IFS is used to create $*,
2849 # except with old shells:
2850 host_os=$*
2851 IFS=$ac_save_IFS
2852 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2856 case "$srcdir" in
2857 .) ;;
2858 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2859 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
2860 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2861 fi ;;
2862 esac
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2866 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2867 set x ${MAKE-make}
2868 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2869 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 cat >conftest.make <<\_ACEOF
2873 SHELL = /bin/sh
2874 all:
2875 @echo '@@@%%%=$(MAKE)=@@@%%%'
2876 _ACEOF
2877 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2878 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2879 *@@@%%%=?*=@@@%%%*)
2880 eval ac_cv_prog_make_${ac_make}_set=yes;;
2882 eval ac_cv_prog_make_${ac_make}_set=no;;
2883 esac
2884 rm -f conftest.make
2886 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2888 $as_echo "yes" >&6; }
2889 SET_MAKE=
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 SET_MAKE="MAKE=${MAKE-make}"
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 if test -n "$ac_tool_prefix"; then
2902 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2903 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if ${ac_cv_prog_CC+:} false; then :
2907 $as_echo_n "(cached) " >&6
2908 else
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921 break 2
2923 done
2924 done
2925 IFS=$as_save_IFS
2929 CC=$ac_cv_prog_CC
2930 if test -n "$CC"; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932 $as_echo "$CC" >&6; }
2933 else
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2940 if test -z "$ac_cv_prog_CC"; then
2941 ac_ct_CC=$CC
2942 # Extract the first word of "gcc", so it can be a program name with args.
2943 set dummy gcc; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$ac_ct_CC"; then
2950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_ac_ct_CC="gcc"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2963 done
2964 done
2965 IFS=$as_save_IFS
2969 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2970 if test -n "$ac_ct_CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2972 $as_echo "$ac_ct_CC" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2978 if test "x$ac_ct_CC" = x; then
2979 CC=""
2980 else
2981 case $cross_compiling:$ac_tool_warned in
2982 yes:)
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2985 ac_tool_warned=yes ;;
2986 esac
2987 CC=$ac_ct_CC
2989 else
2990 CC="$ac_cv_prog_CC"
2993 if test -z "$CC"; then
2994 if test -n "$ac_tool_prefix"; then
2995 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2996 set dummy ${ac_tool_prefix}cc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$CC"; then
3003 ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_CC="${ac_tool_prefix}cc"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3016 done
3017 done
3018 IFS=$as_save_IFS
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3034 if test -z "$CC"; then
3035 # Extract the first word of "cc", so it can be a program name with args.
3036 set dummy cc; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_CC+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test -n "$CC"; then
3043 ac_cv_prog_CC="$CC" # Let the user override the test.
3044 else
3045 ac_prog_rejected=no
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3054 ac_prog_rejected=yes
3055 continue
3057 ac_cv_prog_CC="cc"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3061 done
3062 done
3063 IFS=$as_save_IFS
3065 if test $ac_prog_rejected = yes; then
3066 # We found a bogon in the path, so make sure we never use it.
3067 set dummy $ac_cv_prog_CC
3068 shift
3069 if test $# != 0; then
3070 # We chose a different compiler from the bogus one.
3071 # However, it has the same basename, so the bogon will be chosen
3072 # first if we set CC to just the basename; use the full file name.
3073 shift
3074 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3079 CC=$ac_cv_prog_CC
3080 if test -n "$CC"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3090 if test -z "$CC"; then
3091 if test -n "$ac_tool_prefix"; then
3092 for ac_prog in cl.exe
3094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_CC+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 break 2
3115 done
3116 done
3117 IFS=$as_save_IFS
3121 CC=$ac_cv_prog_CC
3122 if test -n "$CC"; then
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3124 $as_echo "$CC" >&6; }
3125 else
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127 $as_echo "no" >&6; }
3131 test -n "$CC" && break
3132 done
3134 if test -z "$CC"; then
3135 ac_ct_CC=$CC
3136 for ac_prog in cl.exe
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$ac_ct_CC"; then
3146 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_ac_ct_CC="$ac_prog"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3159 done
3160 done
3161 IFS=$as_save_IFS
3165 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3166 if test -n "$ac_ct_CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3168 $as_echo "$ac_ct_CC" >&6; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3175 test -n "$ac_ct_CC" && break
3176 done
3178 if test "x$ac_ct_CC" = x; then
3179 CC=""
3180 else
3181 case $cross_compiling:$ac_tool_warned in
3182 yes:)
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3185 ac_tool_warned=yes ;;
3186 esac
3187 CC=$ac_ct_CC
3194 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error $? "no acceptable C compiler found in \$PATH
3197 See \`config.log' for more details" "$LINENO" 5; }
3199 # Provide some information about the compiler.
3200 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3201 set X $ac_compile
3202 ac_compiler=$2
3203 for ac_option in --version -v -V -qversion; do
3204 { { ac_try="$ac_compiler $ac_option >&5"
3205 case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210 $as_echo "$ac_try_echo"; } >&5
3211 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3212 ac_status=$?
3213 if test -s conftest.err; then
3214 sed '10a\
3215 ... rest of stderr output deleted ...
3216 10q' conftest.err >conftest.er1
3217 cat conftest.er1 >&5
3219 rm -f conftest.er1 conftest.err
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }
3222 done
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3228 main ()
3232 return 0;
3234 _ACEOF
3235 ac_clean_files_save=$ac_clean_files
3236 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3237 # Try to create an executable without -o first, disregard a.out.
3238 # It will help us diagnose broken compilers, and finding out an intuition
3239 # of exeext.
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3241 $as_echo_n "checking whether the C compiler works... " >&6; }
3242 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3244 # The possible output files:
3245 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3247 ac_rmfiles=
3248 for ac_file in $ac_files
3250 case $ac_file in
3251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3252 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3253 esac
3254 done
3255 rm -f $ac_rmfiles
3257 if { { ac_try="$ac_link_default"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_link_default") 2>&5
3265 ac_status=$?
3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }; then :
3268 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3269 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3270 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3271 # so that the user can short-circuit this test for compilers unknown to
3272 # Autoconf.
3273 for ac_file in $ac_files ''
3275 test -f "$ac_file" || continue
3276 case $ac_file in
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3279 [ab].out )
3280 # We found the default executable, but exeext='' is most
3281 # certainly right.
3282 break;;
3283 *.* )
3284 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3285 then :; else
3286 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3288 # We set ac_cv_exeext here because the later test for it is not
3289 # safe: cross compilers may not add the suffix if given an `-o'
3290 # argument, so we may need to know it at that point already.
3291 # Even if this section looks crufty: it has the advantage of
3292 # actually working.
3293 break;;
3295 break;;
3296 esac
3297 done
3298 test "$ac_cv_exeext" = no && ac_cv_exeext=
3300 else
3301 ac_file=''
3303 if test -z "$ac_file"; then :
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305 $as_echo "no" >&6; }
3306 $as_echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3311 as_fn_error 77 "C compiler cannot create executables
3312 See \`config.log' for more details" "$LINENO" 5; }
3313 else
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315 $as_echo "yes" >&6; }
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3318 $as_echo_n "checking for C compiler default output file name... " >&6; }
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3320 $as_echo "$ac_file" >&6; }
3321 ac_exeext=$ac_cv_exeext
3323 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3324 ac_clean_files=$ac_clean_files_save
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3326 $as_echo_n "checking for suffix of executables... " >&6; }
3327 if { { ac_try="$ac_link"
3328 case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_link") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }; then :
3338 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3339 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3340 # work properly (i.e., refer to `conftest.exe'), while it won't with
3341 # `rm'.
3342 for ac_file in conftest.exe conftest conftest.*; do
3343 test -f "$ac_file" || continue
3344 case $ac_file in
3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3346 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347 break;;
3348 * ) break;;
3349 esac
3350 done
3351 else
3352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3355 See \`config.log' for more details" "$LINENO" 5; }
3357 rm -f conftest conftest$ac_cv_exeext
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3359 $as_echo "$ac_cv_exeext" >&6; }
3361 rm -f conftest.$ac_ext
3362 EXEEXT=$ac_cv_exeext
3363 ac_exeext=$EXEEXT
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3366 #include <stdio.h>
3368 main ()
3370 FILE *f = fopen ("conftest.out", "w");
3371 return ferror (f) || fclose (f) != 0;
3374 return 0;
3376 _ACEOF
3377 ac_clean_files="$ac_clean_files conftest.out"
3378 # Check that the compiler produces executables we can run. If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3381 $as_echo_n "checking whether we are cross compiling... " >&6; }
3382 if test "$cross_compiling" != yes; then
3383 { { ac_try="$ac_link"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_link") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }
3394 if { ac_try='./conftest$ac_cv_exeext'
3395 { { case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398 esac
3399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400 $as_echo "$ac_try_echo"; } >&5
3401 (eval "$ac_try") 2>&5
3402 ac_status=$?
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }; }; then
3405 cross_compiling=no
3406 else
3407 if test "$cross_compiling" = maybe; then
3408 cross_compiling=yes
3409 else
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error $? "cannot run C compiled programs.
3413 If you meant to cross compile, use \`--host'.
3414 See \`config.log' for more details" "$LINENO" 5; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3419 $as_echo "$cross_compiling" >&6; }
3421 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3422 ac_clean_files=$ac_clean_files_save
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3424 $as_echo_n "checking for suffix of object files... " >&6; }
3425 if ${ac_cv_objext+:} false; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3432 main ()
3436 return 0;
3438 _ACEOF
3439 rm -f conftest.o conftest.obj
3440 if { { ac_try="$ac_compile"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_compile") 2>&5
3448 ac_status=$?
3449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450 test $ac_status = 0; }; then :
3451 for ac_file in conftest.o conftest.obj conftest.*; do
3452 test -f "$ac_file" || continue;
3453 case $ac_file in
3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3456 break;;
3457 esac
3458 done
3459 else
3460 $as_echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465 as_fn_error $? "cannot compute suffix of object files: cannot compile
3466 See \`config.log' for more details" "$LINENO" 5; }
3468 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3471 $as_echo "$ac_cv_objext" >&6; }
3472 OBJEXT=$ac_cv_objext
3473 ac_objext=$OBJEXT
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3475 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3476 if ${ac_cv_c_compiler_gnu+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3483 main ()
3485 #ifndef __GNUC__
3486 choke me
3487 #endif
3490 return 0;
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"; then :
3494 ac_compiler_gnu=yes
3495 else
3496 ac_compiler_gnu=no
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3503 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3504 if test $ac_compiler_gnu = yes; then
3505 GCC=yes
3506 else
3507 GCC=
3509 ac_test_CFLAGS=${CFLAGS+set}
3510 ac_save_CFLAGS=$CFLAGS
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3512 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3513 if ${ac_cv_prog_cc_g+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 ac_save_c_werror_flag=$ac_c_werror_flag
3517 ac_c_werror_flag=yes
3518 ac_cv_prog_cc_g=no
3519 CFLAGS="-g"
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521 /* end confdefs.h. */
3524 main ()
3528 return 0;
3530 _ACEOF
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532 ac_cv_prog_cc_g=yes
3533 else
3534 CFLAGS=""
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3539 main ()
3543 return 0;
3545 _ACEOF
3546 if ac_fn_c_try_compile "$LINENO"; then :
3548 else
3549 ac_c_werror_flag=$ac_save_c_werror_flag
3550 CFLAGS="-g"
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3555 main ()
3559 return 0;
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563 ac_cv_prog_cc_g=yes
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 ac_c_werror_flag=$ac_save_c_werror_flag
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3573 $as_echo "$ac_cv_prog_cc_g" >&6; }
3574 if test "$ac_test_CFLAGS" = set; then
3575 CFLAGS=$ac_save_CFLAGS
3576 elif test $ac_cv_prog_cc_g = yes; then
3577 if test "$GCC" = yes; then
3578 CFLAGS="-g -O2"
3579 else
3580 CFLAGS="-g"
3582 else
3583 if test "$GCC" = yes; then
3584 CFLAGS="-O2"
3585 else
3586 CFLAGS=
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3590 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3591 if ${ac_cv_prog_cc_c89+:} false; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 ac_cv_prog_cc_c89=no
3595 ac_save_CC=$CC
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3598 #include <stdarg.h>
3599 #include <stdio.h>
3600 #include <sys/types.h>
3601 #include <sys/stat.h>
3602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3603 struct buf { int x; };
3604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3605 static char *e (p, i)
3606 char **p;
3607 int i;
3609 return p[i];
3611 static char *f (char * (*g) (char **, int), char **p, ...)
3613 char *s;
3614 va_list v;
3615 va_start (v,p);
3616 s = g (p, va_arg (v,int));
3617 va_end (v);
3618 return s;
3621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3622 function prototypes and stuff, but not '\xHH' hex character constants.
3623 These don't provoke an error unfortunately, instead are silently treated
3624 as 'x'. The following induces an error, until -std is added to get
3625 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3626 array size at least. It's necessary to write '\x00'==0 to get something
3627 that's true only with -std. */
3628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3630 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3631 inside strings and character constants. */
3632 #define FOO(x) 'x'
3633 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3635 int test (int i, double x);
3636 struct s1 {int (*f) (int a);};
3637 struct s2 {int (*f) (double a);};
3638 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3639 int argc;
3640 char **argv;
3642 main ()
3644 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3646 return 0;
3648 _ACEOF
3649 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3650 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3652 CC="$ac_save_CC $ac_arg"
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654 ac_cv_prog_cc_c89=$ac_arg
3656 rm -f core conftest.err conftest.$ac_objext
3657 test "x$ac_cv_prog_cc_c89" != "xno" && break
3658 done
3659 rm -f conftest.$ac_ext
3660 CC=$ac_save_CC
3663 # AC_CACHE_VAL
3664 case "x$ac_cv_prog_cc_c89" in
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3667 $as_echo "none needed" >&6; } ;;
3668 xno)
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3670 $as_echo "unsupported" >&6; } ;;
3672 CC="$CC $ac_cv_prog_cc_c89"
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3674 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3675 esac
3676 if test "x$ac_cv_prog_cc_c89" != xno; then :
3680 ac_ext=c
3681 ac_cpp='$CPP $CPPFLAGS'
3682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686 ac_ext=cpp
3687 ac_cpp='$CXXCPP $CPPFLAGS'
3688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3691 if test -z "$CXX"; then
3692 if test -n "$CCC"; then
3693 CXX=$CCC
3694 else
3695 if test -n "$ac_tool_prefix"; then
3696 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if ${ac_cv_prog_CXX+:} false; then :
3703 $as_echo_n "(cached) " >&6
3704 else
3705 if test -n "$CXX"; then
3706 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3707 else
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3711 IFS=$as_save_IFS
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3715 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3717 break 2
3719 done
3720 done
3721 IFS=$as_save_IFS
3725 CXX=$ac_cv_prog_CXX
3726 if test -n "$CXX"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3728 $as_echo "$CXX" >&6; }
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3735 test -n "$CXX" && break
3736 done
3738 if test -z "$CXX"; then
3739 ac_ct_CXX=$CXX
3740 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3742 # Extract the first word of "$ac_prog", so it can be a program name with args.
3743 set dummy $ac_prog; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 if test -n "$ac_ct_CXX"; then
3750 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_ac_ct_CXX="$ac_prog"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 break 2
3763 done
3764 done
3765 IFS=$as_save_IFS
3769 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3770 if test -n "$ac_ct_CXX"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3772 $as_echo "$ac_ct_CXX" >&6; }
3773 else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3779 test -n "$ac_ct_CXX" && break
3780 done
3782 if test "x$ac_ct_CXX" = x; then
3783 CXX="g++"
3784 else
3785 case $cross_compiling:$ac_tool_warned in
3786 yes:)
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3789 ac_tool_warned=yes ;;
3790 esac
3791 CXX=$ac_ct_CXX
3797 # Provide some information about the compiler.
3798 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3799 set X $ac_compile
3800 ac_compiler=$2
3801 for ac_option in --version -v -V -qversion; do
3802 { { ac_try="$ac_compiler $ac_option >&5"
3803 case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3808 $as_echo "$ac_try_echo"; } >&5
3809 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3810 ac_status=$?
3811 if test -s conftest.err; then
3812 sed '10a\
3813 ... rest of stderr output deleted ...
3814 10q' conftest.err >conftest.er1
3815 cat conftest.er1 >&5
3817 rm -f conftest.er1 conftest.err
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }
3820 done
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3823 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3824 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3831 main ()
3833 #ifndef __GNUC__
3834 choke me
3835 #endif
3838 return 0;
3840 _ACEOF
3841 if ac_fn_cxx_try_compile "$LINENO"; then :
3842 ac_compiler_gnu=yes
3843 else
3844 ac_compiler_gnu=no
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3851 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3852 if test $ac_compiler_gnu = yes; then
3853 GXX=yes
3854 else
3855 GXX=
3857 ac_test_CXXFLAGS=${CXXFLAGS+set}
3858 ac_save_CXXFLAGS=$CXXFLAGS
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3860 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3861 if ${ac_cv_prog_cxx_g+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3865 ac_cxx_werror_flag=yes
3866 ac_cv_prog_cxx_g=no
3867 CXXFLAGS="-g"
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3872 main ()
3876 return 0;
3878 _ACEOF
3879 if ac_fn_cxx_try_compile "$LINENO"; then :
3880 ac_cv_prog_cxx_g=yes
3881 else
3882 CXXFLAGS=""
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3887 main ()
3891 return 0;
3893 _ACEOF
3894 if ac_fn_cxx_try_compile "$LINENO"; then :
3896 else
3897 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3898 CXXFLAGS="-g"
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3903 main ()
3907 return 0;
3909 _ACEOF
3910 if ac_fn_cxx_try_compile "$LINENO"; then :
3911 ac_cv_prog_cxx_g=yes
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3921 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3922 if test "$ac_test_CXXFLAGS" = set; then
3923 CXXFLAGS=$ac_save_CXXFLAGS
3924 elif test $ac_cv_prog_cxx_g = yes; then
3925 if test "$GXX" = yes; then
3926 CXXFLAGS="-g -O2"
3927 else
3928 CXXFLAGS="-g"
3930 else
3931 if test "$GXX" = yes; then
3932 CXXFLAGS="-O2"
3933 else
3934 CXXFLAGS=
3937 ac_ext=c
3938 ac_cpp='$CPP $CPPFLAGS'
3939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 if test -n "$ac_tool_prefix"; then
3944 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3945 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 $as_echo_n "checking for $ac_word... " >&6; }
3948 if ${ac_cv_prog_CPPBIN+:} false; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 if test -n "$CPPBIN"; then
3952 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3953 else
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 for as_dir in $PATH
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 break 2
3965 done
3966 done
3967 IFS=$as_save_IFS
3971 CPPBIN=$ac_cv_prog_CPPBIN
3972 if test -n "$CPPBIN"; then
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3974 $as_echo "$CPPBIN" >&6; }
3975 else
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3982 if test -z "$ac_cv_prog_CPPBIN"; then
3983 ac_ct_CPPBIN=$CPPBIN
3984 # Extract the first word of "cpp", so it can be a program name with args.
3985 set dummy cpp; ac_word=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 if test -n "$ac_ct_CPPBIN"; then
3992 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3993 else
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4001 ac_cv_prog_ac_ct_CPPBIN="cpp"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4005 done
4006 done
4007 IFS=$as_save_IFS
4011 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4012 if test -n "$ac_ct_CPPBIN"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
4014 $as_echo "$ac_ct_CPPBIN" >&6; }
4015 else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4020 if test "x$ac_ct_CPPBIN" = x; then
4021 CPPBIN="cpp"
4022 else
4023 case $cross_compiling:$ac_tool_warned in
4024 yes:)
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4027 ac_tool_warned=yes ;;
4028 esac
4029 CPPBIN=$ac_ct_CPPBIN
4031 else
4032 CPPBIN="$ac_cv_prog_CPPBIN"
4036 cat >>confdefs.h <<_ACEOF
4037 #define EXEEXT "$ac_exeext"
4038 _ACEOF
4041 case $host in
4042 *-darwin*)
4043 if test "x$enable_win64" = "xyes"
4044 then
4045 CC="$CC -m64"
4046 CXX="$CXX -m64"
4047 host_cpu="x86_64"
4048 notice_platform="64-bit "
4049 TARGETFLAGS="-m64"
4051 else
4052 CC="$CC -m32"
4053 CXX="$CXX -m32"
4054 host_cpu="i386"
4055 notice_platform="32-bit "
4056 TARGETFLAGS="-m32"
4058 enable_win16=${enable_win16:-yes}
4061 x86_64*)
4062 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4063 then
4064 CC="$CC -m32"
4065 CXX="$CXX -m32"
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4067 $as_echo_n "checking whether $CC works... " >&6; }
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4073 main ()
4077 return 0;
4079 _ACEOF
4080 if ac_fn_c_try_link "$LINENO"; then :
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4082 $as_echo "yes" >&6; }
4083 else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4086 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4088 rm -f core conftest.err conftest.$ac_objext \
4089 conftest$ac_exeext conftest.$ac_ext
4090 host_cpu="i386"
4091 notice_platform="32-bit "
4092 TARGETFLAGS="-m32"
4094 enable_win16=${enable_win16:-yes}
4095 else
4096 if test "x${GCC}" = "xyes"
4097 then
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4099 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102 #include <stdarg.h>
4104 main ()
4106 void func(__builtin_ms_va_list *args);
4108 return 0;
4110 _ACEOF
4111 if ac_fn_c_try_compile "$LINENO"; then :
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4113 $as_echo "yes" >&6; }
4114 else
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4117 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 TARGETFLAGS="-m64"
4125 *-mingw32*|*-cygwin*)
4126 enable_win16=${enable_win16:-no}
4127 CFLAGS="$CFLAGS -D_WIN32"
4129 i[3456789]86*)
4130 enable_win16=${enable_win16:-yes}
4132 esac
4134 enable_win16=${enable_win16:-no}
4135 enable_win64=${enable_win64:-no}
4137 enable_winetest=${enable_winetest:-$enable_tests}
4139 if test -n "$with_wine64"
4140 then
4141 if test "x$enable_win64" = "xyes"
4142 then
4143 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
4144 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4146 WOW64_DISABLE=\#
4148 enable_fonts=${enable_fonts:-no}
4149 enable_server=${enable_server:-no}
4150 enable_tools=${enable_tools:-no}
4151 elif test "x$enable_win64" = "xyes"
4152 then
4153 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4157 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4158 if ${wine_cv_toolsdir+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 wine_cv_toolsdir="$with_wine_tools"
4162 if test -z "$with_wine_tools"; then
4163 if test "$cross_compiling" = "yes"; then
4164 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4165 elif test -n "$with_wine64"; then
4166 wine_cv_toolsdir="$with_wine64"
4169 if test -z "$wine_cv_toolsdir"; then
4170 wine_cv_toolsdir="\$(top_builddir)"
4171 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4172 case "$wine_cv_toolsdir" in
4173 /*) ;;
4174 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
4175 esac
4176 else
4177 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4181 $as_echo "$wine_cv_toolsdir" >&6; }
4182 TOOLSDIR=$wine_cv_toolsdir
4184 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4185 then
4186 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4190 for ac_prog in flex
4192 # Extract the first word of "$ac_prog", so it can be a program name with args.
4193 set dummy $ac_prog; ac_word=$2
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195 $as_echo_n "checking for $ac_word... " >&6; }
4196 if ${ac_cv_prog_FLEX+:} false; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 if test -n "$FLEX"; then
4200 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4201 else
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4209 ac_cv_prog_FLEX="$ac_prog"
4210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 break 2
4213 done
4214 done
4215 IFS=$as_save_IFS
4219 FLEX=$ac_cv_prog_FLEX
4220 if test -n "$FLEX"; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4222 $as_echo "$FLEX" >&6; }
4223 else
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225 $as_echo "no" >&6; }
4229 test -n "$FLEX" && break
4230 done
4231 test -n "$FLEX" || FLEX="none"
4233 if test "$FLEX" = "none"
4234 then
4235 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4238 $as_echo_n "checking whether flex is recent enough... " >&6; }
4239 cat >conftest.l <<EOF
4240 %top{
4241 #include "prediluvian.h"
4245 if $FLEX -t conftest.l >/dev/null 2>&5
4246 then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4248 $as_echo "yes" >&6; }
4249 else
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4255 for ac_prog in bison
4257 # Extract the first word of "$ac_prog", so it can be a program name with args.
4258 set dummy $ac_prog; ac_word=$2
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260 $as_echo_n "checking for $ac_word... " >&6; }
4261 if ${ac_cv_prog_BISON+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 if test -n "$BISON"; then
4265 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4274 ac_cv_prog_BISON="$ac_prog"
4275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 break 2
4278 done
4279 done
4280 IFS=$as_save_IFS
4284 BISON=$ac_cv_prog_BISON
4285 if test -n "$BISON"; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4287 $as_echo "$BISON" >&6; }
4288 else
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 $as_echo "no" >&6; }
4294 test -n "$BISON" && break
4295 done
4296 test -n "$BISON" || BISON="none"
4298 if test "$BISON" = "none"
4299 then
4300 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4303 if test -n "$ac_tool_prefix"; then
4304 for ac_prog in ar gar
4306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if ${ac_cv_prog_AR+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if test -n "$AR"; then
4314 ac_cv_prog_AR="$AR" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4327 done
4328 done
4329 IFS=$as_save_IFS
4333 AR=$ac_cv_prog_AR
4334 if test -n "$AR"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4336 $as_echo "$AR" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4343 test -n "$AR" && break
4344 done
4346 if test -z "$AR"; then
4347 ac_ct_AR=$AR
4348 for ac_prog in ar gar
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -n "$ac_ct_AR"; then
4358 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_ac_ct_AR="$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4371 done
4372 done
4373 IFS=$as_save_IFS
4377 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4378 if test -n "$ac_ct_AR"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4380 $as_echo "$ac_ct_AR" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$ac_ct_AR" && break
4388 done
4390 if test "x$ac_ct_AR" = x; then
4391 AR="ar"
4392 else
4393 case $cross_compiling:$ac_tool_warned in
4394 yes:)
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4397 ac_tool_warned=yes ;;
4398 esac
4399 AR=$ac_ct_AR
4403 ARFLAGS=rc
4405 if test -n "$ac_tool_prefix"; then
4406 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4407 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_prog_RANLIB+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -n "$RANLIB"; then
4414 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4415 else
4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
4421 for ac_exec_ext in '' $ac_executable_extensions; do
4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 break 2
4427 done
4428 done
4429 IFS=$as_save_IFS
4433 RANLIB=$ac_cv_prog_RANLIB
4434 if test -n "$RANLIB"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4436 $as_echo "$RANLIB" >&6; }
4437 else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4444 if test -z "$ac_cv_prog_RANLIB"; then
4445 ac_ct_RANLIB=$RANLIB
4446 # Extract the first word of "ranlib", so it can be a program name with args.
4447 set dummy ranlib; ac_word=$2
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4449 $as_echo_n "checking for $ac_word... " >&6; }
4450 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 if test -n "$ac_ct_RANLIB"; then
4454 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 ac_cv_prog_ac_ct_RANLIB="ranlib"
4464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4467 done
4468 done
4469 IFS=$as_save_IFS
4473 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4474 if test -n "$ac_ct_RANLIB"; then
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4476 $as_echo "$ac_ct_RANLIB" >&6; }
4477 else
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4482 if test "x$ac_ct_RANLIB" = x; then
4483 RANLIB=":"
4484 else
4485 case $cross_compiling:$ac_tool_warned in
4486 yes:)
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489 ac_tool_warned=yes ;;
4490 esac
4491 RANLIB=$ac_ct_RANLIB
4493 else
4494 RANLIB="$ac_cv_prog_RANLIB"
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4498 $as_echo_n "checking whether ln -s works... " >&6; }
4499 LN_S=$as_ln_s
4500 if test "$LN_S" = "ln -s"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502 $as_echo "yes" >&6; }
4503 else
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4505 $as_echo "no, using $LN_S" >&6; }
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4509 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4510 if ${ac_cv_path_GREP+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test -z "$GREP"; then
4514 ac_path_GREP_found=false
4515 # Loop through the user's path and test for each of PROGNAME-LIST
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_prog in grep ggrep; do
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4524 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4525 # Check for GNU ac_path_GREP and select it if it is found.
4526 # Check for GNU $ac_path_GREP
4527 case `"$ac_path_GREP" --version 2>&1` in
4528 *GNU*)
4529 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4531 ac_count=0
4532 $as_echo_n 0123456789 >"conftest.in"
4533 while :
4535 cat "conftest.in" "conftest.in" >"conftest.tmp"
4536 mv "conftest.tmp" "conftest.in"
4537 cp "conftest.in" "conftest.nl"
4538 $as_echo 'GREP' >> "conftest.nl"
4539 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4541 as_fn_arith $ac_count + 1 && ac_count=$as_val
4542 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4543 # Best one so far, save it but keep looking for a better one
4544 ac_cv_path_GREP="$ac_path_GREP"
4545 ac_path_GREP_max=$ac_count
4547 # 10*(2^10) chars as input seems more than enough
4548 test $ac_count -gt 10 && break
4549 done
4550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4551 esac
4553 $ac_path_GREP_found && break 3
4554 done
4555 done
4556 done
4557 IFS=$as_save_IFS
4558 if test -z "$ac_cv_path_GREP"; then
4559 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4561 else
4562 ac_cv_path_GREP=$GREP
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4567 $as_echo "$ac_cv_path_GREP" >&6; }
4568 GREP="$ac_cv_path_GREP"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4572 $as_echo_n "checking for egrep... " >&6; }
4573 if ${ac_cv_path_EGREP+:} false; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4577 then ac_cv_path_EGREP="$GREP -E"
4578 else
4579 if test -z "$EGREP"; then
4580 ac_path_EGREP_found=false
4581 # Loop through the user's path and test for each of PROGNAME-LIST
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_prog in egrep; do
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4590 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4591 # Check for GNU ac_path_EGREP and select it if it is found.
4592 # Check for GNU $ac_path_EGREP
4593 case `"$ac_path_EGREP" --version 2>&1` in
4594 *GNU*)
4595 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4597 ac_count=0
4598 $as_echo_n 0123456789 >"conftest.in"
4599 while :
4601 cat "conftest.in" "conftest.in" >"conftest.tmp"
4602 mv "conftest.tmp" "conftest.in"
4603 cp "conftest.in" "conftest.nl"
4604 $as_echo 'EGREP' >> "conftest.nl"
4605 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4606 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4607 as_fn_arith $ac_count + 1 && ac_count=$as_val
4608 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4609 # Best one so far, save it but keep looking for a better one
4610 ac_cv_path_EGREP="$ac_path_EGREP"
4611 ac_path_EGREP_max=$ac_count
4613 # 10*(2^10) chars as input seems more than enough
4614 test $ac_count -gt 10 && break
4615 done
4616 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4617 esac
4619 $ac_path_EGREP_found && break 3
4620 done
4621 done
4622 done
4623 IFS=$as_save_IFS
4624 if test -z "$ac_cv_path_EGREP"; then
4625 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4627 else
4628 ac_cv_path_EGREP=$EGREP
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4634 $as_echo "$ac_cv_path_EGREP" >&6; }
4635 EGREP="$ac_cv_path_EGREP"
4638 # Extract the first word of "ldconfig", so it can be a program name with args.
4639 set dummy ldconfig; ac_word=$2
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641 $as_echo_n "checking for $ac_word... " >&6; }
4642 if ${ac_cv_path_LDCONFIG+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 case $LDCONFIG in
4646 [\\/]* | ?:[\\/]*)
4647 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in /sbin /usr/sbin $PATH
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4661 done
4662 done
4663 IFS=$as_save_IFS
4665 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4667 esac
4669 LDCONFIG=$ac_cv_path_LDCONFIG
4670 if test -n "$LDCONFIG"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4672 $as_echo "$LDCONFIG" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4679 # Find a good install program. We prefer a C program (faster),
4680 # so one script is as good as another. But avoid the broken or
4681 # incompatible versions:
4682 # SysV /etc/install, /usr/sbin/install
4683 # SunOS /usr/etc/install
4684 # IRIX /sbin/install
4685 # AIX /bin/install
4686 # AmigaOS /C/install, which installs bootblocks on floppy discs
4687 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4688 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4689 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4690 # OS/2's system install, which has a completely different semantic
4691 # ./install, which can be erroneously created by make from ./install.sh.
4692 # Reject install programs that cannot install multiple files.
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4694 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4695 if test -z "$INSTALL"; then
4696 if ${ac_cv_path_install+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 # Account for people who put trailing slashes in PATH elements.
4705 case $as_dir/ in #((
4706 ./ | .// | /[cC]/* | \
4707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4708 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4709 /usr/ucb/* ) ;;
4711 # OSF1 and SCO ODT 3.0 have their own names for install.
4712 # Don't use installbsd from OSF since it installs stuff as root
4713 # by default.
4714 for ac_prog in ginstall scoinst install; do
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4717 if test $ac_prog = install &&
4718 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4719 # AIX install. It has an incompatible calling convention.
4721 elif test $ac_prog = install &&
4722 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4723 # program-specific install script used by HP pwplus--don't use.
4725 else
4726 rm -rf conftest.one conftest.two conftest.dir
4727 echo one > conftest.one
4728 echo two > conftest.two
4729 mkdir conftest.dir
4730 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4731 test -s conftest.one && test -s conftest.two &&
4732 test -s conftest.dir/conftest.one &&
4733 test -s conftest.dir/conftest.two
4734 then
4735 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4736 break 3
4740 done
4741 done
4743 esac
4745 done
4746 IFS=$as_save_IFS
4748 rm -rf conftest.one conftest.two conftest.dir
4751 if test "${ac_cv_path_install+set}" = set; then
4752 INSTALL=$ac_cv_path_install
4753 else
4754 # As a last resort, use the slow shell script. Don't cache a
4755 # value for INSTALL within a source directory, because that will
4756 # break other packages using the cache if that directory is
4757 # removed, or if the value is a relative name.
4758 INSTALL=$ac_install_sh
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4762 $as_echo "$INSTALL" >&6; }
4764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4765 # It thinks the first close brace ends the variable substitution.
4766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4772 case "$INSTALL" in
4773 [\\/$]* | ?:[\\/]* ) ;;
4774 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
4775 esac
4777 for ac_prog in lclint lint
4779 # Extract the first word of "$ac_prog", so it can be a program name with args.
4780 set dummy $ac_prog; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if ${ac_cv_prog_LINT+:} false; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 if test -n "$LINT"; then
4787 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_LINT="$ac_prog"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4800 done
4801 done
4802 IFS=$as_save_IFS
4806 LINT=$ac_cv_prog_LINT
4807 if test -n "$LINT"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4809 $as_echo "$LINT" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4816 test -n "$LINT" && break
4817 done
4819 if test "$LINT" = "lint"
4820 then
4821 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4825 for ac_prog in fontforge
4827 # Extract the first word of "$ac_prog", so it can be a program name with args.
4828 set dummy $ac_prog; ac_word=$2
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 $as_echo_n "checking for $ac_word... " >&6; }
4831 if ${ac_cv_prog_FONTFORGE+:} false; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 if test -n "$FONTFORGE"; then
4835 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_FONTFORGE="$ac_prog"
4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4848 done
4849 done
4850 IFS=$as_save_IFS
4854 FONTFORGE=$ac_cv_prog_FONTFORGE
4855 if test -n "$FONTFORGE"; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4857 $as_echo "$FONTFORGE" >&6; }
4858 else
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4864 test -n "$FONTFORGE" && break
4865 done
4866 test -n "$FONTFORGE" || FONTFORGE="false"
4868 for ac_prog in pkg-config
4870 # Extract the first word of "$ac_prog", so it can be a program name with args.
4871 set dummy $ac_prog; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if test -n "$PKG_CONFIG"; then
4878 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_PKG_CONFIG="$ac_prog"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4891 done
4892 done
4893 IFS=$as_save_IFS
4897 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4898 if test -n "$PKG_CONFIG"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4900 $as_echo "$PKG_CONFIG" >&6; }
4901 else
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4907 test -n "$PKG_CONFIG" && break
4908 done
4909 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4911 for ac_prog in rsvg
4913 # Extract the first word of "$ac_prog", so it can be a program name with args.
4914 set dummy $ac_prog; ac_word=$2
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4916 $as_echo_n "checking for $ac_word... " >&6; }
4917 if ${ac_cv_prog_RSVG+:} false; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 if test -n "$RSVG"; then
4921 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930 ac_cv_prog_RSVG="$ac_prog"
4931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 break 2
4934 done
4935 done
4936 IFS=$as_save_IFS
4940 RSVG=$ac_cv_prog_RSVG
4941 if test -n "$RSVG"; then
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4943 $as_echo "$RSVG" >&6; }
4944 else
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946 $as_echo "no" >&6; }
4950 test -n "$RSVG" && break
4951 done
4952 test -n "$RSVG" || RSVG="false"
4954 for ac_prog in convert
4956 # Extract the first word of "$ac_prog", so it can be a program name with args.
4957 set dummy $ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_CONVERT+:} false; then :
4961 $as_echo_n "(cached) " >&6
4962 else
4963 if test -n "$CONVERT"; then
4964 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4965 else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4969 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973 ac_cv_prog_CONVERT="$ac_prog"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4975 break 2
4977 done
4978 done
4979 IFS=$as_save_IFS
4983 CONVERT=$ac_cv_prog_CONVERT
4984 if test -n "$CONVERT"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4986 $as_echo "$CONVERT" >&6; }
4987 else
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4993 test -n "$CONVERT" && break
4994 done
4995 test -n "$CONVERT" || CONVERT="false"
4997 for ac_prog in icotool
4999 # Extract the first word of "$ac_prog", so it can be a program name with args.
5000 set dummy $ac_prog; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_prog_ICOTOOL+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -n "$ICOTOOL"; then
5007 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5008 else
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010 for as_dir in $PATH
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016 ac_cv_prog_ICOTOOL="$ac_prog"
5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018 break 2
5020 done
5021 done
5022 IFS=$as_save_IFS
5026 ICOTOOL=$ac_cv_prog_ICOTOOL
5027 if test -n "$ICOTOOL"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5029 $as_echo "$ICOTOOL" >&6; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5036 test -n "$ICOTOOL" && break
5037 done
5038 test -n "$ICOTOOL" || ICOTOOL="false"
5040 for ac_prog in msgfmt
5042 # Extract the first word of "$ac_prog", so it can be a program name with args.
5043 set dummy $ac_prog; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if ${ac_cv_prog_MSGFMT+:} false; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -n "$MSGFMT"; then
5050 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5051 else
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_MSGFMT="$ac_prog"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5063 done
5064 done
5065 IFS=$as_save_IFS
5069 MSGFMT=$ac_cv_prog_MSGFMT
5070 if test -n "$MSGFMT"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5072 $as_echo "$MSGFMT" >&6; }
5073 else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5079 test -n "$MSGFMT" && break
5080 done
5081 test -n "$MSGFMT" || MSGFMT="false"
5084 if test "x$enable_maintainer_mode" != "xyes"
5085 then
5086 MAINTAINER_MODE=\#
5088 else
5089 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5090 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
5092 if test "$CONVERT" = false
5093 then
5094 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
5095 else
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5097 $as_echo_n "checking for recent enough imagemagick... " >&6; }
5098 convert_version=`convert --version | head -n1`
5099 if test "x$convert_version" != "x"
5100 then
5101 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5102 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5103 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5104 then
5105 CONVERT=false
5108 if test "$CONVERT" = false
5109 then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5111 $as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5112 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5113 else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5115 $as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5119 if test "$ICOTOOL" = false
5120 then
5121 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5124 $as_echo_n "checking for recent enough icotool... " >&6; }
5125 icotool_version=`icotool --version | head -n1`
5126 if test "x$icotool_version" != "x"
5127 then
5128 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5129 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
5130 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5131 then
5132 ICOTOOL=false
5133 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5136 if test "$ICOTOOL" = false
5137 then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5139 $as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5140 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
5141 else
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5143 $as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5147 with_gettext=yes
5148 with_gettextpo=yes
5149 { ac_cv_header_gettext_po_h=; unset ac_cv_header_gettext_po_h;}
5152 test "x$with_gettext" != xno || MSGFMT=false
5153 if test "$MSGFMT" = false; then :
5154 case "x$with_gettext" in
5155 x) as_fn_append wine_warnings "|gettext tools not found, translations won't be built." ;;
5156 xno) ;;
5157 *) as_fn_error $? "gettext tools not found, translations won't be built.
5158 This is an error since --with-gettext was requested." "$LINENO" 5 ;;
5159 esac
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5164 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5165 if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 ac_check_lib_save_LIBS=$LIBS
5169 LIBS="-li386 $LIBS"
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5173 /* Override any GCC internal prototype to avoid an error.
5174 Use char because int might match the return type of a GCC
5175 builtin and then its argument prototype would still apply. */
5176 #ifdef __cplusplus
5177 extern "C"
5178 #endif
5179 char i386_set_ldt ();
5181 main ()
5183 return i386_set_ldt ();
5185 return 0;
5187 _ACEOF
5188 if ac_fn_c_try_link "$LINENO"; then :
5189 ac_cv_lib_i386_i386_set_ldt=yes
5190 else
5191 ac_cv_lib_i386_i386_set_ldt=no
5193 rm -f core conftest.err conftest.$ac_objext \
5194 conftest$ac_exeext conftest.$ac_ext
5195 LIBS=$ac_check_lib_save_LIBS
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5198 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5199 if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
5200 cat >>confdefs.h <<_ACEOF
5201 #define HAVE_LIBI386 1
5202 _ACEOF
5204 LIBS="-li386 $LIBS"
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5209 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5210 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 ac_check_lib_save_LIBS=$LIBS
5214 LIBS="-lossaudio $LIBS"
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5218 /* Override any GCC internal prototype to avoid an error.
5219 Use char because int might match the return type of a GCC
5220 builtin and then its argument prototype would still apply. */
5221 #ifdef __cplusplus
5222 extern "C"
5223 #endif
5224 char _oss_ioctl ();
5226 main ()
5228 return _oss_ioctl ();
5230 return 0;
5232 _ACEOF
5233 if ac_fn_c_try_link "$LINENO"; then :
5234 ac_cv_lib_ossaudio__oss_ioctl=yes
5235 else
5236 ac_cv_lib_ossaudio__oss_ioctl=no
5238 rm -f core conftest.err conftest.$ac_objext \
5239 conftest$ac_exeext conftest.$ac_ext
5240 LIBS=$ac_check_lib_save_LIBS
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5243 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5244 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
5245 cat >>confdefs.h <<_ACEOF
5246 #define HAVE_LIBOSSAUDIO 1
5247 _ACEOF
5249 LIBS="-lossaudio $LIBS"
5254 XLIB=""
5256 OPENGL_LIBS=""
5260 # Check whether --enable-largefile was given.
5261 if test "${enable_largefile+set}" = set; then :
5262 enableval=$enable_largefile;
5265 if test "$enable_largefile" != no; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5268 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5269 if ${ac_cv_sys_largefile_CC+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 ac_cv_sys_largefile_CC=no
5273 if test "$GCC" != yes; then
5274 ac_save_CC=$CC
5275 while :; do
5276 # IRIX 6.2 and later do not support large files by default,
5277 # so use the C compiler's -n32 option if that helps.
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 #include <sys/types.h>
5281 /* Check that off_t can represent 2**63 - 1 correctly.
5282 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5283 since some C++ compilers masquerading as C compilers
5284 incorrectly reject 9223372036854775807. */
5285 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5286 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5287 && LARGE_OFF_T % 2147483647 == 1)
5288 ? 1 : -1];
5290 main ()
5294 return 0;
5296 _ACEOF
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298 break
5300 rm -f core conftest.err conftest.$ac_objext
5301 CC="$CC -n32"
5302 if ac_fn_c_try_compile "$LINENO"; then :
5303 ac_cv_sys_largefile_CC=' -n32'; break
5305 rm -f core conftest.err conftest.$ac_objext
5306 break
5307 done
5308 CC=$ac_save_CC
5309 rm -f conftest.$ac_ext
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5313 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5314 if test "$ac_cv_sys_largefile_CC" != no; then
5315 CC=$CC$ac_cv_sys_largefile_CC
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5319 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5320 if ${ac_cv_sys_file_offset_bits+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 while :; do
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5326 #include <sys/types.h>
5327 /* Check that off_t can represent 2**63 - 1 correctly.
5328 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5329 since some C++ compilers masquerading as C compilers
5330 incorrectly reject 9223372036854775807. */
5331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5332 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5333 && LARGE_OFF_T % 2147483647 == 1)
5334 ? 1 : -1];
5336 main ()
5340 return 0;
5342 _ACEOF
5343 if ac_fn_c_try_compile "$LINENO"; then :
5344 ac_cv_sys_file_offset_bits=no; break
5346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5348 /* end confdefs.h. */
5349 #define _FILE_OFFSET_BITS 64
5350 #include <sys/types.h>
5351 /* Check that off_t can represent 2**63 - 1 correctly.
5352 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5353 since some C++ compilers masquerading as C compilers
5354 incorrectly reject 9223372036854775807. */
5355 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5356 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5357 && LARGE_OFF_T % 2147483647 == 1)
5358 ? 1 : -1];
5360 main ()
5364 return 0;
5366 _ACEOF
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368 ac_cv_sys_file_offset_bits=64; break
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 ac_cv_sys_file_offset_bits=unknown
5372 break
5373 done
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5376 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5377 case $ac_cv_sys_file_offset_bits in #(
5378 no | unknown) ;;
5380 cat >>confdefs.h <<_ACEOF
5381 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5382 _ACEOF
5384 esac
5385 rm -rf conftest*
5386 if test $ac_cv_sys_file_offset_bits = unknown; then
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5388 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5389 if ${ac_cv_sys_large_files+:} false; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 while :; do
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <sys/types.h>
5396 /* Check that off_t can represent 2**63 - 1 correctly.
5397 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5398 since some C++ compilers masquerading as C compilers
5399 incorrectly reject 9223372036854775807. */
5400 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5401 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5402 && LARGE_OFF_T % 2147483647 == 1)
5403 ? 1 : -1];
5405 main ()
5409 return 0;
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413 ac_cv_sys_large_files=no; break
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418 #define _LARGE_FILES 1
5419 #include <sys/types.h>
5420 /* Check that off_t can represent 2**63 - 1 correctly.
5421 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5422 since some C++ compilers masquerading as C compilers
5423 incorrectly reject 9223372036854775807. */
5424 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5425 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5426 && LARGE_OFF_T % 2147483647 == 1)
5427 ? 1 : -1];
5429 main ()
5433 return 0;
5435 _ACEOF
5436 if ac_fn_c_try_compile "$LINENO"; then :
5437 ac_cv_sys_large_files=1; break
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 ac_cv_sys_large_files=unknown
5441 break
5442 done
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5445 $as_echo "$ac_cv_sys_large_files" >&6; }
5446 case $ac_cv_sys_large_files in #(
5447 no | unknown) ;;
5449 cat >>confdefs.h <<_ACEOF
5450 #define _LARGE_FILES $ac_cv_sys_large_files
5451 _ACEOF
5453 esac
5454 rm -rf conftest*
5459 ac_ext=c
5460 ac_cpp='$CPP $CPPFLAGS'
5461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5465 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5466 # On Suns, sometimes $CPP names a directory.
5467 if test -n "$CPP" && test -d "$CPP"; then
5468 CPP=
5470 if test -z "$CPP"; then
5471 if ${ac_cv_prog_CPP+:} false; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 # Double quotes because CPP needs to be expanded
5475 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5477 ac_preproc_ok=false
5478 for ac_c_preproc_warn_flag in '' yes
5480 # Use a header file that comes with gcc, so configuring glibc
5481 # with a fresh cross-compiler works.
5482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5483 # <limits.h> exists even on freestanding compilers.
5484 # On the NeXT, cc -E runs the code through the compiler's parser,
5485 # not just through cpp. "Syntax error" is here to catch this case.
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5488 #ifdef __STDC__
5489 # include <limits.h>
5490 #else
5491 # include <assert.h>
5492 #endif
5493 Syntax error
5494 _ACEOF
5495 if ac_fn_c_try_cpp "$LINENO"; then :
5497 else
5498 # Broken: fails on valid input.
5499 continue
5501 rm -f conftest.err conftest.i conftest.$ac_ext
5503 # OK, works on sane cases. Now check whether nonexistent headers
5504 # can be detected and how.
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 #include <ac_nonexistent.h>
5508 _ACEOF
5509 if ac_fn_c_try_cpp "$LINENO"; then :
5510 # Broken: success on invalid input.
5511 continue
5512 else
5513 # Passes both tests.
5514 ac_preproc_ok=:
5515 break
5517 rm -f conftest.err conftest.i conftest.$ac_ext
5519 done
5520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5521 rm -f conftest.i conftest.err conftest.$ac_ext
5522 if $ac_preproc_ok; then :
5523 break
5526 done
5527 ac_cv_prog_CPP=$CPP
5530 CPP=$ac_cv_prog_CPP
5531 else
5532 ac_cv_prog_CPP=$CPP
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5535 $as_echo "$CPP" >&6; }
5536 ac_preproc_ok=false
5537 for ac_c_preproc_warn_flag in '' yes
5539 # Use a header file that comes with gcc, so configuring glibc
5540 # with a fresh cross-compiler works.
5541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5542 # <limits.h> exists even on freestanding compilers.
5543 # On the NeXT, cc -E runs the code through the compiler's parser,
5544 # not just through cpp. "Syntax error" is here to catch this case.
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547 #ifdef __STDC__
5548 # include <limits.h>
5549 #else
5550 # include <assert.h>
5551 #endif
5552 Syntax error
5553 _ACEOF
5554 if ac_fn_c_try_cpp "$LINENO"; then :
5556 else
5557 # Broken: fails on valid input.
5558 continue
5560 rm -f conftest.err conftest.i conftest.$ac_ext
5562 # OK, works on sane cases. Now check whether nonexistent headers
5563 # can be detected and how.
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #include <ac_nonexistent.h>
5567 _ACEOF
5568 if ac_fn_c_try_cpp "$LINENO"; then :
5569 # Broken: success on invalid input.
5570 continue
5571 else
5572 # Passes both tests.
5573 ac_preproc_ok=:
5574 break
5576 rm -f conftest.err conftest.i conftest.$ac_ext
5578 done
5579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5580 rm -f conftest.i conftest.err conftest.$ac_ext
5581 if $ac_preproc_ok; then :
5583 else
5584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5586 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5587 See \`config.log' for more details" "$LINENO" 5; }
5590 ac_ext=c
5591 ac_cpp='$CPP $CPPFLAGS'
5592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5598 $as_echo_n "checking for ANSI C header files... " >&6; }
5599 if ${ac_cv_header_stdc+:} false; then :
5600 $as_echo_n "(cached) " >&6
5601 else
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604 #include <stdlib.h>
5605 #include <stdarg.h>
5606 #include <string.h>
5607 #include <float.h>
5610 main ()
5614 return 0;
5616 _ACEOF
5617 if ac_fn_c_try_compile "$LINENO"; then :
5618 ac_cv_header_stdc=yes
5619 else
5620 ac_cv_header_stdc=no
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 if test $ac_cv_header_stdc = yes; then
5625 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628 #include <string.h>
5630 _ACEOF
5631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5632 $EGREP "memchr" >/dev/null 2>&1; then :
5634 else
5635 ac_cv_header_stdc=no
5637 rm -f conftest*
5641 if test $ac_cv_header_stdc = yes; then
5642 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 #include <stdlib.h>
5647 _ACEOF
5648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5649 $EGREP "free" >/dev/null 2>&1; then :
5651 else
5652 ac_cv_header_stdc=no
5654 rm -f conftest*
5658 if test $ac_cv_header_stdc = yes; then
5659 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5660 if test "$cross_compiling" = yes; then :
5662 else
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664 /* end confdefs.h. */
5665 #include <ctype.h>
5666 #include <stdlib.h>
5667 #if ((' ' & 0x0FF) == 0x020)
5668 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5669 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5670 #else
5671 # define ISLOWER(c) \
5672 (('a' <= (c) && (c) <= 'i') \
5673 || ('j' <= (c) && (c) <= 'r') \
5674 || ('s' <= (c) && (c) <= 'z'))
5675 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5676 #endif
5678 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5680 main ()
5682 int i;
5683 for (i = 0; i < 256; i++)
5684 if (XOR (islower (i), ISLOWER (i))
5685 || toupper (i) != TOUPPER (i))
5686 return 2;
5687 return 0;
5689 _ACEOF
5690 if ac_fn_c_try_run "$LINENO"; then :
5692 else
5693 ac_cv_header_stdc=no
5695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5696 conftest.$ac_objext conftest.beam conftest.$ac_ext
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5702 $as_echo "$ac_cv_header_stdc" >&6; }
5703 if test $ac_cv_header_stdc = yes; then
5705 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5709 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5710 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5711 inttypes.h stdint.h unistd.h
5712 do :
5713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5714 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5716 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5717 cat >>confdefs.h <<_ACEOF
5718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5719 _ACEOF
5723 done
5726 for ac_header in \
5727 AL/al.h \
5728 ApplicationServices/ApplicationServices.h \
5729 AudioToolbox/AudioConverter.h \
5730 AudioUnit/AudioUnit.h \
5731 AudioUnit/AudioComponent.h \
5732 CL/cl.h \
5733 Carbon/Carbon.h \
5734 CoreAudio/CoreAudio.h \
5735 DiskArbitration/DiskArbitration.h \
5736 IOKit/IOKitLib.h \
5737 IOKit/hid/IOHIDLib.h \
5738 OpenAL/al.h \
5739 OpenCL/opencl.h \
5740 QuickTime/ImageCompression.h \
5741 Security/Security.h \
5742 alias.h \
5743 alsa/asoundlib.h \
5744 arpa/inet.h \
5745 arpa/nameser.h \
5746 asm/types.h \
5747 capi20.h \
5748 curses.h \
5749 direct.h \
5750 dirent.h \
5751 dlfcn.h \
5752 elf.h \
5753 float.h \
5754 fnmatch.h \
5755 fontconfig/fontconfig.h \
5756 getopt.h \
5757 gettext-po.h \
5758 grp.h \
5759 gsm.h \
5760 gsm/gsm.h \
5761 ieeefp.h \
5762 inet/mib2.h \
5763 io.h \
5764 jpeglib.h \
5765 kstat.h \
5766 lber.h \
5767 lcms.h \
5768 lcms/lcms.h \
5769 ldap.h \
5770 link.h \
5771 linux/cdrom.h \
5772 linux/compiler.h \
5773 linux/hdreg.h \
5774 linux/input.h \
5775 linux/ioctl.h \
5776 linux/joystick.h \
5777 linux/major.h \
5778 linux/param.h \
5779 linux/serial.h \
5780 linux/types.h \
5781 linux/ucdrom.h \
5782 mach-o/nlist.h \
5783 mach-o/loader.h \
5784 mach/mach.h \
5785 mach/machine.h \
5786 machine/cpu.h \
5787 machine/limits.h \
5788 machine/sysarch.h \
5789 mntent.h \
5790 mpg123.h \
5791 ncurses.h \
5792 netdb.h \
5793 netinet/in.h \
5794 netinet/in_systm.h \
5795 netinet/tcp.h \
5796 netinet/tcp_fsm.h \
5797 openssl/err.h \
5798 openssl/ssl.h \
5799 png.h \
5800 poll.h \
5801 port.h \
5802 process.h \
5803 pthread.h \
5804 pwd.h \
5805 sched.h \
5806 scsi/scsi.h \
5807 scsi/scsi_ioctl.h \
5808 scsi/sg.h \
5809 stdbool.h \
5810 stdint.h \
5811 strings.h \
5812 stropts.h \
5813 sys/asoundlib.h \
5814 sys/attr.h \
5815 sys/cdio.h \
5816 sys/elf32.h \
5817 sys/epoll.h \
5818 sys/event.h \
5819 sys/exec_elf.h \
5820 sys/filio.h \
5821 sys/inotify.h \
5822 sys/ioctl.h \
5823 sys/ipc.h \
5824 sys/limits.h \
5825 sys/link.h \
5826 sys/mman.h \
5827 sys/modem.h \
5828 sys/msg.h \
5829 sys/mtio.h \
5830 sys/param.h \
5831 sys/poll.h \
5832 sys/prctl.h \
5833 sys/protosw.h \
5834 sys/ptrace.h \
5835 sys/resource.h \
5836 sys/scsiio.h \
5837 sys/shm.h \
5838 sys/signal.h \
5839 sys/socket.h \
5840 sys/socketvar.h \
5841 sys/sockio.h \
5842 sys/statvfs.h \
5843 sys/strtio.h \
5844 sys/syscall.h \
5845 sys/tihdr.h \
5846 sys/time.h \
5847 sys/timeout.h \
5848 sys/times.h \
5849 sys/uio.h \
5850 sys/un.h \
5851 sys/utsname.h \
5852 sys/vm86.h \
5853 sys/wait.h \
5854 syscall.h \
5855 termios.h \
5856 tiffio.h \
5857 unistd.h \
5858 utime.h \
5859 valgrind/memcheck.h \
5860 valgrind/valgrind.h \
5861 zlib.h
5863 do :
5864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5865 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5866 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5867 cat >>confdefs.h <<_ACEOF
5868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5869 _ACEOF
5873 done
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5876 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5877 if ${ac_cv_header_stat_broken+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5882 #include <sys/types.h>
5883 #include <sys/stat.h>
5885 #if defined S_ISBLK && defined S_IFDIR
5886 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5887 #endif
5889 #if defined S_ISBLK && defined S_IFCHR
5890 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5891 #endif
5893 #if defined S_ISLNK && defined S_IFREG
5894 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5895 #endif
5897 #if defined S_ISSOCK && defined S_IFREG
5898 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5899 #endif
5901 _ACEOF
5902 if ac_fn_c_try_compile "$LINENO"; then :
5903 ac_cv_header_stat_broken=no
5904 else
5905 ac_cv_header_stat_broken=yes
5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5910 $as_echo "$ac_cv_header_stat_broken" >&6; }
5911 if test $ac_cv_header_stat_broken = yes; then
5913 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5919 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5920 do :
5921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5922 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5923 #ifdef HAVE_SYS_PARAM_H
5924 # include <sys/param.h>
5925 #endif
5927 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5928 cat >>confdefs.h <<_ACEOF
5929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5930 _ACEOF
5934 done
5937 for ac_header in \
5938 netinet/ip.h \
5939 net/if.h \
5940 net/if_arp.h \
5941 net/if_dl.h \
5942 net/if_types.h \
5943 net/route.h \
5944 netinet/if_ether.h \
5945 netinet/if_inarp.h \
5946 netinet/in_pcb.h \
5947 netinet/ip_icmp.h \
5948 netinet/ip_var.h \
5949 netinet/udp.h \
5950 netipx/ipx.h \
5952 do :
5953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5954 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5955 #ifdef HAVE_SYS_SOCKET_H
5956 # include <sys/socket.h>
5957 #endif
5958 #ifdef HAVE_SYS_SOCKETVAR_H
5959 # include <sys/socketvar.h>
5960 #endif
5961 #ifdef HAVE_NET_ROUTE_H
5962 # include <net/route.h>
5963 #endif
5964 #ifdef HAVE_NETINET_IN_H
5965 # include <netinet/in.h>
5966 #endif
5967 #ifdef HAVE_NETINET_IN_SYSTM_H
5968 # include <netinet/in_systm.h>
5969 #endif
5970 #ifdef HAVE_NET_IF_H
5971 # include <net/if.h>
5972 #endif
5973 #ifdef HAVE_NETINET_IP_H
5974 # include <netinet/ip.h>
5975 #endif
5977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5978 cat >>confdefs.h <<_ACEOF
5979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5980 _ACEOF
5984 done
5987 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5988 do :
5989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5990 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5991 #ifdef HAVE_ALIAS_H
5992 # include <alias.h>
5993 #endif
5994 #ifdef HAVE_SYS_SOCKET_H
5995 # include <sys/socket.h>
5996 #endif
5997 #ifdef HAVE_SYS_SOCKETVAR_H
5998 # include <sys/socketvar.h>
5999 #endif
6000 #ifdef HAVE_SYS_TIMEOUT_H
6001 # include <sys/timeout.h>
6002 #endif
6003 #ifdef HAVE_NETINET_IN_H
6004 # include <netinet/in.h>
6005 #endif
6006 #ifdef HAVE_NETINET_IN_SYSTM_H
6007 # include <netinet/in_systm.h>
6008 #endif
6009 #ifdef HAVE_NETINET_IP_H
6010 # include <netinet/ip.h>
6011 #endif
6012 #ifdef HAVE_NETINET_IP_VAR_H
6013 # include <netinet/ip_var.h>
6014 #endif
6015 #ifdef HAVE_NETINET_IP_ICMP_H
6016 # include <netinet/ip_icmp.h>
6017 #endif
6018 #ifdef HAVE_NETINET_UDP_H
6019 # include <netinet/udp.h>
6020 #endif
6021 #ifdef HAVE_NETINET_TCP_H
6022 # include <netinet/tcp.h>
6023 #endif
6024 #ifdef HAVE_NETINET_TCP_TIMER_H
6025 #include <netinet/tcp_timer.h>
6026 #endif
6028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6029 cat >>confdefs.h <<_ACEOF
6030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6031 _ACEOF
6035 done
6038 for ac_header in linux/ipx.h linux/irda.h
6039 do :
6040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6041 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6042 #ifdef HAVE_ASM_TYPES_H
6043 # include <asm/types.h>
6044 #endif
6045 #ifdef HAVE_SYS_SOCKET_H
6046 # include <sys/socket.h>
6047 #endif
6048 #ifdef HAVE_LINUX_TYPES_H
6049 # include <linux/types.h>
6050 #endif
6052 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6053 cat >>confdefs.h <<_ACEOF
6054 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6055 _ACEOF
6059 done
6062 for ac_header in mach-o/dyld_images.h
6063 do :
6064 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6065 # include <stdbool.h>
6066 #endif
6067 #ifdef HAVE_STDINT_H
6068 # include <stdint.h>
6069 #endif
6071 if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
6072 cat >>confdefs.h <<_ACEOF
6073 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6074 _ACEOF
6078 done
6081 for ac_header in resolv.h
6082 do :
6083 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6084 #ifdef HAVE_SYS_SOCKET_H
6085 # include <sys/socket.h>
6086 #endif
6087 #ifdef HAVE_NETINET_IN_H
6088 # include <netinet/in.h>
6089 #endif
6090 #ifdef HAVE_ARPA_NAMESER_H
6091 # include <arpa/nameser.h>
6092 #endif
6094 if test "x$ac_cv_header_resolv_h" = xyes; then :
6095 cat >>confdefs.h <<_ACEOF
6096 #define HAVE_RESOLV_H 1
6097 _ACEOF
6101 done
6104 for ac_header in ifaddrs.h
6105 do :
6106 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6108 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
6109 cat >>confdefs.h <<_ACEOF
6110 #define HAVE_IFADDRS_H 1
6111 _ACEOF
6115 done
6118 for ac_header in ucontext.h
6119 do :
6120 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6122 if test "x$ac_cv_header_ucontext_h" = xyes; then :
6123 cat >>confdefs.h <<_ACEOF
6124 #define HAVE_UCONTEXT_H 1
6125 _ACEOF
6129 done
6132 for ac_header in sys/thr.h
6133 do :
6134 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6135 #ifdef HAVE_UCONTEXT_H
6136 #include <ucontext.h>
6137 #endif
6139 if test "x$ac_cv_header_sys_thr_h" = xyes; then :
6140 cat >>confdefs.h <<_ACEOF
6141 #define HAVE_SYS_THR_H 1
6142 _ACEOF
6146 done
6149 for ac_header in pthread_np.h
6150 do :
6151 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6152 #include <pthread.h>
6153 #endif
6155 if test "x$ac_cv_header_pthread_np_h" = xyes; then :
6156 cat >>confdefs.h <<_ACEOF
6157 #define HAVE_PTHREAD_NP_H 1
6158 _ACEOF
6162 done
6165 for ac_header in linux/videodev.h linux/videodev2.h
6166 do :
6167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6168 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
6169 #include <sys/time.h>
6170 #endif
6171 #include <sys/types.h>
6172 #ifdef HAVE_ASM_TYPES_H
6173 #include <asm/types.h>
6174 #endif
6176 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6177 cat >>confdefs.h <<_ACEOF
6178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6179 _ACEOF
6183 done
6186 for ac_header in linux/capi.h
6187 do :
6188 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6190 if test "x$ac_cv_header_linux_capi_h" = xyes; then :
6191 cat >>confdefs.h <<_ACEOF
6192 #define HAVE_LINUX_CAPI_H 1
6193 _ACEOF
6197 done
6201 DLLEXT=""
6203 DLLFLAGS="-D_REENTRANT"
6205 LDSHARED=""
6207 LDDLLFLAGS=""
6209 LIBEXT="so"
6211 IMPLIBEXT="def"
6213 LDRPATH_INSTALL=""
6215 LDRPATH_LOCAL=""
6217 STATIC_IMPLIBEXT="def.a"
6218 # Extract the first word of "ldd", so it can be a program name with args.
6219 set dummy ldd; ac_word=$2
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221 $as_echo_n "checking for $ac_word... " >&6; }
6222 if ${ac_cv_path_LDD+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224 else
6225 case $LDD in
6226 [\\/]* | ?:[\\/]*)
6227 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 as_dummy="/sbin:/usr/sbin:$PATH"
6232 for as_dir in $as_dummy
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6242 done
6243 done
6244 IFS=$as_save_IFS
6246 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6248 esac
6250 LDD=$ac_cv_path_LDD
6251 if test -n "$LDD"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6253 $as_echo "$LDD" >&6; }
6254 else
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6261 case $host_os in
6262 cygwin*|mingw32*)
6263 if test -n "$ac_tool_prefix"; then
6264 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6265 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if ${ac_cv_prog_DLLTOOL+:} false; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 if test -n "$DLLTOOL"; then
6272 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6285 done
6286 done
6287 IFS=$as_save_IFS
6291 DLLTOOL=$ac_cv_prog_DLLTOOL
6292 if test -n "$DLLTOOL"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6294 $as_echo "$DLLTOOL" >&6; }
6295 else
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6302 if test -z "$ac_cv_prog_DLLTOOL"; then
6303 ac_ct_DLLTOOL=$DLLTOOL
6304 # Extract the first word of "dlltool", so it can be a program name with args.
6305 set dummy dlltool; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 if test -n "$ac_ct_DLLTOOL"; then
6312 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6325 done
6326 done
6327 IFS=$as_save_IFS
6331 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6332 if test -n "$ac_ct_DLLTOOL"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6334 $as_echo "$ac_ct_DLLTOOL" >&6; }
6335 else
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6340 if test "x$ac_ct_DLLTOOL" = x; then
6341 DLLTOOL="false"
6342 else
6343 case $cross_compiling:$ac_tool_warned in
6344 yes:)
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6347 ac_tool_warned=yes ;;
6348 esac
6349 DLLTOOL=$ac_ct_DLLTOOL
6351 else
6352 DLLTOOL="$ac_cv_prog_DLLTOOL"
6355 if test -n "$ac_tool_prefix"; then
6356 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6357 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_prog_DLLWRAP+:} false; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 if test -n "$DLLWRAP"; then
6364 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6365 else
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6377 done
6378 done
6379 IFS=$as_save_IFS
6383 DLLWRAP=$ac_cv_prog_DLLWRAP
6384 if test -n "$DLLWRAP"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6386 $as_echo "$DLLWRAP" >&6; }
6387 else
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6394 if test -z "$ac_cv_prog_DLLWRAP"; then
6395 ac_ct_DLLWRAP=$DLLWRAP
6396 # Extract the first word of "dllwrap", so it can be a program name with args.
6397 set dummy dllwrap; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 if test -n "$ac_ct_DLLWRAP"; then
6404 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6417 done
6418 done
6419 IFS=$as_save_IFS
6423 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6424 if test -n "$ac_ct_DLLWRAP"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6426 $as_echo "$ac_ct_DLLWRAP" >&6; }
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6432 if test "x$ac_ct_DLLWRAP" = x; then
6433 DLLWRAP="false"
6434 else
6435 case $cross_compiling:$ac_tool_warned in
6436 yes:)
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6439 ac_tool_warned=yes ;;
6440 esac
6441 DLLWRAP=$ac_ct_DLLWRAP
6443 else
6444 DLLWRAP="$ac_cv_prog_DLLWRAP"
6447 if test "$DLLWRAP" = "false"; then
6448 LIBEXT="a"
6449 else
6450 LIBEXT="dll"
6452 IMPLIBEXT="a"
6453 STATIC_IMPLIBEXT="a"
6454 enable_iphlpapi=${enable_iphlpapi:-no}
6455 enable_kernel32=${enable_kernel32:-no}
6456 enable_msvcrt=${enable_msvcrt:-no}
6457 enable_ntdll=${enable_ntdll:-no}
6458 enable_ws2_32=${enable_ws2_32:-no}
6459 enable_loader=${enable_loader:-no}
6460 enable_server=${enable_server:-no}
6461 with_x=${with_x:-no}
6462 with_pthread=${with_pthread:-no}
6464 darwin*|macosx*)
6465 DLLEXT=".so"
6466 LIBEXT="dylib"
6467 DLLFLAGS="$DLLFLAGS -fPIC"
6468 LDDLLFLAGS="-bundle -multiply_defined suppress"
6469 LIBWINE_LDFLAGS="-multiply_defined suppress"
6470 LDSHARED="\$(CC) -dynamiclib"
6471 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6472 COREFOUNDATIONLIB="-framework CoreFoundation"
6474 IOKITLIB="-framework IOKit -framework CoreFoundation"
6476 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6478 case $host_os in
6479 darwin11*)
6480 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6483 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6485 esac
6486 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6487 then
6488 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6491 if test "$ac_cv_header_Security_Security_h" = "yes"
6492 then
6493 SECURITYLIB="-framework Security -framework CoreFoundation"
6495 ac_save_LIBS="$LIBS"
6496 LIBS="$LIBS $SECURITYLIB"
6497 for ac_func in SSLCopyPeerCertificates
6498 do :
6499 ac_fn_c_check_func "$LINENO" "SSLCopyPeerCertificates" "ac_cv_func_SSLCopyPeerCertificates"
6500 if test "x$ac_cv_func_SSLCopyPeerCertificates" = xyes; then :
6501 cat >>confdefs.h <<_ACEOF
6502 #define HAVE_SSLCOPYPEERCERTIFICATES 1
6503 _ACEOF
6506 done
6508 LIBS="$ac_save_LIBS"
6509 with_gnutls=${with_gnutls:-no}
6511 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6512 then
6513 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6514 then
6515 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
6517 else
6518 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6521 ac_save_LIBS="$LIBS"
6522 LIBS="$LIBS $COREAUDIO"
6523 for ac_func in AUGraphAddNode
6524 do :
6525 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6526 if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
6527 cat >>confdefs.h <<_ACEOF
6528 #define HAVE_AUGRAPHADDNODE 1
6529 _ACEOF
6532 done
6534 LIBS="$ac_save_LIBS"
6536 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6537 then
6538 FRAMEWORK_OPENAL="-framework OpenAL"
6541 cat >>confdefs.h <<_ACEOF
6542 #define HAVE_OPENAL 1
6543 _ACEOF
6545 ac_cv_lib_openal=yes
6547 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6548 then
6549 LIBOPENCL="-framework OpenCL"
6551 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6553 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6554 then
6555 ac_save_LIBS="$LIBS"
6556 LIBS="$LIBS $IOKITLIB"
6557 for ac_func in IOHIDManagerCreate
6558 do :
6559 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6560 if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
6561 cat >>confdefs.h <<_ACEOF
6562 #define HAVE_IOHIDMANAGERCREATE 1
6563 _ACEOF
6566 done
6568 LIBS="$ac_save_LIBS"
6570 case $host_cpu in
6571 *powerpc*)
6572 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6573 esac
6574 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6575 then
6576 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6578 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6579 else
6580 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6582 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6583 then
6584 CARBONLIB="-framework Carbon"
6586 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6588 if test "x$enable_win16" = "xyes"
6589 then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6591 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6592 if test "$cross_compiling" = yes; then :
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6594 $as_echo "cross-compiling, assuming yes" >&6; }
6595 else
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 asm(".text\n"
6599 "bad:\tnop;nop\n"
6600 "good:\tnop;nop\n\t"
6601 ".globl _testfunc\n"
6602 "_testfunc:\tcallw good");
6603 extern void testfunc();
6605 main ()
6607 unsigned short *p = (unsigned short *)testfunc;
6608 return p[0] != 0xe866 || p[1] != 0xfffa
6610 return 0;
6612 _ACEOF
6613 if ac_fn_c_try_run "$LINENO"; then :
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6615 $as_echo "yes" >&6; }
6616 else
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6619 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
6621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6622 conftest.$ac_objext conftest.beam conftest.$ac_ext
6628 DLLFLAGS="$DLLFLAGS -fPIC"
6629 DLLEXT=".so"
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6631 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6632 if ${ac_cv_c_dll_gnuelf+:} false; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 ac_wine_try_cflags_saved=$CFLAGS
6636 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 void myfunc() {}
6640 _ACEOF
6641 if ac_fn_c_try_link "$LINENO"; then :
6642 ac_cv_c_dll_gnuelf="yes"
6643 else
6644 ac_cv_c_dll_gnuelf="no"
6646 rm -f core conftest.err conftest.$ac_objext \
6647 conftest$ac_exeext conftest.$ac_ext
6648 CFLAGS=$ac_wine_try_cflags_saved
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6651 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6652 if test "$ac_cv_c_dll_gnuelf" = "yes"
6653 then
6654 LDSHARED="\$(CC) -shared"
6655 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6657 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6658 if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 ac_wine_try_cflags_saved=$CFLAGS
6662 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6665 int main(int argc, char **argv) { return 0; }
6666 _ACEOF
6667 if ac_fn_c_try_link "$LINENO"; then :
6668 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6669 else
6670 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6672 rm -f core conftest.err conftest.$ac_objext \
6673 conftest$ac_exeext conftest.$ac_ext
6674 CFLAGS=$ac_wine_try_cflags_saved
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6677 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6678 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6679 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6680 else
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6682 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6683 if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
6684 $as_echo_n "(cached) " >&6
6685 else
6686 ac_wine_try_cflags_saved=$CFLAGS
6687 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689 /* end confdefs.h. */
6690 int main(int argc, char **argv) { return 0; }
6691 _ACEOF
6692 if ac_fn_c_try_link "$LINENO"; then :
6693 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6694 else
6695 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6697 rm -f core conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext conftest.$ac_ext
6699 CFLAGS=$ac_wine_try_cflags_saved
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6702 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6703 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6704 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6709 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6710 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713 ac_wine_try_cflags_saved=$CFLAGS
6714 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6717 int main(int argc, char **argv) { return 0; }
6718 _ACEOF
6719 if ac_fn_c_try_link "$LINENO"; then :
6720 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6721 else
6722 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6724 rm -f core conftest.err conftest.$ac_objext \
6725 conftest$ac_exeext conftest.$ac_ext
6726 CFLAGS=$ac_wine_try_cflags_saved
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6729 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6730 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6731 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6734 { $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
6735 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6736 if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 ac_wine_try_cflags_saved=$CFLAGS
6740 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6743 int main(int argc, char **argv) { return 0; }
6744 _ACEOF
6745 if ac_fn_c_try_link "$LINENO"; then :
6746 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6747 else
6748 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6750 rm -f core conftest.err conftest.$ac_objext \
6751 conftest$ac_exeext conftest.$ac_ext
6752 CFLAGS=$ac_wine_try_cflags_saved
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6755 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6756 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6757 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6760 echo '{ global: *; };' >conftest.map
6761 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6763 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6764 if eval \${$as_ac_var+:} false; then :
6765 $as_echo_n "(cached) " >&6
6766 else
6767 ac_wine_try_cflags_saved=$CFLAGS
6768 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770 /* end confdefs.h. */
6771 int main(int argc, char **argv) { return 0; }
6772 _ACEOF
6773 if ac_fn_c_try_link "$LINENO"; then :
6774 eval "$as_ac_var=yes"
6775 else
6776 eval "$as_ac_var=no"
6778 rm -f core conftest.err conftest.$ac_objext \
6779 conftest$ac_exeext conftest.$ac_ext
6780 CFLAGS=$ac_wine_try_cflags_saved
6782 eval ac_res=\$$as_ac_var
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6784 $as_echo "$ac_res" >&6; }
6785 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6786 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6788 rm -f conftest.map
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6791 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6792 if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 ac_wine_try_cflags_saved=$CFLAGS
6796 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6799 int main(int argc, char **argv) { return 0; }
6800 _ACEOF
6801 if ac_fn_c_try_link "$LINENO"; then :
6802 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6803 else
6804 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6806 rm -f core conftest.err conftest.$ac_objext \
6807 conftest$ac_exeext conftest.$ac_ext
6808 CFLAGS=$ac_wine_try_cflags_saved
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6811 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6812 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6813 LDEXECFLAGS="-Wl,--export-dynamic"
6817 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6819 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6820 if eval \${$as_ac_var+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 ac_wine_try_cflags_saved=$CFLAGS
6824 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6826 /* end confdefs.h. */
6827 int main(int argc, char **argv) { return 0; }
6828 _ACEOF
6829 if ac_fn_c_try_link "$LINENO"; then :
6830 eval "$as_ac_var=yes"
6831 else
6832 eval "$as_ac_var=no"
6834 rm -f core conftest.err conftest.$ac_objext \
6835 conftest$ac_exeext conftest.$ac_ext
6836 CFLAGS=$ac_wine_try_cflags_saved
6838 eval ac_res=\$$as_ac_var
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6840 $as_echo "$ac_res" >&6; }
6841 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6842 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6843 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6844 else
6845 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6847 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6848 if eval \${$as_ac_var+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 ac_wine_try_cflags_saved=$CFLAGS
6852 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855 int main(int argc, char **argv) { return 0; }
6856 _ACEOF
6857 if ac_fn_c_try_link "$LINENO"; then :
6858 eval "$as_ac_var=yes"
6859 else
6860 eval "$as_ac_var=no"
6862 rm -f core conftest.err conftest.$ac_objext \
6863 conftest$ac_exeext conftest.$ac_ext
6864 CFLAGS=$ac_wine_try_cflags_saved
6866 eval ac_res=\$$as_ac_var
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6868 $as_echo "$ac_res" >&6; }
6869 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6870 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6871 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6876 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6877 if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6880 ac_wine_try_cflags_saved=$CFLAGS
6881 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884 int main(int argc, char **argv) { return 0; }
6885 _ACEOF
6886 if ac_fn_c_try_link "$LINENO"; then :
6887 ac_cv_cflags__Wl___enable_new_dtags=yes
6888 else
6889 ac_cv_cflags__Wl___enable_new_dtags=no
6891 rm -f core conftest.err conftest.$ac_objext \
6892 conftest$ac_exeext conftest.$ac_ext
6893 CFLAGS=$ac_wine_try_cflags_saved
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6896 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6897 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6898 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6901 case $host_cpu in
6902 *i[3456789]86* | x86_64)
6903 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6905 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6906 if eval \${$as_ac_var+:} false; then :
6907 $as_echo_n "(cached) " >&6
6908 else
6909 ac_wine_try_cflags_saved=$CFLAGS
6910 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h. */
6913 int main(int argc, char **argv) { return 0; }
6914 _ACEOF
6915 if ac_fn_c_try_link "$LINENO"; then :
6916 eval "$as_ac_var=yes"
6917 else
6918 eval "$as_ac_var=no"
6920 rm -f core conftest.err conftest.$ac_objext \
6921 conftest$ac_exeext conftest.$ac_ext
6922 CFLAGS=$ac_wine_try_cflags_saved
6924 eval ac_res=\$$as_ac_var
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6926 $as_echo "$ac_res" >&6; }
6927 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6928 case $host_os in
6929 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6930 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6931 esac
6934 # Extract the first word of "prelink", so it can be a program name with args.
6935 set dummy prelink; ac_word=$2
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 $as_echo_n "checking for $ac_word... " >&6; }
6938 if ${ac_cv_path_PRELINK+:} false; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 case $PRELINK in
6942 [\\/]* | ?:[\\/]*)
6943 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in /sbin /usr/sbin $PATH
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6957 done
6958 done
6959 IFS=$as_save_IFS
6961 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6963 esac
6965 PRELINK=$ac_cv_path_PRELINK
6966 if test -n "$PRELINK"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6968 $as_echo "$PRELINK" >&6; }
6969 else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6975 if test "x$PRELINK" = xfalse
6976 then
6977 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6980 esac
6982 else
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6984 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6985 if ${ac_cv_c_dll_unixware+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 ac_wine_try_cflags_saved=$CFLAGS
6989 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6992 void myfunc() {}
6993 _ACEOF
6994 if ac_fn_c_try_link "$LINENO"; then :
6995 ac_cv_c_dll_unixware="yes"
6996 else
6997 ac_cv_c_dll_unixware="no"
6999 rm -f core conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 CFLAGS=$ac_wine_try_cflags_saved
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
7004 $as_echo "$ac_cv_c_dll_unixware" >&6; }
7005 if test "$ac_cv_c_dll_unixware" = "yes"
7006 then
7007 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7008 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
7012 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
7013 if ${ac_cv_c_dll_hpux+:} false; then :
7014 $as_echo_n "(cached) " >&6
7015 else
7016 ac_wine_try_cflags_saved=$CFLAGS
7017 CFLAGS="$CFLAGS -shared"
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020 void myfunc() {}
7021 _ACEOF
7022 if ac_fn_c_try_link "$LINENO"; then :
7023 ac_cv_c_dll_hpux="yes"
7024 else
7025 ac_cv_c_dll_hpux="no"
7027 rm -f core conftest.err conftest.$ac_objext \
7028 conftest$ac_exeext conftest.$ac_ext
7029 CFLAGS=$ac_wine_try_cflags_saved
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
7032 $as_echo "$ac_cv_c_dll_hpux" >&6; }
7033 if test "$ac_cv_c_dll_hpux" = "yes"
7034 then
7035 LIBEXT="sl"
7036 DLLEXT=".sl"
7037 LDDLLFLAGS="-shared -fPIC"
7038 LDSHARED="\$(CC) -shared"
7043 esac
7045 enable_wineqtdecoder=${enable_wineqtdecoder:-no}
7046 enable_winequartz_drv=${enable_winequartz_drv:-no}
7048 if test "$LIBEXT" = "a"; then
7049 as_fn_error $? "could not find a way to build shared libraries.
7050 It is currently not possible to build Wine without shared library
7051 (.so) support to allow transparent switch between .so and .dll files.
7052 If you are using Linux, you will need a newer binutils.
7053 " "$LINENO" 5
7056 CROSSTEST_DISABLE=\#
7058 if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
7059 then
7060 case "$host_cpu" in
7061 i[3456789]86*)
7062 ac_prefix_list="i686-w64-mingw32-gcc i586-w64-mingw32-gcc i486-w64-mingw32-gcc i386-w64-mingw32-gcc i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;;
7063 x86_64)
7064 ac_prefix_list="x86_64-pc-mingw32-gcc amd64-pc-mingw32-gcc x86_64-w64-mingw32-gcc amd64-w64-mingw32-gcc x86_64-mingw32msvc-gcc amd64-mingw32msvc-gcc " ;;
7066 ac_prefix_list="" ;;
7067 esac
7068 for ac_prog in $ac_prefix_list
7070 # Extract the first word of "$ac_prog", so it can be a program name with args.
7071 set dummy $ac_prog; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if ${ac_cv_prog_CROSSCC+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 if test -n "$CROSSCC"; then
7078 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7079 else
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7087 ac_cv_prog_CROSSCC="$ac_prog"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7091 done
7092 done
7093 IFS=$as_save_IFS
7097 CROSSCC=$ac_cv_prog_CROSSCC
7098 if test -n "$CROSSCC"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
7100 $as_echo "$CROSSCC" >&6; }
7101 else
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 $as_echo "no" >&6; }
7107 test -n "$CROSSCC" && break
7108 done
7109 test -n "$CROSSCC" || CROSSCC="false"
7111 if test "$CROSSCC" != "false"
7112 then
7113 ac_save_CC="$CC"
7114 CC="$CROSSCC"
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7116 $as_echo_n "checking whether $CROSSCC works... " >&6; }
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7121 main ()
7125 return 0;
7127 _ACEOF
7128 if ac_fn_c_try_compile "$LINENO"; then :
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7130 $as_echo "yes" >&6; }
7131 set x $CROSSCC
7132 shift
7133 target=""
7134 while test $# -ge 1
7136 case "$1" in
7137 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7138 esac
7139 shift
7140 done
7141 if test -n "$target"
7142 then
7143 CROSSTEST_DISABLE=""
7144 CROSSTARGET="$target"
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149 $as_echo "no" >&6; }
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152 CC="$ac_save_CC"
7157 if test "$ac_cv_header_pthread_h" = "yes"
7158 then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7160 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7161 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 ac_check_lib_save_LIBS=$LIBS
7165 LIBS="-lpthread $LIBS"
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7169 /* Override any GCC internal prototype to avoid an error.
7170 Use char because int might match the return type of a GCC
7171 builtin and then its argument prototype would still apply. */
7172 #ifdef __cplusplus
7173 extern "C"
7174 #endif
7175 char pthread_create ();
7177 main ()
7179 return pthread_create ();
7181 return 0;
7183 _ACEOF
7184 if ac_fn_c_try_link "$LINENO"; then :
7185 ac_cv_lib_pthread_pthread_create=yes
7186 else
7187 ac_cv_lib_pthread_pthread_create=no
7189 rm -f core conftest.err conftest.$ac_objext \
7190 conftest$ac_exeext conftest.$ac_ext
7191 LIBS=$ac_check_lib_save_LIBS
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7194 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7195 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
7196 LIBPTHREAD="-lpthread"
7201 if test "x$LIBPTHREAD" = "x"; then :
7202 case "x$with_pthread" in
7203 xno) ;;
7204 *) as_fn_error $? "pthread ${notice_platform}development files not found.
7205 Wine cannot support threads without libpthread.
7206 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7207 esac
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7212 $as_echo_n "checking for X... " >&6; }
7215 # Check whether --with-x was given.
7216 if test "${with_x+set}" = set; then :
7217 withval=$with_x;
7220 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7221 if test "x$with_x" = xno; then
7222 # The user explicitly disabled X.
7223 have_x=disabled
7224 else
7225 case $x_includes,$x_libraries in #(
7226 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7227 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7228 $as_echo_n "(cached) " >&6
7229 else
7230 # One or both of the vars are not set, and there is no cached value.
7231 ac_x_includes=no ac_x_libraries=no
7232 rm -f -r conftest.dir
7233 if mkdir conftest.dir; then
7234 cd conftest.dir
7235 cat >Imakefile <<'_ACEOF'
7236 incroot:
7237 @echo incroot='${INCROOT}'
7238 usrlibdir:
7239 @echo usrlibdir='${USRLIBDIR}'
7240 libdir:
7241 @echo libdir='${LIBDIR}'
7242 _ACEOF
7243 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7244 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7245 for ac_var in incroot usrlibdir libdir; do
7246 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7247 done
7248 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7249 for ac_extension in a so sl dylib la dll; do
7250 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7251 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7252 ac_im_usrlibdir=$ac_im_libdir; break
7254 done
7255 # Screen out bogus values from the imake configuration. They are
7256 # bogus both because they are the default anyway, and because
7257 # using them would break gcc on systems where it needs fixed includes.
7258 case $ac_im_incroot in
7259 /usr/include) ac_x_includes= ;;
7260 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7261 esac
7262 case $ac_im_usrlibdir in
7263 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7264 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7265 esac
7267 cd ..
7268 rm -f -r conftest.dir
7271 # Standard set of common directories for X headers.
7272 # Check X11 before X11Rn because it is often a symlink to the current release.
7273 ac_x_header_dirs='
7274 /usr/X11/include
7275 /usr/X11R7/include
7276 /usr/X11R6/include
7277 /usr/X11R5/include
7278 /usr/X11R4/include
7280 /usr/include/X11
7281 /usr/include/X11R7
7282 /usr/include/X11R6
7283 /usr/include/X11R5
7284 /usr/include/X11R4
7286 /usr/local/X11/include
7287 /usr/local/X11R7/include
7288 /usr/local/X11R6/include
7289 /usr/local/X11R5/include
7290 /usr/local/X11R4/include
7292 /usr/local/include/X11
7293 /usr/local/include/X11R7
7294 /usr/local/include/X11R6
7295 /usr/local/include/X11R5
7296 /usr/local/include/X11R4
7298 /usr/X386/include
7299 /usr/x386/include
7300 /usr/XFree86/include/X11
7302 /usr/include
7303 /usr/local/include
7304 /usr/unsupported/include
7305 /usr/athena/include
7306 /usr/local/x11r5/include
7307 /usr/lpp/Xamples/include
7309 /usr/openwin/include
7310 /usr/openwin/share/include'
7312 if test "$ac_x_includes" = no; then
7313 # Guess where to find include files, by looking for Xlib.h.
7314 # First, try using that file with no special directory specified.
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 #include <X11/Xlib.h>
7318 _ACEOF
7319 if ac_fn_c_try_cpp "$LINENO"; then :
7320 # We can compile using X headers with no special include directory.
7321 ac_x_includes=
7322 else
7323 for ac_dir in $ac_x_header_dirs; do
7324 if test -r "$ac_dir/X11/Xlib.h"; then
7325 ac_x_includes=$ac_dir
7326 break
7328 done
7330 rm -f conftest.err conftest.i conftest.$ac_ext
7331 fi # $ac_x_includes = no
7333 if test "$ac_x_libraries" = no; then
7334 # Check for the libraries.
7335 # See if we find them without any special options.
7336 # Don't add to $LIBS permanently.
7337 ac_save_LIBS=$LIBS
7338 LIBS="-lX11 $LIBS"
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7341 #include <X11/Xlib.h>
7343 main ()
7345 XrmInitialize ()
7347 return 0;
7349 _ACEOF
7350 if ac_fn_c_try_link "$LINENO"; then :
7351 LIBS=$ac_save_LIBS
7352 # We can link X programs with no special library path.
7353 ac_x_libraries=
7354 else
7355 LIBS=$ac_save_LIBS
7356 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7358 # Don't even attempt the hair of trying to link an X program!
7359 for ac_extension in a so sl dylib la dll; do
7360 if test -r "$ac_dir/libX11.$ac_extension"; then
7361 ac_x_libraries=$ac_dir
7362 break 2
7364 done
7365 done
7367 rm -f core conftest.err conftest.$ac_objext \
7368 conftest$ac_exeext conftest.$ac_ext
7369 fi # $ac_x_libraries = no
7371 case $ac_x_includes,$ac_x_libraries in #(
7372 no,* | *,no | *\'*)
7373 # Didn't find X, or a directory has "'" in its name.
7374 ac_cv_have_x="have_x=no";; #(
7376 # Record where we found X for the cache.
7377 ac_cv_have_x="have_x=yes\
7378 ac_x_includes='$ac_x_includes'\
7379 ac_x_libraries='$ac_x_libraries'"
7380 esac
7382 ;; #(
7383 *) have_x=yes;;
7384 esac
7385 eval "$ac_cv_have_x"
7386 fi # $with_x != no
7388 if test "$have_x" != yes; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7390 $as_echo "$have_x" >&6; }
7391 no_x=yes
7392 else
7393 # If each of the values was on the command line, it overrides each guess.
7394 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7395 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7396 # Update the cache value to reflect the command line values.
7397 ac_cv_have_x="have_x=yes\
7398 ac_x_includes='$x_includes'\
7399 ac_x_libraries='$x_libraries'"
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7401 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7404 if test "$no_x" = yes; then
7405 # Not all programs may use this symbol, but it does not hurt to define it.
7407 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7409 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7410 else
7411 if test -n "$x_includes"; then
7412 X_CFLAGS="$X_CFLAGS -I$x_includes"
7415 # It would also be nice to do this for all -L options, not just this one.
7416 if test -n "$x_libraries"; then
7417 X_LIBS="$X_LIBS -L$x_libraries"
7418 # For Solaris; some versions of Sun CC require a space after -R and
7419 # others require no space. Words are not sufficient . . . .
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7421 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7422 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7423 ac_xsave_c_werror_flag=$ac_c_werror_flag
7424 ac_c_werror_flag=yes
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7429 main ()
7433 return 0;
7435 _ACEOF
7436 if ac_fn_c_try_link "$LINENO"; then :
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7439 X_LIBS="$X_LIBS -R$x_libraries"
7440 else
7441 LIBS="$ac_xsave_LIBS -R $x_libraries"
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7446 main ()
7450 return 0;
7452 _ACEOF
7453 if ac_fn_c_try_link "$LINENO"; then :
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7455 $as_echo "yes" >&6; }
7456 X_LIBS="$X_LIBS -R $x_libraries"
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7459 $as_echo "neither works" >&6; }
7461 rm -f core conftest.err conftest.$ac_objext \
7462 conftest$ac_exeext conftest.$ac_ext
7464 rm -f core conftest.err conftest.$ac_objext \
7465 conftest$ac_exeext conftest.$ac_ext
7466 ac_c_werror_flag=$ac_xsave_c_werror_flag
7467 LIBS=$ac_xsave_LIBS
7470 # Check for system-dependent libraries X programs must link with.
7471 # Do this before checking for the system-independent R6 libraries
7472 # (-lICE), since we may need -lsocket or whatever for X linking.
7474 if test "$ISC" = yes; then
7475 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7476 else
7477 # Martyn Johnson says this is needed for Ultrix, if the X
7478 # libraries were built with DECnet support. And Karl Berry says
7479 # the Alpha needs dnet_stub (dnet does not exist).
7480 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7484 /* Override any GCC internal prototype to avoid an error.
7485 Use char because int might match the return type of a GCC
7486 builtin and then its argument prototype would still apply. */
7487 #ifdef __cplusplus
7488 extern "C"
7489 #endif
7490 char XOpenDisplay ();
7492 main ()
7494 return XOpenDisplay ();
7496 return 0;
7498 _ACEOF
7499 if ac_fn_c_try_link "$LINENO"; then :
7501 else
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7503 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7504 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 ac_check_lib_save_LIBS=$LIBS
7508 LIBS="-ldnet $LIBS"
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7512 /* Override any GCC internal prototype to avoid an error.
7513 Use char because int might match the return type of a GCC
7514 builtin and then its argument prototype would still apply. */
7515 #ifdef __cplusplus
7516 extern "C"
7517 #endif
7518 char dnet_ntoa ();
7520 main ()
7522 return dnet_ntoa ();
7524 return 0;
7526 _ACEOF
7527 if ac_fn_c_try_link "$LINENO"; then :
7528 ac_cv_lib_dnet_dnet_ntoa=yes
7529 else
7530 ac_cv_lib_dnet_dnet_ntoa=no
7532 rm -f core conftest.err conftest.$ac_objext \
7533 conftest$ac_exeext conftest.$ac_ext
7534 LIBS=$ac_check_lib_save_LIBS
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7537 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7538 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
7539 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7542 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7544 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7545 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 ac_check_lib_save_LIBS=$LIBS
7549 LIBS="-ldnet_stub $LIBS"
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7553 /* Override any GCC internal prototype to avoid an error.
7554 Use char because int might match the return type of a GCC
7555 builtin and then its argument prototype would still apply. */
7556 #ifdef __cplusplus
7557 extern "C"
7558 #endif
7559 char dnet_ntoa ();
7561 main ()
7563 return dnet_ntoa ();
7565 return 0;
7567 _ACEOF
7568 if ac_fn_c_try_link "$LINENO"; then :
7569 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7570 else
7571 ac_cv_lib_dnet_stub_dnet_ntoa=no
7573 rm -f core conftest.err conftest.$ac_objext \
7574 conftest$ac_exeext conftest.$ac_ext
7575 LIBS=$ac_check_lib_save_LIBS
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7578 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7579 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
7580 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7585 rm -f core conftest.err conftest.$ac_objext \
7586 conftest$ac_exeext conftest.$ac_ext
7587 LIBS="$ac_xsave_LIBS"
7589 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7590 # to get the SysV transport functions.
7591 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7592 # needs -lnsl.
7593 # The nsl library prevents programs from opening the X display
7594 # on Irix 5.2, according to T.E. Dickey.
7595 # The functions gethostbyname, getservbyname, and inet_addr are
7596 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7597 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7598 if test "x$ac_cv_func_gethostbyname" = xyes; then :
7602 if test $ac_cv_func_gethostbyname = no; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7604 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7605 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 ac_check_lib_save_LIBS=$LIBS
7609 LIBS="-lnsl $LIBS"
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7613 /* Override any GCC internal prototype to avoid an error.
7614 Use char because int might match the return type of a GCC
7615 builtin and then its argument prototype would still apply. */
7616 #ifdef __cplusplus
7617 extern "C"
7618 #endif
7619 char gethostbyname ();
7621 main ()
7623 return gethostbyname ();
7625 return 0;
7627 _ACEOF
7628 if ac_fn_c_try_link "$LINENO"; then :
7629 ac_cv_lib_nsl_gethostbyname=yes
7630 else
7631 ac_cv_lib_nsl_gethostbyname=no
7633 rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext conftest.$ac_ext
7635 LIBS=$ac_check_lib_save_LIBS
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7638 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7639 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
7640 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7643 if test $ac_cv_lib_nsl_gethostbyname = no; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7645 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7646 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 ac_check_lib_save_LIBS=$LIBS
7650 LIBS="-lbsd $LIBS"
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7654 /* Override any GCC internal prototype to avoid an error.
7655 Use char because int might match the return type of a GCC
7656 builtin and then its argument prototype would still apply. */
7657 #ifdef __cplusplus
7658 extern "C"
7659 #endif
7660 char gethostbyname ();
7662 main ()
7664 return gethostbyname ();
7666 return 0;
7668 _ACEOF
7669 if ac_fn_c_try_link "$LINENO"; then :
7670 ac_cv_lib_bsd_gethostbyname=yes
7671 else
7672 ac_cv_lib_bsd_gethostbyname=no
7674 rm -f core conftest.err conftest.$ac_objext \
7675 conftest$ac_exeext conftest.$ac_ext
7676 LIBS=$ac_check_lib_save_LIBS
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7679 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7680 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
7681 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7687 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7688 # socket/setsockopt and other routines are undefined under SCO ODT
7689 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7690 # on later versions), says Simon Leinen: it contains gethostby*
7691 # variants that don't use the name server (or something). -lsocket
7692 # must be given before -lnsl if both are needed. We assume that
7693 # if connect needs -lnsl, so does gethostbyname.
7694 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7695 if test "x$ac_cv_func_connect" = xyes; then :
7699 if test $ac_cv_func_connect = no; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7701 $as_echo_n "checking for connect in -lsocket... " >&6; }
7702 if ${ac_cv_lib_socket_connect+:} false; then :
7703 $as_echo_n "(cached) " >&6
7704 else
7705 ac_check_lib_save_LIBS=$LIBS
7706 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7710 /* Override any GCC internal prototype to avoid an error.
7711 Use char because int might match the return type of a GCC
7712 builtin and then its argument prototype would still apply. */
7713 #ifdef __cplusplus
7714 extern "C"
7715 #endif
7716 char connect ();
7718 main ()
7720 return connect ();
7722 return 0;
7724 _ACEOF
7725 if ac_fn_c_try_link "$LINENO"; then :
7726 ac_cv_lib_socket_connect=yes
7727 else
7728 ac_cv_lib_socket_connect=no
7730 rm -f core conftest.err conftest.$ac_objext \
7731 conftest$ac_exeext conftest.$ac_ext
7732 LIBS=$ac_check_lib_save_LIBS
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
7735 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7736 if test "x$ac_cv_lib_socket_connect" = xyes; then :
7737 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7742 # Guillermo Gomez says -lposix is necessary on A/UX.
7743 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7744 if test "x$ac_cv_func_remove" = xyes; then :
7748 if test $ac_cv_func_remove = no; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7750 $as_echo_n "checking for remove in -lposix... " >&6; }
7751 if ${ac_cv_lib_posix_remove+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 ac_check_lib_save_LIBS=$LIBS
7755 LIBS="-lposix $LIBS"
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7759 /* Override any GCC internal prototype to avoid an error.
7760 Use char because int might match the return type of a GCC
7761 builtin and then its argument prototype would still apply. */
7762 #ifdef __cplusplus
7763 extern "C"
7764 #endif
7765 char remove ();
7767 main ()
7769 return remove ();
7771 return 0;
7773 _ACEOF
7774 if ac_fn_c_try_link "$LINENO"; then :
7775 ac_cv_lib_posix_remove=yes
7776 else
7777 ac_cv_lib_posix_remove=no
7779 rm -f core conftest.err conftest.$ac_objext \
7780 conftest$ac_exeext conftest.$ac_ext
7781 LIBS=$ac_check_lib_save_LIBS
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7784 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7785 if test "x$ac_cv_lib_posix_remove" = xyes; then :
7786 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7791 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7792 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7793 if test "x$ac_cv_func_shmat" = xyes; then :
7797 if test $ac_cv_func_shmat = no; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7799 $as_echo_n "checking for shmat in -lipc... " >&6; }
7800 if ${ac_cv_lib_ipc_shmat+:} false; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 ac_check_lib_save_LIBS=$LIBS
7804 LIBS="-lipc $LIBS"
7805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h. */
7808 /* Override any GCC internal prototype to avoid an error.
7809 Use char because int might match the return type of a GCC
7810 builtin and then its argument prototype would still apply. */
7811 #ifdef __cplusplus
7812 extern "C"
7813 #endif
7814 char shmat ();
7816 main ()
7818 return shmat ();
7820 return 0;
7822 _ACEOF
7823 if ac_fn_c_try_link "$LINENO"; then :
7824 ac_cv_lib_ipc_shmat=yes
7825 else
7826 ac_cv_lib_ipc_shmat=no
7828 rm -f core conftest.err conftest.$ac_objext \
7829 conftest$ac_exeext conftest.$ac_ext
7830 LIBS=$ac_check_lib_save_LIBS
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7833 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7834 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
7835 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7841 # Check for libraries that X11R6 Xt/Xaw programs need.
7842 ac_save_LDFLAGS=$LDFLAGS
7843 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7844 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7845 # check for ICE first), but we must link in the order -lSM -lICE or
7846 # we get undefined symbols. So assume we have SM if we have ICE.
7847 # These have to be linked with before -lX11, unlike the other
7848 # libraries we check for below, so use a different variable.
7849 # John Interrante, Karl Berry
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7851 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7852 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 ac_check_lib_save_LIBS=$LIBS
7856 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7860 /* Override any GCC internal prototype to avoid an error.
7861 Use char because int might match the return type of a GCC
7862 builtin and then its argument prototype would still apply. */
7863 #ifdef __cplusplus
7864 extern "C"
7865 #endif
7866 char IceConnectionNumber ();
7868 main ()
7870 return IceConnectionNumber ();
7872 return 0;
7874 _ACEOF
7875 if ac_fn_c_try_link "$LINENO"; then :
7876 ac_cv_lib_ICE_IceConnectionNumber=yes
7877 else
7878 ac_cv_lib_ICE_IceConnectionNumber=no
7880 rm -f core conftest.err conftest.$ac_objext \
7881 conftest$ac_exeext conftest.$ac_ext
7882 LIBS=$ac_check_lib_save_LIBS
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7885 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7886 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
7887 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7890 LDFLAGS=$ac_save_LDFLAGS
7895 if test "$have_x" = "yes"
7896 then
7897 XLIB="-lX11"
7898 ac_save_CPPFLAGS="$CPPFLAGS"
7899 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7902 $as_echo_n "checking for -lX11... " >&6; }
7903 if ${ac_cv_lib_soname_X11+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 ac_check_soname_save_LIBS=$LIBS
7907 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7911 /* Override any GCC internal prototype to avoid an error.
7912 Use char because int might match the return type of a GCC
7913 builtin and then its argument prototype would still apply. */
7914 #ifdef __cplusplus
7915 extern "C"
7916 #endif
7917 char XCreateWindow ();
7919 main ()
7921 return XCreateWindow ();
7923 return 0;
7925 _ACEOF
7926 if ac_fn_c_try_link "$LINENO"; then :
7927 case "$LIBEXT" in
7928 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7929 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'` ;;
7930 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7931 esac
7933 rm -f core conftest.err conftest.$ac_objext \
7934 conftest$ac_exeext conftest.$ac_ext
7935 LIBS=$ac_check_soname_save_LIBS
7937 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7939 $as_echo "not found" >&6; }
7941 else
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7943 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7945 cat >>confdefs.h <<_ACEOF
7946 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7947 _ACEOF
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7952 $as_echo_n "checking for -lXext... " >&6; }
7953 if ${ac_cv_lib_soname_Xext+:} false; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 ac_check_soname_save_LIBS=$LIBS
7957 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7961 /* Override any GCC internal prototype to avoid an error.
7962 Use char because int might match the return type of a GCC
7963 builtin and then its argument prototype would still apply. */
7964 #ifdef __cplusplus
7965 extern "C"
7966 #endif
7967 char XextCreateExtension ();
7969 main ()
7971 return XextCreateExtension ();
7973 return 0;
7975 _ACEOF
7976 if ac_fn_c_try_link "$LINENO"; then :
7977 case "$LIBEXT" in
7978 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7979 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'` ;;
7980 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7981 esac
7983 rm -f core conftest.err conftest.$ac_objext \
7984 conftest$ac_exeext conftest.$ac_ext
7985 LIBS=$ac_check_soname_save_LIBS
7987 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7989 $as_echo "not found" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7993 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7995 cat >>confdefs.h <<_ACEOF
7996 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7997 _ACEOF
7999 XLIB="-lXext $XLIB"
8002 for ac_header in X11/Xlib.h \
8003 X11/XKBlib.h \
8004 X11/Xutil.h \
8005 X11/Xcursor/Xcursor.h \
8006 X11/extensions/shape.h \
8007 X11/extensions/XInput.h \
8008 X11/extensions/XInput2.h \
8009 X11/extensions/Xcomposite.h \
8010 X11/extensions/Xinerama.h \
8011 X11/extensions/Xrandr.h \
8012 X11/extensions/Xrender.h \
8013 X11/extensions/xf86vmode.h \
8014 X11/extensions/xf86vmproto.h
8015 do :
8016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8017 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
8018 # include <X11/Xlib.h>
8019 #endif
8020 #ifdef HAVE_X11_XUTIL_H
8021 # include <X11/Xutil.h>
8022 #endif
8024 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8025 cat >>confdefs.h <<_ACEOF
8026 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8027 _ACEOF
8031 done
8034 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8035 then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
8037 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
8038 if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 ac_check_lib_save_LIBS=$LIBS
8042 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8046 /* Override any GCC internal prototype to avoid an error.
8047 Use char because int might match the return type of a GCC
8048 builtin and then its argument prototype would still apply. */
8049 #ifdef __cplusplus
8050 extern "C"
8051 #endif
8052 char XkbQueryExtension ();
8054 main ()
8056 return XkbQueryExtension ();
8058 return 0;
8060 _ACEOF
8061 if ac_fn_c_try_link "$LINENO"; then :
8062 ac_cv_lib_X11_XkbQueryExtension=yes
8063 else
8064 ac_cv_lib_X11_XkbQueryExtension=no
8066 rm -f core conftest.err conftest.$ac_objext \
8067 conftest$ac_exeext conftest.$ac_ext
8068 LIBS=$ac_check_lib_save_LIBS
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8071 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
8072 if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
8074 $as_echo "#define HAVE_XKB 1" >>confdefs.h
8080 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8081 then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
8083 $as_echo_n "checking for -lXcursor... " >&6; }
8084 if ${ac_cv_lib_soname_Xcursor+:} false; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 ac_check_soname_save_LIBS=$LIBS
8088 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8092 /* Override any GCC internal prototype to avoid an error.
8093 Use char because int might match the return type of a GCC
8094 builtin and then its argument prototype would still apply. */
8095 #ifdef __cplusplus
8096 extern "C"
8097 #endif
8098 char XcursorImageLoadCursor ();
8100 main ()
8102 return XcursorImageLoadCursor ();
8104 return 0;
8106 _ACEOF
8107 if ac_fn_c_try_link "$LINENO"; then :
8108 case "$LIBEXT" in
8109 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8110 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'` ;;
8111 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8112 esac
8114 rm -f core conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
8116 LIBS=$ac_check_soname_save_LIBS
8118 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8120 $as_echo "not found" >&6; }
8122 else
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
8124 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
8126 cat >>confdefs.h <<_ACEOF
8127 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8128 _ACEOF
8133 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8134 case "x$with_xcursor" in
8135 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
8136 xno) ;;
8137 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8138 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
8139 esac
8142 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8143 then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
8145 $as_echo_n "checking for -lXi... " >&6; }
8146 if ${ac_cv_lib_soname_Xi+:} false; then :
8147 $as_echo_n "(cached) " >&6
8148 else
8149 ac_check_soname_save_LIBS=$LIBS
8150 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8154 /* Override any GCC internal prototype to avoid an error.
8155 Use char because int might match the return type of a GCC
8156 builtin and then its argument prototype would still apply. */
8157 #ifdef __cplusplus
8158 extern "C"
8159 #endif
8160 char XOpenDevice ();
8162 main ()
8164 return XOpenDevice ();
8166 return 0;
8168 _ACEOF
8169 if ac_fn_c_try_link "$LINENO"; then :
8170 case "$LIBEXT" in
8171 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8172 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'` ;;
8173 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8174 esac
8176 rm -f core conftest.err conftest.$ac_objext \
8177 conftest$ac_exeext conftest.$ac_ext
8178 LIBS=$ac_check_soname_save_LIBS
8180 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8182 $as_echo "not found" >&6; }
8184 else
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8186 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8188 cat >>confdefs.h <<_ACEOF
8189 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8190 _ACEOF
8195 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8196 case "x$with_xinput" in
8197 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8198 xno) ;;
8199 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8200 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8201 esac
8204 if test "x$ac_cv_lib_soname_Xi" != x
8205 then
8206 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8207 case "x$with_xinput2" in
8208 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8209 xno) ;;
8210 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
8211 This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
8212 esac
8216 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8217 then
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8219 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8220 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 ac_check_lib_save_LIBS=$LIBS
8224 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8228 /* Override any GCC internal prototype to avoid an error.
8229 Use char because int might match the return type of a GCC
8230 builtin and then its argument prototype would still apply. */
8231 #ifdef __cplusplus
8232 extern "C"
8233 #endif
8234 char XShapeQueryExtension ();
8236 main ()
8238 return XShapeQueryExtension ();
8240 return 0;
8242 _ACEOF
8243 if ac_fn_c_try_link "$LINENO"; then :
8244 ac_cv_lib_Xext_XShapeQueryExtension=yes
8245 else
8246 ac_cv_lib_Xext_XShapeQueryExtension=no
8248 rm -f core conftest.err conftest.$ac_objext \
8249 conftest$ac_exeext conftest.$ac_ext
8250 LIBS=$ac_check_lib_save_LIBS
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8253 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8254 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
8256 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8261 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8262 case "x$with_xshape" in
8263 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8264 xno) ;;
8265 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8266 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8267 esac
8270 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8271 then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8273 $as_echo_n "checking for -lXxf86vm... " >&6; }
8274 if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 ac_check_soname_save_LIBS=$LIBS
8278 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h. */
8282 /* Override any GCC internal prototype to avoid an error.
8283 Use char because int might match the return type of a GCC
8284 builtin and then its argument prototype would still apply. */
8285 #ifdef __cplusplus
8286 extern "C"
8287 #endif
8288 char XF86VidModeQueryExtension ();
8290 main ()
8292 return XF86VidModeQueryExtension ();
8294 return 0;
8296 _ACEOF
8297 if ac_fn_c_try_link "$LINENO"; then :
8298 case "$LIBEXT" in
8299 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8300 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'` ;;
8301 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8302 esac
8304 rm -f core conftest.err conftest.$ac_objext \
8305 conftest$ac_exeext conftest.$ac_ext
8306 LIBS=$ac_check_soname_save_LIBS
8308 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8310 $as_echo "not found" >&6; }
8312 else
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8314 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8316 cat >>confdefs.h <<_ACEOF
8317 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8318 _ACEOF
8323 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8324 case "x$with_xxf86vm" in
8325 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8326 xno) ;;
8327 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8328 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8329 esac
8332 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"
8333 then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8335 $as_echo_n "checking for -lXrender... " >&6; }
8336 if ${ac_cv_lib_soname_Xrender+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338 else
8339 ac_check_soname_save_LIBS=$LIBS
8340 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8344 /* Override any GCC internal prototype to avoid an error.
8345 Use char because int might match the return type of a GCC
8346 builtin and then its argument prototype would still apply. */
8347 #ifdef __cplusplus
8348 extern "C"
8349 #endif
8350 char XRenderQueryExtension ();
8352 main ()
8354 return XRenderQueryExtension ();
8356 return 0;
8358 _ACEOF
8359 if ac_fn_c_try_link "$LINENO"; then :
8360 case "$LIBEXT" in
8361 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8362 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'` ;;
8363 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8364 esac
8366 rm -f core conftest.err conftest.$ac_objext \
8367 conftest$ac_exeext conftest.$ac_ext
8368 LIBS=$ac_check_soname_save_LIBS
8370 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8372 $as_echo "not found" >&6; }
8374 else
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8376 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8378 cat >>confdefs.h <<_ACEOF
8379 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8380 _ACEOF
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8383 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8384 if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 ac_check_lib_save_LIBS=$LIBS
8388 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8392 /* Override any GCC internal prototype to avoid an error.
8393 Use char because int might match the return type of a GCC
8394 builtin and then its argument prototype would still apply. */
8395 #ifdef __cplusplus
8396 extern "C"
8397 #endif
8398 char XRenderSetPictureTransform ();
8400 main ()
8402 return XRenderSetPictureTransform ();
8404 return 0;
8406 _ACEOF
8407 if ac_fn_c_try_link "$LINENO"; then :
8408 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8409 else
8410 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8412 rm -f core conftest.err conftest.$ac_objext \
8413 conftest$ac_exeext conftest.$ac_ext
8414 LIBS=$ac_check_lib_save_LIBS
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8417 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8418 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
8420 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateLinearGradient in -lXrender" >&5
8425 $as_echo_n "checking for XRenderCreateLinearGradient in -lXrender... " >&6; }
8426 if ${ac_cv_lib_Xrender_XRenderCreateLinearGradient+:} false; then :
8427 $as_echo_n "(cached) " >&6
8428 else
8429 ac_check_lib_save_LIBS=$LIBS
8430 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8434 /* Override any GCC internal prototype to avoid an error.
8435 Use char because int might match the return type of a GCC
8436 builtin and then its argument prototype would still apply. */
8437 #ifdef __cplusplus
8438 extern "C"
8439 #endif
8440 char XRenderCreateLinearGradient ();
8442 main ()
8444 return XRenderCreateLinearGradient ();
8446 return 0;
8448 _ACEOF
8449 if ac_fn_c_try_link "$LINENO"; then :
8450 ac_cv_lib_Xrender_XRenderCreateLinearGradient=yes
8451 else
8452 ac_cv_lib_Xrender_XRenderCreateLinearGradient=no
8454 rm -f core conftest.err conftest.$ac_objext \
8455 conftest$ac_exeext conftest.$ac_ext
8456 LIBS=$ac_check_lib_save_LIBS
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&5
8459 $as_echo "$ac_cv_lib_Xrender_XRenderCreateLinearGradient" >&6; }
8460 if test "x$ac_cv_lib_Xrender_XRenderCreateLinearGradient" = xyes; then :
8462 $as_echo "#define HAVE_XRENDERCREATELINEARGRADIENT 1" >>confdefs.h
8469 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8470 case "x$with_xrender" in
8471 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8472 xno) ;;
8473 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8474 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8475 esac
8478 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8479 then
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8482 #include <X11/Xlib.h>
8483 #include <X11/extensions/Xrandr.h>
8485 main ()
8487 static typeof(XRRSetScreenConfigAndRate) * func; if (func) return 0;
8489 return 0;
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"; then :
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8494 $as_echo_n "checking for -lXrandr... " >&6; }
8495 if ${ac_cv_lib_soname_Xrandr+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 ac_check_soname_save_LIBS=$LIBS
8499 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8503 /* Override any GCC internal prototype to avoid an error.
8504 Use char because int might match the return type of a GCC
8505 builtin and then its argument prototype would still apply. */
8506 #ifdef __cplusplus
8507 extern "C"
8508 #endif
8509 char XRRQueryExtension ();
8511 main ()
8513 return XRRQueryExtension ();
8515 return 0;
8517 _ACEOF
8518 if ac_fn_c_try_link "$LINENO"; then :
8519 case "$LIBEXT" in
8520 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8521 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'` ;;
8522 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8523 esac
8525 rm -f core conftest.err conftest.$ac_objext \
8526 conftest$ac_exeext conftest.$ac_ext
8527 LIBS=$ac_check_soname_save_LIBS
8529 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8531 $as_echo "not found" >&6; }
8533 else
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8535 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8537 cat >>confdefs.h <<_ACEOF
8538 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8539 _ACEOF
8544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8547 case "x$with_xrandr" in
8548 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8549 xno) ;;
8550 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8551 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8552 esac
8555 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8556 then
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 #include <X11/Xlib.h>
8560 #include <X11/extensions/Xinerama.h>
8562 main ()
8564 static typeof(XineramaQueryScreens) * func; if (func) return 0;
8566 return 0;
8568 _ACEOF
8569 if ac_fn_c_try_compile "$LINENO"; then :
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8571 $as_echo_n "checking for -lXinerama... " >&6; }
8572 if ${ac_cv_lib_soname_Xinerama+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 ac_check_soname_save_LIBS=$LIBS
8576 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h. */
8580 /* Override any GCC internal prototype to avoid an error.
8581 Use char because int might match the return type of a GCC
8582 builtin and then its argument prototype would still apply. */
8583 #ifdef __cplusplus
8584 extern "C"
8585 #endif
8586 char XineramaQueryScreens ();
8588 main ()
8590 return XineramaQueryScreens ();
8592 return 0;
8594 _ACEOF
8595 if ac_fn_c_try_link "$LINENO"; then :
8596 case "$LIBEXT" in
8597 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8598 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'` ;;
8599 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8600 esac
8602 rm -f core conftest.err conftest.$ac_objext \
8603 conftest$ac_exeext conftest.$ac_ext
8604 LIBS=$ac_check_soname_save_LIBS
8606 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8608 $as_echo "not found" >&6; }
8610 else
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8612 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8614 cat >>confdefs.h <<_ACEOF
8615 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8616 _ACEOF
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8624 case "x$with_xinerama" in
8625 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8626 xno) ;;
8627 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8628 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8629 esac
8632 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8633 then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8635 $as_echo_n "checking for -lXcomposite... " >&6; }
8636 if ${ac_cv_lib_soname_Xcomposite+:} false; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 ac_check_soname_save_LIBS=$LIBS
8640 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8644 /* Override any GCC internal prototype to avoid an error.
8645 Use char because int might match the return type of a GCC
8646 builtin and then its argument prototype would still apply. */
8647 #ifdef __cplusplus
8648 extern "C"
8649 #endif
8650 char XCompositeRedirectWindow ();
8652 main ()
8654 return XCompositeRedirectWindow ();
8656 return 0;
8658 _ACEOF
8659 if ac_fn_c_try_link "$LINENO"; then :
8660 case "$LIBEXT" in
8661 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8662 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'` ;;
8663 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8664 esac
8666 rm -f core conftest.err conftest.$ac_objext \
8667 conftest$ac_exeext conftest.$ac_ext
8668 LIBS=$ac_check_soname_save_LIBS
8670 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8672 $as_echo "not found" >&6; }
8674 else
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8676 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8678 cat >>confdefs.h <<_ACEOF
8679 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8680 _ACEOF
8685 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8686 case "x$with_xcomposite" in
8687 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8688 xno) ;;
8689 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8690 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8691 esac
8694 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8695 #include <X11/Xlib.h>
8696 #endif
8698 if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
8700 cat >>confdefs.h <<_ACEOF
8701 #define HAVE_XICCALLBACK_CALLBACK 1
8702 _ACEOF
8706 ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8707 #include <X11/Xlib.h>
8708 #endif
8710 if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
8712 cat >>confdefs.h <<_ACEOF
8713 #define HAVE_XEVENT_XCOOKIE 1
8714 _ACEOF
8721 opengl_msg=""
8722 if test "x$with_opengl" != "xno"
8723 then
8724 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8725 do :
8726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8727 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8728 # include <GL/glx.h>
8729 #endif
8731 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8732 cat >>confdefs.h <<_ACEOF
8733 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8734 _ACEOF
8738 done
8740 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8741 then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8743 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8744 if ${wine_cv_opengl_header_version_OK+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8749 #include <GL/gl.h>
8751 main ()
8753 GLenum test = GL_UNSIGNED_SHORT_5_6_5; return (test == GL_UNSIGNED_SHORT_5_6_5);
8755 return 0;
8757 _ACEOF
8758 if ac_fn_c_try_compile "$LINENO"; then :
8759 wine_cv_opengl_header_version_OK="yes"
8760 else
8761 wine_cv_opengl_header_version_OK="no"
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8766 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8768 if test "$wine_cv_opengl_header_version_OK" = "yes"
8769 then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8771 $as_echo_n "checking for -lGL... " >&6; }
8772 if ${ac_cv_lib_soname_GL+:} false; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 ac_check_soname_save_LIBS=$LIBS
8776 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8780 /* Override any GCC internal prototype to avoid an error.
8781 Use char because int might match the return type of a GCC
8782 builtin and then its argument prototype would still apply. */
8783 #ifdef __cplusplus
8784 extern "C"
8785 #endif
8786 char glXCreateContext ();
8788 main ()
8790 return glXCreateContext ();
8792 return 0;
8794 _ACEOF
8795 if ac_fn_c_try_link "$LINENO"; then :
8796 case "$LIBEXT" in
8797 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8798 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'` ;;
8799 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8800 esac
8802 rm -f core conftest.err conftest.$ac_objext \
8803 conftest$ac_exeext conftest.$ac_ext
8804 LIBS=$ac_check_soname_save_LIBS
8806 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8808 $as_echo "not found" >&6; }
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8810 $as_echo_n "checking for -lGL... " >&6; }
8811 if ${ac_cv_lib_soname_GL+:} false; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 ac_check_soname_save_LIBS=$LIBS
8815 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"
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8819 /* Override any GCC internal prototype to avoid an error.
8820 Use char because int might match the return type of a GCC
8821 builtin and then its argument prototype would still apply. */
8822 #ifdef __cplusplus
8823 extern "C"
8824 #endif
8825 char glXCreateContext ();
8827 main ()
8829 return glXCreateContext ();
8831 return 0;
8833 _ACEOF
8834 if ac_fn_c_try_link "$LINENO"; then :
8835 case "$LIBEXT" in
8836 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8837 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'` ;;
8838 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8839 esac
8841 rm -f core conftest.err conftest.$ac_objext \
8842 conftest$ac_exeext conftest.$ac_ext
8843 LIBS=$ac_check_soname_save_LIBS
8845 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8847 $as_echo "not found" >&6; }
8848 if test -f /usr/X11R6/lib/libGL.a
8849 then
8850 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8851 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8852 else
8853 opengl_msg="No OpenGL library found on this system."
8855 else
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8857 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8859 cat >>confdefs.h <<_ACEOF
8860 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8861 _ACEOF
8863 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"
8865 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8868 else
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8870 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8872 cat >>confdefs.h <<_ACEOF
8873 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8874 _ACEOF
8876 OPENGL_LIBS="-lGL"
8878 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8881 if test "$ac_cv_header_GL_glu_h" = "yes"
8882 then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8884 $as_echo_n "checking for -lGLU... " >&6; }
8885 if ${ac_cv_lib_soname_GLU+:} false; then :
8886 $as_echo_n "(cached) " >&6
8887 else
8888 ac_check_soname_save_LIBS=$LIBS
8889 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8893 /* Override any GCC internal prototype to avoid an error.
8894 Use char because int might match the return type of a GCC
8895 builtin and then its argument prototype would still apply. */
8896 #ifdef __cplusplus
8897 extern "C"
8898 #endif
8899 char gluLookAt ();
8901 main ()
8903 return gluLookAt ();
8905 return 0;
8907 _ACEOF
8908 if ac_fn_c_try_link "$LINENO"; then :
8909 case "$LIBEXT" in
8910 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8911 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'` ;;
8912 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8913 esac
8915 rm -f core conftest.err conftest.$ac_objext \
8916 conftest$ac_exeext conftest.$ac_ext
8917 LIBS=$ac_check_soname_save_LIBS
8919 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8921 $as_echo "not found" >&6; }
8923 else
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8925 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8927 cat >>confdefs.h <<_ACEOF
8928 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8929 _ACEOF
8934 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8935 case "x$with_glu" in
8936 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8937 xno) ;;
8938 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8939 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8940 esac
8942 else
8943 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8945 else
8946 opengl_msg="OpenGL development headers not found."
8948 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8949 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8950 else
8951 enable_opengl32=${enable_opengl32:-no}
8952 enable_glu32=${enable_glu32:-no}
8954 if test -n "$opengl_msg"; then :
8955 case "x$with_opengl" in
8956 x) as_fn_append wine_warnings "|$opengl_msg
8957 OpenGL and Direct3D won't be supported." ;;
8958 xno) ;;
8959 *) as_fn_error $? "$opengl_msg
8960 OpenGL and Direct3D won't be supported.
8961 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8962 esac
8965 CPPFLAGS="$ac_save_CPPFLAGS"
8966 else
8967 XLIB=""
8968 X_CFLAGS=""
8969 X_LIBS=""
8970 enable_winex11_drv=${enable_winex11_drv:-no}
8971 enable_opengl32=${enable_opengl32:-no}
8972 enable_glu32=${enable_glu32:-no}
8974 if test "x$XLIB" = "x"; then :
8975 case "x$with_x" in
8976 xno) ;;
8977 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
8978 without X support, which probably isn't what you want. You will need
8979 to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
8980 Use the --without-x option if you really want this." "$LINENO" 5 ;;
8981 esac
8984 if test "$ac_cv_header_CL_cl_h" = "yes"
8985 then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
8987 $as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
8988 if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
8989 $as_echo_n "(cached) " >&6
8990 else
8991 ac_check_lib_save_LIBS=$LIBS
8992 LIBS="-lOpenCL $LIBS"
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8996 /* Override any GCC internal prototype to avoid an error.
8997 Use char because int might match the return type of a GCC
8998 builtin and then its argument prototype would still apply. */
8999 #ifdef __cplusplus
9000 extern "C"
9001 #endif
9002 char clGetPlatformInfo ();
9004 main ()
9006 return clGetPlatformInfo ();
9008 return 0;
9010 _ACEOF
9011 if ac_fn_c_try_link "$LINENO"; then :
9012 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9013 else
9014 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9016 rm -f core conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9018 LIBS=$ac_check_lib_save_LIBS
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9021 $as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9022 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
9023 LIBOPENCL="-lOpenCL"
9028 if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9029 case "x$with_opencl" in
9030 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9031 xno) ;;
9032 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9033 This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9034 esac
9036 test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9039 XML2LIBS=""
9041 XML2INCL=""
9043 XSLTINCL=""
9045 if test "x$with_xml" != "xno"
9046 then
9047 ac_save_CPPFLAGS="$CPPFLAGS"
9048 if test "$PKG_CONFIG" != "false"
9049 then
9050 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9051 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9052 else
9053 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9054 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9056 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
9057 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
9058 do :
9059 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9060 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9061 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9062 cat >>confdefs.h <<_ACEOF
9063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9064 _ACEOF
9068 done
9070 if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes"
9071 then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
9073 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
9074 if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 ac_check_lib_save_LIBS=$LIBS
9078 LIBS="-lxml2 $ac_xml_libs $LIBS"
9079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h. */
9082 /* Override any GCC internal prototype to avoid an error.
9083 Use char because int might match the return type of a GCC
9084 builtin and then its argument prototype would still apply. */
9085 #ifdef __cplusplus
9086 extern "C"
9087 #endif
9088 char xmlParseMemory ();
9090 main ()
9092 return xmlParseMemory ();
9094 return 0;
9096 _ACEOF
9097 if ac_fn_c_try_link "$LINENO"; then :
9098 ac_cv_lib_xml2_xmlParseMemory=yes
9099 else
9100 ac_cv_lib_xml2_xmlParseMemory=no
9102 rm -f core conftest.err conftest.$ac_objext \
9103 conftest$ac_exeext conftest.$ac_ext
9104 LIBS=$ac_check_lib_save_LIBS
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9107 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
9108 if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
9110 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
9112 XML2LIBS="$ac_xml_libs"
9113 XML2INCL="$ac_xml_cflags"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9117 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9118 if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 ac_check_lib_save_LIBS=$LIBS
9122 LIBS="-lxml2 $ac_xml_libs $LIBS"
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9126 /* Override any GCC internal prototype to avoid an error.
9127 Use char because int might match the return type of a GCC
9128 builtin and then its argument prototype would still apply. */
9129 #ifdef __cplusplus
9130 extern "C"
9131 #endif
9132 char xmlReadMemory ();
9134 main ()
9136 return xmlReadMemory ();
9138 return 0;
9140 _ACEOF
9141 if ac_fn_c_try_link "$LINENO"; then :
9142 ac_cv_lib_xml2_xmlReadMemory=yes
9143 else
9144 ac_cv_lib_xml2_xmlReadMemory=no
9146 rm -f core conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext conftest.$ac_ext
9148 LIBS=$ac_check_lib_save_LIBS
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9151 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9152 if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
9154 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9159 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9160 if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
9161 $as_echo_n "(cached) " >&6
9162 else
9163 ac_check_lib_save_LIBS=$LIBS
9164 LIBS="-lxml2 $ac_xml_libs $LIBS"
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9168 /* Override any GCC internal prototype to avoid an error.
9169 Use char because int might match the return type of a GCC
9170 builtin and then its argument prototype would still apply. */
9171 #ifdef __cplusplus
9172 extern "C"
9173 #endif
9174 char xmlNewDocPI ();
9176 main ()
9178 return xmlNewDocPI ();
9180 return 0;
9182 _ACEOF
9183 if ac_fn_c_try_link "$LINENO"; then :
9184 ac_cv_lib_xml2_xmlNewDocPI=yes
9185 else
9186 ac_cv_lib_xml2_xmlNewDocPI=no
9188 rm -f core conftest.err conftest.$ac_objext \
9189 conftest$ac_exeext conftest.$ac_ext
9190 LIBS=$ac_check_lib_save_LIBS
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9193 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9194 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
9196 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9201 $as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9202 if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 ac_check_lib_save_LIBS=$LIBS
9206 LIBS="-lxml2 $ac_xml_libs $LIBS"
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9210 /* Override any GCC internal prototype to avoid an error.
9211 Use char because int might match the return type of a GCC
9212 builtin and then its argument prototype would still apply. */
9213 #ifdef __cplusplus
9214 extern "C"
9215 #endif
9216 char xmlSchemaSetParserStructuredErrors ();
9218 main ()
9220 return xmlSchemaSetParserStructuredErrors ();
9222 return 0;
9224 _ACEOF
9225 if ac_fn_c_try_link "$LINENO"; then :
9226 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9227 else
9228 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9230 rm -f core conftest.err conftest.$ac_objext \
9231 conftest$ac_exeext conftest.$ac_ext
9232 LIBS=$ac_check_lib_save_LIBS
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9235 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9236 if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
9238 $as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9243 $as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9244 if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 ac_check_lib_save_LIBS=$LIBS
9248 LIBS="-lxml2 $ac_xml_libs $LIBS"
9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250 /* end confdefs.h. */
9252 /* Override any GCC internal prototype to avoid an error.
9253 Use char because int might match the return type of a GCC
9254 builtin and then its argument prototype would still apply. */
9255 #ifdef __cplusplus
9256 extern "C"
9257 #endif
9258 char xmlSchemaSetValidStructuredErrors ();
9260 main ()
9262 return xmlSchemaSetValidStructuredErrors ();
9264 return 0;
9266 _ACEOF
9267 if ac_fn_c_try_link "$LINENO"; then :
9268 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9269 else
9270 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9272 rm -f core conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
9274 LIBS=$ac_check_lib_save_LIBS
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9277 $as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9278 if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
9280 $as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9285 $as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9286 if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
9287 $as_echo_n "(cached) " >&6
9288 else
9289 ac_check_lib_save_LIBS=$LIBS
9290 LIBS="-lxml2 $ac_xml_libs $LIBS"
9291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9294 /* Override any GCC internal prototype to avoid an error.
9295 Use char because int might match the return type of a GCC
9296 builtin and then its argument prototype would still apply. */
9297 #ifdef __cplusplus
9298 extern "C"
9299 #endif
9300 char xmlFirstElementChild ();
9302 main ()
9304 return xmlFirstElementChild ();
9306 return 0;
9308 _ACEOF
9309 if ac_fn_c_try_link "$LINENO"; then :
9310 ac_cv_lib_xml2_xmlFirstElementChild=yes
9311 else
9312 ac_cv_lib_xml2_xmlFirstElementChild=no
9314 rm -f core conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
9316 LIBS=$ac_check_lib_save_LIBS
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9319 $as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9320 if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
9322 $as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9326 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9328 if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
9330 $as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9335 CPPFLAGS="$ac_save_CPPFLAGS"
9337 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9338 case "x$with_xml" in
9339 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
9340 xno) ;;
9341 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
9342 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9343 esac
9346 if test "x$with_xslt" != "xno"
9347 then
9348 if test "$PKG_CONFIG" != "false"
9349 then
9350 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9351 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9352 else
9353 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9354 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9356 ac_save_CPPFLAGS="$CPPFLAGS"
9357 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9358 for ac_header in libxslt/pattern.h libxslt/transform.h
9359 do :
9360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9361 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9362 # include <libxslt/pattern.h>
9363 #endif
9365 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9366 cat >>confdefs.h <<_ACEOF
9367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9368 _ACEOF
9372 done
9374 CPPFLAGS="$ac_save_CPPFLAGS"
9375 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9376 then
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9378 $as_echo_n "checking for -lxslt... " >&6; }
9379 if ${ac_cv_lib_soname_xslt+:} false; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382 ac_check_soname_save_LIBS=$LIBS
9383 LIBS="-lxslt $ac_xslt_libs $LIBS"
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9387 /* Override any GCC internal prototype to avoid an error.
9388 Use char because int might match the return type of a GCC
9389 builtin and then its argument prototype would still apply. */
9390 #ifdef __cplusplus
9391 extern "C"
9392 #endif
9393 char xsltCompilePattern ();
9395 main ()
9397 return xsltCompilePattern ();
9399 return 0;
9401 _ACEOF
9402 if ac_fn_c_try_link "$LINENO"; then :
9403 case "$LIBEXT" in
9404 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9405 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'` ;;
9406 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9407 esac
9409 rm -f core conftest.err conftest.$ac_objext \
9410 conftest$ac_exeext conftest.$ac_ext
9411 LIBS=$ac_check_soname_save_LIBS
9413 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9415 $as_echo "not found" >&6; }
9417 else
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9419 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9421 cat >>confdefs.h <<_ACEOF
9422 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9423 _ACEOF
9425 XSLTINCL="$ac_xslt_cflags"
9429 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9430 case "x$with_xslt" in
9431 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9432 xno) ;;
9433 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9434 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9435 esac
9438 if test "x$with_dbus" != "xno"
9439 then
9440 ac_save_CPPFLAGS="$CPPFLAGS"
9441 if test "$PKG_CONFIG" != "false"
9442 then
9443 ac_dbus_libs="`$PKG_CONFIG --libs dbus-1 2>/dev/null`"
9444 ac_dbus_cflags="`$PKG_CONFIG --cflags dbus-1 2>/dev/null`"
9445 CPPFLAGS="$CPPFLAGS $ac_dbus_cflags"
9447 ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
9448 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldbus-1" >&5
9450 $as_echo_n "checking for -ldbus-1... " >&6; }
9451 if ${ac_cv_lib_soname_dbus_1+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 ac_check_soname_save_LIBS=$LIBS
9455 LIBS="-ldbus-1 $ac_dbus_libs $LIBS"
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9459 /* Override any GCC internal prototype to avoid an error.
9460 Use char because int might match the return type of a GCC
9461 builtin and then its argument prototype would still apply. */
9462 #ifdef __cplusplus
9463 extern "C"
9464 #endif
9465 char dbus_connection_close ();
9467 main ()
9469 return dbus_connection_close ();
9471 return 0;
9473 _ACEOF
9474 if ac_fn_c_try_link "$LINENO"; then :
9475 case "$LIBEXT" in
9476 dll) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest.exe | grep "dbus-1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9477 dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep "libdbus-1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9478 *) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libdbus-1\\.$LIBEXT" | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9479 esac
9481 rm -f core conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
9483 LIBS=$ac_check_soname_save_LIBS
9485 if test "x$ac_cv_lib_soname_dbus_1" = "x"; then :
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9487 $as_echo "not found" >&6; }
9489 else
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_dbus_1" >&5
9491 $as_echo "$ac_cv_lib_soname_dbus_1" >&6; }
9493 cat >>confdefs.h <<_ACEOF
9494 #define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
9495 _ACEOF
9497 DBUSINCL="$ac_dbus_cflags"
9503 CPPFLAGS="$ac_save_CPPFLAGS"
9505 if test "x$ac_cv_lib_soname_dbus_1" = "x" -a \
9506 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9507 case "x$with_dbus" in
9508 x) as_fn_append wine_notices "|libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9509 xno) ;;
9510 *) as_fn_error $? "libdbus ${notice_platform}development files not found, no dynamic device support.
9511 This is an error since --with-dbus was requested." "$LINENO" 5 ;;
9512 esac
9515 if test "x$with_hal" != "xno" -a "x$ac_cv_lib_soname_dbus_1" != x
9516 then
9517 ac_save_CPPFLAGS="$CPPFLAGS"
9518 if test "$PKG_CONFIG" != "false"
9519 then
9520 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9521 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9522 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9524 ac_fn_c_check_header_mongrel "$LINENO" "hal/libhal.h" "ac_cv_header_hal_libhal_h" "$ac_includes_default"
9525 if test "x$ac_cv_header_hal_libhal_h" = xyes; then :
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9527 $as_echo_n "checking for -lhal... " >&6; }
9528 if ${ac_cv_lib_soname_hal+:} false; then :
9529 $as_echo_n "(cached) " >&6
9530 else
9531 ac_check_soname_save_LIBS=$LIBS
9532 LIBS="-lhal $ac_hal_libs $LIBS"
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9536 /* Override any GCC internal prototype to avoid an error.
9537 Use char because int might match the return type of a GCC
9538 builtin and then its argument prototype would still apply. */
9539 #ifdef __cplusplus
9540 extern "C"
9541 #endif
9542 char libhal_ctx_new ();
9544 main ()
9546 return libhal_ctx_new ();
9548 return 0;
9550 _ACEOF
9551 if ac_fn_c_try_link "$LINENO"; then :
9552 case "$LIBEXT" in
9553 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9554 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'` ;;
9555 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9556 esac
9558 rm -f core conftest.err conftest.$ac_objext \
9559 conftest$ac_exeext conftest.$ac_ext
9560 LIBS=$ac_check_soname_save_LIBS
9562 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9564 $as_echo "not found" >&6; }
9566 else
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9568 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9570 cat >>confdefs.h <<_ACEOF
9571 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9572 _ACEOF
9574 HALINCL="$ac_hal_cflags"
9580 CPPFLAGS="$ac_save_CPPFLAGS"
9581 if test "x$ac_cv_lib_soname_hal" = "x" -a \
9582 "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
9583 case "x$with_hal" in
9584 x) as_fn_append wine_notices "|libhal ${notice_platform}development files not found, no legacy dynamic device support." ;;
9585 xno) ;;
9586 *) as_fn_error $? "libhal ${notice_platform}development files not found, no legacy dynamic device support.
9587 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9588 esac
9592 if test "x$with_gnutls" != "xno"
9593 then
9594 ac_save_CPPFLAGS="$CPPFLAGS"
9595 if test "$PKG_CONFIG" != "false"
9596 then
9597 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9598 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9599 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9601 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9602 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9605 #include <gnutls/gnutls.h>
9607 main ()
9609 static typeof(gnutls_mac_get_key_size) *func; if (func) return 0;
9611 return 0;
9613 _ACEOF
9614 if ac_fn_c_try_compile "$LINENO"; then :
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9616 $as_echo_n "checking for -lgnutls... " >&6; }
9617 if ${ac_cv_lib_soname_gnutls+:} false; then :
9618 $as_echo_n "(cached) " >&6
9619 else
9620 ac_check_soname_save_LIBS=$LIBS
9621 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623 /* end confdefs.h. */
9625 /* Override any GCC internal prototype to avoid an error.
9626 Use char because int might match the return type of a GCC
9627 builtin and then its argument prototype would still apply. */
9628 #ifdef __cplusplus
9629 extern "C"
9630 #endif
9631 char gnutls_global_init ();
9633 main ()
9635 return gnutls_global_init ();
9637 return 0;
9639 _ACEOF
9640 if ac_fn_c_try_link "$LINENO"; then :
9641 case "$LIBEXT" in
9642 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9643 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'` ;;
9644 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9645 esac
9647 rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 LIBS=$ac_check_soname_save_LIBS
9651 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9653 $as_echo "not found" >&6; }
9655 else
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9657 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9659 cat >>confdefs.h <<_ACEOF
9660 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9661 _ACEOF
9663 GNUTLSINCL="$ac_gnutls_cflags"
9667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9671 CPPFLAGS="$ac_save_CPPFLAGS"
9673 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9674 case "x$with_gnutls" in
9675 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9676 xno) ;;
9677 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9678 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9679 esac
9682 CURSESLIBS=""
9683 if test "$ac_cv_header_ncurses_h" = "yes"
9684 then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9686 $as_echo_n "checking for -lncurses... " >&6; }
9687 if ${ac_cv_lib_soname_ncurses+:} false; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 ac_check_soname_save_LIBS=$LIBS
9691 LIBS="-lncurses $LIBS"
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9695 /* Override any GCC internal prototype to avoid an error.
9696 Use char because int might match the return type of a GCC
9697 builtin and then its argument prototype would still apply. */
9698 #ifdef __cplusplus
9699 extern "C"
9700 #endif
9701 char waddch ();
9703 main ()
9705 return waddch ();
9707 return 0;
9709 _ACEOF
9710 if ac_fn_c_try_link "$LINENO"; then :
9711 case "$LIBEXT" in
9712 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9713 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'` ;;
9714 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9715 esac
9717 rm -f core conftest.err conftest.$ac_objext \
9718 conftest$ac_exeext conftest.$ac_ext
9719 LIBS=$ac_check_soname_save_LIBS
9721 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9723 $as_echo "not found" >&6; }
9725 else
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9727 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9729 cat >>confdefs.h <<_ACEOF
9730 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9731 _ACEOF
9733 CURSESLIBS="-lncurses"
9735 elif test "$ac_cv_header_curses_h" = "yes"
9736 then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9738 $as_echo_n "checking for -lcurses... " >&6; }
9739 if ${ac_cv_lib_soname_curses+:} false; then :
9740 $as_echo_n "(cached) " >&6
9741 else
9742 ac_check_soname_save_LIBS=$LIBS
9743 LIBS="-lcurses $LIBS"
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9747 /* Override any GCC internal prototype to avoid an error.
9748 Use char because int might match the return type of a GCC
9749 builtin and then its argument prototype would still apply. */
9750 #ifdef __cplusplus
9751 extern "C"
9752 #endif
9753 char waddch ();
9755 main ()
9757 return waddch ();
9759 return 0;
9761 _ACEOF
9762 if ac_fn_c_try_link "$LINENO"; then :
9763 case "$LIBEXT" in
9764 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9765 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'` ;;
9766 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9767 esac
9769 rm -f core conftest.err conftest.$ac_objext \
9770 conftest$ac_exeext conftest.$ac_ext
9771 LIBS=$ac_check_soname_save_LIBS
9773 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9775 $as_echo "not found" >&6; }
9777 else
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9779 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9781 cat >>confdefs.h <<_ACEOF
9782 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9783 _ACEOF
9785 CURSESLIBS="-lcurses"
9788 ac_save_LIBS="$LIBS"
9789 LIBS="$LIBS $CURSESLIBS"
9790 for ac_func in mousemask
9791 do :
9792 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9793 if test "x$ac_cv_func_mousemask" = xyes; then :
9794 cat >>confdefs.h <<_ACEOF
9795 #define HAVE_MOUSEMASK 1
9796 _ACEOF
9799 done
9801 LIBS="$ac_save_LIBS"
9802 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9803 case "x$with_curses" in
9804 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9805 xno) ;;
9806 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9807 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9808 esac
9811 if test "x$with_sane" != "xno"
9812 then
9813 ac_save_CPPFLAGS="$CPPFLAGS"
9814 # Extract the first word of "sane-config", so it can be a program name with args.
9815 set dummy sane-config; ac_word=$2
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817 $as_echo_n "checking for $ac_word... " >&6; }
9818 if ${ac_cv_prog_sane_devel+:} false; then :
9819 $as_echo_n "(cached) " >&6
9820 else
9821 if test -n "$sane_devel"; then
9822 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9823 else
9824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 for as_dir in $PATH
9827 IFS=$as_save_IFS
9828 test -z "$as_dir" && as_dir=.
9829 for ac_exec_ext in '' $ac_executable_extensions; do
9830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9831 ac_cv_prog_sane_devel="sane-config"
9832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 break 2
9835 done
9836 done
9837 IFS=$as_save_IFS
9839 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9842 sane_devel=$ac_cv_prog_sane_devel
9843 if test -n "$sane_devel"; then
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9845 $as_echo "$sane_devel" >&6; }
9846 else
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848 $as_echo "no" >&6; }
9852 if test "$sane_devel" != "no"
9853 then
9854 ac_sane_incl="`$sane_devel --cflags`"
9855 ac_sane_libs="`$sane_devel --ldflags`"
9856 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9858 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9859 if test "x$ac_cv_header_sane_sane_h" = xyes; then :
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9861 $as_echo_n "checking for -lsane... " >&6; }
9862 if ${ac_cv_lib_soname_sane+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 ac_check_soname_save_LIBS=$LIBS
9866 LIBS="-lsane $ac_sane_libs $LIBS"
9867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868 /* end confdefs.h. */
9870 /* Override any GCC internal prototype to avoid an error.
9871 Use char because int might match the return type of a GCC
9872 builtin and then its argument prototype would still apply. */
9873 #ifdef __cplusplus
9874 extern "C"
9875 #endif
9876 char sane_init ();
9878 main ()
9880 return sane_init ();
9882 return 0;
9884 _ACEOF
9885 if ac_fn_c_try_link "$LINENO"; then :
9886 case "$LIBEXT" in
9887 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9888 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'` ;;
9889 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9890 esac
9892 rm -f core conftest.err conftest.$ac_objext \
9893 conftest$ac_exeext conftest.$ac_ext
9894 LIBS=$ac_check_soname_save_LIBS
9896 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9898 $as_echo "not found" >&6; }
9900 else
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9902 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9904 cat >>confdefs.h <<_ACEOF
9905 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9906 _ACEOF
9908 SANEINCL="$ac_sane_incl"
9914 CPPFLAGS="$ac_save_CPPFLAGS"
9916 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9917 case "x$with_sane" in
9918 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9919 xno) ;;
9920 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
9921 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9922 esac
9925 if test "x$with_v4l" != "xno"
9926 then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9928 $as_echo_n "checking for -lv4l1... " >&6; }
9929 if ${ac_cv_lib_soname_v4l1+:} false; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 ac_check_soname_save_LIBS=$LIBS
9933 LIBS="-lv4l1 $LIBS"
9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9937 /* Override any GCC internal prototype to avoid an error.
9938 Use char because int might match the return type of a GCC
9939 builtin and then its argument prototype would still apply. */
9940 #ifdef __cplusplus
9941 extern "C"
9942 #endif
9943 char v4l1_open ();
9945 main ()
9947 return v4l1_open ();
9949 return 0;
9951 _ACEOF
9952 if ac_fn_c_try_link "$LINENO"; then :
9953 case "$LIBEXT" in
9954 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9955 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'` ;;
9956 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9957 esac
9959 rm -f core conftest.err conftest.$ac_objext \
9960 conftest$ac_exeext conftest.$ac_ext
9961 LIBS=$ac_check_soname_save_LIBS
9963 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9965 $as_echo "not found" >&6; }
9967 else
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9969 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9971 cat >>confdefs.h <<_ACEOF
9972 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9973 _ACEOF
9978 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9979 case "x$with_v4l" in
9980 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
9981 xno) ;;
9982 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
9983 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9984 esac
9987 if test "x$with_gphoto" != "xno"
9988 then
9989 ac_save_CPPFLAGS="$CPPFLAGS"
9990 # Extract the first word of "gphoto2-config", so it can be a program name with args.
9991 set dummy gphoto2-config; ac_word=$2
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9993 $as_echo_n "checking for $ac_word... " >&6; }
9994 if ${ac_cv_prog_gphoto2_devel+:} false; then :
9995 $as_echo_n "(cached) " >&6
9996 else
9997 if test -n "$gphoto2_devel"; then
9998 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9999 else
10000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001 for as_dir in $PATH
10003 IFS=$as_save_IFS
10004 test -z "$as_dir" && as_dir=.
10005 for ac_exec_ext in '' $ac_executable_extensions; do
10006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10007 ac_cv_prog_gphoto2_devel="gphoto2-config"
10008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10009 break 2
10011 done
10012 done
10013 IFS=$as_save_IFS
10015 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10018 gphoto2_devel=$ac_cv_prog_gphoto2_devel
10019 if test -n "$gphoto2_devel"; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
10021 $as_echo "$gphoto2_devel" >&6; }
10022 else
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024 $as_echo "no" >&6; }
10028 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
10029 set dummy gphoto2-port-config; ac_word=$2
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031 $as_echo_n "checking for $ac_word... " >&6; }
10032 if ${ac_cv_prog_gphoto2port_devel+:} false; then :
10033 $as_echo_n "(cached) " >&6
10034 else
10035 if test -n "$gphoto2port_devel"; then
10036 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10037 else
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039 for as_dir in $PATH
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10045 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 break 2
10049 done
10050 done
10051 IFS=$as_save_IFS
10053 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10056 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10057 if test -n "$gphoto2port_devel"; then
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
10059 $as_echo "$gphoto2port_devel" >&6; }
10060 else
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10062 $as_echo "no" >&6; }
10066 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10067 then
10068 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10069 ac_gphoto2_libs=""
10070 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10072 case "$i" in
10073 -L/usr/lib|-L/usr/lib64) ;;
10074 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10075 esac
10076 done
10077 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10079 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
10080 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10081 if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
10083 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
10084 if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
10085 $as_echo_n "(cached) " >&6
10086 else
10087 ac_check_lib_save_LIBS=$LIBS
10088 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10092 /* Override any GCC internal prototype to avoid an error.
10093 Use char because int might match the return type of a GCC
10094 builtin and then its argument prototype would still apply. */
10095 #ifdef __cplusplus
10096 extern "C"
10097 #endif
10098 char gp_camera_new ();
10100 main ()
10102 return gp_camera_new ();
10104 return 0;
10106 _ACEOF
10107 if ac_fn_c_try_link "$LINENO"; then :
10108 ac_cv_lib_gphoto2_gp_camera_new=yes
10109 else
10110 ac_cv_lib_gphoto2_gp_camera_new=no
10112 rm -f core conftest.err conftest.$ac_objext \
10113 conftest$ac_exeext conftest.$ac_ext
10114 LIBS=$ac_check_lib_save_LIBS
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
10117 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
10118 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
10120 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
10122 GPHOTO2LIBS="$ac_gphoto2_libs"
10124 GPHOTO2INCL="$ac_gphoto2_incl"
10131 CPPFLAGS="$ac_save_CPPFLAGS"
10133 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
10134 case "x$with_gphoto" in
10135 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
10136 xno) ;;
10137 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10138 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
10139 esac
10143 if test "$ac_cv_header_resolv_h" = "yes"
10144 then
10145 ac_save_LIBS="$LIBS"
10146 for lib in '' -lresolv
10148 LIBS="$lib $ac_save_LIBS"
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10151 #ifdef HAVE_NETINET_IN_H
10152 #include <netinet/in.h>
10153 #endif
10154 #include <resolv.h>
10156 main ()
10158 res_query("foo",ns_c_in,0,0,0);
10160 return 0;
10162 _ACEOF
10163 if ac_fn_c_try_link "$LINENO"; then :
10165 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
10167 RESOLVLIBS="$lib"
10170 rm -f core conftest.err conftest.$ac_objext \
10171 conftest$ac_exeext conftest.$ac_ext
10172 if test "${RESOLVLIBS+set}" = set; then
10173 break
10175 done
10176 LIBS="$ac_save_LIBS"
10179 LCMSLIBS=""
10181 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10182 then
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
10184 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
10185 if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10188 ac_check_lib_save_LIBS=$LIBS
10189 LIBS="-llcms $LIBS"
10190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10193 /* Override any GCC internal prototype to avoid an error.
10194 Use char because int might match the return type of a GCC
10195 builtin and then its argument prototype would still apply. */
10196 #ifdef __cplusplus
10197 extern "C"
10198 #endif
10199 char cmsOpenProfileFromFile ();
10201 main ()
10203 return cmsOpenProfileFromFile ();
10205 return 0;
10207 _ACEOF
10208 if ac_fn_c_try_link "$LINENO"; then :
10209 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10210 else
10211 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
10213 rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215 LIBS=$ac_check_lib_save_LIBS
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
10218 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
10219 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
10221 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
10223 LCMSLIBS="-llcms"
10227 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
10228 case "x$with_cms" in
10229 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
10230 xno) ;;
10231 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10232 This is an error since --with-cms was requested." "$LINENO" 5 ;;
10233 esac
10236 if test "x$with_freetype" != "xno"
10237 then
10238 for ac_prog in freetype-config freetype2-config
10240 # Extract the first word of "$ac_prog", so it can be a program name with args.
10241 set dummy $ac_prog; ac_word=$2
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243 $as_echo_n "checking for $ac_word... " >&6; }
10244 if ${ac_cv_prog_ft_devel+:} false; then :
10245 $as_echo_n "(cached) " >&6
10246 else
10247 if test -n "$ft_devel"; then
10248 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10249 else
10250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251 for as_dir in $PATH
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
10255 for ac_exec_ext in '' $ac_executable_extensions; do
10256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10257 ac_cv_prog_ft_devel="$ac_prog"
10258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10259 break 2
10261 done
10262 done
10263 IFS=$as_save_IFS
10267 ft_devel=$ac_cv_prog_ft_devel
10268 if test -n "$ft_devel"; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
10270 $as_echo "$ft_devel" >&6; }
10271 else
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273 $as_echo "no" >&6; }
10277 test -n "$ft_devel" && break
10278 done
10279 test -n "$ft_devel" || ft_devel="no"
10281 if test "$ft_devel" != "no"
10282 then
10283 ac_freetype_incl=`$ft_devel --cflags`
10284 ac_freetype_libs=`$ft_devel --libs`
10286 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10288 $as_echo_n "checking for -lfreetype... " >&6; }
10289 if ${ac_cv_lib_soname_freetype+:} false; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 ac_check_soname_save_LIBS=$LIBS
10293 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10300 #ifdef __cplusplus
10301 extern "C"
10302 #endif
10303 char FT_Init_FreeType ();
10305 main ()
10307 return FT_Init_FreeType ();
10309 return 0;
10311 _ACEOF
10312 if ac_fn_c_try_link "$LINENO"; then :
10313 case "$LIBEXT" in
10314 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10315 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'` ;;
10316 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10317 esac
10319 rm -f core conftest.err conftest.$ac_objext \
10320 conftest$ac_exeext conftest.$ac_ext
10321 LIBS=$ac_check_soname_save_LIBS
10323 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10325 $as_echo "not found" >&6; }
10326 ft_lib=no
10327 else
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10329 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10331 cat >>confdefs.h <<_ACEOF
10332 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10333 _ACEOF
10335 ft_lib=yes
10337 if test "$ft_lib" = "yes"
10338 then
10339 ac_save_CPPFLAGS="$CPPFLAGS"
10340 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10341 for ac_header in ft2build.h \
10342 freetype/freetype.h \
10343 freetype/ftglyph.h \
10344 freetype/fttypes.h \
10345 freetype/tttables.h \
10346 freetype/ftsnames.h \
10347 freetype/ttnameid.h \
10348 freetype/ftoutln.h \
10349 freetype/ftwinfnt.h \
10350 freetype/ftmodapi.h \
10351 freetype/ftlcdfil.h
10352 do :
10353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10355 # include <ft2build.h>
10356 #endif
10358 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10359 cat >>confdefs.h <<_ACEOF
10360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10361 _ACEOF
10365 done
10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368 /* end confdefs.h. */
10369 #include <ft2build.h>
10370 #include <freetype/fttrigon.h>
10371 _ACEOF
10372 if ac_fn_c_try_cpp "$LINENO"; then :
10374 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10376 wine_cv_fttrigon=yes
10377 else
10378 wine_cv_fttrigon=no
10380 rm -f conftest.err conftest.i conftest.$ac_ext
10381 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10383 if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
10385 cat >>confdefs.h <<_ACEOF
10386 #define HAVE_FT_TRUETYPEENGINETYPE 1
10387 _ACEOF
10392 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10393 then
10395 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10397 FREETYPELIBS="$ac_freetype_libs"
10399 FREETYPEINCL="$ac_freetype_incl"
10404 if test "x$FREETYPELIBS" = "x"; then :
10405 case "x$with_freetype" in
10406 xno) ;;
10407 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10408 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10409 esac
10411 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10414 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10415 if ${ac_cv_c_ppdev+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h. */
10420 #ifdef HAVE_SYS_IOCTL_H
10421 # include <sys/ioctl.h>
10422 #endif
10423 #include <linux/ppdev.h>
10425 main ()
10427 ioctl (1,PPCLAIM,0)
10429 return 0;
10431 _ACEOF
10432 if ac_fn_c_try_compile "$LINENO"; then :
10433 ac_cv_c_ppdev="yes"
10434 else
10435 ac_cv_c_ppdev="no"
10437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10440 $as_echo "$ac_cv_c_ppdev" >&6; }
10441 if test "$ac_cv_c_ppdev" = "yes"
10442 then
10444 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10448 ac_wine_check_funcs_save_LIBS="$LIBS"
10449 LIBS="$LIBS $LIBPTHREAD"
10450 for ac_func in \
10451 pthread_attr_get_np \
10452 pthread_getattr_np \
10453 pthread_get_stackaddr_np \
10454 pthread_get_stacksize_np
10455 do :
10456 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10457 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10458 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10459 cat >>confdefs.h <<_ACEOF
10460 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10461 _ACEOF
10464 done
10466 LIBS="$ac_wine_check_funcs_save_LIBS"
10468 if test "$ac_cv_header_zlib_h" = "yes"
10469 then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10471 $as_echo_n "checking for inflate in -lz... " >&6; }
10472 if ${ac_cv_lib_z_inflate+:} false; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 ac_check_lib_save_LIBS=$LIBS
10476 LIBS="-lz $LIBS"
10477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478 /* end confdefs.h. */
10480 /* Override any GCC internal prototype to avoid an error.
10481 Use char because int might match the return type of a GCC
10482 builtin and then its argument prototype would still apply. */
10483 #ifdef __cplusplus
10484 extern "C"
10485 #endif
10486 char inflate ();
10488 main ()
10490 return inflate ();
10492 return 0;
10494 _ACEOF
10495 if ac_fn_c_try_link "$LINENO"; then :
10496 ac_cv_lib_z_inflate=yes
10497 else
10498 ac_cv_lib_z_inflate=no
10500 rm -f core conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
10502 LIBS=$ac_check_lib_save_LIBS
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10505 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10506 if test "x$ac_cv_lib_z_inflate" = xyes; then :
10508 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10510 ZLIB="-lz"
10515 if test "x$ZLIB" = "x"; then :
10516 case "x$with_zlib" in
10517 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10518 xno) ;;
10519 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10520 This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10521 esac
10524 if test "x$enable_tools" != xno
10525 then
10526 if test "$ac_cv_header_gettext_po_h" = "yes"
10527 then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10529 $as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10530 if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
10531 $as_echo_n "(cached) " >&6
10532 else
10533 ac_check_lib_save_LIBS=$LIBS
10534 LIBS="-lgettextpo $LIBS"
10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10538 /* Override any GCC internal prototype to avoid an error.
10539 Use char because int might match the return type of a GCC
10540 builtin and then its argument prototype would still apply. */
10541 #ifdef __cplusplus
10542 extern "C"
10543 #endif
10544 char po_message_msgctxt ();
10546 main ()
10548 return po_message_msgctxt ();
10550 return 0;
10552 _ACEOF
10553 if ac_fn_c_try_link "$LINENO"; then :
10554 ac_cv_lib_gettextpo_po_message_msgctxt=yes
10555 else
10556 ac_cv_lib_gettextpo_po_message_msgctxt=no
10558 rm -f core conftest.err conftest.$ac_objext \
10559 conftest$ac_exeext conftest.$ac_ext
10560 LIBS=$ac_check_lib_save_LIBS
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10563 $as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10564 if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
10566 $as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10568 LIBGETTEXTPO="-lgettextpo"
10573 test "x$with_gettextpo" != xyes || if test "x$LIBGETTEXTPO" = "x"; then :
10574 case "x$with_gettextpo" in
10575 x) as_fn_append wine_notices "|GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt." ;;
10576 xno) ;;
10577 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old), po files can't be rebuilt.
10578 This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10579 esac
10583 if test "x$with_gstreamer" != "xno"
10584 then
10585 ac_save_CPPFLAGS="$CPPFLAGS"
10586 if test "$PKG_CONFIG" != "false"; then
10587 ac_gst_incl=""
10588 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10590 case "$i" in
10591 -I*) ac_gst_incl="$ac_gst_incl $i";;
10592 esac
10593 done
10594 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10595 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
10596 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10597 if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
10598 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
10599 if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10601 $as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10604 #include <gst/app/gstappsink.h>
10606 main ()
10608 static int a[sizeof(gint64) > 4 ? 1 : -1]; if (a[0]) return 0;
10610 return 0;
10612 _ACEOF
10613 if ac_fn_c_try_compile "$LINENO"; then :
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10615 $as_echo "yes" >&6; }
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10617 $as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10618 if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
10619 $as_echo_n "(cached) " >&6
10620 else
10621 ac_check_lib_save_LIBS=$LIBS
10622 LIBS="-lgstreamer-0.10 $LIBS"
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10626 /* Override any GCC internal prototype to avoid an error.
10627 Use char because int might match the return type of a GCC
10628 builtin and then its argument prototype would still apply. */
10629 #ifdef __cplusplus
10630 extern "C"
10631 #endif
10632 char gst_pad_get_caps_reffed ();
10634 main ()
10636 return gst_pad_get_caps_reffed ();
10638 return 0;
10640 _ACEOF
10641 if ac_fn_c_try_link "$LINENO"; then :
10642 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10643 else
10644 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10646 rm -f core conftest.err conftest.$ac_objext \
10647 conftest$ac_exeext conftest.$ac_ext
10648 LIBS=$ac_check_lib_save_LIBS
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10651 $as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10652 if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10654 $as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10655 if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
10656 $as_echo_n "(cached) " >&6
10657 else
10658 ac_check_lib_save_LIBS=$LIBS
10659 LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10663 /* Override any GCC internal prototype to avoid an error.
10664 Use char because int might match the return type of a GCC
10665 builtin and then its argument prototype would still apply. */
10666 #ifdef __cplusplus
10667 extern "C"
10668 #endif
10669 char gst_app_buffer_new ();
10671 main ()
10673 return gst_app_buffer_new ();
10675 return 0;
10677 _ACEOF
10678 if ac_fn_c_try_link "$LINENO"; then :
10679 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10680 else
10681 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 LIBS=$ac_check_lib_save_LIBS
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10688 $as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10689 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
10690 GSTREAMER_LIBS="$ac_gst_libs"
10692 GSTREAMER_INCL="$ac_gst_incl"
10698 else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10710 CPPFLAGS="$ac_save_CPPFLAGS"
10712 if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
10713 case "x$with_gstreamer" in
10714 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
10715 xno) ;;
10716 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
10717 This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10718 esac
10720 test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10722 ALSALIBS=""
10724 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10725 then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10727 $as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10728 if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-lasound $LIBS"
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 char snd_pcm_hw_params_get_access_mask ();
10744 main ()
10746 return snd_pcm_hw_params_get_access_mask ();
10748 return 0;
10750 _ACEOF
10751 if ac_fn_c_try_link "$LINENO"; then :
10752 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
10753 else
10754 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 LIBS=$ac_check_lib_save_LIBS
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10761 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10762 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10765 #ifdef HAVE_ALSA_ASOUNDLIB_H
10766 #include <alsa/asoundlib.h>
10767 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10768 #include <sys/asoundlib.h>
10769 #endif
10771 main ()
10773 snd_pcm_hw_params_get_access_mask(NULL, NULL)
10775 return 0;
10777 _ACEOF
10778 if ac_fn_c_try_compile "$LINENO"; then :
10779 ALSALIBS="-lasound"
10781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10786 if test "x$with_oss" != xno
10787 then
10788 ac_save_CPPFLAGS="$CPPFLAGS"
10789 if test -f /etc/oss.conf
10790 then
10791 . /etc/oss.conf
10793 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10794 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10795 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10796 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10797 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
10799 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
10801 cat >>confdefs.h <<_ACEOF
10802 #define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
10803 _ACEOF
10805 OSS4INCL="$ac_oss_incl"
10812 CPPFLAGS="$ac_save_CPPFLAGS"
10813 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
10814 then
10815 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10820 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10821 then
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10823 $as_echo_n "checking for -lcapi20... " >&6; }
10824 if ${ac_cv_lib_soname_capi20+:} false; then :
10825 $as_echo_n "(cached) " >&6
10826 else
10827 ac_check_soname_save_LIBS=$LIBS
10828 LIBS="-lcapi20 $LIBS"
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10832 /* Override any GCC internal prototype to avoid an error.
10833 Use char because int might match the return type of a GCC
10834 builtin and then its argument prototype would still apply. */
10835 #ifdef __cplusplus
10836 extern "C"
10837 #endif
10838 char capi20_register ();
10840 main ()
10842 return capi20_register ();
10844 return 0;
10846 _ACEOF
10847 if ac_fn_c_try_link "$LINENO"; then :
10848 case "$LIBEXT" in
10849 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10850 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'` ;;
10851 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10852 esac
10854 rm -f core conftest.err conftest.$ac_objext \
10855 conftest$ac_exeext conftest.$ac_ext
10856 LIBS=$ac_check_soname_save_LIBS
10858 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10860 $as_echo "not found" >&6; }
10862 else
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10864 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10866 cat >>confdefs.h <<_ACEOF
10867 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10868 _ACEOF
10873 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10874 case "x$with_capi" in
10875 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10876 xno) ;;
10877 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10878 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10879 esac
10882 CUPSINCL=""
10884 if test "x$with_cups" != "xno"
10885 then
10886 ac_save_CPPFLAGS="$CPPFLAGS"
10887 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10888 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10889 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10890 for ac_header in cups/cups.h
10891 do :
10892 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10893 if test "x$ac_cv_header_cups_cups_h" = xyes; then :
10894 cat >>confdefs.h <<_ACEOF
10895 #define HAVE_CUPS_CUPS_H 1
10896 _ACEOF
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10898 $as_echo_n "checking for -lcups... " >&6; }
10899 if ${ac_cv_lib_soname_cups+:} false; then :
10900 $as_echo_n "(cached) " >&6
10901 else
10902 ac_check_soname_save_LIBS=$LIBS
10903 LIBS="-lcups $ac_cups_libs $LIBS"
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10907 /* Override any GCC internal prototype to avoid an error.
10908 Use char because int might match the return type of a GCC
10909 builtin and then its argument prototype would still apply. */
10910 #ifdef __cplusplus
10911 extern "C"
10912 #endif
10913 char cupsGetDefault ();
10915 main ()
10917 return cupsGetDefault ();
10919 return 0;
10921 _ACEOF
10922 if ac_fn_c_try_link "$LINENO"; then :
10923 case "$LIBEXT" in
10924 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10925 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'` ;;
10926 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10927 esac
10929 rm -f core conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
10931 LIBS=$ac_check_soname_save_LIBS
10933 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10935 $as_echo "not found" >&6; }
10937 else
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10939 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10941 cat >>confdefs.h <<_ACEOF
10942 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10943 _ACEOF
10945 CUPSINCL="$ac_cups_cflags"
10949 done
10951 CPPFLAGS="$ac_save_CPPFLAGS"
10953 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10954 case "x$with_cups" in
10955 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10956 xno) ;;
10957 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
10958 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10959 esac
10962 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10963 then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10965 $as_echo_n "checking for -lfontconfig... " >&6; }
10966 if ${ac_cv_lib_soname_fontconfig+:} false; then :
10967 $as_echo_n "(cached) " >&6
10968 else
10969 ac_check_soname_save_LIBS=$LIBS
10970 LIBS="-lfontconfig $LIBS"
10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10974 /* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10977 #ifdef __cplusplus
10978 extern "C"
10979 #endif
10980 char FcInit ();
10982 main ()
10984 return FcInit ();
10986 return 0;
10988 _ACEOF
10989 if ac_fn_c_try_link "$LINENO"; then :
10990 case "$LIBEXT" in
10991 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10992 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'` ;;
10993 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10994 esac
10996 rm -f core conftest.err conftest.$ac_objext \
10997 conftest$ac_exeext conftest.$ac_ext
10998 LIBS=$ac_check_soname_save_LIBS
11000 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11002 $as_echo "not found" >&6; }
11004 else
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11006 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11008 cat >>confdefs.h <<_ACEOF
11009 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11010 _ACEOF
11014 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
11015 then
11016 ac_save_CPPFLAGS="$CPPFLAGS"
11017 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11018 $as_unset ac_cv_header_fontconfig_fontconfig_h
11019 for ac_header in fontconfig/fontconfig.h
11020 do :
11021 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11022 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
11023 cat >>confdefs.h <<_ACEOF
11024 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
11025 _ACEOF
11029 done
11031 CPPFLAGS="$ac_save_CPPFLAGS"
11032 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11033 then
11034 FONTCONFIGINCL="$X_CFLAGS"
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
11037 $as_echo_n "checking for -lfontconfig... " >&6; }
11038 if ${ac_cv_lib_soname_fontconfig+:} false; then :
11039 $as_echo_n "(cached) " >&6
11040 else
11041 ac_check_soname_save_LIBS=$LIBS
11042 LIBS="-lfontconfig $X_LIBS $LIBS"
11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11044 /* end confdefs.h. */
11046 /* Override any GCC internal prototype to avoid an error.
11047 Use char because int might match the return type of a GCC
11048 builtin and then its argument prototype would still apply. */
11049 #ifdef __cplusplus
11050 extern "C"
11051 #endif
11052 char FcInit ();
11054 main ()
11056 return FcInit ();
11058 return 0;
11060 _ACEOF
11061 if ac_fn_c_try_link "$LINENO"; then :
11062 case "$LIBEXT" in
11063 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11064 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'` ;;
11065 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11066 esac
11068 rm -f core conftest.err conftest.$ac_objext \
11069 conftest$ac_exeext conftest.$ac_ext
11070 LIBS=$ac_check_soname_save_LIBS
11072 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11074 $as_echo "not found" >&6; }
11076 else
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
11078 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
11080 cat >>confdefs.h <<_ACEOF
11081 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11082 _ACEOF
11088 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11089 case "x$with_fontconfig" in
11090 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
11091 xno) ;;
11092 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11093 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
11094 esac
11097 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11098 then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
11100 $as_echo_n "checking for -lssl... " >&6; }
11101 if ${ac_cv_lib_soname_ssl+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 ac_check_soname_save_LIBS=$LIBS
11105 LIBS="-lssl $LIBS"
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11109 /* Override any GCC internal prototype to avoid an error.
11110 Use char because int might match the return type of a GCC
11111 builtin and then its argument prototype would still apply. */
11112 #ifdef __cplusplus
11113 extern "C"
11114 #endif
11115 char SSL_library_init ();
11117 main ()
11119 return SSL_library_init ();
11121 return 0;
11123 _ACEOF
11124 if ac_fn_c_try_link "$LINENO"; then :
11125 case "$LIBEXT" in
11126 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11127 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'` ;;
11128 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11129 esac
11131 rm -f core conftest.err conftest.$ac_objext \
11132 conftest$ac_exeext conftest.$ac_ext
11133 LIBS=$ac_check_soname_save_LIBS
11135 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11137 $as_echo "not found" >&6; }
11139 else
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
11141 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
11143 cat >>confdefs.h <<_ACEOF
11144 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11145 _ACEOF
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
11150 $as_echo_n "checking for -lcrypto... " >&6; }
11151 if ${ac_cv_lib_soname_crypto+:} false; then :
11152 $as_echo_n "(cached) " >&6
11153 else
11154 ac_check_soname_save_LIBS=$LIBS
11155 LIBS="-lcrypto $LIBS"
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11159 /* Override any GCC internal prototype to avoid an error.
11160 Use char because int might match the return type of a GCC
11161 builtin and then its argument prototype would still apply. */
11162 #ifdef __cplusplus
11163 extern "C"
11164 #endif
11165 char BIO_new_socket ();
11167 main ()
11169 return BIO_new_socket ();
11171 return 0;
11173 _ACEOF
11174 if ac_fn_c_try_link "$LINENO"; then :
11175 case "$LIBEXT" in
11176 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11177 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'` ;;
11178 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11179 esac
11181 rm -f core conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
11183 LIBS=$ac_check_soname_save_LIBS
11185 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11187 $as_echo "not found" >&6; }
11189 else
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
11191 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
11193 cat >>confdefs.h <<_ACEOF
11194 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11195 _ACEOF
11200 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
11201 case "x$with_openssl" in
11202 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
11203 xno) ;;
11204 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11205 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
11206 esac
11209 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
11210 then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
11212 $as_echo_n "checking for -lgsm... " >&6; }
11213 if ${ac_cv_lib_soname_gsm+:} false; then :
11214 $as_echo_n "(cached) " >&6
11215 else
11216 ac_check_soname_save_LIBS=$LIBS
11217 LIBS="-lgsm $LIBS"
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11221 /* Override any GCC internal prototype to avoid an error.
11222 Use char because int might match the return type of a GCC
11223 builtin and then its argument prototype would still apply. */
11224 #ifdef __cplusplus
11225 extern "C"
11226 #endif
11227 char gsm_create ();
11229 main ()
11231 return gsm_create ();
11233 return 0;
11235 _ACEOF
11236 if ac_fn_c_try_link "$LINENO"; then :
11237 case "$LIBEXT" in
11238 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11239 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'` ;;
11240 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11241 esac
11243 rm -f core conftest.err conftest.$ac_objext \
11244 conftest$ac_exeext conftest.$ac_ext
11245 LIBS=$ac_check_soname_save_LIBS
11247 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11249 $as_echo "not found" >&6; }
11251 else
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
11253 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
11255 cat >>confdefs.h <<_ACEOF
11256 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11257 _ACEOF
11262 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11263 case "x$with_gsm" in
11264 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
11265 xno) ;;
11266 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11267 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
11268 esac
11271 if test "$ac_cv_header_jpeglib_h" = "yes"
11272 then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
11274 $as_echo_n "checking for -ljpeg... " >&6; }
11275 if ${ac_cv_lib_soname_jpeg+:} false; then :
11276 $as_echo_n "(cached) " >&6
11277 else
11278 ac_check_soname_save_LIBS=$LIBS
11279 LIBS="-ljpeg $LIBS"
11280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11281 /* end confdefs.h. */
11283 /* Override any GCC internal prototype to avoid an error.
11284 Use char because int might match the return type of a GCC
11285 builtin and then its argument prototype would still apply. */
11286 #ifdef __cplusplus
11287 extern "C"
11288 #endif
11289 char jpeg_start_decompress ();
11291 main ()
11293 return jpeg_start_decompress ();
11295 return 0;
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 case "$LIBEXT" in
11300 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11301 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'` ;;
11302 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11303 esac
11305 rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
11307 LIBS=$ac_check_soname_save_LIBS
11309 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11311 $as_echo "not found" >&6; }
11313 else
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11315 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11317 cat >>confdefs.h <<_ACEOF
11318 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11319 _ACEOF
11324 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11325 case "x$with_jpeg" in
11326 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11327 xno) ;;
11328 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11329 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11330 esac
11333 if test "$ac_cv_header_png_h" = "yes"
11334 then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11336 $as_echo_n "checking for -lpng... " >&6; }
11337 if ${ac_cv_lib_soname_png+:} false; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 ac_check_soname_save_LIBS=$LIBS
11341 LIBS="-lpng -lm -lz $LIBS"
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11345 /* Override any GCC internal prototype to avoid an error.
11346 Use char because int might match the return type of a GCC
11347 builtin and then its argument prototype would still apply. */
11348 #ifdef __cplusplus
11349 extern "C"
11350 #endif
11351 char png_create_read_struct ();
11353 main ()
11355 return png_create_read_struct ();
11357 return 0;
11359 _ACEOF
11360 if ac_fn_c_try_link "$LINENO"; then :
11361 case "$LIBEXT" in
11362 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11363 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'` ;;
11364 *) 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'` ;;
11365 esac
11367 rm -f core conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11369 LIBS=$ac_check_soname_save_LIBS
11371 if test "x$ac_cv_lib_soname_png" = "x"; then :
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11373 $as_echo "not found" >&6; }
11375 else
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11377 $as_echo "$ac_cv_lib_soname_png" >&6; }
11379 cat >>confdefs.h <<_ACEOF
11380 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11381 _ACEOF
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11386 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11387 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 ac_check_lib_save_LIBS=$LIBS
11391 LIBS="-lpng -lm -lz $LIBS"
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11395 /* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11398 #ifdef __cplusplus
11399 extern "C"
11400 #endif
11401 char png_set_expand_gray_1_2_4_to_8 ();
11403 main ()
11405 return png_set_expand_gray_1_2_4_to_8 ();
11407 return 0;
11409 _ACEOF
11410 if ac_fn_c_try_link "$LINENO"; then :
11411 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11412 else
11413 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11415 rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
11417 LIBS=$ac_check_lib_save_LIBS
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11420 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11421 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11423 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11428 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11429 then
11430 ac_save_CPPFLAGS="$CPPFLAGS"
11431 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11432 $as_unset ac_cv_header_png_h
11433 for ac_header in png.h
11434 do :
11435 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11436 if test "x$ac_cv_header_png_h" = xyes; then :
11437 cat >>confdefs.h <<_ACEOF
11438 #define HAVE_PNG_H 1
11439 _ACEOF
11443 done
11445 CPPFLAGS="$ac_save_CPPFLAGS"
11446 if test "$ac_cv_header_png_h" = "yes"
11447 then
11448 PNGINCL="$X_CFLAGS"
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11451 $as_echo_n "checking for -lpng... " >&6; }
11452 if ${ac_cv_lib_soname_png+:} false; then :
11453 $as_echo_n "(cached) " >&6
11454 else
11455 ac_check_soname_save_LIBS=$LIBS
11456 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11460 /* Override any GCC internal prototype to avoid an error.
11461 Use char because int might match the return type of a GCC
11462 builtin and then its argument prototype would still apply. */
11463 #ifdef __cplusplus
11464 extern "C"
11465 #endif
11466 char png_create_read_struct ();
11468 main ()
11470 return png_create_read_struct ();
11472 return 0;
11474 _ACEOF
11475 if ac_fn_c_try_link "$LINENO"; then :
11476 case "$LIBEXT" in
11477 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11478 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'` ;;
11479 *) 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'` ;;
11480 esac
11482 rm -f core conftest.err conftest.$ac_objext \
11483 conftest$ac_exeext conftest.$ac_ext
11484 LIBS=$ac_check_soname_save_LIBS
11486 if test "x$ac_cv_lib_soname_png" = "x"; then :
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11488 $as_echo "not found" >&6; }
11490 else
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11492 $as_echo "$ac_cv_lib_soname_png" >&6; }
11494 cat >>confdefs.h <<_ACEOF
11495 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11496 _ACEOF
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11501 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11502 if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 ac_check_lib_save_LIBS=$LIBS
11506 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11510 /* Override any GCC internal prototype to avoid an error.
11511 Use char because int might match the return type of a GCC
11512 builtin and then its argument prototype would still apply. */
11513 #ifdef __cplusplus
11514 extern "C"
11515 #endif
11516 char png_set_expand_gray_1_2_4_to_8 ();
11518 main ()
11520 return png_set_expand_gray_1_2_4_to_8 ();
11522 return 0;
11524 _ACEOF
11525 if ac_fn_c_try_link "$LINENO"; then :
11526 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11527 else
11528 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11530 rm -f core conftest.err conftest.$ac_objext \
11531 conftest$ac_exeext conftest.$ac_ext
11532 LIBS=$ac_check_lib_save_LIBS
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11535 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11536 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
11537 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11543 if test "x$ac_cv_lib_soname_png" = "x"; then :
11544 case "x$with_png" in
11545 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11546 xno) ;;
11547 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11548 This is an error since --with-png was requested." "$LINENO" 5 ;;
11549 esac
11552 if test "$ac_cv_header_tiffio_h" = "yes"
11553 then
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11555 $as_echo_n "checking for -ltiff... " >&6; }
11556 if ${ac_cv_lib_soname_tiff+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 ac_check_soname_save_LIBS=$LIBS
11560 LIBS="-ltiff $LIBS"
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11564 /* Override any GCC internal prototype to avoid an error.
11565 Use char because int might match the return type of a GCC
11566 builtin and then its argument prototype would still apply. */
11567 #ifdef __cplusplus
11568 extern "C"
11569 #endif
11570 char TIFFClientOpen ();
11572 main ()
11574 return TIFFClientOpen ();
11576 return 0;
11578 _ACEOF
11579 if ac_fn_c_try_link "$LINENO"; then :
11580 case "$LIBEXT" in
11581 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11582 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'` ;;
11583 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11584 esac
11586 rm -f core conftest.err conftest.$ac_objext \
11587 conftest$ac_exeext conftest.$ac_ext
11588 LIBS=$ac_check_soname_save_LIBS
11590 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11592 $as_echo "not found" >&6; }
11594 else
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11596 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11598 cat >>confdefs.h <<_ACEOF
11599 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11600 _ACEOF
11605 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11606 case "x$with_tiff" in
11607 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11608 xno) ;;
11609 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11610 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11611 esac
11614 if test "$ac_cv_header_mpg123_h" = "yes"
11615 then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11617 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11618 if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
11619 $as_echo_n "(cached) " >&6
11620 else
11621 ac_check_lib_save_LIBS=$LIBS
11622 LIBS="-lmpg123 $LIBS"
11623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h. */
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11629 #ifdef __cplusplus
11630 extern "C"
11631 #endif
11632 char mpg123_feed ();
11634 main ()
11636 return mpg123_feed ();
11638 return 0;
11640 _ACEOF
11641 if ac_fn_c_try_link "$LINENO"; then :
11642 ac_cv_lib_mpg123_mpg123_feed=yes
11643 else
11644 ac_cv_lib_mpg123_mpg123_feed=no
11646 rm -f core conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11648 LIBS=$ac_check_lib_save_LIBS
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11651 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11652 if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
11653 LIBMPG123="-lmpg123"
11658 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11659 case "x$with_mpg123" in
11660 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11661 xno) ;;
11662 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11663 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11664 esac
11666 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}
11668 if test "$ac_cv_header_AL_al_h" = "yes"
11669 then
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11671 $as_echo_n "checking for -lopenal... " >&6; }
11672 if ${ac_cv_lib_soname_openal+:} false; then :
11673 $as_echo_n "(cached) " >&6
11674 else
11675 ac_check_soname_save_LIBS=$LIBS
11676 LIBS="-lopenal $LIBS"
11677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11680 /* Override any GCC internal prototype to avoid an error.
11681 Use char because int might match the return type of a GCC
11682 builtin and then its argument prototype would still apply. */
11683 #ifdef __cplusplus
11684 extern "C"
11685 #endif
11686 char alGetSource3i ();
11688 main ()
11690 return alGetSource3i ();
11692 return 0;
11694 _ACEOF
11695 if ac_fn_c_try_link "$LINENO"; then :
11696 case "$LIBEXT" in
11697 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11698 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'` ;;
11699 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11700 esac
11702 rm -f core conftest.err conftest.$ac_objext \
11703 conftest$ac_exeext conftest.$ac_ext
11704 LIBS=$ac_check_soname_save_LIBS
11706 if test "x$ac_cv_lib_soname_openal" = "x"; then :
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11708 $as_echo "not found" >&6; }
11710 else
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11712 $as_echo "$ac_cv_lib_soname_openal" >&6; }
11714 cat >>confdefs.h <<_ACEOF
11715 #define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11716 _ACEOF
11718 LIBOPENAL="-lopenal"
11720 ac_cv_lib_openal=yes
11722 cat >>confdefs.h <<_ACEOF
11723 #define HAVE_OPENAL 1
11724 _ACEOF
11728 if test "x$ac_cv_lib_openal" != xyes; then :
11729 case "x$with_openal" in
11730 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11731 xno) ;;
11732 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11733 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11734 esac
11736 test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
11738 if test "$ac_cv_header_kstat_h" = "yes"
11739 then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11741 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11742 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 ac_check_lib_save_LIBS=$LIBS
11746 LIBS="-lkstat $LIBS"
11747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748 /* end confdefs.h. */
11750 /* Override any GCC internal prototype to avoid an error.
11751 Use char because int might match the return type of a GCC
11752 builtin and then its argument prototype would still apply. */
11753 #ifdef __cplusplus
11754 extern "C"
11755 #endif
11756 char kstat_open ();
11758 main ()
11760 return kstat_open ();
11762 return 0;
11764 _ACEOF
11765 if ac_fn_c_try_link "$LINENO"; then :
11766 ac_cv_lib_kstat_kstat_open=yes
11767 else
11768 ac_cv_lib_kstat_kstat_open=no
11770 rm -f core conftest.err conftest.$ac_objext \
11771 conftest$ac_exeext conftest.$ac_ext
11772 LIBS=$ac_check_lib_save_LIBS
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11775 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11776 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
11778 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11780 LIBKSTAT="-lkstat"
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11787 $as_echo_n "checking for -lodbc... " >&6; }
11788 if ${ac_cv_lib_soname_odbc+:} false; then :
11789 $as_echo_n "(cached) " >&6
11790 else
11791 ac_check_soname_save_LIBS=$LIBS
11792 LIBS="-lodbc $LIBS"
11793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11794 /* end confdefs.h. */
11796 /* Override any GCC internal prototype to avoid an error.
11797 Use char because int might match the return type of a GCC
11798 builtin and then its argument prototype would still apply. */
11799 #ifdef __cplusplus
11800 extern "C"
11801 #endif
11802 char SQLConnect ();
11804 main ()
11806 return SQLConnect ();
11808 return 0;
11810 _ACEOF
11811 if ac_fn_c_try_link "$LINENO"; then :
11812 case "$LIBEXT" in
11813 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11814 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'` ;;
11815 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11816 esac
11818 rm -f core conftest.err conftest.$ac_objext \
11819 conftest$ac_exeext conftest.$ac_ext
11820 LIBS=$ac_check_soname_save_LIBS
11822 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11824 $as_echo "not found" >&6; }
11825 cat >>confdefs.h <<_ACEOF
11826 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11827 _ACEOF
11829 else
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11831 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11833 cat >>confdefs.h <<_ACEOF
11834 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11835 _ACEOF
11840 test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11841 test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
11842 test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
11843 test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11845 if test "x$ALSALIBS$COREAUDIO" = "x" -a \
11846 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
11847 "x$with_alsa$with_coreaudio$with_oss" != xnonono
11848 then
11849 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11853 EXTRACFLAGS=""
11855 if test "x${GCC}" = "xyes"
11856 then
11857 EXTRACFLAGS="-Wall -pipe"
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11860 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11861 if ${ac_cv_c_gcc_strength_bug+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 if test "$cross_compiling" = yes; then :
11865 ac_cv_c_gcc_strength_bug="yes"
11866 else
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11869 int L[4] = {0,1,2,3};
11871 main ()
11873 static int Array[3];
11874 unsigned int B = 3;
11875 int i;
11876 for(i=0; i<B; i++) Array[i] = i - 3;
11877 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11878 L[i] = 4;
11879 return (Array[1] != -2 || L[2] != 3)
11881 return 0;
11883 _ACEOF
11884 if ac_fn_c_try_run "$LINENO"; then :
11885 ac_cv_c_gcc_strength_bug="no"
11886 else
11887 ac_cv_c_gcc_strength_bug="yes"
11889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11890 conftest.$ac_objext conftest.beam conftest.$ac_ext
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11895 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11896 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11897 then
11898 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11902 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11903 if ${ac_cv_cflags__fno_builtin+:} false; then :
11904 $as_echo_n "(cached) " >&6
11905 else
11906 ac_wine_try_cflags_saved=$CFLAGS
11907 CFLAGS="$CFLAGS -fno-builtin"
11908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11909 /* end confdefs.h. */
11910 int main(int argc, char **argv) { return 0; }
11911 _ACEOF
11912 if ac_fn_c_try_link "$LINENO"; then :
11913 ac_cv_cflags__fno_builtin=yes
11914 else
11915 ac_cv_cflags__fno_builtin=no
11917 rm -f core conftest.err conftest.$ac_objext \
11918 conftest$ac_exeext conftest.$ac_ext
11919 CFLAGS=$ac_wine_try_cflags_saved
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11922 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11923 if test $ac_cv_cflags__fno_builtin = yes; then :
11924 BUILTINFLAG="-fno-builtin"
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11928 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11929 if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932 ac_wine_try_cflags_saved=$CFLAGS
11933 CFLAGS="$CFLAGS -fno-strict-aliasing"
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11936 int main(int argc, char **argv) { return 0; }
11937 _ACEOF
11938 if ac_fn_c_try_link "$LINENO"; then :
11939 ac_cv_cflags__fno_strict_aliasing=yes
11940 else
11941 ac_cv_cflags__fno_strict_aliasing=no
11943 rm -f core conftest.err conftest.$ac_objext \
11944 conftest$ac_exeext conftest.$ac_ext
11945 CFLAGS=$ac_wine_try_cflags_saved
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11948 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11949 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11950 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11953 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11954 if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 ac_wine_try_cflags_saved=$CFLAGS
11958 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960 /* end confdefs.h. */
11961 int main(int argc, char **argv) { return 0; }
11962 _ACEOF
11963 if ac_fn_c_try_link "$LINENO"; then :
11964 ac_cv_cflags__Wdeclaration_after_statement=yes
11965 else
11966 ac_cv_cflags__Wdeclaration_after_statement=no
11968 rm -f core conftest.err conftest.$ac_objext \
11969 conftest$ac_exeext conftest.$ac_ext
11970 CFLAGS=$ac_wine_try_cflags_saved
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
11973 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
11974 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
11975 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
11978 $as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
11979 if ${ac_cv_cflags__Wempty_body+:} false; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 ac_wine_try_cflags_saved=$CFLAGS
11983 CFLAGS="$CFLAGS -Wempty-body"
11984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11986 int main(int argc, char **argv) { return 0; }
11987 _ACEOF
11988 if ac_fn_c_try_link "$LINENO"; then :
11989 ac_cv_cflags__Wempty_body=yes
11990 else
11991 ac_cv_cflags__Wempty_body=no
11993 rm -f core conftest.err conftest.$ac_objext \
11994 conftest$ac_exeext conftest.$ac_ext
11995 CFLAGS=$ac_wine_try_cflags_saved
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
11998 $as_echo "$ac_cv_cflags__Wempty_body" >&6; }
11999 if test $ac_cv_cflags__Wempty_body = yes; then :
12000 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wignored-qualifiers" >&5
12003 $as_echo_n "checking whether the compiler supports -Wignored-qualifiers... " >&6; }
12004 if ${ac_cv_cflags__Wignored_qualifiers+:} false; then :
12005 $as_echo_n "(cached) " >&6
12006 else
12007 ac_wine_try_cflags_saved=$CFLAGS
12008 CFLAGS="$CFLAGS -Wignored-qualifiers"
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011 int main(int argc, char **argv) { return 0; }
12012 _ACEOF
12013 if ac_fn_c_try_link "$LINENO"; then :
12014 ac_cv_cflags__Wignored_qualifiers=yes
12015 else
12016 ac_cv_cflags__Wignored_qualifiers=no
12018 rm -f core conftest.err conftest.$ac_objext \
12019 conftest$ac_exeext conftest.$ac_ext
12020 CFLAGS=$ac_wine_try_cflags_saved
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wignored_qualifiers" >&5
12023 $as_echo "$ac_cv_cflags__Wignored_qualifiers" >&6; }
12024 if test $ac_cv_cflags__Wignored_qualifiers = yes; then :
12025 EXTRACFLAGS="$EXTRACFLAGS -Wignored-qualifiers"
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12028 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12029 if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
12030 $as_echo_n "(cached) " >&6
12031 else
12032 ac_wine_try_cflags_saved=$CFLAGS
12033 CFLAGS="$CFLAGS -Wstrict-prototypes"
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12036 int main(int argc, char **argv) { return 0; }
12037 _ACEOF
12038 if ac_fn_c_try_link "$LINENO"; then :
12039 ac_cv_cflags__Wstrict_prototypes=yes
12040 else
12041 ac_cv_cflags__Wstrict_prototypes=no
12043 rm -f core conftest.err conftest.$ac_objext \
12044 conftest$ac_exeext conftest.$ac_ext
12045 CFLAGS=$ac_wine_try_cflags_saved
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12048 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12049 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12050 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
12053 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
12054 if ${ac_cv_cflags__Wtype_limits+:} false; then :
12055 $as_echo_n "(cached) " >&6
12056 else
12057 ac_wine_try_cflags_saved=$CFLAGS
12058 CFLAGS="$CFLAGS -Wtype-limits"
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061 int main(int argc, char **argv) { return 0; }
12062 _ACEOF
12063 if ac_fn_c_try_link "$LINENO"; then :
12064 ac_cv_cflags__Wtype_limits=yes
12065 else
12066 ac_cv_cflags__Wtype_limits=no
12068 rm -f core conftest.err conftest.$ac_objext \
12069 conftest$ac_exeext conftest.$ac_ext
12070 CFLAGS=$ac_wine_try_cflags_saved
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
12073 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
12074 if test $ac_cv_cflags__Wtype_limits = yes; then :
12075 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12078 $as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
12079 if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
12080 $as_echo_n "(cached) " >&6
12081 else
12082 ac_wine_try_cflags_saved=$CFLAGS
12083 CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12086 int main(int argc, char **argv) { return 0; }
12087 _ACEOF
12088 if ac_fn_c_try_link "$LINENO"; then :
12089 ac_cv_cflags__Wunused_but_set_parameter=yes
12090 else
12091 ac_cv_cflags__Wunused_but_set_parameter=no
12093 rm -f core conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext
12095 CFLAGS=$ac_wine_try_cflags_saved
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12098 $as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12099 if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12100 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12103 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12104 if ${ac_cv_cflags__Wwrite_strings+:} false; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 ac_wine_try_cflags_saved=$CFLAGS
12108 CFLAGS="$CFLAGS -Wwrite-strings"
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111 int main(int argc, char **argv) { return 0; }
12112 _ACEOF
12113 if ac_fn_c_try_link "$LINENO"; then :
12114 ac_cv_cflags__Wwrite_strings=yes
12115 else
12116 ac_cv_cflags__Wwrite_strings=no
12118 rm -f core conftest.err conftest.$ac_objext \
12119 conftest$ac_exeext conftest.$ac_ext
12120 CFLAGS=$ac_wine_try_cflags_saved
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12123 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12124 if test $ac_cv_cflags__Wwrite_strings = yes; then :
12125 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12128 case $host_cpu in
12129 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-omit-frame-pointer" >&5
12130 $as_echo_n "checking whether the compiler supports -fno-omit-frame-pointer... " >&6; }
12131 if ${ac_cv_cflags__fno_omit_frame_pointer+:} false; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134 ac_wine_try_cflags_saved=$CFLAGS
12135 CFLAGS="$CFLAGS -fno-omit-frame-pointer"
12136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12138 int main(int argc, char **argv) { return 0; }
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"; then :
12141 ac_cv_cflags__fno_omit_frame_pointer=yes
12142 else
12143 ac_cv_cflags__fno_omit_frame_pointer=no
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12147 CFLAGS=$ac_wine_try_cflags_saved
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_omit_frame_pointer" >&5
12150 $as_echo "$ac_cv_cflags__fno_omit_frame_pointer" >&6; }
12151 if test $ac_cv_cflags__fno_omit_frame_pointer = yes; then :
12152 EXTRACFLAGS="$EXTRACFLAGS -fno-omit-frame-pointer"
12153 fi ;;
12154 esac
12156 case $host in
12157 x86_64-*mingw32*|x86_64-*cygwin*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-format" >&5
12158 $as_echo_n "checking whether the compiler supports -Wno-format... " >&6; }
12159 if ${ac_cv_cflags__Wno_format+:} false; then :
12160 $as_echo_n "(cached) " >&6
12161 else
12162 ac_wine_try_cflags_saved=$CFLAGS
12163 CFLAGS="$CFLAGS -Wno-format"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 int main(int argc, char **argv) { return 0; }
12167 _ACEOF
12168 if ac_fn_c_try_link "$LINENO"; then :
12169 ac_cv_cflags__Wno_format=yes
12170 else
12171 ac_cv_cflags__Wno_format=no
12173 rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12175 CFLAGS=$ac_wine_try_cflags_saved
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_format" >&5
12178 $as_echo "$ac_cv_cflags__Wno_format" >&6; }
12179 if test $ac_cv_cflags__Wno_format = yes; then :
12180 EXTRACFLAGS="$EXTRACFLAGS -Wno-format"
12181 fi ;;
12182 esac
12184 saved_CFLAGS="$CFLAGS"
12185 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12187 $as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
12188 if ${ac_cv_c_string_h_warnings+:} false; then :
12189 $as_echo_n "(cached) " >&6
12190 else
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h. */
12193 #include <string.h>
12195 main ()
12199 return 0;
12201 _ACEOF
12202 if ac_fn_c_try_compile "$LINENO"; then :
12203 ac_cv_c_string_h_warnings=no
12204 else
12205 ac_cv_c_string_h_warnings=yes
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
12210 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
12211 CFLAGS="$saved_CFLAGS"
12212 if test "$ac_cv_c_string_h_warnings" = "no"
12213 then
12214 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12217 saved_CFLAGS="$CFLAGS"
12218 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12220 $as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12221 if ${ac_cv_c_logicalop_noisy+:} false; then :
12222 $as_echo_n "(cached) " >&6
12223 else
12224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h. */
12226 #include <string.h>
12228 main ()
12230 char*f(const char *h,char n) {return strchr(h,n);}
12232 return 0;
12234 _ACEOF
12235 if ac_fn_c_try_compile "$LINENO"; then :
12236 ac_cv_c_logicalop_noisy=no
12237 else
12238 ac_cv_c_logicalop_noisy=yes
12240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12243 $as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12244 CFLAGS="$saved_CFLAGS"
12245 if test "$ac_cv_c_logicalop_noisy" = "no"
12246 then
12247 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12250 if test "x$enable_maintainer_mode" = "xyes"
12251 then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12253 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12254 if ${ac_cv_cflags__Werror+:} false; then :
12255 $as_echo_n "(cached) " >&6
12256 else
12257 ac_wine_try_cflags_saved=$CFLAGS
12258 CFLAGS="$CFLAGS -Werror"
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12261 int main(int argc, char **argv) { return 0; }
12262 _ACEOF
12263 if ac_fn_c_try_link "$LINENO"; then :
12264 ac_cv_cflags__Werror=yes
12265 else
12266 ac_cv_cflags__Werror=no
12268 rm -f core conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext conftest.$ac_ext
12270 CFLAGS=$ac_wine_try_cflags_saved
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12273 $as_echo "$ac_cv_cflags__Werror" >&6; }
12274 if test $ac_cv_cflags__Werror = yes; then :
12275 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12279 saved_CFLAGS="$CFLAGS"
12280 CFLAGS="$CFLAGS -Werror"
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12282 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12283 if ${ac_cv_have_ms_hook_prologue+:} false; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12290 main ()
12294 return 0;
12296 _ACEOF
12297 if ac_fn_c_try_compile "$LINENO"; then :
12298 ac_cv_have_ms_hook_prologue="yes"
12299 else
12300 ac_cv_have_ms_hook_prologue="no"
12302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12305 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12306 CFLAGS="$saved_CFLAGS"
12307 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12308 then
12310 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12312 else
12313 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12320 $as_echo_n "checking for the need to disable Fortify... " >&6; }
12321 if ${ac_cv_c_fortify_enabled+:} false; then :
12322 $as_echo_n "(cached) " >&6
12323 else
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12326 #include <string.h>
12328 main ()
12330 #if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12331 #error Fortify enabled
12332 #endif
12334 return 0;
12336 _ACEOF
12337 if ac_fn_c_try_compile "$LINENO"; then :
12338 ac_cv_c_fortify_enabled=no
12339 else
12340 ac_cv_c_fortify_enabled=yes
12342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12345 $as_echo "$ac_cv_c_fortify_enabled" >&6; }
12346 if test "$ac_cv_c_fortify_enabled" = yes
12347 then
12348 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
12353 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
12354 if ${ac_cv_c_extern_prefix+:} false; then :
12355 $as_echo_n "(cached) " >&6
12356 else
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359 extern int ac_test;
12361 main ()
12363 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12365 return 0;
12367 _ACEOF
12368 if ac_fn_c_try_link "$LINENO"; then :
12369 ac_cv_c_extern_prefix="yes"
12370 else
12371 ac_cv_c_extern_prefix="no"
12373 rm -f core conftest.err conftest.$ac_objext \
12374 conftest$ac_exeext conftest.$ac_ext
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
12377 $as_echo "$ac_cv_c_extern_prefix" >&6; }
12379 case $host_cpu in
12380 *i[3456789]86*)
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
12382 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
12383 if ${ac_cv_c_stdcall_suffix+:} false; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388 #ifndef _MSC_VER
12389 #define __stdcall __attribute__((__stdcall__))
12390 #endif
12391 int __stdcall ac_test(int i) { return i; }
12393 main ()
12395 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12397 return 0;
12399 _ACEOF
12400 if ac_fn_c_try_link "$LINENO"; then :
12401 ac_cv_c_stdcall_suffix="yes"
12402 else
12403 ac_cv_c_stdcall_suffix="no"
12405 rm -f core conftest.err conftest.$ac_objext \
12406 conftest$ac_exeext conftest.$ac_ext
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
12409 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12410 *) ac_cv_c_stdcall_suffix="no" ;;
12411 esac
12414 if test "$ac_cv_c_extern_prefix" = "yes"
12415 then
12416 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
12418 asm_name_prefix="_"
12419 else
12420 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
12422 asm_name_prefix=""
12426 if test "$ac_cv_c_stdcall_suffix" = "yes"
12427 then
12428 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
12430 else
12431 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
12437 $as_echo_n "checking how to define a function in assembly code... " >&6; }
12438 if ${ac_cv_asm_func_def+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440 else
12441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442 /* end confdefs.h. */
12445 main ()
12447 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
12449 return 0;
12451 _ACEOF
12452 if ac_fn_c_try_link "$LINENO"; then :
12453 ac_cv_asm_func_def=".def"
12454 else
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12459 main ()
12461 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
12463 return 0;
12465 _ACEOF
12466 if ac_fn_c_try_link "$LINENO"; then :
12467 ac_cv_asm_func_def=".type @function"
12468 else
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12473 main ()
12475 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
12477 return 0;
12479 _ACEOF
12480 if ac_fn_c_try_link "$LINENO"; then :
12481 ac_cv_asm_func_def=".type 2"
12482 else
12483 ac_cv_asm_func_def="unknown"
12485 rm -f core conftest.err conftest.$ac_objext \
12486 conftest$ac_exeext conftest.$ac_ext
12488 rm -f core conftest.err conftest.$ac_objext \
12489 conftest$ac_exeext conftest.$ac_ext
12491 rm -f core conftest.err conftest.$ac_objext \
12492 conftest$ac_exeext conftest.$ac_ext
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
12495 $as_echo "$ac_cv_asm_func_def" >&6; }
12498 case "$ac_cv_asm_func_def" in
12499 ".def")
12500 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12502 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12503 ".type @function")
12504 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12506 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12507 ".type 2")
12508 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12510 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12512 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12514 asm_func_header="" ;;
12515 esac
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12518 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12519 if ${ac_cv_c_asm_outside_funcs+:} false; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h. */
12524 asm(".text\n\t.long 0");
12526 main ()
12530 return 0;
12532 _ACEOF
12533 if ac_fn_c_try_compile "$LINENO"; then :
12534 ac_cv_c_asm_outside_funcs="yes"
12535 else
12536 ac_cv_c_asm_outside_funcs="no"
12538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12541 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12544 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12545 if ${ac_cv_c_dot_previous+:} false; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12552 main ()
12554 asm(".text\nac_test:\t.long 0\n\t.previous");
12556 return 0;
12558 _ACEOF
12559 if ac_fn_c_try_link "$LINENO"; then :
12560 ac_cv_c_dot_previous="yes"
12561 else
12562 ac_cv_c_dot_previous="no"
12564 rm -f core conftest.err conftest.$ac_objext \
12565 conftest$ac_exeext conftest.$ac_ext
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12568 $as_echo "$ac_cv_c_dot_previous" >&6; }
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12571 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12572 if ${ac_cv_c_cfi_support+:} false; then :
12573 $as_echo_n "(cached) " >&6
12574 else
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12579 main ()
12583 return 0;
12585 _ACEOF
12586 if ac_fn_c_try_compile "$LINENO"; then :
12587 ac_cv_c_cfi_support="yes"
12588 else
12589 ac_cv_c_cfi_support="no"
12591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12594 $as_echo "$ac_cv_c_cfi_support" >&6; }
12596 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12597 asm_func_trailer=""
12598 if test "$ac_cv_c_dot_previous" = "yes"
12599 then
12600 asm_func_trailer="\\n\\t.previous"
12602 if test "$ac_cv_c_cfi_support" = "yes"
12603 then
12604 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12605 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12607 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12609 UNWINDFLAGS=-fasynchronous-unwind-tables
12611 else
12612 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12616 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12619 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12620 then
12621 cat >>confdefs.h <<_ACEOF
12622 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12623 _ACEOF
12625 else
12626 cat >>confdefs.h <<_ACEOF
12627 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12628 _ACEOF
12632 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12635 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12639 LDPATH=""
12641 case $build_os in
12642 cygwin*|mingw32*)
12643 TOOLSEXT=".exe"
12645 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12647 darwin*|macosx*)
12650 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12652 esac
12654 case $host_os in
12655 mingw32*)
12656 CRTLIBS="-lmsvcrt"
12658 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
12661 esac
12663 MAIN_BINARY="wine"
12665 test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
12667 case $host_os in
12668 linux*)
12669 case $host_cpu in
12670 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12672 x86_64*) EXTRA_BINARIES="wine64-preloader"
12674 esac
12676 esac
12679 ac_save_CFLAGS="$CFLAGS"
12680 CFLAGS="$CFLAGS $BUILTINFLAG"
12681 for ac_func in \
12682 _finite \
12683 _isnan \
12684 _pclose \
12685 _popen \
12686 _snprintf \
12687 _spawnvp \
12688 _strdup \
12689 _stricmp \
12690 _strnicmp \
12691 _strtoi64 \
12692 _strtoui64 \
12693 _vsnprintf \
12694 asctime_r \
12695 chsize \
12696 dlopen \
12697 epoll_create \
12698 ffs \
12699 finite \
12700 fnmatch \
12701 fork \
12702 fpclass \
12703 fstatfs \
12704 fstatvfs \
12705 ftruncate \
12706 futimes \
12707 futimesat \
12708 getattrlist \
12709 getdirentries \
12710 getopt_long \
12711 getpagesize \
12712 getpwuid \
12713 gettimeofday \
12714 getuid \
12715 kqueue \
12716 lstat \
12717 memmove \
12718 mmap \
12719 pclose \
12720 pipe2 \
12721 poll \
12722 popen \
12723 port_create \
12724 prctl \
12725 pread \
12726 pwrite \
12727 readdir \
12728 readlink \
12729 sched_yield \
12730 select \
12731 setproctitle \
12732 setrlimit \
12733 settimeofday \
12734 sigaltstack \
12735 sigprocmask \
12736 snprintf \
12737 spawnvp \
12738 statfs \
12739 statvfs \
12740 strcasecmp \
12741 strdup \
12742 strerror \
12743 strncasecmp \
12744 strtold \
12745 strtoll \
12746 strtoull \
12747 symlink \
12748 tcgetattr \
12749 thr_kill2 \
12750 timegm \
12751 usleep \
12752 vsnprintf \
12753 wait4 \
12754 waitpid \
12756 do :
12757 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12758 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12759 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12760 cat >>confdefs.h <<_ACEOF
12761 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12762 _ACEOF
12765 done
12767 CFLAGS="$ac_save_CFLAGS"
12769 if test "$ac_cv_func_dlopen" = no
12770 then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12772 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12773 if ${ac_cv_lib_dl_dlopen+:} false; then :
12774 $as_echo_n "(cached) " >&6
12775 else
12776 ac_check_lib_save_LIBS=$LIBS
12777 LIBS="-ldl $LIBS"
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12781 /* Override any GCC internal prototype to avoid an error.
12782 Use char because int might match the return type of a GCC
12783 builtin and then its argument prototype would still apply. */
12784 #ifdef __cplusplus
12785 extern "C"
12786 #endif
12787 char dlopen ();
12789 main ()
12791 return dlopen ();
12793 return 0;
12795 _ACEOF
12796 if ac_fn_c_try_link "$LINENO"; then :
12797 ac_cv_lib_dl_dlopen=yes
12798 else
12799 ac_cv_lib_dl_dlopen=no
12801 rm -f core conftest.err conftest.$ac_objext \
12802 conftest$ac_exeext conftest.$ac_ext
12803 LIBS=$ac_check_lib_save_LIBS
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12806 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12807 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12808 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12809 LIBDL="-ldl"
12814 ac_wine_check_funcs_save_LIBS="$LIBS"
12815 LIBS="$LIBS $LIBDL"
12816 for ac_func in dladdr
12817 do :
12818 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12819 if test "x$ac_cv_func_dladdr" = xyes; then :
12820 cat >>confdefs.h <<_ACEOF
12821 #define HAVE_DLADDR 1
12822 _ACEOF
12825 done
12827 LIBS="$ac_wine_check_funcs_save_LIBS"
12829 if test "$ac_cv_func_poll" = no
12830 then
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12832 $as_echo_n "checking for poll in -lpoll... " >&6; }
12833 if ${ac_cv_lib_poll_poll+:} false; then :
12834 $as_echo_n "(cached) " >&6
12835 else
12836 ac_check_lib_save_LIBS=$LIBS
12837 LIBS="-lpoll $LIBS"
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12841 /* Override any GCC internal prototype to avoid an error.
12842 Use char because int might match the return type of a GCC
12843 builtin and then its argument prototype would still apply. */
12844 #ifdef __cplusplus
12845 extern "C"
12846 #endif
12847 char poll ();
12849 main ()
12851 return poll ();
12853 return 0;
12855 _ACEOF
12856 if ac_fn_c_try_link "$LINENO"; then :
12857 ac_cv_lib_poll_poll=yes
12858 else
12859 ac_cv_lib_poll_poll=no
12861 rm -f core conftest.err conftest.$ac_objext \
12862 conftest$ac_exeext conftest.$ac_ext
12863 LIBS=$ac_check_lib_save_LIBS
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12866 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12867 if test "x$ac_cv_lib_poll_poll" = xyes; then :
12868 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12869 LIBPOLL="-lpoll"
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12876 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12877 if ${ac_cv_search_gethostbyname+:} false; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 ac_func_search_save_LIBS=$LIBS
12881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12882 /* end confdefs.h. */
12884 /* Override any GCC internal prototype to avoid an error.
12885 Use char because int might match the return type of a GCC
12886 builtin and then its argument prototype would still apply. */
12887 #ifdef __cplusplus
12888 extern "C"
12889 #endif
12890 char gethostbyname ();
12892 main ()
12894 return gethostbyname ();
12896 return 0;
12898 _ACEOF
12899 for ac_lib in '' nsl; do
12900 if test -z "$ac_lib"; then
12901 ac_res="none required"
12902 else
12903 ac_res=-l$ac_lib
12904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12906 if ac_fn_c_try_link "$LINENO"; then :
12907 ac_cv_search_gethostbyname=$ac_res
12909 rm -f core conftest.err conftest.$ac_objext \
12910 conftest$ac_exeext
12911 if ${ac_cv_search_gethostbyname+:} false; then :
12912 break
12914 done
12915 if ${ac_cv_search_gethostbyname+:} false; then :
12917 else
12918 ac_cv_search_gethostbyname=no
12920 rm conftest.$ac_ext
12921 LIBS=$ac_func_search_save_LIBS
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12924 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12925 ac_res=$ac_cv_search_gethostbyname
12926 if test "$ac_res" != no; then :
12927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12933 $as_echo_n "checking for library containing connect... " >&6; }
12934 if ${ac_cv_search_connect+:} false; then :
12935 $as_echo_n "(cached) " >&6
12936 else
12937 ac_func_search_save_LIBS=$LIBS
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12941 /* Override any GCC internal prototype to avoid an error.
12942 Use char because int might match the return type of a GCC
12943 builtin and then its argument prototype would still apply. */
12944 #ifdef __cplusplus
12945 extern "C"
12946 #endif
12947 char connect ();
12949 main ()
12951 return connect ();
12953 return 0;
12955 _ACEOF
12956 for ac_lib in '' socket; do
12957 if test -z "$ac_lib"; then
12958 ac_res="none required"
12959 else
12960 ac_res=-l$ac_lib
12961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12963 if ac_fn_c_try_link "$LINENO"; then :
12964 ac_cv_search_connect=$ac_res
12966 rm -f core conftest.err conftest.$ac_objext \
12967 conftest$ac_exeext
12968 if ${ac_cv_search_connect+:} false; then :
12969 break
12971 done
12972 if ${ac_cv_search_connect+:} false; then :
12974 else
12975 ac_cv_search_connect=no
12977 rm conftest.$ac_ext
12978 LIBS=$ac_func_search_save_LIBS
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12981 $as_echo "$ac_cv_search_connect" >&6; }
12982 ac_res=$ac_cv_search_connect
12983 if test "$ac_res" != no; then :
12984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12990 $as_echo_n "checking for library containing inet_aton... " >&6; }
12991 if ${ac_cv_search_inet_aton+:} false; then :
12992 $as_echo_n "(cached) " >&6
12993 else
12994 ac_func_search_save_LIBS=$LIBS
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12998 /* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13001 #ifdef __cplusplus
13002 extern "C"
13003 #endif
13004 char inet_aton ();
13006 main ()
13008 return inet_aton ();
13010 return 0;
13012 _ACEOF
13013 for ac_lib in '' resolv; do
13014 if test -z "$ac_lib"; then
13015 ac_res="none required"
13016 else
13017 ac_res=-l$ac_lib
13018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13020 if ac_fn_c_try_link "$LINENO"; then :
13021 ac_cv_search_inet_aton=$ac_res
13023 rm -f core conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext
13025 if ${ac_cv_search_inet_aton+:} false; then :
13026 break
13028 done
13029 if ${ac_cv_search_inet_aton+:} false; then :
13031 else
13032 ac_cv_search_inet_aton=no
13034 rm conftest.$ac_ext
13035 LIBS=$ac_func_search_save_LIBS
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13038 $as_echo "$ac_cv_search_inet_aton" >&6; }
13039 ac_res=$ac_cv_search_inet_aton
13040 if test "$ac_res" != no; then :
13041 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13046 for ac_func in \
13047 getaddrinfo \
13048 getnameinfo \
13049 getnetbyname \
13050 getprotobyname \
13051 getprotobynumber \
13052 getservbyport \
13053 inet_network \
13054 inet_ntop \
13055 inet_pton \
13056 sendmsg \
13057 socketpair \
13059 do :
13060 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13061 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13062 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13063 cat >>confdefs.h <<_ACEOF
13064 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13065 _ACEOF
13068 done
13071 LDAPLIBS=""
13073 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13074 then
13075 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13077 if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
13079 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
13080 if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 ac_check_lib_save_LIBS=$LIBS
13084 LIBS="-lldap_r $LIBPTHREAD $LIBS"
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13088 /* Override any GCC internal prototype to avoid an error.
13089 Use char because int might match the return type of a GCC
13090 builtin and then its argument prototype would still apply. */
13091 #ifdef __cplusplus
13092 extern "C"
13093 #endif
13094 char ldap_initialize ();
13096 main ()
13098 return ldap_initialize ();
13100 return 0;
13102 _ACEOF
13103 if ac_fn_c_try_link "$LINENO"; then :
13104 ac_cv_lib_ldap_r_ldap_initialize=yes
13105 else
13106 ac_cv_lib_ldap_r_ldap_initialize=no
13108 rm -f core conftest.err conftest.$ac_objext \
13109 conftest$ac_exeext conftest.$ac_ext
13110 LIBS=$ac_check_lib_save_LIBS
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
13113 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
13114 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
13116 $as_echo_n "checking for ber_init in -llber... " >&6; }
13117 if ${ac_cv_lib_lber_ber_init+:} false; then :
13118 $as_echo_n "(cached) " >&6
13119 else
13120 ac_check_lib_save_LIBS=$LIBS
13121 LIBS="-llber $LIBPTHREAD $LIBS"
13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123 /* end confdefs.h. */
13125 /* Override any GCC internal prototype to avoid an error.
13126 Use char because int might match the return type of a GCC
13127 builtin and then its argument prototype would still apply. */
13128 #ifdef __cplusplus
13129 extern "C"
13130 #endif
13131 char ber_init ();
13133 main ()
13135 return ber_init ();
13137 return 0;
13139 _ACEOF
13140 if ac_fn_c_try_link "$LINENO"; then :
13141 ac_cv_lib_lber_ber_init=yes
13142 else
13143 ac_cv_lib_lber_ber_init=no
13145 rm -f core conftest.err conftest.$ac_objext \
13146 conftest$ac_exeext conftest.$ac_ext
13147 LIBS=$ac_check_lib_save_LIBS
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
13150 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
13151 if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
13153 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
13155 LDAPLIBS="-lldap_r -llber"
13162 ac_wine_check_funcs_save_LIBS="$LIBS"
13163 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
13164 for ac_func in \
13165 ldap_count_references \
13166 ldap_first_reference \
13167 ldap_next_reference \
13168 ldap_parse_reference \
13169 ldap_parse_sort_control \
13170 ldap_parse_sortresponse_control \
13171 ldap_parse_vlv_control \
13172 ldap_parse_vlvresponse_control
13173 do :
13174 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13175 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13176 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13177 cat >>confdefs.h <<_ACEOF
13178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13179 _ACEOF
13182 done
13184 LIBS="$ac_wine_check_funcs_save_LIBS"
13186 if test "x$LDAPLIBS" = "x"; then :
13187 case "x$with_ldap" in
13188 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
13189 xno) ;;
13190 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13191 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
13192 esac
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
13196 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
13197 if ${wine_cv_one_arg_mkdir+:} false; then :
13198 $as_echo_n "(cached) " >&6
13199 else
13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13202 #include <sys/stat.h>
13204 main ()
13206 mkdir("foo");
13208 return 0;
13210 _ACEOF
13211 if ac_fn_c_try_compile "$LINENO"; then :
13212 wine_cv_one_arg_mkdir=yes
13213 else
13214 wine_cv_one_arg_mkdir=no
13216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
13219 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
13220 if test "$wine_cv_one_arg_mkdir" = "yes"
13221 then
13223 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13228 $as_echo_n "checking for sched_setaffinity... " >&6; }
13229 if ${wine_cv_have_sched_setaffinity+:} false; then :
13230 $as_echo_n "(cached) " >&6
13231 else
13232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13234 #define _GNU_SOURCE
13235 #include <sched.h>
13237 main ()
13239 sched_setaffinity(0, 0, 0);
13241 return 0;
13243 _ACEOF
13244 if ac_fn_c_try_link "$LINENO"; then :
13245 wine_cv_have_sched_setaffinity=yes
13246 else
13247 wine_cv_have_sched_setaffinity=no
13249 rm -f core conftest.err conftest.$ac_objext \
13250 conftest$ac_exeext conftest.$ac_ext
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13253 $as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13254 if test "$wine_cv_have_sched_setaffinity" = "yes"
13255 then
13257 $as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13263 $as_echo_n "checking for inline... " >&6; }
13264 if ${ac_cv_c_inline+:} false; then :
13265 $as_echo_n "(cached) " >&6
13266 else
13267 ac_cv_c_inline=no
13268 for ac_kw in inline __inline__ __inline; do
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h. */
13271 #ifndef __cplusplus
13272 typedef int foo_t;
13273 static $ac_kw foo_t static_foo () {return 0; }
13274 $ac_kw foo_t foo () {return 0; }
13275 #endif
13277 _ACEOF
13278 if ac_fn_c_try_compile "$LINENO"; then :
13279 ac_cv_c_inline=$ac_kw
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282 test "$ac_cv_c_inline" != no && break
13283 done
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13287 $as_echo "$ac_cv_c_inline" >&6; }
13289 case $ac_cv_c_inline in
13290 inline | yes) ;;
13292 case $ac_cv_c_inline in
13293 no) ac_val=;;
13294 *) ac_val=$ac_cv_c_inline;;
13295 esac
13296 cat >>confdefs.h <<_ACEOF
13297 #ifndef __cplusplus
13298 #define inline $ac_val
13299 #endif
13300 _ACEOF
13302 esac
13304 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13305 if test "x$ac_cv_type_mode_t" = xyes; then :
13307 cat >>confdefs.h <<_ACEOF
13308 #define HAVE_MODE_T 1
13309 _ACEOF
13313 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13314 if test "x$ac_cv_type_off_t" = xyes; then :
13316 cat >>confdefs.h <<_ACEOF
13317 #define HAVE_OFF_T 1
13318 _ACEOF
13322 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13323 if test "x$ac_cv_type_pid_t" = xyes; then :
13325 cat >>confdefs.h <<_ACEOF
13326 #define HAVE_PID_T 1
13327 _ACEOF
13331 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13332 if test "x$ac_cv_type_size_t" = xyes; then :
13334 cat >>confdefs.h <<_ACEOF
13335 #define HAVE_SIZE_T 1
13336 _ACEOF
13340 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13341 if test "x$ac_cv_type_ssize_t" = xyes; then :
13343 cat >>confdefs.h <<_ACEOF
13344 #define HAVE_SSIZE_T 1
13345 _ACEOF
13349 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13350 if test "x$ac_cv_type_long_long" = xyes; then :
13352 cat >>confdefs.h <<_ACEOF
13353 #define HAVE_LONG_LONG 1
13354 _ACEOF
13358 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13359 if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
13361 cat >>confdefs.h <<_ACEOF
13362 #define HAVE_FSBLKCNT_T 1
13363 _ACEOF
13367 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13368 if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
13370 cat >>confdefs.h <<_ACEOF
13371 #define HAVE_FSFILCNT_T 1
13372 _ACEOF
13377 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
13378 #include <signal.h>
13380 if test "x$ac_cv_type_sigset_t" = xyes; then :
13382 cat >>confdefs.h <<_ACEOF
13383 #define HAVE_SIGSET_T 1
13384 _ACEOF
13389 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13391 if test "x$ac_cv_type_request_sense" = xyes; then :
13393 cat >>confdefs.h <<_ACEOF
13394 #define HAVE_REQUEST_SENSE 1
13395 _ACEOF
13401 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
13402 #ifdef HAVE_SYS_SOCKET_H
13403 #include <sys/socket.h>
13404 #endif
13405 #ifdef HAVE_SYS_SOCKETVAR_H
13406 #include <sys/socketvar.h>
13407 #endif
13408 #ifdef HAVE_NET_ROUTE_H
13409 #include <net/route.h>
13410 #endif
13411 #ifdef HAVE_NETINET_IN_H
13412 #include <netinet/in.h>
13413 #endif
13414 #ifdef HAVE_NETINET_IN_SYSTM_H
13415 #include <netinet/in_systm.h>
13416 #endif
13417 #ifdef HAVE_NETINET_IP_H
13418 #include <netinet/ip.h>
13419 #endif
13420 #ifdef HAVE_NETINET_IN_PCB_H
13421 #include <netinet/in_pcb.h>
13422 #endif
13424 if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
13426 cat >>confdefs.h <<_ACEOF
13427 #define HAVE_STRUCT_XINPGEN 1
13428 _ACEOF
13434 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
13435 #include <linux/input.h>
13436 #endif
13438 if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
13440 cat >>confdefs.h <<_ACEOF
13441 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13442 _ACEOF
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
13449 $as_echo_n "checking for sigaddset... " >&6; }
13450 if ${wine_cv_have_sigaddset+:} false; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13455 #include <signal.h>
13457 main ()
13459 sigset_t set; sigaddset(&set,SIGTERM);
13461 return 0;
13463 _ACEOF
13464 if ac_fn_c_try_link "$LINENO"; then :
13465 wine_cv_have_sigaddset=yes
13466 else
13467 wine_cv_have_sigaddset=no
13469 rm -f core conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13473 $as_echo "$wine_cv_have_sigaddset" >&6; }
13474 if test "$wine_cv_have_sigaddset" = "yes"
13475 then
13477 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13483 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13484 if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
13485 $as_echo_n "(cached) " >&6
13486 else
13487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h. */
13489 #include <netdb.h>
13491 main ()
13494 char *name=0;
13495 struct hostent he;
13496 struct hostent *result;
13497 char *buf=0;
13498 int bufsize=0;
13499 int errnr;
13500 char *addr=0;
13501 int addrlen=0;
13502 int addrtype=0;
13503 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13504 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13507 return 0;
13509 _ACEOF
13510 if ac_fn_c_try_link "$LINENO"; then :
13511 wine_cv_linux_gethostbyname_r_6=yes
13512 else
13513 wine_cv_linux_gethostbyname_r_6=no
13516 rm -f core conftest.err conftest.$ac_objext \
13517 conftest$ac_exeext conftest.$ac_ext
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13521 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13522 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13523 then
13525 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13529 if test "$ac_cv_header_linux_joystick_h" = "yes"
13530 then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13532 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13533 if ${wine_cv_linux_joystick_22_api+:} false; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13537 /* end confdefs.h. */
13539 #include <sys/ioctl.h>
13540 #include <sys/types.h>
13541 #include <linux/joystick.h>
13543 struct js_event blub;
13544 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13545 #error "no 2.2 header"
13546 #endif
13549 main ()
13551 /*empty*/
13553 return 0;
13555 _ACEOF
13556 if ac_fn_c_try_compile "$LINENO"; then :
13557 wine_cv_linux_joystick_22_api=yes
13558 else
13559 wine_cv_linux_joystick_22_api=no
13561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13565 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13566 if test "$wine_cv_linux_joystick_22_api" = "yes"
13567 then
13569 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13575 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13576 #ifdef HAVE_SYS_PARAM_H
13577 # include <sys/param.h>
13578 #endif
13579 #ifdef HAVE_SYS_MOUNT_H
13580 # include <sys/mount.h>
13581 #endif
13582 #ifdef HAVE_SYS_VFS_H
13583 # include <sys/vfs.h>
13584 #endif
13585 #ifdef HAVE_SYS_STATFS_H
13586 # include <sys/statfs.h>
13587 #endif
13589 if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
13591 cat >>confdefs.h <<_ACEOF
13592 #define HAVE_STRUCT_STATFS_F_BFREE 1
13593 _ACEOF
13597 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13598 #ifdef HAVE_SYS_PARAM_H
13599 # include <sys/param.h>
13600 #endif
13601 #ifdef HAVE_SYS_MOUNT_H
13602 # include <sys/mount.h>
13603 #endif
13604 #ifdef HAVE_SYS_VFS_H
13605 # include <sys/vfs.h>
13606 #endif
13607 #ifdef HAVE_SYS_STATFS_H
13608 # include <sys/statfs.h>
13609 #endif
13611 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
13613 cat >>confdefs.h <<_ACEOF
13614 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13615 _ACEOF
13619 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13620 #ifdef HAVE_SYS_PARAM_H
13621 # include <sys/param.h>
13622 #endif
13623 #ifdef HAVE_SYS_MOUNT_H
13624 # include <sys/mount.h>
13625 #endif
13626 #ifdef HAVE_SYS_VFS_H
13627 # include <sys/vfs.h>
13628 #endif
13629 #ifdef HAVE_SYS_STATFS_H
13630 # include <sys/statfs.h>
13631 #endif
13633 if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
13635 cat >>confdefs.h <<_ACEOF
13636 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13637 _ACEOF
13641 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13642 #ifdef HAVE_SYS_PARAM_H
13643 # include <sys/param.h>
13644 #endif
13645 #ifdef HAVE_SYS_MOUNT_H
13646 # include <sys/mount.h>
13647 #endif
13648 #ifdef HAVE_SYS_VFS_H
13649 # include <sys/vfs.h>
13650 #endif
13651 #ifdef HAVE_SYS_STATFS_H
13652 # include <sys/statfs.h>
13653 #endif
13655 if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
13657 cat >>confdefs.h <<_ACEOF
13658 #define HAVE_STRUCT_STATFS_F_FFREE 1
13659 _ACEOF
13663 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13664 #ifdef HAVE_SYS_PARAM_H
13665 # include <sys/param.h>
13666 #endif
13667 #ifdef HAVE_SYS_MOUNT_H
13668 # include <sys/mount.h>
13669 #endif
13670 #ifdef HAVE_SYS_VFS_H
13671 # include <sys/vfs.h>
13672 #endif
13673 #ifdef HAVE_SYS_STATFS_H
13674 # include <sys/statfs.h>
13675 #endif
13677 if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
13679 cat >>confdefs.h <<_ACEOF
13680 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13681 _ACEOF
13685 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13686 #ifdef HAVE_SYS_PARAM_H
13687 # include <sys/param.h>
13688 #endif
13689 #ifdef HAVE_SYS_MOUNT_H
13690 # include <sys/mount.h>
13691 #endif
13692 #ifdef HAVE_SYS_VFS_H
13693 # include <sys/vfs.h>
13694 #endif
13695 #ifdef HAVE_SYS_STATFS_H
13696 # include <sys/statfs.h>
13697 #endif
13699 if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
13701 cat >>confdefs.h <<_ACEOF
13702 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13703 _ACEOF
13709 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13710 #include <sys/statvfs.h>
13711 #endif
13713 if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
13715 cat >>confdefs.h <<_ACEOF
13716 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13717 _ACEOF
13723 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13724 #ifdef HAVE_SYS_SOCKET_H
13725 # include <sys/socket.h>
13726 #endif
13727 #ifdef HAVE_SYS_UN_H
13728 # include <sys/un.h>
13729 #endif
13731 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
13733 cat >>confdefs.h <<_ACEOF
13734 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13735 _ACEOF
13739 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13740 #ifdef HAVE_SYS_SOCKET_H
13741 # include <sys/socket.h>
13742 #endif
13743 #ifdef HAVE_SYS_UN_H
13744 # include <sys/un.h>
13745 #endif
13747 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13749 cat >>confdefs.h <<_ACEOF
13750 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13751 _ACEOF
13755 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13756 #ifdef HAVE_SYS_SOCKET_H
13757 # include <sys/socket.h>
13758 #endif
13759 #ifdef HAVE_SYS_UN_H
13760 # include <sys/un.h>
13761 #endif
13763 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
13765 cat >>confdefs.h <<_ACEOF
13766 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13767 _ACEOF
13773 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13774 #ifdef HAVE_SCSI_SG_H
13775 #include <scsi/sg.h>
13776 #endif
13778 if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
13780 cat >>confdefs.h <<_ACEOF
13781 #define HAVE_SCSIREQ_T_CMD 1
13782 _ACEOF
13786 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>
13787 #ifdef HAVE_SCSI_SG_H
13788 #include <scsi/sg.h>
13789 #endif
13791 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
13793 cat >>confdefs.h <<_ACEOF
13794 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13795 _ACEOF
13801 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13803 if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
13805 cat >>confdefs.h <<_ACEOF
13806 #define HAVE_SIGINFO_T_SI_FD 1
13807 _ACEOF
13813 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13814 #ifdef HAVE_SYS_MTIO_H
13815 #include <sys/mtio.h>
13816 #endif
13818 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
13820 cat >>confdefs.h <<_ACEOF
13821 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13822 _ACEOF
13826 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13827 #ifdef HAVE_SYS_MTIO_H
13828 #include <sys/mtio.h>
13829 #endif
13831 if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
13833 cat >>confdefs.h <<_ACEOF
13834 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13835 _ACEOF
13839 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13840 #ifdef HAVE_SYS_MTIO_H
13841 #include <sys/mtio.h>
13842 #endif
13844 if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
13846 cat >>confdefs.h <<_ACEOF
13847 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13848 _ACEOF
13854 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13855 #include <getopt.h>
13856 #endif
13858 if test "x$ac_cv_member_struct_option_name" = xyes; then :
13860 cat >>confdefs.h <<_ACEOF
13861 #define HAVE_STRUCT_OPTION_NAME 1
13862 _ACEOF
13868 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13869 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
13871 cat >>confdefs.h <<_ACEOF
13872 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13873 _ACEOF
13877 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13878 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
13880 cat >>confdefs.h <<_ACEOF
13881 #define HAVE_STRUCT_STAT_ST_MTIM 1
13882 _ACEOF
13886 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13887 if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
13889 cat >>confdefs.h <<_ACEOF
13890 #define HAVE_STRUCT_STAT_ST_CTIM 1
13891 _ACEOF
13895 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13896 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
13898 cat >>confdefs.h <<_ACEOF
13899 #define HAVE_STRUCT_STAT_ST_ATIM 1
13900 _ACEOF
13906 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
13907 #include <sys/types.h>
13908 #endif
13909 #ifdef HAVE_NETINET_IN_H
13910 #include <netinet/in.h>
13911 #endif
13913 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13917 _ACEOF
13923 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13924 #include <sys/types.h>
13925 #endif
13926 #ifdef HAVE_NETINET_IN_H
13927 # include <netinet/in.h>
13928 #endif
13929 #ifdef HAVE_ARPA_NAMESER_H
13930 # include <arpa/nameser.h>
13931 #endif
13933 if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
13935 cat >>confdefs.h <<_ACEOF
13936 #define HAVE_NS_MSG__MSG_PTR 1
13937 _ACEOF
13943 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13944 #include <sys/types.h>
13945 #endif
13946 #ifdef HAVE_ALIAS_H
13947 #include <alias.h>
13948 #endif
13949 #ifdef HAVE_SYS_SOCKET_H
13950 #include <sys/socket.h>
13951 #endif
13952 #ifdef HAVE_SYS_SOCKETVAR_H
13953 #include <sys/socketvar.h>
13954 #endif
13955 #ifdef HAVE_SYS_TIMEOUT_H
13956 #include <sys/timeout.h>
13957 #endif
13958 #ifdef HAVE_NETINET_IN_H
13959 #include <netinet/in.h>
13960 #endif
13961 #ifdef HAVE_NETINET_IN_SYSTM_H
13962 #include <netinet/in_systm.h>
13963 #endif
13964 #ifdef HAVE_NETINET_IP_H
13965 #include <netinet/ip.h>
13966 #endif
13967 #ifdef HAVE_NETINET_IP_VAR_H
13968 #include <netinet/ip_var.h>
13969 #endif
13970 #ifdef HAVE_NETINET_IP_ICMP_H
13971 #include <netinet/ip_icmp.h>
13972 #endif
13973 #ifdef HAVE_NETINET_ICMP_VAR
13974 #include <netinet/icmp_var.h>
13975 #endif
13977 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
13979 cat >>confdefs.h <<_ACEOF
13980 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13981 _ACEOF
13987 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13988 #include <sys/types.h>
13989 #endif
13990 #ifdef HAVE_NET_IF_H
13991 # include <net/if.h>
13992 #endif
13994 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
13996 cat >>confdefs.h <<_ACEOF
13997 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13998 _ACEOF
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
14005 $as_echo_n "checking for timezone variable... " >&6; }
14006 if ${ac_cv_have_timezone+:} false; then :
14007 $as_echo_n "(cached) " >&6
14008 else
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14011 #include <time.h>
14013 main ()
14015 timezone = 1
14017 return 0;
14019 _ACEOF
14020 if ac_fn_c_try_link "$LINENO"; then :
14021 ac_cv_have_timezone="yes"
14022 else
14023 ac_cv_have_timezone="no"
14025 rm -f core conftest.err conftest.$ac_objext \
14026 conftest$ac_exeext conftest.$ac_ext
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
14029 $as_echo "$ac_cv_have_timezone" >&6; }
14030 if test "$ac_cv_have_timezone" = "yes"
14031 then
14033 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
14037 $as_echo_n "checking for daylight variable... " >&6; }
14038 if ${ac_cv_have_daylight+:} false; then :
14039 $as_echo_n "(cached) " >&6
14040 else
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043 #include <time.h>
14045 main ()
14047 daylight = 1
14049 return 0;
14051 _ACEOF
14052 if ac_fn_c_try_link "$LINENO"; then :
14053 ac_cv_have_daylight="yes"
14054 else
14055 ac_cv_have_daylight="no"
14057 rm -f core conftest.err conftest.$ac_objext \
14058 conftest$ac_exeext conftest.$ac_ext
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
14061 $as_echo "$ac_cv_have_daylight" >&6; }
14062 if test "$ac_cv_have_daylight" = "yes"
14063 then
14065 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
14069 ac_save_LIBS="$LIBS"
14070 LIBS="$LIBS -lm"
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
14072 $as_echo_n "checking for isinf... " >&6; }
14073 if ${ac_cv_have_isinf+:} false; then :
14074 $as_echo_n "(cached) " >&6
14075 else
14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h. */
14078 #include <math.h>
14080 main ()
14082 float f = 0.0; return isinf(f)
14084 return 0;
14086 _ACEOF
14087 if ac_fn_c_try_link "$LINENO"; then :
14088 ac_cv_have_isinf="yes"
14089 else
14090 ac_cv_have_isinf="no"
14092 rm -f core conftest.err conftest.$ac_objext \
14093 conftest$ac_exeext conftest.$ac_ext
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
14096 $as_echo "$ac_cv_have_isinf" >&6; }
14097 if test "$ac_cv_have_isinf" = "yes"
14098 then
14100 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
14105 $as_echo_n "checking for isnan... " >&6; }
14106 if ${ac_cv_have_isnan+:} false; then :
14107 $as_echo_n "(cached) " >&6
14108 else
14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h. */
14111 #include <math.h>
14113 main ()
14115 float f = 0.0; return isnan(f)
14117 return 0;
14119 _ACEOF
14120 if ac_fn_c_try_link "$LINENO"; then :
14121 ac_cv_have_isnan="yes"
14122 else
14123 ac_cv_have_isnan="no"
14125 rm -f core conftest.err conftest.$ac_objext \
14126 conftest$ac_exeext conftest.$ac_ext
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
14129 $as_echo "$ac_cv_have_isnan" >&6; }
14130 if test "$ac_cv_have_isnan" = "yes"
14131 then
14133 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
14136 LIBS="$ac_save_LIBS"
14139 case $host_cpu in
14140 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
14141 $as_echo_n "checking whether we need to define __i386__... " >&6; }
14142 if ${ac_cv_cpp_def___i386__+:} false; then :
14143 $as_echo_n "(cached) " >&6
14144 else
14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14146 /* end confdefs.h. */
14147 #ifndef __i386__
14149 #endif
14150 _ACEOF
14151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14152 $EGREP "yes" >/dev/null 2>&1; then :
14153 ac_cv_cpp_def___i386__=yes
14154 else
14155 ac_cv_cpp_def___i386__=no
14157 rm -f conftest*
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
14161 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
14162 if test $ac_cv_cpp_def___i386__ = yes; then :
14163 CFLAGS="$CFLAGS -D__i386__"
14164 LINTFLAGS="$LINTFLAGS -D__i386__"
14165 fi ;;
14166 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
14167 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
14168 if ${ac_cv_cpp_def___x86_64__+:} false; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h. */
14173 #ifndef __x86_64__
14175 #endif
14176 _ACEOF
14177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14178 $EGREP "yes" >/dev/null 2>&1; then :
14179 ac_cv_cpp_def___x86_64__=yes
14180 else
14181 ac_cv_cpp_def___x86_64__=no
14183 rm -f conftest*
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
14187 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
14188 if test $ac_cv_cpp_def___x86_64__ = yes; then :
14189 CFLAGS="$CFLAGS -D__x86_64__"
14190 LINTFLAGS="$LINTFLAGS -D__x86_64__"
14191 fi ;;
14192 *sparc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc64__" >&5
14193 $as_echo_n "checking whether we need to define __sparc64__... " >&6; }
14194 if ${ac_cv_cpp_def___sparc64__+:} false; then :
14195 $as_echo_n "(cached) " >&6
14196 else
14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h. */
14199 #ifndef __sparc64__
14201 #endif
14202 _ACEOF
14203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14204 $EGREP "yes" >/dev/null 2>&1; then :
14205 ac_cv_cpp_def___sparc64__=yes
14206 else
14207 ac_cv_cpp_def___sparc64__=no
14209 rm -f conftest*
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc64__" >&5
14213 $as_echo "$ac_cv_cpp_def___sparc64__" >&6; }
14214 if test $ac_cv_cpp_def___sparc64__ = yes; then :
14215 CFLAGS="$CFLAGS -D__sparc64__"
14216 LINTFLAGS="$LINTFLAGS -D__sparc64__"
14217 fi ;;
14218 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
14219 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
14220 if ${ac_cv_cpp_def___sparc__+:} false; then :
14221 $as_echo_n "(cached) " >&6
14222 else
14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h. */
14225 #ifndef __sparc__
14227 #endif
14228 _ACEOF
14229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14230 $EGREP "yes" >/dev/null 2>&1; then :
14231 ac_cv_cpp_def___sparc__=yes
14232 else
14233 ac_cv_cpp_def___sparc__=no
14235 rm -f conftest*
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
14239 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
14240 if test $ac_cv_cpp_def___sparc__ = yes; then :
14241 CFLAGS="$CFLAGS -D__sparc__"
14242 LINTFLAGS="$LINTFLAGS -D__sparc__"
14243 fi ;;
14244 *powerpc64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc64__" >&5
14245 $as_echo_n "checking whether we need to define __powerpc64__... " >&6; }
14246 if ${ac_cv_cpp_def___powerpc64__+:} false; then :
14247 $as_echo_n "(cached) " >&6
14248 else
14249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14251 #ifndef __powerpc64__
14253 #endif
14254 _ACEOF
14255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14256 $EGREP "yes" >/dev/null 2>&1; then :
14257 ac_cv_cpp_def___powerpc64__=yes
14258 else
14259 ac_cv_cpp_def___powerpc64__=no
14261 rm -f conftest*
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc64__" >&5
14265 $as_echo "$ac_cv_cpp_def___powerpc64__" >&6; }
14266 if test $ac_cv_cpp_def___powerpc64__ = yes; then :
14267 CFLAGS="$CFLAGS -D__powerpc64__"
14268 LINTFLAGS="$LINTFLAGS -D__powerpc64__"
14269 fi ;;
14270 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
14271 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
14272 if ${ac_cv_cpp_def___powerpc__+:} false; then :
14273 $as_echo_n "(cached) " >&6
14274 else
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277 #ifndef __powerpc__
14279 #endif
14280 _ACEOF
14281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14282 $EGREP "yes" >/dev/null 2>&1; then :
14283 ac_cv_cpp_def___powerpc__=yes
14284 else
14285 ac_cv_cpp_def___powerpc__=no
14287 rm -f conftest*
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
14291 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
14292 if test $ac_cv_cpp_def___powerpc__ = yes; then :
14293 CFLAGS="$CFLAGS -D__powerpc__"
14294 LINTFLAGS="$LINTFLAGS -D__powerpc__"
14295 fi ;;
14296 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14297 $as_echo_n "checking whether we need to define __arm__... " >&6; }
14298 if ${ac_cv_cpp_def___arm__+:} false; then :
14299 $as_echo_n "(cached) " >&6
14300 else
14301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14302 /* end confdefs.h. */
14303 #ifndef __arm__
14305 #endif
14306 _ACEOF
14307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14308 $EGREP "yes" >/dev/null 2>&1; then :
14309 ac_cv_cpp_def___arm__=yes
14310 else
14311 ac_cv_cpp_def___arm__=no
14313 rm -f conftest*
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14317 $as_echo "$ac_cv_cpp_def___arm__" >&6; }
14318 if test $ac_cv_cpp_def___arm__ = yes; then :
14319 CFLAGS="$CFLAGS -D__arm__"
14320 LINTFLAGS="$LINTFLAGS -D__arm__"
14321 fi ;;
14322 esac
14324 case $host_vendor in
14325 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
14326 $as_echo_n "checking whether we need to define __sun__... " >&6; }
14327 if ${ac_cv_cpp_def___sun__+:} false; then :
14328 $as_echo_n "(cached) " >&6
14329 else
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332 #ifndef __sun__
14334 #endif
14335 _ACEOF
14336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14337 $EGREP "yes" >/dev/null 2>&1; then :
14338 ac_cv_cpp_def___sun__=yes
14339 else
14340 ac_cv_cpp_def___sun__=no
14342 rm -f conftest*
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
14346 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
14347 if test $ac_cv_cpp_def___sun__ = yes; then :
14348 CFLAGS="$CFLAGS -D__sun__"
14349 LINTFLAGS="$LINTFLAGS -D__sun__"
14350 fi ;;
14351 esac
14357 ac_config_commands="$ac_config_commands include/stamp-h"
14360 ALL_MAKEFILE_DEPENDS="
14361 # Rules automatically generated by configure
14363 .INIT: Makefile
14364 .MAKEFILEDEPS:
14365 all: Makefile
14366 Makefile: Makefile.in Make.vars.in Make.rules config.status
14367 @./config.status Make.tmp Makefile"
14369 ALL_POT_FILES=""
14370 ALL_TEST_RESOURCES=""
14373 wine_fn_append_file ()
14375 as_fn_append $1 " \\$as_nl $2"
14378 wine_fn_append_rule ()
14380 as_fn_append $1 "$as_nl$2"
14383 wine_fn_has_flag ()
14385 expr ",$2," : ".*,$1,.*" >/dev/null
14388 wine_fn_all_dir_rules ()
14390 ac_dir=$1
14391 ac_alldeps=$2
14392 ac_makedep="\$(MAKEDEP)"
14393 ac_input=Make.vars.in:$ac_dir/Makefile.in
14394 if test $ac_dir != tools
14395 then
14396 ac_alldeps="$2 $ac_makedep"
14398 case $2 in
14399 *.in) ac_input=$ac_input:$2 ;;
14400 *) ac_makedep="$2 $ac_makedep" ;;
14401 esac
14403 wine_fn_append_file ALL_DIRS $ac_dir
14404 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14405 "__clean__: $ac_dir/__clean__
14406 .PHONY: $ac_dir/__clean__
14407 $ac_dir/__clean__: $ac_dir/Makefile
14408 @cd $ac_dir && \$(MAKE) clean
14409 \$(RM) $ac_dir/Makefile
14410 $ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
14411 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
14412 depend: $ac_dir/__depend__
14413 .PHONY: $ac_dir/__depend__
14414 $ac_dir/__depend__: $ac_makedep dummy
14415 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
14418 wine_fn_pot_rules ()
14420 ac_dir=$1
14421 ac_flags=$2
14423 test "x$with_gettextpo" = xyes || return
14425 if wine_fn_has_flag mc $ac_flags
14426 then
14427 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14428 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14429 "$ac_dir/msg.pot: $ac_dir/Makefile dummy
14430 @cd $ac_dir && \$(MAKE) msg.pot
14431 $ac_dir/msg.pot: tools/wmc include"
14433 if wine_fn_has_flag po $ac_flags
14434 then
14435 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14436 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14437 "$ac_dir/rsrc.pot: $ac_dir/Makefile dummy
14438 @cd $ac_dir && \$(MAKE) rsrc.pot
14439 $ac_dir/rsrc.pot: tools/wrc include"
14443 wine_fn_config_makefile ()
14445 ac_dir=$1
14446 ac_enable=$2
14447 ac_flags=$3
14448 ac_rules=$4
14449 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14450 return 0
14453 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
14454 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14455 "all: $ac_dir
14456 .PHONY: $ac_dir
14457 $ac_dir: $ac_dir/Makefile dummy
14458 @cd $ac_dir && \$(MAKE)"
14460 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14462 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14463 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14464 $ac_dir/__install__:: $ac_dir
14465 @cd $ac_dir && \$(MAKE) install
14466 $ac_dir/__uninstall__:: $ac_dir/Makefile
14467 @cd $ac_dir && \$(MAKE) uninstall
14468 install:: $ac_dir/__install__
14469 __uninstall__: $ac_dir/__uninstall__"
14471 if wine_fn_has_flag install-lib $ac_flags
14472 then
14473 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14474 ".PHONY: $ac_dir/__install-lib__
14475 $ac_dir/__install-lib__:: $ac_dir
14476 @cd $ac_dir && \$(MAKE) install-lib
14477 install-lib:: $ac_dir/__install-lib__"
14480 if wine_fn_has_flag install-dev $ac_flags
14481 then
14482 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14483 ".PHONY: $ac_dir/__install-dev
14484 $ac_dir/__install-dev__:: $ac_dir
14485 @cd $ac_dir && \$(MAKE) install-dev
14486 install-dev:: $ac_dir/__install-dev__"
14490 wine_fn_config_lib ()
14492 ac_name=$1
14493 ac_flags=$2
14494 ac_dir=dlls/$ac_name
14495 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14497 if wine_fn_has_flag install-dev $ac_flags
14498 then :
14499 else
14500 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14501 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14502 $ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14503 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14504 $ac_dir/__uninstall__::
14505 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14506 install install-dev:: $ac_dir/__install__
14507 __uninstall__: $ac_dir/__uninstall__"
14510 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14511 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
14514 wine_fn_config_dll ()
14516 ac_name=$1
14517 ac_dir=dlls/$ac_name
14518 ac_enable=$2
14519 ac_flags=$3
14520 ac_implib=${4:-$ac_name}
14521 ac_file=$ac_dir/lib$ac_implib
14522 ac_dll=$ac_name
14523 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14524 ac_implibflags=""
14526 case $ac_name in
14527 *16) ac_implibflags=" -m16" ;;
14528 *.*) ;;
14529 *) ac_dll=$ac_dll.dll ;;
14530 esac
14532 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
14534 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14535 test "$ac_enable" != enable_win16 || return 0
14536 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
14537 else
14538 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14539 "$ac_dir: __builddeps__
14540 manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14541 @cd $ac_dir && \$(MAKE) \$@"
14543 if wine_fn_has_flag install-lib $ac_flags
14544 then :
14545 else
14546 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14547 ".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14548 install install-lib:: $ac_dir/__install-lib__
14549 __uninstall__: $ac_dir/__uninstall__"
14550 if test -n "$DLLEXT"
14551 then
14552 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14553 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14554 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14555 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14556 $ac_dir/__uninstall__::
14557 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14558 else
14559 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14560 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14561 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14562 $ac_dir/__uninstall__::
14563 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14567 wine_fn_pot_rules $ac_dir $ac_flags
14570 if wine_fn_has_flag staticimplib $ac_flags
14571 then
14572 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14573 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14574 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
14575 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14576 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14577 $ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14578 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14579 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14580 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14581 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14582 $ac_dir/__uninstall__::
14583 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14584 install install-dev:: $ac_dir/__install-dev__
14585 __uninstall__: $ac_dir/__uninstall__"
14587 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14588 then
14589 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14590 "$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14591 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14592 $ac_dir/__uninstall__::
14593 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14596 if test "x$CROSSTEST_DISABLE" = x
14597 then
14598 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14599 "__builddeps__: $ac_file.cross.a
14600 $ac_file.cross.a: $ac_dir/Makefile dummy
14601 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14604 elif wine_fn_has_flag implib $ac_flags
14605 then
14606 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14607 "__builddeps__: $ac_file.$IMPLIBEXT
14608 $ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14609 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14610 $ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14611 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14612 .PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14613 $ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14614 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14615 $ac_dir/__uninstall__::
14616 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14617 install install-dev:: $ac_dir/__install-dev__
14618 __uninstall__: $ac_dir/__uninstall__"
14619 if test "x$CROSSTEST_DISABLE" = x
14620 then
14621 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14622 "__builddeps__: $ac_file.cross.a
14623 $ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14624 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
14627 if test "$ac_name" != "$ac_implib"
14628 then
14629 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14630 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14631 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
14632 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
14633 clean::
14634 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14635 if test "x$CROSSTEST_DISABLE" = x
14636 then
14637 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14638 "__builddeps__: dlls/lib$ac_implib.cross.a
14639 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14640 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
14646 wine_fn_config_program ()
14648 ac_name=$1
14649 ac_dir=programs/$ac_name
14650 ac_enable=$2
14651 ac_flags=$3
14652 ac_program=$ac_name
14654 case $ac_name in
14655 *.*) ;;
14656 *) ac_program=$ac_program.exe ;;
14657 esac
14659 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
14661 if eval test \"x\$"$ac_enable"\" = x"no"; then :
14663 else
14664 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14665 "$ac_dir: __builddeps__"
14667 wine_fn_pot_rules $ac_dir $ac_flags
14669 wine_fn_has_flag install $ac_flags || return
14670 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14671 ".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14672 install install-lib:: $ac_dir/__install__
14673 __uninstall__: $ac_dir/__uninstall__"
14675 if test -n "$DLLEXT"
14676 then
14677 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14678 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14679 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14680 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14681 $ac_dir/__uninstall__::
14682 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14684 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14685 then
14686 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14687 "$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
14688 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
14689 $ac_dir/__uninstall__::
14690 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
14692 else
14693 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14694 "$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14695 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14696 $ac_dir/__uninstall__::
14697 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
14700 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14701 then
14702 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14703 "$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14704 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14705 $ac_dir/__uninstall__::
14706 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14711 wine_fn_config_test ()
14713 ac_dir=$1
14714 ac_name=$2
14715 ac_flags=$3
14716 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
14717 wine_fn_all_dir_rules $ac_dir Maketest.rules
14719 if test "x$enable_tests" = xno; then :
14721 else
14722 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14723 "all: $ac_dir
14724 .PHONY: $ac_dir
14725 $ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
14726 @cd $ac_dir && \$(MAKE)
14727 programs/winetest: $ac_dir
14728 check test: $ac_dir/__test__
14729 .PHONY: $ac_dir/__test__
14730 $ac_dir/__test__: dummy
14731 @cd $ac_dir && \$(MAKE) test
14732 testclean::
14733 \$(RM) $ac_dir/*.ok"
14735 if test "x$CROSSTEST_DISABLE" = x
14736 then
14737 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14738 "crosstest: $ac_dir/__crosstest__
14739 .PHONY: $ac_dir/__crosstest__
14740 $ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14741 @cd $ac_dir && \$(MAKE) crosstest"
14746 wine_fn_config_tool ()
14748 ac_dir=$1
14749 ac_flags=$2
14750 if test "x$enable_tools" = xno; then :
14751 return 0
14754 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
14756 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14757 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
14758 case $ac_dir in
14759 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14760 esac
14763 wine_fn_config_makerules ()
14765 ac_rules=$1
14766 ac_deps=$2
14767 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14768 "$ac_rules: $ac_rules.in $ac_deps config.status
14769 @./config.status $ac_rules
14770 distclean::
14771 \$(RM) $ac_rules"
14774 wine_fn_config_symlink ()
14776 ac_link=$1
14777 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14778 "$ac_link:
14779 @./config.status $ac_link
14780 distclean::
14781 \$(RM) $ac_link"
14784 if test "x$CROSSTEST_DISABLE" != x
14785 then
14786 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14787 "crosstest:
14788 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14790 ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14791 wine_fn_config_symlink dlls/shell32/AUTHORS
14792 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14793 test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
14794 if test "x$enable_fonts" != xno; then
14795 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14796 test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
14798 if test "x$enable_fonts" != xno; then
14799 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14800 test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
14802 if test "x$enable_fonts" != xno; then
14803 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14804 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
14806 if test "x$enable_fonts" != xno; then
14807 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14808 test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
14810 ac_config_links="$ac_config_links po/LINGUAS:po/LINGUAS"
14811 test "$srcdir" = "." || wine_fn_config_symlink po/LINGUAS
14812 if test "x$enable_tools" != xno; then
14813 ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14814 test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
14816 ac_config_links="$ac_config_links wine:tools/winewrapper"
14817 wine_fn_config_symlink wine
14818 if test "x$enable_win64" != xno; then
14819 ac_config_links="$ac_config_links wine64:tools/winewrapper"
14820 wine_fn_config_symlink wine64
14823 ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14825 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14827 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14829 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14831 ac_config_commands="$ac_config_commands dlls/user32/resources"
14833 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14835 ac_config_commands="$ac_config_commands include/wine"
14838 wine_fn_config_makerules Make.rules
14839 MAKE_RULES=Make.rules
14840 ac_config_files="$ac_config_files Make.rules"
14842 wine_fn_config_makerules Maketest.rules Make.rules
14843 MAKE_TEST_RULES=Maketest.rules
14844 ac_config_files="$ac_config_files Maketest.rules"
14846 wine_fn_config_makerules dlls/Makedll.rules Make.rules
14847 MAKE_DLL_RULES=dlls/Makedll.rules
14848 ac_config_files="$ac_config_files dlls/Makedll.rules"
14850 wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
14851 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14852 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14854 wine_fn_config_makerules programs/Makeprog.rules Make.rules
14855 MAKE_PROG_RULES=programs/Makeprog.rules
14856 ac_config_files="$ac_config_files programs/Makeprog.rules"
14859 wine_fn_config_dll acledit enable_acledit
14860 wine_fn_config_dll aclui enable_aclui implib
14861 wine_fn_config_dll activeds enable_activeds implib
14862 wine_fn_config_dll actxprxy enable_actxprxy
14863 wine_fn_config_lib adsiid
14864 wine_fn_config_dll advapi32 enable_advapi32 implib
14865 wine_fn_config_test dlls/advapi32/tests advapi32_test
14866 wine_fn_config_dll advpack enable_advpack implib
14867 wine_fn_config_test dlls/advpack/tests advpack_test
14868 wine_fn_config_dll amstream enable_amstream
14869 wine_fn_config_test dlls/amstream/tests amstream_test
14870 wine_fn_config_dll apphelp enable_apphelp
14871 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
14872 wine_fn_config_dll atl enable_atl implib
14873 wine_fn_config_test dlls/atl/tests atl_test
14874 wine_fn_config_dll authz enable_authz
14875 wine_fn_config_dll avicap32 enable_avicap32 implib
14876 wine_fn_config_dll avifil32 enable_avifil32 implib,po
14877 wine_fn_config_test dlls/avifil32/tests avifil32_test
14878 wine_fn_config_dll avifile.dll16 enable_win16
14879 wine_fn_config_dll avrt enable_avrt implib
14880 wine_fn_config_dll bcrypt enable_bcrypt
14881 wine_fn_config_dll browseui enable_browseui po
14882 wine_fn_config_test dlls/browseui/tests browseui_test
14883 wine_fn_config_dll cabinet enable_cabinet implib
14884 wine_fn_config_test dlls/cabinet/tests cabinet_test
14885 wine_fn_config_dll capi2032 enable_capi2032 implib
14886 wine_fn_config_dll cards enable_cards implib
14887 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14888 wine_fn_config_dll clusapi enable_clusapi implib
14889 wine_fn_config_dll comcat enable_comcat
14890 wine_fn_config_test dlls/comcat/tests comcat_test
14891 wine_fn_config_dll comctl32 enable_comctl32 implib,po
14892 wine_fn_config_test dlls/comctl32/tests comctl32_test
14893 wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
14894 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14895 wine_fn_config_dll comm.drv16 enable_win16
14896 wine_fn_config_dll commdlg.dll16 enable_win16
14897 wine_fn_config_dll compobj.dll16 enable_win16
14898 wine_fn_config_dll compstui enable_compstui implib
14899 wine_fn_config_dll credui enable_credui implib,po
14900 wine_fn_config_test dlls/credui/tests credui_test
14901 wine_fn_config_dll crtdll enable_crtdll implib
14902 wine_fn_config_dll crypt32 enable_crypt32 implib,po
14903 wine_fn_config_test dlls/crypt32/tests crypt32_test
14904 wine_fn_config_dll cryptdlg enable_cryptdlg po
14905 wine_fn_config_dll cryptdll enable_cryptdll implib
14906 wine_fn_config_dll cryptnet enable_cryptnet implib
14907 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14908 wine_fn_config_dll cryptui enable_cryptui implib,po
14909 wine_fn_config_test dlls/cryptui/tests cryptui_test
14910 wine_fn_config_dll ctapi32 enable_ctapi32
14911 wine_fn_config_dll ctl3d.dll16 enable_win16
14912 wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
14913 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14914 wine_fn_config_dll d3d10 enable_d3d10 implib
14915 wine_fn_config_test dlls/d3d10/tests d3d10_test
14916 wine_fn_config_dll d3d10core enable_d3d10core implib
14917 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14918 wine_fn_config_dll d3d8 enable_d3d8 implib
14919 wine_fn_config_test dlls/d3d8/tests d3d8_test
14920 wine_fn_config_dll d3d9 enable_d3d9 implib
14921 wine_fn_config_test dlls/d3d9/tests d3d9_test
14922 wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
14923 wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
14924 wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
14925 wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
14926 wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
14927 wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
14928 wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
14929 wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
14930 wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
14931 wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
14932 wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
14933 wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
14934 wine_fn_config_dll d3dim enable_d3dim implib
14935 wine_fn_config_dll d3drm enable_d3drm implib
14936 wine_fn_config_test dlls/d3drm/tests d3drm_test
14937 wine_fn_config_dll d3dx10_33 enable_d3dx10_33
14938 wine_fn_config_dll d3dx10_34 enable_d3dx10_34
14939 wine_fn_config_dll d3dx10_35 enable_d3dx10_35
14940 wine_fn_config_dll d3dx10_36 enable_d3dx10_36
14941 wine_fn_config_dll d3dx10_37 enable_d3dx10_37
14942 wine_fn_config_dll d3dx10_38 enable_d3dx10_38
14943 wine_fn_config_dll d3dx10_39 enable_d3dx10_39
14944 wine_fn_config_dll d3dx10_40 enable_d3dx10_40
14945 wine_fn_config_dll d3dx10_41 enable_d3dx10_41
14946 wine_fn_config_dll d3dx10_42 enable_d3dx10_42
14947 wine_fn_config_dll d3dx10_43 enable_d3dx10_43
14948 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14949 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14950 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14951 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14952 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14953 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14954 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14955 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14956 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14957 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14958 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14959 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14960 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
14961 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14962 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14963 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14964 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14965 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14966 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14967 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14968 wine_fn_config_dll d3dx9_43 enable_d3dx9_43
14969 wine_fn_config_dll d3dxof enable_d3dxof implib
14970 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14971 wine_fn_config_dll dbgeng enable_dbgeng implib
14972 wine_fn_config_dll dbghelp enable_dbghelp implib
14973 wine_fn_config_dll dciman32 enable_dciman32 implib
14974 wine_fn_config_dll ddeml.dll16 enable_win16
14975 wine_fn_config_dll ddraw enable_ddraw implib
14976 wine_fn_config_test dlls/ddraw/tests ddraw_test
14977 wine_fn_config_dll ddrawex enable_ddrawex
14978 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14979 wine_fn_config_dll devenum enable_devenum po
14980 wine_fn_config_dll dhcpcsvc enable_dhcpcsvc
14981 wine_fn_config_dll dinput enable_dinput implib,po,staticimplib
14982 wine_fn_config_test dlls/dinput/tests dinput_test
14983 wine_fn_config_dll dinput8 enable_dinput8 implib
14984 wine_fn_config_test dlls/dinput8/tests dinput8_test
14985 wine_fn_config_dll dispdib.dll16 enable_win16
14986 wine_fn_config_dll dispex enable_dispex
14987 wine_fn_config_test dlls/dispex/tests dispex_test
14988 wine_fn_config_dll display.drv16 enable_win16
14989 wine_fn_config_dll dmband enable_dmband
14990 wine_fn_config_dll dmcompos enable_dmcompos
14991 wine_fn_config_dll dmime enable_dmime
14992 wine_fn_config_test dlls/dmime/tests dmime_test
14993 wine_fn_config_dll dmloader enable_dmloader
14994 wine_fn_config_test dlls/dmloader/tests dmloader_test
14995 wine_fn_config_dll dmscript enable_dmscript
14996 wine_fn_config_dll dmstyle enable_dmstyle
14997 wine_fn_config_dll dmsynth enable_dmsynth
14998 wine_fn_config_dll dmusic enable_dmusic
14999 wine_fn_config_dll dmusic32 enable_dmusic32 implib
15000 wine_fn_config_dll dnsapi enable_dnsapi implib
15001 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
15002 wine_fn_config_dll dplay enable_dplay implib
15003 wine_fn_config_dll dplayx enable_dplayx implib
15004 wine_fn_config_test dlls/dplayx/tests dplayx_test
15005 wine_fn_config_dll dpnaddr enable_dpnaddr
15006 wine_fn_config_dll dpnet enable_dpnet implib
15007 wine_fn_config_test dlls/dpnet/tests dpnet_test
15008 wine_fn_config_dll dpnhpast enable_dpnhpast
15009 wine_fn_config_dll dpnlobby enable_dpnlobby
15010 wine_fn_config_dll dpwsockx enable_dpwsockx
15011 wine_fn_config_dll drmclien enable_drmclien
15012 wine_fn_config_dll dsound enable_dsound implib
15013 wine_fn_config_test dlls/dsound/tests dsound_test
15014 wine_fn_config_dll dssenh enable_dssenh
15015 wine_fn_config_dll dswave enable_dswave
15016 wine_fn_config_dll dwmapi enable_dwmapi implib
15017 wine_fn_config_dll dxdiagn enable_dxdiagn po
15018 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
15019 wine_fn_config_lib dxerr8
15020 wine_fn_config_lib dxerr9
15021 wine_fn_config_dll dxgi enable_dxgi implib
15022 wine_fn_config_test dlls/dxgi/tests dxgi_test
15023 wine_fn_config_lib dxguid
15024 wine_fn_config_dll explorerframe enable_explorerframe
15025 wine_fn_config_test dlls/explorerframe/tests explorerframe_test
15026 wine_fn_config_dll faultrep enable_faultrep implib
15027 wine_fn_config_test dlls/faultrep/tests faultrep_test
15028 wine_fn_config_dll fltlib enable_fltlib
15029 wine_fn_config_dll fusion enable_fusion
15030 wine_fn_config_test dlls/fusion/tests fusion_test
15031 wine_fn_config_dll fwpuclnt enable_fwpuclnt
15032 wine_fn_config_dll gameux enable_gameux
15033 wine_fn_config_test dlls/gameux/tests gameux_test
15034 wine_fn_config_dll gdi.exe16 enable_win16
15035 wine_fn_config_dll gdi32 enable_gdi32 implib,po
15036 wine_fn_config_test dlls/gdi32/tests gdi32_test
15037 wine_fn_config_dll gdiplus enable_gdiplus implib
15038 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
15039 wine_fn_config_dll glu32 enable_glu32 implib
15040 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds po
15041 wine_fn_config_dll gpkcsp enable_gpkcsp
15042 wine_fn_config_dll hal enable_hal
15043 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
15044 wine_fn_config_dll hid enable_hid implib
15045 wine_fn_config_dll hlink enable_hlink implib
15046 wine_fn_config_test dlls/hlink/tests hlink_test
15047 wine_fn_config_dll hnetcfg enable_hnetcfg
15048 wine_fn_config_dll httpapi enable_httpapi
15049 wine_fn_config_dll iccvid enable_iccvid po
15050 wine_fn_config_dll icmp enable_icmp
15051 wine_fn_config_dll ieframe enable_ieframe implib,po
15052 wine_fn_config_test dlls/ieframe/tests ieframe_test
15053 wine_fn_config_dll ifsmgr.vxd enable_win16
15054 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
15055 wine_fn_config_dll imagehlp enable_imagehlp implib
15056 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
15057 wine_fn_config_dll imm.dll16 enable_win16
15058 wine_fn_config_dll imm32 enable_imm32 implib
15059 wine_fn_config_test dlls/imm32/tests imm32_test
15060 wine_fn_config_dll inetcomm enable_inetcomm implib
15061 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
15062 wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
15063 wine_fn_config_dll inetmib1 enable_inetmib1
15064 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
15065 wine_fn_config_dll infosoft enable_infosoft
15066 wine_fn_config_test dlls/infosoft/tests infosoft_test
15067 wine_fn_config_dll initpki enable_initpki
15068 wine_fn_config_dll inkobj enable_inkobj
15069 wine_fn_config_dll inseng enable_inseng
15070 wine_fn_config_dll iphlpapi enable_iphlpapi implib
15071 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
15072 wine_fn_config_dll itircl enable_itircl
15073 wine_fn_config_dll itss enable_itss
15074 wine_fn_config_test dlls/itss/tests itss_test
15075 wine_fn_config_dll jscript enable_jscript po
15076 wine_fn_config_test dlls/jscript/tests jscript_test
15077 wine_fn_config_dll kernel32 enable_kernel32 implib,mc
15078 wine_fn_config_test dlls/kernel32/tests kernel32_test
15079 wine_fn_config_dll keyboard.drv16 enable_win16
15080 wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
15081 wine_fn_config_dll ktmw32 enable_ktmw32
15082 wine_fn_config_dll loadperf enable_loadperf implib
15083 wine_fn_config_dll localspl enable_localspl po
15084 wine_fn_config_test dlls/localspl/tests localspl_test
15085 wine_fn_config_dll localui enable_localui po
15086 wine_fn_config_test dlls/localui/tests localui_test
15087 wine_fn_config_dll lz32 enable_lz32 implib
15088 wine_fn_config_test dlls/lz32/tests lz32_test
15089 wine_fn_config_dll lzexpand.dll16 enable_win16
15090 wine_fn_config_dll mapi32 enable_mapi32 implib,po
15091 wine_fn_config_test dlls/mapi32/tests mapi32_test
15092 wine_fn_config_dll mapistub enable_mapistub
15093 wine_fn_config_dll mciavi32 enable_mciavi32
15094 wine_fn_config_dll mcicda enable_mcicda
15095 wine_fn_config_dll mciqtz32 enable_mciqtz32
15096 wine_fn_config_dll mciseq enable_mciseq
15097 wine_fn_config_dll mciwave enable_mciwave
15098 wine_fn_config_dll midimap enable_midimap
15099 wine_fn_config_dll mlang enable_mlang implib
15100 wine_fn_config_test dlls/mlang/tests mlang_test
15101 wine_fn_config_dll mmcndmgr enable_mmcndmgr
15102 wine_fn_config_dll mmdevapi enable_mmdevapi
15103 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
15104 wine_fn_config_dll mmdevldr.vxd enable_win16
15105 wine_fn_config_dll mmsystem.dll16 enable_win16
15106 wine_fn_config_dll monodebg.vxd enable_win16
15107 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15108 wine_fn_config_dll mouse.drv16 enable_win16
15109 wine_fn_config_dll mpr enable_mpr implib,po
15110 wine_fn_config_dll mprapi enable_mprapi implib
15111 wine_fn_config_dll msacm.dll16 enable_win16
15112 wine_fn_config_dll msacm32.drv enable_msacm32_drv
15113 wine_fn_config_dll msacm32 enable_msacm32 implib,po
15114 wine_fn_config_test dlls/msacm32/tests msacm32_test
15115 wine_fn_config_dll msadp32.acm enable_msadp32_acm
15116 wine_fn_config_dll mscat32 enable_mscat32
15117 wine_fn_config_dll mscms enable_mscms implib
15118 wine_fn_config_test dlls/mscms/tests mscms_test
15119 wine_fn_config_dll mscoree enable_mscoree
15120 wine_fn_config_test dlls/mscoree/tests mscoree_test
15121 wine_fn_config_dll msctf enable_msctf
15122 wine_fn_config_test dlls/msctf/tests msctf_test
15123 wine_fn_config_dll msdaps enable_msdaps
15124 wine_fn_config_dll msdmo enable_msdmo implib
15125 wine_fn_config_dll msftedit enable_msftedit
15126 wine_fn_config_dll msg711.acm enable_msg711_acm
15127 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15128 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
15129 wine_fn_config_dll mshtml enable_mshtml implib,po
15130 wine_fn_config_test dlls/mshtml/tests mshtml_test
15131 wine_fn_config_dll msi enable_msi implib,po
15132 wine_fn_config_test dlls/msi/tests msi_test
15133 wine_fn_config_dll msimg32 enable_msimg32 implib
15134 wine_fn_config_dll msimsg enable_msimsg
15135 wine_fn_config_dll msimtf enable_msimtf
15136 wine_fn_config_dll msisip enable_msisip
15137 wine_fn_config_dll msisys.ocx enable_msisys_ocx
15138 wine_fn_config_dll msnet32 enable_msnet32
15139 wine_fn_config_dll mspatcha enable_mspatcha
15140 wine_fn_config_dll msrle32 enable_msrle32 po
15141 wine_fn_config_dll mssign32 enable_mssign32
15142 wine_fn_config_dll mssip32 enable_mssip32
15143 wine_fn_config_dll mstask enable_mstask
15144 wine_fn_config_test dlls/mstask/tests mstask_test
15145 wine_fn_config_dll msvcirt enable_msvcirt
15146 wine_fn_config_dll msvcp100 enable_msvcp100
15147 wine_fn_config_dll msvcp60 enable_msvcp60
15148 wine_fn_config_dll msvcp70 enable_msvcp70
15149 wine_fn_config_dll msvcp71 enable_msvcp71
15150 wine_fn_config_dll msvcp80 enable_msvcp80
15151 wine_fn_config_dll msvcp90 enable_msvcp90
15152 wine_fn_config_test dlls/msvcp90/tests msvcp90_test
15153 wine_fn_config_dll msvcr100 enable_msvcr100
15154 wine_fn_config_dll msvcr70 enable_msvcr70 implib
15155 wine_fn_config_dll msvcr71 enable_msvcr71 implib
15156 wine_fn_config_dll msvcr80 enable_msvcr80
15157 wine_fn_config_dll msvcr90 enable_msvcr90
15158 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
15159 wine_fn_config_dll msvcrt enable_msvcrt implib
15160 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
15161 wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15162 wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15163 wine_fn_config_dll msvcrtd enable_msvcrtd implib
15164 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
15165 wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
15166 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
15167 wine_fn_config_dll msvidc32 enable_msvidc32 po
15168 wine_fn_config_dll msvideo.dll16 enable_win16
15169 wine_fn_config_dll mswsock enable_mswsock implib
15170 wine_fn_config_dll msxml enable_msxml
15171 wine_fn_config_dll msxml2 enable_msxml2
15172 wine_fn_config_dll msxml3 enable_msxml3
15173 wine_fn_config_test dlls/msxml3/tests msxml3_test
15174 wine_fn_config_dll msxml4 enable_msxml4
15175 wine_fn_config_dll msxml6 enable_msxml6
15176 wine_fn_config_dll nddeapi enable_nddeapi implib
15177 wine_fn_config_dll netapi32 enable_netapi32 implib
15178 wine_fn_config_test dlls/netapi32/tests netapi32_test
15179 wine_fn_config_dll newdev enable_newdev implib
15180 wine_fn_config_dll normaliz enable_normaliz implib
15181 wine_fn_config_dll npmshtml enable_npmshtml
15182 wine_fn_config_dll ntdll enable_ntdll implib
15183 wine_fn_config_test dlls/ntdll/tests ntdll_test
15184 wine_fn_config_dll ntdsapi enable_ntdsapi implib
15185 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
15186 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
15187 wine_fn_config_dll ntprint enable_ntprint
15188 wine_fn_config_test dlls/ntprint/tests ntprint_test
15189 wine_fn_config_dll objsel enable_objsel
15190 wine_fn_config_dll odbc32 enable_odbc32 implib
15191 wine_fn_config_dll odbccp32 enable_odbccp32 implib
15192 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
15193 wine_fn_config_dll ole2.dll16 enable_win16
15194 wine_fn_config_dll ole2conv.dll16 enable_win16
15195 wine_fn_config_dll ole2disp.dll16 enable_win16
15196 wine_fn_config_dll ole2nls.dll16 enable_win16
15197 wine_fn_config_dll ole2prox.dll16 enable_win16
15198 wine_fn_config_dll ole2thk.dll16 enable_win16
15199 wine_fn_config_dll ole32 enable_ole32 implib
15200 wine_fn_config_test dlls/ole32/tests ole32_test
15201 wine_fn_config_dll oleacc enable_oleacc implib,po
15202 wine_fn_config_test dlls/oleacc/tests oleacc_test
15203 wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
15204 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
15205 wine_fn_config_dll olecli.dll16 enable_win16
15206 wine_fn_config_dll olecli32 enable_olecli32 implib
15207 wine_fn_config_dll oledb32 enable_oledb32
15208 wine_fn_config_test dlls/oledb32/tests oledb32_test
15209 wine_fn_config_dll oledlg enable_oledlg implib,po
15210 wine_fn_config_dll olepro32 enable_olepro32 implib
15211 wine_fn_config_dll olesvr.dll16 enable_win16
15212 wine_fn_config_dll olesvr32 enable_olesvr32 implib
15213 wine_fn_config_dll olethk32 enable_olethk32
15214 wine_fn_config_dll openal32 enable_openal32
15215 wine_fn_config_dll opencl enable_opencl
15216 wine_fn_config_dll opengl32 enable_opengl32 implib
15217 wine_fn_config_test dlls/opengl32/tests opengl32_test
15218 wine_fn_config_dll pdh enable_pdh implib
15219 wine_fn_config_test dlls/pdh/tests pdh_test
15220 wine_fn_config_dll photometadatahandler enable_photometadatahandler
15221 wine_fn_config_dll pidgen enable_pidgen
15222 wine_fn_config_dll powrprof enable_powrprof implib
15223 wine_fn_config_dll printui enable_printui
15224 wine_fn_config_dll propsys enable_propsys implib
15225 wine_fn_config_test dlls/propsys/tests propsys_test
15226 wine_fn_config_dll psapi enable_psapi implib
15227 wine_fn_config_test dlls/psapi/tests psapi_test
15228 wine_fn_config_dll pstorec enable_pstorec
15229 wine_fn_config_dll qcap enable_qcap
15230 wine_fn_config_dll qedit enable_qedit
15231 wine_fn_config_test dlls/qedit/tests qedit_test
15232 wine_fn_config_dll qmgr enable_qmgr
15233 wine_fn_config_test dlls/qmgr/tests qmgr_test
15234 wine_fn_config_dll qmgrprxy enable_qmgrprxy
15235 wine_fn_config_dll quartz enable_quartz implib
15236 wine_fn_config_test dlls/quartz/tests quartz_test
15237 wine_fn_config_dll query enable_query
15238 wine_fn_config_dll rasapi16.dll16 enable_win16
15239 wine_fn_config_dll rasapi32 enable_rasapi32 implib
15240 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
15241 wine_fn_config_dll rasdlg enable_rasdlg implib
15242 wine_fn_config_dll regapi enable_regapi
15243 wine_fn_config_dll resutils enable_resutils implib
15244 wine_fn_config_dll riched20 enable_riched20 implib
15245 wine_fn_config_test dlls/riched20/tests riched20_test
15246 wine_fn_config_dll riched32 enable_riched32
15247 wine_fn_config_test dlls/riched32/tests riched32_test
15248 wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
15249 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
15250 wine_fn_config_dll rsabase enable_rsabase
15251 wine_fn_config_dll rsaenh enable_rsaenh implib
15252 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
15253 wine_fn_config_dll rstrtmgr enable_rstrtmgr
15254 wine_fn_config_dll rtutils enable_rtutils implib
15255 wine_fn_config_dll samlib enable_samlib
15256 wine_fn_config_dll sane.ds enable_sane_ds po
15257 wine_fn_config_dll scarddlg enable_scarddlg
15258 wine_fn_config_dll sccbase enable_sccbase
15259 wine_fn_config_dll schannel enable_schannel
15260 wine_fn_config_test dlls/schannel/tests schannel_test
15261 wine_fn_config_dll scrrun enable_scrrun
15262 wine_fn_config_dll secur32 enable_secur32 implib
15263 wine_fn_config_test dlls/secur32/tests secur32_test
15264 wine_fn_config_dll security enable_security
15265 wine_fn_config_dll sensapi enable_sensapi implib
15266 wine_fn_config_dll serialui enable_serialui implib,po
15267 wine_fn_config_test dlls/serialui/tests serialui_test
15268 wine_fn_config_dll setupapi enable_setupapi implib,po
15269 wine_fn_config_test dlls/setupapi/tests setupapi_test
15270 wine_fn_config_dll setupx.dll16 enable_win16
15271 wine_fn_config_dll sfc enable_sfc implib
15272 wine_fn_config_dll sfc_os enable_sfc_os implib
15273 wine_fn_config_dll shdoclc enable_shdoclc po
15274 wine_fn_config_dll shdocvw enable_shdocvw implib
15275 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
15276 wine_fn_config_dll shell.dll16 enable_win16
15277 wine_fn_config_dll shell32 enable_shell32 implib,po
15278 wine_fn_config_test dlls/shell32/tests shell32_test
15279 wine_fn_config_dll shfolder enable_shfolder implib
15280 wine_fn_config_dll shlwapi enable_shlwapi implib,po
15281 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
15282 wine_fn_config_dll slbcsp enable_slbcsp
15283 wine_fn_config_dll slc enable_slc implib
15284 wine_fn_config_dll snmpapi enable_snmpapi implib
15285 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
15286 wine_fn_config_dll softpub enable_softpub
15287 wine_fn_config_dll sound.drv16 enable_win16
15288 wine_fn_config_dll spoolss enable_spoolss implib
15289 wine_fn_config_test dlls/spoolss/tests spoolss_test
15290 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15291 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
15292 wine_fn_config_dll sti enable_sti implib
15293 wine_fn_config_test dlls/sti/tests sti_test
15294 wine_fn_config_dll storage.dll16 enable_win16
15295 wine_fn_config_dll stress.dll16 enable_win16
15296 wine_fn_config_lib strmbase
15297 wine_fn_config_lib strmiids
15298 wine_fn_config_dll svrapi enable_svrapi
15299 wine_fn_config_dll sxs enable_sxs
15300 wine_fn_config_dll system.drv16 enable_win16
15301 wine_fn_config_dll t2embed enable_t2embed
15302 wine_fn_config_dll tapi32 enable_tapi32 implib
15303 wine_fn_config_dll toolhelp.dll16 enable_win16
15304 wine_fn_config_dll traffic enable_traffic
15305 wine_fn_config_dll twain.dll16 enable_win16
15306 wine_fn_config_dll twain_32 enable_twain_32
15307 wine_fn_config_test dlls/twain_32/tests twain_32_test
15308 wine_fn_config_dll typelib.dll16 enable_win16
15309 wine_fn_config_dll unicows enable_unicows implib
15310 wine_fn_config_dll updspapi enable_updspapi
15311 wine_fn_config_dll url enable_url implib
15312 wine_fn_config_dll urlmon enable_urlmon implib
15313 wine_fn_config_test dlls/urlmon/tests urlmon_test
15314 wine_fn_config_dll usbd.sys enable_usbd_sys implib
15315 wine_fn_config_dll user.exe16 enable_win16
15316 wine_fn_config_dll user32 enable_user32 implib,po
15317 wine_fn_config_test dlls/user32/tests user32_test
15318 wine_fn_config_dll userenv enable_userenv implib
15319 wine_fn_config_test dlls/userenv/tests userenv_test
15320 wine_fn_config_dll usp10 enable_usp10 implib
15321 wine_fn_config_test dlls/usp10/tests usp10_test
15322 wine_fn_config_lib uuid
15323 wine_fn_config_dll uxtheme enable_uxtheme implib
15324 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
15325 wine_fn_config_dll vbscript enable_vbscript
15326 wine_fn_config_test dlls/vbscript/tests vbscript_test
15327 wine_fn_config_dll vcomp enable_vcomp
15328 wine_fn_config_dll vdhcp.vxd enable_win16
15329 wine_fn_config_dll vdmdbg enable_vdmdbg implib
15330 wine_fn_config_dll ver.dll16 enable_win16
15331 wine_fn_config_dll version enable_version implib
15332 wine_fn_config_test dlls/version/tests version_test
15333 wine_fn_config_dll vmm.vxd enable_win16
15334 wine_fn_config_dll vnbt.vxd enable_win16
15335 wine_fn_config_dll vnetbios.vxd enable_win16
15336 wine_fn_config_dll vtdapi.vxd enable_win16
15337 wine_fn_config_dll vwin32.vxd enable_win16
15338 wine_fn_config_dll w32skrnl enable_win16
15339 wine_fn_config_dll w32sys.dll16 enable_win16
15340 wine_fn_config_dll wbemprox enable_wbemprox
15341 wine_fn_config_dll wer enable_wer implib
15342 wine_fn_config_test dlls/wer/tests wer_test
15343 wine_fn_config_dll wiaservc enable_wiaservc
15344 wine_fn_config_dll win32s16.dll16 enable_win16
15345 wine_fn_config_dll win87em.dll16 enable_win16
15346 wine_fn_config_dll winaspi.dll16 enable_win16
15347 wine_fn_config_dll windebug.dll16 enable_win16
15348 wine_fn_config_dll windowscodecs enable_windowscodecs implib
15349 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
15350 wine_fn_config_dll winealsa.drv enable_winealsa_drv
15351 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
15352 wine_fn_config_lib winecrt0
15353 wine_fn_config_dll wined3d enable_wined3d implib
15354 wine_fn_config_dll winegstreamer enable_winegstreamer
15355 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15356 wine_fn_config_dll winemapi enable_winemapi
15357 wine_fn_config_dll winemp3.acm enable_winemp3_acm
15358 wine_fn_config_dll wineoss.drv enable_wineoss_drv
15359 wine_fn_config_dll wineps.drv enable_wineps_drv install-lib,po
15360 wine_fn_config_dll wineps16.drv16 enable_win16
15361 wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
15362 wine_fn_config_dll winequartz.drv enable_winequartz_drv
15363 wine_fn_config_dll winex11.drv enable_winex11_drv
15364 wine_fn_config_dll wing.dll16 enable_win16
15365 wine_fn_config_dll wing32 enable_wing32
15366 wine_fn_config_dll winhttp enable_winhttp implib
15367 wine_fn_config_test dlls/winhttp/tests winhttp_test
15368 wine_fn_config_dll wininet enable_wininet implib,po
15369 wine_fn_config_test dlls/wininet/tests wininet_test
15370 wine_fn_config_dll winmm enable_winmm implib,po
15371 wine_fn_config_test dlls/winmm/tests winmm_test
15372 wine_fn_config_dll winnls.dll16 enable_win16
15373 wine_fn_config_dll winnls32 enable_winnls32 implib
15374 wine_fn_config_dll winscard enable_winscard implib
15375 wine_fn_config_dll winsock.dll16 enable_win16
15376 wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
15377 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
15378 wine_fn_config_dll winsta enable_winsta
15379 wine_fn_config_dll wintab.dll16 enable_win16
15380 wine_fn_config_dll wintab32 enable_wintab32 implib
15381 wine_fn_config_test dlls/wintab32/tests wintab32_test
15382 wine_fn_config_dll wintrust enable_wintrust implib
15383 wine_fn_config_test dlls/wintrust/tests wintrust_test
15384 wine_fn_config_dll wlanapi enable_wlanapi
15385 wine_fn_config_dll wldap32 enable_wldap32 implib,po
15386 wine_fn_config_test dlls/wldap32/tests wldap32_test
15387 wine_fn_config_dll wmi enable_wmi
15388 wine_fn_config_dll wmiutils enable_wmiutils
15389 wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15390 wine_fn_config_dll wow32 enable_win16 implib
15391 wine_fn_config_dll ws2_32 enable_ws2_32 implib
15392 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
15393 wine_fn_config_dll wshom.ocx enable_wshom_ocx
15394 wine_fn_config_test dlls/wshom.ocx/tests wshom.ocx_test
15395 wine_fn_config_dll wsock32 enable_wsock32 implib
15396 wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
15397 wine_fn_config_dll wuapi enable_wuapi
15398 wine_fn_config_dll wuaueng enable_wuaueng
15399 wine_fn_config_dll xapofx1_1 enable_xapofx1_1
15400 wine_fn_config_dll xinput1_1 enable_xinput1_1
15401 wine_fn_config_dll xinput1_2 enable_xinput1_2
15402 wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
15403 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
15404 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15405 wine_fn_config_dll xmllite enable_xmllite
15406 wine_fn_config_test dlls/xmllite/tests xmllite_test
15407 wine_fn_config_dll xolehlp enable_xolehlp
15408 wine_fn_config_dll xpsprint enable_xpsprint
15409 wine_fn_config_makefile documentation enable_documentation
15410 wine_fn_config_makefile fonts enable_fonts install-lib
15411 wine_fn_config_makefile include enable_include install-dev
15412 wine_fn_config_makefile libs/port enable_libs_port
15413 wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
15414 wine_fn_config_makefile libs/wpp enable_libs_wpp
15415 wine_fn_config_makefile loader enable_loader install-lib,manpage
15416 wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
15417 wine_fn_config_program attrib enable_attrib install,po
15418 wine_fn_config_program cabarc enable_cabarc install
15419 wine_fn_config_program cacls enable_cacls install
15420 wine_fn_config_program clock enable_clock install,po
15421 wine_fn_config_program cmd enable_cmd install,po
15422 wine_fn_config_test programs/cmd/tests cmd.exe_test
15423 wine_fn_config_program control enable_control install
15424 wine_fn_config_program cscript enable_cscript install
15425 wine_fn_config_program dxdiag enable_dxdiag install,po
15426 wine_fn_config_program eject enable_eject install
15427 wine_fn_config_program expand enable_expand install
15428 wine_fn_config_program explorer enable_explorer install,po
15429 wine_fn_config_program extrac32 enable_extrac32 install
15430 wine_fn_config_program hh enable_hh install
15431 wine_fn_config_program hostname enable_hostname install,po
15432 wine_fn_config_program icinfo enable_icinfo install
15433 wine_fn_config_program iexplore enable_iexplore install
15434 wine_fn_config_program ipconfig enable_ipconfig install,po
15435 wine_fn_config_program lodctr enable_lodctr install
15436 wine_fn_config_program mofcomp enable_mofcomp install
15437 wine_fn_config_program mshta enable_mshta install
15438 wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
15439 wine_fn_config_program net enable_net install,po
15440 wine_fn_config_program netsh enable_netsh install
15441 wine_fn_config_program ngen enable_ngen install
15442 wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
15443 wine_fn_config_program oleview enable_oleview install,po
15444 wine_fn_config_program ping enable_ping install
15445 wine_fn_config_program plugplay enable_plugplay install
15446 wine_fn_config_program presentationfontcache enable_presentationfontcache install
15447 wine_fn_config_program progman enable_progman install,po
15448 wine_fn_config_program reg enable_reg install,po
15449 wine_fn_config_program regasm enable_regasm install
15450 wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
15451 wine_fn_config_test programs/regedit/tests regedit.exe_test
15452 wine_fn_config_program regsvcs enable_regsvcs install
15453 wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
15454 wine_fn_config_program rpcss enable_rpcss install
15455 wine_fn_config_program rundll.exe16 enable_win16 install
15456 wine_fn_config_program rundll32 enable_rundll32 install
15457 wine_fn_config_program sc enable_sc install
15458 wine_fn_config_program secedit enable_secedit install
15459 wine_fn_config_program servicemodelreg enable_servicemodelreg install
15460 wine_fn_config_program services enable_services install
15461 wine_fn_config_program spoolsv enable_spoolsv install
15462 wine_fn_config_program start enable_start install,po
15463 wine_fn_config_program svchost enable_svchost install
15464 wine_fn_config_program taskkill enable_taskkill install,po
15465 wine_fn_config_program taskmgr enable_taskmgr install,po
15466 wine_fn_config_program termsv enable_termsv install
15467 wine_fn_config_program uninstaller enable_uninstaller install,po
15468 wine_fn_config_program unlodctr enable_unlodctr install
15469 wine_fn_config_program view enable_view install,po
15470 wine_fn_config_program wineboot enable_wineboot install,installbin,manpage,po
15471 wine_fn_config_program winebrowser enable_winebrowser install
15472 wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15473 wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15474 wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
15475 wine_fn_config_program winedevice enable_winedevice install
15476 wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
15477 wine_fn_config_program winemenubuilder enable_winemenubuilder install
15478 wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
15479 wine_fn_config_program winemsibuilder enable_winemsibuilder install
15480 wine_fn_config_program winepath enable_winepath install,installbin,manpage
15481 wine_fn_config_program winetest enable_winetest
15482 wine_fn_config_program winevdm enable_win16 install
15483 wine_fn_config_program winhelp.exe16 enable_win16 install
15484 wine_fn_config_program winhlp32 enable_winhlp32 install,po
15485 wine_fn_config_program winoldap.mod16 enable_win16 install
15486 wine_fn_config_program winver enable_winver install
15487 wine_fn_config_program wmic enable_wmic install
15488 wine_fn_config_program wordpad enable_wordpad install,po
15489 wine_fn_config_program write enable_write install,po
15490 wine_fn_config_program wscript enable_wscript install
15491 wine_fn_config_test programs/wscript/tests wscript.exe_test
15492 wine_fn_config_program xcopy enable_xcopy install,po
15493 wine_fn_config_makefile server enable_server install-lib,manpage
15494 wine_fn_config_tool tools install-dev,install-lib,manpage
15495 wine_fn_config_tool tools/widl install-dev,manpage
15496 wine_fn_config_tool tools/winebuild install-dev,manpage
15497 wine_fn_config_tool tools/winedump install-dev,manpage
15498 wine_fn_config_tool tools/winegcc install-dev,manpage
15499 wine_fn_config_tool tools/wmc install-dev,manpage
15500 wine_fn_config_tool tools/wrc install-dev,manpage
15502 LINGUAS="\
15503 ar \
15504 bg \
15505 ca \
15506 cs \
15507 da \
15508 de \
15509 el \
15510 en \
15511 en_US \
15512 eo \
15513 es \
15514 fa \
15515 fi \
15516 fr \
15517 he \
15518 hi \
15519 hu \
15520 it \
15521 ja \
15522 ko \
15523 lt \
15524 ml \
15525 nb_NO \
15526 nl \
15527 or \
15528 pa \
15529 pl \
15530 pt_BR \
15531 pt_PT \
15532 rm \
15533 ro \
15534 ru \
15535 sk \
15536 sl \
15537 sr_RS@cyrillic \
15538 sr_RS@latin \
15539 sv \
15540 te \
15541 th \
15542 tr \
15543 uk \
15544 wa \
15545 zh_CN \
15546 zh_TW"
15550 ac_config_commands="$ac_config_commands Makefile"
15553 ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
15557 if test "x$enable_maintainer_mode" = xyes
15558 then
15559 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15560 cd \$(srcdir) && autoconf --warnings=all
15561 \$(srcdir)/include/config.h.in: include/stamp-h.in
15562 \$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15563 cd \$(srcdir) && autoheader --warnings=all
15564 @echo timestamp > \$@"
15567 if test "x$with_gettextpo" = xyes
15568 then
15569 test "$srcdir" = . || as_fn_error $? "Rebuilding po files is not supported for out of tree builds." "$LINENO" 5
15570 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "ALL_POT_FILES =$ALL_POT_FILES
15571 \$(LINGUAS:%=po/%.po): \$(srcdir)/po/wine.pot
15572 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
15573 \$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15574 msgcat -o \$@ \$(ALL_POT_FILES)"
15577 if test "$MSGFMT" != false
15578 then
15579 PORCFLAGS="--po-dir=\$(top_builddir)/po"
15581 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: \$(ALL_MO_FILES)"
15582 else
15583 LINGUAS=
15586 if test "x$enable_tools" != xno
15587 then
15588 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15589 clean:: __clean__
15590 \$(RM) tools/makedep\$(EXEEXT)"
15593 if test -n "$with_wine64"
15594 then
15595 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15596 fonts server tools:
15597 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
15598 $with_wine64/loader/wine:
15599 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
15600 $with_wine64/loader/wine-preloader:
15601 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
15602 clean::
15603 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
15606 cat >confcache <<\_ACEOF
15607 # This file is a shell script that caches the results of configure
15608 # tests run on this system so they can be shared between configure
15609 # scripts and configure runs, see configure's option --config-cache.
15610 # It is not useful on other systems. If it contains results you don't
15611 # want to keep, you may remove or edit it.
15613 # config.status only pays attention to the cache file if you give it
15614 # the --recheck option to rerun configure.
15616 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15617 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15618 # following values.
15620 _ACEOF
15622 # The following way of writing the cache mishandles newlines in values,
15623 # but we know of no workaround that is simple, portable, and efficient.
15624 # So, we kill variables containing newlines.
15625 # Ultrix sh set writes to stderr and can't be redirected directly,
15626 # and sets the high bit in the cache file unless we assign to the vars.
15628 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15629 eval ac_val=\$$ac_var
15630 case $ac_val in #(
15631 *${as_nl}*)
15632 case $ac_var in #(
15633 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15634 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15635 esac
15636 case $ac_var in #(
15637 _ | IFS | as_nl) ;; #(
15638 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15639 *) { eval $ac_var=; unset $ac_var;} ;;
15640 esac ;;
15641 esac
15642 done
15644 (set) 2>&1 |
15645 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15646 *${as_nl}ac_space=\ *)
15647 # `set' does not quote correctly, so add quotes: double-quote
15648 # substitution turns \\\\ into \\, and sed turns \\ into \.
15649 sed -n \
15650 "s/'/'\\\\''/g;
15651 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15652 ;; #(
15654 # `set' quotes correctly as required by POSIX, so do not add quotes.
15655 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15657 esac |
15658 sort
15660 sed '
15661 /^ac_cv_env_/b end
15662 t clear
15663 :clear
15664 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15665 t end
15666 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15667 :end' >>confcache
15668 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15669 if test -w "$cache_file"; then
15670 if test "x$cache_file" != "x/dev/null"; then
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15672 $as_echo "$as_me: updating cache $cache_file" >&6;}
15673 if test ! -f "$cache_file" || test -h "$cache_file"; then
15674 cat confcache >"$cache_file"
15675 else
15676 case $cache_file in #(
15677 */* | ?:*)
15678 mv -f confcache "$cache_file"$$ &&
15679 mv -f "$cache_file"$$ "$cache_file" ;; #(
15681 mv -f confcache "$cache_file" ;;
15682 esac
15685 else
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15687 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15690 rm -f confcache
15692 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15693 # Let make expand exec_prefix.
15694 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15696 DEFS=-DHAVE_CONFIG_H
15698 ac_libobjs=
15699 ac_ltlibobjs=
15701 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15702 # 1. Remove the extension, and $U if already installed.
15703 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15704 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15705 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15706 # will be set to the directory where LIBOBJS objects are built.
15707 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15708 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15709 done
15710 LIBOBJS=$ac_libobjs
15712 LTLIBOBJS=$ac_ltlibobjs
15716 : "${CONFIG_STATUS=./config.status}"
15717 ac_write_fail=0
15718 ac_clean_files_save=$ac_clean_files
15719 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15721 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15722 as_write_fail=0
15723 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15724 #! $SHELL
15725 # Generated by $as_me.
15726 # Run this file to recreate the current configuration.
15727 # Compiler output produced by configure, useful for debugging
15728 # configure, is in config.log if it exists.
15730 debug=false
15731 ac_cs_recheck=false
15732 ac_cs_silent=false
15734 SHELL=\${CONFIG_SHELL-$SHELL}
15735 export SHELL
15736 _ASEOF
15737 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15738 ## -------------------- ##
15739 ## M4sh Initialization. ##
15740 ## -------------------- ##
15742 # Be more Bourne compatible
15743 DUALCASE=1; export DUALCASE # for MKS sh
15744 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15745 emulate sh
15746 NULLCMD=:
15747 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15748 # is contrary to our usage. Disable this feature.
15749 alias -g '${1+"$@"}'='"$@"'
15750 setopt NO_GLOB_SUBST
15751 else
15752 case `(set -o) 2>/dev/null` in #(
15753 *posix*) :
15754 set -o posix ;; #(
15755 *) :
15757 esac
15761 as_nl='
15763 export as_nl
15764 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15765 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15766 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15767 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15768 # Prefer a ksh shell builtin over an external printf program on Solaris,
15769 # but without wasting forks for bash or zsh.
15770 if test -z "$BASH_VERSION$ZSH_VERSION" \
15771 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15772 as_echo='print -r --'
15773 as_echo_n='print -rn --'
15774 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15775 as_echo='printf %s\n'
15776 as_echo_n='printf %s'
15777 else
15778 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15779 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15780 as_echo_n='/usr/ucb/echo -n'
15781 else
15782 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15783 as_echo_n_body='eval
15784 arg=$1;
15785 case $arg in #(
15786 *"$as_nl"*)
15787 expr "X$arg" : "X\\(.*\\)$as_nl";
15788 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15789 esac;
15790 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15792 export as_echo_n_body
15793 as_echo_n='sh -c $as_echo_n_body as_echo'
15795 export as_echo_body
15796 as_echo='sh -c $as_echo_body as_echo'
15799 # The user is always right.
15800 if test "${PATH_SEPARATOR+set}" != set; then
15801 PATH_SEPARATOR=:
15802 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15803 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15804 PATH_SEPARATOR=';'
15809 # IFS
15810 # We need space, tab and new line, in precisely that order. Quoting is
15811 # there to prevent editors from complaining about space-tab.
15812 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15813 # splitting by setting IFS to empty value.)
15814 IFS=" "" $as_nl"
15816 # Find who we are. Look in the path if we contain no directory separator.
15817 as_myself=
15818 case $0 in #((
15819 *[\\/]* ) as_myself=$0 ;;
15820 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15821 for as_dir in $PATH
15823 IFS=$as_save_IFS
15824 test -z "$as_dir" && as_dir=.
15825 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15826 done
15827 IFS=$as_save_IFS
15830 esac
15831 # We did not find ourselves, most probably we were run as `sh COMMAND'
15832 # in which case we are not to be found in the path.
15833 if test "x$as_myself" = x; then
15834 as_myself=$0
15836 if test ! -f "$as_myself"; then
15837 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15838 exit 1
15841 # Unset variables that we do not need and which cause bugs (e.g. in
15842 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15843 # suppresses any "Segmentation fault" message there. '((' could
15844 # trigger a bug in pdksh 5.2.14.
15845 for as_var in BASH_ENV ENV MAIL MAILPATH
15846 do eval test x\${$as_var+set} = xset \
15847 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15848 done
15849 PS1='$ '
15850 PS2='> '
15851 PS4='+ '
15853 # NLS nuisances.
15854 LC_ALL=C
15855 export LC_ALL
15856 LANGUAGE=C
15857 export LANGUAGE
15859 # CDPATH.
15860 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15863 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15864 # ----------------------------------------
15865 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15866 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15867 # script with STATUS, using 1 if that was 0.
15868 as_fn_error ()
15870 as_status=$1; test $as_status -eq 0 && as_status=1
15871 if test "$4"; then
15872 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15873 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15875 $as_echo "$as_me: error: $2" >&2
15876 as_fn_exit $as_status
15877 } # as_fn_error
15880 # as_fn_set_status STATUS
15881 # -----------------------
15882 # Set $? to STATUS, without forking.
15883 as_fn_set_status ()
15885 return $1
15886 } # as_fn_set_status
15888 # as_fn_exit STATUS
15889 # -----------------
15890 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15891 as_fn_exit ()
15893 set +e
15894 as_fn_set_status $1
15895 exit $1
15896 } # as_fn_exit
15898 # as_fn_unset VAR
15899 # ---------------
15900 # Portably unset VAR.
15901 as_fn_unset ()
15903 { eval $1=; unset $1;}
15905 as_unset=as_fn_unset
15906 # as_fn_append VAR VALUE
15907 # ----------------------
15908 # Append the text in VALUE to the end of the definition contained in VAR. Take
15909 # advantage of any shell optimizations that allow amortized linear growth over
15910 # repeated appends, instead of the typical quadratic growth present in naive
15911 # implementations.
15912 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15913 eval 'as_fn_append ()
15915 eval $1+=\$2
15917 else
15918 as_fn_append ()
15920 eval $1=\$$1\$2
15922 fi # as_fn_append
15924 # as_fn_arith ARG...
15925 # ------------------
15926 # Perform arithmetic evaluation on the ARGs, and store the result in the
15927 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15928 # must be portable across $(()) and expr.
15929 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15930 eval 'as_fn_arith ()
15932 as_val=$(( $* ))
15934 else
15935 as_fn_arith ()
15937 as_val=`expr "$@" || test $? -eq 1`
15939 fi # as_fn_arith
15942 if expr a : '\(a\)' >/dev/null 2>&1 &&
15943 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15944 as_expr=expr
15945 else
15946 as_expr=false
15949 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15950 as_basename=basename
15951 else
15952 as_basename=false
15955 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15956 as_dirname=dirname
15957 else
15958 as_dirname=false
15961 as_me=`$as_basename -- "$0" ||
15962 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15963 X"$0" : 'X\(//\)$' \| \
15964 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15965 $as_echo X/"$0" |
15966 sed '/^.*\/\([^/][^/]*\)\/*$/{
15967 s//\1/
15970 /^X\/\(\/\/\)$/{
15971 s//\1/
15974 /^X\/\(\/\).*/{
15975 s//\1/
15978 s/.*/./; q'`
15980 # Avoid depending upon Character Ranges.
15981 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15982 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15983 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15984 as_cr_digits='0123456789'
15985 as_cr_alnum=$as_cr_Letters$as_cr_digits
15987 ECHO_C= ECHO_N= ECHO_T=
15988 case `echo -n x` in #(((((
15989 -n*)
15990 case `echo 'xy\c'` in
15991 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15992 xy) ECHO_C='\c';;
15993 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15994 ECHO_T=' ';;
15995 esac;;
15997 ECHO_N='-n';;
15998 esac
16000 rm -f conf$$ conf$$.exe conf$$.file
16001 if test -d conf$$.dir; then
16002 rm -f conf$$.dir/conf$$.file
16003 else
16004 rm -f conf$$.dir
16005 mkdir conf$$.dir 2>/dev/null
16007 if (echo >conf$$.file) 2>/dev/null; then
16008 if ln -s conf$$.file conf$$ 2>/dev/null; then
16009 as_ln_s='ln -s'
16010 # ... but there are two gotchas:
16011 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16012 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16013 # In both cases, we have to default to `cp -p'.
16014 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16015 as_ln_s='cp -p'
16016 elif ln conf$$.file conf$$ 2>/dev/null; then
16017 as_ln_s=ln
16018 else
16019 as_ln_s='cp -p'
16021 else
16022 as_ln_s='cp -p'
16024 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16025 rmdir conf$$.dir 2>/dev/null
16028 # as_fn_mkdir_p
16029 # -------------
16030 # Create "$as_dir" as a directory, including parents if necessary.
16031 as_fn_mkdir_p ()
16034 case $as_dir in #(
16035 -*) as_dir=./$as_dir;;
16036 esac
16037 test -d "$as_dir" || eval $as_mkdir_p || {
16038 as_dirs=
16039 while :; do
16040 case $as_dir in #(
16041 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16042 *) as_qdir=$as_dir;;
16043 esac
16044 as_dirs="'$as_qdir' $as_dirs"
16045 as_dir=`$as_dirname -- "$as_dir" ||
16046 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16047 X"$as_dir" : 'X\(//\)[^/]' \| \
16048 X"$as_dir" : 'X\(//\)$' \| \
16049 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16050 $as_echo X"$as_dir" |
16051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16052 s//\1/
16055 /^X\(\/\/\)[^/].*/{
16056 s//\1/
16059 /^X\(\/\/\)$/{
16060 s//\1/
16063 /^X\(\/\).*/{
16064 s//\1/
16067 s/.*/./; q'`
16068 test -d "$as_dir" && break
16069 done
16070 test -z "$as_dirs" || eval "mkdir $as_dirs"
16071 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16074 } # as_fn_mkdir_p
16075 if mkdir -p . 2>/dev/null; then
16076 as_mkdir_p='mkdir -p "$as_dir"'
16077 else
16078 test -d ./-p && rmdir ./-p
16079 as_mkdir_p=false
16082 if test -x / >/dev/null 2>&1; then
16083 as_test_x='test -x'
16084 else
16085 if ls -dL / >/dev/null 2>&1; then
16086 as_ls_L_option=L
16087 else
16088 as_ls_L_option=
16090 as_test_x='
16091 eval sh -c '\''
16092 if test -d "$1"; then
16093 test -d "$1/.";
16094 else
16095 case $1 in #(
16096 -*)set "./$1";;
16097 esac;
16098 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16099 ???[sx]*):;;*)false;;esac;fi
16100 '\'' sh
16103 as_executable_p=$as_test_x
16105 # Sed expression to map a string onto a valid CPP name.
16106 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16108 # Sed expression to map a string onto a valid variable name.
16109 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16112 exec 6>&1
16113 ## ----------------------------------- ##
16114 ## Main body of $CONFIG_STATUS script. ##
16115 ## ----------------------------------- ##
16116 _ASEOF
16117 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16120 # Save the log message, to keep $0 and so on meaningful, and to
16121 # report actual input values of CONFIG_FILES etc. instead of their
16122 # values after options handling.
16123 ac_log="
16124 This file was extended by Wine $as_me 1.4, which was
16125 generated by GNU Autoconf 2.68. Invocation command line was
16127 CONFIG_FILES = $CONFIG_FILES
16128 CONFIG_HEADERS = $CONFIG_HEADERS
16129 CONFIG_LINKS = $CONFIG_LINKS
16130 CONFIG_COMMANDS = $CONFIG_COMMANDS
16131 $ $0 $@
16133 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16136 _ACEOF
16138 case $ac_config_files in *"
16139 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16140 esac
16142 case $ac_config_headers in *"
16143 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16144 esac
16147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16148 # Files that config.status was made for.
16149 config_files="$ac_config_files"
16150 config_headers="$ac_config_headers"
16151 config_links="$ac_config_links"
16152 config_commands="$ac_config_commands"
16154 _ACEOF
16156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16157 ac_cs_usage="\
16158 \`$as_me' instantiates files and other configuration actions
16159 from templates according to the current configuration. Unless the files
16160 and actions are specified as TAGs, all are instantiated by default.
16162 Usage: $0 [OPTION]... [TAG]...
16164 -h, --help print this help, then exit
16165 -V, --version print version number and configuration settings, then exit
16166 --config print configuration, then exit
16167 -q, --quiet, --silent
16168 do not print progress messages
16169 -d, --debug don't remove temporary files
16170 --recheck update $as_me by reconfiguring in the same conditions
16171 --file=FILE[:TEMPLATE]
16172 instantiate the configuration file FILE
16173 --header=FILE[:TEMPLATE]
16174 instantiate the configuration header FILE
16176 Configuration files:
16177 $config_files
16179 Configuration headers:
16180 $config_headers
16182 Configuration links:
16183 $config_links
16185 Configuration commands:
16186 $config_commands
16188 Report bugs to <wine-devel@winehq.org>.
16189 Wine home page: <http://www.winehq.org>."
16191 _ACEOF
16192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16193 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16194 ac_cs_version="\\
16195 Wine config.status 1.4
16196 configured by $0, generated by GNU Autoconf 2.68,
16197 with options \\"\$ac_cs_config\\"
16199 Copyright (C) 2010 Free Software Foundation, Inc.
16200 This config.status script is free software; the Free Software Foundation
16201 gives unlimited permission to copy, distribute and modify it."
16203 ac_pwd='$ac_pwd'
16204 srcdir='$srcdir'
16205 INSTALL='$INSTALL'
16206 test -n "\$AWK" || AWK=awk
16207 _ACEOF
16209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16210 # The default lists apply if the user does not specify any file.
16211 ac_need_defaults=:
16212 while test $# != 0
16214 case $1 in
16215 --*=?*)
16216 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16217 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16218 ac_shift=:
16220 --*=)
16221 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16222 ac_optarg=
16223 ac_shift=:
16226 ac_option=$1
16227 ac_optarg=$2
16228 ac_shift=shift
16230 esac
16232 case $ac_option in
16233 # Handling of the options.
16234 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16235 ac_cs_recheck=: ;;
16236 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16237 $as_echo "$ac_cs_version"; exit ;;
16238 --config | --confi | --conf | --con | --co | --c )
16239 $as_echo "$ac_cs_config"; exit ;;
16240 --debug | --debu | --deb | --de | --d | -d )
16241 debug=: ;;
16242 --file | --fil | --fi | --f )
16243 $ac_shift
16244 case $ac_optarg in
16245 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16246 '') as_fn_error $? "missing file argument" ;;
16247 esac
16248 as_fn_append CONFIG_FILES " '$ac_optarg'"
16249 ac_need_defaults=false;;
16250 --header | --heade | --head | --hea )
16251 $ac_shift
16252 case $ac_optarg in
16253 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16254 esac
16255 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16256 ac_need_defaults=false;;
16257 --he | --h)
16258 # Conflict between --help and --header
16259 as_fn_error $? "ambiguous option: \`$1'
16260 Try \`$0 --help' for more information.";;
16261 --help | --hel | -h )
16262 $as_echo "$ac_cs_usage"; exit ;;
16263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16264 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16265 ac_cs_silent=: ;;
16267 # This is an error.
16268 -*) as_fn_error $? "unrecognized option: \`$1'
16269 Try \`$0 --help' for more information." ;;
16271 *) as_fn_append ac_config_targets " $1"
16272 ac_need_defaults=false ;;
16274 esac
16275 shift
16276 done
16278 ac_configure_extra_args=
16280 if $ac_cs_silent; then
16281 exec 6>/dev/null
16282 ac_configure_extra_args="$ac_configure_extra_args --silent"
16285 _ACEOF
16286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16287 if \$ac_cs_recheck; then
16288 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16289 shift
16290 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16291 CONFIG_SHELL='$SHELL'
16292 export CONFIG_SHELL
16293 exec "\$@"
16296 _ACEOF
16297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16298 exec 5>>config.log
16300 echo
16301 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16302 ## Running $as_me. ##
16303 _ASBOX
16304 $as_echo "$ac_log"
16305 } >&5
16307 _ACEOF
16308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16310 # INIT-COMMANDS
16312 wine_fn_output_makefile ()
16314 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16315 $ALL_MAKEFILE_DEPENDS
16316 _WINE_EOF
16317 as_fn_error $? "could not create Makefile" "$LINENO" 5
16320 _ACEOF
16322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16324 # Handling of arguments.
16325 for ac_config_target in $ac_config_targets
16327 case $ac_config_target in
16328 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16329 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
16330 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
16331 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
16332 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16333 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16334 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16335 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
16336 "po/LINGUAS") CONFIG_LINKS="$CONFIG_LINKS po/LINGUAS:po/LINGUAS" ;;
16337 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
16338 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
16339 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
16340 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
16341 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16342 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
16343 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
16344 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
16345 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16346 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16347 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16348 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
16349 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16350 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
16351 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16352 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
16353 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
16355 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16356 esac
16357 done
16360 # If the user did not use the arguments to specify the items to instantiate,
16361 # then the envvar interface is used. Set only those that are not.
16362 # We use the long form for the default assignment because of an extremely
16363 # bizarre bug on SunOS 4.1.3.
16364 if $ac_need_defaults; then
16365 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16366 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16367 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16368 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16371 # Have a temporary directory for convenience. Make it in the build tree
16372 # simply because there is no reason against having it here, and in addition,
16373 # creating and moving files from /tmp can sometimes cause problems.
16374 # Hook for its removal unless debugging.
16375 # Note that there is a small window in which the directory will not be cleaned:
16376 # after its creation but before its name has been assigned to `$tmp'.
16377 $debug ||
16379 tmp= ac_tmp=
16380 trap 'exit_status=$?
16381 : "${ac_tmp:=$tmp}"
16382 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16384 trap 'as_fn_exit 1' 1 2 13 15
16386 # Create a (secure) tmp directory for tmp files.
16389 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16390 test -d "$tmp"
16391 } ||
16393 tmp=./conf$$-$RANDOM
16394 (umask 077 && mkdir "$tmp")
16395 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16396 ac_tmp=$tmp
16398 # Set up the scripts for CONFIG_FILES section.
16399 # No need to generate them if there are no CONFIG_FILES.
16400 # This happens for instance with `./config.status config.h'.
16401 if test -n "$CONFIG_FILES"; then
16403 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16404 ac_cs_awk_getline=:
16405 ac_cs_awk_pipe_init=
16406 ac_cs_awk_read_file='
16407 while ((getline aline < (F[key])) > 0)
16408 print(aline)
16409 close(F[key])'
16410 ac_cs_awk_pipe_fini=
16411 else
16412 ac_cs_awk_getline=false
16413 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16414 ac_cs_awk_read_file='
16415 print "|#_!!_#|"
16416 print "cat " F[key] " &&"
16417 '$ac_cs_awk_pipe_init
16418 # The final `:' finishes the AND list.
16419 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16421 ac_cr=`echo X | tr X '\015'`
16422 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16423 # But we know of no other shell where ac_cr would be empty at this
16424 # point, so we can use a bashism as a fallback.
16425 if test "x$ac_cr" = x; then
16426 eval ac_cr=\$\'\\r\'
16428 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16429 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16430 ac_cs_awk_cr='\\r'
16431 else
16432 ac_cs_awk_cr=$ac_cr
16435 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16436 _ACEOF
16438 # Create commands to substitute file output variables.
16440 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16441 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16442 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16443 echo "_ACAWK" &&
16444 echo "_ACEOF"
16445 } >conf$$files.sh &&
16446 . ./conf$$files.sh ||
16447 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16448 rm -f conf$$files.sh
16451 echo "cat >conf$$subs.awk <<_ACEOF" &&
16452 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16453 echo "_ACEOF"
16454 } >conf$$subs.sh ||
16455 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16456 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16457 ac_delim='%!_!# '
16458 for ac_last_try in false false false false false :; do
16459 . ./conf$$subs.sh ||
16460 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16462 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16463 if test $ac_delim_n = $ac_delim_num; then
16464 break
16465 elif $ac_last_try; then
16466 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16467 else
16468 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16470 done
16471 rm -f conf$$subs.sh
16473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16474 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16475 _ACEOF
16476 sed -n '
16478 s/^/S["/; s/!.*/"]=/
16481 s/^[^!]*!//
16482 :repl
16483 t repl
16484 s/'"$ac_delim"'$//
16485 t delim
16488 s/\(.\{148\}\)..*/\1/
16489 t more1
16490 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16493 b repl
16494 :more1
16495 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16498 s/.\{148\}//
16499 t nl
16500 :delim
16502 s/\(.\{148\}\)..*/\1/
16503 t more2
16504 s/["\\]/\\&/g; s/^/"/; s/$/"/
16507 :more2
16508 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16511 s/.\{148\}//
16512 t delim
16513 ' <conf$$subs.awk | sed '
16514 /^[^""]/{
16516 s/\n//
16518 ' >>$CONFIG_STATUS || ac_write_fail=1
16519 rm -f conf$$subs.awk
16520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16521 _ACAWK
16522 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16523 for (key in S) S_is_set[key] = 1
16524 FS = "\a"
16525 \$ac_cs_awk_pipe_init
16528 line = $ 0
16529 nfields = split(line, field, "@")
16530 substed = 0
16531 len = length(field[1])
16532 for (i = 2; i < nfields; i++) {
16533 key = field[i]
16534 keylen = length(key)
16535 if (S_is_set[key]) {
16536 value = S[key]
16537 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16538 len += length(value) + length(field[++i])
16539 substed = 1
16540 } else
16541 len += 1 + keylen
16543 if (nfields == 3 && !substed) {
16544 key = field[2]
16545 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16546 \$ac_cs_awk_read_file
16547 next
16550 print line
16552 \$ac_cs_awk_pipe_fini
16553 _ACAWK
16554 _ACEOF
16555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16556 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16557 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16558 else
16560 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16561 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16562 _ACEOF
16564 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16565 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16566 # trailing colons and then remove the whole line if VPATH becomes empty
16567 # (actually we leave an empty line to preserve line numbers).
16568 if test "x$srcdir" = x.; then
16569 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16571 s///
16572 s/^/:/
16573 s/[ ]*$/:/
16574 s/:\$(srcdir):/:/g
16575 s/:\${srcdir}:/:/g
16576 s/:@srcdir@:/:/g
16577 s/^:*//
16578 s/:*$//
16580 s/\(=[ ]*\).*/\1/
16582 s/\n//
16583 s/^[^=]*=[ ]*$//
16587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16588 fi # test -n "$CONFIG_FILES"
16590 # Set up the scripts for CONFIG_HEADERS section.
16591 # No need to generate them if there are no CONFIG_HEADERS.
16592 # This happens for instance with `./config.status Makefile'.
16593 if test -n "$CONFIG_HEADERS"; then
16594 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16595 BEGIN {
16596 _ACEOF
16598 # Transform confdefs.h into an awk script `defines.awk', embedded as
16599 # here-document in config.status, that substitutes the proper values into
16600 # config.h.in to produce config.h.
16602 # Create a delimiter string that does not exist in confdefs.h, to ease
16603 # handling of long lines.
16604 ac_delim='%!_!# '
16605 for ac_last_try in false false :; do
16606 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16607 if test -z "$ac_tt"; then
16608 break
16609 elif $ac_last_try; then
16610 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16611 else
16612 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16614 done
16616 # For the awk script, D is an array of macro values keyed by name,
16617 # likewise P contains macro parameters if any. Preserve backslash
16618 # newline sequences.
16620 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16621 sed -n '
16622 s/.\{148\}/&'"$ac_delim"'/g
16623 t rset
16624 :rset
16625 s/^[ ]*#[ ]*define[ ][ ]*/ /
16626 t def
16628 :def
16629 s/\\$//
16630 t bsnl
16631 s/["\\]/\\&/g
16632 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16633 D["\1"]=" \3"/p
16634 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16636 :bsnl
16637 s/["\\]/\\&/g
16638 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16639 D["\1"]=" \3\\\\\\n"\\/p
16640 t cont
16641 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16642 t cont
16644 :cont
16646 s/.\{148\}/&'"$ac_delim"'/g
16647 t clear
16648 :clear
16649 s/\\$//
16650 t bsnlc
16651 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16653 :bsnlc
16654 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16655 b cont
16656 ' <confdefs.h | sed '
16657 s/'"$ac_delim"'/"\\\
16658 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16661 for (key in D) D_is_set[key] = 1
16662 FS = "\a"
16664 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16665 line = \$ 0
16666 split(line, arg, " ")
16667 if (arg[1] == "#") {
16668 defundef = arg[2]
16669 mac1 = arg[3]
16670 } else {
16671 defundef = substr(arg[1], 2)
16672 mac1 = arg[2]
16674 split(mac1, mac2, "(") #)
16675 macro = mac2[1]
16676 prefix = substr(line, 1, index(line, defundef) - 1)
16677 if (D_is_set[macro]) {
16678 # Preserve the white space surrounding the "#".
16679 print prefix "define", macro P[macro] D[macro]
16680 next
16681 } else {
16682 # Replace #undef with comments. This is necessary, for example,
16683 # in the case of _POSIX_SOURCE, which is predefined and required
16684 # on some systems where configure will not decide to define it.
16685 if (defundef == "undef") {
16686 print "/*", prefix defundef, macro, "*/"
16687 next
16691 { print }
16692 _ACAWK
16693 _ACEOF
16694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16695 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16696 fi # test -n "$CONFIG_HEADERS"
16699 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16700 shift
16701 for ac_tag
16703 case $ac_tag in
16704 :[FHLC]) ac_mode=$ac_tag; continue;;
16705 esac
16706 case $ac_mode$ac_tag in
16707 :[FHL]*:*);;
16708 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16709 :[FH]-) ac_tag=-:-;;
16710 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16711 esac
16712 ac_save_IFS=$IFS
16713 IFS=:
16714 set x $ac_tag
16715 IFS=$ac_save_IFS
16716 shift
16717 ac_file=$1
16718 shift
16720 case $ac_mode in
16721 :L) ac_source=$1;;
16722 :[FH])
16723 ac_file_inputs=
16724 for ac_f
16726 case $ac_f in
16727 -) ac_f="$ac_tmp/stdin";;
16728 *) # Look for the file first in the build tree, then in the source tree
16729 # (if the path is not absolute). The absolute path cannot be DOS-style,
16730 # because $ac_f cannot contain `:'.
16731 test -f "$ac_f" ||
16732 case $ac_f in
16733 [\\/$]*) false;;
16734 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16735 esac ||
16736 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16737 esac
16738 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16739 as_fn_append ac_file_inputs " '$ac_f'"
16740 done
16742 # Let's still pretend it is `configure' which instantiates (i.e., don't
16743 # use $as_me), people would be surprised to read:
16744 # /* config.h. Generated by config.status. */
16745 configure_input='Generated from '`
16746 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16747 `' by configure.'
16748 if test x"$ac_file" != x-; then
16749 configure_input="$ac_file. $configure_input"
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16751 $as_echo "$as_me: creating $ac_file" >&6;}
16753 # Neutralize special characters interpreted by sed in replacement strings.
16754 case $configure_input in #(
16755 *\&* | *\|* | *\\* )
16756 ac_sed_conf_input=`$as_echo "$configure_input" |
16757 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16758 *) ac_sed_conf_input=$configure_input;;
16759 esac
16761 case $ac_tag in
16762 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16763 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16764 esac
16766 esac
16768 ac_dir=`$as_dirname -- "$ac_file" ||
16769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16770 X"$ac_file" : 'X\(//\)[^/]' \| \
16771 X"$ac_file" : 'X\(//\)$' \| \
16772 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16773 $as_echo X"$ac_file" |
16774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16775 s//\1/
16778 /^X\(\/\/\)[^/].*/{
16779 s//\1/
16782 /^X\(\/\/\)$/{
16783 s//\1/
16786 /^X\(\/\).*/{
16787 s//\1/
16790 s/.*/./; q'`
16791 as_dir="$ac_dir"; as_fn_mkdir_p
16792 ac_builddir=.
16794 case "$ac_dir" in
16795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16797 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16798 # A ".." for each directory in $ac_dir_suffix.
16799 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16800 case $ac_top_builddir_sub in
16801 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16802 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16803 esac ;;
16804 esac
16805 ac_abs_top_builddir=$ac_pwd
16806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16807 # for backward compatibility:
16808 ac_top_builddir=$ac_top_build_prefix
16810 case $srcdir in
16811 .) # We are building in place.
16812 ac_srcdir=.
16813 ac_top_srcdir=$ac_top_builddir_sub
16814 ac_abs_top_srcdir=$ac_pwd ;;
16815 [\\/]* | ?:[\\/]* ) # Absolute name.
16816 ac_srcdir=$srcdir$ac_dir_suffix;
16817 ac_top_srcdir=$srcdir
16818 ac_abs_top_srcdir=$srcdir ;;
16819 *) # Relative name.
16820 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16821 ac_top_srcdir=$ac_top_build_prefix$srcdir
16822 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16823 esac
16824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16827 case $ac_mode in
16830 # CONFIG_FILE
16833 case $INSTALL in
16834 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16835 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16836 esac
16837 _ACEOF
16839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16840 # If the template does not know about datarootdir, expand it.
16841 # FIXME: This hack should be removed a few years after 2.60.
16842 ac_datarootdir_hack=; ac_datarootdir_seen=
16843 ac_sed_dataroot='
16844 /datarootdir/ {
16848 /@datadir@/p
16849 /@docdir@/p
16850 /@infodir@/p
16851 /@localedir@/p
16852 /@mandir@/p'
16853 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16854 *datarootdir*) ac_datarootdir_seen=yes;;
16855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16857 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16858 _ACEOF
16859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16860 ac_datarootdir_hack='
16861 s&@datadir@&$datadir&g
16862 s&@docdir@&$docdir&g
16863 s&@infodir@&$infodir&g
16864 s&@localedir@&$localedir&g
16865 s&@mandir@&$mandir&g
16866 s&\\\${datarootdir}&$datarootdir&g' ;;
16867 esac
16868 _ACEOF
16870 # Neutralize VPATH when `$srcdir' = `.'.
16871 # Shell code in configure.ac might set extrasub.
16872 # FIXME: do we really want to maintain this feature?
16873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16874 ac_sed_extra="$ac_vpsub
16875 $extrasub
16876 _ACEOF
16877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16880 s|@configure_input@|$ac_sed_conf_input|;t t
16881 s&@top_builddir@&$ac_top_builddir_sub&;t t
16882 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16883 s&@srcdir@&$ac_srcdir&;t t
16884 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16885 s&@top_srcdir@&$ac_top_srcdir&;t t
16886 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16887 s&@builddir@&$ac_builddir&;t t
16888 s&@abs_builddir@&$ac_abs_builddir&;t t
16889 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16890 s&@INSTALL@&$ac_INSTALL&;t t
16891 $ac_datarootdir_hack
16893 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16894 if $ac_cs_awk_getline; then
16895 $AWK -f "$ac_tmp/subs.awk"
16896 else
16897 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16898 fi \
16899 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16901 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16902 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16903 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16904 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16906 which seems to be undefined. Please make sure it is defined" >&5
16907 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16908 which seems to be undefined. Please make sure it is defined" >&2;}
16910 rm -f "$ac_tmp/stdin"
16911 case $ac_file in
16912 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16913 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16914 esac \
16915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16919 # CONFIG_HEADER
16921 if test x"$ac_file" != x-; then
16923 $as_echo "/* $configure_input */" \
16924 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16925 } >"$ac_tmp/config.h" \
16926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16927 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16929 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16930 else
16931 rm -f "$ac_file"
16932 mv "$ac_tmp/config.h" "$ac_file" \
16933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16935 else
16936 $as_echo "/* $configure_input */" \
16937 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16938 || as_fn_error $? "could not create -" "$LINENO" 5
16943 # CONFIG_LINK
16946 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16948 else
16949 # Prefer the file from the source tree if names are identical.
16950 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16951 ac_source=$srcdir/$ac_source
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16955 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16957 if test ! -r "$ac_source"; then
16958 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16960 rm -f "$ac_file"
16962 # Try a relative symlink, then a hard link, then a copy.
16963 case $ac_source in
16964 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16965 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16966 esac
16967 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16968 ln "$ac_source" "$ac_file" 2>/dev/null ||
16969 cp -p "$ac_source" "$ac_file" ||
16970 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16973 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16974 $as_echo "$as_me: executing $ac_file commands" >&6;}
16976 esac
16979 case $ac_file$ac_mode in
16980 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
16981 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
16982 $as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
16983 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16984 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16985 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16986 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16987 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16988 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16989 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16990 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16991 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16992 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16993 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16994 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16995 "Makefile":C) wine_fn_output_makefile Makefile ;;
16997 esac
16998 done # for ac_tag
17001 as_fn_exit 0
17002 _ACEOF
17003 ac_clean_files=$ac_clean_files_save
17005 test $ac_write_fail = 0 ||
17006 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17009 # configure is writing to config.log, and then calls config.status.
17010 # config.status does its own redirection, appending to config.log.
17011 # Unfortunately, on DOS this fails, as config.log is still kept open
17012 # by configure, so config.status won't be able to write to it; its
17013 # output is simply discarded. So we exec the FD to /dev/null,
17014 # effectively closing config.log, so it can be properly (re)opened and
17015 # appended to by config.status. When coming back to configure, we
17016 # need to make the FD available again.
17017 if test "$no_create" != yes; then
17018 ac_cs_success=:
17019 ac_config_status_args=
17020 test "$silent" = yes &&
17021 ac_config_status_args="$ac_config_status_args --quiet"
17022 exec 5>/dev/null
17023 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17024 exec 5>>config.log
17025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17026 # would make configure fail if this is the last instruction.
17027 $ac_cs_success || as_fn_exit 1
17029 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17031 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17035 if test "$no_create" = "yes"
17036 then
17037 exit 0
17040 ac_save_IFS="$IFS"
17041 if test "x$wine_notices != "x; then
17042 echo >&6
17043 IFS="|"
17044 for msg in $wine_notices; do
17045 IFS="$ac_save_IFS"
17046 if test -n "$msg"; then
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
17048 $as_echo "$as_me: $msg" >&6;}
17050 done
17052 IFS="|"
17053 for msg in $wine_warnings; do
17054 IFS="$ac_save_IFS"
17055 if test -n "$msg"; then
17056 echo >&2
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
17058 $as_echo "$as_me: WARNING: $msg" >&2;}
17060 done
17061 IFS="$ac_save_IFS"
17063 echo "
17064 $as_me: Finished. Do '${ac_make}' to compile Wine.
17065 " >&6