makefiles: Output all the program rules explicitly for each module.
[wine/multimedia.git] / configure
blobbe8bd2ce11c645091276fb508b5fa473fec007ed
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for Wine 1.1.41.
5 # Report bugs to <wine-devel@winehq.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: wine-devel@winehq.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='Wine'
554 PACKAGE_TARNAME='wine'
555 PACKAGE_VERSION='1.1.41'
556 PACKAGE_STRING='Wine 1.1.41'
557 PACKAGE_BUGREPORT='wine-devel@winehq.org'
558 PACKAGE_URL='http://www.winehq.org'
560 ac_unique_file="server/atom.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 # include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 # include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 ALL_PROGRAM_BIN_INSTALL_DIRS
600 ALL_TEST_BINARIES
601 ALL_STATICLIB_DIRS
602 ALL_TOOL_DIRS
603 ALL_DLL_DIRS
604 ALL_TOP_DIRS
605 ALL_DIRS
606 ALL_SYMLINKS
607 ALL_MAKERULES
608 ALL_WINETEST_DEPENDS
609 ALL_MAKEFILE_DEPENDS
610 LDAPLIBS
611 LIBPOLL
612 LIBDL
613 EXTRA_BINARIES
614 MAIN_BINARY
615 SOCKETLIBS
616 CRTLIBS
617 TOOLSEXT
618 LDPATH
619 BUILTINFLAG
620 EXTRACFLAGS
621 LIBKSTAT
622 LIBMPG123
623 PNGINCL
624 FONTCONFIGINCL
625 CUPSINCL
626 AUDIOIOLIBS
627 ALSALIBS
628 ESDLIBS
629 ESDINCL
630 ESDCONFIG
631 ZLIB
632 FREETYPEINCL
633 FREETYPELIBS
634 ft_devel
635 LCMSLIBS
636 RESOLVLIBS
637 GPHOTO2INCL
638 GPHOTO2LIBS
639 gphoto2port_devel
640 gphoto2_devel
641 SANEINCL
642 sane_devel
643 GNUTLSINCL
644 HALINCL
645 XSLTINCL
646 XML2INCL
647 XML2LIBS
648 NASLIBS
649 X_EXTRA_LIBS
650 X_LIBS
651 X_PRE_LIBS
652 X_CFLAGS
653 XMKMF
654 LIBPTHREAD
655 CROSSTARGET
656 CROSSTEST
657 CROSSCC
658 CARBONLIB
659 LIBOPENAL
660 COREAUDIO
661 DISKARBITRATIONLIB
662 LDEXECFLAGS
663 IOKITLIB
664 COREFOUNDATIONLIB
665 SECURITYLIB
666 DLLWRAP
667 DLLTOOL
669 LDRPATH_LOCAL
670 LDRPATH_INSTALL
671 IMPLIBEXT
672 LIBEXT
673 LDDLLFLAGS
674 LDSHARED
675 DLLFLAGS
676 DLLEXT
678 OPENGL_LIBS
679 XLIB
680 PRELINK
681 ICOTOOL
682 RSVG
683 PKG_CONFIG
684 FONTFORGE
685 LINTFLAGS
686 LINT
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 LDCONFIG
691 EGREP
692 GREP
693 LN_S
694 STRIP
695 RANLIB
696 ARFLAGS
697 ac_ct_AR
699 BISON
700 FLEX
701 TOOLSDIR
702 WOW64_DISABLE
703 TARGETFLAGS
704 CPPBIN
705 ac_ct_CXX
706 CXXFLAGS
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
715 SET_MAKE
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 MAINTAINER_MODE
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files='MAKE_RULES
764 MAKE_TEST_RULES
765 MAKE_DLL_RULES
766 MAKE_IMPLIB_RULES
767 MAKE_PROG_RULES'
768 ac_user_opts='
769 enable_option_checking
770 enable_win16
771 enable_win64
772 enable_tests
773 enable_maintainer_mode
774 with_alsa
775 with_audioio
776 with_capi
777 with_cms
778 with_coreaudio
779 with_cups
780 with_curses
781 with_esd
782 with_fontconfig
783 with_freetype
784 with_gphoto
785 with_glu
786 with_gnutls
787 with_gsm
788 with_hal
789 with_jack
790 with_jpeg
791 with_ldap
792 with_mpg123
793 with_nas
794 with_openal
795 with_opengl
796 with_openssl
797 with_oss
798 with_png
799 with_pthread
800 with_sane
801 with_tiff
802 with_v4l
803 with_xcomposite
804 with_xcursor
805 with_xinerama
806 with_xinput
807 with_xml
808 with_xrandr
809 with_xrender
810 with_xshape
811 with_xshm
812 with_xslt
813 with_xxf86vm
814 with_wine_tools
815 with_wine64
816 enable_largefile
817 with_x
819 ac_precious_vars='build_alias
820 host_alias
821 target_alias
823 CFLAGS
824 LDFLAGS
825 LIBS
826 CPPFLAGS
828 CXXFLAGS
831 XMKMF'
834 # Initialize some variables set by options.
835 ac_init_help=
836 ac_init_version=false
837 ac_unrecognized_opts=
838 ac_unrecognized_sep=
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
882 ac_prev=
883 ac_dashdash=
884 for ac_option
886 # If the previous option needs an argument, assign it.
887 if test -n "$ac_prev"; then
888 eval $ac_prev=\$ac_option
889 ac_prev=
890 continue
893 case $ac_option in
894 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 *) ac_optarg=yes ;;
896 esac
898 # Accept the important Cygnus configure options, so we can diagnose typos.
900 case $ac_dashdash$ac_option in
902 ac_dashdash=yes ;;
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
921 --config-cache | -C)
922 cache_file=config.cache ;;
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1216 -*) as_fn_error "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information."
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1238 esac
1239 done
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error "missing argument to $ac_option"
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1287 If a cross compiler is detected then cross compile mode will be used." >&2
1288 elif test "x$build_alias" != "x$host_alias"; then
1289 cross_compiling=yes
1293 ac_tool_prefix=
1294 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296 test "$silent" = yes && exec 6>/dev/null
1299 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1300 ac_ls_di=`ls -di .` &&
1301 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1302 as_fn_error "working directory cannot be determined"
1303 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1304 as_fn_error "pwd does not report name of working directory"
1307 # Find the source files, if location was not specified.
1308 if test -z "$srcdir"; then
1309 ac_srcdir_defaulted=yes
1310 # Try the directory containing this script, then the parent directory.
1311 ac_confdir=`$as_dirname -- "$as_myself" ||
1312 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1313 X"$as_myself" : 'X\(//\)[^/]' \| \
1314 X"$as_myself" : 'X\(//\)$' \| \
1315 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1316 $as_echo X"$as_myself" |
1317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1318 s//\1/
1321 /^X\(\/\/\)[^/].*/{
1322 s//\1/
1325 /^X\(\/\/\)$/{
1326 s//\1/
1329 /^X\(\/\).*/{
1330 s//\1/
1333 s/.*/./; q'`
1334 srcdir=$ac_confdir
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336 srcdir=..
1338 else
1339 ac_srcdir_defaulted=no
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1343 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1348 pwd)`
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1351 srcdir=.
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1356 case $srcdir in
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1358 esac
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 done
1367 # Report the --help message.
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1372 cat <<_ACEOF
1373 \`configure' configures Wine 1.1.41 to adapt to many kinds of systems.
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1380 Defaults for the options are specified in brackets.
1382 Configuration:
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1397 [PREFIX]
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1404 For better control, use the options below.
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1426 _ACEOF
1428 cat <<\_ACEOF
1430 X features:
1431 --x-includes=DIR X include files are in DIR
1432 --x-libraries=DIR X library files are in DIR
1434 System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 _ACEOF
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of Wine 1.1.41:";;
1443 esac
1444 cat <<\_ACEOF
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --disable-win16 do not include Win16 support
1451 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1452 binaries)
1453 --disable-tests do not build the regression tests
1454 --enable-maintainer-mode
1455 enable maintainer-specific build rules
1456 --disable-largefile omit support for large files
1458 Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --without-alsa do not use the Alsa sound support
1462 --without-audioio do not use the AudioIO sound support
1463 --without-capi do not use CAPI (ISDN support)
1464 --without-cms do not use CMS (color management support)
1465 --without-coreaudio do not use the CoreAudio sound support
1466 --without-cups do not use CUPS
1467 --without-curses do not use (n)curses
1468 --without-esd do not use the EsounD sound support
1469 --without-fontconfig do not use fontconfig
1470 --without-freetype do not use the FreeType library
1471 --without-gphoto do not use gphoto (Digital Camera support)
1472 --without-glu do not use the GLU library
1473 --without-gnutls do not use GnuTLS (schannel support)
1474 --without-gsm do not use libgsm (GSM 06.10 codec support)
1475 --without-hal do not use HAL (dynamic device support)
1476 --without-jack do not use the Jack sound support
1477 --without-jpeg do not use JPEG
1478 --without-ldap do not use LDAP
1479 --without-mpg123 do not use the mpg123 library
1480 --without-nas do not use the NAS sound support
1481 --without-openal do not use OpenAL
1482 --without-opengl do not use OpenGL
1483 --without-openssl do not use OpenSSL
1484 --without-oss do not use the OSS sound support
1485 --without-png do not use PNG
1486 --without-pthread do not use the pthread library
1487 --without-sane do not use SANE (scanner support)
1488 --without-tiff do not use TIFF
1489 --without-v4l do not use v4l1 (v4l support)
1490 --without-xcomposite do not use the Xcomposite extension
1491 --without-xcursor do not use the Xcursor extension
1492 --without-xinerama do not use Xinerama (multi-monitor support)
1493 --without-xinput do not use the Xinput extension
1494 --without-xml do not use XML
1495 --without-xrandr do not use Xrandr (resolution changes)
1496 --without-xrender do not use the Xrender extension
1497 --without-xshape do not use the Xshape extension
1498 --without-xshm do not use XShm (shared memory extension)
1499 --without-xslt do not use XSLT
1500 --without-xxf86vm do not use XFree video mode extension
1501 --with-wine-tools=DIR use Wine tools from directory DIR
1502 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1503 --with-x use the X Window System
1505 Some influential environment variables:
1506 CC C compiler command
1507 CFLAGS C compiler flags
1508 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1509 nonstandard directory <lib dir>
1510 LIBS libraries to pass to the linker, e.g. -l<library>
1511 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1512 you have headers in a nonstandard directory <include dir>
1513 CXX C++ compiler command
1514 CXXFLAGS C++ compiler flags
1515 CPP C preprocessor
1516 XMKMF Path to xmkmf, Makefile generator for X Window System
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1521 Report bugs to <wine-devel@winehq.org>.
1522 Wine home page: <http://www.winehq.org>.
1523 _ACEOF
1524 ac_status=$?
1527 if test "$ac_init_help" = "recursive"; then
1528 # If there are subdirs, report their specific --help.
1529 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530 test -d "$ac_dir" ||
1531 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1532 continue
1533 ac_builddir=.
1535 case "$ac_dir" in
1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1539 # A ".." for each directory in $ac_dir_suffix.
1540 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1541 case $ac_top_builddir_sub in
1542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 esac ;;
1545 esac
1546 ac_abs_top_builddir=$ac_pwd
1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548 # for backward compatibility:
1549 ac_top_builddir=$ac_top_build_prefix
1551 case $srcdir in
1552 .) # We are building in place.
1553 ac_srcdir=.
1554 ac_top_srcdir=$ac_top_builddir_sub
1555 ac_abs_top_srcdir=$ac_pwd ;;
1556 [\\/]* | ?:[\\/]* ) # Absolute name.
1557 ac_srcdir=$srcdir$ac_dir_suffix;
1558 ac_top_srcdir=$srcdir
1559 ac_abs_top_srcdir=$srcdir ;;
1560 *) # Relative name.
1561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562 ac_top_srcdir=$ac_top_build_prefix$srcdir
1563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 esac
1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567 cd "$ac_dir" || { ac_status=$?; continue; }
1568 # Check for guested configure.
1569 if test -f "$ac_srcdir/configure.gnu"; then
1570 echo &&
1571 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572 elif test -f "$ac_srcdir/configure"; then
1573 echo &&
1574 $SHELL "$ac_srcdir/configure" --help=recursive
1575 else
1576 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577 fi || ac_status=$?
1578 cd "$ac_pwd" || { ac_status=$?; break; }
1579 done
1582 test -n "$ac_init_help" && exit $ac_status
1583 if $ac_init_version; then
1584 cat <<\_ACEOF
1585 Wine configure 1.1.41
1586 generated by GNU Autoconf 2.65
1588 Copyright (C) 2009 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1591 _ACEOF
1592 exit
1595 ## ------------------------ ##
1596 ## Autoconf initialization. ##
1597 ## ------------------------ ##
1599 # ac_fn_c_try_compile LINENO
1600 # --------------------------
1601 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_compile ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext
1606 if { { ac_try="$ac_compile"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_compile") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest.$ac_objext; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1630 ac_retval=1
1632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1633 as_fn_set_status $ac_retval
1635 } # ac_fn_c_try_compile
1637 # ac_fn_cxx_try_compile LINENO
1638 # ----------------------------
1639 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_cxx_try_compile ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext
1644 if { { ac_try="$ac_compile"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_compile") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_cxx_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest.$ac_objext; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1668 ac_retval=1
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 as_fn_set_status $ac_retval
1673 } # ac_fn_cxx_try_compile
1675 # ac_fn_c_try_link LINENO
1676 # -----------------------
1677 # Try to link conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_link ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext conftest$ac_exeext
1682 if { { ac_try="$ac_link"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_link") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest$ac_exeext && {
1701 test "$cross_compiling" = yes ||
1702 $as_test_x conftest$ac_exeext
1703 }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1709 ac_retval=1
1711 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1712 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1713 # interfere with the next link command; also delete a directory that is
1714 # left behind by Apple's compiler. We do this before executing the actions.
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 as_fn_set_status $ac_retval
1719 } # ac_fn_c_try_link
1721 # ac_fn_c_try_cpp LINENO
1722 # ----------------------
1723 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_c_try_cpp ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_cpp conftest.$ac_ext"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } >/dev/null && {
1743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 }; then :
1746 ac_retval=0
1747 else
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1751 ac_retval=1
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 as_fn_set_status $ac_retval
1756 } # ac_fn_c_try_cpp
1758 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1759 # -------------------------------------------------------
1760 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1761 # the include files in INCLUDES and setting the cache variable VAR
1762 # accordingly.
1763 ac_fn_c_check_header_mongrel ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 $as_echo_n "(cached) " >&6
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 else
1776 # Is the header compilable?
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1778 $as_echo_n "checking $2 usability... " >&6; }
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1782 #include <$2>
1783 _ACEOF
1784 if ac_fn_c_try_compile "$LINENO"; then :
1785 ac_header_compiler=yes
1786 else
1787 ac_header_compiler=no
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1791 $as_echo "$ac_header_compiler" >&6; }
1793 # Is the header present?
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1795 $as_echo_n "checking $2 presence... " >&6; }
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 #include <$2>
1799 _ACEOF
1800 if ac_fn_c_try_cpp "$LINENO"; then :
1801 ac_header_preproc=yes
1802 else
1803 ac_header_preproc=no
1805 rm -f conftest.err conftest.$ac_ext
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1807 $as_echo "$ac_header_preproc" >&6; }
1809 # So? What about this header?
1810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1811 yes:no: )
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1813 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1817 no:yes:* )
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1819 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1821 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1823 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1825 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828 ( cat <<\_ASBOX
1829 ## ------------------------------------ ##
1830 ## Report this to wine-devel@winehq.org ##
1831 ## ------------------------------------ ##
1832 _ASBOX
1833 ) | sed "s/^/$as_me: WARNING: /" >&2
1835 esac
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 eval "$3=\$ac_header_compiler"
1843 eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 } # ac_fn_c_check_header_mongrel
1851 # ac_fn_c_try_run LINENO
1852 # ----------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854 # that executables *can* be run.
1855 ac_fn_c_try_run ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_link"
1859 case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_link") 2>&5
1866 ac_status=$?
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869 { { case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_try") 2>&5
1876 ac_status=$?
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; }; }; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: program exited with status $ac_status" >&5
1882 $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 ac_retval=$ac_status
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_c_try_run
1893 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1894 # -------------------------------------------------------
1895 # Tests whether HEADER exists and can be compiled using the include files in
1896 # INCLUDES, setting the cache variable VAR accordingly.
1897 ac_fn_c_check_header_compile ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1908 #include <$2>
1909 _ACEOF
1910 if ac_fn_c_try_compile "$LINENO"; then :
1911 eval "$3=yes"
1912 else
1913 eval "$3=no"
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922 } # ac_fn_c_check_header_compile
1924 # ac_fn_c_check_func LINENO FUNC VAR
1925 # ----------------------------------
1926 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1927 ac_fn_c_check_func ()
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933 $as_echo_n "(cached) " >&6
1934 else
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1937 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1939 #define $2 innocuous_$2
1941 /* System header to define __stub macros and hopefully few prototypes,
1942 which can conflict with char $2 (); below.
1943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1944 <limits.h> exists even on freestanding compilers. */
1946 #ifdef __STDC__
1947 # include <limits.h>
1948 #else
1949 # include <assert.h>
1950 #endif
1952 #undef $2
1954 /* Override any GCC internal prototype to avoid an error.
1955 Use char because int might match the return type of a GCC
1956 builtin and then its argument prototype would still apply. */
1957 #ifdef __cplusplus
1958 extern "C"
1959 #endif
1960 char $2 ();
1961 /* The GNU C library defines this for functions which it implements
1962 to always fail with ENOSYS. Some functions are actually named
1963 something starting with __ and the normal name is an alias. */
1964 #if defined __stub_$2 || defined __stub___$2
1965 choke me
1966 #endif
1969 main ()
1971 return $2 ();
1973 return 0;
1975 _ACEOF
1976 if ac_fn_c_try_link "$LINENO"; then :
1977 eval "$3=yes"
1978 else
1979 eval "$3=no"
1981 rm -f core conftest.err conftest.$ac_objext \
1982 conftest$ac_exeext conftest.$ac_ext
1984 eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989 } # ac_fn_c_check_func
1991 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1992 # ----------------------------------------------------
1993 # Tries to find if the field MEMBER exists in type AGGR, after including
1994 # INCLUDES, setting cache variable VAR accordingly.
1995 ac_fn_c_check_member ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1999 $as_echo_n "checking for $2.$3... " >&6; }
2000 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2001 $as_echo_n "(cached) " >&6
2002 else
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2007 main ()
2009 static $2 ac_aggr;
2010 if (ac_aggr.$3)
2011 return 0;
2013 return 0;
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 eval "$4=yes"
2018 else
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2023 main ()
2025 static $2 ac_aggr;
2026 if (sizeof ac_aggr.$3)
2027 return 0;
2029 return 0;
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 eval "$4=yes"
2034 else
2035 eval "$4=no"
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 eval ac_res=\$$4
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046 } # ac_fn_c_check_member
2048 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2049 # -------------------------------------------
2050 # Tests whether TYPE exists after having included INCLUDES, setting cache
2051 # variable VAR accordingly.
2052 ac_fn_c_check_type ()
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2058 $as_echo_n "(cached) " >&6
2059 else
2060 eval "$3=no"
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2065 main ()
2067 if (sizeof ($2))
2068 return 0;
2070 return 0;
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2078 main ()
2080 if (sizeof (($2)))
2081 return 0;
2083 return 0;
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2088 else
2089 eval "$3=yes"
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 eval ac_res=\$$3
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100 } # ac_fn_c_check_type
2101 cat >config.log <<_ACEOF
2102 This file contains any messages produced by compilers while
2103 running configure, to aid debugging if configure makes a mistake.
2105 It was created by Wine $as_me 1.1.41, which was
2106 generated by GNU Autoconf 2.65. Invocation command line was
2108 $ $0 $@
2110 _ACEOF
2111 exec 5>>config.log
2113 cat <<_ASUNAME
2114 ## --------- ##
2115 ## Platform. ##
2116 ## --------- ##
2118 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2119 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2120 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2121 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2122 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2124 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2125 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2127 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2128 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2129 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2130 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2131 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2132 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2133 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2135 _ASUNAME
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 $as_echo "PATH: $as_dir"
2143 done
2144 IFS=$as_save_IFS
2146 } >&5
2148 cat >&5 <<_ACEOF
2151 ## ----------- ##
2152 ## Core tests. ##
2153 ## ----------- ##
2155 _ACEOF
2158 # Keep a trace of the command line.
2159 # Strip out --no-create and --no-recursion so they do not pile up.
2160 # Strip out --silent because we don't want to record it for future runs.
2161 # Also quote any args containing shell meta-characters.
2162 # Make two passes to allow for proper duplicate-argument suppression.
2163 ac_configure_args=
2164 ac_configure_args0=
2165 ac_configure_args1=
2166 ac_must_keep_next=false
2167 for ac_pass in 1 2
2169 for ac_arg
2171 case $ac_arg in
2172 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2174 | -silent | --silent | --silen | --sile | --sil)
2175 continue ;;
2176 *\'*)
2177 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2178 esac
2179 case $ac_pass in
2180 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2182 as_fn_append ac_configure_args1 " '$ac_arg'"
2183 if test $ac_must_keep_next = true; then
2184 ac_must_keep_next=false # Got value, back to normal.
2185 else
2186 case $ac_arg in
2187 *=* | --config-cache | -C | -disable-* | --disable-* \
2188 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2189 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2190 | -with-* | --with-* | -without-* | --without-* | --x)
2191 case "$ac_configure_args0 " in
2192 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2193 esac
2195 -* ) ac_must_keep_next=true ;;
2196 esac
2198 as_fn_append ac_configure_args " '$ac_arg'"
2200 esac
2201 done
2202 done
2203 { ac_configure_args0=; unset ac_configure_args0;}
2204 { ac_configure_args1=; unset ac_configure_args1;}
2206 # When interrupted or exit'd, cleanup temporary files, and complete
2207 # config.log. We remove comments because anyway the quotes in there
2208 # would cause problems or look ugly.
2209 # WARNING: Use '\'' to represent an apostrophe within the trap.
2210 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2211 trap 'exit_status=$?
2212 # Save into config.log some information that might help in debugging.
2214 echo
2216 cat <<\_ASBOX
2217 ## ---------------- ##
2218 ## Cache variables. ##
2219 ## ---------------- ##
2220 _ASBOX
2221 echo
2222 # The following way of writing the cache mishandles newlines in values,
2224 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2225 eval ac_val=\$$ac_var
2226 case $ac_val in #(
2227 *${as_nl}*)
2228 case $ac_var in #(
2229 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2230 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2231 esac
2232 case $ac_var in #(
2233 _ | IFS | as_nl) ;; #(
2234 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2235 *) { eval $ac_var=; unset $ac_var;} ;;
2236 esac ;;
2237 esac
2238 done
2239 (set) 2>&1 |
2240 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2241 *${as_nl}ac_space=\ *)
2242 sed -n \
2243 "s/'\''/'\''\\\\'\'''\''/g;
2244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2245 ;; #(
2247 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2249 esac |
2250 sort
2252 echo
2254 cat <<\_ASBOX
2255 ## ----------------- ##
2256 ## Output variables. ##
2257 ## ----------------- ##
2258 _ASBOX
2259 echo
2260 for ac_var in $ac_subst_vars
2262 eval ac_val=\$$ac_var
2263 case $ac_val in
2264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 esac
2266 $as_echo "$ac_var='\''$ac_val'\''"
2267 done | sort
2268 echo
2270 if test -n "$ac_subst_files"; then
2271 cat <<\_ASBOX
2272 ## ------------------- ##
2273 ## File substitutions. ##
2274 ## ------------------- ##
2275 _ASBOX
2276 echo
2277 for ac_var in $ac_subst_files
2279 eval ac_val=\$$ac_var
2280 case $ac_val in
2281 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282 esac
2283 $as_echo "$ac_var='\''$ac_val'\''"
2284 done | sort
2285 echo
2288 if test -s confdefs.h; then
2289 cat <<\_ASBOX
2290 ## ----------- ##
2291 ## confdefs.h. ##
2292 ## ----------- ##
2293 _ASBOX
2294 echo
2295 cat confdefs.h
2296 echo
2298 test "$ac_signal" != 0 &&
2299 $as_echo "$as_me: caught signal $ac_signal"
2300 $as_echo "$as_me: exit $exit_status"
2301 } >&5
2302 rm -f core *.core core.conftest.* &&
2303 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2304 exit $exit_status
2306 for ac_signal in 1 2 13 15; do
2307 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2308 done
2309 ac_signal=0
2311 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2312 rm -f -r conftest* confdefs.h
2314 $as_echo "/* confdefs.h */" > confdefs.h
2316 # Predefined preprocessor variables.
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_NAME "$PACKAGE_NAME"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2324 _ACEOF
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2328 _ACEOF
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_STRING "$PACKAGE_STRING"
2332 _ACEOF
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2336 _ACEOF
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_URL "$PACKAGE_URL"
2340 _ACEOF
2343 # Let the site file select an alternate cache file if it wants to.
2344 # Prefer an explicitly selected file to automatically selected ones.
2345 ac_site_file1=NONE
2346 ac_site_file2=NONE
2347 if test -n "$CONFIG_SITE"; then
2348 ac_site_file1=$CONFIG_SITE
2349 elif test "x$prefix" != xNONE; then
2350 ac_site_file1=$prefix/share/config.site
2351 ac_site_file2=$prefix/etc/config.site
2352 else
2353 ac_site_file1=$ac_default_prefix/share/config.site
2354 ac_site_file2=$ac_default_prefix/etc/config.site
2356 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2358 test "x$ac_site_file" = xNONE && continue
2359 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2361 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2362 sed 's/^/| /' "$ac_site_file" >&5
2363 . "$ac_site_file"
2365 done
2367 if test -r "$cache_file"; then
2368 # Some versions of bash will fail to source /dev/null (special files
2369 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2370 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2372 $as_echo "$as_me: loading cache $cache_file" >&6;}
2373 case $cache_file in
2374 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2375 *) . "./$cache_file";;
2376 esac
2378 else
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2380 $as_echo "$as_me: creating cache $cache_file" >&6;}
2381 >$cache_file
2384 # Check that the precious variables saved in the cache have kept the same
2385 # value.
2386 ac_cache_corrupted=false
2387 for ac_var in $ac_precious_vars; do
2388 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2389 eval ac_new_set=\$ac_env_${ac_var}_set
2390 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2391 eval ac_new_val=\$ac_env_${ac_var}_value
2392 case $ac_old_set,$ac_new_set in
2393 set,)
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2395 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2396 ac_cache_corrupted=: ;;
2397 ,set)
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2399 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2400 ac_cache_corrupted=: ;;
2401 ,);;
2403 if test "x$ac_old_val" != "x$ac_new_val"; then
2404 # differences in whitespace do not lead to failure.
2405 ac_old_val_w=`echo x $ac_old_val`
2406 ac_new_val_w=`echo x $ac_new_val`
2407 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2409 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2410 ac_cache_corrupted=:
2411 else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2413 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2414 eval $ac_var=\$ac_old_val
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2417 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2419 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2420 fi;;
2421 esac
2422 # Pass precious variables to config.status.
2423 if test "$ac_new_set" = set; then
2424 case $ac_new_val in
2425 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 *) ac_arg=$ac_var=$ac_new_val ;;
2427 esac
2428 case " $ac_configure_args " in
2429 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2430 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2431 esac
2433 done
2434 if $ac_cache_corrupted; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2438 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2439 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2441 ## -------------------- ##
2442 ## Main body of script. ##
2443 ## -------------------- ##
2445 ac_ext=c
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453 ac_config_headers="$ac_config_headers include/config.h"
2455 ac_aux_dir=
2456 for ac_dir in tools "$srcdir"/tools; do
2457 for ac_t in install-sh install.sh shtool; do
2458 if test -f "$ac_dir/$ac_t"; then
2459 ac_aux_dir=$ac_dir
2460 ac_install_sh="$ac_aux_dir/$ac_t -c"
2461 break 2
2463 done
2464 done
2465 if test -z "$ac_aux_dir"; then
2466 as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2469 # These three variables are undocumented and unsupported,
2470 # and are intended to be withdrawn in a future Autoconf release.
2471 # They can cause serious problems if a builder's source tree is in a directory
2472 # whose full name contains unusual characters.
2473 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2474 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2475 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2481 # Check whether --enable-win16 was given.
2482 if test "${enable_win16+set}" = set; then :
2483 enableval=$enable_win16;
2486 # Check whether --enable-win64 was given.
2487 if test "${enable_win64+set}" = set; then :
2488 enableval=$enable_win64;
2491 # Check whether --enable-tests was given.
2492 if test "${enable_tests+set}" = set; then :
2493 enableval=$enable_tests;
2496 # Check whether --enable-maintainer-mode was given.
2497 if test "${enable_maintainer_mode+set}" = set; then :
2498 enableval=$enable_maintainer_mode;
2499 else
2500 MAINTAINER_MODE=\#
2506 # Check whether --with-alsa was given.
2507 if test "${with_alsa+set}" = set; then :
2508 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2512 # Check whether --with-audioio was given.
2513 if test "${with_audioio+set}" = set; then :
2514 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2518 # Check whether --with-capi was given.
2519 if test "${with_capi+set}" = set; then :
2520 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2524 # Check whether --with-cms was given.
2525 if test "${with_cms+set}" = set; then :
2526 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2530 # Check whether --with-coreaudio was given.
2531 if test "${with_coreaudio+set}" = set; then :
2532 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2536 # Check whether --with-cups was given.
2537 if test "${with_cups+set}" = set; then :
2538 withval=$with_cups;
2542 # Check whether --with-curses was given.
2543 if test "${with_curses+set}" = set; then :
2544 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2548 # Check whether --with-esd was given.
2549 if test "${with_esd+set}" = set; then :
2550 withval=$with_esd;
2554 # Check whether --with-fontconfig was given.
2555 if test "${with_fontconfig+set}" = set; then :
2556 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2560 # Check whether --with-freetype was given.
2561 if test "${with_freetype+set}" = set; then :
2562 withval=$with_freetype;
2566 # Check whether --with-gphoto was given.
2567 if test "${with_gphoto+set}" = set; then :
2568 withval=$with_gphoto;
2572 # Check whether --with-glu was given.
2573 if test "${with_glu+set}" = set; then :
2574 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2578 # Check whether --with-gnutls was given.
2579 if test "${with_gnutls+set}" = set; then :
2580 withval=$with_gnutls;
2584 # Check whether --with-gsm was given.
2585 if test "${with_gsm+set}" = set; then :
2586 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2590 # Check whether --with-hal was given.
2591 if test "${with_hal+set}" = set; then :
2592 withval=$with_hal;
2596 # Check whether --with-jack was given.
2597 if test "${with_jack+set}" = set; then :
2598 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2602 # Check whether --with-jpeg was given.
2603 if test "${with_jpeg+set}" = set; then :
2604 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2608 # Check whether --with-ldap was given.
2609 if test "${with_ldap+set}" = set; then :
2610 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2614 # Check whether --with-mpg123 was given.
2615 if test "${with_mpg123+set}" = set; then :
2616 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2620 # Check whether --with-nas was given.
2621 if test "${with_nas+set}" = set; then :
2622 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2626 # Check whether --with-openal was given.
2627 if test "${with_openal+set}" = set; then :
2628 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
2632 # Check whether --with-opengl was given.
2633 if test "${with_opengl+set}" = set; then :
2634 withval=$with_opengl;
2638 # Check whether --with-openssl was given.
2639 if test "${with_openssl+set}" = set; then :
2640 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2644 # Check whether --with-oss was given.
2645 if test "${with_oss+set}" = set; then :
2646 withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2650 # Check whether --with-png was given.
2651 if test "${with_png+set}" = set; then :
2652 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2656 # Check whether --with-pthread was given.
2657 if test "${with_pthread+set}" = set; then :
2658 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2662 # Check whether --with-sane was given.
2663 if test "${with_sane+set}" = set; then :
2664 withval=$with_sane;
2668 # Check whether --with-tiff was given.
2669 if test "${with_tiff+set}" = set; then :
2670 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2674 # Check whether --with-v4l was given.
2675 if test "${with_v4l+set}" = set; then :
2676 withval=$with_v4l;
2680 # Check whether --with-xcomposite was given.
2681 if test "${with_xcomposite+set}" = set; then :
2682 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2686 # Check whether --with-xcursor was given.
2687 if test "${with_xcursor+set}" = set; then :
2688 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2692 # Check whether --with-xinerama was given.
2693 if test "${with_xinerama+set}" = set; then :
2694 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2698 # Check whether --with-xinput was given.
2699 if test "${with_xinput+set}" = set; then :
2700 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2704 # Check whether --with-xml was given.
2705 if test "${with_xml+set}" = set; then :
2706 withval=$with_xml;
2710 # Check whether --with-xrandr was given.
2711 if test "${with_xrandr+set}" = set; then :
2712 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2716 # Check whether --with-xrender was given.
2717 if test "${with_xrender+set}" = set; then :
2718 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2722 # Check whether --with-xshape was given.
2723 if test "${with_xshape+set}" = set; then :
2724 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2728 # Check whether --with-xshm was given.
2729 if test "${with_xshm+set}" = set; then :
2730 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2734 # Check whether --with-xslt was given.
2735 if test "${with_xslt+set}" = set; then :
2736 withval=$with_xslt;
2740 # Check whether --with-xxf86vm was given.
2741 if test "${with_xxf86vm+set}" = set; then :
2742 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
2747 # Check whether --with-wine-tools was given.
2748 if test "${with_wine_tools+set}" = set; then :
2749 withval=$with_wine_tools;
2753 # Check whether --with-wine64 was given.
2754 if test "${with_wine64+set}" = set; then :
2755 withval=$with_wine64;
2759 # Make sure we can run config.sub.
2760 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2761 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2764 $as_echo_n "checking build system type... " >&6; }
2765 if test "${ac_cv_build+set}" = set; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 ac_build_alias=$build_alias
2769 test "x$ac_build_alias" = x &&
2770 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2771 test "x$ac_build_alias" = x &&
2772 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2773 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2774 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2778 $as_echo "$ac_cv_build" >&6; }
2779 case $ac_cv_build in
2780 *-*-*) ;;
2781 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2782 esac
2783 build=$ac_cv_build
2784 ac_save_IFS=$IFS; IFS='-'
2785 set x $ac_cv_build
2786 shift
2787 build_cpu=$1
2788 build_vendor=$2
2789 shift; shift
2790 # Remember, the first character of IFS is used to create $*,
2791 # except with old shells:
2792 build_os=$*
2793 IFS=$ac_save_IFS
2794 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2798 $as_echo_n "checking host system type... " >&6; }
2799 if test "${ac_cv_host+set}" = set; then :
2800 $as_echo_n "(cached) " >&6
2801 else
2802 if test "x$host_alias" = x; then
2803 ac_cv_host=$ac_cv_build
2804 else
2805 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2806 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2811 $as_echo "$ac_cv_host" >&6; }
2812 case $ac_cv_host in
2813 *-*-*) ;;
2814 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2815 esac
2816 host=$ac_cv_host
2817 ac_save_IFS=$IFS; IFS='-'
2818 set x $ac_cv_host
2819 shift
2820 host_cpu=$1
2821 host_vendor=$2
2822 shift; shift
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2825 host_os=$*
2826 IFS=$ac_save_IFS
2827 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2831 case "$srcdir" in
2832 .) ;;
2833 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2834 as_fn_error "you are building out of the source tree, but the source tree contains object files.
2835 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2836 fi ;;
2837 esac
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2841 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2842 set x ${MAKE-make}
2843 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2844 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2845 $as_echo_n "(cached) " >&6
2846 else
2847 cat >conftest.make <<\_ACEOF
2848 SHELL = /bin/sh
2849 all:
2850 @echo '@@@%%%=$(MAKE)=@@@%%%'
2851 _ACEOF
2852 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2853 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2854 *@@@%%%=?*=@@@%%%*)
2855 eval ac_cv_prog_make_${ac_make}_set=yes;;
2857 eval ac_cv_prog_make_${ac_make}_set=no;;
2858 esac
2859 rm -f conftest.make
2861 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2863 $as_echo "yes" >&6; }
2864 SET_MAKE=
2865 else
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2868 SET_MAKE="MAKE=${MAKE-make}"
2871 ac_ext=c
2872 ac_cpp='$CPP $CPPFLAGS'
2873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876 if test -n "$ac_tool_prefix"; then
2877 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2878 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if test "${ac_cv_prog_CC+set}" = set; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 else
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 for as_dir in $PATH
2890 IFS=$as_save_IFS
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 break 2
2898 done
2899 done
2900 IFS=$as_save_IFS
2904 CC=$ac_cv_prog_CC
2905 if test -n "$CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2907 $as_echo "$CC" >&6; }
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2915 if test -z "$ac_cv_prog_CC"; then
2916 ac_ct_CC=$CC
2917 # Extract the first word of "gcc", so it can be a program name with args.
2918 set dummy gcc; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2922 $as_echo_n "(cached) " >&6
2923 else
2924 if test -n "$ac_ct_CC"; then
2925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2930 IFS=$as_save_IFS
2931 test -z "$as_dir" && as_dir=.
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 ac_cv_prog_ac_ct_CC="gcc"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 break 2
2938 done
2939 done
2940 IFS=$as_save_IFS
2944 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2945 if test -n "$ac_ct_CC"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2947 $as_echo "$ac_ct_CC" >&6; }
2948 else
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2953 if test "x$ac_ct_CC" = x; then
2954 CC=""
2955 else
2956 case $cross_compiling:$ac_tool_warned in
2957 yes:)
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2960 ac_tool_warned=yes ;;
2961 esac
2962 CC=$ac_ct_CC
2964 else
2965 CC="$ac_cv_prog_CC"
2968 if test -z "$CC"; then
2969 if test -n "$ac_tool_prefix"; then
2970 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2971 set dummy ${ac_tool_prefix}cc; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if test "${ac_cv_prog_CC+set}" = set; then :
2975 $as_echo_n "(cached) " >&6
2976 else
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2979 else
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
2986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987 ac_cv_prog_CC="${ac_tool_prefix}cc"
2988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2991 done
2992 done
2993 IFS=$as_save_IFS
2997 CC=$ac_cv_prog_CC
2998 if test -n "$CC"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3000 $as_echo "$CC" >&6; }
3001 else
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003 $as_echo "no" >&6; }
3009 if test -z "$CC"; then
3010 # Extract the first word of "cc", so it can be a program name with args.
3011 set dummy cc; ac_word=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if test "${ac_cv_prog_CC+set}" = set; then :
3015 $as_echo_n "(cached) " >&6
3016 else
3017 if test -n "$CC"; then
3018 ac_cv_prog_CC="$CC" # Let the user override the test.
3019 else
3020 ac_prog_rejected=no
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3029 ac_prog_rejected=yes
3030 continue
3032 ac_cv_prog_CC="cc"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3036 done
3037 done
3038 IFS=$as_save_IFS
3040 if test $ac_prog_rejected = yes; then
3041 # We found a bogon in the path, so make sure we never use it.
3042 set dummy $ac_cv_prog_CC
3043 shift
3044 if test $# != 0; then
3045 # We chose a different compiler from the bogus one.
3046 # However, it has the same basename, so the bogon will be chosen
3047 # first if we set CC to just the basename; use the full file name.
3048 shift
3049 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3054 CC=$ac_cv_prog_CC
3055 if test -n "$CC"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3057 $as_echo "$CC" >&6; }
3058 else
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3065 if test -z "$CC"; then
3066 if test -n "$ac_tool_prefix"; then
3067 for ac_prog in cl.exe
3069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if test "${ac_cv_prog_CC+set}" = set; then :
3074 $as_echo_n "(cached) " >&6
3075 else
3076 if test -n "$CC"; then
3077 ac_cv_prog_CC="$CC" # Let the user override the test.
3078 else
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_exec_ext in '' $ac_executable_extensions; do
3085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3086 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 break 2
3090 done
3091 done
3092 IFS=$as_save_IFS
3096 CC=$ac_cv_prog_CC
3097 if test -n "$CC"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3099 $as_echo "$CC" >&6; }
3100 else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3106 test -n "$CC" && break
3107 done
3109 if test -z "$CC"; then
3110 ac_ct_CC=$CC
3111 for ac_prog in cl.exe
3113 # Extract the first word of "$ac_prog", so it can be a program name with args.
3114 set dummy $ac_prog; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3118 $as_echo_n "(cached) " >&6
3119 else
3120 if test -n "$ac_ct_CC"; then
3121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3122 else
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 for as_dir in $PATH
3126 IFS=$as_save_IFS
3127 test -z "$as_dir" && as_dir=.
3128 for ac_exec_ext in '' $ac_executable_extensions; do
3129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130 ac_cv_prog_ac_ct_CC="$ac_prog"
3131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132 break 2
3134 done
3135 done
3136 IFS=$as_save_IFS
3140 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3141 if test -n "$ac_ct_CC"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3143 $as_echo "$ac_ct_CC" >&6; }
3144 else
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3150 test -n "$ac_ct_CC" && break
3151 done
3153 if test "x$ac_ct_CC" = x; then
3154 CC=""
3155 else
3156 case $cross_compiling:$ac_tool_warned in
3157 yes:)
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3160 ac_tool_warned=yes ;;
3161 esac
3162 CC=$ac_ct_CC
3169 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3171 as_fn_error "no acceptable C compiler found in \$PATH
3172 See \`config.log' for more details." "$LINENO" 5; }
3174 # Provide some information about the compiler.
3175 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3176 set X $ac_compile
3177 ac_compiler=$2
3178 for ac_option in --version -v -V -qversion; do
3179 { { ac_try="$ac_compiler $ac_option >&5"
3180 case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185 $as_echo "$ac_try_echo"; } >&5
3186 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3187 ac_status=$?
3188 if test -s conftest.err; then
3189 sed '10a\
3190 ... rest of stderr output deleted ...
3191 10q' conftest.err >conftest.er1
3192 cat conftest.er1 >&5
3194 rm -f conftest.er1 conftest.err
3195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }
3197 done
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3203 main ()
3207 return 0;
3209 _ACEOF
3210 ac_clean_files_save=$ac_clean_files
3211 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3212 # Try to create an executable without -o first, disregard a.out.
3213 # It will help us diagnose broken compilers, and finding out an intuition
3214 # of exeext.
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3216 $as_echo_n "checking whether the C compiler works... " >&6; }
3217 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3219 # The possible output files:
3220 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3222 ac_rmfiles=
3223 for ac_file in $ac_files
3225 case $ac_file in
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3228 esac
3229 done
3230 rm -f $ac_rmfiles
3232 if { { ac_try="$ac_link_default"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 $as_echo "$ac_try_echo"; } >&5
3239 (eval "$ac_link_default") 2>&5
3240 ac_status=$?
3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }; then :
3243 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3244 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3245 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3246 # so that the user can short-circuit this test for compilers unknown to
3247 # Autoconf.
3248 for ac_file in $ac_files ''
3250 test -f "$ac_file" || continue
3251 case $ac_file in
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3254 [ab].out )
3255 # We found the default executable, but exeext='' is most
3256 # certainly right.
3257 break;;
3258 *.* )
3259 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3260 then :; else
3261 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3263 # We set ac_cv_exeext here because the later test for it is not
3264 # safe: cross compilers may not add the suffix if given an `-o'
3265 # argument, so we may need to know it at that point already.
3266 # Even if this section looks crufty: it has the advantage of
3267 # actually working.
3268 break;;
3270 break;;
3271 esac
3272 done
3273 test "$ac_cv_exeext" = no && ac_cv_exeext=
3275 else
3276 ac_file=''
3278 if test -z "$ac_file"; then :
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 $as_echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3284 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 { as_fn_set_status 77
3287 as_fn_error "C compiler cannot create executables
3288 See \`config.log' for more details." "$LINENO" 5; }; }
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3294 $as_echo_n "checking for C compiler default output file name... " >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3296 $as_echo "$ac_file" >&6; }
3297 ac_exeext=$ac_cv_exeext
3299 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3300 ac_clean_files=$ac_clean_files_save
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3302 $as_echo_n "checking for suffix of executables... " >&6; }
3303 if { { ac_try="$ac_link"
3304 case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310 (eval "$ac_link") 2>&5
3311 ac_status=$?
3312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313 test $ac_status = 0; }; then :
3314 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3315 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3316 # work properly (i.e., refer to `conftest.exe'), while it won't with
3317 # `rm'.
3318 for ac_file in conftest.exe conftest conftest.*; do
3319 test -f "$ac_file" || continue
3320 case $ac_file in
3321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3322 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3323 break;;
3324 * ) break;;
3325 esac
3326 done
3327 else
3328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330 as_fn_error "cannot compute suffix of executables: cannot compile and link
3331 See \`config.log' for more details." "$LINENO" 5; }
3333 rm -f conftest conftest$ac_cv_exeext
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3335 $as_echo "$ac_cv_exeext" >&6; }
3337 rm -f conftest.$ac_ext
3338 EXEEXT=$ac_cv_exeext
3339 ac_exeext=$EXEEXT
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3342 #include <stdio.h>
3344 main ()
3346 FILE *f = fopen ("conftest.out", "w");
3347 return ferror (f) || fclose (f) != 0;
3350 return 0;
3352 _ACEOF
3353 ac_clean_files="$ac_clean_files conftest.out"
3354 # Check that the compiler produces executables we can run. If not, either
3355 # the compiler is broken, or we cross compile.
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3357 $as_echo_n "checking whether we are cross compiling... " >&6; }
3358 if test "$cross_compiling" != yes; then
3359 { { ac_try="$ac_link"
3360 case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363 esac
3364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3365 $as_echo "$ac_try_echo"; } >&5
3366 (eval "$ac_link") 2>&5
3367 ac_status=$?
3368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3369 test $ac_status = 0; }
3370 if { ac_try='./conftest$ac_cv_exeext'
3371 { { case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376 $as_echo "$ac_try_echo"; } >&5
3377 (eval "$ac_try") 2>&5
3378 ac_status=$?
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }; }; then
3381 cross_compiling=no
3382 else
3383 if test "$cross_compiling" = maybe; then
3384 cross_compiling=yes
3385 else
3386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388 as_fn_error "cannot run C compiled programs.
3389 If you meant to cross compile, use \`--host'.
3390 See \`config.log' for more details." "$LINENO" 5; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3395 $as_echo "$cross_compiling" >&6; }
3397 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3398 ac_clean_files=$ac_clean_files_save
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3400 $as_echo_n "checking for suffix of object files... " >&6; }
3401 if test "${ac_cv_objext+set}" = set; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3408 main ()
3412 return 0;
3414 _ACEOF
3415 rm -f conftest.o conftest.obj
3416 if { { ac_try="$ac_compile"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422 $as_echo "$ac_try_echo"; } >&5
3423 (eval "$ac_compile") 2>&5
3424 ac_status=$?
3425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426 test $ac_status = 0; }; then :
3427 for ac_file in conftest.o conftest.obj conftest.*; do
3428 test -f "$ac_file" || continue;
3429 case $ac_file in
3430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3431 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3432 break;;
3433 esac
3434 done
3435 else
3436 $as_echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441 as_fn_error "cannot compute suffix of object files: cannot compile
3442 See \`config.log' for more details." "$LINENO" 5; }
3444 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3447 $as_echo "$ac_cv_objext" >&6; }
3448 OBJEXT=$ac_cv_objext
3449 ac_objext=$OBJEXT
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3451 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3452 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3459 main ()
3461 #ifndef __GNUC__
3462 choke me
3463 #endif
3466 return 0;
3468 _ACEOF
3469 if ac_fn_c_try_compile "$LINENO"; then :
3470 ac_compiler_gnu=yes
3471 else
3472 ac_compiler_gnu=no
3474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3475 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3479 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3480 if test $ac_compiler_gnu = yes; then
3481 GCC=yes
3482 else
3483 GCC=
3485 ac_test_CFLAGS=${CFLAGS+set}
3486 ac_save_CFLAGS=$CFLAGS
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3488 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3489 if test "${ac_cv_prog_cc_g+set}" = set; then :
3490 $as_echo_n "(cached) " >&6
3491 else
3492 ac_save_c_werror_flag=$ac_c_werror_flag
3493 ac_c_werror_flag=yes
3494 ac_cv_prog_cc_g=no
3495 CFLAGS="-g"
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3500 main ()
3504 return 0;
3506 _ACEOF
3507 if ac_fn_c_try_compile "$LINENO"; then :
3508 ac_cv_prog_cc_g=yes
3509 else
3510 CFLAGS=""
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3515 main ()
3519 return 0;
3521 _ACEOF
3522 if ac_fn_c_try_compile "$LINENO"; then :
3524 else
3525 ac_c_werror_flag=$ac_save_c_werror_flag
3526 CFLAGS="-g"
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3531 main ()
3535 return 0;
3537 _ACEOF
3538 if ac_fn_c_try_compile "$LINENO"; then :
3539 ac_cv_prog_cc_g=yes
3541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 ac_c_werror_flag=$ac_save_c_werror_flag
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3549 $as_echo "$ac_cv_prog_cc_g" >&6; }
3550 if test "$ac_test_CFLAGS" = set; then
3551 CFLAGS=$ac_save_CFLAGS
3552 elif test $ac_cv_prog_cc_g = yes; then
3553 if test "$GCC" = yes; then
3554 CFLAGS="-g -O2"
3555 else
3556 CFLAGS="-g"
3558 else
3559 if test "$GCC" = yes; then
3560 CFLAGS="-O2"
3561 else
3562 CFLAGS=
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3566 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3567 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 ac_cv_prog_cc_c89=no
3571 ac_save_CC=$CC
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3574 #include <stdarg.h>
3575 #include <stdio.h>
3576 #include <sys/types.h>
3577 #include <sys/stat.h>
3578 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3579 struct buf { int x; };
3580 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3581 static char *e (p, i)
3582 char **p;
3583 int i;
3585 return p[i];
3587 static char *f (char * (*g) (char **, int), char **p, ...)
3589 char *s;
3590 va_list v;
3591 va_start (v,p);
3592 s = g (p, va_arg (v,int));
3593 va_end (v);
3594 return s;
3597 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3598 function prototypes and stuff, but not '\xHH' hex character constants.
3599 These don't provoke an error unfortunately, instead are silently treated
3600 as 'x'. The following induces an error, until -std is added to get
3601 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3602 array size at least. It's necessary to write '\x00'==0 to get something
3603 that's true only with -std. */
3604 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3606 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3607 inside strings and character constants. */
3608 #define FOO(x) 'x'
3609 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3611 int test (int i, double x);
3612 struct s1 {int (*f) (int a);};
3613 struct s2 {int (*f) (double a);};
3614 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3615 int argc;
3616 char **argv;
3618 main ()
3620 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3622 return 0;
3624 _ACEOF
3625 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3626 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3628 CC="$ac_save_CC $ac_arg"
3629 if ac_fn_c_try_compile "$LINENO"; then :
3630 ac_cv_prog_cc_c89=$ac_arg
3632 rm -f core conftest.err conftest.$ac_objext
3633 test "x$ac_cv_prog_cc_c89" != "xno" && break
3634 done
3635 rm -f conftest.$ac_ext
3636 CC=$ac_save_CC
3639 # AC_CACHE_VAL
3640 case "x$ac_cv_prog_cc_c89" in
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3643 $as_echo "none needed" >&6; } ;;
3644 xno)
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3646 $as_echo "unsupported" >&6; } ;;
3648 CC="$CC $ac_cv_prog_cc_c89"
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3650 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3651 esac
3652 if test "x$ac_cv_prog_cc_c89" != xno; then :
3656 ac_ext=c
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662 ac_ext=cpp
3663 ac_cpp='$CXXCPP $CPPFLAGS'
3664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3667 if test -z "$CXX"; then
3668 if test -n "$CCC"; then
3669 CXX=$CCC
3670 else
3671 if test -n "$ac_tool_prefix"; then
3672 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if test "${ac_cv_prog_CXX+set}" = set; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 if test -n "$CXX"; then
3682 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3683 else
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3691 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 break 2
3695 done
3696 done
3697 IFS=$as_save_IFS
3701 CXX=$ac_cv_prog_CXX
3702 if test -n "$CXX"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3704 $as_echo "$CXX" >&6; }
3705 else
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707 $as_echo "no" >&6; }
3711 test -n "$CXX" && break
3712 done
3714 if test -z "$CXX"; then
3715 ac_ct_CXX=$CXX
3716 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3718 # Extract the first word of "$ac_prog", so it can be a program name with args.
3719 set dummy $ac_prog; ac_word=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3723 $as_echo_n "(cached) " >&6
3724 else
3725 if test -n "$ac_ct_CXX"; then
3726 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3727 else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3735 ac_cv_prog_ac_ct_CXX="$ac_prog"
3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 break 2
3739 done
3740 done
3741 IFS=$as_save_IFS
3745 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3746 if test -n "$ac_ct_CXX"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3748 $as_echo "$ac_ct_CXX" >&6; }
3749 else
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3755 test -n "$ac_ct_CXX" && break
3756 done
3758 if test "x$ac_ct_CXX" = x; then
3759 CXX="g++"
3760 else
3761 case $cross_compiling:$ac_tool_warned in
3762 yes:)
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3765 ac_tool_warned=yes ;;
3766 esac
3767 CXX=$ac_ct_CXX
3773 # Provide some information about the compiler.
3774 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3775 set X $ac_compile
3776 ac_compiler=$2
3777 for ac_option in --version -v -V -qversion; do
3778 { { ac_try="$ac_compiler $ac_option >&5"
3779 case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3782 esac
3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784 $as_echo "$ac_try_echo"; } >&5
3785 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3786 ac_status=$?
3787 if test -s conftest.err; then
3788 sed '10a\
3789 ... rest of stderr output deleted ...
3790 10q' conftest.err >conftest.er1
3791 cat conftest.er1 >&5
3793 rm -f conftest.er1 conftest.err
3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795 test $ac_status = 0; }
3796 done
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3799 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3800 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3807 main ()
3809 #ifndef __GNUC__
3810 choke me
3811 #endif
3814 return 0;
3816 _ACEOF
3817 if ac_fn_cxx_try_compile "$LINENO"; then :
3818 ac_compiler_gnu=yes
3819 else
3820 ac_compiler_gnu=no
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3827 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3828 if test $ac_compiler_gnu = yes; then
3829 GXX=yes
3830 else
3831 GXX=
3833 ac_test_CXXFLAGS=${CXXFLAGS+set}
3834 ac_save_CXXFLAGS=$CXXFLAGS
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3836 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3837 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3841 ac_cxx_werror_flag=yes
3842 ac_cv_prog_cxx_g=no
3843 CXXFLAGS="-g"
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3848 main ()
3852 return 0;
3854 _ACEOF
3855 if ac_fn_cxx_try_compile "$LINENO"; then :
3856 ac_cv_prog_cxx_g=yes
3857 else
3858 CXXFLAGS=""
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3863 main ()
3867 return 0;
3869 _ACEOF
3870 if ac_fn_cxx_try_compile "$LINENO"; then :
3872 else
3873 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3874 CXXFLAGS="-g"
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3879 main ()
3883 return 0;
3885 _ACEOF
3886 if ac_fn_cxx_try_compile "$LINENO"; then :
3887 ac_cv_prog_cxx_g=yes
3889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3897 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3898 if test "$ac_test_CXXFLAGS" = set; then
3899 CXXFLAGS=$ac_save_CXXFLAGS
3900 elif test $ac_cv_prog_cxx_g = yes; then
3901 if test "$GXX" = yes; then
3902 CXXFLAGS="-g -O2"
3903 else
3904 CXXFLAGS="-g"
3906 else
3907 if test "$GXX" = yes; then
3908 CXXFLAGS="-O2"
3909 else
3910 CXXFLAGS=
3913 ac_ext=c
3914 ac_cpp='$CPP $CPPFLAGS'
3915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919 if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3921 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3926 else
3927 if test -n "$CPPBIN"; then
3928 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3941 done
3942 done
3943 IFS=$as_save_IFS
3947 CPPBIN=$ac_cv_prog_CPPBIN
3948 if test -n "$CPPBIN"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3950 $as_echo "$CPPBIN" >&6; }
3951 else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3958 if test -z "$ac_cv_prog_CPPBIN"; then
3959 ac_ct_CPPBIN=$CPPBIN
3960 # Extract the first word of "cpp", so it can be a program name with args.
3961 set dummy cpp; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 if test -n "$ac_ct_CPPBIN"; then
3968 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3969 else
3970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 for as_dir in $PATH
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3977 ac_cv_prog_ac_ct_CPPBIN="cpp"
3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 break 2
3981 done
3982 done
3983 IFS=$as_save_IFS
3987 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3988 if test -n "$ac_ct_CPPBIN"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
3990 $as_echo "$ac_ct_CPPBIN" >&6; }
3991 else
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3996 if test "x$ac_ct_CPPBIN" = x; then
3997 CPPBIN="cpp"
3998 else
3999 case $cross_compiling:$ac_tool_warned in
4000 yes:)
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003 ac_tool_warned=yes ;;
4004 esac
4005 CPPBIN=$ac_ct_CPPBIN
4007 else
4008 CPPBIN="$ac_cv_prog_CPPBIN"
4012 cat >>confdefs.h <<_ACEOF
4013 #define EXEEXT "$ac_exeext"
4014 _ACEOF
4017 case $host in
4018 *-darwin*)
4019 if test "x$enable_win64" = "xyes"
4020 then
4021 CC="$CC -m64"
4022 CXX="$CXX -m64"
4023 LD="${LD:-ld} -arch x86_64"
4024 AS="${AS:-as} -arch x86_64"
4025 host_cpu="x86_64"
4026 notice_platform="64-bit "
4027 TARGETFLAGS="-m64"
4029 else
4030 CC="$CC -m32"
4031 CXX="$CXX -m32"
4032 LD="${LD:-ld} -arch i386"
4033 AS="${AS:-as} -arch i386"
4034 host_cpu="i386"
4035 notice_platform="32-bit "
4036 TARGETFLAGS="-m32"
4038 enable_win16=${enable_win16:-yes}
4041 x86_64*)
4042 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
4043 then
4044 CC="$CC -m32"
4045 CXX="$CXX -m32"
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
4047 $as_echo_n "checking whether $CC works... " >&6; }
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4053 main ()
4057 return 0;
4059 _ACEOF
4060 if ac_fn_c_try_link "$LINENO"; then :
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4062 $as_echo "yes" >&6; }
4063 else
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4066 as_fn_error "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4068 rm -f core conftest.err conftest.$ac_objext \
4069 conftest$ac_exeext conftest.$ac_ext
4070 LD="${LD:-ld} -m elf_i386"
4071 AS="${AS:-as} --32"
4072 host_cpu="i386"
4073 notice_platform="32-bit "
4074 TARGETFLAGS="-m32"
4076 enable_win16=${enable_win16:-yes}
4077 else
4078 if test "x${GCC}" = "xyes"
4079 then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4081 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084 #include <stdarg.h>
4086 main ()
4088 void func(__builtin_ms_va_list *args);
4090 return 0;
4092 _ACEOF
4093 if ac_fn_c_try_compile "$LINENO"; then :
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4095 $as_echo "yes" >&6; }
4096 else
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4099 as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 TARGETFLAGS="-m64"
4107 *-mingw32*|*-cygwin*)
4108 enable_win16=${enable_win16:-no}
4109 CFLAGS="$CFLAGS -D_WIN32"
4111 i[3456789]86*)
4112 enable_win16=${enable_win16:-yes}
4114 esac
4116 enable_win16=${enable_win16:-no}
4118 enable_winetest=${enable_winetest:-$enable_tests}
4120 if test -n "$with_wine64"
4121 then
4122 if test "x$enable_win64" = "xyes"
4123 then
4124 as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4125 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4127 WOW64_DISABLE=\#
4129 enable_fonts=${enable_fonts:-no}
4130 enable_include=${enable_include:-no}
4131 enable_server=${enable_server:-no}
4132 enable_tools=${enable_tools:-no}
4133 enable_wineboot=${enable_wineboot:-no}
4134 enable_winedbg=${enable_winedbg:-no}
4135 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib32"
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4139 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4140 if test "${wine_cv_toolsdir+set}" = set; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 wine_cv_toolsdir="$with_wine_tools"
4144 if test -z "$with_wine_tools"; then
4145 if test "$cross_compiling" = "yes"; then
4146 as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4147 elif test -n "$with_wine64"; then
4148 wine_cv_toolsdir="$with_wine64"
4151 if test -z "$wine_cv_toolsdir"; then
4152 wine_cv_toolsdir="\$(TOPOBJDIR)"
4153 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4154 case "$wine_cv_toolsdir" in
4155 /*) ;;
4156 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
4157 esac
4158 else
4159 as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4163 $as_echo "$wine_cv_toolsdir" >&6; }
4164 TOOLSDIR=$wine_cv_toolsdir
4166 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4167 then
4168 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4172 for ac_prog in flex
4174 # Extract the first word of "$ac_prog", so it can be a program name with args.
4175 set dummy $ac_prog; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if test "${ac_cv_prog_FLEX+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if test -n "$FLEX"; then
4182 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_FLEX="$ac_prog"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4195 done
4196 done
4197 IFS=$as_save_IFS
4201 FLEX=$ac_cv_prog_FLEX
4202 if test -n "$FLEX"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4204 $as_echo "$FLEX" >&6; }
4205 else
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4211 test -n "$FLEX" && break
4212 done
4213 test -n "$FLEX" || FLEX="none"
4215 if test "$FLEX" = "none"
4216 then
4217 as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4220 $as_echo_n "checking whether flex is recent enough... " >&6; }
4221 cat >conftest.l <<EOF
4222 %top{
4223 #include "prediluvian.h"
4227 if $FLEX -t conftest.l >/dev/null 2>&1
4228 then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4230 $as_echo "yes" >&6; }
4231 else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4234 as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4237 for ac_prog in bison
4239 # Extract the first word of "$ac_prog", so it can be a program name with args.
4240 set dummy $ac_prog; ac_word=$2
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 $as_echo_n "checking for $ac_word... " >&6; }
4243 if test "${ac_cv_prog_BISON+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -n "$BISON"; then
4247 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_prog_BISON="$ac_prog"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4260 done
4261 done
4262 IFS=$as_save_IFS
4266 BISON=$ac_cv_prog_BISON
4267 if test -n "$BISON"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4269 $as_echo "$BISON" >&6; }
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4276 test -n "$BISON" && break
4277 done
4278 test -n "$BISON" || BISON="none"
4280 if test "$BISON" = "none"
4281 then
4282 as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4285 if test -n "$ac_tool_prefix"; then
4286 for ac_prog in ar gar
4288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if test "${ac_cv_prog_AR+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 if test -n "$AR"; then
4296 ac_cv_prog_AR="$AR" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4305 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 break 2
4309 done
4310 done
4311 IFS=$as_save_IFS
4315 AR=$ac_cv_prog_AR
4316 if test -n "$AR"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4318 $as_echo "$AR" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4325 test -n "$AR" && break
4326 done
4328 if test -z "$AR"; then
4329 ac_ct_AR=$AR
4330 for ac_prog in ar gar
4332 # Extract the first word of "$ac_prog", so it can be a program name with args.
4333 set dummy $ac_prog; ac_word=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4338 else
4339 if test -n "$ac_ct_AR"; then
4340 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4349 ac_cv_prog_ac_ct_AR="$ac_prog"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4353 done
4354 done
4355 IFS=$as_save_IFS
4359 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4360 if test -n "$ac_ct_AR"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4362 $as_echo "$ac_ct_AR" >&6; }
4363 else
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4369 test -n "$ac_ct_AR" && break
4370 done
4372 if test "x$ac_ct_AR" = x; then
4373 AR="ar"
4374 else
4375 case $cross_compiling:$ac_tool_warned in
4376 yes:)
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4379 ac_tool_warned=yes ;;
4380 esac
4381 AR=$ac_ct_AR
4385 ARFLAGS=rc
4387 if test -n "$ac_tool_prefix"; then
4388 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4389 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 if test -n "$RANLIB"; then
4396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4409 done
4410 done
4411 IFS=$as_save_IFS
4415 RANLIB=$ac_cv_prog_RANLIB
4416 if test -n "$RANLIB"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4418 $as_echo "$RANLIB" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4426 if test -z "$ac_cv_prog_RANLIB"; then
4427 ac_ct_RANLIB=$RANLIB
4428 # Extract the first word of "ranlib", so it can be a program name with args.
4429 set dummy ranlib; ac_word=$2
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4431 $as_echo_n "checking for $ac_word... " >&6; }
4432 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 if test -n "$ac_ct_RANLIB"; then
4436 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_ac_ct_RANLIB="ranlib"
4446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4451 IFS=$as_save_IFS
4455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4456 if test -n "$ac_ct_RANLIB"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4458 $as_echo "$ac_ct_RANLIB" >&6; }
4459 else
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4464 if test "x$ac_ct_RANLIB" = x; then
4465 RANLIB=":"
4466 else
4467 case $cross_compiling:$ac_tool_warned in
4468 yes:)
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4471 ac_tool_warned=yes ;;
4472 esac
4473 RANLIB=$ac_ct_RANLIB
4475 else
4476 RANLIB="$ac_cv_prog_RANLIB"
4479 if test -n "$ac_tool_prefix"; then
4480 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4481 set dummy ${ac_tool_prefix}strip; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if test "${ac_cv_prog_STRIP+set}" = set; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if test -n "$STRIP"; then
4488 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4489 else
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4493 IFS=$as_save_IFS
4494 test -z "$as_dir" && as_dir=.
4495 for ac_exec_ext in '' $ac_executable_extensions; do
4496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499 break 2
4501 done
4502 done
4503 IFS=$as_save_IFS
4507 STRIP=$ac_cv_prog_STRIP
4508 if test -n "$STRIP"; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4510 $as_echo "$STRIP" >&6; }
4511 else
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4518 if test -z "$ac_cv_prog_STRIP"; then
4519 ac_ct_STRIP=$STRIP
4520 # Extract the first word of "strip", so it can be a program name with args.
4521 set dummy strip; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if test -n "$ac_ct_STRIP"; then
4528 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_ac_ct_STRIP="strip"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4543 IFS=$as_save_IFS
4547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4548 if test -n "$ac_ct_STRIP"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4550 $as_echo "$ac_ct_STRIP" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4556 if test "x$ac_ct_STRIP" = x; then
4557 STRIP="strip"
4558 else
4559 case $cross_compiling:$ac_tool_warned in
4560 yes:)
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4563 ac_tool_warned=yes ;;
4564 esac
4565 STRIP=$ac_ct_STRIP
4567 else
4568 STRIP="$ac_cv_prog_STRIP"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4572 $as_echo_n "checking whether ln -s works... " >&6; }
4573 LN_S=$as_ln_s
4574 if test "$LN_S" = "ln -s"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4576 $as_echo "yes" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4579 $as_echo "no, using $LN_S" >&6; }
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4583 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4584 if test "${ac_cv_path_GREP+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -z "$GREP"; then
4588 ac_path_GREP_found=false
4589 # Loop through the user's path and test for each of PROGNAME-LIST
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_prog in grep ggrep; do
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4598 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4599 # Check for GNU ac_path_GREP and select it if it is found.
4600 # Check for GNU $ac_path_GREP
4601 case `"$ac_path_GREP" --version 2>&1` in
4602 *GNU*)
4603 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4605 ac_count=0
4606 $as_echo_n 0123456789 >"conftest.in"
4607 while :
4609 cat "conftest.in" "conftest.in" >"conftest.tmp"
4610 mv "conftest.tmp" "conftest.in"
4611 cp "conftest.in" "conftest.nl"
4612 $as_echo 'GREP' >> "conftest.nl"
4613 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4615 as_fn_arith $ac_count + 1 && ac_count=$as_val
4616 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4617 # Best one so far, save it but keep looking for a better one
4618 ac_cv_path_GREP="$ac_path_GREP"
4619 ac_path_GREP_max=$ac_count
4621 # 10*(2^10) chars as input seems more than enough
4622 test $ac_count -gt 10 && break
4623 done
4624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4625 esac
4627 $ac_path_GREP_found && break 3
4628 done
4629 done
4630 done
4631 IFS=$as_save_IFS
4632 if test -z "$ac_cv_path_GREP"; then
4633 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4635 else
4636 ac_cv_path_GREP=$GREP
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4641 $as_echo "$ac_cv_path_GREP" >&6; }
4642 GREP="$ac_cv_path_GREP"
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4646 $as_echo_n "checking for egrep... " >&6; }
4647 if test "${ac_cv_path_EGREP+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4651 then ac_cv_path_EGREP="$GREP -E"
4652 else
4653 if test -z "$EGREP"; then
4654 ac_path_EGREP_found=false
4655 # Loop through the user's path and test for each of PROGNAME-LIST
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_prog in egrep; do
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4664 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4665 # Check for GNU ac_path_EGREP and select it if it is found.
4666 # Check for GNU $ac_path_EGREP
4667 case `"$ac_path_EGREP" --version 2>&1` in
4668 *GNU*)
4669 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4671 ac_count=0
4672 $as_echo_n 0123456789 >"conftest.in"
4673 while :
4675 cat "conftest.in" "conftest.in" >"conftest.tmp"
4676 mv "conftest.tmp" "conftest.in"
4677 cp "conftest.in" "conftest.nl"
4678 $as_echo 'EGREP' >> "conftest.nl"
4679 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681 as_fn_arith $ac_count + 1 && ac_count=$as_val
4682 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4683 # Best one so far, save it but keep looking for a better one
4684 ac_cv_path_EGREP="$ac_path_EGREP"
4685 ac_path_EGREP_max=$ac_count
4687 # 10*(2^10) chars as input seems more than enough
4688 test $ac_count -gt 10 && break
4689 done
4690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4691 esac
4693 $ac_path_EGREP_found && break 3
4694 done
4695 done
4696 done
4697 IFS=$as_save_IFS
4698 if test -z "$ac_cv_path_EGREP"; then
4699 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4701 else
4702 ac_cv_path_EGREP=$EGREP
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4708 $as_echo "$ac_cv_path_EGREP" >&6; }
4709 EGREP="$ac_cv_path_EGREP"
4712 # Extract the first word of "ldconfig", so it can be a program name with args.
4713 set dummy ldconfig; ac_word=$2
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 case $LDCONFIG in
4720 [\\/]* | ?:[\\/]*)
4721 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in /sbin /usr/sbin $PATH
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4731 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4733 break 2
4735 done
4736 done
4737 IFS=$as_save_IFS
4739 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4741 esac
4743 LDCONFIG=$ac_cv_path_LDCONFIG
4744 if test -n "$LDCONFIG"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4746 $as_echo "$LDCONFIG" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4753 # Find a good install program. We prefer a C program (faster),
4754 # so one script is as good as another. But avoid the broken or
4755 # incompatible versions:
4756 # SysV /etc/install, /usr/sbin/install
4757 # SunOS /usr/etc/install
4758 # IRIX /sbin/install
4759 # AIX /bin/install
4760 # AmigaOS /C/install, which installs bootblocks on floppy discs
4761 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4762 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4763 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4764 # OS/2's system install, which has a completely different semantic
4765 # ./install, which can be erroneously created by make from ./install.sh.
4766 # Reject install programs that cannot install multiple files.
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4768 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4769 if test -z "$INSTALL"; then
4770 if test "${ac_cv_path_install+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 # Account for people who put trailing slashes in PATH elements.
4779 case $as_dir/ in #((
4780 ./ | .// | /[cC]/* | \
4781 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4782 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4783 /usr/ucb/* ) ;;
4785 # OSF1 and SCO ODT 3.0 have their own names for install.
4786 # Don't use installbsd from OSF since it installs stuff as root
4787 # by default.
4788 for ac_prog in ginstall scoinst install; do
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4791 if test $ac_prog = install &&
4792 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4793 # AIX install. It has an incompatible calling convention.
4795 elif test $ac_prog = install &&
4796 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4797 # program-specific install script used by HP pwplus--don't use.
4799 else
4800 rm -rf conftest.one conftest.two conftest.dir
4801 echo one > conftest.one
4802 echo two > conftest.two
4803 mkdir conftest.dir
4804 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4805 test -s conftest.one && test -s conftest.two &&
4806 test -s conftest.dir/conftest.one &&
4807 test -s conftest.dir/conftest.two
4808 then
4809 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4810 break 3
4814 done
4815 done
4817 esac
4819 done
4820 IFS=$as_save_IFS
4822 rm -rf conftest.one conftest.two conftest.dir
4825 if test "${ac_cv_path_install+set}" = set; then
4826 INSTALL=$ac_cv_path_install
4827 else
4828 # As a last resort, use the slow shell script. Don't cache a
4829 # value for INSTALL within a source directory, because that will
4830 # break other packages using the cache if that directory is
4831 # removed, or if the value is a relative name.
4832 INSTALL=$ac_install_sh
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4836 $as_echo "$INSTALL" >&6; }
4838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4839 # It thinks the first close brace ends the variable substitution.
4840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4842 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4844 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4846 case "$INSTALL" in
4847 [\\/$]* | ?:[\\/]* ) ;;
4848 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4849 esac
4851 for ac_prog in lclint lint
4853 # Extract the first word of "$ac_prog", so it can be a program name with args.
4854 set dummy $ac_prog; ac_word=$2
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4856 $as_echo_n "checking for $ac_word... " >&6; }
4857 if test "${ac_cv_prog_LINT+set}" = set; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 if test -n "$LINT"; then
4861 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4862 else
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_prog_LINT="$ac_prog"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4874 done
4875 done
4876 IFS=$as_save_IFS
4880 LINT=$ac_cv_prog_LINT
4881 if test -n "$LINT"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4883 $as_echo "$LINT" >&6; }
4884 else
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4890 test -n "$LINT" && break
4891 done
4893 if test "$LINT" = "lint"
4894 then
4895 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4900 for ac_prog in fontforge
4902 # Extract the first word of "$ac_prog", so it can be a program name with args.
4903 set dummy $ac_prog; ac_word=$2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 $as_echo_n "checking for $ac_word... " >&6; }
4906 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 if test -n "$FONTFORGE"; then
4910 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_FONTFORGE="$ac_prog"
4920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4923 done
4924 done
4925 IFS=$as_save_IFS
4929 FONTFORGE=$ac_cv_prog_FONTFORGE
4930 if test -n "$FONTFORGE"; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4932 $as_echo "$FONTFORGE" >&6; }
4933 else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4939 test -n "$FONTFORGE" && break
4940 done
4941 test -n "$FONTFORGE" || FONTFORGE="false"
4943 for ac_prog in pkg-config
4945 # Extract the first word of "$ac_prog", so it can be a program name with args.
4946 set dummy $ac_prog; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$PKG_CONFIG"; then
4953 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_PKG_CONFIG="$ac_prog"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4966 done
4967 done
4968 IFS=$as_save_IFS
4972 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4973 if test -n "$PKG_CONFIG"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4975 $as_echo "$PKG_CONFIG" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4982 test -n "$PKG_CONFIG" && break
4983 done
4984 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4986 for ac_prog in rsvg
4988 # Extract the first word of "$ac_prog", so it can be a program name with args.
4989 set dummy $ac_prog; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_prog_RSVG+set}" = set; then :
4993 $as_echo_n "(cached) " >&6
4994 else
4995 if test -n "$RSVG"; then
4996 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_RSVG="$ac_prog"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5009 done
5010 done
5011 IFS=$as_save_IFS
5015 RSVG=$ac_cv_prog_RSVG
5016 if test -n "$RSVG"; then
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
5018 $as_echo "$RSVG" >&6; }
5019 else
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021 $as_echo "no" >&6; }
5025 test -n "$RSVG" && break
5026 done
5027 test -n "$RSVG" || RSVG="false"
5029 for ac_prog in icotool
5031 # Extract the first word of "$ac_prog", so it can be a program name with args.
5032 set dummy $ac_prog; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$ICOTOOL"; then
5039 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_prog_ICOTOOL="$ac_prog"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5052 done
5053 done
5054 IFS=$as_save_IFS
5058 ICOTOOL=$ac_cv_prog_ICOTOOL
5059 if test -n "$ICOTOOL"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5061 $as_echo "$ICOTOOL" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5068 test -n "$ICOTOOL" && break
5069 done
5070 test -n "$ICOTOOL" || ICOTOOL="false"
5073 if test "${enable_maintainer_mode+set}" = set
5074 then
5075 if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi
5076 if test "$RSVG" = "false"; then as_fn_append wine_warnings "|rsvg is missing, icons can't be rebuilt."; fi
5077 if test "$ICOTOOL" = "false"; then as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."; fi
5080 case $host_cpu in
5081 *i[3456789]86*)
5082 # Extract the first word of "prelink", so it can be a program name with args.
5083 set dummy prelink; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if test "${ac_cv_path_PRELINK+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5088 else
5089 case $PRELINK in
5090 [\\/]* | ?:[\\/]*)
5091 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in /sbin /usr/sbin $PATH
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5105 done
5106 done
5107 IFS=$as_save_IFS
5109 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5111 esac
5113 PRELINK=$ac_cv_path_PRELINK
5114 if test -n "$PRELINK"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
5116 $as_echo "$PRELINK" >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5124 esac
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5128 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5129 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 ac_check_lib_save_LIBS=$LIBS
5133 LIBS="-li386 $LIBS"
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5137 /* Override any GCC internal prototype to avoid an error.
5138 Use char because int might match the return type of a GCC
5139 builtin and then its argument prototype would still apply. */
5140 #ifdef __cplusplus
5141 extern "C"
5142 #endif
5143 char i386_set_ldt ();
5145 main ()
5147 return i386_set_ldt ();
5149 return 0;
5151 _ACEOF
5152 if ac_fn_c_try_link "$LINENO"; then :
5153 ac_cv_lib_i386_i386_set_ldt=yes
5154 else
5155 ac_cv_lib_i386_i386_set_ldt=no
5157 rm -f core conftest.err conftest.$ac_objext \
5158 conftest$ac_exeext conftest.$ac_ext
5159 LIBS=$ac_check_lib_save_LIBS
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5162 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5163 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5164 cat >>confdefs.h <<_ACEOF
5165 #define HAVE_LIBI386 1
5166 _ACEOF
5168 LIBS="-li386 $LIBS"
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5173 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5174 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 ac_check_lib_save_LIBS=$LIBS
5178 LIBS="-lossaudio $LIBS"
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5182 /* Override any GCC internal prototype to avoid an error.
5183 Use char because int might match the return type of a GCC
5184 builtin and then its argument prototype would still apply. */
5185 #ifdef __cplusplus
5186 extern "C"
5187 #endif
5188 char _oss_ioctl ();
5190 main ()
5192 return _oss_ioctl ();
5194 return 0;
5196 _ACEOF
5197 if ac_fn_c_try_link "$LINENO"; then :
5198 ac_cv_lib_ossaudio__oss_ioctl=yes
5199 else
5200 ac_cv_lib_ossaudio__oss_ioctl=no
5202 rm -f core conftest.err conftest.$ac_objext \
5203 conftest$ac_exeext conftest.$ac_ext
5204 LIBS=$ac_check_lib_save_LIBS
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5207 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5208 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5209 cat >>confdefs.h <<_ACEOF
5210 #define HAVE_LIBOSSAUDIO 1
5211 _ACEOF
5213 LIBS="-lossaudio $LIBS"
5218 XLIB=""
5220 OPENGL_LIBS=""
5224 # Check whether --enable-largefile was given.
5225 if test "${enable_largefile+set}" = set; then :
5226 enableval=$enable_largefile;
5229 if test "$enable_largefile" != no; then
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5232 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5233 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 ac_cv_sys_largefile_CC=no
5237 if test "$GCC" != yes; then
5238 ac_save_CC=$CC
5239 while :; do
5240 # IRIX 6.2 and later do not support large files by default,
5241 # so use the C compiler's -n32 option if that helps.
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 #include <sys/types.h>
5245 /* Check that off_t can represent 2**63 - 1 correctly.
5246 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5247 since some C++ compilers masquerading as C compilers
5248 incorrectly reject 9223372036854775807. */
5249 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5250 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5251 && LARGE_OFF_T % 2147483647 == 1)
5252 ? 1 : -1];
5254 main ()
5258 return 0;
5260 _ACEOF
5261 if ac_fn_c_try_compile "$LINENO"; then :
5262 break
5264 rm -f core conftest.err conftest.$ac_objext
5265 CC="$CC -n32"
5266 if ac_fn_c_try_compile "$LINENO"; then :
5267 ac_cv_sys_largefile_CC=' -n32'; break
5269 rm -f core conftest.err conftest.$ac_objext
5270 break
5271 done
5272 CC=$ac_save_CC
5273 rm -f conftest.$ac_ext
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5277 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5278 if test "$ac_cv_sys_largefile_CC" != no; then
5279 CC=$CC$ac_cv_sys_largefile_CC
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5283 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5284 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 while :; do
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 #include <sys/types.h>
5291 /* Check that off_t can represent 2**63 - 1 correctly.
5292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5293 since some C++ compilers masquerading as C compilers
5294 incorrectly reject 9223372036854775807. */
5295 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5297 && LARGE_OFF_T % 2147483647 == 1)
5298 ? 1 : -1];
5300 main ()
5304 return 0;
5306 _ACEOF
5307 if ac_fn_c_try_compile "$LINENO"; then :
5308 ac_cv_sys_file_offset_bits=no; break
5310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313 #define _FILE_OFFSET_BITS 64
5314 #include <sys/types.h>
5315 /* Check that off_t can represent 2**63 - 1 correctly.
5316 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5317 since some C++ compilers masquerading as C compilers
5318 incorrectly reject 9223372036854775807. */
5319 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5320 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5321 && LARGE_OFF_T % 2147483647 == 1)
5322 ? 1 : -1];
5324 main ()
5328 return 0;
5330 _ACEOF
5331 if ac_fn_c_try_compile "$LINENO"; then :
5332 ac_cv_sys_file_offset_bits=64; break
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 ac_cv_sys_file_offset_bits=unknown
5336 break
5337 done
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5340 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5341 case $ac_cv_sys_file_offset_bits in #(
5342 no | unknown) ;;
5344 cat >>confdefs.h <<_ACEOF
5345 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5346 _ACEOF
5348 esac
5349 rm -rf conftest*
5350 if test $ac_cv_sys_file_offset_bits = unknown; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5352 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5353 if test "${ac_cv_sys_large_files+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 while :; do
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5359 #include <sys/types.h>
5360 /* Check that off_t can represent 2**63 - 1 correctly.
5361 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5362 since some C++ compilers masquerading as C compilers
5363 incorrectly reject 9223372036854775807. */
5364 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5366 && LARGE_OFF_T % 2147483647 == 1)
5367 ? 1 : -1];
5369 main ()
5373 return 0;
5375 _ACEOF
5376 if ac_fn_c_try_compile "$LINENO"; then :
5377 ac_cv_sys_large_files=no; break
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5382 #define _LARGE_FILES 1
5383 #include <sys/types.h>
5384 /* Check that off_t can represent 2**63 - 1 correctly.
5385 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5386 since some C++ compilers masquerading as C compilers
5387 incorrectly reject 9223372036854775807. */
5388 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5389 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5390 && LARGE_OFF_T % 2147483647 == 1)
5391 ? 1 : -1];
5393 main ()
5397 return 0;
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 ac_cv_sys_large_files=1; break
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 ac_cv_sys_large_files=unknown
5405 break
5406 done
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5409 $as_echo "$ac_cv_sys_large_files" >&6; }
5410 case $ac_cv_sys_large_files in #(
5411 no | unknown) ;;
5413 cat >>confdefs.h <<_ACEOF
5414 #define _LARGE_FILES $ac_cv_sys_large_files
5415 _ACEOF
5417 esac
5418 rm -rf conftest*
5423 ac_ext=c
5424 ac_cpp='$CPP $CPPFLAGS'
5425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5429 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5430 # On Suns, sometimes $CPP names a directory.
5431 if test -n "$CPP" && test -d "$CPP"; then
5432 CPP=
5434 if test -z "$CPP"; then
5435 if test "${ac_cv_prog_CPP+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 # Double quotes because CPP needs to be expanded
5439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5441 ac_preproc_ok=false
5442 for ac_c_preproc_warn_flag in '' yes
5444 # Use a header file that comes with gcc, so configuring glibc
5445 # with a fresh cross-compiler works.
5446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447 # <limits.h> exists even on freestanding compilers.
5448 # On the NeXT, cc -E runs the code through the compiler's parser,
5449 # not just through cpp. "Syntax error" is here to catch this case.
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #ifdef __STDC__
5453 # include <limits.h>
5454 #else
5455 # include <assert.h>
5456 #endif
5457 Syntax error
5458 _ACEOF
5459 if ac_fn_c_try_cpp "$LINENO"; then :
5461 else
5462 # Broken: fails on valid input.
5463 continue
5465 rm -f conftest.err conftest.$ac_ext
5467 # OK, works on sane cases. Now check whether nonexistent headers
5468 # can be detected and how.
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <ac_nonexistent.h>
5472 _ACEOF
5473 if ac_fn_c_try_cpp "$LINENO"; then :
5474 # Broken: success on invalid input.
5475 continue
5476 else
5477 # Passes both tests.
5478 ac_preproc_ok=:
5479 break
5481 rm -f conftest.err conftest.$ac_ext
5483 done
5484 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5485 rm -f conftest.err conftest.$ac_ext
5486 if $ac_preproc_ok; then :
5487 break
5490 done
5491 ac_cv_prog_CPP=$CPP
5494 CPP=$ac_cv_prog_CPP
5495 else
5496 ac_cv_prog_CPP=$CPP
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5499 $as_echo "$CPP" >&6; }
5500 ac_preproc_ok=false
5501 for ac_c_preproc_warn_flag in '' yes
5503 # Use a header file that comes with gcc, so configuring glibc
5504 # with a fresh cross-compiler works.
5505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5506 # <limits.h> exists even on freestanding compilers.
5507 # On the NeXT, cc -E runs the code through the compiler's parser,
5508 # not just through cpp. "Syntax error" is here to catch this case.
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5511 #ifdef __STDC__
5512 # include <limits.h>
5513 #else
5514 # include <assert.h>
5515 #endif
5516 Syntax error
5517 _ACEOF
5518 if ac_fn_c_try_cpp "$LINENO"; then :
5520 else
5521 # Broken: fails on valid input.
5522 continue
5524 rm -f conftest.err conftest.$ac_ext
5526 # OK, works on sane cases. Now check whether nonexistent headers
5527 # can be detected and how.
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #include <ac_nonexistent.h>
5531 _ACEOF
5532 if ac_fn_c_try_cpp "$LINENO"; then :
5533 # Broken: success on invalid input.
5534 continue
5535 else
5536 # Passes both tests.
5537 ac_preproc_ok=:
5538 break
5540 rm -f conftest.err conftest.$ac_ext
5542 done
5543 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5544 rm -f conftest.err conftest.$ac_ext
5545 if $ac_preproc_ok; then :
5547 else
5548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5550 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5551 See \`config.log' for more details." "$LINENO" 5; }
5554 ac_ext=c
5555 ac_cpp='$CPP $CPPFLAGS'
5556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5562 $as_echo_n "checking for ANSI C header files... " >&6; }
5563 if test "${ac_cv_header_stdc+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #include <stdlib.h>
5569 #include <stdarg.h>
5570 #include <string.h>
5571 #include <float.h>
5574 main ()
5578 return 0;
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 ac_cv_header_stdc=yes
5583 else
5584 ac_cv_header_stdc=no
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 if test $ac_cv_header_stdc = yes; then
5589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5591 /* end confdefs.h. */
5592 #include <string.h>
5594 _ACEOF
5595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5596 $EGREP "memchr" >/dev/null 2>&1; then :
5598 else
5599 ac_cv_header_stdc=no
5601 rm -f conftest*
5605 if test $ac_cv_header_stdc = yes; then
5606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <stdlib.h>
5611 _ACEOF
5612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5613 $EGREP "free" >/dev/null 2>&1; then :
5615 else
5616 ac_cv_header_stdc=no
5618 rm -f conftest*
5622 if test $ac_cv_header_stdc = yes; then
5623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5624 if test "$cross_compiling" = yes; then :
5626 else
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 #include <ctype.h>
5630 #include <stdlib.h>
5631 #if ((' ' & 0x0FF) == 0x020)
5632 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5633 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5634 #else
5635 # define ISLOWER(c) \
5636 (('a' <= (c) && (c) <= 'i') \
5637 || ('j' <= (c) && (c) <= 'r') \
5638 || ('s' <= (c) && (c) <= 'z'))
5639 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5640 #endif
5642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5644 main ()
5646 int i;
5647 for (i = 0; i < 256; i++)
5648 if (XOR (islower (i), ISLOWER (i))
5649 || toupper (i) != TOUPPER (i))
5650 return 2;
5651 return 0;
5653 _ACEOF
5654 if ac_fn_c_try_run "$LINENO"; then :
5656 else
5657 ac_cv_header_stdc=no
5659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5660 conftest.$ac_objext conftest.beam conftest.$ac_ext
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5666 $as_echo "$ac_cv_header_stdc" >&6; }
5667 if test $ac_cv_header_stdc = yes; then
5669 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5673 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5674 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5675 inttypes.h stdint.h unistd.h
5676 do :
5677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5678 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5680 eval as_val=\$$as_ac_Header
5681 if test "x$as_val" = x""yes; then :
5682 cat >>confdefs.h <<_ACEOF
5683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5684 _ACEOF
5688 done
5691 for ac_header in \
5692 AL/al.h \
5693 AudioToolbox/AudioConverter.h \
5694 AudioToolbox/AudioFile.h \
5695 AudioToolbox/AudioFileStream.h \
5696 AudioUnit/AudioUnit.h \
5697 Carbon/Carbon.h \
5698 CoreAudio/CoreAudio.h \
5699 DiskArbitration/DiskArbitration.h \
5700 IOKit/IOKitLib.h \
5701 IOKit/hid/IOHIDLib.h \
5702 OpenAL/al.h \
5703 alias.h \
5704 alsa/asoundlib.h \
5705 arpa/inet.h \
5706 arpa/nameser.h \
5707 asm/types.h \
5708 capi20.h \
5709 curses.h \
5710 direct.h \
5711 dirent.h \
5712 dlfcn.h \
5713 elf.h \
5714 float.h \
5715 fnmatch.h \
5716 fontconfig/fontconfig.h \
5717 getopt.h \
5718 grp.h \
5719 gsm.h \
5720 gsm/gsm.h \
5721 ieeefp.h \
5722 inet/mib2.h \
5723 io.h \
5724 jack/jack.h \
5725 jpeglib.h \
5726 kstat.h \
5727 lber.h \
5728 lcms.h \
5729 lcms/lcms.h \
5730 ldap.h \
5731 libaudioio.h \
5732 link.h \
5733 linux/cdrom.h \
5734 linux/compiler.h \
5735 linux/hdreg.h \
5736 linux/input.h \
5737 linux/ioctl.h \
5738 linux/joystick.h \
5739 linux/major.h \
5740 linux/param.h \
5741 linux/serial.h \
5742 linux/types.h \
5743 linux/ucdrom.h \
5744 mach-o/nlist.h \
5745 mach/mach.h \
5746 mach/machine.h \
5747 machine/cpu.h \
5748 machine/limits.h \
5749 machine/soundcard.h \
5750 mntent.h \
5751 mpg123.h \
5752 ncurses.h \
5753 netdb.h \
5754 netinet/in.h \
5755 netinet/in_systm.h \
5756 netinet/tcp.h \
5757 netinet/tcp_fsm.h \
5758 openssl/err.h \
5759 openssl/ssl.h \
5760 png.h \
5761 poll.h \
5762 port.h \
5763 process.h \
5764 pthread.h \
5765 pwd.h \
5766 regex.h \
5767 sched.h \
5768 scsi/scsi.h \
5769 scsi/scsi_ioctl.h \
5770 scsi/sg.h \
5771 soundcard.h \
5772 stdbool.h \
5773 stdint.h \
5774 strings.h \
5775 stropts.h \
5776 sys/asoundlib.h \
5777 sys/cdio.h \
5778 sys/elf32.h \
5779 sys/epoll.h \
5780 sys/errno.h \
5781 sys/event.h \
5782 sys/exec_elf.h \
5783 sys/filio.h \
5784 sys/inotify.h \
5785 sys/ioctl.h \
5786 sys/ipc.h \
5787 sys/limits.h \
5788 sys/link.h \
5789 sys/mman.h \
5790 sys/modem.h \
5791 sys/msg.h \
5792 sys/mtio.h \
5793 sys/param.h \
5794 sys/poll.h \
5795 sys/prctl.h \
5796 sys/protosw.h \
5797 sys/ptrace.h \
5798 sys/resource.h \
5799 sys/scsiio.h \
5800 sys/shm.h \
5801 sys/signal.h \
5802 sys/socket.h \
5803 sys/socketvar.h \
5804 sys/sockio.h \
5805 sys/soundcard.h \
5806 sys/statvfs.h \
5807 sys/strtio.h \
5808 sys/syscall.h \
5809 sys/tihdr.h \
5810 sys/time.h \
5811 sys/timeout.h \
5812 sys/times.h \
5813 sys/uio.h \
5814 sys/un.h \
5815 sys/utsname.h \
5816 sys/vm86.h \
5817 sys/wait.h \
5818 syscall.h \
5819 termios.h \
5820 tiffio.h \
5821 unistd.h \
5822 utime.h \
5823 valgrind/memcheck.h \
5824 valgrind/valgrind.h \
5825 zlib.h
5827 do :
5828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5829 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5830 eval as_val=\$$as_ac_Header
5831 if test "x$as_val" = x""yes; then :
5832 cat >>confdefs.h <<_ACEOF
5833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5834 _ACEOF
5838 done
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5841 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5842 if test "${ac_cv_header_stat_broken+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5847 #include <sys/types.h>
5848 #include <sys/stat.h>
5850 #if defined S_ISBLK && defined S_IFDIR
5851 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5852 #endif
5854 #if defined S_ISBLK && defined S_IFCHR
5855 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5856 #endif
5858 #if defined S_ISLNK && defined S_IFREG
5859 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5860 #endif
5862 #if defined S_ISSOCK && defined S_IFREG
5863 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5864 #endif
5866 _ACEOF
5867 if ac_fn_c_try_compile "$LINENO"; then :
5868 ac_cv_header_stat_broken=no
5869 else
5870 ac_cv_header_stat_broken=yes
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5875 $as_echo "$ac_cv_header_stat_broken" >&6; }
5876 if test $ac_cv_header_stat_broken = yes; then
5878 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5884 for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
5885 do :
5886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5887 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5888 #ifdef HAVE_SYS_PARAM_H
5889 # include <sys/param.h>
5890 #endif
5892 eval as_val=\$$as_ac_Header
5893 if test "x$as_val" = x""yes; then :
5894 cat >>confdefs.h <<_ACEOF
5895 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5896 _ACEOF
5900 done
5903 for ac_header in \
5904 netinet/ip.h \
5905 net/if.h \
5906 net/if_arp.h \
5907 net/if_dl.h \
5908 net/if_types.h \
5909 net/route.h \
5910 netinet/if_ether.h \
5911 netinet/if_inarp.h \
5912 netinet/in_pcb.h \
5913 netinet/ip_icmp.h \
5914 netinet/ip_var.h \
5915 netinet/udp.h \
5916 netipx/ipx.h \
5918 do :
5919 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5920 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5921 #ifdef HAVE_SYS_SOCKET_H
5922 # include <sys/socket.h>
5923 #endif
5924 #ifdef HAVE_SYS_SOCKETVAR_H
5925 # include <sys/socketvar.h>
5926 #endif
5927 #ifdef HAVE_NET_ROUTE_H
5928 # include <net/route.h>
5929 #endif
5930 #ifdef HAVE_NETINET_IN_H
5931 # include <netinet/in.h>
5932 #endif
5933 #ifdef HAVE_NETINET_IN_SYSTM_H
5934 # include <netinet/in_systm.h>
5935 #endif
5936 #ifdef HAVE_NET_IF_H
5937 # include <net/if.h>
5938 #endif
5939 #ifdef HAVE_NETINET_IP_H
5940 # include <netinet/ip.h>
5941 #endif
5943 eval as_val=\$$as_ac_Header
5944 if test "x$as_val" = x""yes; then :
5945 cat >>confdefs.h <<_ACEOF
5946 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5947 _ACEOF
5951 done
5954 for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
5955 do :
5956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5957 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
5958 #ifdef HAVE_ALIAS_H
5959 # include <alias.h>
5960 #endif
5961 #ifdef HAVE_SYS_SOCKET_H
5962 # include <sys/socket.h>
5963 #endif
5964 #ifdef HAVE_SYS_SOCKETVAR_H
5965 # include <sys/socketvar.h>
5966 #endif
5967 #ifdef HAVE_SYS_TIMEOUT_H
5968 # include <sys/timeout.h>
5969 #endif
5970 #ifdef HAVE_NETINET_IN_H
5971 # include <netinet/in.h>
5972 #endif
5973 #ifdef HAVE_NETINET_IN_SYSTM_H
5974 # include <netinet/in_systm.h>
5975 #endif
5976 #ifdef HAVE_NETINET_IP_H
5977 # include <netinet/ip.h>
5978 #endif
5979 #ifdef HAVE_NETINET_IP_VAR_H
5980 # include <netinet/ip_var.h>
5981 #endif
5982 #ifdef HAVE_NETINET_IP_ICMP_H
5983 # include <netinet/ip_icmp.h>
5984 #endif
5985 #ifdef HAVE_NETINET_UDP_H
5986 # include <netinet/udp.h>
5987 #endif
5988 #ifdef HAVE_NETINET_TCP_H
5989 # include <netinet/tcp.h>
5990 #endif
5991 #ifdef HAVE_NETINET_TCP_TIMER_H
5992 #include <netinet/tcp_timer.h>
5993 #endif
5995 eval as_val=\$$as_ac_Header
5996 if test "x$as_val" = x""yes; then :
5997 cat >>confdefs.h <<_ACEOF
5998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5999 _ACEOF
6003 done
6006 for ac_header in linux/ipx.h linux/irda.h
6007 do :
6008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6009 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
6010 #ifdef HAVE_ASM_TYPES_H
6011 # include <asm/types.h>
6012 #endif
6013 #ifdef HAVE_SYS_SOCKET_H
6014 # include <sys/socket.h>
6015 #endif
6016 #ifdef HAVE_LINUX_TYPES_H
6017 # include <linux/types.h>
6018 #endif
6020 eval as_val=\$$as_ac_Header
6021 if test "x$as_val" = x""yes; then :
6022 cat >>confdefs.h <<_ACEOF
6023 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6024 _ACEOF
6028 done
6031 for ac_header in mach-o/dyld_images.h
6032 do :
6033 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
6034 # include <stdbool.h>
6035 #endif
6036 #ifdef HAVE_STDINT_H
6037 # include <stdint.h>
6038 #endif
6040 if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
6041 cat >>confdefs.h <<_ACEOF
6042 #define HAVE_MACH_O_DYLD_IMAGES_H 1
6043 _ACEOF
6047 done
6050 for ac_header in resolv.h
6051 do :
6052 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
6053 #ifdef HAVE_SYS_SOCKET_H
6054 # include <sys/socket.h>
6055 #endif
6056 #ifdef HAVE_NETINET_IN_H
6057 # include <netinet/in.h>
6058 #endif
6059 #ifdef HAVE_ARPA_NAMESER_H
6060 # include <arpa/nameser.h>
6061 #endif
6063 if test "x$ac_cv_header_resolv_h" = x""yes; then :
6064 cat >>confdefs.h <<_ACEOF
6065 #define HAVE_RESOLV_H 1
6066 _ACEOF
6070 done
6073 for ac_header in ifaddrs.h
6074 do :
6075 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6077 if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6078 cat >>confdefs.h <<_ACEOF
6079 #define HAVE_IFADDRS_H 1
6080 _ACEOF
6084 done
6087 for ac_header in ucontext.h
6088 do :
6089 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6091 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
6092 cat >>confdefs.h <<_ACEOF
6093 #define HAVE_UCONTEXT_H 1
6094 _ACEOF
6098 done
6101 for ac_header in sys/thr.h
6102 do :
6103 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
6104 #ifdef HAVE_UCONTEXT_H
6105 #include <ucontext.h>
6106 #endif
6108 if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
6109 cat >>confdefs.h <<_ACEOF
6110 #define HAVE_SYS_THR_H 1
6111 _ACEOF
6115 done
6118 for ac_header in pthread_np.h
6119 do :
6120 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
6121 #include <pthread.h>
6122 #endif
6124 if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
6125 cat >>confdefs.h <<_ACEOF
6126 #define HAVE_PTHREAD_NP_H 1
6127 _ACEOF
6131 done
6134 for ac_header in linux/videodev.h
6135 do :
6136 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
6137 #include <sys/time.h>
6138 #endif
6139 #include <sys/types.h>
6140 #ifdef HAVE_ASM_TYPES_H
6141 #include <asm/types.h>
6142 #endif
6144 if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
6145 cat >>confdefs.h <<_ACEOF
6146 #define HAVE_LINUX_VIDEODEV_H 1
6147 _ACEOF
6151 done
6154 for ac_header in linux/capi.h
6155 do :
6156 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6158 if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
6159 cat >>confdefs.h <<_ACEOF
6160 #define HAVE_LINUX_CAPI_H 1
6161 _ACEOF
6165 done
6169 DLLEXT=""
6171 DLLFLAGS="-D_REENTRANT"
6173 LDSHARED=""
6175 LDDLLFLAGS=""
6177 LIBEXT="so"
6179 IMPLIBEXT="def"
6181 LDRPATH_INSTALL=""
6183 LDRPATH_LOCAL=""
6185 STATIC_IMPLIBEXT="def.a"
6186 # Extract the first word of "ldd", so it can be a program name with args.
6187 set dummy ldd; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if test "${ac_cv_path_LDD+set}" = set; then :
6191 $as_echo_n "(cached) " >&6
6192 else
6193 case $LDD in
6194 [\\/]* | ?:[\\/]*)
6195 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 as_dummy="/sbin:/usr/sbin:$PATH"
6200 for as_dir in $as_dummy
6202 IFS=$as_save_IFS
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
6207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 break 2
6210 done
6211 done
6212 IFS=$as_save_IFS
6214 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6216 esac
6218 LDD=$ac_cv_path_LDD
6219 if test -n "$LDD"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
6221 $as_echo "$LDD" >&6; }
6222 else
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6229 case $host_os in
6230 cygwin*|mingw32*)
6231 if test -n "$ac_tool_prefix"; then
6232 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6233 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 if test -n "$DLLTOOL"; then
6240 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6253 done
6254 done
6255 IFS=$as_save_IFS
6259 DLLTOOL=$ac_cv_prog_DLLTOOL
6260 if test -n "$DLLTOOL"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6262 $as_echo "$DLLTOOL" >&6; }
6263 else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 $as_echo "no" >&6; }
6270 if test -z "$ac_cv_prog_DLLTOOL"; then
6271 ac_ct_DLLTOOL=$DLLTOOL
6272 # Extract the first word of "dlltool", so it can be a program name with args.
6273 set dummy dlltool; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 if test -n "$ac_ct_DLLTOOL"; then
6280 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6293 done
6294 done
6295 IFS=$as_save_IFS
6299 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6300 if test -n "$ac_ct_DLLTOOL"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6302 $as_echo "$ac_ct_DLLTOOL" >&6; }
6303 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6308 if test "x$ac_ct_DLLTOOL" = x; then
6309 DLLTOOL="false"
6310 else
6311 case $cross_compiling:$ac_tool_warned in
6312 yes:)
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6315 ac_tool_warned=yes ;;
6316 esac
6317 DLLTOOL=$ac_ct_DLLTOOL
6319 else
6320 DLLTOOL="$ac_cv_prog_DLLTOOL"
6323 if test -n "$ac_tool_prefix"; then
6324 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6325 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327 $as_echo_n "checking for $ac_word... " >&6; }
6328 if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
6329 $as_echo_n "(cached) " >&6
6330 else
6331 if test -n "$DLLWRAP"; then
6332 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6333 else
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6343 break 2
6345 done
6346 done
6347 IFS=$as_save_IFS
6351 DLLWRAP=$ac_cv_prog_DLLWRAP
6352 if test -n "$DLLWRAP"; then
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
6354 $as_echo "$DLLWRAP" >&6; }
6355 else
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6357 $as_echo "no" >&6; }
6362 if test -z "$ac_cv_prog_DLLWRAP"; then
6363 ac_ct_DLLWRAP=$DLLWRAP
6364 # Extract the first word of "dllwrap", so it can be a program name with args.
6365 set dummy dllwrap; ac_word=$2
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 if test -n "$ac_ct_DLLWRAP"; then
6372 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6385 done
6386 done
6387 IFS=$as_save_IFS
6391 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6392 if test -n "$ac_ct_DLLWRAP"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
6394 $as_echo "$ac_ct_DLLWRAP" >&6; }
6395 else
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6400 if test "x$ac_ct_DLLWRAP" = x; then
6401 DLLWRAP="false"
6402 else
6403 case $cross_compiling:$ac_tool_warned in
6404 yes:)
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6407 ac_tool_warned=yes ;;
6408 esac
6409 DLLWRAP=$ac_ct_DLLWRAP
6411 else
6412 DLLWRAP="$ac_cv_prog_DLLWRAP"
6415 if test "$DLLWRAP" = "false"; then
6416 LIBEXT="a"
6417 else
6418 LIBEXT="dll"
6420 IMPLIBEXT="a"
6421 STATIC_IMPLIBEXT="a"
6422 enable_iphlpapi=${enable_iphlpapi:-no}
6423 enable_kernel32=${enable_kernel32:-no}
6424 enable_msvcrt=${enable_msvcrt:-no}
6425 enable_ntdll=${enable_ntdll:-no}
6426 enable_ws2_32=${enable_ws2_32:-no}
6427 enable_loader=${enable_loader:-no}
6428 enable_server=${enable_server:-no}
6429 with_x=${with_x:-no}
6430 with_pthread=${with_pthread:-no}
6432 darwin*|macosx*)
6433 DLLEXT=".so"
6434 LIBEXT="dylib"
6435 DLLFLAGS="$DLLFLAGS -fPIC"
6436 LDDLLFLAGS="-bundle -multiply_defined suppress"
6437 LIBWINE_LDFLAGS="-multiply_defined suppress"
6438 LDSHARED="\$(CC) -dynamiclib"
6439 STRIP="$STRIP -x"
6440 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
6441 SECURITYLIB="-framework Security -framework CoreFoundation"
6443 COREFOUNDATIONLIB="-framework CoreFoundation"
6445 IOKITLIB="-framework IOKit -framework CoreFoundation"
6447 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6449 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6450 then
6451 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6454 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6455 then
6456 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6458 ac_save_LIBS="$LIBS"
6459 if test "$ac_cv_header_AudioToolbox_AudioFile_h" = "yes"
6460 then
6461 LIBS="$LIBS $COREAUDIO"
6462 for ac_func in AudioFileStreamOpen
6463 do :
6464 ac_fn_c_check_func "$LINENO" "AudioFileStreamOpen" "ac_cv_func_AudioFileStreamOpen"
6465 if test "x$ac_cv_func_AudioFileStreamOpen" = x""yes; then :
6466 cat >>confdefs.h <<_ACEOF
6467 #define HAVE_AUDIOFILESTREAMOPEN 1
6468 _ACEOF
6471 done
6473 LIBS="$ac_save_LIBS"
6475 test "x$ac_cv_func_AudioFileStreamOpen" = xyes || as_fn_append wine_notices "|AudioToolbox version too old, mp3 codec won't be supported."
6477 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6478 then
6479 LIBOPENAL="-framework OpenAL"
6481 ac_cv_lib_openal_alGetSource3i=yes
6483 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6484 then
6485 ac_save_LIBS="$LIBS"
6486 LIBS="$LIBS $IOKITLIB"
6487 for ac_func in IOHIDManagerCreate
6488 do :
6489 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6490 if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
6491 cat >>confdefs.h <<_ACEOF
6492 #define HAVE_IOHIDMANAGERCREATE 1
6493 _ACEOF
6496 done
6498 LIBS="$ac_save_LIBS"
6500 case $host_cpu in
6501 *powerpc*)
6502 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6503 esac
6504 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6505 then
6506 CARBONLIB="-framework Carbon"
6508 enable_winequartz_drv=${enable_winequartz_drv:-yes}
6510 if test "x$enable_win16" = "xyes"
6511 then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
6513 $as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
6514 if test "$cross_compiling" = yes; then :
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
6516 $as_echo "cross-compiling, assuming yes" >&6; }
6517 else
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 asm(".text\n"
6521 "bad:\tnop;nop\n"
6522 "good:\tnop;nop\n\t"
6523 ".globl _testfunc\n"
6524 "_testfunc:\tcallw good");
6525 extern void testfunc();
6527 main ()
6529 unsigned short *p = (unsigned short *)testfunc;
6530 return p[0] != 0xe866 || p[1] != 0xfffa
6532 return 0;
6534 _ACEOF
6535 if ac_fn_c_try_run "$LINENO"; then :
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6537 $as_echo "yes" >&6; }
6538 else
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541 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
6543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6544 conftest.$ac_objext conftest.beam conftest.$ac_ext
6550 DLLFLAGS="$DLLFLAGS -fPIC"
6551 DLLEXT=".so"
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
6553 $as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
6554 if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
6555 $as_echo_n "(cached) " >&6
6556 else
6557 ac_wine_try_cflags_saved=$CFLAGS
6558 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 void myfunc() {}
6562 _ACEOF
6563 if ac_fn_c_try_link "$LINENO"; then :
6564 ac_cv_c_dll_gnuelf="yes"
6565 else
6566 ac_cv_c_dll_gnuelf="no"
6568 rm -f core conftest.err conftest.$ac_objext \
6569 conftest$ac_exeext conftest.$ac_ext
6570 CFLAGS=$ac_wine_try_cflags_saved
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
6573 $as_echo "$ac_cv_c_dll_gnuelf" >&6; }
6574 if test "$ac_cv_c_dll_gnuelf" = "yes"
6575 then
6576 LDSHARED="\$(CC) -shared"
6577 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
6579 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
6580 if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 ac_wine_try_cflags_saved=$CFLAGS
6584 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6587 int main(int argc, char **argv) { return 0; }
6588 _ACEOF
6589 if ac_fn_c_try_link "$LINENO"; then :
6590 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6591 else
6592 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
6594 rm -f core conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6596 CFLAGS=$ac_wine_try_cflags_saved
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
6599 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
6600 if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
6601 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6602 else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
6604 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
6605 if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 ac_wine_try_cflags_saved=$CFLAGS
6609 CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612 int main(int argc, char **argv) { return 0; }
6613 _ACEOF
6614 if ac_fn_c_try_link "$LINENO"; then :
6615 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6616 else
6617 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6619 rm -f core conftest.err conftest.$ac_objext \
6620 conftest$ac_exeext conftest.$ac_ext
6621 CFLAGS=$ac_wine_try_cflags_saved
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
6624 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
6625 if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
6626 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
6631 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
6632 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 ac_wine_try_cflags_saved=$CFLAGS
6636 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638 /* end confdefs.h. */
6639 int main(int argc, char **argv) { return 0; }
6640 _ACEOF
6641 if ac_fn_c_try_link "$LINENO"; then :
6642 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6643 else
6644 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=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_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
6651 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
6652 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
6653 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6656 { $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
6657 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
6658 if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
6659 $as_echo_n "(cached) " >&6
6660 else
6661 ac_wine_try_cflags_saved=$CFLAGS
6662 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
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__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6669 else
6670 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=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__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
6677 $as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
6678 if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
6679 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6682 echo '{ global: *; };' >conftest.map
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
6684 $as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
6685 if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
6686 $as_echo_n "(cached) " >&6
6687 else
6688 ac_wine_try_cflags_saved=$CFLAGS
6689 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 int main(int argc, char **argv) { return 0; }
6693 _ACEOF
6694 if ac_fn_c_try_link "$LINENO"; then :
6695 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6696 else
6697 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
6699 rm -f core conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext conftest.$ac_ext
6701 CFLAGS=$ac_wine_try_cflags_saved
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
6704 $as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
6705 if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
6706 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6708 rm -f conftest.map
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
6711 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
6712 if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 ac_wine_try_cflags_saved=$CFLAGS
6716 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 int main(int argc, char **argv) { return 0; }
6720 _ACEOF
6721 if ac_fn_c_try_link "$LINENO"; then :
6722 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6723 else
6724 ac_cv_cflags__fPIC__Wl___export_dynamic=no
6726 rm -f core conftest.err conftest.$ac_objext \
6727 conftest$ac_exeext conftest.$ac_ext
6728 CFLAGS=$ac_wine_try_cflags_saved
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
6731 $as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
6732 if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
6733 LDEXECFLAGS="-Wl,--export-dynamic"
6737 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
6739 $as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
6740 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 ac_wine_try_cflags_saved=$CFLAGS
6744 CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 int main(int argc, char **argv) { return 0; }
6748 _ACEOF
6749 if ac_fn_c_try_link "$LINENO"; then :
6750 eval "$as_ac_var=yes"
6751 else
6752 eval "$as_ac_var=no"
6754 rm -f core conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6756 CFLAGS=$ac_wine_try_cflags_saved
6758 eval ac_res=\$$as_ac_var
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6760 $as_echo "$ac_res" >&6; }
6761 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6762 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6763 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6764 else
6765 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
6767 $as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
6768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 ac_wine_try_cflags_saved=$CFLAGS
6772 CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774 /* end confdefs.h. */
6775 int main(int argc, char **argv) { return 0; }
6776 _ACEOF
6777 if ac_fn_c_try_link "$LINENO"; then :
6778 eval "$as_ac_var=yes"
6779 else
6780 eval "$as_ac_var=no"
6782 rm -f core conftest.err conftest.$ac_objext \
6783 conftest$ac_exeext conftest.$ac_ext
6784 CFLAGS=$ac_wine_try_cflags_saved
6786 eval ac_res=\$$as_ac_var
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6788 $as_echo "$ac_res" >&6; }
6789 if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
6790 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6791 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
6796 $as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
6797 if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 ac_wine_try_cflags_saved=$CFLAGS
6801 CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804 int main(int argc, char **argv) { return 0; }
6805 _ACEOF
6806 if ac_fn_c_try_link "$LINENO"; then :
6807 ac_cv_cflags__Wl___enable_new_dtags=yes
6808 else
6809 ac_cv_cflags__Wl___enable_new_dtags=no
6811 rm -f core conftest.err conftest.$ac_objext \
6812 conftest$ac_exeext conftest.$ac_ext
6813 CFLAGS=$ac_wine_try_cflags_saved
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
6816 $as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
6817 if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
6818 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6821 case $host_cpu in
6822 *i[3456789]86* | x86_64)
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
6824 $as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
6825 if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 ac_wine_try_cflags_saved=$CFLAGS
6829 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h. */
6832 int main(int argc, char **argv) { return 0; }
6833 _ACEOF
6834 if ac_fn_c_try_link "$LINENO"; then :
6835 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6836 else
6837 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
6839 rm -f core conftest.err conftest.$ac_objext \
6840 conftest$ac_exeext conftest.$ac_ext
6841 CFLAGS=$ac_wine_try_cflags_saved
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
6844 $as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
6845 if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
6846 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6849 esac
6851 else
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
6853 $as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
6854 if test "${ac_cv_c_dll_unixware+set}" = set; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 ac_wine_try_cflags_saved=$CFLAGS
6858 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861 void myfunc() {}
6862 _ACEOF
6863 if ac_fn_c_try_link "$LINENO"; then :
6864 ac_cv_c_dll_unixware="yes"
6865 else
6866 ac_cv_c_dll_unixware="no"
6868 rm -f core conftest.err conftest.$ac_objext \
6869 conftest$ac_exeext conftest.$ac_ext
6870 CFLAGS=$ac_wine_try_cflags_saved
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
6873 $as_echo "$ac_cv_c_dll_unixware" >&6; }
6874 if test "$ac_cv_c_dll_unixware" = "yes"
6875 then
6876 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6877 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6879 else
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
6881 $as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
6882 if test "${ac_cv_c_dll_hpux+set}" = set; then :
6883 $as_echo_n "(cached) " >&6
6884 else
6885 ac_wine_try_cflags_saved=$CFLAGS
6886 CFLAGS="$CFLAGS -shared"
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6889 void myfunc() {}
6890 _ACEOF
6891 if ac_fn_c_try_link "$LINENO"; then :
6892 ac_cv_c_dll_hpux="yes"
6893 else
6894 ac_cv_c_dll_hpux="no"
6896 rm -f core conftest.err conftest.$ac_objext \
6897 conftest$ac_exeext conftest.$ac_ext
6898 CFLAGS=$ac_wine_try_cflags_saved
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
6901 $as_echo "$ac_cv_c_dll_hpux" >&6; }
6902 if test "$ac_cv_c_dll_hpux" = "yes"
6903 then
6904 LIBEXT="sl"
6905 DLLEXT=".sl"
6906 LDDLLFLAGS="-shared -fPIC"
6907 LDSHARED="\$(CC) -shared"
6912 esac
6914 enable_winequartz_drv=${enable_winequartz_drv:-no}
6916 if test "$LIBEXT" = "a"; then
6917 as_fn_error "could not find a way to build shared libraries.
6918 It is currently not possible to build Wine without shared library
6919 (.so) support to allow transparent switch between .so and .dll files.
6920 If you are using Linux, you will need a newer binutils.
6921 " "$LINENO" 5
6924 if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll"
6925 then
6926 case "$host_cpu" in
6927 i[3456789]86*)
6928 ac_prefix_list="i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;;
6929 x86_64)
6930 ac_prefix_list="x86_64-pc-mingw32-gcc x86_64-w64-mingw32-gcc " ;;
6932 ac_prefix_list="" ;;
6933 esac
6934 for ac_prog in $ac_prefix_list
6936 # Extract the first word of "$ac_prog", so it can be a program name with args.
6937 set dummy $ac_prog; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if test "${ac_cv_prog_CROSSCC+set}" = set; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 if test -n "$CROSSCC"; then
6944 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $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_prog_CROSSCC="$ac_prog"
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
6963 CROSSCC=$ac_cv_prog_CROSSCC
6964 if test -n "$CROSSCC"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
6966 $as_echo "$CROSSCC" >&6; }
6967 else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6973 test -n "$CROSSCC" && break
6974 done
6975 test -n "$CROSSCC" || CROSSCC="false"
6977 if test "$CROSSCC" != "false"
6978 then
6979 CROSSTEST="\$(CROSSTEST)"
6981 set x $CROSSCC
6982 shift
6983 target=""
6984 while test $# -ge 1
6986 case "$1" in
6987 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
6988 esac
6989 shift
6990 done
6991 if test -n "$target"
6992 then
6993 CROSSTARGET="$target"
7000 if test "$ac_cv_header_pthread_h" = "yes"
7001 then
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
7003 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
7004 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 ac_check_lib_save_LIBS=$LIBS
7008 LIBS="-lpthread $LIBS"
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7012 /* Override any GCC internal prototype to avoid an error.
7013 Use char because int might match the return type of a GCC
7014 builtin and then its argument prototype would still apply. */
7015 #ifdef __cplusplus
7016 extern "C"
7017 #endif
7018 char pthread_create ();
7020 main ()
7022 return pthread_create ();
7024 return 0;
7026 _ACEOF
7027 if ac_fn_c_try_link "$LINENO"; then :
7028 ac_cv_lib_pthread_pthread_create=yes
7029 else
7030 ac_cv_lib_pthread_pthread_create=no
7032 rm -f core conftest.err conftest.$ac_objext \
7033 conftest$ac_exeext conftest.$ac_ext
7034 LIBS=$ac_check_lib_save_LIBS
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
7037 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
7038 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
7039 LIBPTHREAD="-lpthread"
7044 if test "x$LIBPTHREAD" = "x"; then :
7045 case "x$with_pthread" in
7046 xno) ;;
7047 *) as_fn_error "pthread ${notice_platform}development files not found.
7048 Wine cannot support threads without libpthread.
7049 Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
7050 esac
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7055 $as_echo_n "checking for X... " >&6; }
7058 # Check whether --with-x was given.
7059 if test "${with_x+set}" = set; then :
7060 withval=$with_x;
7063 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7064 if test "x$with_x" = xno; then
7065 # The user explicitly disabled X.
7066 have_x=disabled
7067 else
7068 case $x_includes,$x_libraries in #(
7069 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7070 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 # One or both of the vars are not set, and there is no cached value.
7074 ac_x_includes=no ac_x_libraries=no
7075 rm -f -r conftest.dir
7076 if mkdir conftest.dir; then
7077 cd conftest.dir
7078 cat >Imakefile <<'_ACEOF'
7079 incroot:
7080 @echo incroot='${INCROOT}'
7081 usrlibdir:
7082 @echo usrlibdir='${USRLIBDIR}'
7083 libdir:
7084 @echo libdir='${LIBDIR}'
7085 _ACEOF
7086 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7087 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7088 for ac_var in incroot usrlibdir libdir; do
7089 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7090 done
7091 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7092 for ac_extension in a so sl dylib la dll; do
7093 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7094 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7095 ac_im_usrlibdir=$ac_im_libdir; break
7097 done
7098 # Screen out bogus values from the imake configuration. They are
7099 # bogus both because they are the default anyway, and because
7100 # using them would break gcc on systems where it needs fixed includes.
7101 case $ac_im_incroot in
7102 /usr/include) ac_x_includes= ;;
7103 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7104 esac
7105 case $ac_im_usrlibdir in
7106 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7107 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7108 esac
7110 cd ..
7111 rm -f -r conftest.dir
7114 # Standard set of common directories for X headers.
7115 # Check X11 before X11Rn because it is often a symlink to the current release.
7116 ac_x_header_dirs='
7117 /usr/X11/include
7118 /usr/X11R7/include
7119 /usr/X11R6/include
7120 /usr/X11R5/include
7121 /usr/X11R4/include
7123 /usr/include/X11
7124 /usr/include/X11R7
7125 /usr/include/X11R6
7126 /usr/include/X11R5
7127 /usr/include/X11R4
7129 /usr/local/X11/include
7130 /usr/local/X11R7/include
7131 /usr/local/X11R6/include
7132 /usr/local/X11R5/include
7133 /usr/local/X11R4/include
7135 /usr/local/include/X11
7136 /usr/local/include/X11R7
7137 /usr/local/include/X11R6
7138 /usr/local/include/X11R5
7139 /usr/local/include/X11R4
7141 /usr/X386/include
7142 /usr/x386/include
7143 /usr/XFree86/include/X11
7145 /usr/include
7146 /usr/local/include
7147 /usr/unsupported/include
7148 /usr/athena/include
7149 /usr/local/x11r5/include
7150 /usr/lpp/Xamples/include
7152 /usr/openwin/include
7153 /usr/openwin/share/include'
7155 if test "$ac_x_includes" = no; then
7156 # Guess where to find include files, by looking for Xlib.h.
7157 # First, try using that file with no special directory specified.
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 #include <X11/Xlib.h>
7161 _ACEOF
7162 if ac_fn_c_try_cpp "$LINENO"; then :
7163 # We can compile using X headers with no special include directory.
7164 ac_x_includes=
7165 else
7166 for ac_dir in $ac_x_header_dirs; do
7167 if test -r "$ac_dir/X11/Xlib.h"; then
7168 ac_x_includes=$ac_dir
7169 break
7171 done
7173 rm -f conftest.err conftest.$ac_ext
7174 fi # $ac_x_includes = no
7176 if test "$ac_x_libraries" = no; then
7177 # Check for the libraries.
7178 # See if we find them without any special options.
7179 # Don't add to $LIBS permanently.
7180 ac_save_LIBS=$LIBS
7181 LIBS="-lX11 $LIBS"
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7184 #include <X11/Xlib.h>
7186 main ()
7188 XrmInitialize ()
7190 return 0;
7192 _ACEOF
7193 if ac_fn_c_try_link "$LINENO"; then :
7194 LIBS=$ac_save_LIBS
7195 # We can link X programs with no special library path.
7196 ac_x_libraries=
7197 else
7198 LIBS=$ac_save_LIBS
7199 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7201 # Don't even attempt the hair of trying to link an X program!
7202 for ac_extension in a so sl dylib la dll; do
7203 if test -r "$ac_dir/libX11.$ac_extension"; then
7204 ac_x_libraries=$ac_dir
7205 break 2
7207 done
7208 done
7210 rm -f core conftest.err conftest.$ac_objext \
7211 conftest$ac_exeext conftest.$ac_ext
7212 fi # $ac_x_libraries = no
7214 case $ac_x_includes,$ac_x_libraries in #(
7215 no,* | *,no | *\'*)
7216 # Didn't find X, or a directory has "'" in its name.
7217 ac_cv_have_x="have_x=no";; #(
7219 # Record where we found X for the cache.
7220 ac_cv_have_x="have_x=yes\
7221 ac_x_includes='$ac_x_includes'\
7222 ac_x_libraries='$ac_x_libraries'"
7223 esac
7225 ;; #(
7226 *) have_x=yes;;
7227 esac
7228 eval "$ac_cv_have_x"
7229 fi # $with_x != no
7231 if test "$have_x" != yes; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
7233 $as_echo "$have_x" >&6; }
7234 no_x=yes
7235 else
7236 # If each of the values was on the command line, it overrides each guess.
7237 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7238 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7239 # Update the cache value to reflect the command line values.
7240 ac_cv_have_x="have_x=yes\
7241 ac_x_includes='$x_includes'\
7242 ac_x_libraries='$x_libraries'"
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
7244 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7247 if test "$no_x" = yes; then
7248 # Not all programs may use this symbol, but it does not hurt to define it.
7250 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
7252 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7253 else
7254 if test -n "$x_includes"; then
7255 X_CFLAGS="$X_CFLAGS -I$x_includes"
7258 # It would also be nice to do this for all -L options, not just this one.
7259 if test -n "$x_libraries"; then
7260 X_LIBS="$X_LIBS -L$x_libraries"
7261 # For Solaris; some versions of Sun CC require a space after -R and
7262 # others require no space. Words are not sufficient . . . .
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
7264 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
7265 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7266 ac_xsave_c_werror_flag=$ac_c_werror_flag
7267 ac_c_werror_flag=yes
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7272 main ()
7276 return 0;
7278 _ACEOF
7279 if ac_fn_c_try_link "$LINENO"; then :
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 X_LIBS="$X_LIBS -R$x_libraries"
7283 else
7284 LIBS="$ac_xsave_LIBS -R $x_libraries"
7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7289 main ()
7293 return 0;
7295 _ACEOF
7296 if ac_fn_c_try_link "$LINENO"; then :
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7298 $as_echo "yes" >&6; }
7299 X_LIBS="$X_LIBS -R $x_libraries"
7300 else
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
7302 $as_echo "neither works" >&6; }
7304 rm -f core conftest.err conftest.$ac_objext \
7305 conftest$ac_exeext conftest.$ac_ext
7307 rm -f core conftest.err conftest.$ac_objext \
7308 conftest$ac_exeext conftest.$ac_ext
7309 ac_c_werror_flag=$ac_xsave_c_werror_flag
7310 LIBS=$ac_xsave_LIBS
7313 # Check for system-dependent libraries X programs must link with.
7314 # Do this before checking for the system-independent R6 libraries
7315 # (-lICE), since we may need -lsocket or whatever for X linking.
7317 if test "$ISC" = yes; then
7318 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7319 else
7320 # Martyn Johnson says this is needed for Ultrix, if the X
7321 # libraries were built with DECnet support. And Karl Berry says
7322 # the Alpha needs dnet_stub (dnet does not exist).
7323 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7327 /* Override any GCC internal prototype to avoid an error.
7328 Use char because int might match the return type of a GCC
7329 builtin and then its argument prototype would still apply. */
7330 #ifdef __cplusplus
7331 extern "C"
7332 #endif
7333 char XOpenDisplay ();
7335 main ()
7337 return XOpenDisplay ();
7339 return 0;
7341 _ACEOF
7342 if ac_fn_c_try_link "$LINENO"; then :
7344 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
7346 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7347 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 ac_check_lib_save_LIBS=$LIBS
7351 LIBS="-ldnet $LIBS"
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7355 /* Override any GCC internal prototype to avoid an error.
7356 Use char because int might match the return type of a GCC
7357 builtin and then its argument prototype would still apply. */
7358 #ifdef __cplusplus
7359 extern "C"
7360 #endif
7361 char dnet_ntoa ();
7363 main ()
7365 return dnet_ntoa ();
7367 return 0;
7369 _ACEOF
7370 if ac_fn_c_try_link "$LINENO"; then :
7371 ac_cv_lib_dnet_dnet_ntoa=yes
7372 else
7373 ac_cv_lib_dnet_dnet_ntoa=no
7375 rm -f core conftest.err conftest.$ac_objext \
7376 conftest$ac_exeext conftest.$ac_ext
7377 LIBS=$ac_check_lib_save_LIBS
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7380 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7381 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
7382 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7385 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
7387 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
7388 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 ac_check_lib_save_LIBS=$LIBS
7392 LIBS="-ldnet_stub $LIBS"
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7396 /* Override any GCC internal prototype to avoid an error.
7397 Use char because int might match the return type of a GCC
7398 builtin and then its argument prototype would still apply. */
7399 #ifdef __cplusplus
7400 extern "C"
7401 #endif
7402 char dnet_ntoa ();
7404 main ()
7406 return dnet_ntoa ();
7408 return 0;
7410 _ACEOF
7411 if ac_fn_c_try_link "$LINENO"; then :
7412 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7413 else
7414 ac_cv_lib_dnet_stub_dnet_ntoa=no
7416 rm -f core conftest.err conftest.$ac_objext \
7417 conftest$ac_exeext conftest.$ac_ext
7418 LIBS=$ac_check_lib_save_LIBS
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7421 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
7422 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
7423 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7428 rm -f core conftest.err conftest.$ac_objext \
7429 conftest$ac_exeext conftest.$ac_ext
7430 LIBS="$ac_xsave_LIBS"
7432 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7433 # to get the SysV transport functions.
7434 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7435 # needs -lnsl.
7436 # The nsl library prevents programs from opening the X display
7437 # on Irix 5.2, according to T.E. Dickey.
7438 # The functions gethostbyname, getservbyname, and inet_addr are
7439 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7440 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7441 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
7445 if test $ac_cv_func_gethostbyname = no; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7447 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
7448 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
7449 $as_echo_n "(cached) " >&6
7450 else
7451 ac_check_lib_save_LIBS=$LIBS
7452 LIBS="-lnsl $LIBS"
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7456 /* Override any GCC internal prototype to avoid an error.
7457 Use char because int might match the return type of a GCC
7458 builtin and then its argument prototype would still apply. */
7459 #ifdef __cplusplus
7460 extern "C"
7461 #endif
7462 char gethostbyname ();
7464 main ()
7466 return gethostbyname ();
7468 return 0;
7470 _ACEOF
7471 if ac_fn_c_try_link "$LINENO"; then :
7472 ac_cv_lib_nsl_gethostbyname=yes
7473 else
7474 ac_cv_lib_nsl_gethostbyname=no
7476 rm -f core conftest.err conftest.$ac_objext \
7477 conftest$ac_exeext conftest.$ac_ext
7478 LIBS=$ac_check_lib_save_LIBS
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7481 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
7482 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
7483 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7486 if test $ac_cv_lib_nsl_gethostbyname = no; then
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
7488 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
7489 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 ac_check_lib_save_LIBS=$LIBS
7493 LIBS="-lbsd $LIBS"
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7497 /* Override any GCC internal prototype to avoid an error.
7498 Use char because int might match the return type of a GCC
7499 builtin and then its argument prototype would still apply. */
7500 #ifdef __cplusplus
7501 extern "C"
7502 #endif
7503 char gethostbyname ();
7505 main ()
7507 return gethostbyname ();
7509 return 0;
7511 _ACEOF
7512 if ac_fn_c_try_link "$LINENO"; then :
7513 ac_cv_lib_bsd_gethostbyname=yes
7514 else
7515 ac_cv_lib_bsd_gethostbyname=no
7517 rm -f core conftest.err conftest.$ac_objext \
7518 conftest$ac_exeext conftest.$ac_ext
7519 LIBS=$ac_check_lib_save_LIBS
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
7522 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
7523 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
7524 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7530 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7531 # socket/setsockopt and other routines are undefined under SCO ODT
7532 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7533 # on later versions), says Simon Leinen: it contains gethostby*
7534 # variants that don't use the name server (or something). -lsocket
7535 # must be given before -lnsl if both are needed. We assume that
7536 # if connect needs -lnsl, so does gethostbyname.
7537 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7538 if test "x$ac_cv_func_connect" = x""yes; then :
7542 if test $ac_cv_func_connect = no; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
7544 $as_echo_n "checking for connect in -lsocket... " >&6; }
7545 if test "${ac_cv_lib_socket_connect+set}" = set; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 ac_check_lib_save_LIBS=$LIBS
7549 LIBS="-lsocket $X_EXTRA_LIBS $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 connect ();
7561 main ()
7563 return connect ();
7565 return 0;
7567 _ACEOF
7568 if ac_fn_c_try_link "$LINENO"; then :
7569 ac_cv_lib_socket_connect=yes
7570 else
7571 ac_cv_lib_socket_connect=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_socket_connect" >&5
7578 $as_echo "$ac_cv_lib_socket_connect" >&6; }
7579 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
7580 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7585 # Guillermo Gomez says -lposix is necessary on A/UX.
7586 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7587 if test "x$ac_cv_func_remove" = x""yes; then :
7591 if test $ac_cv_func_remove = no; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
7593 $as_echo_n "checking for remove in -lposix... " >&6; }
7594 if test "${ac_cv_lib_posix_remove+set}" = set; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597 ac_check_lib_save_LIBS=$LIBS
7598 LIBS="-lposix $LIBS"
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7602 /* Override any GCC internal prototype to avoid an error.
7603 Use char because int might match the return type of a GCC
7604 builtin and then its argument prototype would still apply. */
7605 #ifdef __cplusplus
7606 extern "C"
7607 #endif
7608 char remove ();
7610 main ()
7612 return remove ();
7614 return 0;
7616 _ACEOF
7617 if ac_fn_c_try_link "$LINENO"; then :
7618 ac_cv_lib_posix_remove=yes
7619 else
7620 ac_cv_lib_posix_remove=no
7622 rm -f core conftest.err conftest.$ac_objext \
7623 conftest$ac_exeext conftest.$ac_ext
7624 LIBS=$ac_check_lib_save_LIBS
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
7627 $as_echo "$ac_cv_lib_posix_remove" >&6; }
7628 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
7629 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7634 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7635 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7636 if test "x$ac_cv_func_shmat" = x""yes; then :
7640 if test $ac_cv_func_shmat = no; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
7642 $as_echo_n "checking for shmat in -lipc... " >&6; }
7643 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 ac_check_lib_save_LIBS=$LIBS
7647 LIBS="-lipc $LIBS"
7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7651 /* Override any GCC internal prototype to avoid an error.
7652 Use char because int might match the return type of a GCC
7653 builtin and then its argument prototype would still apply. */
7654 #ifdef __cplusplus
7655 extern "C"
7656 #endif
7657 char shmat ();
7659 main ()
7661 return shmat ();
7663 return 0;
7665 _ACEOF
7666 if ac_fn_c_try_link "$LINENO"; then :
7667 ac_cv_lib_ipc_shmat=yes
7668 else
7669 ac_cv_lib_ipc_shmat=no
7671 rm -f core conftest.err conftest.$ac_objext \
7672 conftest$ac_exeext conftest.$ac_ext
7673 LIBS=$ac_check_lib_save_LIBS
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
7676 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7677 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
7678 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7684 # Check for libraries that X11R6 Xt/Xaw programs need.
7685 ac_save_LDFLAGS=$LDFLAGS
7686 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7687 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7688 # check for ICE first), but we must link in the order -lSM -lICE or
7689 # we get undefined symbols. So assume we have SM if we have ICE.
7690 # These have to be linked with before -lX11, unlike the other
7691 # libraries we check for below, so use a different variable.
7692 # John Interrante, Karl Berry
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
7694 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7695 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 ac_check_lib_save_LIBS=$LIBS
7699 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7703 /* Override any GCC internal prototype to avoid an error.
7704 Use char because int might match the return type of a GCC
7705 builtin and then its argument prototype would still apply. */
7706 #ifdef __cplusplus
7707 extern "C"
7708 #endif
7709 char IceConnectionNumber ();
7711 main ()
7713 return IceConnectionNumber ();
7715 return 0;
7717 _ACEOF
7718 if ac_fn_c_try_link "$LINENO"; then :
7719 ac_cv_lib_ICE_IceConnectionNumber=yes
7720 else
7721 ac_cv_lib_ICE_IceConnectionNumber=no
7723 rm -f core conftest.err conftest.$ac_objext \
7724 conftest$ac_exeext conftest.$ac_ext
7725 LIBS=$ac_check_lib_save_LIBS
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7728 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7729 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
7730 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7733 LDFLAGS=$ac_save_LDFLAGS
7738 if test "$have_x" = "yes"
7739 then
7740 XLIB="-lX11"
7741 ac_save_CPPFLAGS="$CPPFLAGS"
7742 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
7745 $as_echo_n "checking for -lX11... " >&6; }
7746 if test "${ac_cv_lib_soname_X11+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 ac_check_soname_save_LIBS=$LIBS
7750 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7754 /* Override any GCC internal prototype to avoid an error.
7755 Use char because int might match the return type of a GCC
7756 builtin and then its argument prototype would still apply. */
7757 #ifdef __cplusplus
7758 extern "C"
7759 #endif
7760 char XCreateWindow ();
7762 main ()
7764 return XCreateWindow ();
7766 return 0;
7768 _ACEOF
7769 if ac_fn_c_try_link "$LINENO"; then :
7770 case "$LIBEXT" in
7771 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7772 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'` ;;
7773 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7774 esac
7776 rm -f core conftest.err conftest.$ac_objext \
7777 conftest$ac_exeext conftest.$ac_ext
7778 LIBS=$ac_check_soname_save_LIBS
7780 if test "x$ac_cv_lib_soname_X11" = "x"; then :
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7782 $as_echo "not found" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
7786 $as_echo "$ac_cv_lib_soname_X11" >&6; }
7788 cat >>confdefs.h <<_ACEOF
7789 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7790 _ACEOF
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
7795 $as_echo_n "checking for -lXext... " >&6; }
7796 if test "${ac_cv_lib_soname_Xext+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 ac_check_soname_save_LIBS=$LIBS
7800 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7804 /* Override any GCC internal prototype to avoid an error.
7805 Use char because int might match the return type of a GCC
7806 builtin and then its argument prototype would still apply. */
7807 #ifdef __cplusplus
7808 extern "C"
7809 #endif
7810 char XextCreateExtension ();
7812 main ()
7814 return XextCreateExtension ();
7816 return 0;
7818 _ACEOF
7819 if ac_fn_c_try_link "$LINENO"; then :
7820 case "$LIBEXT" in
7821 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7822 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'` ;;
7823 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7824 esac
7826 rm -f core conftest.err conftest.$ac_objext \
7827 conftest$ac_exeext conftest.$ac_ext
7828 LIBS=$ac_check_soname_save_LIBS
7830 if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7832 $as_echo "not found" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
7836 $as_echo "$ac_cv_lib_soname_Xext" >&6; }
7838 cat >>confdefs.h <<_ACEOF
7839 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7840 _ACEOF
7842 XLIB="-lXext $XLIB"
7845 for ac_header in X11/Xlib.h \
7846 X11/XKBlib.h \
7847 X11/Xutil.h \
7848 X11/Xcursor/Xcursor.h \
7849 X11/extensions/shape.h \
7850 X11/extensions/XInput.h \
7851 X11/extensions/XShm.h \
7852 X11/extensions/Xcomposite.h \
7853 X11/extensions/Xinerama.h \
7854 X11/extensions/Xrandr.h \
7855 X11/extensions/Xrender.h \
7856 X11/extensions/xf86vmode.h \
7857 X11/extensions/xf86vmproto.h
7858 do :
7859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7860 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
7861 # include <X11/Xlib.h>
7862 #endif
7863 #ifdef HAVE_X11_XUTIL_H
7864 # include <X11/Xutil.h>
7865 #endif
7867 eval as_val=\$$as_ac_Header
7868 if test "x$as_val" = x""yes; then :
7869 cat >>confdefs.h <<_ACEOF
7870 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7871 _ACEOF
7875 done
7878 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7879 then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
7881 $as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
7882 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
7884 else
7885 ac_check_lib_save_LIBS=$LIBS
7886 LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7890 /* Override any GCC internal prototype to avoid an error.
7891 Use char because int might match the return type of a GCC
7892 builtin and then its argument prototype would still apply. */
7893 #ifdef __cplusplus
7894 extern "C"
7895 #endif
7896 char XkbQueryExtension ();
7898 main ()
7900 return XkbQueryExtension ();
7902 return 0;
7904 _ACEOF
7905 if ac_fn_c_try_link "$LINENO"; then :
7906 ac_cv_lib_X11_XkbQueryExtension=yes
7907 else
7908 ac_cv_lib_X11_XkbQueryExtension=no
7910 rm -f core conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
7912 LIBS=$ac_check_lib_save_LIBS
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7915 $as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
7916 if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
7918 $as_echo "#define HAVE_XKB 1" >>confdefs.h
7924 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
7925 then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
7927 $as_echo_n "checking for -lXcursor... " >&6; }
7928 if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 ac_check_soname_save_LIBS=$LIBS
7932 LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7936 /* Override any GCC internal prototype to avoid an error.
7937 Use char because int might match the return type of a GCC
7938 builtin and then its argument prototype would still apply. */
7939 #ifdef __cplusplus
7940 extern "C"
7941 #endif
7942 char XcursorImageLoadCursor ();
7944 main ()
7946 return XcursorImageLoadCursor ();
7948 return 0;
7950 _ACEOF
7951 if ac_fn_c_try_link "$LINENO"; then :
7952 case "$LIBEXT" in
7953 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
7954 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'` ;;
7955 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7956 esac
7958 rm -f core conftest.err conftest.$ac_objext \
7959 conftest$ac_exeext conftest.$ac_ext
7960 LIBS=$ac_check_soname_save_LIBS
7962 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7964 $as_echo "not found" >&6; }
7966 else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
7968 $as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
7970 cat >>confdefs.h <<_ACEOF
7971 #define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
7972 _ACEOF
7977 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
7978 case "x$with_xcursor" in
7979 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
7980 xno) ;;
7981 *) as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
7982 This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
7983 esac
7986 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
7987 then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
7989 $as_echo_n "checking for -lXi... " >&6; }
7990 if test "${ac_cv_lib_soname_Xi+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 ac_check_soname_save_LIBS=$LIBS
7994 LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7998 /* Override any GCC internal prototype to avoid an error.
7999 Use char because int might match the return type of a GCC
8000 builtin and then its argument prototype would still apply. */
8001 #ifdef __cplusplus
8002 extern "C"
8003 #endif
8004 char XOpenDevice ();
8006 main ()
8008 return XOpenDevice ();
8010 return 0;
8012 _ACEOF
8013 if ac_fn_c_try_link "$LINENO"; then :
8014 case "$LIBEXT" in
8015 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8016 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'` ;;
8017 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8018 esac
8020 rm -f core conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
8022 LIBS=$ac_check_soname_save_LIBS
8024 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8026 $as_echo "not found" >&6; }
8028 else
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
8030 $as_echo "$ac_cv_lib_soname_Xi" >&6; }
8032 cat >>confdefs.h <<_ACEOF
8033 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8034 _ACEOF
8039 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8040 case "x$with_xinput" in
8041 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
8042 xno) ;;
8043 *) as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8044 This is an error since --with-xinput was requested." "$LINENO" 5 ;;
8045 esac
8048 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8049 then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
8051 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
8052 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 ac_check_lib_save_LIBS=$LIBS
8056 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8060 /* Override any GCC internal prototype to avoid an error.
8061 Use char because int might match the return type of a GCC
8062 builtin and then its argument prototype would still apply. */
8063 #ifdef __cplusplus
8064 extern "C"
8065 #endif
8066 char XShmQueryExtension ();
8068 main ()
8070 return XShmQueryExtension ();
8072 return 0;
8074 _ACEOF
8075 if ac_fn_c_try_link "$LINENO"; then :
8076 ac_cv_lib_Xext_XShmQueryExtension=yes
8077 else
8078 ac_cv_lib_Xext_XShmQueryExtension=no
8080 rm -f core conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
8082 LIBS=$ac_check_lib_save_LIBS
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8085 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
8086 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
8088 $as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
8093 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
8094 case "x$with_xshm" in
8095 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
8096 xno) ;;
8097 *) as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8098 This is an error since --with-xshm was requested." "$LINENO" 5 ;;
8099 esac
8102 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8103 then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
8105 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8106 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
8107 $as_echo_n "(cached) " >&6
8108 else
8109 ac_check_lib_save_LIBS=$LIBS
8110 LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8114 /* Override any GCC internal prototype to avoid an error.
8115 Use char because int might match the return type of a GCC
8116 builtin and then its argument prototype would still apply. */
8117 #ifdef __cplusplus
8118 extern "C"
8119 #endif
8120 char XShapeQueryExtension ();
8122 main ()
8124 return XShapeQueryExtension ();
8126 return 0;
8128 _ACEOF
8129 if ac_fn_c_try_link "$LINENO"; then :
8130 ac_cv_lib_Xext_XShapeQueryExtension=yes
8131 else
8132 ac_cv_lib_Xext_XShapeQueryExtension=no
8134 rm -f core conftest.err conftest.$ac_objext \
8135 conftest$ac_exeext conftest.$ac_ext
8136 LIBS=$ac_check_lib_save_LIBS
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8139 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8140 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
8142 $as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
8147 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
8148 case "x$with_xshape" in
8149 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
8150 xno) ;;
8151 *) as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8152 This is an error since --with-xshape was requested." "$LINENO" 5 ;;
8153 esac
8156 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
8157 then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
8159 $as_echo_n "checking for -lXxf86vm... " >&6; }
8160 if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
8161 $as_echo_n "(cached) " >&6
8162 else
8163 ac_check_soname_save_LIBS=$LIBS
8164 LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8168 /* Override any GCC internal prototype to avoid an error.
8169 Use char because int might match the return type of a GCC
8170 builtin and then its argument prototype would still apply. */
8171 #ifdef __cplusplus
8172 extern "C"
8173 #endif
8174 char XF86VidModeQueryExtension ();
8176 main ()
8178 return XF86VidModeQueryExtension ();
8180 return 0;
8182 _ACEOF
8183 if ac_fn_c_try_link "$LINENO"; then :
8184 case "$LIBEXT" in
8185 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8186 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'` ;;
8187 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8188 esac
8190 rm -f core conftest.err conftest.$ac_objext \
8191 conftest$ac_exeext conftest.$ac_ext
8192 LIBS=$ac_check_soname_save_LIBS
8194 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8196 $as_echo "not found" >&6; }
8198 else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
8200 $as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
8202 cat >>confdefs.h <<_ACEOF
8203 #define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
8204 _ACEOF
8209 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8210 case "x$with_xxf86vm" in
8211 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
8212 xno) ;;
8213 *) as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8214 This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
8215 esac
8218 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"
8219 then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
8221 $as_echo_n "checking for -lXrender... " >&6; }
8222 if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 ac_check_soname_save_LIBS=$LIBS
8226 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8230 /* Override any GCC internal prototype to avoid an error.
8231 Use char because int might match the return type of a GCC
8232 builtin and then its argument prototype would still apply. */
8233 #ifdef __cplusplus
8234 extern "C"
8235 #endif
8236 char XRenderQueryExtension ();
8238 main ()
8240 return XRenderQueryExtension ();
8242 return 0;
8244 _ACEOF
8245 if ac_fn_c_try_link "$LINENO"; then :
8246 case "$LIBEXT" in
8247 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8248 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'` ;;
8249 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8250 esac
8252 rm -f core conftest.err conftest.$ac_objext \
8253 conftest$ac_exeext conftest.$ac_ext
8254 LIBS=$ac_check_soname_save_LIBS
8256 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8258 $as_echo "not found" >&6; }
8260 else
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
8262 $as_echo "$ac_cv_lib_soname_Xrender" >&6; }
8264 cat >>confdefs.h <<_ACEOF
8265 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8266 _ACEOF
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
8269 $as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
8270 if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 ac_check_lib_save_LIBS=$LIBS
8274 LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8278 /* Override any GCC internal prototype to avoid an error.
8279 Use char because int might match the return type of a GCC
8280 builtin and then its argument prototype would still apply. */
8281 #ifdef __cplusplus
8282 extern "C"
8283 #endif
8284 char XRenderSetPictureTransform ();
8286 main ()
8288 return XRenderSetPictureTransform ();
8290 return 0;
8292 _ACEOF
8293 if ac_fn_c_try_link "$LINENO"; then :
8294 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8295 else
8296 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8298 rm -f core conftest.err conftest.$ac_objext \
8299 conftest$ac_exeext conftest.$ac_ext
8300 LIBS=$ac_check_lib_save_LIBS
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8303 $as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
8304 if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
8306 $as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
8313 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8314 case "x$with_xrender" in
8315 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
8316 xno) ;;
8317 *) as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8318 This is an error since --with-xrender was requested." "$LINENO" 5 ;;
8319 esac
8322 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
8323 then
8324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325 /* end confdefs.h. */
8326 #include <X11/Xlib.h>
8327 #include <X11/extensions/Xrandr.h>
8329 main ()
8331 static typeof(XRRSetScreenConfigAndRate) * func;
8333 return 0;
8335 _ACEOF
8336 if ac_fn_c_try_compile "$LINENO"; then :
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
8338 $as_echo_n "checking for -lXrandr... " >&6; }
8339 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 ac_check_soname_save_LIBS=$LIBS
8343 LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h. */
8347 /* Override any GCC internal prototype to avoid an error.
8348 Use char because int might match the return type of a GCC
8349 builtin and then its argument prototype would still apply. */
8350 #ifdef __cplusplus
8351 extern "C"
8352 #endif
8353 char XRRQueryExtension ();
8355 main ()
8357 return XRRQueryExtension ();
8359 return 0;
8361 _ACEOF
8362 if ac_fn_c_try_link "$LINENO"; then :
8363 case "$LIBEXT" in
8364 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8365 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'` ;;
8366 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8367 esac
8369 rm -f core conftest.err conftest.$ac_objext \
8370 conftest$ac_exeext conftest.$ac_ext
8371 LIBS=$ac_check_soname_save_LIBS
8373 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8375 $as_echo "not found" >&6; }
8377 else
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
8379 $as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
8381 cat >>confdefs.h <<_ACEOF
8382 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8383 _ACEOF
8388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8391 case "x$with_xrandr" in
8392 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
8393 xno) ;;
8394 *) as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8395 This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
8396 esac
8399 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8400 then
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #include <X11/Xlib.h>
8404 #include <X11/extensions/Xinerama.h>
8406 main ()
8408 static typeof(XineramaQueryScreens) * func;
8410 return 0;
8412 _ACEOF
8413 if ac_fn_c_try_compile "$LINENO"; then :
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
8415 $as_echo_n "checking for -lXinerama... " >&6; }
8416 if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 ac_check_soname_save_LIBS=$LIBS
8420 LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8424 /* Override any GCC internal prototype to avoid an error.
8425 Use char because int might match the return type of a GCC
8426 builtin and then its argument prototype would still apply. */
8427 #ifdef __cplusplus
8428 extern "C"
8429 #endif
8430 char XineramaQueryScreens ();
8432 main ()
8434 return XineramaQueryScreens ();
8436 return 0;
8438 _ACEOF
8439 if ac_fn_c_try_link "$LINENO"; then :
8440 case "$LIBEXT" in
8441 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8442 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'` ;;
8443 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8444 esac
8446 rm -f core conftest.err conftest.$ac_objext \
8447 conftest$ac_exeext conftest.$ac_ext
8448 LIBS=$ac_check_soname_save_LIBS
8450 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8452 $as_echo "not found" >&6; }
8454 else
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
8456 $as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
8458 cat >>confdefs.h <<_ACEOF
8459 #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8460 _ACEOF
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8468 case "x$with_xinerama" in
8469 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
8470 xno) ;;
8471 *) as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8472 This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
8473 esac
8476 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8477 then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
8479 $as_echo_n "checking for -lXcomposite... " >&6; }
8480 if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 ac_check_soname_save_LIBS=$LIBS
8484 LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8488 /* Override any GCC internal prototype to avoid an error.
8489 Use char because int might match the return type of a GCC
8490 builtin and then its argument prototype would still apply. */
8491 #ifdef __cplusplus
8492 extern "C"
8493 #endif
8494 char XCompositeRedirectWindow ();
8496 main ()
8498 return XCompositeRedirectWindow ();
8500 return 0;
8502 _ACEOF
8503 if ac_fn_c_try_link "$LINENO"; then :
8504 case "$LIBEXT" in
8505 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8506 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'` ;;
8507 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8508 esac
8510 rm -f core conftest.err conftest.$ac_objext \
8511 conftest$ac_exeext conftest.$ac_ext
8512 LIBS=$ac_check_soname_save_LIBS
8514 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8516 $as_echo "not found" >&6; }
8518 else
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
8520 $as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
8522 cat >>confdefs.h <<_ACEOF
8523 #define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8524 _ACEOF
8529 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8530 case "x$with_xcomposite" in
8531 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
8532 xno) ;;
8533 *) as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8534 This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
8535 esac
8538 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
8539 #include <X11/Xlib.h>
8540 #endif
8542 if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
8544 cat >>confdefs.h <<_ACEOF
8545 #define HAVE_XICCALLBACK_CALLBACK 1
8546 _ACEOF
8553 opengl_msg=""
8554 if test "x$with_opengl" != "xno"
8555 then
8556 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8557 do :
8558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8559 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
8560 # include <GL/glx.h>
8561 #endif
8563 eval as_val=\$$as_ac_Header
8564 if test "x$as_val" = x""yes; then :
8565 cat >>confdefs.h <<_ACEOF
8566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8567 _ACEOF
8571 done
8573 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8574 then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
8576 $as_echo_n "checking for up-to-date OpenGL version... " >&6; }
8577 if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 #include <GL/gl.h>
8584 main ()
8586 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8588 return 0;
8590 _ACEOF
8591 if ac_fn_c_try_compile "$LINENO"; then :
8592 wine_cv_opengl_header_version_OK="yes"
8593 else
8594 wine_cv_opengl_header_version_OK="no"
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
8599 $as_echo "$wine_cv_opengl_header_version_OK" >&6; }
8601 if test "$wine_cv_opengl_header_version_OK" = "yes"
8602 then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8604 $as_echo_n "checking for -lGL... " >&6; }
8605 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 ac_check_soname_save_LIBS=$LIBS
8609 LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8613 /* Override any GCC internal prototype to avoid an error.
8614 Use char because int might match the return type of a GCC
8615 builtin and then its argument prototype would still apply. */
8616 #ifdef __cplusplus
8617 extern "C"
8618 #endif
8619 char glXCreateContext ();
8621 main ()
8623 return glXCreateContext ();
8625 return 0;
8627 _ACEOF
8628 if ac_fn_c_try_link "$LINENO"; then :
8629 case "$LIBEXT" in
8630 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8631 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'` ;;
8632 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8633 esac
8635 rm -f core conftest.err conftest.$ac_objext \
8636 conftest$ac_exeext conftest.$ac_ext
8637 LIBS=$ac_check_soname_save_LIBS
8639 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8641 $as_echo "not found" >&6; }
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
8643 $as_echo_n "checking for -lGL... " >&6; }
8644 if test "${ac_cv_lib_soname_GL+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 ac_check_soname_save_LIBS=$LIBS
8648 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"
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8652 /* Override any GCC internal prototype to avoid an error.
8653 Use char because int might match the return type of a GCC
8654 builtin and then its argument prototype would still apply. */
8655 #ifdef __cplusplus
8656 extern "C"
8657 #endif
8658 char glXCreateContext ();
8660 main ()
8662 return glXCreateContext ();
8664 return 0;
8666 _ACEOF
8667 if ac_fn_c_try_link "$LINENO"; then :
8668 case "$LIBEXT" in
8669 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8670 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'` ;;
8671 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8672 esac
8674 rm -f core conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
8676 LIBS=$ac_check_soname_save_LIBS
8678 if test "x$ac_cv_lib_soname_GL" = "x"; then :
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8680 $as_echo "not found" >&6; }
8681 if test -f /usr/X11R6/lib/libGL.a
8682 then
8683 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
8684 This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
8685 else
8686 opengl_msg="No OpenGL library found on this system."
8688 else
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8690 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8692 cat >>confdefs.h <<_ACEOF
8693 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8694 _ACEOF
8696 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"
8698 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8701 else
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
8703 $as_echo "$ac_cv_lib_soname_GL" >&6; }
8705 cat >>confdefs.h <<_ACEOF
8706 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8707 _ACEOF
8709 OPENGL_LIBS="-lGL"
8711 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
8714 if test "$ac_cv_header_GL_glu_h" = "yes"
8715 then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
8717 $as_echo_n "checking for -lGLU... " >&6; }
8718 if test "${ac_cv_lib_soname_GLU+set}" = set; then :
8719 $as_echo_n "(cached) " >&6
8720 else
8721 ac_check_soname_save_LIBS=$LIBS
8722 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h. */
8726 /* Override any GCC internal prototype to avoid an error.
8727 Use char because int might match the return type of a GCC
8728 builtin and then its argument prototype would still apply. */
8729 #ifdef __cplusplus
8730 extern "C"
8731 #endif
8732 char gluLookAt ();
8734 main ()
8736 return gluLookAt ();
8738 return 0;
8740 _ACEOF
8741 if ac_fn_c_try_link "$LINENO"; then :
8742 case "$LIBEXT" in
8743 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
8744 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'` ;;
8745 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8746 esac
8748 rm -f core conftest.err conftest.$ac_objext \
8749 conftest$ac_exeext conftest.$ac_ext
8750 LIBS=$ac_check_soname_save_LIBS
8752 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8754 $as_echo "not found" >&6; }
8756 else
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
8758 $as_echo "$ac_cv_lib_soname_GLU" >&6; }
8760 cat >>confdefs.h <<_ACEOF
8761 #define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8762 _ACEOF
8767 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8768 case "x$with_glu" in
8769 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
8770 xno) ;;
8771 *) as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8772 This is an error since --with-glu was requested." "$LINENO" 5 ;;
8773 esac
8775 else
8776 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
8778 else
8779 opengl_msg="OpenGL development headers not found."
8781 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8782 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8783 else
8784 enable_opengl32=${enable_opengl32:-no}
8785 enable_glu32=${enable_glu32:-no}
8787 if test -n "$opengl_msg"; then :
8788 case "x$with_opengl" in
8789 x) as_fn_append wine_warnings "|$opengl_msg
8790 OpenGL and Direct3D won't be supported." ;;
8791 xno) ;;
8792 *) as_fn_error "$opengl_msg
8793 OpenGL and Direct3D won't be supported.
8794 This is an error since --with-opengl was requested." "$LINENO" 5 ;;
8795 esac
8798 NASLIBS=""
8800 for ac_header in audio/audiolib.h
8801 do :
8802 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8803 if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
8804 cat >>confdefs.h <<_ACEOF
8805 #define HAVE_AUDIO_AUDIOLIB_H 1
8806 _ACEOF
8807 for ac_header in audio/soundlib.h
8808 do :
8809 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8811 if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
8812 cat >>confdefs.h <<_ACEOF
8813 #define HAVE_AUDIO_SOUNDLIB_H 1
8814 _ACEOF
8818 done
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
8821 $as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
8822 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 ac_check_lib_save_LIBS=$LIBS
8826 LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
8827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8830 /* Override any GCC internal prototype to avoid an error.
8831 Use char because int might match the return type of a GCC
8832 builtin and then its argument prototype would still apply. */
8833 #ifdef __cplusplus
8834 extern "C"
8835 #endif
8836 char AuCreateFlow ();
8838 main ()
8840 return AuCreateFlow ();
8842 return 0;
8844 _ACEOF
8845 if ac_fn_c_try_link "$LINENO"; then :
8846 ac_cv_lib_audio_AuCreateFlow=yes
8847 else
8848 ac_cv_lib_audio_AuCreateFlow=no
8850 rm -f core conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
8852 LIBS=$ac_check_lib_save_LIBS
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8855 $as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
8856 if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
8858 $as_echo "#define HAVE_NAS 1" >>confdefs.h
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
8861 $as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
8862 if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 ac_check_lib_save_LIBS=$LIBS
8866 LIBS="-lXau $X_LIBS $LIBS"
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8870 /* Override any GCC internal prototype to avoid an error.
8871 Use char because int might match the return type of a GCC
8872 builtin and then its argument prototype would still apply. */
8873 #ifdef __cplusplus
8874 extern "C"
8875 #endif
8876 char XauGetBestAuthByAddr ();
8878 main ()
8880 return XauGetBestAuthByAddr ();
8882 return 0;
8884 _ACEOF
8885 if ac_fn_c_try_link "$LINENO"; then :
8886 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8887 else
8888 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8892 LIBS=$ac_check_lib_save_LIBS
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
8895 $as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
8896 if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
8897 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8898 else
8899 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
8907 done
8910 CPPFLAGS="$ac_save_CPPFLAGS"
8911 else
8912 XLIB=""
8913 X_CFLAGS=""
8914 X_LIBS=""
8915 enable_winex11_drv=${enable_winex11_drv:-no}
8916 enable_opengl32=${enable_opengl32:-no}
8917 enable_glu32=${enable_glu32:-no}
8919 if test "x$XLIB" = "x"; then :
8920 case "x$with_x" in
8921 xno) ;;
8922 *) as_fn_error "X ${notice_platform}development files not found. Wine will be built
8923 without X support, which probably isn't what you want. You will need to install
8924 ${notice_platform}development packages of Xlib/Xfree86 at the very least.
8925 Use the --without-x option if you really want this." "$LINENO" 5 ;;
8926 esac
8930 XML2LIBS=""
8932 XML2INCL=""
8934 XSLTINCL=""
8936 if test "x$with_xml" != "xno"
8937 then
8938 ac_save_CPPFLAGS="$CPPFLAGS"
8939 if test "$PKG_CONFIG" != "false"
8940 then
8941 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8942 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8943 else
8944 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
8945 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
8947 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
8948 for ac_header in libxml/parser.h
8949 do :
8950 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
8951 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
8952 cat >>confdefs.h <<_ACEOF
8953 #define HAVE_LIBXML_PARSER_H 1
8954 _ACEOF
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
8956 $as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
8957 if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 ac_check_lib_save_LIBS=$LIBS
8961 LIBS="-lxml2 $ac_xml_libs $LIBS"
8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8963 /* end confdefs.h. */
8965 /* Override any GCC internal prototype to avoid an error.
8966 Use char because int might match the return type of a GCC
8967 builtin and then its argument prototype would still apply. */
8968 #ifdef __cplusplus
8969 extern "C"
8970 #endif
8971 char xmlParseMemory ();
8973 main ()
8975 return xmlParseMemory ();
8977 return 0;
8979 _ACEOF
8980 if ac_fn_c_try_link "$LINENO"; then :
8981 ac_cv_lib_xml2_xmlParseMemory=yes
8982 else
8983 ac_cv_lib_xml2_xmlParseMemory=no
8985 rm -f core conftest.err conftest.$ac_objext \
8986 conftest$ac_exeext conftest.$ac_ext
8987 LIBS=$ac_check_lib_save_LIBS
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
8990 $as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
8991 if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
8993 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
8995 XML2LIBS="$ac_xml_libs"
8996 XML2INCL="$ac_xml_cflags"
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
9000 $as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
9001 if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
9002 $as_echo_n "(cached) " >&6
9003 else
9004 ac_check_lib_save_LIBS=$LIBS
9005 LIBS="-lxml2 $ac_xml_libs $LIBS"
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9009 /* Override any GCC internal prototype to avoid an error.
9010 Use char because int might match the return type of a GCC
9011 builtin and then its argument prototype would still apply. */
9012 #ifdef __cplusplus
9013 extern "C"
9014 #endif
9015 char xmlReadMemory ();
9017 main ()
9019 return xmlReadMemory ();
9021 return 0;
9023 _ACEOF
9024 if ac_fn_c_try_link "$LINENO"; then :
9025 ac_cv_lib_xml2_xmlReadMemory=yes
9026 else
9027 ac_cv_lib_xml2_xmlReadMemory=no
9029 rm -f core conftest.err conftest.$ac_objext \
9030 conftest$ac_exeext conftest.$ac_ext
9031 LIBS=$ac_check_lib_save_LIBS
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
9034 $as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
9035 if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
9037 $as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
9042 $as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
9043 if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 ac_check_lib_save_LIBS=$LIBS
9047 LIBS="-lxml2 $ac_xml_libs $LIBS"
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9051 /* Override any GCC internal prototype to avoid an error.
9052 Use char because int might match the return type of a GCC
9053 builtin and then its argument prototype would still apply. */
9054 #ifdef __cplusplus
9055 extern "C"
9056 #endif
9057 char xmlNewDocPI ();
9059 main ()
9061 return xmlNewDocPI ();
9063 return 0;
9065 _ACEOF
9066 if ac_fn_c_try_link "$LINENO"; then :
9067 ac_cv_lib_xml2_xmlNewDocPI=yes
9068 else
9069 ac_cv_lib_xml2_xmlNewDocPI=no
9071 rm -f core conftest.err conftest.$ac_objext \
9072 conftest$ac_exeext conftest.$ac_ext
9073 LIBS=$ac_check_lib_save_LIBS
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
9076 $as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
9077 if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
9079 $as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
9086 done
9088 CPPFLAGS="$ac_save_CPPFLAGS"
9090 if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
9091 case "x$with_xml" in
9092 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
9093 xno) ;;
9094 *) as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9095 This is an error since --with-xml was requested." "$LINENO" 5 ;;
9096 esac
9099 if test "x$with_xslt" != "xno"
9100 then
9101 if test "$PKG_CONFIG" != "false"
9102 then
9103 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9104 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9105 else
9106 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9107 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9109 ac_save_CPPFLAGS="$CPPFLAGS"
9110 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
9111 for ac_header in libxslt/pattern.h libxslt/transform.h
9112 do :
9113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9114 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
9115 # include <libxslt/pattern.h>
9116 #endif
9118 eval as_val=\$$as_ac_Header
9119 if test "x$as_val" = x""yes; then :
9120 cat >>confdefs.h <<_ACEOF
9121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9122 _ACEOF
9126 done
9128 CPPFLAGS="$ac_save_CPPFLAGS"
9129 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9130 then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
9132 $as_echo_n "checking for -lxslt... " >&6; }
9133 if test "${ac_cv_lib_soname_xslt+set}" = set; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 ac_check_soname_save_LIBS=$LIBS
9137 LIBS="-lxslt $ac_xslt_libs $LIBS"
9138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9141 /* Override any GCC internal prototype to avoid an error.
9142 Use char because int might match the return type of a GCC
9143 builtin and then its argument prototype would still apply. */
9144 #ifdef __cplusplus
9145 extern "C"
9146 #endif
9147 char xsltCompilePattern ();
9149 main ()
9151 return xsltCompilePattern ();
9153 return 0;
9155 _ACEOF
9156 if ac_fn_c_try_link "$LINENO"; then :
9157 case "$LIBEXT" in
9158 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9159 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'` ;;
9160 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9161 esac
9163 rm -f core conftest.err conftest.$ac_objext \
9164 conftest$ac_exeext conftest.$ac_ext
9165 LIBS=$ac_check_soname_save_LIBS
9167 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9169 $as_echo "not found" >&6; }
9171 else
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
9173 $as_echo "$ac_cv_lib_soname_xslt" >&6; }
9175 cat >>confdefs.h <<_ACEOF
9176 #define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
9177 _ACEOF
9179 XSLTINCL="$ac_xslt_cflags"
9183 if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9184 case "x$with_xslt" in
9185 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
9186 xno) ;;
9187 *) as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9188 This is an error since --with-xslt was requested." "$LINENO" 5 ;;
9189 esac
9192 HALINCL=""
9194 if test "x$with_hal" != "xno"
9195 then
9196 ac_save_CPPFLAGS="$CPPFLAGS"
9197 if test "$PKG_CONFIG" != "false"
9198 then
9199 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9200 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9201 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9203 for ac_header in dbus/dbus.h hal/libhal.h
9204 do :
9205 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9206 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9207 eval as_val=\$$as_ac_Header
9208 if test "x$as_val" = x""yes; then :
9209 cat >>confdefs.h <<_ACEOF
9210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9211 _ACEOF
9215 done
9217 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9218 then
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
9220 $as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
9221 if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 ac_check_lib_save_LIBS=$LIBS
9225 LIBS="-ldbus-1 $ac_hal_libs $LIBS"
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9229 /* Override any GCC internal prototype to avoid an error.
9230 Use char because int might match the return type of a GCC
9231 builtin and then its argument prototype would still apply. */
9232 #ifdef __cplusplus
9233 extern "C"
9234 #endif
9235 char dbus_connection_close ();
9237 main ()
9239 return dbus_connection_close ();
9241 return 0;
9243 _ACEOF
9244 if ac_fn_c_try_link "$LINENO"; then :
9245 ac_cv_lib_dbus_1_dbus_connection_close=yes
9246 else
9247 ac_cv_lib_dbus_1_dbus_connection_close=no
9249 rm -f core conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
9251 LIBS=$ac_check_lib_save_LIBS
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
9254 $as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
9255 if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
9257 $as_echo_n "checking for -lhal... " >&6; }
9258 if test "${ac_cv_lib_soname_hal+set}" = set; then :
9259 $as_echo_n "(cached) " >&6
9260 else
9261 ac_check_soname_save_LIBS=$LIBS
9262 LIBS="-lhal $ac_hal_libs $LIBS"
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9266 /* Override any GCC internal prototype to avoid an error.
9267 Use char because int might match the return type of a GCC
9268 builtin and then its argument prototype would still apply. */
9269 #ifdef __cplusplus
9270 extern "C"
9271 #endif
9272 char libhal_ctx_new ();
9274 main ()
9276 return libhal_ctx_new ();
9278 return 0;
9280 _ACEOF
9281 if ac_fn_c_try_link "$LINENO"; then :
9282 case "$LIBEXT" in
9283 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9284 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'` ;;
9285 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9286 esac
9288 rm -f core conftest.err conftest.$ac_objext \
9289 conftest$ac_exeext conftest.$ac_ext
9290 LIBS=$ac_check_soname_save_LIBS
9292 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9294 $as_echo "not found" >&6; }
9296 else
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
9298 $as_echo "$ac_cv_lib_soname_hal" >&6; }
9300 cat >>confdefs.h <<_ACEOF
9301 #define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
9302 _ACEOF
9304 HALINCL="$ac_hal_cflags"
9309 CPPFLAGS="$ac_save_CPPFLAGS"
9311 if test "x$ac_cv_lib_soname_hal" = "x"; then :
9312 case "x$with_hal" in
9313 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
9314 xno) ;;
9315 *) as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9316 This is an error since --with-hal was requested." "$LINENO" 5 ;;
9317 esac
9320 if test "x$with_gnutls" != "xno"
9321 then
9322 ac_save_CPPFLAGS="$CPPFLAGS"
9323 if test "$PKG_CONFIG" != "false"
9324 then
9325 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9326 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9327 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9329 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9330 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9333 #include <gnutls/gnutls.h>
9335 main ()
9337 typeof(gnutls_mac_get_key_size) *pfunc;
9339 return 0;
9341 _ACEOF
9342 if ac_fn_c_try_compile "$LINENO"; then :
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
9344 $as_echo_n "checking for -lgnutls... " >&6; }
9345 if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 ac_check_soname_save_LIBS=$LIBS
9349 LIBS="-lgnutls $ac_gnutls_libs $LIBS"
9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9353 /* Override any GCC internal prototype to avoid an error.
9354 Use char because int might match the return type of a GCC
9355 builtin and then its argument prototype would still apply. */
9356 #ifdef __cplusplus
9357 extern "C"
9358 #endif
9359 char gnutls_global_init ();
9361 main ()
9363 return gnutls_global_init ();
9365 return 0;
9367 _ACEOF
9368 if ac_fn_c_try_link "$LINENO"; then :
9369 case "$LIBEXT" in
9370 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9371 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'` ;;
9372 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9373 esac
9375 rm -f core conftest.err conftest.$ac_objext \
9376 conftest$ac_exeext conftest.$ac_ext
9377 LIBS=$ac_check_soname_save_LIBS
9379 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9381 $as_echo "not found" >&6; }
9383 else
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
9385 $as_echo "$ac_cv_lib_soname_gnutls" >&6; }
9387 cat >>confdefs.h <<_ACEOF
9388 #define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9389 _ACEOF
9391 GNUTLSINCL="$ac_gnutls_cflags"
9395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9399 CPPFLAGS="$ac_save_CPPFLAGS"
9401 if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9402 case "x$with_gnutls" in
9403 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
9404 xno) ;;
9405 *) as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9406 This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
9407 esac
9410 CURSESLIBS=""
9411 if test "$ac_cv_header_ncurses_h" = "yes"
9412 then
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
9414 $as_echo_n "checking for -lncurses... " >&6; }
9415 if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 ac_check_soname_save_LIBS=$LIBS
9419 LIBS="-lncurses $LIBS"
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9423 /* Override any GCC internal prototype to avoid an error.
9424 Use char because int might match the return type of a GCC
9425 builtin and then its argument prototype would still apply. */
9426 #ifdef __cplusplus
9427 extern "C"
9428 #endif
9429 char waddch ();
9431 main ()
9433 return waddch ();
9435 return 0;
9437 _ACEOF
9438 if ac_fn_c_try_link "$LINENO"; then :
9439 case "$LIBEXT" in
9440 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9441 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'` ;;
9442 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9443 esac
9445 rm -f core conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 LIBS=$ac_check_soname_save_LIBS
9449 if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9451 $as_echo "not found" >&6; }
9453 else
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
9455 $as_echo "$ac_cv_lib_soname_ncurses" >&6; }
9457 cat >>confdefs.h <<_ACEOF
9458 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9459 _ACEOF
9461 CURSESLIBS="-lncurses"
9463 elif test "$ac_cv_header_curses_h" = "yes"
9464 then
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
9466 $as_echo_n "checking for -lcurses... " >&6; }
9467 if test "${ac_cv_lib_soname_curses+set}" = set; then :
9468 $as_echo_n "(cached) " >&6
9469 else
9470 ac_check_soname_save_LIBS=$LIBS
9471 LIBS="-lcurses $LIBS"
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9478 #ifdef __cplusplus
9479 extern "C"
9480 #endif
9481 char waddch ();
9483 main ()
9485 return waddch ();
9487 return 0;
9489 _ACEOF
9490 if ac_fn_c_try_link "$LINENO"; then :
9491 case "$LIBEXT" in
9492 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9493 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'` ;;
9494 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9495 esac
9497 rm -f core conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_check_soname_save_LIBS
9501 if test "x$ac_cv_lib_soname_curses" = "x"; then :
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9503 $as_echo "not found" >&6; }
9505 else
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
9507 $as_echo "$ac_cv_lib_soname_curses" >&6; }
9509 cat >>confdefs.h <<_ACEOF
9510 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9511 _ACEOF
9513 CURSESLIBS="-lcurses"
9516 ac_save_LIBS="$LIBS"
9517 LIBS="$LIBS $CURSESLIBS"
9518 for ac_func in mousemask
9519 do :
9520 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9521 if test "x$ac_cv_func_mousemask" = x""yes; then :
9522 cat >>confdefs.h <<_ACEOF
9523 #define HAVE_MOUSEMASK 1
9524 _ACEOF
9527 done
9529 LIBS="$ac_save_LIBS"
9530 if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
9531 case "x$with_curses" in
9532 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
9533 xno) ;;
9534 *) as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9535 This is an error since --with-curses was requested." "$LINENO" 5 ;;
9536 esac
9539 if test "x$with_sane" != "xno"
9540 then
9541 ac_save_CPPFLAGS="$CPPFLAGS"
9542 # Extract the first word of "sane-config", so it can be a program name with args.
9543 set dummy sane-config; ac_word=$2
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9545 $as_echo_n "checking for $ac_word... " >&6; }
9546 if test "${ac_cv_prog_sane_devel+set}" = set; then :
9547 $as_echo_n "(cached) " >&6
9548 else
9549 if test -n "$sane_devel"; then
9550 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9551 else
9552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9553 for as_dir in $PATH
9555 IFS=$as_save_IFS
9556 test -z "$as_dir" && as_dir=.
9557 for ac_exec_ext in '' $ac_executable_extensions; do
9558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9559 ac_cv_prog_sane_devel="sane-config"
9560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9561 break 2
9563 done
9564 done
9565 IFS=$as_save_IFS
9567 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9570 sane_devel=$ac_cv_prog_sane_devel
9571 if test -n "$sane_devel"; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
9573 $as_echo "$sane_devel" >&6; }
9574 else
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 $as_echo "no" >&6; }
9580 if test "$sane_devel" != "no"
9581 then
9582 ac_sane_incl="`$sane_devel --cflags`"
9583 ac_sane_libs="`$sane_devel --ldflags`"
9584 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9586 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9587 if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
9589 $as_echo_n "checking for -lsane... " >&6; }
9590 if test "${ac_cv_lib_soname_sane+set}" = set; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 ac_check_soname_save_LIBS=$LIBS
9594 LIBS="-lsane $ac_sane_libs $LIBS"
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9598 /* Override any GCC internal prototype to avoid an error.
9599 Use char because int might match the return type of a GCC
9600 builtin and then its argument prototype would still apply. */
9601 #ifdef __cplusplus
9602 extern "C"
9603 #endif
9604 char sane_init ();
9606 main ()
9608 return sane_init ();
9610 return 0;
9612 _ACEOF
9613 if ac_fn_c_try_link "$LINENO"; then :
9614 case "$LIBEXT" in
9615 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9616 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'` ;;
9617 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9618 esac
9620 rm -f core conftest.err conftest.$ac_objext \
9621 conftest$ac_exeext conftest.$ac_ext
9622 LIBS=$ac_check_soname_save_LIBS
9624 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9626 $as_echo "not found" >&6; }
9628 else
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
9630 $as_echo "$ac_cv_lib_soname_sane" >&6; }
9632 cat >>confdefs.h <<_ACEOF
9633 #define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9634 _ACEOF
9636 SANEINCL="$ac_sane_incl"
9642 CPPFLAGS="$ac_save_CPPFLAGS"
9644 if test "x$ac_cv_lib_soname_sane" = "x"; then :
9645 case "x$with_sane" in
9646 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
9647 xno) ;;
9648 *) as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9649 This is an error since --with-sane was requested." "$LINENO" 5 ;;
9650 esac
9653 if test "x$with_v4l" != "xno"
9654 then
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9656 $as_echo_n "checking for -lv4l1... " >&6; }
9657 if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660 ac_check_soname_save_LIBS=$LIBS
9661 LIBS="-lv4l1 $LIBS"
9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9665 /* Override any GCC internal prototype to avoid an error.
9666 Use char because int might match the return type of a GCC
9667 builtin and then its argument prototype would still apply. */
9668 #ifdef __cplusplus
9669 extern "C"
9670 #endif
9671 char v4l1_open ();
9673 main ()
9675 return v4l1_open ();
9677 return 0;
9679 _ACEOF
9680 if ac_fn_c_try_link "$LINENO"; then :
9681 case "$LIBEXT" in
9682 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
9683 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'` ;;
9684 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9685 esac
9687 rm -f core conftest.err conftest.$ac_objext \
9688 conftest$ac_exeext conftest.$ac_ext
9689 LIBS=$ac_check_soname_save_LIBS
9691 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9693 $as_echo "not found" >&6; }
9695 else
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9697 $as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9699 cat >>confdefs.h <<_ACEOF
9700 #define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9701 _ACEOF
9706 if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9707 case "x$with_v4l" in
9708 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
9709 xno) ;;
9710 *) as_fn_error "libv4l ${notice_platform}development files not found.
9711 This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9712 esac
9715 if test "x$with_gphoto" != "xno"
9716 then
9717 ac_save_CPPFLAGS="$CPPFLAGS"
9718 # Extract the first word of "gphoto2-config", so it can be a program name with args.
9719 set dummy gphoto2-config; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 if test -n "$gphoto2_devel"; then
9726 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9727 else
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 for as_dir in $PATH
9731 IFS=$as_save_IFS
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9735 ac_cv_prog_gphoto2_devel="gphoto2-config"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737 break 2
9739 done
9740 done
9741 IFS=$as_save_IFS
9743 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9746 gphoto2_devel=$ac_cv_prog_gphoto2_devel
9747 if test -n "$gphoto2_devel"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
9749 $as_echo "$gphoto2_devel" >&6; }
9750 else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752 $as_echo "no" >&6; }
9756 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
9757 set dummy gphoto2-port-config; ac_word=$2
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 $as_echo_n "checking for $ac_word... " >&6; }
9760 if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 if test -n "$gphoto2port_devel"; then
9764 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9765 else
9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767 for as_dir in $PATH
9769 IFS=$as_save_IFS
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9773 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9775 break 2
9777 done
9778 done
9779 IFS=$as_save_IFS
9781 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9784 gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9785 if test -n "$gphoto2port_devel"; then
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
9787 $as_echo "$gphoto2port_devel" >&6; }
9788 else
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; }
9794 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9795 then
9796 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9797 ac_gphoto2_libs=""
9798 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9800 case "$i" in
9801 -L/usr/lib|-L/usr/lib64) ;;
9802 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9803 esac
9804 done
9805 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9807 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
9808 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9809 if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
9811 $as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
9812 if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
9813 $as_echo_n "(cached) " >&6
9814 else
9815 ac_check_lib_save_LIBS=$LIBS
9816 LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
9817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9818 /* end confdefs.h. */
9820 /* Override any GCC internal prototype to avoid an error.
9821 Use char because int might match the return type of a GCC
9822 builtin and then its argument prototype would still apply. */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 char gp_camera_new ();
9828 main ()
9830 return gp_camera_new ();
9832 return 0;
9834 _ACEOF
9835 if ac_fn_c_try_link "$LINENO"; then :
9836 ac_cv_lib_gphoto2_gp_camera_new=yes
9837 else
9838 ac_cv_lib_gphoto2_gp_camera_new=no
9840 rm -f core conftest.err conftest.$ac_objext \
9841 conftest$ac_exeext conftest.$ac_ext
9842 LIBS=$ac_check_lib_save_LIBS
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
9845 $as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
9846 if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
9848 $as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
9850 GPHOTO2LIBS="$ac_gphoto2_libs"
9852 GPHOTO2INCL="$ac_gphoto2_incl"
9859 CPPFLAGS="$ac_save_CPPFLAGS"
9861 if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
9862 case "x$with_gphoto" in
9863 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
9864 xno) ;;
9865 *) as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9866 This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
9867 esac
9871 RESOLVLIBS=""
9873 if test "$ac_cv_header_resolv_h" = "yes"
9874 then
9875 ac_save_LIBS="$LIBS"
9876 LIBS="$LIBS -lresolv"
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h. */
9879 #ifdef HAVE_NETINET_IN_H
9880 #include <netinet/in.h>
9881 #endif
9882 #include <resolv.h>
9884 main ()
9886 res_init();
9888 return 0;
9890 _ACEOF
9891 if ac_fn_c_try_link "$LINENO"; then :
9893 $as_echo "#define HAVE_RESOLV 1" >>confdefs.h
9895 RESOLVLIBS="-lresolv"
9897 rm -f core conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext conftest.$ac_ext
9899 LIBS="$ac_save_LIBS"
9902 LCMSLIBS=""
9904 if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
9905 then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
9907 $as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
9908 if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911 ac_check_lib_save_LIBS=$LIBS
9912 LIBS="-llcms $LIBS"
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9916 /* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9919 #ifdef __cplusplus
9920 extern "C"
9921 #endif
9922 char cmsOpenProfileFromFile ();
9924 main ()
9926 return cmsOpenProfileFromFile ();
9928 return 0;
9930 _ACEOF
9931 if ac_fn_c_try_link "$LINENO"; then :
9932 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
9933 else
9934 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
9936 rm -f core conftest.err conftest.$ac_objext \
9937 conftest$ac_exeext conftest.$ac_ext
9938 LIBS=$ac_check_lib_save_LIBS
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
9941 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
9942 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
9944 $as_echo "#define HAVE_LCMS 1" >>confdefs.h
9946 LCMSLIBS="-llcms"
9950 if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
9951 case "x$with_cms" in
9952 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
9953 xno) ;;
9954 *) as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
9955 This is an error since --with-cms was requested." "$LINENO" 5 ;;
9956 esac
9959 if test "x$with_freetype" != "xno"
9960 then
9961 for ac_prog in freetype-config freetype2-config
9963 # Extract the first word of "$ac_prog", so it can be a program name with args.
9964 set dummy $ac_prog; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_ft_devel+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9970 if test -n "$ft_devel"; then
9971 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9972 else
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_prog_ft_devel="$ac_prog"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9984 done
9985 done
9986 IFS=$as_save_IFS
9990 ft_devel=$ac_cv_prog_ft_devel
9991 if test -n "$ft_devel"; then
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
9993 $as_echo "$ft_devel" >&6; }
9994 else
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
10000 test -n "$ft_devel" && break
10001 done
10002 test -n "$ft_devel" || ft_devel="no"
10004 if test "$ft_devel" != "no"
10005 then
10006 ac_freetype_incl=`$ft_devel --cflags`
10007 ac_freetype_libs=`$ft_devel --libs`
10009 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
10011 $as_echo_n "checking for -lfreetype... " >&6; }
10012 if test "${ac_cv_lib_soname_freetype+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 ac_check_soname_save_LIBS=$LIBS
10016 LIBS="-lfreetype $ac_freetype_libs $LIBS"
10017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10018 /* end confdefs.h. */
10020 /* Override any GCC internal prototype to avoid an error.
10021 Use char because int might match the return type of a GCC
10022 builtin and then its argument prototype would still apply. */
10023 #ifdef __cplusplus
10024 extern "C"
10025 #endif
10026 char FT_Init_FreeType ();
10028 main ()
10030 return FT_Init_FreeType ();
10032 return 0;
10034 _ACEOF
10035 if ac_fn_c_try_link "$LINENO"; then :
10036 case "$LIBEXT" in
10037 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10038 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'` ;;
10039 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10040 esac
10042 rm -f core conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044 LIBS=$ac_check_soname_save_LIBS
10046 if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10048 $as_echo "not found" >&6; }
10049 ft_lib=no
10050 else
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
10052 $as_echo "$ac_cv_lib_soname_freetype" >&6; }
10054 cat >>confdefs.h <<_ACEOF
10055 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10056 _ACEOF
10058 ft_lib=yes
10060 if test "$ft_lib" = "yes"
10061 then
10062 ac_save_CPPFLAGS="$CPPFLAGS"
10063 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
10064 for ac_header in ft2build.h \
10065 freetype/freetype.h \
10066 freetype/ftglyph.h \
10067 freetype/fttypes.h \
10068 freetype/tttables.h \
10069 freetype/ftsnames.h \
10070 freetype/ttnameid.h \
10071 freetype/ftoutln.h \
10072 freetype/ftwinfnt.h \
10073 freetype/ftmodapi.h \
10074 freetype/ftlcdfil.h \
10075 freetype/internal/sfnt.h
10076 do :
10077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10078 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
10079 # include <ft2build.h>
10080 #endif
10082 eval as_val=\$$as_ac_Header
10083 if test "x$as_val" = x""yes; then :
10084 cat >>confdefs.h <<_ACEOF
10085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10086 _ACEOF
10090 done
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10094 #include <ft2build.h>
10095 #include <freetype/fttrigon.h>
10096 _ACEOF
10097 if ac_fn_c_try_cpp "$LINENO"; then :
10099 $as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
10101 wine_cv_fttrigon=yes
10102 else
10103 wine_cv_fttrigon=no
10105 rm -f conftest.err conftest.$ac_ext
10106 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10108 if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
10110 cat >>confdefs.h <<_ACEOF
10111 #define HAVE_FT_TRUETYPEENGINETYPE 1
10112 _ACEOF
10117 ac_save_CFLAGS="$CFLAGS"
10118 CFLAGS="$CFLAGS $ac_freetype_libs"
10119 for ac_func in FT_Load_Sfnt_Table
10120 do :
10121 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10122 if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
10123 cat >>confdefs.h <<_ACEOF
10124 #define HAVE_FT_LOAD_SFNT_TABLE 1
10125 _ACEOF
10128 done
10130 CFLAGS="$ac_save_CFLAGS"
10131 CPPFLAGS="$ac_save_CPPFLAGS"
10132 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10133 then
10135 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
10137 FREETYPELIBS="$ac_freetype_libs"
10139 FREETYPEINCL="$ac_freetype_incl"
10144 if test "x$FREETYPELIBS" = "x"; then :
10145 case "x$with_freetype" in
10146 xno) ;;
10147 *) as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10148 Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
10149 esac
10151 test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
10154 $as_echo_n "checking for parport header/ppdev.h... " >&6; }
10155 if test "${ac_cv_c_ppdev+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10157 else
10158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10159 /* end confdefs.h. */
10160 #ifdef HAVE_SYS_IOCTL_H
10161 # include <sys/ioctl.h>
10162 #endif
10163 #include <linux/ppdev.h>
10165 main ()
10167 ioctl (1,PPCLAIM,0)
10169 return 0;
10171 _ACEOF
10172 if ac_fn_c_try_compile "$LINENO"; then :
10173 ac_cv_c_ppdev="yes"
10174 else
10175 ac_cv_c_ppdev="no"
10177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
10180 $as_echo "$ac_cv_c_ppdev" >&6; }
10181 if test "$ac_cv_c_ppdev" = "yes"
10182 then
10184 $as_echo "#define HAVE_PPDEV 1" >>confdefs.h
10188 ac_wine_check_funcs_save_LIBS="$LIBS"
10189 LIBS="$LIBS $LIBPTHREAD"
10190 for ac_func in \
10191 pthread_attr_get_np \
10192 pthread_getattr_np \
10193 pthread_get_stackaddr_np \
10194 pthread_get_stacksize_np
10195 do :
10196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10197 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10198 eval as_val=\$$as_ac_var
10199 if test "x$as_val" = x""yes; then :
10200 cat >>confdefs.h <<_ACEOF
10201 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10202 _ACEOF
10205 done
10207 LIBS="$ac_wine_check_funcs_save_LIBS"
10209 if test "$ac_cv_header_zlib_h" = "yes"
10210 then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
10212 $as_echo_n "checking for inflate in -lz... " >&6; }
10213 if test "${ac_cv_lib_z_inflate+set}" = set; then :
10214 $as_echo_n "(cached) " >&6
10215 else
10216 ac_check_lib_save_LIBS=$LIBS
10217 LIBS="-lz $LIBS"
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10221 /* Override any GCC internal prototype to avoid an error.
10222 Use char because int might match the return type of a GCC
10223 builtin and then its argument prototype would still apply. */
10224 #ifdef __cplusplus
10225 extern "C"
10226 #endif
10227 char inflate ();
10229 main ()
10231 return inflate ();
10233 return 0;
10235 _ACEOF
10236 if ac_fn_c_try_link "$LINENO"; then :
10237 ac_cv_lib_z_inflate=yes
10238 else
10239 ac_cv_lib_z_inflate=no
10241 rm -f core conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243 LIBS=$ac_check_lib_save_LIBS
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
10246 $as_echo "$ac_cv_lib_z_inflate" >&6; }
10247 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
10249 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10251 ZLIB="-lz"
10257 if test "x$with_esd" != xno
10258 then
10259 save_CFLAGS="$CFLAGS"
10260 # Extract the first word of "esd-config", so it can be a program name with args.
10261 set dummy esd-config; ac_word=$2
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263 $as_echo_n "checking for $ac_word... " >&6; }
10264 if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 case $ESDCONFIG in
10268 [\\/]* | ?:[\\/]*)
10269 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10273 for as_dir in $PATH
10275 IFS=$as_save_IFS
10276 test -z "$as_dir" && as_dir=.
10277 for ac_exec_ext in '' $ac_executable_extensions; do
10278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10279 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10281 break 2
10283 done
10284 done
10285 IFS=$as_save_IFS
10287 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
10289 esac
10291 ESDCONFIG=$ac_cv_path_ESDCONFIG
10292 if test -n "$ESDCONFIG"; then
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
10294 $as_echo "$ESDCONFIG" >&6; }
10295 else
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10297 $as_echo "no" >&6; }
10301 if test "x$ESDCONFIG" != "xno"
10302 then
10303 ac_esd_incl=""
10304 for i in `$ESDCONFIG --cflags`
10306 case "$i" in
10307 -I*) ac_esd_incl="$ac_esd_incl $i";;
10308 esac
10309 done
10310 ac_esd_libs=`$ESDCONFIG --libs`
10311 CFLAGS="$CFLAGS $ac_esd_incl"
10313 ac_esd_libs=${ac_esd_libs:-"-lesd"}
10314 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10315 if test "x$ac_cv_header_esd_h" = x""yes; then :
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
10317 $as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
10318 if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
10319 $as_echo_n "(cached) " >&6
10320 else
10321 ac_check_lib_save_LIBS=$LIBS
10322 LIBS="-lesd $ac_esd_libs $LIBS"
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h. */
10326 /* Override any GCC internal prototype to avoid an error.
10327 Use char because int might match the return type of a GCC
10328 builtin and then its argument prototype would still apply. */
10329 #ifdef __cplusplus
10330 extern "C"
10331 #endif
10332 char esd_open_sound ();
10334 main ()
10336 return esd_open_sound ();
10338 return 0;
10340 _ACEOF
10341 if ac_fn_c_try_link "$LINENO"; then :
10342 ac_cv_lib_esd_esd_open_sound=yes
10343 else
10344 ac_cv_lib_esd_esd_open_sound=no
10346 rm -f core conftest.err conftest.$ac_objext \
10347 conftest$ac_exeext conftest.$ac_ext
10348 LIBS=$ac_check_lib_save_LIBS
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
10351 $as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
10352 if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
10353 ESDINCL="$ac_esd_incl"
10355 ESDLIBS="$ac_esd_libs"
10358 $as_echo "#define HAVE_ESD 1" >>confdefs.h
10365 CFLAGS="$save_CFLAGS"
10368 ALSALIBS=""
10370 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
10371 then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
10373 $as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
10374 if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 ac_check_lib_save_LIBS=$LIBS
10378 LIBS="-lasound $LIBS"
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380 /* end confdefs.h. */
10382 /* Override any GCC internal prototype to avoid an error.
10383 Use char because int might match the return type of a GCC
10384 builtin and then its argument prototype would still apply. */
10385 #ifdef __cplusplus
10386 extern "C"
10387 #endif
10388 char snd_pcm_hw_params_get_access ();
10390 main ()
10392 return snd_pcm_hw_params_get_access ();
10394 return 0;
10396 _ACEOF
10397 if ac_fn_c_try_link "$LINENO"; then :
10398 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
10399 else
10400 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
10402 rm -f core conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
10404 LIBS=$ac_check_lib_save_LIBS
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
10407 $as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
10408 if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10411 #ifdef HAVE_ALSA_ASOUNDLIB_H
10412 #include <alsa/asoundlib.h>
10413 #elif defined(HAVE_SYS_ASOUNDLIB_H)
10414 #include <sys/asoundlib.h>
10415 #endif
10417 main ()
10419 int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10421 return 0;
10423 _ACEOF
10424 if ac_fn_c_try_compile "$LINENO"; then :
10426 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
10428 ALSALIBS="-lasound"
10430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10435 AUDIOIOLIBS=""
10437 if test "$ac_cv_header_libaudioio_h" = "yes"
10438 then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
10440 $as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
10441 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
10442 $as_echo_n "(cached) " >&6
10443 else
10444 ac_check_lib_save_LIBS=$LIBS
10445 LIBS="-laudioio $LIBS"
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10449 /* Override any GCC internal prototype to avoid an error.
10450 Use char because int might match the return type of a GCC
10451 builtin and then its argument prototype would still apply. */
10452 #ifdef __cplusplus
10453 extern "C"
10454 #endif
10455 char AudioIOGetVersion ();
10457 main ()
10459 return AudioIOGetVersion ();
10461 return 0;
10463 _ACEOF
10464 if ac_fn_c_try_link "$LINENO"; then :
10465 ac_cv_lib_audioio_AudioIOGetVersion=yes
10466 else
10467 ac_cv_lib_audioio_AudioIOGetVersion=no
10469 rm -f core conftest.err conftest.$ac_objext \
10470 conftest$ac_exeext conftest.$ac_ext
10471 LIBS=$ac_check_lib_save_LIBS
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10474 $as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
10475 if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
10476 AUDIOIOLIBS="-laudioio"
10478 $as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
10485 if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10486 then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
10488 $as_echo_n "checking for -lcapi20... " >&6; }
10489 if test "${ac_cv_lib_soname_capi20+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 ac_check_soname_save_LIBS=$LIBS
10493 LIBS="-lcapi20 $LIBS"
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10497 /* Override any GCC internal prototype to avoid an error.
10498 Use char because int might match the return type of a GCC
10499 builtin and then its argument prototype would still apply. */
10500 #ifdef __cplusplus
10501 extern "C"
10502 #endif
10503 char capi20_register ();
10505 main ()
10507 return capi20_register ();
10509 return 0;
10511 _ACEOF
10512 if ac_fn_c_try_link "$LINENO"; then :
10513 case "$LIBEXT" in
10514 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10515 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'` ;;
10516 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10517 esac
10519 rm -f core conftest.err conftest.$ac_objext \
10520 conftest$ac_exeext conftest.$ac_ext
10521 LIBS=$ac_check_soname_save_LIBS
10523 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10525 $as_echo "not found" >&6; }
10527 else
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
10529 $as_echo "$ac_cv_lib_soname_capi20" >&6; }
10531 cat >>confdefs.h <<_ACEOF
10532 #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
10533 _ACEOF
10538 if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10539 case "x$with_capi" in
10540 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
10541 xno) ;;
10542 *) as_fn_error "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10543 This is an error since --with-capi was requested." "$LINENO" 5 ;;
10544 esac
10547 CUPSINCL=""
10549 if test "x$with_cups" != "xno"
10550 then
10551 ac_save_CPPFLAGS="$CPPFLAGS"
10552 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
10553 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
10554 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
10555 for ac_header in cups/cups.h
10556 do :
10557 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10558 if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
10559 cat >>confdefs.h <<_ACEOF
10560 #define HAVE_CUPS_CUPS_H 1
10561 _ACEOF
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
10563 $as_echo_n "checking for -lcups... " >&6; }
10564 if test "${ac_cv_lib_soname_cups+set}" = set; then :
10565 $as_echo_n "(cached) " >&6
10566 else
10567 ac_check_soname_save_LIBS=$LIBS
10568 LIBS="-lcups $ac_cups_libs $LIBS"
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10572 /* Override any GCC internal prototype to avoid an error.
10573 Use char because int might match the return type of a GCC
10574 builtin and then its argument prototype would still apply. */
10575 #ifdef __cplusplus
10576 extern "C"
10577 #endif
10578 char cupsGetDefault ();
10580 main ()
10582 return cupsGetDefault ();
10584 return 0;
10586 _ACEOF
10587 if ac_fn_c_try_link "$LINENO"; then :
10588 case "$LIBEXT" in
10589 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10590 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'` ;;
10591 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10592 esac
10594 rm -f core conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10596 LIBS=$ac_check_soname_save_LIBS
10598 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10600 $as_echo "not found" >&6; }
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
10604 $as_echo "$ac_cv_lib_soname_cups" >&6; }
10606 cat >>confdefs.h <<_ACEOF
10607 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10608 _ACEOF
10610 CUPSINCL="$ac_cups_cflags"
10614 done
10616 CPPFLAGS="$ac_save_CPPFLAGS"
10618 if test "x$ac_cv_lib_soname_cups" = "x"; then :
10619 case "x$with_cups" in
10620 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
10621 xno) ;;
10622 *) as_fn_error "libcups ${notice_platform}development files not found, CUPS won't be supported.
10623 This is an error since --with-cups was requested." "$LINENO" 5 ;;
10624 esac
10627 if test "$ac_cv_header_jack_jack_h" = "yes"
10628 then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
10630 $as_echo_n "checking for -ljack... " >&6; }
10631 if test "${ac_cv_lib_soname_jack+set}" = set; then :
10632 $as_echo_n "(cached) " >&6
10633 else
10634 ac_check_soname_save_LIBS=$LIBS
10635 LIBS="-ljack $LIBS"
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10639 /* Override any GCC internal prototype to avoid an error.
10640 Use char because int might match the return type of a GCC
10641 builtin and then its argument prototype would still apply. */
10642 #ifdef __cplusplus
10643 extern "C"
10644 #endif
10645 char jack_client_new ();
10647 main ()
10649 return jack_client_new ();
10651 return 0;
10653 _ACEOF
10654 if ac_fn_c_try_link "$LINENO"; then :
10655 case "$LIBEXT" in
10656 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10657 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10658 *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10659 esac
10661 rm -f core conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10663 LIBS=$ac_check_soname_save_LIBS
10665 if test "x$ac_cv_lib_soname_jack" = "x"; then :
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10667 $as_echo "not found" >&6; }
10669 else
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
10671 $as_echo "$ac_cv_lib_soname_jack" >&6; }
10673 cat >>confdefs.h <<_ACEOF
10674 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
10675 _ACEOF
10681 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10682 then
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10684 $as_echo_n "checking for -lfontconfig... " >&6; }
10685 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10686 $as_echo_n "(cached) " >&6
10687 else
10688 ac_check_soname_save_LIBS=$LIBS
10689 LIBS="-lfontconfig $LIBS"
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10693 /* Override any GCC internal prototype to avoid an error.
10694 Use char because int might match the return type of a GCC
10695 builtin and then its argument prototype would still apply. */
10696 #ifdef __cplusplus
10697 extern "C"
10698 #endif
10699 char FcInit ();
10701 main ()
10703 return FcInit ();
10705 return 0;
10707 _ACEOF
10708 if ac_fn_c_try_link "$LINENO"; then :
10709 case "$LIBEXT" in
10710 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10711 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'` ;;
10712 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10713 esac
10715 rm -f core conftest.err conftest.$ac_objext \
10716 conftest$ac_exeext conftest.$ac_ext
10717 LIBS=$ac_check_soname_save_LIBS
10719 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10721 $as_echo "not found" >&6; }
10723 else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10725 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10727 cat >>confdefs.h <<_ACEOF
10728 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10729 _ACEOF
10733 elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
10734 then
10735 ac_save_CPPFLAGS="$CPPFLAGS"
10736 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10737 $as_unset ac_cv_header_fontconfig_fontconfig_h
10738 for ac_header in fontconfig/fontconfig.h
10739 do :
10740 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10741 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
10742 cat >>confdefs.h <<_ACEOF
10743 #define HAVE_FONTCONFIG_FONTCONFIG_H 1
10744 _ACEOF
10748 done
10750 CPPFLAGS="$ac_save_CPPFLAGS"
10751 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10752 then
10753 FONTCONFIGINCL="$X_CFLAGS"
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
10756 $as_echo_n "checking for -lfontconfig... " >&6; }
10757 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 ac_check_soname_save_LIBS=$LIBS
10761 LIBS="-lfontconfig $X_LIBS $LIBS"
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10765 /* Override any GCC internal prototype to avoid an error.
10766 Use char because int might match the return type of a GCC
10767 builtin and then its argument prototype would still apply. */
10768 #ifdef __cplusplus
10769 extern "C"
10770 #endif
10771 char FcInit ();
10773 main ()
10775 return FcInit ();
10777 return 0;
10779 _ACEOF
10780 if ac_fn_c_try_link "$LINENO"; then :
10781 case "$LIBEXT" in
10782 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10783 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'` ;;
10784 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10785 esac
10787 rm -f core conftest.err conftest.$ac_objext \
10788 conftest$ac_exeext conftest.$ac_ext
10789 LIBS=$ac_check_soname_save_LIBS
10791 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10793 $as_echo "not found" >&6; }
10795 else
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
10797 $as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
10799 cat >>confdefs.h <<_ACEOF
10800 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10801 _ACEOF
10807 if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10808 case "x$with_fontconfig" in
10809 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
10810 xno) ;;
10811 *) as_fn_error "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
10812 This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
10813 esac
10816 if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
10817 then
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
10819 $as_echo_n "checking for -lssl... " >&6; }
10820 if test "${ac_cv_lib_soname_ssl+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 ac_check_soname_save_LIBS=$LIBS
10824 LIBS="-lssl $LIBS"
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10828 /* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
10831 #ifdef __cplusplus
10832 extern "C"
10833 #endif
10834 char SSL_library_init ();
10836 main ()
10838 return SSL_library_init ();
10840 return 0;
10842 _ACEOF
10843 if ac_fn_c_try_link "$LINENO"; then :
10844 case "$LIBEXT" in
10845 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10846 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'` ;;
10847 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10848 esac
10850 rm -f core conftest.err conftest.$ac_objext \
10851 conftest$ac_exeext conftest.$ac_ext
10852 LIBS=$ac_check_soname_save_LIBS
10854 if test "x$ac_cv_lib_soname_ssl" = "x"; then :
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10856 $as_echo "not found" >&6; }
10858 else
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
10860 $as_echo "$ac_cv_lib_soname_ssl" >&6; }
10862 cat >>confdefs.h <<_ACEOF
10863 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
10864 _ACEOF
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
10869 $as_echo_n "checking for -lcrypto... " >&6; }
10870 if test "${ac_cv_lib_soname_crypto+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
10872 else
10873 ac_check_soname_save_LIBS=$LIBS
10874 LIBS="-lcrypto $LIBS"
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h. */
10878 /* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 char BIO_new_socket ();
10886 main ()
10888 return BIO_new_socket ();
10890 return 0;
10892 _ACEOF
10893 if ac_fn_c_try_link "$LINENO"; then :
10894 case "$LIBEXT" in
10895 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10896 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'` ;;
10897 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10898 esac
10900 rm -f core conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10902 LIBS=$ac_check_soname_save_LIBS
10904 if test "x$ac_cv_lib_soname_crypto" = "x"; then :
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10906 $as_echo "not found" >&6; }
10908 else
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
10910 $as_echo "$ac_cv_lib_soname_crypto" >&6; }
10912 cat >>confdefs.h <<_ACEOF
10913 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
10914 _ACEOF
10919 if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
10920 case "x$with_openssl" in
10921 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
10922 xno) ;;
10923 *) as_fn_error "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
10924 This is an error since --with-openssl was requested." "$LINENO" 5 ;;
10925 esac
10928 if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
10929 then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
10931 $as_echo_n "checking for -lgsm... " >&6; }
10932 if test "${ac_cv_lib_soname_gsm+set}" = set; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 ac_check_soname_save_LIBS=$LIBS
10936 LIBS="-lgsm $LIBS"
10937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10940 /* Override any GCC internal prototype to avoid an error.
10941 Use char because int might match the return type of a GCC
10942 builtin and then its argument prototype would still apply. */
10943 #ifdef __cplusplus
10944 extern "C"
10945 #endif
10946 char gsm_create ();
10948 main ()
10950 return gsm_create ();
10952 return 0;
10954 _ACEOF
10955 if ac_fn_c_try_link "$LINENO"; then :
10956 case "$LIBEXT" in
10957 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
10958 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'` ;;
10959 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10960 esac
10962 rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964 LIBS=$ac_check_soname_save_LIBS
10966 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10968 $as_echo "not found" >&6; }
10970 else
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
10972 $as_echo "$ac_cv_lib_soname_gsm" >&6; }
10974 cat >>confdefs.h <<_ACEOF
10975 #define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
10976 _ACEOF
10981 if test "x$ac_cv_lib_soname_gsm" = "x"; then :
10982 case "x$with_gsm" in
10983 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
10984 xno) ;;
10985 *) as_fn_error "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
10986 This is an error since --with-gsm was requested." "$LINENO" 5 ;;
10987 esac
10990 if test "$ac_cv_header_jpeglib_h" = "yes"
10991 then
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
10993 $as_echo_n "checking for -ljpeg... " >&6; }
10994 if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997 ac_check_soname_save_LIBS=$LIBS
10998 LIBS="-ljpeg $LIBS"
10999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11000 /* end confdefs.h. */
11002 /* Override any GCC internal prototype to avoid an error.
11003 Use char because int might match the return type of a GCC
11004 builtin and then its argument prototype would still apply. */
11005 #ifdef __cplusplus
11006 extern "C"
11007 #endif
11008 char jpeg_start_decompress ();
11010 main ()
11012 return jpeg_start_decompress ();
11014 return 0;
11016 _ACEOF
11017 if ac_fn_c_try_link "$LINENO"; then :
11018 case "$LIBEXT" in
11019 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11020 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'` ;;
11021 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11022 esac
11024 rm -f core conftest.err conftest.$ac_objext \
11025 conftest$ac_exeext conftest.$ac_ext
11026 LIBS=$ac_check_soname_save_LIBS
11028 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11030 $as_echo "not found" >&6; }
11032 else
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
11034 $as_echo "$ac_cv_lib_soname_jpeg" >&6; }
11036 cat >>confdefs.h <<_ACEOF
11037 #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11038 _ACEOF
11043 if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11044 case "x$with_jpeg" in
11045 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
11046 xno) ;;
11047 *) as_fn_error "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11048 This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
11049 esac
11052 if test "$ac_cv_header_png_h" = "yes"
11053 then
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11055 $as_echo_n "checking for -lpng... " >&6; }
11056 if test "${ac_cv_lib_soname_png+set}" = set; then :
11057 $as_echo_n "(cached) " >&6
11058 else
11059 ac_check_soname_save_LIBS=$LIBS
11060 LIBS="-lpng -lm -lz $LIBS"
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11064 /* Override any GCC internal prototype to avoid an error.
11065 Use char because int might match the return type of a GCC
11066 builtin and then its argument prototype would still apply. */
11067 #ifdef __cplusplus
11068 extern "C"
11069 #endif
11070 char png_create_read_struct ();
11072 main ()
11074 return png_create_read_struct ();
11076 return 0;
11078 _ACEOF
11079 if ac_fn_c_try_link "$LINENO"; then :
11080 case "$LIBEXT" in
11081 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11082 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'` ;;
11083 *) 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'` ;;
11084 esac
11086 rm -f core conftest.err conftest.$ac_objext \
11087 conftest$ac_exeext conftest.$ac_ext
11088 LIBS=$ac_check_soname_save_LIBS
11090 if test "x$ac_cv_lib_soname_png" = "x"; then :
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11092 $as_echo "not found" >&6; }
11094 else
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11096 $as_echo "$ac_cv_lib_soname_png" >&6; }
11098 cat >>confdefs.h <<_ACEOF
11099 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11100 _ACEOF
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11105 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11106 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11107 $as_echo_n "(cached) " >&6
11108 else
11109 ac_check_lib_save_LIBS=$LIBS
11110 LIBS="-lpng -lm -lz $LIBS"
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11114 /* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
11117 #ifdef __cplusplus
11118 extern "C"
11119 #endif
11120 char png_set_expand_gray_1_2_4_to_8 ();
11122 main ()
11124 return png_set_expand_gray_1_2_4_to_8 ();
11126 return 0;
11128 _ACEOF
11129 if ac_fn_c_try_link "$LINENO"; then :
11130 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11131 else
11132 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11134 rm -f core conftest.err conftest.$ac_objext \
11135 conftest$ac_exeext conftest.$ac_ext
11136 LIBS=$ac_check_lib_save_LIBS
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11139 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11140 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11142 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11147 elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11148 then
11149 ac_save_CPPFLAGS="$CPPFLAGS"
11150 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11151 $as_unset ac_cv_header_png_h
11152 for ac_header in png.h
11153 do :
11154 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11155 if test "x$ac_cv_header_png_h" = x""yes; then :
11156 cat >>confdefs.h <<_ACEOF
11157 #define HAVE_PNG_H 1
11158 _ACEOF
11162 done
11164 CPPFLAGS="$ac_save_CPPFLAGS"
11165 if test "$ac_cv_header_png_h" = "yes"
11166 then
11167 PNGINCL="$X_CFLAGS"
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
11170 $as_echo_n "checking for -lpng... " >&6; }
11171 if test "${ac_cv_lib_soname_png+set}" = set; then :
11172 $as_echo_n "(cached) " >&6
11173 else
11174 ac_check_soname_save_LIBS=$LIBS
11175 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h. */
11179 /* Override any GCC internal prototype to avoid an error.
11180 Use char because int might match the return type of a GCC
11181 builtin and then its argument prototype would still apply. */
11182 #ifdef __cplusplus
11183 extern "C"
11184 #endif
11185 char png_create_read_struct ();
11187 main ()
11189 return png_create_read_struct ();
11191 return 0;
11193 _ACEOF
11194 if ac_fn_c_try_link "$LINENO"; then :
11195 case "$LIBEXT" in
11196 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11197 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'` ;;
11198 *) 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'` ;;
11199 esac
11201 rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 LIBS=$ac_check_soname_save_LIBS
11205 if test "x$ac_cv_lib_soname_png" = "x"; then :
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11207 $as_echo "not found" >&6; }
11209 else
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
11211 $as_echo "$ac_cv_lib_soname_png" >&6; }
11213 cat >>confdefs.h <<_ACEOF
11214 #define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11215 _ACEOF
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11220 $as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11221 if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 ac_check_lib_save_LIBS=$LIBS
11225 LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11229 /* Override any GCC internal prototype to avoid an error.
11230 Use char because int might match the return type of a GCC
11231 builtin and then its argument prototype would still apply. */
11232 #ifdef __cplusplus
11233 extern "C"
11234 #endif
11235 char png_set_expand_gray_1_2_4_to_8 ();
11237 main ()
11239 return png_set_expand_gray_1_2_4_to_8 ();
11241 return 0;
11243 _ACEOF
11244 if ac_fn_c_try_link "$LINENO"; then :
11245 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11246 else
11247 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11249 rm -f core conftest.err conftest.$ac_objext \
11250 conftest$ac_exeext conftest.$ac_ext
11251 LIBS=$ac_check_lib_save_LIBS
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11254 $as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11255 if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11256 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11262 if test "x$ac_cv_lib_soname_png" = "x"; then :
11263 case "x$with_png" in
11264 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
11265 xno) ;;
11266 *) as_fn_error "libpng ${notice_platform}development files not found, PNG won't be supported.
11267 This is an error since --with-png was requested." "$LINENO" 5 ;;
11268 esac
11271 if test "$ac_cv_header_tiffio_h" = "yes"
11272 then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11274 $as_echo_n "checking for -ltiff... " >&6; }
11275 if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11276 $as_echo_n "(cached) " >&6
11277 else
11278 ac_check_soname_save_LIBS=$LIBS
11279 LIBS="-ltiff $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 TIFFClientOpen ();
11291 main ()
11293 return TIFFClientOpen ();
11295 return 0;
11297 _ACEOF
11298 if ac_fn_c_try_link "$LINENO"; then :
11299 case "$LIBEXT" in
11300 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11301 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'` ;;
11302 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$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_tiff" = "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_tiff" >&5
11315 $as_echo "$ac_cv_lib_soname_tiff" >&6; }
11317 cat >>confdefs.h <<_ACEOF
11318 #define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11319 _ACEOF
11324 if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11325 case "x$with_tiff" in
11326 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11327 xno) ;;
11328 *) as_fn_error "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11329 This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11330 esac
11333 if test "$ac_cv_header_mpg123_h" = "yes"
11334 then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11336 $as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11337 if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
11338 $as_echo_n "(cached) " >&6
11339 else
11340 ac_check_lib_save_LIBS=$LIBS
11341 LIBS="-lmpg123 $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 mpg123_feed ();
11353 main ()
11355 return mpg123_feed ();
11357 return 0;
11359 _ACEOF
11360 if ac_fn_c_try_link "$LINENO"; then :
11361 ac_cv_lib_mpg123_mpg123_feed=yes
11362 else
11363 ac_cv_lib_mpg123_mpg123_feed=no
11365 rm -f core conftest.err conftest.$ac_objext \
11366 conftest$ac_exeext conftest.$ac_ext
11367 LIBS=$ac_check_lib_save_LIBS
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11370 $as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11371 if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
11372 LIBMPG123="-lmpg123"
11377 if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
11378 case "x$with_mpg123" in
11379 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
11380 xno) ;;
11381 *) as_fn_error "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11382 This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11383 esac
11385 test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_func_AudioFileStreamOpen" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
11387 if test "$ac_cv_header_AL_al_h" = "yes"
11388 then
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alGetSource3i in -lopenal" >&5
11390 $as_echo_n "checking for alGetSource3i in -lopenal... " >&6; }
11391 if test "${ac_cv_lib_openal_alGetSource3i+set}" = set; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 ac_check_lib_save_LIBS=$LIBS
11395 LIBS="-lopenal $LIBS"
11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11399 /* Override any GCC internal prototype to avoid an error.
11400 Use char because int might match the return type of a GCC
11401 builtin and then its argument prototype would still apply. */
11402 #ifdef __cplusplus
11403 extern "C"
11404 #endif
11405 char alGetSource3i ();
11407 main ()
11409 return alGetSource3i ();
11411 return 0;
11413 _ACEOF
11414 if ac_fn_c_try_link "$LINENO"; then :
11415 ac_cv_lib_openal_alGetSource3i=yes
11416 else
11417 ac_cv_lib_openal_alGetSource3i=no
11419 rm -f core conftest.err conftest.$ac_objext \
11420 conftest$ac_exeext conftest.$ac_ext
11421 LIBS=$ac_check_lib_save_LIBS
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openal_alGetSource3i" >&5
11424 $as_echo "$ac_cv_lib_openal_alGetSource3i" >&6; }
11425 if test "x$ac_cv_lib_openal_alGetSource3i" = x""yes; then :
11426 LIBOPENAL="-lopenal"
11431 if test "x$ac_cv_lib_openal_alGetSource3i" != xyes; then :
11432 case "x$with_openal" in
11433 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
11434 xno) ;;
11435 *) as_fn_error "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11436 This is an error since --with-openal was requested." "$LINENO" 5 ;;
11437 esac
11439 test "x$ac_cv_lib_openal_alGetSource3i" = xyes || enable_openal32=${enable_openal32:-no}
11441 if test "$ac_cv_header_kstat_h" = "yes"
11442 then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
11444 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11445 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 ac_check_lib_save_LIBS=$LIBS
11449 LIBS="-lkstat $LIBS"
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451 /* end confdefs.h. */
11453 /* Override any GCC internal prototype to avoid an error.
11454 Use char because int might match the return type of a GCC
11455 builtin and then its argument prototype would still apply. */
11456 #ifdef __cplusplus
11457 extern "C"
11458 #endif
11459 char kstat_open ();
11461 main ()
11463 return kstat_open ();
11465 return 0;
11467 _ACEOF
11468 if ac_fn_c_try_link "$LINENO"; then :
11469 ac_cv_lib_kstat_kstat_open=yes
11470 else
11471 ac_cv_lib_kstat_kstat_open=no
11473 rm -f core conftest.err conftest.$ac_objext \
11474 conftest$ac_exeext conftest.$ac_ext
11475 LIBS=$ac_check_lib_save_LIBS
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
11478 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11479 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
11481 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
11483 LIBKSTAT="-lkstat"
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
11490 $as_echo_n "checking for -lodbc... " >&6; }
11491 if test "${ac_cv_lib_soname_odbc+set}" = set; then :
11492 $as_echo_n "(cached) " >&6
11493 else
11494 ac_check_soname_save_LIBS=$LIBS
11495 LIBS="-lodbc $LIBS"
11496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11499 /* Override any GCC internal prototype to avoid an error.
11500 Use char because int might match the return type of a GCC
11501 builtin and then its argument prototype would still apply. */
11502 #ifdef __cplusplus
11503 extern "C"
11504 #endif
11505 char SQLConnect ();
11507 main ()
11509 return SQLConnect ();
11511 return 0;
11513 _ACEOF
11514 if ac_fn_c_try_link "$LINENO"; then :
11515 case "$LIBEXT" in
11516 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11517 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'` ;;
11518 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11519 esac
11521 rm -f core conftest.err conftest.$ac_objext \
11522 conftest$ac_exeext conftest.$ac_ext
11523 LIBS=$ac_check_soname_save_LIBS
11525 if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11527 $as_echo "not found" >&6; }
11528 cat >>confdefs.h <<_ACEOF
11529 #define SONAME_LIBODBC "libodbc.$LIBEXT"
11530 _ACEOF
11532 else
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
11534 $as_echo "$ac_cv_lib_soname_odbc" >&6; }
11536 cat >>confdefs.h <<_ACEOF
11537 #define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11538 _ACEOF
11543 if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
11544 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
11545 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
11546 "$ac_cv_header_soundcard_h" != "yes" -a \
11547 "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
11548 then
11549 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
11553 EXTRACFLAGS=""
11555 if test "x${GCC}" = "xyes"
11556 then
11557 EXTRACFLAGS="-Wall -pipe"
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
11560 $as_echo_n "checking for gcc strength-reduce bug... " >&6; }
11561 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 if test "$cross_compiling" = yes; then :
11565 ac_cv_c_gcc_strength_bug="yes"
11566 else
11567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11568 /* end confdefs.h. */
11569 int L[4] = {0,1,2,3};
11571 main ()
11573 static int Array[3];
11574 unsigned int B = 3;
11575 int i;
11576 for(i=0; i<B; i++) Array[i] = i - 3;
11577 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11578 L[i] = 4;
11579 return (Array[1] != -2 || L[2] != 3)
11581 return 0;
11583 _ACEOF
11584 if ac_fn_c_try_run "$LINENO"; then :
11585 ac_cv_c_gcc_strength_bug="no"
11586 else
11587 ac_cv_c_gcc_strength_bug="yes"
11589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11590 conftest.$ac_objext conftest.beam conftest.$ac_ext
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
11595 $as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
11596 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11597 then
11598 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
11602 $as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
11603 if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 ac_wine_try_cflags_saved=$CFLAGS
11607 CFLAGS="$CFLAGS -fno-builtin"
11608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609 /* end confdefs.h. */
11610 int main(int argc, char **argv) { return 0; }
11611 _ACEOF
11612 if ac_fn_c_try_link "$LINENO"; then :
11613 ac_cv_cflags__fno_builtin=yes
11614 else
11615 ac_cv_cflags__fno_builtin=no
11617 rm -f core conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
11619 CFLAGS=$ac_wine_try_cflags_saved
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
11622 $as_echo "$ac_cv_cflags__fno_builtin" >&6; }
11623 if test $ac_cv_cflags__fno_builtin = yes; then :
11624 BUILTINFLAG="-fno-builtin"
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
11628 $as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
11629 if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
11631 else
11632 ac_wine_try_cflags_saved=$CFLAGS
11633 CFLAGS="$CFLAGS -fno-strict-aliasing"
11634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11635 /* end confdefs.h. */
11636 int main(int argc, char **argv) { return 0; }
11637 _ACEOF
11638 if ac_fn_c_try_link "$LINENO"; then :
11639 ac_cv_cflags__fno_strict_aliasing=yes
11640 else
11641 ac_cv_cflags__fno_strict_aliasing=no
11643 rm -f core conftest.err conftest.$ac_objext \
11644 conftest$ac_exeext conftest.$ac_ext
11645 CFLAGS=$ac_wine_try_cflags_saved
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
11648 $as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
11649 if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
11650 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
11653 $as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
11654 if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 ac_wine_try_cflags_saved=$CFLAGS
11658 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
11659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660 /* end confdefs.h. */
11661 int main(int argc, char **argv) { return 0; }
11662 _ACEOF
11663 if ac_fn_c_try_link "$LINENO"; then :
11664 ac_cv_cflags__Wdeclaration_after_statement=yes
11665 else
11666 ac_cv_cflags__Wdeclaration_after_statement=no
11668 rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
11670 CFLAGS=$ac_wine_try_cflags_saved
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
11673 $as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
11674 if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
11675 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11678 $as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11679 if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682 ac_wine_try_cflags_saved=$CFLAGS
11683 CFLAGS="$CFLAGS -Wstrict-prototypes"
11684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685 /* end confdefs.h. */
11686 int main(int argc, char **argv) { return 0; }
11687 _ACEOF
11688 if ac_fn_c_try_link "$LINENO"; then :
11689 ac_cv_cflags__Wstrict_prototypes=yes
11690 else
11691 ac_cv_cflags__Wstrict_prototypes=no
11693 rm -f core conftest.err conftest.$ac_objext \
11694 conftest$ac_exeext conftest.$ac_ext
11695 CFLAGS=$ac_wine_try_cflags_saved
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11698 $as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11699 if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11700 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
11703 $as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
11704 if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
11705 $as_echo_n "(cached) " >&6
11706 else
11707 ac_wine_try_cflags_saved=$CFLAGS
11708 CFLAGS="$CFLAGS -Wtype-limits"
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h. */
11711 int main(int argc, char **argv) { return 0; }
11712 _ACEOF
11713 if ac_fn_c_try_link "$LINENO"; then :
11714 ac_cv_cflags__Wtype_limits=yes
11715 else
11716 ac_cv_cflags__Wtype_limits=no
11718 rm -f core conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
11720 CFLAGS=$ac_wine_try_cflags_saved
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
11723 $as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
11724 if test $ac_cv_cflags__Wtype_limits = yes; then :
11725 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11728 $as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
11729 if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
11730 $as_echo_n "(cached) " >&6
11731 else
11732 ac_wine_try_cflags_saved=$CFLAGS
11733 CFLAGS="$CFLAGS -Wwrite-strings"
11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h. */
11736 int main(int argc, char **argv) { return 0; }
11737 _ACEOF
11738 if ac_fn_c_try_link "$LINENO"; then :
11739 ac_cv_cflags__Wwrite_strings=yes
11740 else
11741 ac_cv_cflags__Wwrite_strings=no
11743 rm -f core conftest.err conftest.$ac_objext \
11744 conftest$ac_exeext conftest.$ac_ext
11745 CFLAGS=$ac_wine_try_cflags_saved
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
11748 $as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
11749 if test $ac_cv_cflags__Wwrite_strings = yes; then :
11750 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
11753 saved_CFLAGS="$CFLAGS"
11754 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
11756 $as_echo_n "checking for broken string.h that generates warnings... " >&6; }
11757 if test "${ac_cv_c_string_h_warnings+set}" = set; then :
11758 $as_echo_n "(cached) " >&6
11759 else
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11762 #include <string.h>
11764 main ()
11768 return 0;
11770 _ACEOF
11771 if ac_fn_c_try_compile "$LINENO"; then :
11772 ac_cv_c_string_h_warnings=no
11773 else
11774 ac_cv_c_string_h_warnings=yes
11776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
11779 $as_echo "$ac_cv_c_string_h_warnings" >&6; }
11780 CFLAGS="$saved_CFLAGS"
11781 if test "$ac_cv_c_string_h_warnings" = "no"
11782 then
11783 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
11786 if test "${enable_maintainer_mode+set}" = set
11787 then
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
11789 $as_echo_n "checking whether the compiler supports -Werror... " >&6; }
11790 if test "${ac_cv_cflags__Werror+set}" = set; then :
11791 $as_echo_n "(cached) " >&6
11792 else
11793 ac_wine_try_cflags_saved=$CFLAGS
11794 CFLAGS="$CFLAGS -Werror"
11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796 /* end confdefs.h. */
11797 int main(int argc, char **argv) { return 0; }
11798 _ACEOF
11799 if ac_fn_c_try_link "$LINENO"; then :
11800 ac_cv_cflags__Werror=yes
11801 else
11802 ac_cv_cflags__Werror=no
11804 rm -f core conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11806 CFLAGS=$ac_wine_try_cflags_saved
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
11809 $as_echo "$ac_cv_cflags__Werror" >&6; }
11810 if test $ac_cv_cflags__Werror = yes; then :
11811 EXTRACFLAGS="$EXTRACFLAGS -Werror"
11815 saved_CFLAGS="$CFLAGS"
11816 CFLAGS="$CFLAGS -Werror"
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
11818 $as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
11819 if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
11820 $as_echo_n "(cached) " >&6
11821 else
11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h. */
11824 int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
11826 main ()
11830 return 0;
11832 _ACEOF
11833 if ac_fn_c_try_compile "$LINENO"; then :
11834 ac_cv_have_ms_hook_prologue="yes"
11835 else
11836 ac_cv_have_ms_hook_prologue="no"
11838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
11841 $as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
11842 CFLAGS="$saved_CFLAGS"
11843 if test "$ac_cv_have_ms_hook_prologue" = "yes"
11844 then
11846 $as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
11848 else
11849 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
11856 $as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
11857 if test "${ac_cv_c_extern_prefix+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11862 extern int ac_test;
11864 main ()
11866 asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
11868 return 0;
11870 _ACEOF
11871 if ac_fn_c_try_link "$LINENO"; then :
11872 ac_cv_c_extern_prefix="yes"
11873 else
11874 ac_cv_c_extern_prefix="no"
11876 rm -f core conftest.err conftest.$ac_objext \
11877 conftest$ac_exeext conftest.$ac_ext
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
11880 $as_echo "$ac_cv_c_extern_prefix" >&6; }
11882 case $host_cpu in
11883 *i[3456789]86*)
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
11885 $as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
11886 if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11891 #ifndef _MSC_VER
11892 #define __stdcall __attribute__((__stdcall__))
11893 #endif
11894 int __stdcall ac_test(int i) { return i; }
11896 main ()
11898 asm("jmp _ac_test@4"); if (ac_test(1)) return 1
11900 return 0;
11902 _ACEOF
11903 if ac_fn_c_try_link "$LINENO"; then :
11904 ac_cv_c_stdcall_suffix="yes"
11905 else
11906 ac_cv_c_stdcall_suffix="no"
11908 rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
11912 $as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
11913 *) ac_cv_c_stdcall_suffix="no" ;;
11914 esac
11917 if test "$ac_cv_c_extern_prefix" = "yes"
11918 then
11919 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
11921 asm_name_prefix="_"
11922 else
11923 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
11925 asm_name_prefix=""
11929 if test "$ac_cv_c_stdcall_suffix" = "yes"
11930 then
11931 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
11933 else
11934 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
11940 $as_echo_n "checking how to define a function in assembly code... " >&6; }
11941 if test "${ac_cv_asm_func_def+set}" = set; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11945 /* end confdefs.h. */
11948 main ()
11950 asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
11952 return 0;
11954 _ACEOF
11955 if ac_fn_c_try_link "$LINENO"; then :
11956 ac_cv_asm_func_def=".def"
11957 else
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11962 main ()
11964 asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
11966 return 0;
11968 _ACEOF
11969 if ac_fn_c_try_link "$LINENO"; then :
11970 ac_cv_asm_func_def=".type @function"
11971 else
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11976 main ()
11978 asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
11980 return 0;
11982 _ACEOF
11983 if ac_fn_c_try_link "$LINENO"; then :
11984 ac_cv_asm_func_def=".type 2"
11985 else
11986 ac_cv_asm_func_def="unknown"
11988 rm -f core conftest.err conftest.$ac_objext \
11989 conftest$ac_exeext conftest.$ac_ext
11991 rm -f core conftest.err conftest.$ac_objext \
11992 conftest$ac_exeext conftest.$ac_ext
11994 rm -f core conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext conftest.$ac_ext
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
11998 $as_echo "$ac_cv_asm_func_def" >&6; }
12001 case "$ac_cv_asm_func_def" in
12002 ".def")
12003 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
12005 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
12006 ".type @function")
12007 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
12009 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
12010 ".type 2")
12011 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
12013 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
12015 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
12017 asm_func_header="" ;;
12018 esac
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
12021 $as_echo_n "checking whether asm() works outside of functions... " >&6; }
12022 if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
12023 $as_echo_n "(cached) " >&6
12024 else
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h. */
12027 asm(".text\n\t.long 0");
12029 main ()
12033 return 0;
12035 _ACEOF
12036 if ac_fn_c_try_compile "$LINENO"; then :
12037 ac_cv_c_asm_outside_funcs="yes"
12038 else
12039 ac_cv_c_asm_outside_funcs="no"
12041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
12044 $as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
12047 $as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
12048 if test "${ac_cv_c_dot_previous+set}" = set; then :
12049 $as_echo_n "(cached) " >&6
12050 else
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12055 main ()
12057 asm(".text\nac_test:\t.long 0\n\t.previous");
12059 return 0;
12061 _ACEOF
12062 if ac_fn_c_try_link "$LINENO"; then :
12063 ac_cv_c_dot_previous="yes"
12064 else
12065 ac_cv_c_dot_previous="no"
12067 rm -f core conftest.err conftest.$ac_objext \
12068 conftest$ac_exeext conftest.$ac_ext
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
12071 $as_echo "$ac_cv_c_dot_previous" >&6; }
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
12074 $as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
12075 if test "${ac_cv_c_cfi_support+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
12077 else
12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12079 /* end confdefs.h. */
12080 asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12082 main ()
12086 return 0;
12088 _ACEOF
12089 if ac_fn_c_try_compile "$LINENO"; then :
12090 ac_cv_c_cfi_support="yes"
12091 else
12092 ac_cv_c_cfi_support="no"
12094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
12097 $as_echo "$ac_cv_c_cfi_support" >&6; }
12099 asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
12100 asm_func_trailer=""
12101 if test "$ac_cv_c_dot_previous" = "yes"
12102 then
12103 asm_func_trailer="\\n\\t.previous"
12105 if test "$ac_cv_c_cfi_support" = "yes"
12106 then
12107 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12108 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
12110 $as_echo "#define __ASM_CFI(str) str" >>confdefs.h
12112 else
12113 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
12117 asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12120 if test "$ac_cv_c_asm_outside_funcs" = "yes"
12121 then
12122 cat >>confdefs.h <<_ACEOF
12123 #define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
12124 _ACEOF
12126 else
12127 cat >>confdefs.h <<_ACEOF
12128 #define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
12129 _ACEOF
12133 $as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
12136 $as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
12140 LDPATH=""
12142 case $build_os in
12143 cygwin*|mingw32*)
12144 TOOLSEXT=".exe"
12146 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
12148 darwin*|macosx*)
12151 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
12153 esac
12155 case $host_os in
12156 mingw32*)
12157 CRTLIBS="-lmsvcrt"
12159 SOCKETLIBS="-L\$(TOPOBJDIR)/dlls/ws2_32 -lws2_32"
12162 esac
12164 MAIN_BINARY="wine"
12166 test -z "$with_wine64" || MAIN_BINARY="wine32"
12168 case $host_cpu in
12169 *i[3456789]86*)
12170 case $host_os in
12171 linux*)
12172 EXTRA_BINARIES="wine-preloader"
12174 esac
12176 esac
12179 ac_save_CFLAGS="$CFLAGS"
12180 CFLAGS="$CFLAGS $BUILTINFLAG"
12181 for ac_func in \
12182 _pclose \
12183 _popen \
12184 _snprintf \
12185 _spawnvp \
12186 _strdup \
12187 _stricmp \
12188 _strnicmp \
12189 _strtoi64 \
12190 _strtoui64 \
12191 _vsnprintf \
12192 asctime_r \
12193 chsize \
12194 dlopen \
12195 epoll_create \
12196 ffs \
12197 finite \
12198 fnmatch \
12199 fork \
12200 fpclass \
12201 fstatfs \
12202 fstatvfs \
12203 ftruncate \
12204 futimes \
12205 futimesat \
12206 getdirentries \
12207 getopt_long \
12208 getpagesize \
12209 getpwuid \
12210 gettid \
12211 gettimeofday \
12212 getuid \
12213 kqueue \
12214 lstat \
12215 memmove \
12216 mmap \
12217 pclose \
12218 pipe2 \
12219 poll \
12220 popen \
12221 port_create \
12222 prctl \
12223 pread \
12224 pwrite \
12225 readdir \
12226 readlink \
12227 sched_setaffinity \
12228 sched_yield \
12229 select \
12230 setproctitle \
12231 setrlimit \
12232 settimeofday \
12233 sigaltstack \
12234 sigprocmask \
12235 snprintf \
12236 spawnvp \
12237 statfs \
12238 statvfs \
12239 strcasecmp \
12240 strdup \
12241 strerror \
12242 strncasecmp \
12243 strtold \
12244 strtoll \
12245 strtoull \
12246 symlink \
12247 tcgetattr \
12248 thr_kill2 \
12249 timegm \
12250 usleep \
12251 vsnprintf \
12252 wait4 \
12253 waitpid \
12255 do :
12256 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12257 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12258 eval as_val=\$$as_ac_var
12259 if test "x$as_val" = x""yes; then :
12260 cat >>confdefs.h <<_ACEOF
12261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12262 _ACEOF
12265 done
12267 CFLAGS="$ac_save_CFLAGS"
12269 if test "$ac_cv_func_dlopen" = no
12270 then
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12272 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12273 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12274 $as_echo_n "(cached) " >&6
12275 else
12276 ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-ldl $LIBS"
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12284 #ifdef __cplusplus
12285 extern "C"
12286 #endif
12287 char dlopen ();
12289 main ()
12291 return dlopen ();
12293 return 0;
12295 _ACEOF
12296 if ac_fn_c_try_link "$LINENO"; then :
12297 ac_cv_lib_dl_dlopen=yes
12298 else
12299 ac_cv_lib_dl_dlopen=no
12301 rm -f core conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12306 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12307 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12308 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12309 LIBDL="-ldl"
12314 ac_wine_check_funcs_save_LIBS="$LIBS"
12315 LIBS="$LIBS $LIBDL"
12316 for ac_func in dladdr
12317 do :
12318 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12319 if test "x$ac_cv_func_dladdr" = x""yes; then :
12320 cat >>confdefs.h <<_ACEOF
12321 #define HAVE_DLADDR 1
12322 _ACEOF
12325 done
12327 LIBS="$ac_wine_check_funcs_save_LIBS"
12329 if test "$ac_cv_func_poll" = no
12330 then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
12332 $as_echo_n "checking for poll in -lpoll... " >&6; }
12333 if test "${ac_cv_lib_poll_poll+set}" = set; then :
12334 $as_echo_n "(cached) " >&6
12335 else
12336 ac_check_lib_save_LIBS=$LIBS
12337 LIBS="-lpoll $LIBS"
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12341 /* Override any GCC internal prototype to avoid an error.
12342 Use char because int might match the return type of a GCC
12343 builtin and then its argument prototype would still apply. */
12344 #ifdef __cplusplus
12345 extern "C"
12346 #endif
12347 char poll ();
12349 main ()
12351 return poll ();
12353 return 0;
12355 _ACEOF
12356 if ac_fn_c_try_link "$LINENO"; then :
12357 ac_cv_lib_poll_poll=yes
12358 else
12359 ac_cv_lib_poll_poll=no
12361 rm -f core conftest.err conftest.$ac_objext \
12362 conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
12366 $as_echo "$ac_cv_lib_poll_poll" >&6; }
12367 if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12368 $as_echo "#define HAVE_POLL 1" >>confdefs.h
12369 LIBPOLL="-lpoll"
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
12376 $as_echo_n "checking for library containing gethostbyname... " >&6; }
12377 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12378 $as_echo_n "(cached) " >&6
12379 else
12380 ac_func_search_save_LIBS=$LIBS
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12387 #ifdef __cplusplus
12388 extern "C"
12389 #endif
12390 char gethostbyname ();
12392 main ()
12394 return gethostbyname ();
12396 return 0;
12398 _ACEOF
12399 for ac_lib in '' nsl; do
12400 if test -z "$ac_lib"; then
12401 ac_res="none required"
12402 else
12403 ac_res=-l$ac_lib
12404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12406 if ac_fn_c_try_link "$LINENO"; then :
12407 ac_cv_search_gethostbyname=$ac_res
12409 rm -f core conftest.err conftest.$ac_objext \
12410 conftest$ac_exeext
12411 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12412 break
12414 done
12415 if test "${ac_cv_search_gethostbyname+set}" = set; then :
12417 else
12418 ac_cv_search_gethostbyname=no
12420 rm conftest.$ac_ext
12421 LIBS=$ac_func_search_save_LIBS
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
12424 $as_echo "$ac_cv_search_gethostbyname" >&6; }
12425 ac_res=$ac_cv_search_gethostbyname
12426 if test "$ac_res" != no; then :
12427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
12433 $as_echo_n "checking for library containing connect... " >&6; }
12434 if test "${ac_cv_search_connect+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12437 ac_func_search_save_LIBS=$LIBS
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12441 /* Override any GCC internal prototype to avoid an error.
12442 Use char because int might match the return type of a GCC
12443 builtin and then its argument prototype would still apply. */
12444 #ifdef __cplusplus
12445 extern "C"
12446 #endif
12447 char connect ();
12449 main ()
12451 return connect ();
12453 return 0;
12455 _ACEOF
12456 for ac_lib in '' socket; do
12457 if test -z "$ac_lib"; then
12458 ac_res="none required"
12459 else
12460 ac_res=-l$ac_lib
12461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12463 if ac_fn_c_try_link "$LINENO"; then :
12464 ac_cv_search_connect=$ac_res
12466 rm -f core conftest.err conftest.$ac_objext \
12467 conftest$ac_exeext
12468 if test "${ac_cv_search_connect+set}" = set; then :
12469 break
12471 done
12472 if test "${ac_cv_search_connect+set}" = set; then :
12474 else
12475 ac_cv_search_connect=no
12477 rm conftest.$ac_ext
12478 LIBS=$ac_func_search_save_LIBS
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
12481 $as_echo "$ac_cv_search_connect" >&6; }
12482 ac_res=$ac_cv_search_connect
12483 if test "$ac_res" != no; then :
12484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12490 $as_echo_n "checking for library containing inet_aton... " >&6; }
12491 if test "${ac_cv_search_inet_aton+set}" = set; then :
12492 $as_echo_n "(cached) " >&6
12493 else
12494 ac_func_search_save_LIBS=$LIBS
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12498 /* Override any GCC internal prototype to avoid an error.
12499 Use char because int might match the return type of a GCC
12500 builtin and then its argument prototype would still apply. */
12501 #ifdef __cplusplus
12502 extern "C"
12503 #endif
12504 char inet_aton ();
12506 main ()
12508 return inet_aton ();
12510 return 0;
12512 _ACEOF
12513 for ac_lib in '' resolv; do
12514 if test -z "$ac_lib"; then
12515 ac_res="none required"
12516 else
12517 ac_res=-l$ac_lib
12518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12520 if ac_fn_c_try_link "$LINENO"; then :
12521 ac_cv_search_inet_aton=$ac_res
12523 rm -f core conftest.err conftest.$ac_objext \
12524 conftest$ac_exeext
12525 if test "${ac_cv_search_inet_aton+set}" = set; then :
12526 break
12528 done
12529 if test "${ac_cv_search_inet_aton+set}" = set; then :
12531 else
12532 ac_cv_search_inet_aton=no
12534 rm conftest.$ac_ext
12535 LIBS=$ac_func_search_save_LIBS
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12538 $as_echo "$ac_cv_search_inet_aton" >&6; }
12539 ac_res=$ac_cv_search_inet_aton
12540 if test "$ac_res" != no; then :
12541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12546 for ac_func in \
12547 getaddrinfo \
12548 getnameinfo \
12549 getnetbyname \
12550 getprotobyname \
12551 getprotobynumber \
12552 getservbyport \
12553 inet_network \
12554 inet_ntop \
12555 inet_pton \
12556 sendmsg \
12557 socketpair \
12559 do :
12560 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12561 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12562 eval as_val=\$$as_ac_var
12563 if test "x$as_val" = x""yes; then :
12564 cat >>confdefs.h <<_ACEOF
12565 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12566 _ACEOF
12569 done
12572 LDAPLIBS=""
12574 if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12575 then
12576 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12578 if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
12580 $as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
12581 if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 ac_check_lib_save_LIBS=$LIBS
12585 LIBS="-lldap_r $LIBPTHREAD $LIBS"
12586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587 /* end confdefs.h. */
12589 /* Override any GCC internal prototype to avoid an error.
12590 Use char because int might match the return type of a GCC
12591 builtin and then its argument prototype would still apply. */
12592 #ifdef __cplusplus
12593 extern "C"
12594 #endif
12595 char ldap_initialize ();
12597 main ()
12599 return ldap_initialize ();
12601 return 0;
12603 _ACEOF
12604 if ac_fn_c_try_link "$LINENO"; then :
12605 ac_cv_lib_ldap_r_ldap_initialize=yes
12606 else
12607 ac_cv_lib_ldap_r_ldap_initialize=no
12609 rm -f core conftest.err conftest.$ac_objext \
12610 conftest$ac_exeext conftest.$ac_ext
12611 LIBS=$ac_check_lib_save_LIBS
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12614 $as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12615 if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
12617 $as_echo_n "checking for ber_init in -llber... " >&6; }
12618 if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 ac_check_lib_save_LIBS=$LIBS
12622 LIBS="-llber $LIBPTHREAD $LIBS"
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12626 /* Override any GCC internal prototype to avoid an error.
12627 Use char because int might match the return type of a GCC
12628 builtin and then its argument prototype would still apply. */
12629 #ifdef __cplusplus
12630 extern "C"
12631 #endif
12632 char ber_init ();
12634 main ()
12636 return ber_init ();
12638 return 0;
12640 _ACEOF
12641 if ac_fn_c_try_link "$LINENO"; then :
12642 ac_cv_lib_lber_ber_init=yes
12643 else
12644 ac_cv_lib_lber_ber_init=no
12646 rm -f core conftest.err conftest.$ac_objext \
12647 conftest$ac_exeext conftest.$ac_ext
12648 LIBS=$ac_check_lib_save_LIBS
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
12651 $as_echo "$ac_cv_lib_lber_ber_init" >&6; }
12652 if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
12654 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
12656 LDAPLIBS="-lldap_r -llber"
12663 ac_wine_check_funcs_save_LIBS="$LIBS"
12664 LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
12665 for ac_func in \
12666 ldap_count_references \
12667 ldap_first_reference \
12668 ldap_next_reference \
12669 ldap_parse_reference \
12670 ldap_parse_sort_control \
12671 ldap_parse_sortresponse_control \
12672 ldap_parse_vlv_control \
12673 ldap_parse_vlvresponse_control
12674 do :
12675 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12676 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12677 eval as_val=\$$as_ac_var
12678 if test "x$as_val" = x""yes; then :
12679 cat >>confdefs.h <<_ACEOF
12680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12681 _ACEOF
12684 done
12686 LIBS="$ac_wine_check_funcs_save_LIBS"
12688 if test "x$LDAPLIBS" = "x"; then :
12689 case "x$with_ldap" in
12690 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
12691 xno) ;;
12692 *) as_fn_error "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
12693 This is an error since --with-ldap was requested." "$LINENO" 5 ;;
12694 esac
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
12698 $as_echo_n "checking whether mkdir takes only one argument... " >&6; }
12699 if test "${wine_cv_one_arg_mkdir+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704 #include <sys/stat.h>
12706 main ()
12708 mkdir("foo");
12710 return 0;
12712 _ACEOF
12713 if ac_fn_c_try_compile "$LINENO"; then :
12714 wine_cv_one_arg_mkdir=yes
12715 else
12716 wine_cv_one_arg_mkdir=no
12718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
12721 $as_echo "$wine_cv_one_arg_mkdir" >&6; }
12722 if test "$wine_cv_one_arg_mkdir" = "yes"
12723 then
12725 $as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12731 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12732 if test "${ac_cv_c_const+set}" = set; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12739 main ()
12741 /* FIXME: Include the comments suggested by Paul. */
12742 #ifndef __cplusplus
12743 /* Ultrix mips cc rejects this. */
12744 typedef int charset[2];
12745 const charset cs;
12746 /* SunOS 4.1.1 cc rejects this. */
12747 char const *const *pcpcc;
12748 char **ppc;
12749 /* NEC SVR4.0.2 mips cc rejects this. */
12750 struct point {int x, y;};
12751 static struct point const zero = {0,0};
12752 /* AIX XL C 1.02.0.0 rejects this.
12753 It does not let you subtract one const X* pointer from another in
12754 an arm of an if-expression whose if-part is not a constant
12755 expression */
12756 const char *g = "string";
12757 pcpcc = &g + (g ? g-g : 0);
12758 /* HPUX 7.0 cc rejects these. */
12759 ++pcpcc;
12760 ppc = (char**) pcpcc;
12761 pcpcc = (char const *const *) ppc;
12762 { /* SCO 3.2v4 cc rejects this. */
12763 char *t;
12764 char const *s = 0 ? (char *) 0 : (char const *) 0;
12766 *t++ = 0;
12767 if (s) return 0;
12769 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12770 int x[] = {25, 17};
12771 const int *foo = &x[0];
12772 ++foo;
12774 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12775 typedef const int *iptr;
12776 iptr p = 0;
12777 ++p;
12779 { /* AIX XL C 1.02.0.0 rejects this saying
12780 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12781 struct s { int j; const int *ap[3]; };
12782 struct s *b; b->j = 5;
12784 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12785 const int foo = 10;
12786 if (!foo) return 0;
12788 return !cs[0] && !zero.x;
12789 #endif
12792 return 0;
12794 _ACEOF
12795 if ac_fn_c_try_compile "$LINENO"; then :
12796 ac_cv_c_const=yes
12797 else
12798 ac_cv_c_const=no
12800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12803 $as_echo "$ac_cv_c_const" >&6; }
12804 if test $ac_cv_c_const = no; then
12806 $as_echo "#define const /**/" >>confdefs.h
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12811 $as_echo_n "checking for inline... " >&6; }
12812 if test "${ac_cv_c_inline+set}" = set; then :
12813 $as_echo_n "(cached) " >&6
12814 else
12815 ac_cv_c_inline=no
12816 for ac_kw in inline __inline__ __inline; do
12817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12818 /* end confdefs.h. */
12819 #ifndef __cplusplus
12820 typedef int foo_t;
12821 static $ac_kw foo_t static_foo () {return 0; }
12822 $ac_kw foo_t foo () {return 0; }
12823 #endif
12825 _ACEOF
12826 if ac_fn_c_try_compile "$LINENO"; then :
12827 ac_cv_c_inline=$ac_kw
12829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830 test "$ac_cv_c_inline" != no && break
12831 done
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12835 $as_echo "$ac_cv_c_inline" >&6; }
12837 case $ac_cv_c_inline in
12838 inline | yes) ;;
12840 case $ac_cv_c_inline in
12841 no) ac_val=;;
12842 *) ac_val=$ac_cv_c_inline;;
12843 esac
12844 cat >>confdefs.h <<_ACEOF
12845 #ifndef __cplusplus
12846 #define inline $ac_val
12847 #endif
12848 _ACEOF
12850 esac
12852 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12853 if test "x$ac_cv_type_mode_t" = x""yes; then :
12855 cat >>confdefs.h <<_ACEOF
12856 #define HAVE_MODE_T 1
12857 _ACEOF
12861 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12862 if test "x$ac_cv_type_off_t" = x""yes; then :
12864 cat >>confdefs.h <<_ACEOF
12865 #define HAVE_OFF_T 1
12866 _ACEOF
12870 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12871 if test "x$ac_cv_type_pid_t" = x""yes; then :
12873 cat >>confdefs.h <<_ACEOF
12874 #define HAVE_PID_T 1
12875 _ACEOF
12879 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12880 if test "x$ac_cv_type_size_t" = x""yes; then :
12882 cat >>confdefs.h <<_ACEOF
12883 #define HAVE_SIZE_T 1
12884 _ACEOF
12888 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12889 if test "x$ac_cv_type_ssize_t" = x""yes; then :
12891 cat >>confdefs.h <<_ACEOF
12892 #define HAVE_SSIZE_T 1
12893 _ACEOF
12897 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12898 if test "x$ac_cv_type_long_long" = x""yes; then :
12900 cat >>confdefs.h <<_ACEOF
12901 #define HAVE_LONG_LONG 1
12902 _ACEOF
12906 ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
12907 if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
12909 cat >>confdefs.h <<_ACEOF
12910 #define HAVE_FSBLKCNT_T 1
12911 _ACEOF
12915 ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
12916 if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
12918 cat >>confdefs.h <<_ACEOF
12919 #define HAVE_FSFILCNT_T 1
12920 _ACEOF
12925 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
12926 #include <signal.h>
12928 if test "x$ac_cv_type_sigset_t" = x""yes; then :
12930 cat >>confdefs.h <<_ACEOF
12931 #define HAVE_SIGSET_T 1
12932 _ACEOF
12937 ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
12939 if test "x$ac_cv_type_request_sense" = x""yes; then :
12941 cat >>confdefs.h <<_ACEOF
12942 #define HAVE_REQUEST_SENSE 1
12943 _ACEOF
12949 ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
12950 #ifdef HAVE_SYS_SOCKET_H
12951 #include <sys/socket.h>
12952 #endif
12953 #ifdef HAVE_SYS_SOCKETVAR_H
12954 #include <sys/socketvar.h>
12955 #endif
12956 #ifdef HAVE_NET_ROUTE_H
12957 #include <net/route.h>
12958 #endif
12959 #ifdef HAVE_NETINET_IN_H
12960 #include <netinet/in.h>
12961 #endif
12962 #ifdef HAVE_NETINET_IN_SYSTM_H
12963 #include <netinet/in_systm.h>
12964 #endif
12965 #ifdef HAVE_NETINET_IP_H
12966 #include <netinet/ip.h>
12967 #endif
12968 #ifdef HAVE_NETINET_IN_PCB_H
12969 #include <netinet/in_pcb.h>
12970 #endif
12972 if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
12974 cat >>confdefs.h <<_ACEOF
12975 #define HAVE_STRUCT_XINPGEN 1
12976 _ACEOF
12982 ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
12983 #include <linux/input.h>
12984 #endif
12986 if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
12988 cat >>confdefs.h <<_ACEOF
12989 #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
12990 _ACEOF
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
12997 $as_echo_n "checking for sigaddset... " >&6; }
12998 if test "${wine_cv_have_sigaddset+set}" = set; then :
12999 $as_echo_n "(cached) " >&6
13000 else
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13003 #include <signal.h>
13005 main ()
13007 sigset_t set; sigaddset(&set,SIGTERM);
13009 return 0;
13011 _ACEOF
13012 if ac_fn_c_try_link "$LINENO"; then :
13013 wine_cv_have_sigaddset=yes
13014 else
13015 wine_cv_have_sigaddset=no
13017 rm -f core conftest.err conftest.$ac_objext \
13018 conftest$ac_exeext conftest.$ac_ext
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
13021 $as_echo "$wine_cv_have_sigaddset" >&6; }
13022 if test "$wine_cv_have_sigaddset" = "yes"
13023 then
13025 $as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
13031 $as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
13032 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
13033 $as_echo_n "(cached) " >&6
13034 else
13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h. */
13037 #include <netdb.h>
13039 main ()
13042 char *name=0;
13043 struct hostent he;
13044 struct hostent *result;
13045 char *buf=0;
13046 int bufsize=0;
13047 int res,errnr;
13048 char *addr=0;
13049 int addrlen=0;
13050 int addrtype=0;
13051 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13052 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
13055 return 0;
13057 _ACEOF
13058 if ac_fn_c_try_link "$LINENO"; then :
13059 wine_cv_linux_gethostbyname_r_6=yes
13060 else
13061 wine_cv_linux_gethostbyname_r_6=no
13064 rm -f core conftest.err conftest.$ac_objext \
13065 conftest$ac_exeext conftest.$ac_ext
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
13069 $as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
13070 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13071 then
13073 $as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
13077 if test "$ac_cv_header_linux_joystick_h" = "yes"
13078 then
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
13080 $as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
13081 if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
13082 $as_echo_n "(cached) " >&6
13083 else
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13087 #include <sys/ioctl.h>
13088 #include <sys/types.h>
13089 #include <linux/joystick.h>
13091 struct js_event blub;
13092 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13093 #error "no 2.2 header"
13094 #endif
13097 main ()
13099 /*empty*/
13101 return 0;
13103 _ACEOF
13104 if ac_fn_c_try_compile "$LINENO"; then :
13105 wine_cv_linux_joystick_22_api=yes
13106 else
13107 wine_cv_linux_joystick_22_api=no
13109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
13113 $as_echo "$wine_cv_linux_joystick_22_api" >&6; }
13114 if test "$wine_cv_linux_joystick_22_api" = "yes"
13115 then
13117 $as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
13123 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
13124 #ifdef HAVE_SYS_PARAM_H
13125 # include <sys/param.h>
13126 #endif
13127 #ifdef HAVE_SYS_MOUNT_H
13128 # include <sys/mount.h>
13129 #endif
13130 #ifdef HAVE_SYS_VFS_H
13131 # include <sys/vfs.h>
13132 #endif
13133 #ifdef HAVE_SYS_STATFS_H
13134 # include <sys/statfs.h>
13135 #endif
13137 if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
13139 cat >>confdefs.h <<_ACEOF
13140 #define HAVE_STRUCT_STATFS_F_BFREE 1
13141 _ACEOF
13145 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
13146 #ifdef HAVE_SYS_PARAM_H
13147 # include <sys/param.h>
13148 #endif
13149 #ifdef HAVE_SYS_MOUNT_H
13150 # include <sys/mount.h>
13151 #endif
13152 #ifdef HAVE_SYS_VFS_H
13153 # include <sys/vfs.h>
13154 #endif
13155 #ifdef HAVE_SYS_STATFS_H
13156 # include <sys/statfs.h>
13157 #endif
13159 if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
13161 cat >>confdefs.h <<_ACEOF
13162 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
13163 _ACEOF
13167 ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
13168 #ifdef HAVE_SYS_PARAM_H
13169 # include <sys/param.h>
13170 #endif
13171 #ifdef HAVE_SYS_MOUNT_H
13172 # include <sys/mount.h>
13173 #endif
13174 #ifdef HAVE_SYS_VFS_H
13175 # include <sys/vfs.h>
13176 #endif
13177 #ifdef HAVE_SYS_STATFS_H
13178 # include <sys/statfs.h>
13179 #endif
13181 if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
13183 cat >>confdefs.h <<_ACEOF
13184 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
13185 _ACEOF
13189 ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
13190 #ifdef HAVE_SYS_PARAM_H
13191 # include <sys/param.h>
13192 #endif
13193 #ifdef HAVE_SYS_MOUNT_H
13194 # include <sys/mount.h>
13195 #endif
13196 #ifdef HAVE_SYS_VFS_H
13197 # include <sys/vfs.h>
13198 #endif
13199 #ifdef HAVE_SYS_STATFS_H
13200 # include <sys/statfs.h>
13201 #endif
13203 if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
13205 cat >>confdefs.h <<_ACEOF
13206 #define HAVE_STRUCT_STATFS_F_FFREE 1
13207 _ACEOF
13211 ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
13212 #ifdef HAVE_SYS_PARAM_H
13213 # include <sys/param.h>
13214 #endif
13215 #ifdef HAVE_SYS_MOUNT_H
13216 # include <sys/mount.h>
13217 #endif
13218 #ifdef HAVE_SYS_VFS_H
13219 # include <sys/vfs.h>
13220 #endif
13221 #ifdef HAVE_SYS_STATFS_H
13222 # include <sys/statfs.h>
13223 #endif
13225 if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
13227 cat >>confdefs.h <<_ACEOF
13228 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
13229 _ACEOF
13233 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
13234 #ifdef HAVE_SYS_PARAM_H
13235 # include <sys/param.h>
13236 #endif
13237 #ifdef HAVE_SYS_MOUNT_H
13238 # include <sys/mount.h>
13239 #endif
13240 #ifdef HAVE_SYS_VFS_H
13241 # include <sys/vfs.h>
13242 #endif
13243 #ifdef HAVE_SYS_STATFS_H
13244 # include <sys/statfs.h>
13245 #endif
13247 if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
13249 cat >>confdefs.h <<_ACEOF
13250 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
13251 _ACEOF
13257 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
13258 #include <sys/statvfs.h>
13259 #endif
13261 if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
13263 cat >>confdefs.h <<_ACEOF
13264 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13265 _ACEOF
13271 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
13272 #ifdef HAVE_SYS_SOCKET_H
13273 # include <sys/socket.h>
13274 #endif
13275 #ifdef HAVE_SYS_UN_H
13276 # include <sys/un.h>
13277 #endif
13279 if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
13281 cat >>confdefs.h <<_ACEOF
13282 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
13283 _ACEOF
13287 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13288 #ifdef HAVE_SYS_SOCKET_H
13289 # include <sys/socket.h>
13290 #endif
13291 #ifdef HAVE_SYS_UN_H
13292 # include <sys/un.h>
13293 #endif
13295 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
13297 cat >>confdefs.h <<_ACEOF
13298 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13299 _ACEOF
13303 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
13304 #ifdef HAVE_SYS_SOCKET_H
13305 # include <sys/socket.h>
13306 #endif
13307 #ifdef HAVE_SYS_UN_H
13308 # include <sys/un.h>
13309 #endif
13311 if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
13313 cat >>confdefs.h <<_ACEOF
13314 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13315 _ACEOF
13321 ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
13322 #ifdef HAVE_SCSI_SG_H
13323 #include <scsi/sg.h>
13324 #endif
13326 if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
13328 cat >>confdefs.h <<_ACEOF
13329 #define HAVE_SCSIREQ_T_CMD 1
13330 _ACEOF
13334 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>
13335 #ifdef HAVE_SCSI_SG_H
13336 #include <scsi/sg.h>
13337 #endif
13339 if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
13341 cat >>confdefs.h <<_ACEOF
13342 #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13343 _ACEOF
13349 ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13351 if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
13353 cat >>confdefs.h <<_ACEOF
13354 #define HAVE_SIGINFO_T_SI_FD 1
13355 _ACEOF
13361 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
13362 #ifdef HAVE_SYS_MTIO_H
13363 #include <sys/mtio.h>
13364 #endif
13366 if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
13368 cat >>confdefs.h <<_ACEOF
13369 #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13370 _ACEOF
13374 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
13375 #ifdef HAVE_SYS_MTIO_H
13376 #include <sys/mtio.h>
13377 #endif
13379 if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
13381 cat >>confdefs.h <<_ACEOF
13382 #define HAVE_STRUCT_MTGET_MT_GSTAT 1
13383 _ACEOF
13387 ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
13388 #ifdef HAVE_SYS_MTIO_H
13389 #include <sys/mtio.h>
13390 #endif
13392 if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
13394 cat >>confdefs.h <<_ACEOF
13395 #define HAVE_STRUCT_MTGET_MT_BLKNO 1
13396 _ACEOF
13402 ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
13403 #include <getopt.h>
13404 #endif
13406 if test "x$ac_cv_member_struct_option_name" = x""yes; then :
13408 cat >>confdefs.h <<_ACEOF
13409 #define HAVE_STRUCT_OPTION_NAME 1
13410 _ACEOF
13416 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13417 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
13419 cat >>confdefs.h <<_ACEOF
13420 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13421 _ACEOF
13425 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13426 if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
13428 cat >>confdefs.h <<_ACEOF
13429 #define HAVE_STRUCT_STAT_ST_MTIM 1
13430 _ACEOF
13434 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13435 if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
13437 cat >>confdefs.h <<_ACEOF
13438 #define HAVE_STRUCT_STAT_ST_CTIM 1
13439 _ACEOF
13443 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13444 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
13446 cat >>confdefs.h <<_ACEOF
13447 #define HAVE_STRUCT_STAT_ST_ATIM 1
13448 _ACEOF
13454 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
13455 #include <sys/types.h>
13456 #endif
13457 #ifdef HAVE_NETINET_IN_H
13458 #include <netinet/in.h>
13459 #endif
13461 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
13463 cat >>confdefs.h <<_ACEOF
13464 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13465 _ACEOF
13471 ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
13472 #include <sys/types.h>
13473 #endif
13474 #ifdef HAVE_NETINET_IN_H
13475 # include <netinet/in.h>
13476 #endif
13477 #ifdef HAVE_ARPA_NAMESER_H
13478 # include <arpa/nameser.h>
13479 #endif
13481 if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
13483 cat >>confdefs.h <<_ACEOF
13484 #define HAVE_NS_MSG__MSG_PTR 1
13485 _ACEOF
13491 ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
13492 #include <sys/types.h>
13493 #endif
13494 #ifdef HAVE_ALIAS_H
13495 #include <alias.h>
13496 #endif
13497 #ifdef HAVE_SYS_SOCKET_H
13498 #include <sys/socket.h>
13499 #endif
13500 #ifdef HAVE_SYS_SOCKETVAR_H
13501 #include <sys/socketvar.h>
13502 #endif
13503 #ifdef HAVE_SYS_TIMEOUT_H
13504 #include <sys/timeout.h>
13505 #endif
13506 #ifdef HAVE_NETINET_IN_H
13507 #include <netinet/in.h>
13508 #endif
13509 #ifdef HAVE_NETINET_IN_SYSTM_H
13510 #include <netinet/in_systm.h>
13511 #endif
13512 #ifdef HAVE_NETINET_IP_H
13513 #include <netinet/ip.h>
13514 #endif
13515 #ifdef HAVE_NETINET_IP_VAR_H
13516 #include <netinet/ip_var.h>
13517 #endif
13518 #ifdef HAVE_NETINET_IP_ICMP_H
13519 #include <netinet/ip_icmp.h>
13520 #endif
13521 #ifdef HAVE_NETINET_ICMP_VAR
13522 #include <netinet/icmp_var.h>
13523 #endif
13525 if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
13527 cat >>confdefs.h <<_ACEOF
13528 #define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13529 _ACEOF
13535 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13536 #include <sys/types.h>
13537 #endif
13538 #ifdef HAVE_NET_IF_H
13539 # include <net/if.h>
13540 #endif
13542 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
13544 cat >>confdefs.h <<_ACEOF
13545 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13546 _ACEOF
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
13553 $as_echo_n "checking for timezone variable... " >&6; }
13554 if test "${ac_cv_have_timezone+set}" = set; then :
13555 $as_echo_n "(cached) " >&6
13556 else
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 #include <time.h>
13561 main ()
13563 timezone = 1
13565 return 0;
13567 _ACEOF
13568 if ac_fn_c_try_link "$LINENO"; then :
13569 ac_cv_have_timezone="yes"
13570 else
13571 ac_cv_have_timezone="no"
13573 rm -f core conftest.err conftest.$ac_objext \
13574 conftest$ac_exeext conftest.$ac_ext
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
13577 $as_echo "$ac_cv_have_timezone" >&6; }
13578 if test "$ac_cv_have_timezone" = "yes"
13579 then
13581 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
13585 $as_echo_n "checking for daylight variable... " >&6; }
13586 if test "${ac_cv_have_daylight+set}" = set; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13591 #include <time.h>
13593 main ()
13595 daylight = 1
13597 return 0;
13599 _ACEOF
13600 if ac_fn_c_try_link "$LINENO"; then :
13601 ac_cv_have_daylight="yes"
13602 else
13603 ac_cv_have_daylight="no"
13605 rm -f core conftest.err conftest.$ac_objext \
13606 conftest$ac_exeext conftest.$ac_ext
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
13609 $as_echo "$ac_cv_have_daylight" >&6; }
13610 if test "$ac_cv_have_daylight" = "yes"
13611 then
13613 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
13618 $as_echo_n "checking for isinf... " >&6; }
13619 if test "${ac_cv_have_isinf+set}" = set; then :
13620 $as_echo_n "(cached) " >&6
13621 else
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13624 #include <math.h>
13626 main ()
13628 float f = 0.0; int i=isinf(f)
13630 return 0;
13632 _ACEOF
13633 if ac_fn_c_try_link "$LINENO"; then :
13634 ac_cv_have_isinf="yes"
13635 else
13636 ac_cv_have_isinf="no"
13638 rm -f core conftest.err conftest.$ac_objext \
13639 conftest$ac_exeext conftest.$ac_ext
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
13642 $as_echo "$ac_cv_have_isinf" >&6; }
13643 if test "$ac_cv_have_isinf" = "yes"
13644 then
13646 $as_echo "#define HAVE_ISINF 1" >>confdefs.h
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
13651 $as_echo_n "checking for isnan... " >&6; }
13652 if test "${ac_cv_have_isnan+set}" = set; then :
13653 $as_echo_n "(cached) " >&6
13654 else
13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h. */
13657 #include <math.h>
13659 main ()
13661 float f = 0.0; int i=isnan(f)
13663 return 0;
13665 _ACEOF
13666 if ac_fn_c_try_link "$LINENO"; then :
13667 ac_cv_have_isnan="yes"
13668 else
13669 ac_cv_have_isnan="no"
13671 rm -f core conftest.err conftest.$ac_objext \
13672 conftest$ac_exeext conftest.$ac_ext
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
13675 $as_echo "$ac_cv_have_isnan" >&6; }
13676 if test "$ac_cv_have_isnan" = "yes"
13677 then
13679 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13684 case $host_cpu in
13685 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
13686 $as_echo_n "checking whether we need to define __i386__... " >&6; }
13687 if test "${ac_cv_cpp_def___i386__+set}" = set; then :
13688 $as_echo_n "(cached) " >&6
13689 else
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13692 #ifndef __i386__
13694 #endif
13695 _ACEOF
13696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13697 $EGREP "yes" >/dev/null 2>&1; then :
13698 ac_cv_cpp_def___i386__=yes
13699 else
13700 ac_cv_cpp_def___i386__=no
13702 rm -f conftest*
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
13706 $as_echo "$ac_cv_cpp_def___i386__" >&6; }
13707 if test $ac_cv_cpp_def___i386__ = yes; then :
13708 CFLAGS="$CFLAGS -D__i386__"
13709 LINTFLAGS="$LINTFLAGS -D__i386__"
13710 fi ;;
13711 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
13712 $as_echo_n "checking whether we need to define __x86_64__... " >&6; }
13713 if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
13715 else
13716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13717 /* end confdefs.h. */
13718 #ifndef __x86_64__
13720 #endif
13721 _ACEOF
13722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13723 $EGREP "yes" >/dev/null 2>&1; then :
13724 ac_cv_cpp_def___x86_64__=yes
13725 else
13726 ac_cv_cpp_def___x86_64__=no
13728 rm -f conftest*
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
13732 $as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
13733 if test $ac_cv_cpp_def___x86_64__ = yes; then :
13734 CFLAGS="$CFLAGS -D__x86_64__"
13735 LINTFLAGS="$LINTFLAGS -D__x86_64__"
13736 fi ;;
13737 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
13738 $as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
13739 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13744 #ifndef __ALPHA__
13746 #endif
13747 _ACEOF
13748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13749 $EGREP "yes" >/dev/null 2>&1; then :
13750 ac_cv_cpp_def___ALPHA__=yes
13751 else
13752 ac_cv_cpp_def___ALPHA__=no
13754 rm -f conftest*
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
13758 $as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
13759 if test $ac_cv_cpp_def___ALPHA__ = yes; then :
13760 CFLAGS="$CFLAGS -D__ALPHA__"
13761 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
13762 fi ;;
13763 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
13764 $as_echo_n "checking whether we need to define __sparc__... " >&6; }
13765 if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
13766 $as_echo_n "(cached) " >&6
13767 else
13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769 /* end confdefs.h. */
13770 #ifndef __sparc__
13772 #endif
13773 _ACEOF
13774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13775 $EGREP "yes" >/dev/null 2>&1; then :
13776 ac_cv_cpp_def___sparc__=yes
13777 else
13778 ac_cv_cpp_def___sparc__=no
13780 rm -f conftest*
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
13784 $as_echo "$ac_cv_cpp_def___sparc__" >&6; }
13785 if test $ac_cv_cpp_def___sparc__ = yes; then :
13786 CFLAGS="$CFLAGS -D__sparc__"
13787 LINTFLAGS="$LINTFLAGS -D__sparc__"
13788 fi ;;
13789 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
13790 $as_echo_n "checking whether we need to define __powerpc__... " >&6; }
13791 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
13792 $as_echo_n "(cached) " >&6
13793 else
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13796 #ifndef __powerpc__
13798 #endif
13799 _ACEOF
13800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13801 $EGREP "yes" >/dev/null 2>&1; then :
13802 ac_cv_cpp_def___powerpc__=yes
13803 else
13804 ac_cv_cpp_def___powerpc__=no
13806 rm -f conftest*
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
13810 $as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
13811 if test $ac_cv_cpp_def___powerpc__ = yes; then :
13812 CFLAGS="$CFLAGS -D__powerpc__"
13813 LINTFLAGS="$LINTFLAGS -D__powerpc__"
13814 fi ;;
13815 esac
13817 case $host_vendor in
13818 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
13819 $as_echo_n "checking whether we need to define __sun__... " >&6; }
13820 if test "${ac_cv_cpp_def___sun__+set}" = set; then :
13821 $as_echo_n "(cached) " >&6
13822 else
13823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13824 /* end confdefs.h. */
13825 #ifndef __sun__
13827 #endif
13828 _ACEOF
13829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13830 $EGREP "yes" >/dev/null 2>&1; then :
13831 ac_cv_cpp_def___sun__=yes
13832 else
13833 ac_cv_cpp_def___sun__=no
13835 rm -f conftest*
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
13839 $as_echo "$ac_cv_cpp_def___sun__" >&6; }
13840 if test $ac_cv_cpp_def___sun__ = yes; then :
13841 CFLAGS="$CFLAGS -D__sun__"
13842 LINTFLAGS="$LINTFLAGS -D__sun__"
13843 fi ;;
13844 esac
13849 ac_config_commands="$ac_config_commands include/stamp-h"
13852 ALL_MAKEFILE_DEPENDS="# Makefile dependencies
13853 Makefile: Makefile.in Make.rules config.status"
13855 ALL_WINETEST_DEPENDS="# Test binaries"
13858 ALL_MAKERULES=""
13860 ALL_SYMLINKS=""
13862 ALL_DIRS=""
13864 ALL_TOP_DIRS=""
13866 ALL_DLL_DIRS=""
13868 ALL_TOOL_DIRS=""
13870 ALL_STATICLIB_DIRS=""
13872 ALL_TEST_BINARIES=""
13874 ALL_PROGRAM_BIN_INSTALL_DIRS=""
13877 wine_fn_append_file ()
13879 as_fn_append $1 " \\$as_nl $2"
13882 wine_fn_append_rule ()
13884 as_fn_append $1 "$as_nl$2"
13887 wine_fn_config_makefile ()
13889 ac_dir=$1
13890 ac_enable=$2
13891 wine_fn_append_file ALL_DIRS $ac_dir
13892 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13893 "$ac_dir/__clean__ $ac_dir/__install__ $ac_dir/__install-dev__ $ac_dir/__install-lib__ $ac_dir/__uninstall__ $ac_dir: $ac_dir/Makefile
13894 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status Make.rules \$(MAKEDEP)
13895 @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
13896 eval as_val=\$$ac_enable
13897 if test "x$as_val" = x""no; then :
13899 else
13900 case $ac_dir in
13901 */*) ;;
13902 *) wine_fn_append_file ALL_TOP_DIRS $ac_dir ;;
13903 esac
13907 wine_fn_config_lib ()
13909 ac_name=$1
13910 ac_dir=dlls/$ac_name
13911 wine_fn_append_file ALL_DIRS $ac_dir
13912 wine_fn_append_file ALL_STATICLIB_DIRS $ac_dir
13913 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13914 "$ac_dir/__install__ $ac_dir/__install-dev__ __builddeps__: $ac_dir
13915 __buildcrossdeps__: $ac_dir/lib$ac_name.cross.a
13916 $ac_dir $ac_dir/lib$ac_name.cross.a: tools/widl tools/winebuild tools/winegcc include
13917 $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile dummy
13918 @cd $ac_dir && \$(MAKE) lib$ac_name.cross.a
13919 $ac_dir/__clean__ $ac_dir/__install-lib__ $ac_dir/__uninstall__ $ac_dir: $ac_dir/Makefile
13920 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status dlls/Makeimplib.rules \$(MAKEDEP)
13921 @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
13924 wine_fn_config_dll ()
13926 ac_dir=$1
13927 ac_enable=$2
13928 ac_implib=$3
13929 ac_implibsrc=$4
13930 ac_file="dlls/$ac_dir/lib$ac_implib"
13931 ac_deps="tools/widl tools/winebuild tools/winegcc include"
13933 wine_fn_append_file ALL_DIRS dlls/$ac_dir
13934 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13935 "dlls/$ac_dir dlls/$ac_dir/__install__ dlls/$ac_dir/__install-lib__ dlls/$ac_dir/__install-dev__: __builddeps__ dlls/$ac_dir/Makefile
13936 dlls/$ac_dir/__clean__ dlls/$ac_dir/__uninstall__ dlls/$ac_dir: dlls/$ac_dir/Makefile
13937 dlls/$ac_dir/Makefile dlls/$ac_dir/__depend__: dlls/$ac_dir/Makefile.in config.status dlls/Makedll.rules \$(MAKEDEP)
13938 @./config.status --file dlls/$ac_dir/Makefile && cd dlls/$ac_dir && \$(MAKE) depend"
13939 eval as_val=\$$ac_enable
13940 if test "x$as_val" = x""no; then :
13941 test "$ac_enable" != enable_win16 || return 0
13942 else
13943 wine_fn_append_file ALL_DLL_DIRS dlls/$ac_dir
13946 if test -n "$ac_implibsrc"
13947 then
13948 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13949 "__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
13950 __buildcrossdeps__: $ac_file.cross.a
13951 $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
13952 $ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile
13953 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
13954 $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/Makefile dummy
13955 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`"
13956 elif test -n "$ac_implib"
13957 then
13958 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13959 "__builddeps__: $ac_file.$IMPLIBEXT
13960 __buildcrossdeps__: $ac_file.cross.a
13961 $ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile $ac_deps
13962 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`"
13964 if test "$ac_dir" != "$ac_implib"
13965 then
13966 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13967 "__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
13968 __buildcrossdeps__: dlls/lib$ac_implib.cross.a
13969 dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
13970 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.$IMPLIBEXT \$@
13971 dlls/lib$ac_implib.cross.a: $ac_file.cross.a
13972 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.cross.a \$@
13973 clean::
13974 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
13979 wine_fn_config_program ()
13981 ac_dir=$1
13982 ac_enable=$2
13983 ac_install=$3
13984 wine_fn_append_file ALL_DIRS programs/$ac_dir
13985 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13986 "programs/$ac_dir/__clean__: programs/$ac_dir/Makefile
13987 programs/$ac_dir/Makefile programs/$ac_dir/__depend__: programs/$ac_dir/Makefile.in config.status programs/Makeprog.rules \$(MAKEDEP)
13988 @./config.status --file programs/$ac_dir/Makefile && cd programs/$ac_dir && \$(MAKE) depend"
13990 eval as_val=\$$ac_enable
13991 if test "x$as_val" = x""no; then :
13993 else
13994 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
13995 "all: programs/$ac_dir
13996 programs/$ac_dir: programs/$ac_dir/Makefile __builddeps__"
13997 if test -n "$ac_install"
13998 then
13999 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14000 "install install-lib:: programs/$ac_dir/Makefile __builddeps__
14001 @cd programs/$ac_dir && \$(MAKE) install
14002 uninstall:: programs/$ac_dir/Makefile
14003 @cd programs/$ac_dir && \$(MAKE) uninstall"
14004 test "$ac_install" != installbin || wine_fn_append_file ALL_PROGRAM_BIN_INSTALL_DIRS programs/$ac_dir
14009 wine_fn_config_test ()
14011 ac_dir=$1
14012 ac_name=$2
14013 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14014 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14015 "$ac_name.exe: \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT
14016 cp \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14017 $ac_name.rc:
14018 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14019 $ac_name.res: $ac_name.rc $ac_name.exe"
14020 wine_fn_append_file ALL_DIRS $ac_dir
14021 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14022 "$ac_dir/__clean__: $ac_dir/Makefile
14023 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status Maketest.rules \$(MAKEDEP)
14024 @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
14026 if test "x$enable_tests" = x""no; then :
14028 else
14029 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14030 "all programs/winetest: $ac_dir
14031 $ac_dir: $ac_dir/Makefile __builddeps__
14032 crosstest:: $ac_dir/Makefile __buildcrossdeps__
14033 @cd $ac_dir && \$(MAKE) crosstest
14034 test::
14035 @cd $ac_dir && \$(MAKE) test
14036 testclean::
14037 \$(RM) $ac_dir/*.ok"
14041 wine_fn_config_tool ()
14043 ac_dir=$1
14044 ac_deps="Make.rules"
14045 if test "$ac_dir" != tools
14046 then
14047 ac_deps="$ac_deps \$(MAKEDEP)"
14049 wine_fn_append_file ALL_DIRS $ac_dir
14050 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14051 "$ac_dir/__clean__ $ac_dir/__install__ $ac_dir/__install-dev__ $ac_dir/__install-lib__ $ac_dir/__uninstall__ $ac_dir: $ac_dir/Makefile
14052 $ac_dir/Makefile $ac_dir/__depend__: $ac_dir/Makefile.in config.status $ac_deps
14053 @./config.status --file $ac_dir/Makefile && cd $ac_dir && \$(MAKE) depend"
14054 if test "x$enable_tools" = x""no; then :
14056 else
14057 wine_fn_append_file ALL_TOOL_DIRS $ac_dir
14060 ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
14061 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "dlls/wineps.drv/generic.ppd"
14062 ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
14063 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/marlett.ttf"
14064 ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
14065 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/symbol.ttf"
14066 ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
14067 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/tahoma.ttf"
14068 ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
14069 test "$srcdir" = "." || wine_fn_append_file ALL_SYMLINKS "fonts/tahomabd.ttf"
14070 ac_config_links="$ac_config_links wine:tools/winewrapper"
14071 wine_fn_append_file ALL_SYMLINKS "wine"
14073 ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
14075 ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
14077 ac_config_commands="$ac_config_commands dlls/kernel32/nls"
14079 ac_config_commands="$ac_config_commands dlls/user32/resources"
14081 ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
14083 ac_config_commands="$ac_config_commands include/wine"
14086 wine_fn_append_file ALL_MAKERULES "Make.rules"
14087 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "Make.rules: Make.rules.in config.status"
14088 MAKE_RULES=Make.rules
14089 ac_config_files="$ac_config_files Make.rules"
14091 wine_fn_append_file ALL_MAKERULES "Maketest.rules"
14092 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "Maketest.rules: Maketest.rules.in Make.rules config.status"
14093 MAKE_TEST_RULES=Maketest.rules
14094 ac_config_files="$ac_config_files Maketest.rules"
14096 wine_fn_append_file ALL_MAKERULES "dlls/Makedll.rules"
14097 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "dlls/Makedll.rules: dlls/Makedll.rules.in Make.rules config.status"
14098 MAKE_DLL_RULES=dlls/Makedll.rules
14099 ac_config_files="$ac_config_files dlls/Makedll.rules"
14101 wine_fn_append_file ALL_MAKERULES "dlls/Makeimplib.rules"
14102 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "dlls/Makeimplib.rules: dlls/Makeimplib.rules.in Make.rules config.status"
14103 MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
14104 ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14106 wine_fn_append_file ALL_MAKERULES "programs/Makeprog.rules"
14107 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "programs/Makeprog.rules: programs/Makeprog.rules.in Make.rules config.status"
14108 MAKE_PROG_RULES=programs/Makeprog.rules
14109 ac_config_files="$ac_config_files programs/Makeprog.rules"
14112 wine_fn_config_dll acledit enable_acledit
14113 wine_fn_config_dll aclui enable_aclui aclui
14114 wine_fn_config_dll activeds enable_activeds activeds
14115 wine_fn_config_dll actxprxy enable_actxprxy
14116 wine_fn_config_lib adsiid
14117 wine_fn_config_dll advapi32 enable_advapi32 advapi32
14118 wine_fn_config_test dlls/advapi32/tests advapi32_test
14119 wine_fn_config_dll advpack enable_advpack advpack
14120 wine_fn_config_test dlls/advpack/tests advpack_test
14121 wine_fn_config_dll amstream enable_amstream
14122 wine_fn_config_test dlls/amstream/tests amstream_test
14123 wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14124 wine_fn_config_dll atl enable_atl atl
14125 wine_fn_config_dll authz enable_authz
14126 wine_fn_config_dll avicap32 enable_avicap32 avicap32
14127 wine_fn_config_dll avifil32 enable_avifil32 avifil32
14128 wine_fn_config_test dlls/avifil32/tests avifil32_test
14129 wine_fn_config_dll avifile.dll16 enable_win16
14130 wine_fn_config_dll avrt enable_avrt avrt
14131 wine_fn_config_dll bcrypt enable_bcrypt
14132 wine_fn_config_dll browseui enable_browseui
14133 wine_fn_config_test dlls/browseui/tests browseui_test
14134 wine_fn_config_dll cabinet enable_cabinet cabinet
14135 wine_fn_config_test dlls/cabinet/tests cabinet_test
14136 wine_fn_config_dll capi2032 enable_capi2032 capi2032
14137 wine_fn_config_dll cards enable_cards cards
14138 wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14139 wine_fn_config_dll clusapi enable_clusapi clusapi
14140 wine_fn_config_dll comcat enable_comcat
14141 wine_fn_config_test dlls/comcat/tests comcat_test
14142 wine_fn_config_dll comctl32 enable_comctl32 comctl32
14143 wine_fn_config_test dlls/comctl32/tests comctl32_test
14144 wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
14145 wine_fn_config_test dlls/comdlg32/tests comdlg32_test
14146 wine_fn_config_dll comm.drv16 enable_win16
14147 wine_fn_config_dll commdlg.dll16 enable_win16
14148 wine_fn_config_dll compobj.dll16 enable_win16
14149 wine_fn_config_dll compstui enable_compstui compstui
14150 wine_fn_config_dll credui enable_credui credui
14151 wine_fn_config_test dlls/credui/tests credui_test
14152 wine_fn_config_dll crtdll enable_crtdll crtdll
14153 wine_fn_config_dll crypt32 enable_crypt32 crypt32
14154 wine_fn_config_test dlls/crypt32/tests crypt32_test
14155 wine_fn_config_dll cryptdlg enable_cryptdlg
14156 wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14157 wine_fn_config_dll cryptnet enable_cryptnet cryptnet
14158 wine_fn_config_test dlls/cryptnet/tests cryptnet_test
14159 wine_fn_config_dll cryptui enable_cryptui cryptui
14160 wine_fn_config_test dlls/cryptui/tests cryptui_test
14161 wine_fn_config_dll ctapi32 enable_ctapi32
14162 wine_fn_config_dll ctl3d.dll16 enable_win16
14163 wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14164 wine_fn_config_dll ctl3dv2.dll16 enable_win16
14165 wine_fn_config_dll d3d10 enable_d3d10 d3d10
14166 wine_fn_config_test dlls/d3d10/tests d3d10_test
14167 wine_fn_config_dll d3d10core enable_d3d10core d3d10core
14168 wine_fn_config_test dlls/d3d10core/tests d3d10core_test
14169 wine_fn_config_dll d3d8 enable_d3d8 d3d8
14170 wine_fn_config_test dlls/d3d8/tests d3d8_test
14171 wine_fn_config_dll d3d9 enable_d3d9 d3d9
14172 wine_fn_config_test dlls/d3d9/tests d3d9_test
14173 wine_fn_config_dll d3dim enable_d3dim d3dim
14174 wine_fn_config_dll d3drm enable_d3drm d3drm
14175 wine_fn_config_test dlls/d3drm/tests d3drm_test
14176 wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14177 wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14178 wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14179 wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14180 wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14181 wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14182 wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14183 wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14184 wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14185 wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14186 wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14187 wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14188 wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
14189 wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
14190 wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14191 wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14192 wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14193 wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14194 wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14195 wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14196 wine_fn_config_dll d3dxof enable_d3dxof d3dxof
14197 wine_fn_config_test dlls/d3dxof/tests d3dxof_test
14198 wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14199 wine_fn_config_dll dciman32 enable_dciman32 dciman32
14200 wine_fn_config_dll ddeml.dll16 enable_win16
14201 wine_fn_config_dll ddraw enable_ddraw ddraw
14202 wine_fn_config_test dlls/ddraw/tests ddraw_test
14203 wine_fn_config_dll ddrawex enable_ddrawex
14204 wine_fn_config_test dlls/ddrawex/tests ddrawex_test
14205 wine_fn_config_dll devenum enable_devenum
14206 wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
14207 wine_fn_config_test dlls/dinput/tests dinput_test
14208 wine_fn_config_dll dinput8 enable_dinput8 dinput8
14209 wine_fn_config_dll dispdib.dll16 enable_win16
14210 wine_fn_config_dll dispex enable_dispex
14211 wine_fn_config_test dlls/dispex/tests dispex_test
14212 wine_fn_config_dll display.drv16 enable_win16
14213 wine_fn_config_dll dmband enable_dmband
14214 wine_fn_config_dll dmcompos enable_dmcompos
14215 wine_fn_config_dll dmime enable_dmime
14216 wine_fn_config_dll dmloader enable_dmloader
14217 wine_fn_config_test dlls/dmloader/tests dmloader_test
14218 wine_fn_config_dll dmscript enable_dmscript
14219 wine_fn_config_dll dmstyle enable_dmstyle
14220 wine_fn_config_dll dmsynth enable_dmsynth
14221 wine_fn_config_dll dmusic enable_dmusic
14222 wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14223 wine_fn_config_dll dnsapi enable_dnsapi dnsapi
14224 wine_fn_config_test dlls/dnsapi/tests dnsapi_test
14225 wine_fn_config_dll dplay enable_dplay dplay
14226 wine_fn_config_dll dplayx enable_dplayx dplayx
14227 wine_fn_config_test dlls/dplayx/tests dplayx_test
14228 wine_fn_config_dll dpnaddr enable_dpnaddr
14229 wine_fn_config_dll dpnet enable_dpnet dpnet
14230 wine_fn_config_dll dpnhpast enable_dpnhpast
14231 wine_fn_config_dll dpnlobby enable_dpnlobby
14232 wine_fn_config_dll dpwsockx enable_dpwsockx
14233 wine_fn_config_dll drmclien enable_drmclien
14234 wine_fn_config_dll dsound enable_dsound dsound
14235 wine_fn_config_test dlls/dsound/tests dsound_test
14236 wine_fn_config_dll dssenh enable_dssenh
14237 wine_fn_config_dll dswave enable_dswave
14238 wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14239 wine_fn_config_dll dxdiagn enable_dxdiagn
14240 wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
14241 wine_fn_config_lib dxerr8
14242 wine_fn_config_lib dxerr9
14243 wine_fn_config_dll dxgi enable_dxgi dxgi
14244 wine_fn_config_test dlls/dxgi/tests dxgi_test
14245 wine_fn_config_lib dxguid
14246 wine_fn_config_dll faultrep enable_faultrep
14247 wine_fn_config_dll fltlib enable_fltlib
14248 wine_fn_config_dll fusion enable_fusion
14249 wine_fn_config_test dlls/fusion/tests fusion_test
14250 wine_fn_config_dll fwpuclnt enable_fwpuclnt
14251 wine_fn_config_dll gdi.exe16 enable_win16
14252 wine_fn_config_dll gdi32 enable_gdi32 gdi32
14253 wine_fn_config_test dlls/gdi32/tests gdi32_test
14254 wine_fn_config_dll gdiplus enable_gdiplus gdiplus
14255 wine_fn_config_test dlls/gdiplus/tests gdiplus_test
14256 wine_fn_config_dll glu32 enable_glu32 glu32
14257 wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14258 wine_fn_config_dll gpkcsp enable_gpkcsp
14259 wine_fn_config_dll hal enable_hal
14260 wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14261 wine_fn_config_dll hid enable_hid hid
14262 wine_fn_config_dll hlink enable_hlink hlink
14263 wine_fn_config_test dlls/hlink/tests hlink_test
14264 wine_fn_config_dll hnetcfg enable_hnetcfg
14265 wine_fn_config_dll httpapi enable_httpapi
14266 wine_fn_config_dll iccvid enable_iccvid
14267 wine_fn_config_dll icmp enable_icmp
14268 wine_fn_config_dll ifsmgr.vxd enable_win16
14269 wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14270 wine_fn_config_dll imagehlp enable_imagehlp imagehlp
14271 wine_fn_config_test dlls/imagehlp/tests imagehlp_test
14272 wine_fn_config_dll imm.dll16 enable_win16
14273 wine_fn_config_dll imm32 enable_imm32 imm32
14274 wine_fn_config_test dlls/imm32/tests imm32_test
14275 wine_fn_config_dll inetcomm enable_inetcomm inetcomm
14276 wine_fn_config_test dlls/inetcomm/tests inetcomm_test
14277 wine_fn_config_dll inetmib1 enable_inetmib1
14278 wine_fn_config_test dlls/inetmib1/tests inetmib1_test
14279 wine_fn_config_dll infosoft enable_infosoft
14280 wine_fn_config_test dlls/infosoft/tests infosoft_test
14281 wine_fn_config_dll initpki enable_initpki
14282 wine_fn_config_dll inkobj enable_inkobj
14283 wine_fn_config_dll inseng enable_inseng
14284 wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
14285 wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
14286 wine_fn_config_dll itircl enable_itircl
14287 wine_fn_config_dll itss enable_itss
14288 wine_fn_config_test dlls/itss/tests itss_test
14289 wine_fn_config_dll jscript enable_jscript
14290 wine_fn_config_test dlls/jscript/tests jscript_test
14291 wine_fn_config_dll kernel32 enable_kernel32 kernel32
14292 wine_fn_config_test dlls/kernel32/tests kernel32_test
14293 wine_fn_config_dll keyboard.drv16 enable_win16
14294 wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14295 wine_fn_config_dll loadperf enable_loadperf loadperf
14296 wine_fn_config_dll localspl enable_localspl
14297 wine_fn_config_test dlls/localspl/tests localspl_test
14298 wine_fn_config_dll localui enable_localui
14299 wine_fn_config_test dlls/localui/tests localui_test
14300 wine_fn_config_dll lz32 enable_lz32 lz32
14301 wine_fn_config_test dlls/lz32/tests lz32_test
14302 wine_fn_config_dll lzexpand.dll16 enable_win16
14303 wine_fn_config_dll mapi32 enable_mapi32 mapi32
14304 wine_fn_config_test dlls/mapi32/tests mapi32_test
14305 wine_fn_config_dll mapistub enable_mapistub
14306 wine_fn_config_dll mciavi32 enable_mciavi32
14307 wine_fn_config_dll mcicda enable_mcicda
14308 wine_fn_config_dll mciqtz32 enable_mciqtz32
14309 wine_fn_config_dll mciseq enable_mciseq
14310 wine_fn_config_dll mciwave enable_mciwave
14311 wine_fn_config_dll midimap enable_midimap
14312 wine_fn_config_dll mlang enable_mlang mlang
14313 wine_fn_config_test dlls/mlang/tests mlang_test
14314 wine_fn_config_dll mmdevapi enable_mmdevapi
14315 wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
14316 wine_fn_config_dll mmdevldr.vxd enable_win16
14317 wine_fn_config_dll mmsystem.dll16 enable_win16
14318 wine_fn_config_dll monodebg.vxd enable_win16
14319 wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14320 wine_fn_config_dll mouse.drv16 enable_win16
14321 wine_fn_config_dll mpr enable_mpr mpr
14322 wine_fn_config_dll mprapi enable_mprapi mprapi
14323 wine_fn_config_dll msacm.dll16 enable_win16
14324 wine_fn_config_dll msacm32.drv enable_msacm32_drv
14325 wine_fn_config_dll msacm32 enable_msacm32 msacm32
14326 wine_fn_config_test dlls/msacm32/tests msacm32_test
14327 wine_fn_config_dll msadp32.acm enable_msadp32_acm
14328 wine_fn_config_dll mscat32 enable_mscat32
14329 wine_fn_config_dll mscms enable_mscms mscms
14330 wine_fn_config_test dlls/mscms/tests mscms_test
14331 wine_fn_config_dll mscoree enable_mscoree
14332 wine_fn_config_dll msctf enable_msctf
14333 wine_fn_config_test dlls/msctf/tests msctf_test
14334 wine_fn_config_dll msdaps enable_msdaps
14335 wine_fn_config_dll msdmo enable_msdmo msdmo
14336 wine_fn_config_dll msftedit enable_msftedit
14337 wine_fn_config_dll msg711.acm enable_msg711_acm
14338 wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14339 wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14340 wine_fn_config_dll mshtml enable_mshtml mshtml
14341 wine_fn_config_test dlls/mshtml/tests mshtml_test
14342 wine_fn_config_dll msi enable_msi msi
14343 wine_fn_config_test dlls/msi/tests msi_test
14344 wine_fn_config_dll msimg32 enable_msimg32 msimg32
14345 wine_fn_config_dll msimtf enable_msimtf
14346 wine_fn_config_dll msisip enable_msisip
14347 wine_fn_config_dll msisys.ocx enable_msisys_ocx
14348 wine_fn_config_dll msnet32 enable_msnet32
14349 wine_fn_config_dll msrle32 enable_msrle32
14350 wine_fn_config_dll mssign32 enable_mssign32
14351 wine_fn_config_dll mssip32 enable_mssip32
14352 wine_fn_config_dll mstask enable_mstask
14353 wine_fn_config_test dlls/mstask/tests mstask_test
14354 wine_fn_config_dll msvcirt enable_msvcirt
14355 wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
14356 wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
14357 wine_fn_config_dll msvcr80 enable_msvcr80 msvcr80
14358 wine_fn_config_dll msvcr90 enable_msvcr90 msvcr90
14359 wine_fn_config_test dlls/msvcr90/tests msvcr90_test
14360 wine_fn_config_dll msvcrt enable_msvcrt msvcrt
14361 wine_fn_config_test dlls/msvcrt/tests msvcrt_test
14362 wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
14363 wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
14364 wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
14365 wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
14366 wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
14367 wine_fn_config_test dlls/msvfw32/tests msvfw32_test
14368 wine_fn_config_dll msvidc32 enable_msvidc32
14369 wine_fn_config_dll msvideo.dll16 enable_win16
14370 wine_fn_config_dll mswsock enable_mswsock mswsock
14371 wine_fn_config_dll msxml3 enable_msxml3
14372 wine_fn_config_test dlls/msxml3/tests msxml3_test
14373 wine_fn_config_dll msxml4 enable_msxml4
14374 wine_fn_config_dll nddeapi enable_nddeapi nddeapi
14375 wine_fn_config_dll netapi32 enable_netapi32 netapi32
14376 wine_fn_config_test dlls/netapi32/tests netapi32_test
14377 wine_fn_config_dll newdev enable_newdev newdev
14378 wine_fn_config_dll ntdll enable_ntdll ntdll
14379 wine_fn_config_test dlls/ntdll/tests ntdll_test
14380 wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
14381 wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
14382 wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
14383 wine_fn_config_dll ntprint enable_ntprint
14384 wine_fn_config_test dlls/ntprint/tests ntprint_test
14385 wine_fn_config_dll objsel enable_objsel
14386 wine_fn_config_dll odbc32 enable_odbc32 odbc32
14387 wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
14388 wine_fn_config_test dlls/odbccp32/tests odbccp32_test
14389 wine_fn_config_dll ole2.dll16 enable_win16
14390 wine_fn_config_dll ole2conv.dll16 enable_win16
14391 wine_fn_config_dll ole2disp.dll16 enable_win16
14392 wine_fn_config_dll ole2nls.dll16 enable_win16
14393 wine_fn_config_dll ole2prox.dll16 enable_win16
14394 wine_fn_config_dll ole2thk.dll16 enable_win16
14395 wine_fn_config_dll ole32 enable_ole32 ole32
14396 wine_fn_config_test dlls/ole32/tests ole32_test
14397 wine_fn_config_dll oleacc enable_oleacc oleacc
14398 wine_fn_config_test dlls/oleacc/tests oleacc_test
14399 wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
14400 wine_fn_config_test dlls/oleaut32/tests oleaut32_test
14401 wine_fn_config_dll olecli.dll16 enable_win16
14402 wine_fn_config_dll olecli32 enable_olecli32 olecli32
14403 wine_fn_config_dll oledb32 enable_oledb32
14404 wine_fn_config_test dlls/oledb32/tests oledb32_test
14405 wine_fn_config_dll oledlg enable_oledlg oledlg
14406 wine_fn_config_dll olepro32 enable_olepro32 olepro32
14407 wine_fn_config_dll olesvr.dll16 enable_win16
14408 wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
14409 wine_fn_config_dll olethk32 enable_olethk32
14410 wine_fn_config_dll openal32 enable_openal32
14411 wine_fn_config_dll opengl32 enable_opengl32 opengl32
14412 wine_fn_config_test dlls/opengl32/tests opengl32_test
14413 wine_fn_config_dll pdh enable_pdh pdh
14414 wine_fn_config_test dlls/pdh/tests pdh_test
14415 wine_fn_config_dll pidgen enable_pidgen
14416 wine_fn_config_dll powrprof enable_powrprof powrprof
14417 wine_fn_config_dll printui enable_printui
14418 wine_fn_config_dll propsys enable_propsys
14419 wine_fn_config_dll psapi enable_psapi psapi
14420 wine_fn_config_test dlls/psapi/tests psapi_test
14421 wine_fn_config_dll pstorec enable_pstorec
14422 wine_fn_config_dll qcap enable_qcap
14423 wine_fn_config_dll qedit enable_qedit
14424 wine_fn_config_test dlls/qedit/tests qedit_test
14425 wine_fn_config_dll qmgr enable_qmgr
14426 wine_fn_config_test dlls/qmgr/tests qmgr_test
14427 wine_fn_config_dll qmgrprxy enable_qmgrprxy
14428 wine_fn_config_dll quartz enable_quartz quartz
14429 wine_fn_config_test dlls/quartz/tests quartz_test
14430 wine_fn_config_dll query enable_query
14431 wine_fn_config_dll rasapi16.dll16 enable_win16
14432 wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
14433 wine_fn_config_test dlls/rasapi32/tests rasapi32_test
14434 wine_fn_config_dll rasdlg enable_rasdlg rasdlg
14435 wine_fn_config_dll resutils enable_resutils resutils
14436 wine_fn_config_dll riched20 enable_riched20 riched20
14437 wine_fn_config_test dlls/riched20/tests riched20_test
14438 wine_fn_config_dll riched32 enable_riched32
14439 wine_fn_config_test dlls/riched32/tests riched32_test
14440 wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
14441 wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
14442 wine_fn_config_dll rsabase enable_rsabase
14443 wine_fn_config_dll rsaenh enable_rsaenh rsaenh
14444 wine_fn_config_test dlls/rsaenh/tests rsaenh_test
14445 wine_fn_config_dll rtutils enable_rtutils rtutils
14446 wine_fn_config_dll sane.ds enable_sane_ds
14447 wine_fn_config_dll sccbase enable_sccbase
14448 wine_fn_config_dll schannel enable_schannel
14449 wine_fn_config_test dlls/schannel/tests schannel_test
14450 wine_fn_config_dll secur32 enable_secur32 secur32
14451 wine_fn_config_test dlls/secur32/tests secur32_test
14452 wine_fn_config_dll security enable_security
14453 wine_fn_config_dll sensapi enable_sensapi sensapi
14454 wine_fn_config_dll serialui enable_serialui serialui
14455 wine_fn_config_test dlls/serialui/tests serialui_test
14456 wine_fn_config_dll setupapi enable_setupapi setupapi
14457 wine_fn_config_test dlls/setupapi/tests setupapi_test
14458 wine_fn_config_dll setupx.dll16 enable_win16
14459 wine_fn_config_dll sfc enable_sfc sfc
14460 wine_fn_config_dll sfc_os enable_sfc_os sfc_os
14461 wine_fn_config_dll shdoclc enable_shdoclc
14462 wine_fn_config_dll shdocvw enable_shdocvw shdocvw
14463 wine_fn_config_test dlls/shdocvw/tests shdocvw_test
14464 wine_fn_config_dll shell.dll16 enable_win16
14465 wine_fn_config_dll shell32 enable_shell32 shell32
14466 wine_fn_config_test dlls/shell32/tests shell32_test
14467 wine_fn_config_dll shfolder enable_shfolder shfolder
14468 wine_fn_config_dll shlwapi enable_shlwapi shlwapi
14469 wine_fn_config_test dlls/shlwapi/tests shlwapi_test
14470 wine_fn_config_dll slbcsp enable_slbcsp
14471 wine_fn_config_dll slc enable_slc slc
14472 wine_fn_config_dll snmpapi enable_snmpapi snmpapi
14473 wine_fn_config_test dlls/snmpapi/tests snmpapi_test
14474 wine_fn_config_dll softpub enable_softpub
14475 wine_fn_config_dll sound.drv16 enable_win16
14476 wine_fn_config_dll spoolss enable_spoolss spoolss
14477 wine_fn_config_test dlls/spoolss/tests spoolss_test
14478 wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
14479 wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
14480 wine_fn_config_dll sti enable_sti sti
14481 wine_fn_config_test dlls/sti/tests sti_test
14482 wine_fn_config_dll storage.dll16 enable_win16
14483 wine_fn_config_dll stress.dll16 enable_win16
14484 wine_fn_config_lib strmiids
14485 wine_fn_config_dll svrapi enable_svrapi
14486 wine_fn_config_dll sxs enable_sxs
14487 wine_fn_config_dll system.drv16 enable_win16
14488 wine_fn_config_dll t2embed enable_t2embed
14489 wine_fn_config_dll tapi32 enable_tapi32 tapi32
14490 wine_fn_config_dll toolhelp.dll16 enable_win16
14491 wine_fn_config_dll traffic enable_traffic
14492 wine_fn_config_dll twain.dll16 enable_win16
14493 wine_fn_config_dll twain_32 enable_twain_32
14494 wine_fn_config_test dlls/twain_32/tests twain_32_test
14495 wine_fn_config_dll typelib.dll16 enable_win16
14496 wine_fn_config_dll unicows enable_unicows unicows
14497 wine_fn_config_dll updspapi enable_updspapi
14498 wine_fn_config_dll url enable_url url
14499 wine_fn_config_dll urlmon enable_urlmon urlmon
14500 wine_fn_config_test dlls/urlmon/tests urlmon_test
14501 wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
14502 wine_fn_config_dll user.exe16 enable_win16
14503 wine_fn_config_dll user32 enable_user32 user32
14504 wine_fn_config_test dlls/user32/tests user32_test
14505 wine_fn_config_dll userenv enable_userenv userenv
14506 wine_fn_config_test dlls/userenv/tests userenv_test
14507 wine_fn_config_dll usp10 enable_usp10 usp10
14508 wine_fn_config_test dlls/usp10/tests usp10_test
14509 wine_fn_config_lib uuid
14510 wine_fn_config_dll uxtheme enable_uxtheme uxtheme
14511 wine_fn_config_test dlls/uxtheme/tests uxtheme_test
14512 wine_fn_config_dll vdhcp.vxd enable_win16
14513 wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
14514 wine_fn_config_dll ver.dll16 enable_win16
14515 wine_fn_config_dll version enable_version version
14516 wine_fn_config_test dlls/version/tests version_test
14517 wine_fn_config_dll vmm.vxd enable_win16
14518 wine_fn_config_dll vnbt.vxd enable_win16
14519 wine_fn_config_dll vnetbios.vxd enable_win16
14520 wine_fn_config_dll vtdapi.vxd enable_win16
14521 wine_fn_config_dll vwin32.vxd enable_win16
14522 wine_fn_config_dll w32skrnl enable_win16
14523 wine_fn_config_dll w32sys.dll16 enable_win16
14524 wine_fn_config_dll wbemprox enable_wbemprox
14525 wine_fn_config_dll wiaservc enable_wiaservc
14526 wine_fn_config_dll win32s16.dll16 enable_win16
14527 wine_fn_config_dll win87em.dll16 enable_win16
14528 wine_fn_config_dll winaspi.dll16 enable_win16
14529 wine_fn_config_dll windebug.dll16 enable_win16
14530 wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
14531 wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
14532 wine_fn_config_dll winealsa.drv enable_winealsa_drv
14533 wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
14534 wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
14535 wine_fn_config_lib winecrt0
14536 wine_fn_config_dll wined3d enable_wined3d wined3d
14537 wine_fn_config_dll wineesd.drv enable_wineesd_drv
14538 wine_fn_config_dll winejack.drv enable_winejack_drv
14539 wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
14540 wine_fn_config_dll winemapi enable_winemapi
14541 wine_fn_config_dll winemp3.acm enable_winemp3_acm
14542 wine_fn_config_dll winenas.drv enable_winenas_drv
14543 wine_fn_config_dll wineoss.drv enable_wineoss_drv
14544 wine_fn_config_dll wineps.drv enable_wineps_drv
14545 wine_fn_config_dll wineps16.drv16 enable_win16
14546 wine_fn_config_dll winequartz.drv enable_winequartz_drv
14547 wine_fn_config_dll winex11.drv enable_winex11_drv
14548 wine_fn_config_dll wing.dll16 enable_win16
14549 wine_fn_config_dll wing32 enable_wing32
14550 wine_fn_config_dll winhttp enable_winhttp winhttp
14551 wine_fn_config_test dlls/winhttp/tests winhttp_test
14552 wine_fn_config_dll wininet enable_wininet wininet
14553 wine_fn_config_test dlls/wininet/tests wininet_test
14554 wine_fn_config_dll winmm enable_winmm winmm
14555 wine_fn_config_test dlls/winmm/tests winmm_test
14556 wine_fn_config_dll winnls.dll16 enable_win16
14557 wine_fn_config_dll winnls32 enable_winnls32 winnls32
14558 wine_fn_config_dll winscard enable_winscard winscard
14559 wine_fn_config_dll winsock.dll16 enable_win16
14560 wine_fn_config_dll winspool.drv enable_winspool_drv winspool
14561 wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
14562 wine_fn_config_dll wintab.dll16 enable_win16
14563 wine_fn_config_dll wintab32 enable_wintab32 wintab32
14564 wine_fn_config_test dlls/wintab32/tests wintab32_test
14565 wine_fn_config_dll wintrust enable_wintrust wintrust
14566 wine_fn_config_test dlls/wintrust/tests wintrust_test
14567 wine_fn_config_dll wldap32 enable_wldap32 wldap32
14568 wine_fn_config_test dlls/wldap32/tests wldap32_test
14569 wine_fn_config_dll wmi enable_wmi
14570 wine_fn_config_dll wmiutils enable_wmiutils
14571 wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
14572 wine_fn_config_dll wow32 enable_win16 wow32
14573 wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
14574 wine_fn_config_test dlls/ws2_32/tests ws2_32_test
14575 wine_fn_config_dll wsock32 enable_wsock32 wsock32
14576 wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
14577 wine_fn_config_dll wuapi enable_wuapi
14578 wine_fn_config_dll wuaueng enable_wuaueng
14579 wine_fn_config_dll xinput1_1 enable_xinput1_1
14580 wine_fn_config_dll xinput1_2 enable_xinput1_2
14581 wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
14582 wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
14583 wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
14584 wine_fn_config_dll xmllite enable_xmllite
14585 wine_fn_config_test dlls/xmllite/tests xmllite_test
14586 wine_fn_config_makefile documentation enable_documentation
14587 wine_fn_config_makefile fonts enable_fonts
14588 wine_fn_config_makefile include enable_include
14589 wine_fn_config_makefile libs/port enable_libs_port
14590 wine_fn_config_makefile libs/wine enable_libs_wine
14591 wine_fn_config_makefile libs/wpp enable_libs_wpp
14592 wine_fn_config_makefile loader enable_loader
14593 wine_fn_config_makefile programs enable_programs
14594 wine_fn_config_program attrib enable_attrib install
14595 wine_fn_config_program cacls enable_cacls install
14596 wine_fn_config_program clock enable_clock install
14597 wine_fn_config_program cmd enable_cmd install
14598 wine_fn_config_test programs/cmd/tests cmd.exe_test
14599 wine_fn_config_program cmdlgtst enable_cmdlgtst
14600 wine_fn_config_program control enable_control install
14601 wine_fn_config_program dxdiag enable_dxdiag install
14602 wine_fn_config_program eject enable_eject install
14603 wine_fn_config_program expand enable_expand install
14604 wine_fn_config_program explorer enable_explorer install
14605 wine_fn_config_program extrac32 enable_extrac32 install
14606 wine_fn_config_program hh enable_hh install
14607 wine_fn_config_program icinfo enable_icinfo install
14608 wine_fn_config_program iexplore enable_iexplore install
14609 wine_fn_config_program lodctr enable_lodctr install
14610 wine_fn_config_program mshta enable_mshta install
14611 wine_fn_config_program msiexec enable_msiexec installbin
14612 wine_fn_config_program net enable_net install
14613 wine_fn_config_program notepad enable_notepad installbin
14614 wine_fn_config_program oleview enable_oleview install
14615 wine_fn_config_program ping enable_ping install
14616 wine_fn_config_program progman enable_progman install
14617 wine_fn_config_program reg enable_reg install
14618 wine_fn_config_program regedit enable_regedit installbin
14619 wine_fn_config_program regsvr32 enable_regsvr32 installbin
14620 wine_fn_config_program rpcss enable_rpcss install
14621 wine_fn_config_program rundll32 enable_rundll32 install
14622 wine_fn_config_program secedit enable_secedit install
14623 wine_fn_config_program services enable_services install
14624 wine_fn_config_program spoolsv enable_spoolsv install
14625 wine_fn_config_program start enable_start install
14626 wine_fn_config_program svchost enable_svchost install
14627 wine_fn_config_program taskmgr enable_taskmgr install
14628 wine_fn_config_program termsv enable_termsv install
14629 wine_fn_config_program uninstaller enable_uninstaller install
14630 wine_fn_config_program unlodctr enable_unlodctr install
14631 wine_fn_config_program view enable_view
14632 wine_fn_config_program wineboot enable_wineboot installbin
14633 wine_fn_config_program winebrowser enable_winebrowser install
14634 wine_fn_config_program winecfg enable_winecfg installbin
14635 wine_fn_config_program wineconsole enable_wineconsole installbin
14636 wine_fn_config_program winedbg enable_winedbg installbin
14637 wine_fn_config_program winedevice enable_winedevice install
14638 wine_fn_config_program winefile enable_winefile installbin
14639 wine_fn_config_program winemenubuilder enable_winemenubuilder install
14640 wine_fn_config_program winemine enable_winemine installbin
14641 wine_fn_config_program winepath enable_winepath installbin
14642 wine_fn_config_program winetest enable_winetest
14643 wine_fn_config_program winevdm enable_win16 install
14644 wine_fn_config_program winhelp.exe16 enable_win16 install
14645 wine_fn_config_program winhlp32 enable_winhlp32 install
14646 wine_fn_config_program winoldap.mod16 enable_win16 install
14647 wine_fn_config_program winver enable_winver install
14648 wine_fn_config_program wordpad enable_wordpad install
14649 wine_fn_config_program write enable_write install
14650 wine_fn_config_program xcopy enable_xcopy install
14651 wine_fn_config_makefile server enable_server
14652 wine_fn_config_tool tools
14653 wine_fn_config_tool tools/widl
14654 wine_fn_config_tool tools/winebuild
14655 wine_fn_config_tool tools/winedump
14656 wine_fn_config_tool tools/winegcc
14657 wine_fn_config_tool tools/wmc
14658 wine_fn_config_tool tools/wrc
14660 ac_config_files="$ac_config_files Makefile"
14663 test -n "$DLLEXT" || ALL_PROGRAM_BIN_INSTALL_DIRS=""
14665 cat >confcache <<\_ACEOF
14666 # This file is a shell script that caches the results of configure
14667 # tests run on this system so they can be shared between configure
14668 # scripts and configure runs, see configure's option --config-cache.
14669 # It is not useful on other systems. If it contains results you don't
14670 # want to keep, you may remove or edit it.
14672 # config.status only pays attention to the cache file if you give it
14673 # the --recheck option to rerun configure.
14675 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14676 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14677 # following values.
14679 _ACEOF
14681 # The following way of writing the cache mishandles newlines in values,
14682 # but we know of no workaround that is simple, portable, and efficient.
14683 # So, we kill variables containing newlines.
14684 # Ultrix sh set writes to stderr and can't be redirected directly,
14685 # and sets the high bit in the cache file unless we assign to the vars.
14687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14688 eval ac_val=\$$ac_var
14689 case $ac_val in #(
14690 *${as_nl}*)
14691 case $ac_var in #(
14692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14693 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14694 esac
14695 case $ac_var in #(
14696 _ | IFS | as_nl) ;; #(
14697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14698 *) { eval $ac_var=; unset $ac_var;} ;;
14699 esac ;;
14700 esac
14701 done
14703 (set) 2>&1 |
14704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14705 *${as_nl}ac_space=\ *)
14706 # `set' does not quote correctly, so add quotes: double-quote
14707 # substitution turns \\\\ into \\, and sed turns \\ into \.
14708 sed -n \
14709 "s/'/'\\\\''/g;
14710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14711 ;; #(
14713 # `set' quotes correctly as required by POSIX, so do not add quotes.
14714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14716 esac |
14717 sort
14719 sed '
14720 /^ac_cv_env_/b end
14721 t clear
14722 :clear
14723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14724 t end
14725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14726 :end' >>confcache
14727 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14728 if test -w "$cache_file"; then
14729 test "x$cache_file" != "x/dev/null" &&
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14731 $as_echo "$as_me: updating cache $cache_file" >&6;}
14732 cat confcache >$cache_file
14733 else
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14735 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14738 rm -f confcache
14740 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14741 # Let make expand exec_prefix.
14742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14744 DEFS=-DHAVE_CONFIG_H
14746 ac_libobjs=
14747 ac_ltlibobjs=
14748 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14749 # 1. Remove the extension, and $U if already installed.
14750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14753 # will be set to the directory where LIBOBJS objects are built.
14754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14756 done
14757 LIBOBJS=$ac_libobjs
14759 LTLIBOBJS=$ac_ltlibobjs
14763 : ${CONFIG_STATUS=./config.status}
14764 ac_write_fail=0
14765 ac_clean_files_save=$ac_clean_files
14766 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14768 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14769 as_write_fail=0
14770 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14771 #! $SHELL
14772 # Generated by $as_me.
14773 # Run this file to recreate the current configuration.
14774 # Compiler output produced by configure, useful for debugging
14775 # configure, is in config.log if it exists.
14777 debug=false
14778 ac_cs_recheck=false
14779 ac_cs_silent=false
14781 SHELL=\${CONFIG_SHELL-$SHELL}
14782 export SHELL
14783 _ASEOF
14784 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14785 ## -------------------- ##
14786 ## M4sh Initialization. ##
14787 ## -------------------- ##
14789 # Be more Bourne compatible
14790 DUALCASE=1; export DUALCASE # for MKS sh
14791 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14792 emulate sh
14793 NULLCMD=:
14794 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14795 # is contrary to our usage. Disable this feature.
14796 alias -g '${1+"$@"}'='"$@"'
14797 setopt NO_GLOB_SUBST
14798 else
14799 case `(set -o) 2>/dev/null` in #(
14800 *posix*) :
14801 set -o posix ;; #(
14802 *) :
14804 esac
14808 as_nl='
14810 export as_nl
14811 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14812 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14813 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14814 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14815 # Prefer a ksh shell builtin over an external printf program on Solaris,
14816 # but without wasting forks for bash or zsh.
14817 if test -z "$BASH_VERSION$ZSH_VERSION" \
14818 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14819 as_echo='print -r --'
14820 as_echo_n='print -rn --'
14821 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14822 as_echo='printf %s\n'
14823 as_echo_n='printf %s'
14824 else
14825 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14826 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14827 as_echo_n='/usr/ucb/echo -n'
14828 else
14829 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14830 as_echo_n_body='eval
14831 arg=$1;
14832 case $arg in #(
14833 *"$as_nl"*)
14834 expr "X$arg" : "X\\(.*\\)$as_nl";
14835 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14836 esac;
14837 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14839 export as_echo_n_body
14840 as_echo_n='sh -c $as_echo_n_body as_echo'
14842 export as_echo_body
14843 as_echo='sh -c $as_echo_body as_echo'
14846 # The user is always right.
14847 if test "${PATH_SEPARATOR+set}" != set; then
14848 PATH_SEPARATOR=:
14849 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14850 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14851 PATH_SEPARATOR=';'
14856 # IFS
14857 # We need space, tab and new line, in precisely that order. Quoting is
14858 # there to prevent editors from complaining about space-tab.
14859 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14860 # splitting by setting IFS to empty value.)
14861 IFS=" "" $as_nl"
14863 # Find who we are. Look in the path if we contain no directory separator.
14864 case $0 in #((
14865 *[\\/]* ) as_myself=$0 ;;
14866 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $PATH
14869 IFS=$as_save_IFS
14870 test -z "$as_dir" && as_dir=.
14871 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14872 done
14873 IFS=$as_save_IFS
14876 esac
14877 # We did not find ourselves, most probably we were run as `sh COMMAND'
14878 # in which case we are not to be found in the path.
14879 if test "x$as_myself" = x; then
14880 as_myself=$0
14882 if test ! -f "$as_myself"; then
14883 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14884 exit 1
14887 # Unset variables that we do not need and which cause bugs (e.g. in
14888 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14889 # suppresses any "Segmentation fault" message there. '((' could
14890 # trigger a bug in pdksh 5.2.14.
14891 for as_var in BASH_ENV ENV MAIL MAILPATH
14892 do eval test x\${$as_var+set} = xset \
14893 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14894 done
14895 PS1='$ '
14896 PS2='> '
14897 PS4='+ '
14899 # NLS nuisances.
14900 LC_ALL=C
14901 export LC_ALL
14902 LANGUAGE=C
14903 export LANGUAGE
14905 # CDPATH.
14906 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14909 # as_fn_error ERROR [LINENO LOG_FD]
14910 # ---------------------------------
14911 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14912 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14913 # script with status $?, using 1 if that was 0.
14914 as_fn_error ()
14916 as_status=$?; test $as_status -eq 0 && as_status=1
14917 if test "$3"; then
14918 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14919 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14921 $as_echo "$as_me: error: $1" >&2
14922 as_fn_exit $as_status
14923 } # as_fn_error
14926 # as_fn_set_status STATUS
14927 # -----------------------
14928 # Set $? to STATUS, without forking.
14929 as_fn_set_status ()
14931 return $1
14932 } # as_fn_set_status
14934 # as_fn_exit STATUS
14935 # -----------------
14936 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14937 as_fn_exit ()
14939 set +e
14940 as_fn_set_status $1
14941 exit $1
14942 } # as_fn_exit
14944 # as_fn_unset VAR
14945 # ---------------
14946 # Portably unset VAR.
14947 as_fn_unset ()
14949 { eval $1=; unset $1;}
14951 as_unset=as_fn_unset
14952 # as_fn_append VAR VALUE
14953 # ----------------------
14954 # Append the text in VALUE to the end of the definition contained in VAR. Take
14955 # advantage of any shell optimizations that allow amortized linear growth over
14956 # repeated appends, instead of the typical quadratic growth present in naive
14957 # implementations.
14958 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14959 eval 'as_fn_append ()
14961 eval $1+=\$2
14963 else
14964 as_fn_append ()
14966 eval $1=\$$1\$2
14968 fi # as_fn_append
14970 # as_fn_arith ARG...
14971 # ------------------
14972 # Perform arithmetic evaluation on the ARGs, and store the result in the
14973 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14974 # must be portable across $(()) and expr.
14975 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14976 eval 'as_fn_arith ()
14978 as_val=$(( $* ))
14980 else
14981 as_fn_arith ()
14983 as_val=`expr "$@" || test $? -eq 1`
14985 fi # as_fn_arith
14988 if expr a : '\(a\)' >/dev/null 2>&1 &&
14989 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14990 as_expr=expr
14991 else
14992 as_expr=false
14995 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14996 as_basename=basename
14997 else
14998 as_basename=false
15001 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15002 as_dirname=dirname
15003 else
15004 as_dirname=false
15007 as_me=`$as_basename -- "$0" ||
15008 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15009 X"$0" : 'X\(//\)$' \| \
15010 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15011 $as_echo X/"$0" |
15012 sed '/^.*\/\([^/][^/]*\)\/*$/{
15013 s//\1/
15016 /^X\/\(\/\/\)$/{
15017 s//\1/
15020 /^X\/\(\/\).*/{
15021 s//\1/
15024 s/.*/./; q'`
15026 # Avoid depending upon Character Ranges.
15027 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15028 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15029 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15030 as_cr_digits='0123456789'
15031 as_cr_alnum=$as_cr_Letters$as_cr_digits
15033 ECHO_C= ECHO_N= ECHO_T=
15034 case `echo -n x` in #(((((
15035 -n*)
15036 case `echo 'xy\c'` in
15037 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15038 xy) ECHO_C='\c';;
15039 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15040 ECHO_T=' ';;
15041 esac;;
15043 ECHO_N='-n';;
15044 esac
15046 rm -f conf$$ conf$$.exe conf$$.file
15047 if test -d conf$$.dir; then
15048 rm -f conf$$.dir/conf$$.file
15049 else
15050 rm -f conf$$.dir
15051 mkdir conf$$.dir 2>/dev/null
15053 if (echo >conf$$.file) 2>/dev/null; then
15054 if ln -s conf$$.file conf$$ 2>/dev/null; then
15055 as_ln_s='ln -s'
15056 # ... but there are two gotchas:
15057 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15058 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15059 # In both cases, we have to default to `cp -p'.
15060 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15061 as_ln_s='cp -p'
15062 elif ln conf$$.file conf$$ 2>/dev/null; then
15063 as_ln_s=ln
15064 else
15065 as_ln_s='cp -p'
15067 else
15068 as_ln_s='cp -p'
15070 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15071 rmdir conf$$.dir 2>/dev/null
15074 # as_fn_mkdir_p
15075 # -------------
15076 # Create "$as_dir" as a directory, including parents if necessary.
15077 as_fn_mkdir_p ()
15080 case $as_dir in #(
15081 -*) as_dir=./$as_dir;;
15082 esac
15083 test -d "$as_dir" || eval $as_mkdir_p || {
15084 as_dirs=
15085 while :; do
15086 case $as_dir in #(
15087 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15088 *) as_qdir=$as_dir;;
15089 esac
15090 as_dirs="'$as_qdir' $as_dirs"
15091 as_dir=`$as_dirname -- "$as_dir" ||
15092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15093 X"$as_dir" : 'X\(//\)[^/]' \| \
15094 X"$as_dir" : 'X\(//\)$' \| \
15095 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15096 $as_echo X"$as_dir" |
15097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15098 s//\1/
15101 /^X\(\/\/\)[^/].*/{
15102 s//\1/
15105 /^X\(\/\/\)$/{
15106 s//\1/
15109 /^X\(\/\).*/{
15110 s//\1/
15113 s/.*/./; q'`
15114 test -d "$as_dir" && break
15115 done
15116 test -z "$as_dirs" || eval "mkdir $as_dirs"
15117 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15120 } # as_fn_mkdir_p
15121 if mkdir -p . 2>/dev/null; then
15122 as_mkdir_p='mkdir -p "$as_dir"'
15123 else
15124 test -d ./-p && rmdir ./-p
15125 as_mkdir_p=false
15128 if test -x / >/dev/null 2>&1; then
15129 as_test_x='test -x'
15130 else
15131 if ls -dL / >/dev/null 2>&1; then
15132 as_ls_L_option=L
15133 else
15134 as_ls_L_option=
15136 as_test_x='
15137 eval sh -c '\''
15138 if test -d "$1"; then
15139 test -d "$1/.";
15140 else
15141 case $1 in #(
15142 -*)set "./$1";;
15143 esac;
15144 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15145 ???[sx]*):;;*)false;;esac;fi
15146 '\'' sh
15149 as_executable_p=$as_test_x
15151 # Sed expression to map a string onto a valid CPP name.
15152 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15154 # Sed expression to map a string onto a valid variable name.
15155 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15158 exec 6>&1
15159 ## ----------------------------------- ##
15160 ## Main body of $CONFIG_STATUS script. ##
15161 ## ----------------------------------- ##
15162 _ASEOF
15163 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15166 # Save the log message, to keep $0 and so on meaningful, and to
15167 # report actual input values of CONFIG_FILES etc. instead of their
15168 # values after options handling.
15169 ac_log="
15170 This file was extended by Wine $as_me 1.1.41, which was
15171 generated by GNU Autoconf 2.65. Invocation command line was
15173 CONFIG_FILES = $CONFIG_FILES
15174 CONFIG_HEADERS = $CONFIG_HEADERS
15175 CONFIG_LINKS = $CONFIG_LINKS
15176 CONFIG_COMMANDS = $CONFIG_COMMANDS
15177 $ $0 $@
15179 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15182 _ACEOF
15184 case $ac_config_files in *"
15185 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15186 esac
15188 case $ac_config_headers in *"
15189 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15190 esac
15193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15194 # Files that config.status was made for.
15195 config_files="$ac_config_files"
15196 config_headers="$ac_config_headers"
15197 config_links="$ac_config_links"
15198 config_commands="$ac_config_commands"
15200 _ACEOF
15202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15203 ac_cs_usage="\
15204 \`$as_me' instantiates files and other configuration actions
15205 from templates according to the current configuration. Unless the files
15206 and actions are specified as TAGs, all are instantiated by default.
15208 Usage: $0 [OPTION]... [TAG]...
15210 -h, --help print this help, then exit
15211 -V, --version print version number and configuration settings, then exit
15212 --config print configuration, then exit
15213 -q, --quiet, --silent
15214 do not print progress messages
15215 -d, --debug don't remove temporary files
15216 --recheck update $as_me by reconfiguring in the same conditions
15217 --file=FILE[:TEMPLATE]
15218 instantiate the configuration file FILE
15219 --header=FILE[:TEMPLATE]
15220 instantiate the configuration header FILE
15222 Configuration files:
15223 $config_files
15225 Configuration headers:
15226 $config_headers
15228 Configuration links:
15229 $config_links
15231 Configuration commands:
15232 $config_commands
15234 Report bugs to <wine-devel@winehq.org>.
15235 Wine home page: <http://www.winehq.org>."
15237 _ACEOF
15238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15239 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15240 ac_cs_version="\\
15241 Wine config.status 1.1.41
15242 configured by $0, generated by GNU Autoconf 2.65,
15243 with options \\"\$ac_cs_config\\"
15245 Copyright (C) 2009 Free Software Foundation, Inc.
15246 This config.status script is free software; the Free Software Foundation
15247 gives unlimited permission to copy, distribute and modify it."
15249 ac_pwd='$ac_pwd'
15250 srcdir='$srcdir'
15251 INSTALL='$INSTALL'
15252 test -n "\$AWK" || AWK=awk
15253 _ACEOF
15255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15256 # The default lists apply if the user does not specify any file.
15257 ac_need_defaults=:
15258 while test $# != 0
15260 case $1 in
15261 --*=*)
15262 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15263 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15264 ac_shift=:
15267 ac_option=$1
15268 ac_optarg=$2
15269 ac_shift=shift
15271 esac
15273 case $ac_option in
15274 # Handling of the options.
15275 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15276 ac_cs_recheck=: ;;
15277 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15278 $as_echo "$ac_cs_version"; exit ;;
15279 --config | --confi | --conf | --con | --co | --c )
15280 $as_echo "$ac_cs_config"; exit ;;
15281 --debug | --debu | --deb | --de | --d | -d )
15282 debug=: ;;
15283 --file | --fil | --fi | --f )
15284 $ac_shift
15285 case $ac_optarg in
15286 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15287 esac
15288 as_fn_append CONFIG_FILES " '$ac_optarg'"
15289 ac_need_defaults=false;;
15290 --header | --heade | --head | --hea )
15291 $ac_shift
15292 case $ac_optarg in
15293 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15294 esac
15295 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15296 ac_need_defaults=false;;
15297 --he | --h)
15298 # Conflict between --help and --header
15299 as_fn_error "ambiguous option: \`$1'
15300 Try \`$0 --help' for more information.";;
15301 --help | --hel | -h )
15302 $as_echo "$ac_cs_usage"; exit ;;
15303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15304 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15305 ac_cs_silent=: ;;
15307 # This is an error.
15308 -*) as_fn_error "unrecognized option: \`$1'
15309 Try \`$0 --help' for more information." ;;
15311 *) as_fn_append ac_config_targets " $1"
15312 ac_need_defaults=false ;;
15314 esac
15315 shift
15316 done
15318 ac_configure_extra_args=
15320 if $ac_cs_silent; then
15321 exec 6>/dev/null
15322 ac_configure_extra_args="$ac_configure_extra_args --silent"
15325 _ACEOF
15326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15327 if \$ac_cs_recheck; then
15328 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15329 shift
15330 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15331 CONFIG_SHELL='$SHELL'
15332 export CONFIG_SHELL
15333 exec "\$@"
15336 _ACEOF
15337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15338 exec 5>>config.log
15340 echo
15341 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15342 ## Running $as_me. ##
15343 _ASBOX
15344 $as_echo "$ac_log"
15345 } >&5
15347 _ACEOF
15348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15349 _ACEOF
15351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15353 # Handling of arguments.
15354 for ac_config_target in $ac_config_targets
15356 case $ac_config_target in
15357 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15358 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
15359 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
15360 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
15361 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
15362 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
15363 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
15364 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
15365 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
15366 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
15367 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
15368 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
15369 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
15370 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15371 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
15372 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
15373 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15374 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
15375 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
15376 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15378 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15379 esac
15380 done
15383 # If the user did not use the arguments to specify the items to instantiate,
15384 # then the envvar interface is used. Set only those that are not.
15385 # We use the long form for the default assignment because of an extremely
15386 # bizarre bug on SunOS 4.1.3.
15387 if $ac_need_defaults; then
15388 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15389 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15390 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15391 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15394 # Have a temporary directory for convenience. Make it in the build tree
15395 # simply because there is no reason against having it here, and in addition,
15396 # creating and moving files from /tmp can sometimes cause problems.
15397 # Hook for its removal unless debugging.
15398 # Note that there is a small window in which the directory will not be cleaned:
15399 # after its creation but before its name has been assigned to `$tmp'.
15400 $debug ||
15402 tmp=
15403 trap 'exit_status=$?
15404 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15406 trap 'as_fn_exit 1' 1 2 13 15
15408 # Create a (secure) tmp directory for tmp files.
15411 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15412 test -n "$tmp" && test -d "$tmp"
15413 } ||
15415 tmp=./conf$$-$RANDOM
15416 (umask 077 && mkdir "$tmp")
15417 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15419 # Set up the scripts for CONFIG_FILES section.
15420 # No need to generate them if there are no CONFIG_FILES.
15421 # This happens for instance with `./config.status config.h'.
15422 if test -n "$CONFIG_FILES"; then
15424 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15425 ac_cs_awk_getline=:
15426 ac_cs_awk_pipe_init=
15427 ac_cs_awk_read_file='
15428 while ((getline aline < (F[key])) > 0)
15429 print(aline)
15430 close(F[key])'
15431 ac_cs_awk_pipe_fini=
15432 else
15433 ac_cs_awk_getline=false
15434 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15435 ac_cs_awk_read_file='
15436 print "|#_!!_#|"
15437 print "cat " F[key] " &&"
15438 '$ac_cs_awk_pipe_init
15439 # The final `:' finishes the AND list.
15440 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15442 ac_cr=`echo X | tr X '\015'`
15443 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15444 # But we know of no other shell where ac_cr would be empty at this
15445 # point, so we can use a bashism as a fallback.
15446 if test "x$ac_cr" = x; then
15447 eval ac_cr=\$\'\\r\'
15449 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15450 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15451 ac_cs_awk_cr='\r'
15452 else
15453 ac_cs_awk_cr=$ac_cr
15456 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15457 _ACEOF
15459 # Create commands to substitute file output variables.
15461 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15462 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15463 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15464 echo "_ACAWK" &&
15465 echo "_ACEOF"
15466 } >conf$$files.sh &&
15467 . ./conf$$files.sh ||
15468 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15469 rm -f conf$$files.sh
15472 echo "cat >conf$$subs.awk <<_ACEOF" &&
15473 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15474 echo "_ACEOF"
15475 } >conf$$subs.sh ||
15476 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15477 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15478 ac_delim='%!_!# '
15479 for ac_last_try in false false false false false :; do
15480 . ./conf$$subs.sh ||
15481 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15483 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15484 if test $ac_delim_n = $ac_delim_num; then
15485 break
15486 elif $ac_last_try; then
15487 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15488 else
15489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15491 done
15492 rm -f conf$$subs.sh
15494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15495 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15496 _ACEOF
15497 sed -n '
15499 s/^/S["/; s/!.*/"]=/
15502 s/^[^!]*!//
15503 :repl
15504 t repl
15505 s/'"$ac_delim"'$//
15506 t delim
15509 s/\(.\{148\}\)..*/\1/
15510 t more1
15511 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15514 b repl
15515 :more1
15516 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15519 s/.\{148\}//
15520 t nl
15521 :delim
15523 s/\(.\{148\}\)..*/\1/
15524 t more2
15525 s/["\\]/\\&/g; s/^/"/; s/$/"/
15528 :more2
15529 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15532 s/.\{148\}//
15533 t delim
15534 ' <conf$$subs.awk | sed '
15535 /^[^""]/{
15537 s/\n//
15539 ' >>$CONFIG_STATUS || ac_write_fail=1
15540 rm -f conf$$subs.awk
15541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15542 _ACAWK
15543 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15544 for (key in S) S_is_set[key] = 1
15545 FS = "\a"
15546 \$ac_cs_awk_pipe_init
15549 line = $ 0
15550 nfields = split(line, field, "@")
15551 substed = 0
15552 len = length(field[1])
15553 for (i = 2; i < nfields; i++) {
15554 key = field[i]
15555 keylen = length(key)
15556 if (S_is_set[key]) {
15557 value = S[key]
15558 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15559 len += length(value) + length(field[++i])
15560 substed = 1
15561 } else
15562 len += 1 + keylen
15564 if (nfields == 3 && !substed) {
15565 key = field[2]
15566 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15567 \$ac_cs_awk_read_file
15568 next
15571 print line
15573 \$ac_cs_awk_pipe_fini
15574 _ACAWK
15575 _ACEOF
15576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15577 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15578 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15579 else
15581 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15582 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15583 _ACEOF
15585 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15586 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15587 # trailing colons and then remove the whole line if VPATH becomes empty
15588 # (actually we leave an empty line to preserve line numbers).
15589 if test "x$srcdir" = x.; then
15590 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15591 s/:*\$(srcdir):*/:/
15592 s/:*\${srcdir}:*/:/
15593 s/:*@srcdir@:*/:/
15594 s/^\([^=]*=[ ]*\):*/\1/
15595 s/:*$//
15596 s/^[^=]*=[ ]*$//
15600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15601 fi # test -n "$CONFIG_FILES"
15603 # Set up the scripts for CONFIG_HEADERS section.
15604 # No need to generate them if there are no CONFIG_HEADERS.
15605 # This happens for instance with `./config.status Makefile'.
15606 if test -n "$CONFIG_HEADERS"; then
15607 cat >"$tmp/defines.awk" <<\_ACAWK ||
15608 BEGIN {
15609 _ACEOF
15611 # Transform confdefs.h into an awk script `defines.awk', embedded as
15612 # here-document in config.status, that substitutes the proper values into
15613 # config.h.in to produce config.h.
15615 # Create a delimiter string that does not exist in confdefs.h, to ease
15616 # handling of long lines.
15617 ac_delim='%!_!# '
15618 for ac_last_try in false false :; do
15619 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15620 if test -z "$ac_t"; then
15621 break
15622 elif $ac_last_try; then
15623 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15624 else
15625 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15627 done
15629 # For the awk script, D is an array of macro values keyed by name,
15630 # likewise P contains macro parameters if any. Preserve backslash
15631 # newline sequences.
15633 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15634 sed -n '
15635 s/.\{148\}/&'"$ac_delim"'/g
15636 t rset
15637 :rset
15638 s/^[ ]*#[ ]*define[ ][ ]*/ /
15639 t def
15641 :def
15642 s/\\$//
15643 t bsnl
15644 s/["\\]/\\&/g
15645 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15646 D["\1"]=" \3"/p
15647 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15649 :bsnl
15650 s/["\\]/\\&/g
15651 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15652 D["\1"]=" \3\\\\\\n"\\/p
15653 t cont
15654 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15655 t cont
15657 :cont
15659 s/.\{148\}/&'"$ac_delim"'/g
15660 t clear
15661 :clear
15662 s/\\$//
15663 t bsnlc
15664 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15666 :bsnlc
15667 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15668 b cont
15669 ' <confdefs.h | sed '
15670 s/'"$ac_delim"'/"\\\
15671 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15674 for (key in D) D_is_set[key] = 1
15675 FS = "\a"
15677 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15678 line = \$ 0
15679 split(line, arg, " ")
15680 if (arg[1] == "#") {
15681 defundef = arg[2]
15682 mac1 = arg[3]
15683 } else {
15684 defundef = substr(arg[1], 2)
15685 mac1 = arg[2]
15687 split(mac1, mac2, "(") #)
15688 macro = mac2[1]
15689 prefix = substr(line, 1, index(line, defundef) - 1)
15690 if (D_is_set[macro]) {
15691 # Preserve the white space surrounding the "#".
15692 print prefix "define", macro P[macro] D[macro]
15693 next
15694 } else {
15695 # Replace #undef with comments. This is necessary, for example,
15696 # in the case of _POSIX_SOURCE, which is predefined and required
15697 # on some systems where configure will not decide to define it.
15698 if (defundef == "undef") {
15699 print "/*", prefix defundef, macro, "*/"
15700 next
15704 { print }
15705 _ACAWK
15706 _ACEOF
15707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15708 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15709 fi # test -n "$CONFIG_HEADERS"
15712 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
15713 shift
15714 for ac_tag
15716 case $ac_tag in
15717 :[FHLC]) ac_mode=$ac_tag; continue;;
15718 esac
15719 case $ac_mode$ac_tag in
15720 :[FHL]*:*);;
15721 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15722 :[FH]-) ac_tag=-:-;;
15723 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15724 esac
15725 ac_save_IFS=$IFS
15726 IFS=:
15727 set x $ac_tag
15728 IFS=$ac_save_IFS
15729 shift
15730 ac_file=$1
15731 shift
15733 case $ac_mode in
15734 :L) ac_source=$1;;
15735 :[FH])
15736 ac_file_inputs=
15737 for ac_f
15739 case $ac_f in
15740 -) ac_f="$tmp/stdin";;
15741 *) # Look for the file first in the build tree, then in the source tree
15742 # (if the path is not absolute). The absolute path cannot be DOS-style,
15743 # because $ac_f cannot contain `:'.
15744 test -f "$ac_f" ||
15745 case $ac_f in
15746 [\\/$]*) false;;
15747 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15748 esac ||
15749 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15750 esac
15751 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15752 as_fn_append ac_file_inputs " '$ac_f'"
15753 done
15755 # Let's still pretend it is `configure' which instantiates (i.e., don't
15756 # use $as_me), people would be surprised to read:
15757 # /* config.h. Generated by config.status. */
15758 configure_input='Generated from '`
15759 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15760 `' by configure.'
15761 if test x"$ac_file" != x-; then
15762 configure_input="$ac_file. $configure_input"
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15764 $as_echo "$as_me: creating $ac_file" >&6;}
15766 # Neutralize special characters interpreted by sed in replacement strings.
15767 case $configure_input in #(
15768 *\&* | *\|* | *\\* )
15769 ac_sed_conf_input=`$as_echo "$configure_input" |
15770 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15771 *) ac_sed_conf_input=$configure_input;;
15772 esac
15774 case $ac_tag in
15775 *:-:* | *:-) cat >"$tmp/stdin" \
15776 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15777 esac
15779 esac
15781 ac_dir=`$as_dirname -- "$ac_file" ||
15782 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15783 X"$ac_file" : 'X\(//\)[^/]' \| \
15784 X"$ac_file" : 'X\(//\)$' \| \
15785 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15786 $as_echo X"$ac_file" |
15787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15788 s//\1/
15791 /^X\(\/\/\)[^/].*/{
15792 s//\1/
15795 /^X\(\/\/\)$/{
15796 s//\1/
15799 /^X\(\/\).*/{
15800 s//\1/
15803 s/.*/./; q'`
15804 as_dir="$ac_dir"; as_fn_mkdir_p
15805 ac_builddir=.
15807 case "$ac_dir" in
15808 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15810 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15811 # A ".." for each directory in $ac_dir_suffix.
15812 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15813 case $ac_top_builddir_sub in
15814 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15815 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15816 esac ;;
15817 esac
15818 ac_abs_top_builddir=$ac_pwd
15819 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15820 # for backward compatibility:
15821 ac_top_builddir=$ac_top_build_prefix
15823 case $srcdir in
15824 .) # We are building in place.
15825 ac_srcdir=.
15826 ac_top_srcdir=$ac_top_builddir_sub
15827 ac_abs_top_srcdir=$ac_pwd ;;
15828 [\\/]* | ?:[\\/]* ) # Absolute name.
15829 ac_srcdir=$srcdir$ac_dir_suffix;
15830 ac_top_srcdir=$srcdir
15831 ac_abs_top_srcdir=$srcdir ;;
15832 *) # Relative name.
15833 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15834 ac_top_srcdir=$ac_top_build_prefix$srcdir
15835 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15836 esac
15837 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15840 case $ac_mode in
15843 # CONFIG_FILE
15846 case $INSTALL in
15847 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15848 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15849 esac
15850 _ACEOF
15852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15853 # If the template does not know about datarootdir, expand it.
15854 # FIXME: This hack should be removed a few years after 2.60.
15855 ac_datarootdir_hack=; ac_datarootdir_seen=
15856 ac_sed_dataroot='
15857 /datarootdir/ {
15861 /@datadir@/p
15862 /@docdir@/p
15863 /@infodir@/p
15864 /@localedir@/p
15865 /@mandir@/p'
15866 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15867 *datarootdir*) ac_datarootdir_seen=yes;;
15868 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15870 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15871 _ACEOF
15872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15873 ac_datarootdir_hack='
15874 s&@datadir@&$datadir&g
15875 s&@docdir@&$docdir&g
15876 s&@infodir@&$infodir&g
15877 s&@localedir@&$localedir&g
15878 s&@mandir@&$mandir&g
15879 s&\\\${datarootdir}&$datarootdir&g' ;;
15880 esac
15881 _ACEOF
15883 # Neutralize VPATH when `$srcdir' = `.'.
15884 # Shell code in configure.ac might set extrasub.
15885 # FIXME: do we really want to maintain this feature?
15886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15887 ac_sed_extra="$ac_vpsub
15888 $extrasub
15889 _ACEOF
15890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15892 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15893 s|@configure_input@|$ac_sed_conf_input|;t t
15894 s&@top_builddir@&$ac_top_builddir_sub&;t t
15895 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15896 s&@srcdir@&$ac_srcdir&;t t
15897 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15898 s&@top_srcdir@&$ac_top_srcdir&;t t
15899 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15900 s&@builddir@&$ac_builddir&;t t
15901 s&@abs_builddir@&$ac_abs_builddir&;t t
15902 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15903 s&@INSTALL@&$ac_INSTALL&;t t
15904 $ac_datarootdir_hack
15906 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15907 if $ac_cs_awk_getline; then
15908 $AWK -f "$tmp/subs.awk"
15909 else
15910 $AWK -f "$tmp/subs.awk" | $SHELL
15911 fi >$tmp/out \
15912 || as_fn_error "could not create $ac_file" "$LINENO" 5
15914 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15915 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15916 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15918 which seems to be undefined. Please make sure it is defined." >&5
15919 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15920 which seems to be undefined. Please make sure it is defined." >&2;}
15922 rm -f "$tmp/stdin"
15923 case $ac_file in
15924 -) cat "$tmp/out" && rm -f "$tmp/out";;
15925 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15926 esac \
15927 || as_fn_error "could not create $ac_file" "$LINENO" 5
15931 # CONFIG_HEADER
15933 if test x"$ac_file" != x-; then
15935 $as_echo "/* $configure_input */" \
15936 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15937 } >"$tmp/config.h" \
15938 || as_fn_error "could not create $ac_file" "$LINENO" 5
15939 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15941 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15942 else
15943 rm -f "$ac_file"
15944 mv "$tmp/config.h" "$ac_file" \
15945 || as_fn_error "could not create $ac_file" "$LINENO" 5
15947 else
15948 $as_echo "/* $configure_input */" \
15949 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15950 || as_fn_error "could not create -" "$LINENO" 5
15955 # CONFIG_LINK
15958 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15960 else
15961 # Prefer the file from the source tree if names are identical.
15962 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15963 ac_source=$srcdir/$ac_source
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15967 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15969 if test ! -r "$ac_source"; then
15970 as_fn_error "$ac_source: file not found" "$LINENO" 5
15972 rm -f "$ac_file"
15974 # Try a relative symlink, then a hard link, then a copy.
15975 case $srcdir in
15976 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15977 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15978 esac
15979 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15980 ln "$ac_source" "$ac_file" 2>/dev/null ||
15981 cp -p "$ac_source" "$ac_file" ||
15982 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15985 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15986 $as_echo "$as_me: executing $ac_file commands" >&6;}
15988 esac
15991 case $ac_file$ac_mode in
15992 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
15993 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
15994 $as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
15995 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
15996 $as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
15997 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
15998 $as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
15999 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16000 $as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16001 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16002 $as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16003 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16004 $as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
16006 esac
16007 done # for ac_tag
16010 as_fn_exit 0
16011 _ACEOF
16012 ac_clean_files=$ac_clean_files_save
16014 test $ac_write_fail = 0 ||
16015 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16018 # configure is writing to config.log, and then calls config.status.
16019 # config.status does its own redirection, appending to config.log.
16020 # Unfortunately, on DOS this fails, as config.log is still kept open
16021 # by configure, so config.status won't be able to write to it; its
16022 # output is simply discarded. So we exec the FD to /dev/null,
16023 # effectively closing config.log, so it can be properly (re)opened and
16024 # appended to by config.status. When coming back to configure, we
16025 # need to make the FD available again.
16026 if test "$no_create" != yes; then
16027 ac_cs_success=:
16028 ac_config_status_args=
16029 test "$silent" = yes &&
16030 ac_config_status_args="$ac_config_status_args --quiet"
16031 exec 5>/dev/null
16032 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16033 exec 5>>config.log
16034 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16035 # would make configure fail if this is the last instruction.
16036 $ac_cs_success || as_fn_exit $?
16038 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16040 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16044 if test "$no_create" = "yes"
16045 then
16046 exit 0
16049 ac_save_IFS="$IFS"
16050 if test "x$wine_notices != "x; then
16051 echo >&6
16052 IFS="|"
16053 for msg in $wine_notices; do
16054 IFS="$ac_save_IFS"
16055 if test -n "$msg"; then
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
16057 $as_echo "$as_me: $msg" >&6;}
16059 done
16061 IFS="|"
16062 for msg in $wine_warnings; do
16063 IFS="$ac_save_IFS"
16064 if test -n "$msg"; then
16065 echo >&2
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
16067 $as_echo "$as_me: WARNING: $msg" >&2;}
16069 done
16070 IFS="$ac_save_IFS"
16072 echo "
16073 $as_me: Finished. Do '${ac_make}' to compile Wine.
16074 " >&6