Pass debug exceptions to winedos.
[wine/multimedia.git] / configure
blobb52188903e4cf4bfaf84b12d94c59a4163a84028
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Wine 20040716.
5 # Report bugs to <wine-devel@winehq.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251 exec 6>&1
254 # Initializations.
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='Wine'
271 PACKAGE_TARNAME='wine'
272 PACKAGE_VERSION='20040716'
273 PACKAGE_STRING='Wine 20040716'
274 PACKAGE_BUGREPORT='wine-devel@winehq.org'
276 ac_unique_file="server/atom.c"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 # include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 # include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 # include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPPBIN ac_ct_CPPBIN TOOLSDIR CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LEX LEXLIB LEX_OUTPUT_ROOT XLEX BISON AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDLIBWINEFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
315 ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CXX_set=${CXX+set}
772 ac_env_CXX_value=$CXX
773 ac_cv_env_CXX_set=${CXX+set}
774 ac_cv_env_CXX_value=$CXX
775 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_env_CXXFLAGS_value=$CXXFLAGS
777 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
779 ac_env_CPP_set=${CPP+set}
780 ac_env_CPP_value=$CPP
781 ac_cv_env_CPP_set=${CPP+set}
782 ac_cv_env_CPP_value=$CPP
785 # Report the --help message.
787 if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
790 cat <<_ACEOF
791 \`configure' configures Wine 20040716 to adapt to many kinds of systems.
793 Usage: $0 [OPTION]... [VAR=VALUE]...
795 To assign environment variables (e.g., CC, CFLAGS...), specify them as
796 VAR=VALUE. See below for descriptions of some of the useful variables.
798 Defaults for the options are specified in brackets.
800 Configuration:
801 -h, --help display this help and exit
802 --help=short display options specific to this package
803 --help=recursive display the short help of all the included packages
804 -V, --version display version information and exit
805 -q, --quiet, --silent do not print \`checking...' messages
806 --cache-file=FILE cache test results in FILE [disabled]
807 -C, --config-cache alias for \`--cache-file=config.cache'
808 -n, --no-create do not create output files
809 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 _ACEOF
813 cat <<_ACEOF
814 Installation directories:
815 --prefix=PREFIX install architecture-independent files in PREFIX
816 [$ac_default_prefix]
817 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 [PREFIX]
820 By default, \`make install' will install all the files in
821 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
822 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823 for instance \`--prefix=\$HOME'.
825 For better control, use the options below.
827 Fine tuning of the installation directories:
828 --bindir=DIR user executables [EPREFIX/bin]
829 --sbindir=DIR system admin executables [EPREFIX/sbin]
830 --libexecdir=DIR program executables [EPREFIX/libexec]
831 --datadir=DIR read-only architecture-independent data [PREFIX/share]
832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
835 --libdir=DIR object code libraries [EPREFIX/lib]
836 --includedir=DIR C header files [PREFIX/include]
837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
838 --infodir=DIR info documentation [PREFIX/info]
839 --mandir=DIR man documentation [PREFIX/man]
840 _ACEOF
842 cat <<\_ACEOF
844 X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
848 System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 _ACEOF
854 if test -n "$ac_init_help"; then
855 case $ac_init_help in
856 short | recursive ) echo "Configuration of Wine 20040716:";;
857 esac
858 cat <<\_ACEOF
860 Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --disable-win16 do not include Win16 support
864 --disable-debug compile out all debugging messages
865 --disable-trace compile out TRACE messages
867 Optional Packages:
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --without-opengl do not use OpenGL
871 --without-curses do not use curses
872 --with-wine-tools=<dir> use Wine tools from directory <dir>
873 --with-x use the X Window System
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CXX C++ compiler command
883 CXXFLAGS C++ compiler flags
884 CPP C preprocessor
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
889 Report bugs to <wine-devel@winehq.org>.
890 _ACEOF
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
895 ac_popdir=`pwd`
896 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
897 test -d $ac_dir || continue
898 ac_builddir=.
900 if test "$ac_dir" != .; then
901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
902 # A "../" for each directory in $ac_dir_suffix.
903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
904 else
905 ac_dir_suffix= ac_top_builddir=
908 case $srcdir in
909 .) # No --srcdir option. We are building in place.
910 ac_srcdir=.
911 if test -z "$ac_top_builddir"; then
912 ac_top_srcdir=.
913 else
914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
915 fi ;;
916 [\\/]* | ?:[\\/]* ) # Absolute path.
917 ac_srcdir=$srcdir$ac_dir_suffix;
918 ac_top_srcdir=$srcdir ;;
919 *) # Relative path.
920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
922 esac
924 # Do not use `cd foo && pwd` to compute absolute paths, because
925 # the directories may not exist.
926 case `pwd` in
927 .) ac_abs_builddir="$ac_dir";;
929 case "$ac_dir" in
930 .) ac_abs_builddir=`pwd`;;
931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
933 esac;;
934 esac
935 case $ac_abs_builddir in
936 .) ac_abs_top_builddir=${ac_top_builddir}.;;
938 case ${ac_top_builddir}. in
939 .) ac_abs_top_builddir=$ac_abs_builddir;;
940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
942 esac;;
943 esac
944 case $ac_abs_builddir in
945 .) ac_abs_srcdir=$ac_srcdir;;
947 case $ac_srcdir in
948 .) ac_abs_srcdir=$ac_abs_builddir;;
949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_srcdir=$ac_top_srcdir;;
956 case $ac_top_srcdir in
957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
960 esac;;
961 esac
963 cd $ac_dir
964 # Check for guested configure; otherwise get Cygnus style configure.
965 if test -f $ac_srcdir/configure.gnu; then
966 echo
967 $SHELL $ac_srcdir/configure.gnu --help=recursive
968 elif test -f $ac_srcdir/configure; then
969 echo
970 $SHELL $ac_srcdir/configure --help=recursive
971 elif test -f $ac_srcdir/configure.ac ||
972 test -f $ac_srcdir/configure.in; then
973 echo
974 $ac_configure --help
975 else
976 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
978 cd "$ac_popdir"
979 done
982 test -n "$ac_init_help" && exit 0
983 if $ac_init_version; then
984 cat <<\_ACEOF
985 Wine configure 20040716
986 generated by GNU Autoconf 2.59
988 Copyright (C) 2003 Free Software Foundation, Inc.
989 This configure script is free software; the Free Software Foundation
990 gives unlimited permission to copy, distribute and modify it.
991 _ACEOF
992 exit 0
994 exec 5>config.log
995 cat >&5 <<_ACEOF
996 This file contains any messages produced by compilers while
997 running configure, to aid debugging if configure makes a mistake.
999 It was created by Wine $as_me 20040716, which was
1000 generated by GNU Autoconf 2.59. Invocation command line was
1002 $ $0 $@
1004 _ACEOF
1006 cat <<_ASUNAME
1007 ## --------- ##
1008 ## Platform. ##
1009 ## --------- ##
1011 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1012 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1013 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1014 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1015 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1017 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1018 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1020 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1021 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1022 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1023 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1024 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1025 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1026 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1028 _ASUNAME
1030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 for as_dir in $PATH
1033 IFS=$as_save_IFS
1034 test -z "$as_dir" && as_dir=.
1035 echo "PATH: $as_dir"
1036 done
1038 } >&5
1040 cat >&5 <<_ACEOF
1043 ## ----------- ##
1044 ## Core tests. ##
1045 ## ----------- ##
1047 _ACEOF
1050 # Keep a trace of the command line.
1051 # Strip out --no-create and --no-recursion so they do not pile up.
1052 # Strip out --silent because we don't want to record it for future runs.
1053 # Also quote any args containing shell meta-characters.
1054 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_configure_args=
1056 ac_configure_args0=
1057 ac_configure_args1=
1058 ac_sep=
1059 ac_must_keep_next=false
1060 for ac_pass in 1 2
1062 for ac_arg
1064 case $ac_arg in
1065 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 continue ;;
1069 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1070 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1071 esac
1072 case $ac_pass in
1073 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1075 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1076 if test $ac_must_keep_next = true; then
1077 ac_must_keep_next=false # Got value, back to normal.
1078 else
1079 case $ac_arg in
1080 *=* | --config-cache | -C | -disable-* | --disable-* \
1081 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1082 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1083 | -with-* | --with-* | -without-* | --without-* | --x)
1084 case "$ac_configure_args0 " in
1085 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1086 esac
1088 -* ) ac_must_keep_next=true ;;
1089 esac
1091 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1092 # Get rid of the leading space.
1093 ac_sep=" "
1095 esac
1096 done
1097 done
1098 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1099 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1101 # When interrupted or exit'd, cleanup temporary files, and complete
1102 # config.log. We remove comments because anyway the quotes in there
1103 # would cause problems or look ugly.
1104 # WARNING: Be sure not to use single quotes in there, as some shells,
1105 # such as our DU 5.0 friend, will then `close' the trap.
1106 trap 'exit_status=$?
1107 # Save into config.log some information that might help in debugging.
1109 echo
1111 cat <<\_ASBOX
1112 ## ---------------- ##
1113 ## Cache variables. ##
1114 ## ---------------- ##
1115 _ASBOX
1116 echo
1117 # The following way of writing the cache mishandles newlines in values,
1119 (set) 2>&1 |
1120 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1121 *ac_space=\ *)
1122 sed -n \
1123 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1127 sed -n \
1128 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 esac;
1132 echo
1134 cat <<\_ASBOX
1135 ## ----------------- ##
1136 ## Output variables. ##
1137 ## ----------------- ##
1138 _ASBOX
1139 echo
1140 for ac_var in $ac_subst_vars
1142 eval ac_val=$`echo $ac_var`
1143 echo "$ac_var='"'"'$ac_val'"'"'"
1144 done | sort
1145 echo
1147 if test -n "$ac_subst_files"; then
1148 cat <<\_ASBOX
1149 ## ------------- ##
1150 ## Output files. ##
1151 ## ------------- ##
1152 _ASBOX
1153 echo
1154 for ac_var in $ac_subst_files
1156 eval ac_val=$`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1158 done | sort
1159 echo
1162 if test -s confdefs.h; then
1163 cat <<\_ASBOX
1164 ## ----------- ##
1165 ## confdefs.h. ##
1166 ## ----------- ##
1167 _ASBOX
1168 echo
1169 sed "/^$/d" confdefs.h | sort
1170 echo
1172 test "$ac_signal" != 0 &&
1173 echo "$as_me: caught signal $ac_signal"
1174 echo "$as_me: exit $exit_status"
1175 } >&5
1176 rm -f core *.core &&
1177 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1178 exit $exit_status
1180 for ac_signal in 1 2 13 15; do
1181 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 done
1183 ac_signal=0
1185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1186 rm -rf conftest* confdefs.h
1187 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1188 echo >confdefs.h
1190 # Predefined preprocessor variables.
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 _ACEOF
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 _ACEOF
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 _ACEOF
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 _ACEOF
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 _ACEOF
1217 # Let the site file select an alternate cache file if it wants to.
1218 # Prefer explicitly selected file to automatically selected ones.
1219 if test -z "$CONFIG_SITE"; then
1220 if test "x$prefix" != xNONE; then
1221 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1222 else
1223 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1226 for ac_site_file in $CONFIG_SITE; do
1227 if test -r "$ac_site_file"; then
1228 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1229 echo "$as_me: loading site script $ac_site_file" >&6;}
1230 sed 's/^/| /' "$ac_site_file" >&5
1231 . "$ac_site_file"
1233 done
1235 if test -r "$cache_file"; then
1236 # Some versions of bash will fail to source /dev/null (special
1237 # files actually), so we avoid doing that.
1238 if test -f "$cache_file"; then
1239 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1240 echo "$as_me: loading cache $cache_file" >&6;}
1241 case $cache_file in
1242 [\\/]* | ?:[\\/]* ) . $cache_file;;
1243 *) . ./$cache_file;;
1244 esac
1246 else
1247 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1248 echo "$as_me: creating cache $cache_file" >&6;}
1249 >$cache_file
1252 # Check that the precious variables saved in the cache have kept the same
1253 # value.
1254 ac_cache_corrupted=false
1255 for ac_var in `(set) 2>&1 |
1256 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1257 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1258 eval ac_new_set=\$ac_env_${ac_var}_set
1259 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1260 eval ac_new_val="\$ac_env_${ac_var}_value"
1261 case $ac_old_set,$ac_new_set in
1262 set,)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,set)
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1270 ,);;
1272 if test "x$ac_old_val" != "x$ac_new_val"; then
1273 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1274 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1275 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1276 echo "$as_me: former value: $ac_old_val" >&2;}
1277 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1278 echo "$as_me: current value: $ac_new_val" >&2;}
1279 ac_cache_corrupted=:
1280 fi;;
1281 esac
1282 # Pass precious variables to config.status.
1283 if test "$ac_new_set" = set; then
1284 case $ac_new_val in
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 *) ac_arg=$ac_var=$ac_new_val ;;
1288 esac
1289 case " $ac_configure_args " in
1290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1291 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 esac
1294 done
1295 if $ac_cache_corrupted; then
1296 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1297 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1298 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1299 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1300 { (exit 1); exit 1; }; }
1303 ac_ext=c
1304 ac_cpp='$CPP $CPPFLAGS'
1305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336 ac_config_headers="$ac_config_headers include/config.h"
1338 ac_aux_dir=
1339 for ac_dir in tools $srcdir/tools; do
1340 if test -f $ac_dir/install-sh; then
1341 ac_aux_dir=$ac_dir
1342 ac_install_sh="$ac_aux_dir/install-sh -c"
1343 break
1344 elif test -f $ac_dir/install.sh; then
1345 ac_aux_dir=$ac_dir
1346 ac_install_sh="$ac_aux_dir/install.sh -c"
1347 break
1348 elif test -f $ac_dir/shtool; then
1349 ac_aux_dir=$ac_dir
1350 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 break
1353 done
1354 if test -z "$ac_aux_dir"; then
1355 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1357 { (exit 1); exit 1; }; }
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1365 # Check whether --enable-win16 or --disable-win16 was given.
1366 if test "${enable_win16+set}" = set; then
1367 enableval="$enable_win16"
1370 # Check whether --enable-debug or --disable-debug was given.
1371 if test "${enable_debug+set}" = set; then
1372 enableval="$enable_debug"
1375 # Check whether --enable-trace or --disable-trace was given.
1376 if test "${enable_trace+set}" = set; then
1377 enableval="$enable_trace"
1382 # Check whether --with-opengl or --without-opengl was given.
1383 if test "${with_opengl+set}" = set; then
1384 withval="$with_opengl"
1388 # Check whether --with-curses or --without-curses was given.
1389 if test "${with_curses+set}" = set; then
1390 withval="$with_curses"
1394 # Check whether --with-wine-tools or --without-wine-tools was given.
1395 if test "${with_wine_tools+set}" = set; then
1396 withval="$with_wine_tools"
1400 WIN16_FILES="\$(WIN16_FILES)"
1402 WIN16_INSTALL="\$(WIN16_INSTALL)"
1404 if test "x$enable_win16" = "xno"
1405 then
1406 WIN16_FILES=""
1407 WIN16_INSTALL=""
1409 if test "x$enable_debug" = "xno"
1410 then
1412 cat >>confdefs.h <<\_ACEOF
1413 #define NO_DEBUG_MSGS 1
1414 _ACEOF
1417 if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
1418 then
1420 cat >>confdefs.h <<\_ACEOF
1421 #define NO_TRACE_MSGS 1
1422 _ACEOF
1427 # Make sure we can run config.sub.
1428 $ac_config_sub sun4 >/dev/null 2>&1 ||
1429 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1430 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1431 { (exit 1); exit 1; }; }
1433 echo "$as_me:$LINENO: checking build system type" >&5
1434 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1435 if test "${ac_cv_build+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 ac_cv_build_alias=$build_alias
1439 test -z "$ac_cv_build_alias" &&
1440 ac_cv_build_alias=`$ac_config_guess`
1441 test -z "$ac_cv_build_alias" &&
1442 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1443 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1444 { (exit 1); exit 1; }; }
1445 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1446 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1447 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1448 { (exit 1); exit 1; }; }
1451 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1452 echo "${ECHO_T}$ac_cv_build" >&6
1453 build=$ac_cv_build
1454 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459 echo "$as_me:$LINENO: checking host system type" >&5
1460 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1461 if test "${ac_cv_host+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1463 else
1464 ac_cv_host_alias=$host_alias
1465 test -z "$ac_cv_host_alias" &&
1466 ac_cv_host_alias=$ac_cv_build_alias
1467 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1468 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1469 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1470 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1474 echo "${ECHO_T}$ac_cv_host" >&6
1475 host=$ac_cv_host
1476 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1477 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1478 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1481 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1482 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1483 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1484 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 cat >conftest.make <<\_ACEOF
1488 all:
1489 @echo 'ac_maketemp="$(MAKE)"'
1490 _ACEOF
1491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1492 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1493 if test -n "$ac_maketemp"; then
1494 eval ac_cv_prog_make_${ac_make}_set=yes
1495 else
1496 eval ac_cv_prog_make_${ac_make}_set=no
1498 rm -f conftest.make
1500 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1501 echo "$as_me:$LINENO: result: yes" >&5
1502 echo "${ECHO_T}yes" >&6
1503 SET_MAKE=
1504 else
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 SET_MAKE="MAKE=${MAKE-make}"
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1515 if test -n "$ac_tool_prefix"; then
1516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1517 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1537 done
1538 done
1542 CC=$ac_cv_prog_CC
1543 if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545 echo "${ECHO_T}$CC" >&6
1546 else
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1552 if test -z "$ac_cv_prog_CC"; then
1553 ac_ct_CC=$CC
1554 # Extract the first word of "gcc", so it can be a program name with args.
1555 set dummy gcc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1559 echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561 if test -n "$ac_ct_CC"; then
1562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1567 IFS=$as_save_IFS
1568 test -z "$as_dir" && as_dir=.
1569 for ac_exec_ext in '' $ac_executable_extensions; do
1570 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571 ac_cv_prog_ac_ct_CC="gcc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1575 done
1576 done
1580 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1581 if test -n "$ac_ct_CC"; then
1582 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1583 echo "${ECHO_T}$ac_ct_CC" >&6
1584 else
1585 echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1589 CC=$ac_ct_CC
1590 else
1591 CC="$ac_cv_prog_CC"
1594 if test -z "$CC"; then
1595 if test -n "$ac_tool_prefix"; then
1596 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1597 set dummy ${ac_tool_prefix}cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_CC="${ac_tool_prefix}cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1617 done
1618 done
1622 CC=$ac_cv_prog_CC
1623 if test -n "$CC"; then
1624 echo "$as_me:$LINENO: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1626 else
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1632 if test -z "$ac_cv_prog_CC"; then
1633 ac_ct_CC=$CC
1634 # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 if test -n "$ac_ct_CC"; then
1642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_ac_ct_CC="cc"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
1655 done
1656 done
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1664 else
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1669 CC=$ac_ct_CC
1670 else
1671 CC="$ac_cv_prog_CC"
1675 if test -z "$CC"; then
1676 # Extract the first word of "cc", so it can be a program name with args.
1677 set dummy cc; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_CC+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683 if test -n "$CC"; then
1684 ac_cv_prog_CC="$CC" # Let the user override the test.
1685 else
1686 ac_prog_rejected=no
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1695 ac_prog_rejected=yes
1696 continue
1698 ac_cv_prog_CC="cc"
1699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 break 2
1702 done
1703 done
1705 if test $ac_prog_rejected = yes; then
1706 # We found a bogon in the path, so make sure we never use it.
1707 set dummy $ac_cv_prog_CC
1708 shift
1709 if test $# != 0; then
1710 # We chose a different compiler from the bogus one.
1711 # However, it has the same basename, so the bogon will be chosen
1712 # first if we set CC to just the basename; use the full file name.
1713 shift
1714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1719 CC=$ac_cv_prog_CC
1720 if test -n "$CC"; then
1721 echo "$as_me:$LINENO: result: $CC" >&5
1722 echo "${ECHO_T}$CC" >&6
1723 else
1724 echo "$as_me:$LINENO: result: no" >&5
1725 echo "${ECHO_T}no" >&6
1729 if test -z "$CC"; then
1730 if test -n "$ac_tool_prefix"; then
1731 for ac_prog in cl
1733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1734 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_CC+set}" = set; then
1738 echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740 if test -n "$CC"; then
1741 ac_cv_prog_CC="$CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1746 IFS=$as_save_IFS
1747 test -z "$as_dir" && as_dir=.
1748 for ac_exec_ext in '' $ac_executable_extensions; do
1749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752 break 2
1754 done
1755 done
1759 CC=$ac_cv_prog_CC
1760 if test -n "$CC"; then
1761 echo "$as_me:$LINENO: result: $CC" >&5
1762 echo "${ECHO_T}$CC" >&6
1763 else
1764 echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1768 test -n "$CC" && break
1769 done
1771 if test -z "$CC"; then
1772 ac_ct_CC=$CC
1773 for ac_prog in cl
1775 # Extract the first word of "$ac_prog", so it can be a program name with args.
1776 set dummy $ac_prog; ac_word=$2
1777 echo "$as_me:$LINENO: checking for $ac_word" >&5
1778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781 else
1782 if test -n "$ac_ct_CC"; then
1783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1784 else
1785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 for as_dir in $PATH
1788 IFS=$as_save_IFS
1789 test -z "$as_dir" && as_dir=.
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792 ac_cv_prog_ac_ct_CC="$ac_prog"
1793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 break 2
1796 done
1797 done
1801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1802 if test -n "$ac_ct_CC"; then
1803 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1804 echo "${ECHO_T}$ac_ct_CC" >&6
1805 else
1806 echo "$as_me:$LINENO: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1810 test -n "$ac_ct_CC" && break
1811 done
1813 CC=$ac_ct_CC
1819 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1820 See \`config.log' for more details." >&5
1821 echo "$as_me: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&2;}
1823 { (exit 1); exit 1; }; }
1825 # Provide some information about the compiler.
1826 echo "$as_me:$LINENO:" \
1827 "checking for C compiler version" >&5
1828 ac_compiler=`set X $ac_compile; echo $2`
1829 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1830 (eval $ac_compiler --version </dev/null >&5) 2>&5
1831 ac_status=$?
1832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1833 (exit $ac_status); }
1834 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1835 (eval $ac_compiler -v </dev/null >&5) 2>&5
1836 ac_status=$?
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1840 (eval $ac_compiler -V </dev/null >&5) 2>&5
1841 ac_status=$?
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }
1845 cat >conftest.$ac_ext <<_ACEOF
1846 /* confdefs.h. */
1847 _ACEOF
1848 cat confdefs.h >>conftest.$ac_ext
1849 cat >>conftest.$ac_ext <<_ACEOF
1850 /* end confdefs.h. */
1853 main ()
1857 return 0;
1859 _ACEOF
1860 ac_clean_files_save=$ac_clean_files
1861 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1862 # Try to create an executable without -o first, disregard a.out.
1863 # It will help us diagnose broken compilers, and finding out an intuition
1864 # of exeext.
1865 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1866 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1867 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1868 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1869 (eval $ac_link_default) 2>&5
1870 ac_status=$?
1871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872 (exit $ac_status); }; then
1873 # Find the output, starting from the most likely. This scheme is
1874 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1875 # resort.
1877 # Be careful to initialize this variable, since it used to be cached.
1878 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1879 ac_cv_exeext=
1880 # b.out is created by i960 compilers.
1881 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1883 test -f "$ac_file" || continue
1884 case $ac_file in
1885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1887 conftest.$ac_ext )
1888 # This is the source file.
1890 [ab].out )
1891 # We found the default executable, but exeext='' is most
1892 # certainly right.
1893 break;;
1894 *.* )
1895 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1896 # FIXME: I believe we export ac_cv_exeext for Libtool,
1897 # but it would be cool to find out if it's true. Does anybody
1898 # maintain Libtool? --akim.
1899 export ac_cv_exeext
1900 break;;
1902 break;;
1903 esac
1904 done
1905 else
1906 echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1910 See \`config.log' for more details." >&5
1911 echo "$as_me: error: C compiler cannot create executables
1912 See \`config.log' for more details." >&2;}
1913 { (exit 77); exit 77; }; }
1916 ac_exeext=$ac_cv_exeext
1917 echo "$as_me:$LINENO: result: $ac_file" >&5
1918 echo "${ECHO_T}$ac_file" >&6
1920 # Check the compiler produces executables we can run. If not, either
1921 # the compiler is broken, or we cross compile.
1922 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1923 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1924 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1925 # If not cross compiling, check that we can run a simple program.
1926 if test "$cross_compiling" != yes; then
1927 if { ac_try='./$ac_file'
1928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929 (eval $ac_try) 2>&5
1930 ac_status=$?
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }; }; then
1933 cross_compiling=no
1934 else
1935 if test "$cross_compiling" = maybe; then
1936 cross_compiling=yes
1937 else
1938 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1939 If you meant to cross compile, use \`--host'.
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&2;}
1944 { (exit 1); exit 1; }; }
1948 echo "$as_me:$LINENO: result: yes" >&5
1949 echo "${ECHO_T}yes" >&6
1951 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1952 ac_clean_files=$ac_clean_files_save
1953 # Check the compiler produces executables we can run. If not, either
1954 # the compiler is broken, or we cross compile.
1955 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1956 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1957 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1958 echo "${ECHO_T}$cross_compiling" >&6
1960 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1961 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1963 (eval $ac_link) 2>&5
1964 ac_status=$?
1965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1966 (exit $ac_status); }; then
1967 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1968 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1969 # work properly (i.e., refer to `conftest.exe'), while it won't with
1970 # `rm'.
1971 for ac_file in conftest.exe conftest conftest.*; do
1972 test -f "$ac_file" || continue
1973 case $ac_file in
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1975 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1976 export ac_cv_exeext
1977 break;;
1978 * ) break;;
1979 esac
1980 done
1981 else
1982 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1983 See \`config.log' for more details." >&5
1984 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1985 See \`config.log' for more details." >&2;}
1986 { (exit 1); exit 1; }; }
1989 rm -f conftest$ac_cv_exeext
1990 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1991 echo "${ECHO_T}$ac_cv_exeext" >&6
1993 rm -f conftest.$ac_ext
1994 EXEEXT=$ac_cv_exeext
1995 ac_exeext=$EXEEXT
1996 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1997 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1998 if test "${ac_cv_objext+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 cat >conftest.$ac_ext <<_ACEOF
2002 /* confdefs.h. */
2003 _ACEOF
2004 cat confdefs.h >>conftest.$ac_ext
2005 cat >>conftest.$ac_ext <<_ACEOF
2006 /* end confdefs.h. */
2009 main ()
2013 return 0;
2015 _ACEOF
2016 rm -f conftest.o conftest.obj
2017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2018 (eval $ac_compile) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; then
2022 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2023 case $ac_file in
2024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2026 break;;
2027 esac
2028 done
2029 else
2030 echo "$as_me: failed program was:" >&5
2031 sed 's/^/| /' conftest.$ac_ext >&5
2033 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2036 See \`config.log' for more details." >&2;}
2037 { (exit 1); exit 1; }; }
2040 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2042 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2043 echo "${ECHO_T}$ac_cv_objext" >&6
2044 OBJEXT=$ac_cv_objext
2045 ac_objext=$OBJEXT
2046 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2047 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2048 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 cat >conftest.$ac_ext <<_ACEOF
2052 /* confdefs.h. */
2053 _ACEOF
2054 cat confdefs.h >>conftest.$ac_ext
2055 cat >>conftest.$ac_ext <<_ACEOF
2056 /* end confdefs.h. */
2059 main ()
2061 #ifndef __GNUC__
2062 choke me
2063 #endif
2066 return 0;
2068 _ACEOF
2069 rm -f conftest.$ac_objext
2070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2071 (eval $ac_compile) 2>conftest.er1
2072 ac_status=$?
2073 grep -v '^ *+' conftest.er1 >conftest.err
2074 rm -f conftest.er1
2075 cat conftest.err >&5
2076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2077 (exit $ac_status); } &&
2078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2080 (eval $ac_try) 2>&5
2081 ac_status=$?
2082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083 (exit $ac_status); }; } &&
2084 { ac_try='test -s conftest.$ac_objext'
2085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2086 (eval $ac_try) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; }; then
2090 ac_compiler_gnu=yes
2091 else
2092 echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2095 ac_compiler_gnu=no
2097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2101 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2102 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2103 GCC=`test $ac_compiler_gnu = yes && echo yes`
2104 ac_test_CFLAGS=${CFLAGS+set}
2105 ac_save_CFLAGS=$CFLAGS
2106 CFLAGS="-g"
2107 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2108 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2109 if test "${ac_cv_prog_cc_g+set}" = set; then
2110 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112 cat >conftest.$ac_ext <<_ACEOF
2113 /* confdefs.h. */
2114 _ACEOF
2115 cat confdefs.h >>conftest.$ac_ext
2116 cat >>conftest.$ac_ext <<_ACEOF
2117 /* end confdefs.h. */
2120 main ()
2124 return 0;
2126 _ACEOF
2127 rm -f conftest.$ac_objext
2128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2129 (eval $ac_compile) 2>conftest.er1
2130 ac_status=$?
2131 grep -v '^ *+' conftest.er1 >conftest.err
2132 rm -f conftest.er1
2133 cat conftest.err >&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); } &&
2136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138 (eval $ac_try) 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; } &&
2142 { ac_try='test -s conftest.$ac_objext'
2143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144 (eval $ac_try) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; }; then
2148 ac_cv_prog_cc_g=yes
2149 else
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2153 ac_cv_prog_cc_g=no
2155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2157 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2158 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2159 if test "$ac_test_CFLAGS" = set; then
2160 CFLAGS=$ac_save_CFLAGS
2161 elif test $ac_cv_prog_cc_g = yes; then
2162 if test "$GCC" = yes; then
2163 CFLAGS="-g -O2"
2164 else
2165 CFLAGS="-g"
2167 else
2168 if test "$GCC" = yes; then
2169 CFLAGS="-O2"
2170 else
2171 CFLAGS=
2174 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2175 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179 ac_cv_prog_cc_stdc=no
2180 ac_save_CC=$CC
2181 cat >conftest.$ac_ext <<_ACEOF
2182 /* confdefs.h. */
2183 _ACEOF
2184 cat confdefs.h >>conftest.$ac_ext
2185 cat >>conftest.$ac_ext <<_ACEOF
2186 /* end confdefs.h. */
2187 #include <stdarg.h>
2188 #include <stdio.h>
2189 #include <sys/types.h>
2190 #include <sys/stat.h>
2191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2192 struct buf { int x; };
2193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2194 static char *e (p, i)
2195 char **p;
2196 int i;
2198 return p[i];
2200 static char *f (char * (*g) (char **, int), char **p, ...)
2202 char *s;
2203 va_list v;
2204 va_start (v,p);
2205 s = g (p, va_arg (v,int));
2206 va_end (v);
2207 return s;
2210 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2211 function prototypes and stuff, but not '\xHH' hex character constants.
2212 These don't provoke an error unfortunately, instead are silently treated
2213 as 'x'. The following induces an error, until -std1 is added to get
2214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2215 array size at least. It's necessary to write '\x00'==0 to get something
2216 that's true only with -std1. */
2217 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2219 int test (int i, double x);
2220 struct s1 {int (*f) (int a);};
2221 struct s2 {int (*f) (double a);};
2222 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2223 int argc;
2224 char **argv;
2226 main ()
2228 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2230 return 0;
2232 _ACEOF
2233 # Don't try gcc -ansi; that turns off useful extensions and
2234 # breaks some systems' header files.
2235 # AIX -qlanglvl=ansi
2236 # Ultrix and OSF/1 -std1
2237 # HP-UX 10.20 and later -Ae
2238 # HP-UX older versions -Aa -D_HPUX_SOURCE
2239 # SVR4 -Xc -D__EXTENSIONS__
2240 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2242 CC="$ac_save_CC $ac_arg"
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>conftest.er1
2246 ac_status=$?
2247 grep -v '^ *+' conftest.er1 >conftest.err
2248 rm -f conftest.er1
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254 (eval $ac_try) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); }; } &&
2258 { ac_try='test -s conftest.$ac_objext'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2264 ac_cv_prog_cc_stdc=$ac_arg
2265 break
2266 else
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2271 rm -f conftest.err conftest.$ac_objext
2272 done
2273 rm -f conftest.$ac_ext conftest.$ac_objext
2274 CC=$ac_save_CC
2278 case "x$ac_cv_prog_cc_stdc" in
2279 x|xno)
2280 echo "$as_me:$LINENO: result: none needed" >&5
2281 echo "${ECHO_T}none needed" >&6 ;;
2283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2285 CC="$CC $ac_cv_prog_cc_stdc" ;;
2286 esac
2288 # Some people use a C++ compiler to compile C. Since we use `exit',
2289 # in C++ we need to declare it. In case someone uses the same compiler
2290 # for both compiling C and C++ we need to have the C++ compiler decide
2291 # the declaration of exit, since it's the most demanding environment.
2292 cat >conftest.$ac_ext <<_ACEOF
2293 #ifndef __cplusplus
2294 choke me
2295 #endif
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>conftest.er1
2300 ac_status=$?
2301 grep -v '^ *+' conftest.er1 >conftest.err
2302 rm -f conftest.er1
2303 cat conftest.err >&5
2304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305 (exit $ac_status); } &&
2306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 for ac_declaration in \
2319 '' \
2320 'extern "C" void std::exit (int) throw (); using std::exit;' \
2321 'extern "C" void std::exit (int); using std::exit;' \
2322 'extern "C" void exit (int) throw ();' \
2323 'extern "C" void exit (int);' \
2324 'void exit (int);'
2326 cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h. */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2332 $ac_declaration
2333 #include <stdlib.h>
2335 main ()
2337 exit (42);
2339 return 0;
2341 _ACEOF
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2345 ac_status=$?
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2364 else
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2368 continue
2370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2377 $ac_declaration
2379 main ()
2381 exit (42);
2383 return 0;
2385 _ACEOF
2386 rm -f conftest.$ac_objext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2388 (eval $ac_compile) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 break
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2414 done
2415 rm -f conftest*
2416 if test -n "$ac_declaration"; then
2417 echo '#ifdef __cplusplus' >>confdefs.h
2418 echo $ac_declaration >>confdefs.h
2419 echo '#endif' >>confdefs.h
2422 else
2423 echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 ac_ext=cc
2435 ac_cpp='$CXXCPP $CPPFLAGS'
2436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2439 if test -n "$ac_tool_prefix"; then
2440 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444 echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2446 if test "${ac_cv_prog_CXX+set}" = set; then
2447 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449 if test -n "$CXX"; then
2450 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2455 IFS=$as_save_IFS
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2459 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 break 2
2463 done
2464 done
2468 CXX=$ac_cv_prog_CXX
2469 if test -n "$CXX"; then
2470 echo "$as_me:$LINENO: result: $CXX" >&5
2471 echo "${ECHO_T}$CXX" >&6
2472 else
2473 echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6
2477 test -n "$CXX" && break
2478 done
2480 if test -z "$CXX"; then
2481 ac_ct_CXX=$CXX
2482 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2484 # Extract the first word of "$ac_prog", so it can be a program name with args.
2485 set dummy $ac_prog; ac_word=$2
2486 echo "$as_me:$LINENO: checking for $ac_word" >&5
2487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491 if test -n "$ac_ct_CXX"; then
2492 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2493 else
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_ac_ct_CXX="$ac_prog"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2505 done
2506 done
2510 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2511 if test -n "$ac_ct_CXX"; then
2512 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2513 echo "${ECHO_T}$ac_ct_CXX" >&6
2514 else
2515 echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2519 test -n "$ac_ct_CXX" && break
2520 done
2521 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2523 CXX=$ac_ct_CXX
2527 # Provide some information about the compiler.
2528 echo "$as_me:$LINENO:" \
2529 "checking for C++ compiler version" >&5
2530 ac_compiler=`set X $ac_compile; echo $2`
2531 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2532 (eval $ac_compiler --version </dev/null >&5) 2>&5
2533 ac_status=$?
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }
2536 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2537 (eval $ac_compiler -v </dev/null >&5) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2541 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2542 (eval $ac_compiler -V </dev/null >&5) 2>&5
2543 ac_status=$?
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }
2547 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2548 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2549 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552 cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h. */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2560 main ()
2562 #ifndef __GNUC__
2563 choke me
2564 #endif
2567 return 0;
2569 _ACEOF
2570 rm -f conftest.$ac_objext
2571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572 (eval $ac_compile) 2>conftest.er1
2573 ac_status=$?
2574 grep -v '^ *+' conftest.er1 >conftest.err
2575 rm -f conftest.er1
2576 cat conftest.err >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581 (eval $ac_try) 2>&5
2582 ac_status=$?
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 (eval $ac_try) 2>&5
2588 ac_status=$?
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2591 ac_compiler_gnu=yes
2592 else
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2596 ac_compiler_gnu=no
2598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2602 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2603 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2604 GXX=`test $ac_compiler_gnu = yes && echo yes`
2605 ac_test_CXXFLAGS=${CXXFLAGS+set}
2606 ac_save_CXXFLAGS=$CXXFLAGS
2607 CXXFLAGS="-g"
2608 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2609 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2610 if test "${ac_cv_prog_cxx_g+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613 cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h. */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2621 main ()
2625 return 0;
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630 (eval $ac_compile) 2>conftest.er1
2631 ac_status=$?
2632 grep -v '^ *+' conftest.er1 >conftest.err
2633 rm -f conftest.er1
2634 cat conftest.err >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 (eval $ac_try) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645 (eval $ac_try) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2649 ac_cv_prog_cxx_g=yes
2650 else
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2654 ac_cv_prog_cxx_g=no
2656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2660 if test "$ac_test_CXXFLAGS" = set; then
2661 CXXFLAGS=$ac_save_CXXFLAGS
2662 elif test $ac_cv_prog_cxx_g = yes; then
2663 if test "$GXX" = yes; then
2664 CXXFLAGS="-g -O2"
2665 else
2666 CXXFLAGS="-g"
2668 else
2669 if test "$GXX" = yes; then
2670 CXXFLAGS="-O2"
2671 else
2672 CXXFLAGS=
2675 for ac_declaration in \
2676 '' \
2677 'extern "C" void std::exit (int) throw (); using std::exit;' \
2678 'extern "C" void std::exit (int); using std::exit;' \
2679 'extern "C" void exit (int) throw ();' \
2680 'extern "C" void exit (int);' \
2681 'void exit (int);'
2683 cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h. */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2689 $ac_declaration
2690 #include <stdlib.h>
2692 main ()
2694 exit (42);
2696 return 0;
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701 (eval $ac_compile) 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } &&
2708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2721 else
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2725 continue
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2734 $ac_declaration
2736 main ()
2738 exit (42);
2740 return 0;
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745 (eval $ac_compile) 2>conftest.er1
2746 ac_status=$?
2747 grep -v '^ *+' conftest.er1 >conftest.err
2748 rm -f conftest.er1
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } &&
2752 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754 (eval $ac_try) 2>&5
2755 ac_status=$?
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; } &&
2758 { ac_try='test -s conftest.$ac_objext'
2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760 (eval $ac_try) 2>&5
2761 ac_status=$?
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); }; }; then
2764 break
2765 else
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2771 done
2772 rm -f conftest*
2773 if test -n "$ac_declaration"; then
2774 echo '#ifdef __cplusplus' >>confdefs.h
2775 echo $ac_declaration >>confdefs.h
2776 echo '#endif' >>confdefs.h
2779 ac_ext=c
2780 ac_cpp='$CPP $CPPFLAGS'
2781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785 if test -n "$ac_tool_prefix"; then
2786 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2787 set dummy ${ac_tool_prefix}cpp; ac_word=$2
2788 echo "$as_me:$LINENO: checking for $ac_word" >&5
2789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2790 if test "${ac_cv_prog_CPPBIN+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 if test -n "$CPPBIN"; then
2794 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
2795 else
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 for as_dir in $PATH
2799 IFS=$as_save_IFS
2800 test -z "$as_dir" && as_dir=.
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
2804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 break 2
2807 done
2808 done
2812 CPPBIN=$ac_cv_prog_CPPBIN
2813 if test -n "$CPPBIN"; then
2814 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2815 echo "${ECHO_T}$CPPBIN" >&6
2816 else
2817 echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6
2822 if test -z "$ac_cv_prog_CPPBIN"; then
2823 ac_ct_CPPBIN=$CPPBIN
2824 # Extract the first word of "cpp", so it can be a program name with args.
2825 set dummy cpp; ac_word=$2
2826 echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2828 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831 if test -n "$ac_ct_CPPBIN"; then
2832 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_ac_ct_CPPBIN="cpp"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2845 done
2846 done
2848 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
2851 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2852 if test -n "$ac_ct_CPPBIN"; then
2853 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2854 echo "${ECHO_T}$ac_ct_CPPBIN" >&6
2855 else
2856 echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6
2860 CPPBIN=$ac_ct_CPPBIN
2861 else
2862 CPPBIN="$ac_cv_prog_CPPBIN"
2866 echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2867 echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2868 if test "${wine_cv_toolsdir+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 if test -z "$with_wine_tools"; then
2872 if test "$cross_compiling" = "yes"; then
2873 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2874 echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2875 { (exit 1); exit 1; }; }
2876 else
2877 wine_cv_toolsdir="\$(TOPOBJDIR)"
2879 elif test -d "$with_wine_tools/tools/winebuild"; then
2880 case $with_wine_tools in
2881 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2882 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2883 esac
2884 else
2885 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2886 echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2887 { (exit 1); exit 1; }; }
2890 echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2891 echo "${ECHO_T}$wine_cv_toolsdir" >&6
2892 TOOLSDIR=$wine_cv_toolsdir
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2905 CPP=
2907 if test -z "$CPP"; then
2908 if test "${ac_cv_prog_CPP+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 # Double quotes because CPP needs to be expanded
2912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2914 ac_preproc_ok=false
2915 for ac_c_preproc_warn_flag in '' yes
2917 # Use a header file that comes with gcc, so configuring glibc
2918 # with a fresh cross-compiler works.
2919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920 # <limits.h> exists even on freestanding compilers.
2921 # On the NeXT, cc -E runs the code through the compiler's parser,
2922 # not just through cpp. "Syntax error" is here to catch this case.
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2929 #ifdef __STDC__
2930 # include <limits.h>
2931 #else
2932 # include <assert.h>
2933 #endif
2934 Syntax error
2935 _ACEOF
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } >/dev/null; then
2944 if test -s conftest.err; then
2945 ac_cpp_err=$ac_c_preproc_warn_flag
2946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2947 else
2948 ac_cpp_err=
2950 else
2951 ac_cpp_err=yes
2953 if test -z "$ac_cpp_err"; then
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 # Broken: fails on valid input.
2960 continue
2962 rm -f conftest.err conftest.$ac_ext
2964 # OK, works on sane cases. Now check whether non-existent headers
2965 # can be detected and how.
2966 cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h. */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h. */
2972 #include <ac_nonexistent.h>
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976 ac_status=$?
2977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } >/dev/null; then
2982 if test -s conftest.err; then
2983 ac_cpp_err=$ac_c_preproc_warn_flag
2984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985 else
2986 ac_cpp_err=
2988 else
2989 ac_cpp_err=yes
2991 if test -z "$ac_cpp_err"; then
2992 # Broken: success on invalid input.
2993 continue
2994 else
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2998 # Passes both tests.
2999 ac_preproc_ok=:
3000 break
3002 rm -f conftest.err conftest.$ac_ext
3004 done
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3008 break
3011 done
3012 ac_cv_prog_CPP=$CPP
3015 CPP=$ac_cv_prog_CPP
3016 else
3017 ac_cv_prog_CPP=$CPP
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3021 ac_preproc_ok=false
3022 for ac_c_preproc_warn_flag in '' yes
3024 # Use a header file that comes with gcc, so configuring glibc
3025 # with a fresh cross-compiler works.
3026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027 # <limits.h> exists even on freestanding compilers.
3028 # On the NeXT, cc -E runs the code through the compiler's parser,
3029 # not just through cpp. "Syntax error" is here to catch this case.
3030 cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h. */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h. */
3036 #ifdef __STDC__
3037 # include <limits.h>
3038 #else
3039 # include <assert.h>
3040 #endif
3041 Syntax error
3042 _ACEOF
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045 ac_status=$?
3046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } >/dev/null; then
3051 if test -s conftest.err; then
3052 ac_cpp_err=$ac_c_preproc_warn_flag
3053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3054 else
3055 ac_cpp_err=
3057 else
3058 ac_cpp_err=yes
3060 if test -z "$ac_cpp_err"; then
3062 else
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3066 # Broken: fails on valid input.
3067 continue
3069 rm -f conftest.err conftest.$ac_ext
3071 # OK, works on sane cases. Now check whether non-existent headers
3072 # can be detected and how.
3073 cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h. */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h. */
3079 #include <ac_nonexistent.h>
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083 ac_status=$?
3084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } >/dev/null; then
3089 if test -s conftest.err; then
3090 ac_cpp_err=$ac_c_preproc_warn_flag
3091 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092 else
3093 ac_cpp_err=
3095 else
3096 ac_cpp_err=yes
3098 if test -z "$ac_cpp_err"; then
3099 # Broken: success on invalid input.
3100 continue
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3105 # Passes both tests.
3106 ac_preproc_ok=:
3107 break
3109 rm -f conftest.err conftest.$ac_ext
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3116 else
3117 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121 { (exit 1); exit 1; }; }
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3132 if test "x$ac_path_x_has_been_run" != xyes; then
3133 echo "$as_me:$LINENO: checking for X" >&5
3134 echo $ECHO_N "checking for X... $ECHO_C" >&6
3136 ac_path_x_has_been_run=yes
3138 # Check whether --with-x or --without-x was given.
3139 if test "${with_x+set}" = set; then
3140 withval="$with_x"
3143 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3144 if test "x$with_x" = xno; then
3145 # The user explicitly disabled X.
3146 have_x=disabled
3147 else
3148 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3149 # Both variables are already set.
3150 have_x=yes
3151 else
3152 if test "${ac_cv_have_x+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155 # One or both of the vars are not set, and there is no cached value.
3156 ac_x_includes=no ac_x_libraries=no
3157 rm -fr conftest.dir
3158 if mkdir conftest.dir; then
3159 cd conftest.dir
3160 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3161 cat >Imakefile <<'_ACEOF'
3162 acfindx:
3163 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3164 _ACEOF
3165 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3167 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3168 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3169 for ac_extension in a so sl; do
3170 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3171 test -f $ac_im_libdir/libX11.$ac_extension; then
3172 ac_im_usrlibdir=$ac_im_libdir; break
3174 done
3175 # Screen out bogus values from the imake configuration. They are
3176 # bogus both because they are the default anyway, and because
3177 # using them would break gcc on systems where it needs fixed includes.
3178 case $ac_im_incroot in
3179 /usr/include) ;;
3180 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3181 esac
3182 case $ac_im_usrlibdir in
3183 /usr/lib | /lib) ;;
3184 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3185 esac
3187 cd ..
3188 rm -fr conftest.dir
3191 # Standard set of common directories for X headers.
3192 # Check X11 before X11Rn because it is often a symlink to the current release.
3193 ac_x_header_dirs='
3194 /usr/X11/include
3195 /usr/X11R6/include
3196 /usr/X11R5/include
3197 /usr/X11R4/include
3199 /usr/include/X11
3200 /usr/include/X11R6
3201 /usr/include/X11R5
3202 /usr/include/X11R4
3204 /usr/local/X11/include
3205 /usr/local/X11R6/include
3206 /usr/local/X11R5/include
3207 /usr/local/X11R4/include
3209 /usr/local/include/X11
3210 /usr/local/include/X11R6
3211 /usr/local/include/X11R5
3212 /usr/local/include/X11R4
3214 /usr/X386/include
3215 /usr/x386/include
3216 /usr/XFree86/include/X11
3218 /usr/include
3219 /usr/local/include
3220 /usr/unsupported/include
3221 /usr/athena/include
3222 /usr/local/x11r5/include
3223 /usr/lpp/Xamples/include
3225 /usr/openwin/include
3226 /usr/openwin/share/include'
3228 if test "$ac_x_includes" = no; then
3229 # Guess where to find include files, by looking for a specified header file.
3230 # First, try using that file with no special directory specified.
3231 cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h. */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3237 #include <X11/Intrinsic.h>
3238 _ACEOF
3239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } >/dev/null; then
3247 if test -s conftest.err; then
3248 ac_cpp_err=$ac_c_preproc_warn_flag
3249 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3250 else
3251 ac_cpp_err=
3253 else
3254 ac_cpp_err=yes
3256 if test -z "$ac_cpp_err"; then
3257 # We can compile using X headers with no special include directory.
3258 ac_x_includes=
3259 else
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 for ac_dir in $ac_x_header_dirs; do
3264 if test -r "$ac_dir/X11/Intrinsic.h"; then
3265 ac_x_includes=$ac_dir
3266 break
3268 done
3270 rm -f conftest.err conftest.$ac_ext
3271 fi # $ac_x_includes = no
3273 if test "$ac_x_libraries" = no; then
3274 # Check for the libraries.
3275 # See if we find them without any special options.
3276 # Don't add to $LIBS permanently.
3277 ac_save_LIBS=$LIBS
3278 LIBS="-lXt $LIBS"
3279 cat >conftest.$ac_ext <<_ACEOF
3280 /* confdefs.h. */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3285 #include <X11/Intrinsic.h>
3287 main ()
3289 XtMalloc (0)
3291 return 0;
3293 _ACEOF
3294 rm -f conftest.$ac_objext conftest$ac_exeext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296 (eval $ac_link) 2>conftest.er1
3297 ac_status=$?
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } &&
3303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 (eval $ac_try) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest$ac_exeext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311 (eval $ac_try) 2>&5
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 LIBS=$ac_save_LIBS
3316 # We can link X programs with no special library path.
3317 ac_x_libraries=
3318 else
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3322 LIBS=$ac_save_LIBS
3323 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3325 # Don't even attempt the hair of trying to link an X program!
3326 for ac_extension in a so sl; do
3327 if test -r $ac_dir/libXt.$ac_extension; then
3328 ac_x_libraries=$ac_dir
3329 break 2
3331 done
3332 done
3334 rm -f conftest.err conftest.$ac_objext \
3335 conftest$ac_exeext conftest.$ac_ext
3336 fi # $ac_x_libraries = no
3338 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3339 # Didn't find X anywhere. Cache the known absence of X.
3340 ac_cv_have_x="have_x=no"
3341 else
3342 # Record where we found X for the cache.
3343 ac_cv_have_x="have_x=yes \
3344 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3349 eval "$ac_cv_have_x"
3350 fi # $with_x != no
3352 if test "$have_x" != yes; then
3353 echo "$as_me:$LINENO: result: $have_x" >&5
3354 echo "${ECHO_T}$have_x" >&6
3355 no_x=yes
3356 else
3357 # If each of the values was on the command line, it overrides each guess.
3358 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3359 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3360 # Update the cache value to reflect the command line values.
3361 ac_cv_have_x="have_x=yes \
3362 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3363 # It might be that x_includes is empty (headers are found in the
3364 # standard search path. Then output the corresponding message
3365 ac_out_x_includes=$x_includes
3366 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3367 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3368 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3372 if test "$no_x" = yes; then
3373 # Not all programs may use this symbol, but it does not hurt to define it.
3375 cat >>confdefs.h <<\_ACEOF
3376 #define X_DISPLAY_MISSING 1
3377 _ACEOF
3379 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3380 else
3381 if test -n "$x_includes"; then
3382 X_CFLAGS="$X_CFLAGS -I$x_includes"
3385 # It would also be nice to do this for all -L options, not just this one.
3386 if test -n "$x_libraries"; then
3387 X_LIBS="$X_LIBS -L$x_libraries"
3388 # For Solaris; some versions of Sun CC require a space after -R and
3389 # others require no space. Words are not sufficient . . . .
3390 case `(uname -sr) 2>/dev/null` in
3391 "SunOS 5"*)
3392 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3393 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3394 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3395 cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h. */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3403 main ()
3407 return 0;
3409 _ACEOF
3410 rm -f conftest.$ac_objext conftest$ac_exeext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3412 (eval $ac_link) 2>conftest.er1
3413 ac_status=$?
3414 grep -v '^ *+' conftest.er1 >conftest.err
3415 rm -f conftest.er1
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest$ac_exeext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_R_nospace=yes
3432 else
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 ac_R_nospace=no
3438 rm -f conftest.err conftest.$ac_objext \
3439 conftest$ac_exeext conftest.$ac_ext
3440 if test $ac_R_nospace = yes; then
3441 echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443 X_LIBS="$X_LIBS -R$x_libraries"
3444 else
3445 LIBS="$ac_xsave_LIBS -R $x_libraries"
3446 cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h. */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3454 main ()
3458 return 0;
3460 _ACEOF
3461 rm -f conftest.$ac_objext conftest$ac_exeext
3462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3463 (eval $ac_link) 2>conftest.er1
3464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472 (eval $ac_try) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; } &&
3476 { ac_try='test -s conftest$ac_exeext'
3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478 (eval $ac_try) 2>&5
3479 ac_status=$?
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3482 ac_R_space=yes
3483 else
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 ac_R_space=no
3489 rm -f conftest.err conftest.$ac_objext \
3490 conftest$ac_exeext conftest.$ac_ext
3491 if test $ac_R_space = yes; then
3492 echo "$as_me:$LINENO: result: yes" >&5
3493 echo "${ECHO_T}yes" >&6
3494 X_LIBS="$X_LIBS -R $x_libraries"
3495 else
3496 echo "$as_me:$LINENO: result: neither works" >&5
3497 echo "${ECHO_T}neither works" >&6
3500 LIBS=$ac_xsave_LIBS
3501 esac
3504 # Check for system-dependent libraries X programs must link with.
3505 # Do this before checking for the system-independent R6 libraries
3506 # (-lICE), since we may need -lsocket or whatever for X linking.
3508 if test "$ISC" = yes; then
3509 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3510 else
3511 # Martyn Johnson says this is needed for Ultrix, if the X
3512 # libraries were built with DECnet support. And Karl Berry says
3513 # the Alpha needs dnet_stub (dnet does not exist).
3514 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h. */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3522 /* Override any gcc2 internal prototype to avoid an error. */
3523 #ifdef __cplusplus
3524 extern "C"
3525 #endif
3526 /* We use char because int might match the return type of a gcc2
3527 builtin and then its argument prototype would still apply. */
3528 char XOpenDisplay ();
3530 main ()
3532 XOpenDisplay ();
3534 return 0;
3536 _ACEOF
3537 rm -f conftest.$ac_objext conftest$ac_exeext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3539 (eval $ac_link) 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
3546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; } &&
3552 { ac_try='test -s conftest$ac_exeext'
3553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554 (eval $ac_try) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }; }; then
3559 else
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3564 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3565 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 else
3568 ac_check_lib_save_LIBS=$LIBS
3569 LIBS="-ldnet $LIBS"
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3577 /* Override any gcc2 internal prototype to avoid an error. */
3578 #ifdef __cplusplus
3579 extern "C"
3580 #endif
3581 /* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3583 char dnet_ntoa ();
3585 main ()
3587 dnet_ntoa ();
3589 return 0;
3591 _ACEOF
3592 rm -f conftest.$ac_objext conftest$ac_exeext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3594 (eval $ac_link) 2>conftest.er1
3595 ac_status=$?
3596 grep -v '^ *+' conftest.er1 >conftest.err
3597 rm -f conftest.er1
3598 cat conftest.err >&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } &&
3601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 (eval $ac_try) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; } &&
3607 { ac_try='test -s conftest$ac_exeext'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 ac_cv_lib_dnet_dnet_ntoa=yes
3614 else
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 ac_cv_lib_dnet_dnet_ntoa=no
3620 rm -f conftest.err conftest.$ac_objext \
3621 conftest$ac_exeext conftest.$ac_ext
3622 LIBS=$ac_check_lib_save_LIBS
3624 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3625 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3626 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3627 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3630 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3631 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3632 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3633 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636 ac_check_lib_save_LIBS=$LIBS
3637 LIBS="-ldnet_stub $LIBS"
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3645 /* Override any gcc2 internal prototype to avoid an error. */
3646 #ifdef __cplusplus
3647 extern "C"
3648 #endif
3649 /* We use char because int might match the return type of a gcc2
3650 builtin and then its argument prototype would still apply. */
3651 char dnet_ntoa ();
3653 main ()
3655 dnet_ntoa ();
3657 return 0;
3659 _ACEOF
3660 rm -f conftest.$ac_objext conftest$ac_exeext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662 (eval $ac_link) 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest$ac_exeext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3682 else
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 ac_cv_lib_dnet_stub_dnet_ntoa=no
3688 rm -f conftest.err conftest.$ac_objext \
3689 conftest$ac_exeext conftest.$ac_ext
3690 LIBS=$ac_check_lib_save_LIBS
3692 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3693 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3694 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3695 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3700 rm -f conftest.err conftest.$ac_objext \
3701 conftest$ac_exeext conftest.$ac_ext
3702 LIBS="$ac_xsave_LIBS"
3704 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3705 # to get the SysV transport functions.
3706 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3707 # needs -lnsl.
3708 # The nsl library prevents programs from opening the X display
3709 # on Irix 5.2, according to T.E. Dickey.
3710 # The functions gethostbyname, getservbyname, and inet_addr are
3711 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3712 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3713 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3714 if test "${ac_cv_func_gethostbyname+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717 cat >conftest.$ac_ext <<_ACEOF
3718 /* confdefs.h. */
3719 _ACEOF
3720 cat confdefs.h >>conftest.$ac_ext
3721 cat >>conftest.$ac_ext <<_ACEOF
3722 /* end confdefs.h. */
3723 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3725 #define gethostbyname innocuous_gethostbyname
3727 /* System header to define __stub macros and hopefully few prototypes,
3728 which can conflict with char gethostbyname (); below.
3729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3730 <limits.h> exists even on freestanding compilers. */
3732 #ifdef __STDC__
3733 # include <limits.h>
3734 #else
3735 # include <assert.h>
3736 #endif
3738 #undef gethostbyname
3740 /* Override any gcc2 internal prototype to avoid an error. */
3741 #ifdef __cplusplus
3742 extern "C"
3744 #endif
3745 /* We use char because int might match the return type of a gcc2
3746 builtin and then its argument prototype would still apply. */
3747 char gethostbyname ();
3748 /* The GNU C library defines this for functions which it implements
3749 to always fail with ENOSYS. Some functions are actually named
3750 something starting with __ and the normal name is an alias. */
3751 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3752 choke me
3753 #else
3754 char (*f) () = gethostbyname;
3755 #endif
3756 #ifdef __cplusplus
3758 #endif
3761 main ()
3763 return f != gethostbyname;
3765 return 0;
3767 _ACEOF
3768 rm -f conftest.$ac_objext conftest$ac_exeext
3769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3770 (eval $ac_link) 2>conftest.er1
3771 ac_status=$?
3772 grep -v '^ *+' conftest.er1 >conftest.err
3773 rm -f conftest.er1
3774 cat conftest.err >&5
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); } &&
3777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest$ac_exeext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785 (eval $ac_try) 2>&5
3786 ac_status=$?
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 ac_cv_func_gethostbyname=yes
3790 else
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 ac_cv_func_gethostbyname=no
3796 rm -f conftest.err conftest.$ac_objext \
3797 conftest$ac_exeext conftest.$ac_ext
3799 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3800 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3802 if test $ac_cv_func_gethostbyname = no; then
3803 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3804 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3805 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808 ac_check_lib_save_LIBS=$LIBS
3809 LIBS="-lnsl $LIBS"
3810 cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h. */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3817 /* Override any gcc2 internal prototype to avoid an error. */
3818 #ifdef __cplusplus
3819 extern "C"
3820 #endif
3821 /* We use char because int might match the return type of a gcc2
3822 builtin and then its argument prototype would still apply. */
3823 char gethostbyname ();
3825 main ()
3827 gethostbyname ();
3829 return 0;
3831 _ACEOF
3832 rm -f conftest.$ac_objext conftest$ac_exeext
3833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3834 (eval $ac_link) 2>conftest.er1
3835 ac_status=$?
3836 grep -v '^ *+' conftest.er1 >conftest.err
3837 rm -f conftest.er1
3838 cat conftest.err >&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); } &&
3841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; } &&
3847 { ac_try='test -s conftest$ac_exeext'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 (eval $ac_try) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; }; then
3853 ac_cv_lib_nsl_gethostbyname=yes
3854 else
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3858 ac_cv_lib_nsl_gethostbyname=no
3860 rm -f conftest.err conftest.$ac_objext \
3861 conftest$ac_exeext conftest.$ac_ext
3862 LIBS=$ac_check_lib_save_LIBS
3864 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3865 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3866 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3870 if test $ac_cv_lib_nsl_gethostbyname = no; then
3871 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3872 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3873 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 ac_check_lib_save_LIBS=$LIBS
3877 LIBS="-lbsd $LIBS"
3878 cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h. */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3885 /* Override any gcc2 internal prototype to avoid an error. */
3886 #ifdef __cplusplus
3887 extern "C"
3888 #endif
3889 /* We use char because int might match the return type of a gcc2
3890 builtin and then its argument prototype would still apply. */
3891 char gethostbyname ();
3893 main ()
3895 gethostbyname ();
3897 return 0;
3899 _ACEOF
3900 rm -f conftest.$ac_objext conftest$ac_exeext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902 (eval $ac_link) 2>conftest.er1
3903 ac_status=$?
3904 grep -v '^ *+' conftest.er1 >conftest.err
3905 rm -f conftest.er1
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); } &&
3909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 (eval $ac_try) 2>&5
3912 ac_status=$?
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); }; } &&
3915 { ac_try='test -s conftest$ac_exeext'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; }; then
3921 ac_cv_lib_bsd_gethostbyname=yes
3922 else
3923 echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3926 ac_cv_lib_bsd_gethostbyname=no
3928 rm -f conftest.err conftest.$ac_objext \
3929 conftest$ac_exeext conftest.$ac_ext
3930 LIBS=$ac_check_lib_save_LIBS
3932 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3933 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3934 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3935 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3941 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3942 # socket/setsockopt and other routines are undefined under SCO ODT
3943 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3944 # on later versions), says Simon Leinen: it contains gethostby*
3945 # variants that don't use the name server (or something). -lsocket
3946 # must be given before -lnsl if both are needed. We assume that
3947 # if connect needs -lnsl, so does gethostbyname.
3948 echo "$as_me:$LINENO: checking for connect" >&5
3949 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3950 if test "${ac_cv_func_connect+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953 cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h. */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
3960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3961 #define connect innocuous_connect
3963 /* System header to define __stub macros and hopefully few prototypes,
3964 which can conflict with char connect (); below.
3965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966 <limits.h> exists even on freestanding compilers. */
3968 #ifdef __STDC__
3969 # include <limits.h>
3970 #else
3971 # include <assert.h>
3972 #endif
3974 #undef connect
3976 /* Override any gcc2 internal prototype to avoid an error. */
3977 #ifdef __cplusplus
3978 extern "C"
3980 #endif
3981 /* We use char because int might match the return type of a gcc2
3982 builtin and then its argument prototype would still apply. */
3983 char connect ();
3984 /* The GNU C library defines this for functions which it implements
3985 to always fail with ENOSYS. Some functions are actually named
3986 something starting with __ and the normal name is an alias. */
3987 #if defined (__stub_connect) || defined (__stub___connect)
3988 choke me
3989 #else
3990 char (*f) () = connect;
3991 #endif
3992 #ifdef __cplusplus
3994 #endif
3997 main ()
3999 return f != connect;
4001 return 0;
4003 _ACEOF
4004 rm -f conftest.$ac_objext conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006 (eval $ac_link) 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; } &&
4019 { ac_try='test -s conftest$ac_exeext'
4020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 (eval $ac_try) 2>&5
4022 ac_status=$?
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; }; then
4025 ac_cv_func_connect=yes
4026 else
4027 echo "$as_me: failed program was:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 ac_cv_func_connect=no
4032 rm -f conftest.err conftest.$ac_objext \
4033 conftest$ac_exeext conftest.$ac_ext
4035 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4036 echo "${ECHO_T}$ac_cv_func_connect" >&6
4038 if test $ac_cv_func_connect = no; then
4039 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4040 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4041 if test "${ac_cv_lib_socket_connect+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044 ac_check_lib_save_LIBS=$LIBS
4045 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h. */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4053 /* Override any gcc2 internal prototype to avoid an error. */
4054 #ifdef __cplusplus
4055 extern "C"
4056 #endif
4057 /* We use char because int might match the return type of a gcc2
4058 builtin and then its argument prototype would still apply. */
4059 char connect ();
4061 main ()
4063 connect ();
4065 return 0;
4067 _ACEOF
4068 rm -f conftest.$ac_objext conftest$ac_exeext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4070 (eval $ac_link) 2>conftest.er1
4071 ac_status=$?
4072 grep -v '^ *+' conftest.er1 >conftest.err
4073 rm -f conftest.er1
4074 cat conftest.err >&5
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; } &&
4083 { ac_try='test -s conftest$ac_exeext'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; }; then
4089 ac_cv_lib_socket_connect=yes
4090 else
4091 echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4094 ac_cv_lib_socket_connect=no
4096 rm -f conftest.err conftest.$ac_objext \
4097 conftest$ac_exeext conftest.$ac_ext
4098 LIBS=$ac_check_lib_save_LIBS
4100 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4101 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4102 if test $ac_cv_lib_socket_connect = yes; then
4103 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4108 # Guillermo Gomez says -lposix is necessary on A/UX.
4109 echo "$as_me:$LINENO: checking for remove" >&5
4110 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4111 if test "${ac_cv_func_remove+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114 cat >conftest.$ac_ext <<_ACEOF
4115 /* confdefs.h. */
4116 _ACEOF
4117 cat confdefs.h >>conftest.$ac_ext
4118 cat >>conftest.$ac_ext <<_ACEOF
4119 /* end confdefs.h. */
4120 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4122 #define remove innocuous_remove
4124 /* System header to define __stub macros and hopefully few prototypes,
4125 which can conflict with char remove (); below.
4126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127 <limits.h> exists even on freestanding compilers. */
4129 #ifdef __STDC__
4130 # include <limits.h>
4131 #else
4132 # include <assert.h>
4133 #endif
4135 #undef remove
4137 /* Override any gcc2 internal prototype to avoid an error. */
4138 #ifdef __cplusplus
4139 extern "C"
4141 #endif
4142 /* We use char because int might match the return type of a gcc2
4143 builtin and then its argument prototype would still apply. */
4144 char remove ();
4145 /* The GNU C library defines this for functions which it implements
4146 to always fail with ENOSYS. Some functions are actually named
4147 something starting with __ and the normal name is an alias. */
4148 #if defined (__stub_remove) || defined (__stub___remove)
4149 choke me
4150 #else
4151 char (*f) () = remove;
4152 #endif
4153 #ifdef __cplusplus
4155 #endif
4158 main ()
4160 return f != remove;
4162 return 0;
4164 _ACEOF
4165 rm -f conftest.$ac_objext conftest$ac_exeext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167 (eval $ac_link) 2>conftest.er1
4168 ac_status=$?
4169 grep -v '^ *+' conftest.er1 >conftest.err
4170 rm -f conftest.er1
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; } &&
4180 { ac_try='test -s conftest$ac_exeext'
4181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182 (eval $ac_try) 2>&5
4183 ac_status=$?
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185 (exit $ac_status); }; }; then
4186 ac_cv_func_remove=yes
4187 else
4188 echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4191 ac_cv_func_remove=no
4193 rm -f conftest.err conftest.$ac_objext \
4194 conftest$ac_exeext conftest.$ac_ext
4196 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4197 echo "${ECHO_T}$ac_cv_func_remove" >&6
4199 if test $ac_cv_func_remove = no; then
4200 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4201 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4202 if test "${ac_cv_lib_posix_remove+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 ac_check_lib_save_LIBS=$LIBS
4206 LIBS="-lposix $LIBS"
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h. */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4214 /* Override any gcc2 internal prototype to avoid an error. */
4215 #ifdef __cplusplus
4216 extern "C"
4217 #endif
4218 /* We use char because int might match the return type of a gcc2
4219 builtin and then its argument prototype would still apply. */
4220 char remove ();
4222 main ()
4224 remove ();
4226 return 0;
4228 _ACEOF
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4231 (eval $ac_link) 2>conftest.er1
4232 ac_status=$?
4233 grep -v '^ *+' conftest.er1 >conftest.err
4234 rm -f conftest.er1
4235 cat conftest.err >&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); } &&
4238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 (eval $ac_try) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; } &&
4244 { ac_try='test -s conftest$ac_exeext'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 (eval $ac_try) 2>&5
4247 ac_status=$?
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4250 ac_cv_lib_posix_remove=yes
4251 else
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 ac_cv_lib_posix_remove=no
4257 rm -f conftest.err conftest.$ac_objext \
4258 conftest$ac_exeext conftest.$ac_ext
4259 LIBS=$ac_check_lib_save_LIBS
4261 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4262 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4263 if test $ac_cv_lib_posix_remove = yes; then
4264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4269 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4270 echo "$as_me:$LINENO: checking for shmat" >&5
4271 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4272 if test "${ac_cv_func_shmat+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h. */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h. */
4281 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4283 #define shmat innocuous_shmat
4285 /* System header to define __stub macros and hopefully few prototypes,
4286 which can conflict with char shmat (); below.
4287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288 <limits.h> exists even on freestanding compilers. */
4290 #ifdef __STDC__
4291 # include <limits.h>
4292 #else
4293 # include <assert.h>
4294 #endif
4296 #undef shmat
4298 /* Override any gcc2 internal prototype to avoid an error. */
4299 #ifdef __cplusplus
4300 extern "C"
4302 #endif
4303 /* We use char because int might match the return type of a gcc2
4304 builtin and then its argument prototype would still apply. */
4305 char shmat ();
4306 /* The GNU C library defines this for functions which it implements
4307 to always fail with ENOSYS. Some functions are actually named
4308 something starting with __ and the normal name is an alias. */
4309 #if defined (__stub_shmat) || defined (__stub___shmat)
4310 choke me
4311 #else
4312 char (*f) () = shmat;
4313 #endif
4314 #ifdef __cplusplus
4316 #endif
4319 main ()
4321 return f != shmat;
4323 return 0;
4325 _ACEOF
4326 rm -f conftest.$ac_objext conftest$ac_exeext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4328 (eval $ac_link) 2>conftest.er1
4329 ac_status=$?
4330 grep -v '^ *+' conftest.er1 >conftest.err
4331 rm -f conftest.er1
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } &&
4335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest$ac_exeext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 (eval $ac_try) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_func_shmat=yes
4348 else
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 ac_cv_func_shmat=no
4354 rm -f conftest.err conftest.$ac_objext \
4355 conftest$ac_exeext conftest.$ac_ext
4357 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4358 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4360 if test $ac_cv_func_shmat = no; then
4361 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4362 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4363 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 ac_check_lib_save_LIBS=$LIBS
4367 LIBS="-lipc $LIBS"
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h. */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4375 /* Override any gcc2 internal prototype to avoid an error. */
4376 #ifdef __cplusplus
4377 extern "C"
4378 #endif
4379 /* We use char because int might match the return type of a gcc2
4380 builtin and then its argument prototype would still apply. */
4381 char shmat ();
4383 main ()
4385 shmat ();
4387 return 0;
4389 _ACEOF
4390 rm -f conftest.$ac_objext conftest$ac_exeext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4392 (eval $ac_link) 2>conftest.er1
4393 ac_status=$?
4394 grep -v '^ *+' conftest.er1 >conftest.err
4395 rm -f conftest.er1
4396 cat conftest.err >&5
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); } &&
4399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 (eval $ac_try) 2>&5
4402 ac_status=$?
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); }; } &&
4405 { ac_try='test -s conftest$ac_exeext'
4406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4407 (eval $ac_try) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; }; then
4411 ac_cv_lib_ipc_shmat=yes
4412 else
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4416 ac_cv_lib_ipc_shmat=no
4418 rm -f conftest.err conftest.$ac_objext \
4419 conftest$ac_exeext conftest.$ac_ext
4420 LIBS=$ac_check_lib_save_LIBS
4422 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4423 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4424 if test $ac_cv_lib_ipc_shmat = yes; then
4425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4431 # Check for libraries that X11R6 Xt/Xaw programs need.
4432 ac_save_LDFLAGS=$LDFLAGS
4433 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4434 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4435 # check for ICE first), but we must link in the order -lSM -lICE or
4436 # we get undefined symbols. So assume we have SM if we have ICE.
4437 # These have to be linked with before -lX11, unlike the other
4438 # libraries we check for below, so use a different variable.
4439 # John Interrante, Karl Berry
4440 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4441 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4442 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 ac_check_lib_save_LIBS=$LIBS
4446 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4454 /* Override any gcc2 internal prototype to avoid an error. */
4455 #ifdef __cplusplus
4456 extern "C"
4457 #endif
4458 /* We use char because int might match the return type of a gcc2
4459 builtin and then its argument prototype would still apply. */
4460 char IceConnectionNumber ();
4462 main ()
4464 IceConnectionNumber ();
4466 return 0;
4468 _ACEOF
4469 rm -f conftest.$ac_objext conftest$ac_exeext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4471 (eval $ac_link) 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4480 (eval $ac_try) 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; } &&
4484 { ac_try='test -s conftest$ac_exeext'
4485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4486 (eval $ac_try) 2>&5
4487 ac_status=$?
4488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4490 ac_cv_lib_ICE_IceConnectionNumber=yes
4491 else
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 ac_cv_lib_ICE_IceConnectionNumber=no
4497 rm -f conftest.err conftest.$ac_objext \
4498 conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_check_lib_save_LIBS
4501 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4502 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4503 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4504 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4507 LDFLAGS=$ac_save_LDFLAGS
4511 for ac_prog in flex lex
4513 # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy $ac_prog; ac_word=$2
4515 echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517 if test "${ac_cv_prog_LEX+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 if test -n "$LEX"; then
4521 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530 ac_cv_prog_LEX="$ac_prog"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4534 done
4535 done
4539 LEX=$ac_cv_prog_LEX
4540 if test -n "$LEX"; then
4541 echo "$as_me:$LINENO: result: $LEX" >&5
4542 echo "${ECHO_T}$LEX" >&6
4543 else
4544 echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4548 test -n "$LEX" && break
4549 done
4550 test -n "$LEX" || LEX=":"
4552 if test -z "$LEXLIB"
4553 then
4554 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4555 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4556 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 ac_check_lib_save_LIBS=$LIBS
4560 LIBS="-lfl $LIBS"
4561 cat >conftest.$ac_ext <<_ACEOF
4562 /* confdefs.h. */
4563 _ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4568 /* Override any gcc2 internal prototype to avoid an error. */
4569 #ifdef __cplusplus
4570 extern "C"
4571 #endif
4572 /* We use char because int might match the return type of a gcc2
4573 builtin and then its argument prototype would still apply. */
4574 char yywrap ();
4576 main ()
4578 yywrap ();
4580 return 0;
4582 _ACEOF
4583 rm -f conftest.$ac_objext conftest$ac_exeext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4585 (eval $ac_link) 2>conftest.er1
4586 ac_status=$?
4587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4594 (eval $ac_try) 2>&5
4595 ac_status=$?
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest$ac_exeext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4600 (eval $ac_try) 2>&5
4601 ac_status=$?
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4604 ac_cv_lib_fl_yywrap=yes
4605 else
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4609 ac_cv_lib_fl_yywrap=no
4611 rm -f conftest.err conftest.$ac_objext \
4612 conftest$ac_exeext conftest.$ac_ext
4613 LIBS=$ac_check_lib_save_LIBS
4615 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4616 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4617 if test $ac_cv_lib_fl_yywrap = yes; then
4618 LEXLIB="-lfl"
4619 else
4620 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4621 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4622 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625 ac_check_lib_save_LIBS=$LIBS
4626 LIBS="-ll $LIBS"
4627 cat >conftest.$ac_ext <<_ACEOF
4628 /* confdefs.h. */
4629 _ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4634 /* Override any gcc2 internal prototype to avoid an error. */
4635 #ifdef __cplusplus
4636 extern "C"
4637 #endif
4638 /* We use char because int might match the return type of a gcc2
4639 builtin and then its argument prototype would still apply. */
4640 char yywrap ();
4642 main ()
4644 yywrap ();
4646 return 0;
4648 _ACEOF
4649 rm -f conftest.$ac_objext conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651 (eval $ac_link) 2>conftest.er1
4652 ac_status=$?
4653 grep -v '^ *+' conftest.er1 >conftest.err
4654 rm -f conftest.er1
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; } &&
4664 { ac_try='test -s conftest$ac_exeext'
4665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666 (eval $ac_try) 2>&5
4667 ac_status=$?
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; }; then
4670 ac_cv_lib_l_yywrap=yes
4671 else
4672 echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4675 ac_cv_lib_l_yywrap=no
4677 rm -f conftest.err conftest.$ac_objext \
4678 conftest$ac_exeext conftest.$ac_ext
4679 LIBS=$ac_check_lib_save_LIBS
4681 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4682 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4683 if test $ac_cv_lib_l_yywrap = yes; then
4684 LEXLIB="-ll"
4691 if test "x$LEX" != "x:"; then
4692 echo "$as_me:$LINENO: checking lex output file root" >&5
4693 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4694 if test "${ac_cv_prog_lex_root+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 # The minimal lex program is just a single line: %%. But some broken lexes
4698 # (Solaris, I think it was) want two %% lines, so accommodate them.
4699 cat >conftest.l <<_ACEOF
4702 _ACEOF
4703 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4704 (eval $LEX conftest.l) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }
4708 if test -f lex.yy.c; then
4709 ac_cv_prog_lex_root=lex.yy
4710 elif test -f lexyy.c; then
4711 ac_cv_prog_lex_root=lexyy
4712 else
4713 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4714 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4715 { (exit 1); exit 1; }; }
4718 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4719 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4720 rm -f conftest.l
4721 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4723 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4724 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4725 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728 # POSIX says lex can declare yytext either as a pointer or an array; the
4729 # default is implementation-dependent. Figure out which it is, since
4730 # not all implementations provide the %pointer and %array declarations.
4731 ac_cv_prog_lex_yytext_pointer=no
4732 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4733 ac_save_LIBS=$LIBS
4734 LIBS="$LIBS $LEXLIB"
4735 cat >conftest.$ac_ext <<_ACEOF
4736 `cat $LEX_OUTPUT_ROOT.c`
4737 _ACEOF
4738 rm -f conftest.$ac_objext conftest$ac_exeext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4740 (eval $ac_link) 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
4747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest$ac_exeext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 ac_cv_prog_lex_yytext_pointer=yes
4760 else
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4765 rm -f conftest.err conftest.$ac_objext \
4766 conftest$ac_exeext conftest.$ac_ext
4767 LIBS=$ac_save_LIBS
4768 rm -f "${LEX_OUTPUT_ROOT}.c"
4771 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4772 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4773 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4775 cat >>confdefs.h <<\_ACEOF
4776 #define YYTEXT_POINTER 1
4777 _ACEOF
4783 for ac_prog in $LEX flex lex
4785 # Extract the first word of "$ac_prog", so it can be a program name with args.
4786 set dummy $ac_prog; ac_word=$2
4787 echo "$as_me:$LINENO: checking for $ac_word" >&5
4788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4789 if test "${ac_cv_prog_XLEX+set}" = set; then
4790 echo $ECHO_N "(cached) $ECHO_C" >&6
4791 else
4792 if test -n "$XLEX"; then
4793 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4794 else
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4802 ac_cv_prog_XLEX="$ac_prog"
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4806 done
4807 done
4811 XLEX=$ac_cv_prog_XLEX
4812 if test -n "$XLEX"; then
4813 echo "$as_me:$LINENO: result: $XLEX" >&5
4814 echo "${ECHO_T}$XLEX" >&6
4815 else
4816 echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6
4820 test -n "$XLEX" && break
4821 done
4822 test -n "$XLEX" || XLEX="none"
4824 if test "$XLEX" = "none"
4825 then
4826 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
4827 echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4828 { (exit 1); exit 1; }; }
4831 for ac_prog in bison
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4837 if test "${ac_cv_prog_BISON+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 else
4840 if test -n "$BISON"; then
4841 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4842 else
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_BISON="$ac_prog"
4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852 break 2
4854 done
4855 done
4859 BISON=$ac_cv_prog_BISON
4860 if test -n "$BISON"; then
4861 echo "$as_me:$LINENO: result: $BISON" >&5
4862 echo "${ECHO_T}$BISON" >&6
4863 else
4864 echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4868 test -n "$BISON" && break
4869 done
4870 test -n "$BISON" || BISON="none"
4872 if test "$BISON" = "none"
4873 then
4874 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4875 echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4876 { (exit 1); exit 1; }; }
4879 if test -n "$ac_tool_prefix"; then
4880 for ac_prog in gas as
4882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4884 echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_prog_AS+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 else
4889 if test -n "$AS"; then
4890 ac_cv_prog_AS="$AS" # Let the user override the test.
4891 else
4892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 break 2
4903 done
4904 done
4908 AS=$ac_cv_prog_AS
4909 if test -n "$AS"; then
4910 echo "$as_me:$LINENO: result: $AS" >&5
4911 echo "${ECHO_T}$AS" >&6
4912 else
4913 echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4917 test -n "$AS" && break
4918 done
4920 if test -z "$AS"; then
4921 ac_ct_AS=$AS
4922 for ac_prog in gas as
4924 # Extract the first word of "$ac_prog", so it can be a program name with args.
4925 set dummy $ac_prog; ac_word=$2
4926 echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4928 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931 if test -n "$ac_ct_AS"; then
4932 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_ac_ct_AS="$ac_prog"
4942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4950 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4951 if test -n "$ac_ct_AS"; then
4952 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4953 echo "${ECHO_T}$ac_ct_AS" >&6
4954 else
4955 echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6
4959 test -n "$ac_ct_AS" && break
4960 done
4961 test -n "$ac_ct_AS" || ac_ct_AS="as"
4963 AS=$ac_ct_AS
4966 if test -n "$ac_tool_prefix"; then
4967 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4968 set dummy ${ac_tool_prefix}ld; ac_word=$2
4969 echo "$as_me:$LINENO: checking for $ac_word" >&5
4970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971 if test "${ac_cv_prog_LD+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974 if test -n "$LD"; then
4975 ac_cv_prog_LD="$LD" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_LD="${ac_tool_prefix}ld"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4988 done
4989 done
4993 LD=$ac_cv_prog_LD
4994 if test -n "$LD"; then
4995 echo "$as_me:$LINENO: result: $LD" >&5
4996 echo "${ECHO_T}$LD" >&6
4997 else
4998 echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6
5003 if test -z "$ac_cv_prog_LD"; then
5004 ac_ct_LD=$LD
5005 # Extract the first word of "ld", so it can be a program name with args.
5006 set dummy ld; ac_word=$2
5007 echo "$as_me:$LINENO: checking for $ac_word" >&5
5008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5009 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012 if test -n "$ac_ct_LD"; then
5013 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022 ac_cv_prog_ac_ct_LD="ld"
5023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5026 done
5027 done
5029 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5032 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5033 if test -n "$ac_ct_LD"; then
5034 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5035 echo "${ECHO_T}$ac_ct_LD" >&6
5036 else
5037 echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6
5041 LD=$ac_ct_LD
5042 else
5043 LD="$ac_cv_prog_LD"
5046 if test -n "$ac_tool_prefix"; then
5047 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5048 set dummy ${ac_tool_prefix}ar; ac_word=$2
5049 echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5051 if test "${ac_cv_prog_AR+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054 if test -n "$AR"; then
5055 ac_cv_prog_AR="$AR" # Let the user override the test.
5056 else
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058 for as_dir in $PATH
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_AR="${ac_tool_prefix}ar"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5068 done
5069 done
5073 AR=$ac_cv_prog_AR
5074 if test -n "$AR"; then
5075 echo "$as_me:$LINENO: result: $AR" >&5
5076 echo "${ECHO_T}$AR" >&6
5077 else
5078 echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6
5083 if test -z "$ac_cv_prog_AR"; then
5084 ac_ct_AR=$AR
5085 # Extract the first word of "ar", so it can be a program name with args.
5086 set dummy ar; ac_word=$2
5087 echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5089 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092 if test -n "$ac_ct_AR"; then
5093 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5102 ac_cv_prog_ac_ct_AR="ar"
5103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5106 done
5107 done
5109 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5113 if test -n "$ac_ct_AR"; then
5114 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5115 echo "${ECHO_T}$ac_ct_AR" >&6
5116 else
5117 echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6
5121 AR=$ac_ct_AR
5122 else
5123 AR="$ac_cv_prog_AR"
5126 if test -n "$ac_tool_prefix"; then
5127 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5129 echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5131 if test "${ac_cv_prog_RANLIB+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134 if test -n "$RANLIB"; then
5135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5136 else
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5146 break 2
5148 done
5149 done
5153 RANLIB=$ac_cv_prog_RANLIB
5154 if test -n "$RANLIB"; then
5155 echo "$as_me:$LINENO: result: $RANLIB" >&5
5156 echo "${ECHO_T}$RANLIB" >&6
5157 else
5158 echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6
5163 if test -z "$ac_cv_prog_RANLIB"; then
5164 ac_ct_RANLIB=$RANLIB
5165 # Extract the first word of "ranlib", so it can be a program name with args.
5166 set dummy ranlib; ac_word=$2
5167 echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 if test -n "$ac_ct_RANLIB"; then
5173 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182 ac_cv_prog_ac_ct_RANLIB="ranlib"
5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5186 done
5187 done
5189 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5193 if test -n "$ac_ct_RANLIB"; then
5194 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5195 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5196 else
5197 echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6
5201 RANLIB=$ac_ct_RANLIB
5202 else
5203 RANLIB="$ac_cv_prog_RANLIB"
5206 if test -n "$ac_tool_prefix"; then
5207 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5208 set dummy ${ac_tool_prefix}strip; ac_word=$2
5209 echo "$as_me:$LINENO: checking for $ac_word" >&5
5210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5211 if test "${ac_cv_prog_STRIP+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214 if test -n "$STRIP"; then
5215 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5228 done
5229 done
5233 STRIP=$ac_cv_prog_STRIP
5234 if test -n "$STRIP"; then
5235 echo "$as_me:$LINENO: result: $STRIP" >&5
5236 echo "${ECHO_T}$STRIP" >&6
5237 else
5238 echo "$as_me:$LINENO: result: no" >&5
5239 echo "${ECHO_T}no" >&6
5243 if test -z "$ac_cv_prog_STRIP"; then
5244 ac_ct_STRIP=$STRIP
5245 # Extract the first word of "strip", so it can be a program name with args.
5246 set dummy strip; ac_word=$2
5247 echo "$as_me:$LINENO: checking for $ac_word" >&5
5248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5249 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5250 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 else
5252 if test -n "$ac_ct_STRIP"; then
5253 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5262 ac_cv_prog_ac_ct_STRIP="strip"
5263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5269 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5272 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5273 if test -n "$ac_ct_STRIP"; then
5274 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5275 echo "${ECHO_T}$ac_ct_STRIP" >&6
5276 else
5277 echo "$as_me:$LINENO: result: no" >&5
5278 echo "${ECHO_T}no" >&6
5281 STRIP=$ac_ct_STRIP
5282 else
5283 STRIP="$ac_cv_prog_STRIP"
5286 if test -n "$ac_tool_prefix"; then
5287 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5288 set dummy ${ac_tool_prefix}windres; ac_word=$2
5289 echo "$as_me:$LINENO: checking for $ac_word" >&5
5290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5291 if test "${ac_cv_prog_WINDRES+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294 if test -n "$WINDRES"; then
5295 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5308 done
5309 done
5313 WINDRES=$ac_cv_prog_WINDRES
5314 if test -n "$WINDRES"; then
5315 echo "$as_me:$LINENO: result: $WINDRES" >&5
5316 echo "${ECHO_T}$WINDRES" >&6
5317 else
5318 echo "$as_me:$LINENO: result: no" >&5
5319 echo "${ECHO_T}no" >&6
5323 if test -z "$ac_cv_prog_WINDRES"; then
5324 ac_ct_WINDRES=$WINDRES
5325 # Extract the first word of "windres", so it can be a program name with args.
5326 set dummy windres; ac_word=$2
5327 echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5329 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332 if test -n "$ac_ct_WINDRES"; then
5333 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5334 else
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336 for as_dir in $PATH
5338 IFS=$as_save_IFS
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5342 ac_cv_prog_ac_ct_WINDRES="windres"
5343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5344 break 2
5346 done
5347 done
5349 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5352 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5353 if test -n "$ac_ct_WINDRES"; then
5354 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5355 echo "${ECHO_T}$ac_ct_WINDRES" >&6
5356 else
5357 echo "$as_me:$LINENO: result: no" >&5
5358 echo "${ECHO_T}no" >&6
5361 WINDRES=$ac_ct_WINDRES
5362 else
5363 WINDRES="$ac_cv_prog_WINDRES"
5366 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5367 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5368 LN_S=$as_ln_s
5369 if test "$LN_S" = "ln -s"; then
5370 echo "$as_me:$LINENO: result: yes" >&5
5371 echo "${ECHO_T}yes" >&6
5372 else
5373 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5374 echo "${ECHO_T}no, using $LN_S" >&6
5377 echo "$as_me:$LINENO: checking whether ln works" >&5
5378 echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5379 rm -f conf$$ conf$$.file
5380 echo >conf$$.file
5381 if ln conf$$.file conf$$ 2>/dev/null; then
5382 LN=ln
5384 echo "$as_me:$LINENO: result: yes" >&5
5385 echo "${ECHO_T}yes" >&6
5386 else
5387 LN="cp -p"
5389 echo "$as_me:$LINENO: result: no, using $LN" >&5
5390 echo "${ECHO_T}no, using $LN" >&6
5392 rm -f conf$$ conf$$.file
5393 # Extract the first word of "ldconfig", so it can be a program name with args.
5394 set dummy ldconfig; ac_word=$2
5395 echo "$as_me:$LINENO: checking for $ac_word" >&5
5396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5397 if test "${ac_cv_path_LDCONFIG+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400 case $LDCONFIG in
5401 [\\/]* | ?:[\\/]*)
5402 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in /sbin /usr/sbin $PATH
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5416 done
5417 done
5419 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
5421 esac
5423 LDCONFIG=$ac_cv_path_LDCONFIG
5425 if test -n "$LDCONFIG"; then
5426 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5427 echo "${ECHO_T}$LDCONFIG" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430 echo "${ECHO_T}no" >&6
5433 # Find a good install program. We prefer a C program (faster),
5434 # so one script is as good as another. But avoid the broken or
5435 # incompatible versions:
5436 # SysV /etc/install, /usr/sbin/install
5437 # SunOS /usr/etc/install
5438 # IRIX /sbin/install
5439 # AIX /bin/install
5440 # AmigaOS /C/install, which installs bootblocks on floppy discs
5441 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5442 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5443 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5444 # OS/2's system install, which has a completely different semantic
5445 # ./install, which can be erroneously created by make from ./install.sh.
5446 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5447 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5448 if test -z "$INSTALL"; then
5449 if test "${ac_cv_path_install+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 # Account for people who put trailing slashes in PATH elements.
5458 case $as_dir/ in
5459 ./ | .// | /cC/* | \
5460 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5461 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5462 /usr/ucb/* ) ;;
5464 # OSF1 and SCO ODT 3.0 have their own names for install.
5465 # Don't use installbsd from OSF since it installs stuff as root
5466 # by default.
5467 for ac_prog in ginstall scoinst install; do
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5470 if test $ac_prog = install &&
5471 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5472 # AIX install. It has an incompatible calling convention.
5474 elif test $ac_prog = install &&
5475 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5476 # program-specific install script used by HP pwplus--don't use.
5478 else
5479 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5480 break 3
5483 done
5484 done
5486 esac
5487 done
5491 if test "${ac_cv_path_install+set}" = set; then
5492 INSTALL=$ac_cv_path_install
5493 else
5494 # As a last resort, use the slow shell script. We don't cache a
5495 # path for INSTALL within a source directory, because that will
5496 # break other packages using the cache if that directory is
5497 # removed, or if the path is relative.
5498 INSTALL=$ac_install_sh
5501 echo "$as_me:$LINENO: result: $INSTALL" >&5
5502 echo "${ECHO_T}$INSTALL" >&6
5504 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5505 # It thinks the first close brace ends the variable substitution.
5506 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5508 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5510 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5512 case "$INSTALL" in
5513 [\\/$]* | ?:[\\/]* ) ;;
5514 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5515 esac
5517 for ac_prog in lclint lint
5519 # Extract the first word of "$ac_prog", so it can be a program name with args.
5520 set dummy $ac_prog; ac_word=$2
5521 echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5523 if test "${ac_cv_prog_LINT+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526 if test -n "$LINT"; then
5527 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536 ac_cv_prog_LINT="$ac_prog"
5537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5540 done
5541 done
5545 LINT=$ac_cv_prog_LINT
5546 if test -n "$LINT"; then
5547 echo "$as_me:$LINENO: result: $LINT" >&5
5548 echo "${ECHO_T}$LINT" >&6
5549 else
5550 echo "$as_me:$LINENO: result: no" >&5
5551 echo "${ECHO_T}no" >&6
5554 test -n "$LINT" && break
5555 done
5557 if test "$LINT" = "lint"
5558 then
5559 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5564 for ac_prog in docbook2html db2html
5566 # Extract the first word of "$ac_prog", so it can be a program name with args.
5567 set dummy $ac_prog; ac_word=$2
5568 echo "$as_me:$LINENO: checking for $ac_word" >&5
5569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5570 if test "${ac_cv_prog_DB2HTML+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573 if test -n "$DB2HTML"; then
5574 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
5575 else
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5583 ac_cv_prog_DB2HTML="$ac_prog"
5584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5587 done
5588 done
5592 DB2HTML=$ac_cv_prog_DB2HTML
5593 if test -n "$DB2HTML"; then
5594 echo "$as_me:$LINENO: result: $DB2HTML" >&5
5595 echo "${ECHO_T}$DB2HTML" >&6
5596 else
5597 echo "$as_me:$LINENO: result: no" >&5
5598 echo "${ECHO_T}no" >&6
5601 test -n "$DB2HTML" && break
5602 done
5603 test -n "$DB2HTML" || DB2HTML="false"
5607 for ac_prog in docbook2pdf db2pdf
5609 # Extract the first word of "$ac_prog", so it can be a program name with args.
5610 set dummy $ac_prog; ac_word=$2
5611 echo "$as_me:$LINENO: checking for $ac_word" >&5
5612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5613 if test "${ac_cv_prog_DB2PDF+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 if test -n "$DB2PDF"; then
5617 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
5618 else
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_DB2PDF="$ac_prog"
5627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5628 break 2
5630 done
5631 done
5635 DB2PDF=$ac_cv_prog_DB2PDF
5636 if test -n "$DB2PDF"; then
5637 echo "$as_me:$LINENO: result: $DB2PDF" >&5
5638 echo "${ECHO_T}$DB2PDF" >&6
5639 else
5640 echo "$as_me:$LINENO: result: no" >&5
5641 echo "${ECHO_T}no" >&6
5644 test -n "$DB2PDF" && break
5645 done
5646 test -n "$DB2PDF" || DB2PDF="false"
5650 for ac_prog in docbook2ps db2ps
5652 # Extract the first word of "$ac_prog", so it can be a program name with args.
5653 set dummy $ac_prog; ac_word=$2
5654 echo "$as_me:$LINENO: checking for $ac_word" >&5
5655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5656 if test "${ac_cv_prog_DB2PS+set}" = set; then
5657 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659 if test -n "$DB2PS"; then
5660 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_prog_DB2PS="$ac_prog"
5670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5673 done
5674 done
5678 DB2PS=$ac_cv_prog_DB2PS
5679 if test -n "$DB2PS"; then
5680 echo "$as_me:$LINENO: result: $DB2PS" >&5
5681 echo "${ECHO_T}$DB2PS" >&6
5682 else
5683 echo "$as_me:$LINENO: result: no" >&5
5684 echo "${ECHO_T}no" >&6
5687 test -n "$DB2PS" && break
5688 done
5689 test -n "$DB2PS" || DB2PS="false"
5693 for ac_prog in docbook2txt db2txt
5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
5696 set dummy $ac_prog; ac_word=$2
5697 echo "$as_me:$LINENO: checking for $ac_word" >&5
5698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5699 if test "${ac_cv_prog_DB2TXT+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702 if test -n "$DB2TXT"; then
5703 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_DB2TXT="$ac_prog"
5713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5716 done
5717 done
5721 DB2TXT=$ac_cv_prog_DB2TXT
5722 if test -n "$DB2TXT"; then
5723 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5724 echo "${ECHO_T}$DB2TXT" >&6
5725 else
5726 echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6
5730 test -n "$DB2TXT" && break
5731 done
5732 test -n "$DB2TXT" || DB2TXT="false"
5738 echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5739 echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5740 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 else
5743 ac_check_lib_save_LIBS=$LIBS
5744 LIBS="-li386 $LIBS"
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h. */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5752 /* Override any gcc2 internal prototype to avoid an error. */
5753 #ifdef __cplusplus
5754 extern "C"
5755 #endif
5756 /* We use char because int might match the return type of a gcc2
5757 builtin and then its argument prototype would still apply. */
5758 char i386_set_ldt ();
5760 main ()
5762 i386_set_ldt ();
5764 return 0;
5766 _ACEOF
5767 rm -f conftest.$ac_objext conftest$ac_exeext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769 (eval $ac_link) 2>conftest.er1
5770 ac_status=$?
5771 grep -v '^ *+' conftest.er1 >conftest.err
5772 rm -f conftest.er1
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest$ac_exeext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 (eval $ac_try) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 ac_cv_lib_i386_i386_set_ldt=yes
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 ac_cv_lib_i386_i386_set_ldt=no
5795 rm -f conftest.err conftest.$ac_objext \
5796 conftest$ac_exeext conftest.$ac_ext
5797 LIBS=$ac_check_lib_save_LIBS
5799 echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5800 echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5801 if test $ac_cv_lib_i386_i386_set_ldt = yes; then
5802 cat >>confdefs.h <<_ACEOF
5803 #define HAVE_LIBI386 1
5804 _ACEOF
5806 LIBS="-li386 $LIBS"
5811 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5812 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5813 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816 ac_check_lib_save_LIBS=$LIBS
5817 LIBS="-lossaudio $LIBS"
5818 cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h. */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5825 /* Override any gcc2 internal prototype to avoid an error. */
5826 #ifdef __cplusplus
5827 extern "C"
5828 #endif
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5831 char _oss_ioctl ();
5833 main ()
5835 _oss_ioctl ();
5837 return 0;
5839 _ACEOF
5840 rm -f conftest.$ac_objext conftest$ac_exeext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5842 (eval $ac_link) 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 (eval $ac_try) 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; } &&
5855 { ac_try='test -s conftest$ac_exeext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 (eval $ac_try) 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5861 ac_cv_lib_ossaudio__oss_ioctl=yes
5862 else
5863 echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5866 ac_cv_lib_ossaudio__oss_ioctl=no
5868 rm -f conftest.err conftest.$ac_objext \
5869 conftest$ac_exeext conftest.$ac_ext
5870 LIBS=$ac_check_lib_save_LIBS
5872 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5873 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5874 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5875 cat >>confdefs.h <<_ACEOF
5876 #define HAVE_LIBOSSAUDIO 1
5877 _ACEOF
5879 LIBS="-lossaudio $LIBS"
5884 for ac_func in iswalnum
5886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5887 echo "$as_me:$LINENO: checking for $ac_func" >&5
5888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5889 if eval "test \"\${$as_ac_var+set}\" = set"; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5900 #define $ac_func innocuous_$ac_func
5902 /* System header to define __stub macros and hopefully few prototypes,
5903 which can conflict with char $ac_func (); below.
5904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5905 <limits.h> exists even on freestanding compilers. */
5907 #ifdef __STDC__
5908 # include <limits.h>
5909 #else
5910 # include <assert.h>
5911 #endif
5913 #undef $ac_func
5915 /* Override any gcc2 internal prototype to avoid an error. */
5916 #ifdef __cplusplus
5917 extern "C"
5919 #endif
5920 /* We use char because int might match the return type of a gcc2
5921 builtin and then its argument prototype would still apply. */
5922 char $ac_func ();
5923 /* The GNU C library defines this for functions which it implements
5924 to always fail with ENOSYS. Some functions are actually named
5925 something starting with __ and the normal name is an alias. */
5926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5927 choke me
5928 #else
5929 char (*f) () = $ac_func;
5930 #endif
5931 #ifdef __cplusplus
5933 #endif
5936 main ()
5938 return f != $ac_func;
5940 return 0;
5942 _ACEOF
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945 (eval $ac_link) 2>conftest.er1
5946 ac_status=$?
5947 grep -v '^ *+' conftest.er1 >conftest.err
5948 rm -f conftest.er1
5949 cat conftest.err >&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 (eval $ac_try) 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; } &&
5958 { ac_try='test -s conftest$ac_exeext'
5959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960 (eval $ac_try) 2>&5
5961 ac_status=$?
5962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); }; }; then
5964 eval "$as_ac_var=yes"
5965 else
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5969 eval "$as_ac_var=no"
5971 rm -f conftest.err conftest.$ac_objext \
5972 conftest$ac_exeext conftest.$ac_ext
5974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5976 if test `eval echo '${'$as_ac_var'}'` = yes; then
5977 cat >>confdefs.h <<_ACEOF
5978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5979 _ACEOF
5981 else
5983 echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
5984 echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5985 if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 ac_check_lib_save_LIBS=$LIBS
5989 LIBS="-lw $LIBS"
5990 cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h. */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5997 /* Override any gcc2 internal prototype to avoid an error. */
5998 #ifdef __cplusplus
5999 extern "C"
6000 #endif
6001 /* We use char because int might match the return type of a gcc2
6002 builtin and then its argument prototype would still apply. */
6003 char iswalnum ();
6005 main ()
6007 iswalnum ();
6009 return 0;
6011 _ACEOF
6012 rm -f conftest.$ac_objext conftest$ac_exeext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6014 (eval $ac_link) 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } &&
6021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest$ac_exeext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 ac_cv_lib_w_iswalnum=yes
6034 else
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6038 ac_cv_lib_w_iswalnum=no
6040 rm -f conftest.err conftest.$ac_objext \
6041 conftest$ac_exeext conftest.$ac_ext
6042 LIBS=$ac_check_lib_save_LIBS
6044 echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
6045 echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
6046 if test $ac_cv_lib_w_iswalnum = yes; then
6047 cat >>confdefs.h <<_ACEOF
6048 #define HAVE_LIBW 1
6049 _ACEOF
6051 LIBS="-lw $LIBS"
6056 done
6059 for ac_func in gethostbyname
6061 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6062 echo "$as_me:$LINENO: checking for $ac_func" >&5
6063 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6064 if eval "test \"\${$as_ac_var+set}\" = set"; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 else
6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
6072 /* end confdefs.h. */
6073 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6075 #define $ac_func innocuous_$ac_func
6077 /* System header to define __stub macros and hopefully few prototypes,
6078 which can conflict with char $ac_func (); below.
6079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080 <limits.h> exists even on freestanding compilers. */
6082 #ifdef __STDC__
6083 # include <limits.h>
6084 #else
6085 # include <assert.h>
6086 #endif
6088 #undef $ac_func
6090 /* Override any gcc2 internal prototype to avoid an error. */
6091 #ifdef __cplusplus
6092 extern "C"
6094 #endif
6095 /* We use char because int might match the return type of a gcc2
6096 builtin and then its argument prototype would still apply. */
6097 char $ac_func ();
6098 /* The GNU C library defines this for functions which it implements
6099 to always fail with ENOSYS. Some functions are actually named
6100 something starting with __ and the normal name is an alias. */
6101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6102 choke me
6103 #else
6104 char (*f) () = $ac_func;
6105 #endif
6106 #ifdef __cplusplus
6108 #endif
6111 main ()
6113 return f != $ac_func;
6115 return 0;
6117 _ACEOF
6118 rm -f conftest.$ac_objext conftest$ac_exeext
6119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120 (eval $ac_link) 2>conftest.er1
6121 ac_status=$?
6122 grep -v '^ *+' conftest.er1 >conftest.err
6123 rm -f conftest.er1
6124 cat conftest.err >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; } &&
6133 { ac_try='test -s conftest$ac_exeext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 (eval $ac_try) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 eval "$as_ac_var=yes"
6140 else
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6144 eval "$as_ac_var=no"
6146 rm -f conftest.err conftest.$ac_objext \
6147 conftest$ac_exeext conftest.$ac_ext
6149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6151 if test `eval echo '${'$as_ac_var'}'` = yes; then
6152 cat >>confdefs.h <<_ACEOF
6153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6154 _ACEOF
6156 else
6158 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6159 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6160 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 else
6163 ac_check_lib_save_LIBS=$LIBS
6164 LIBS="-lnsl $LIBS"
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6172 /* Override any gcc2 internal prototype to avoid an error. */
6173 #ifdef __cplusplus
6174 extern "C"
6175 #endif
6176 /* We use char because int might match the return type of a gcc2
6177 builtin and then its argument prototype would still apply. */
6178 char gethostbyname ();
6180 main ()
6182 gethostbyname ();
6184 return 0;
6186 _ACEOF
6187 rm -f conftest.$ac_objext conftest$ac_exeext
6188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6189 (eval $ac_link) 2>conftest.er1
6190 ac_status=$?
6191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; } &&
6202 { ac_try='test -s conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_lib_nsl_gethostbyname=yes
6209 else
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 ac_cv_lib_nsl_gethostbyname=no
6215 rm -f conftest.err conftest.$ac_objext \
6216 conftest$ac_exeext conftest.$ac_ext
6217 LIBS=$ac_check_lib_save_LIBS
6219 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6220 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6221 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6222 cat >>confdefs.h <<_ACEOF
6223 #define HAVE_LIBNSL 1
6224 _ACEOF
6226 LIBS="-lnsl $LIBS"
6231 done
6234 for ac_func in connect
6236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6237 echo "$as_me:$LINENO: checking for $ac_func" >&5
6238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6239 if eval "test \"\${$as_ac_var+set}\" = set"; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242 cat >conftest.$ac_ext <<_ACEOF
6243 /* confdefs.h. */
6244 _ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6250 #define $ac_func innocuous_$ac_func
6252 /* System header to define __stub macros and hopefully few prototypes,
6253 which can conflict with char $ac_func (); below.
6254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6255 <limits.h> exists even on freestanding compilers. */
6257 #ifdef __STDC__
6258 # include <limits.h>
6259 #else
6260 # include <assert.h>
6261 #endif
6263 #undef $ac_func
6265 /* Override any gcc2 internal prototype to avoid an error. */
6266 #ifdef __cplusplus
6267 extern "C"
6269 #endif
6270 /* We use char because int might match the return type of a gcc2
6271 builtin and then its argument prototype would still apply. */
6272 char $ac_func ();
6273 /* The GNU C library defines this for functions which it implements
6274 to always fail with ENOSYS. Some functions are actually named
6275 something starting with __ and the normal name is an alias. */
6276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6277 choke me
6278 #else
6279 char (*f) () = $ac_func;
6280 #endif
6281 #ifdef __cplusplus
6283 #endif
6286 main ()
6288 return f != $ac_func;
6290 return 0;
6292 _ACEOF
6293 rm -f conftest.$ac_objext conftest$ac_exeext
6294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6295 (eval $ac_link) 2>conftest.er1
6296 ac_status=$?
6297 grep -v '^ *+' conftest.er1 >conftest.err
6298 rm -f conftest.er1
6299 cat conftest.err >&5
6300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301 (exit $ac_status); } &&
6302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304 (eval $ac_try) 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; } &&
6308 { ac_try='test -s conftest$ac_exeext'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6310 (eval $ac_try) 2>&5
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
6314 eval "$as_ac_var=yes"
6315 else
6316 echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6319 eval "$as_ac_var=no"
6321 rm -f conftest.err conftest.$ac_objext \
6322 conftest$ac_exeext conftest.$ac_ext
6324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6325 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6326 if test `eval echo '${'$as_ac_var'}'` = yes; then
6327 cat >>confdefs.h <<_ACEOF
6328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6329 _ACEOF
6331 else
6333 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6334 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6335 if test "${ac_cv_lib_socket_connect+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338 ac_check_lib_save_LIBS=$LIBS
6339 LIBS="-lsocket $LIBS"
6340 cat >conftest.$ac_ext <<_ACEOF
6341 /* confdefs.h. */
6342 _ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6347 /* Override any gcc2 internal prototype to avoid an error. */
6348 #ifdef __cplusplus
6349 extern "C"
6350 #endif
6351 /* We use char because int might match the return type of a gcc2
6352 builtin and then its argument prototype would still apply. */
6353 char connect ();
6355 main ()
6357 connect ();
6359 return 0;
6361 _ACEOF
6362 rm -f conftest.$ac_objext conftest$ac_exeext
6363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364 (eval $ac_link) 2>conftest.er1
6365 ac_status=$?
6366 grep -v '^ *+' conftest.er1 >conftest.err
6367 rm -f conftest.er1
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } &&
6371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 (eval $ac_try) 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; } &&
6377 { ac_try='test -s conftest$ac_exeext'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 (eval $ac_try) 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
6383 ac_cv_lib_socket_connect=yes
6384 else
6385 echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6388 ac_cv_lib_socket_connect=no
6390 rm -f conftest.err conftest.$ac_objext \
6391 conftest$ac_exeext conftest.$ac_ext
6392 LIBS=$ac_check_lib_save_LIBS
6394 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6395 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6396 if test $ac_cv_lib_socket_connect = yes; then
6397 cat >>confdefs.h <<_ACEOF
6398 #define HAVE_LIBSOCKET 1
6399 _ACEOF
6401 LIBS="-lsocket $LIBS"
6406 done
6409 for ac_func in inet_aton
6411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6412 echo "$as_me:$LINENO: checking for $ac_func" >&5
6413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6414 if eval "test \"\${$as_ac_var+set}\" = set"; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417 cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h. */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6425 #define $ac_func innocuous_$ac_func
6427 /* System header to define __stub macros and hopefully few prototypes,
6428 which can conflict with char $ac_func (); below.
6429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6430 <limits.h> exists even on freestanding compilers. */
6432 #ifdef __STDC__
6433 # include <limits.h>
6434 #else
6435 # include <assert.h>
6436 #endif
6438 #undef $ac_func
6440 /* Override any gcc2 internal prototype to avoid an error. */
6441 #ifdef __cplusplus
6442 extern "C"
6444 #endif
6445 /* We use char because int might match the return type of a gcc2
6446 builtin and then its argument prototype would still apply. */
6447 char $ac_func ();
6448 /* The GNU C library defines this for functions which it implements
6449 to always fail with ENOSYS. Some functions are actually named
6450 something starting with __ and the normal name is an alias. */
6451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6452 choke me
6453 #else
6454 char (*f) () = $ac_func;
6455 #endif
6456 #ifdef __cplusplus
6458 #endif
6461 main ()
6463 return f != $ac_func;
6465 return 0;
6467 _ACEOF
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470 (eval $ac_link) 2>conftest.er1
6471 ac_status=$?
6472 grep -v '^ *+' conftest.er1 >conftest.err
6473 rm -f conftest.er1
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479 (eval $ac_try) 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); }; } &&
6483 { ac_try='test -s conftest$ac_exeext'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 (eval $ac_try) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
6489 eval "$as_ac_var=yes"
6490 else
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6494 eval "$as_ac_var=no"
6496 rm -f conftest.err conftest.$ac_objext \
6497 conftest$ac_exeext conftest.$ac_ext
6499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6501 if test `eval echo '${'$as_ac_var'}'` = yes; then
6502 cat >>confdefs.h <<_ACEOF
6503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6504 _ACEOF
6506 else
6508 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
6509 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6510 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513 ac_check_lib_save_LIBS=$LIBS
6514 LIBS="-lresolv $LIBS"
6515 cat >conftest.$ac_ext <<_ACEOF
6516 /* confdefs.h. */
6517 _ACEOF
6518 cat confdefs.h >>conftest.$ac_ext
6519 cat >>conftest.$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6522 /* Override any gcc2 internal prototype to avoid an error. */
6523 #ifdef __cplusplus
6524 extern "C"
6525 #endif
6526 /* We use char because int might match the return type of a gcc2
6527 builtin and then its argument prototype would still apply. */
6528 char inet_aton ();
6530 main ()
6532 inet_aton ();
6534 return 0;
6536 _ACEOF
6537 rm -f conftest.$ac_objext conftest$ac_exeext
6538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6539 (eval $ac_link) 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } &&
6546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548 (eval $ac_try) 2>&5
6549 ac_status=$?
6550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); }; } &&
6552 { ac_try='test -s conftest$ac_exeext'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; }; then
6558 ac_cv_lib_resolv_inet_aton=yes
6559 else
6560 echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6563 ac_cv_lib_resolv_inet_aton=no
6565 rm -f conftest.err conftest.$ac_objext \
6566 conftest$ac_exeext conftest.$ac_ext
6567 LIBS=$ac_check_lib_save_LIBS
6569 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
6570 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6571 if test $ac_cv_lib_resolv_inet_aton = yes; then
6572 cat >>confdefs.h <<_ACEOF
6573 #define HAVE_LIBRESOLV 1
6574 _ACEOF
6576 LIBS="-lresolv $LIBS"
6581 done
6584 echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
6585 echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6586 if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589 ac_check_lib_save_LIBS=$LIBS
6590 LIBS="-lxpg4 $LIBS"
6591 cat >conftest.$ac_ext <<_ACEOF
6592 /* confdefs.h. */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6598 /* Override any gcc2 internal prototype to avoid an error. */
6599 #ifdef __cplusplus
6600 extern "C"
6601 #endif
6602 /* We use char because int might match the return type of a gcc2
6603 builtin and then its argument prototype would still apply. */
6604 char _xpg4_setrunelocale ();
6606 main ()
6608 _xpg4_setrunelocale ();
6610 return 0;
6612 _ACEOF
6613 rm -f conftest.$ac_objext conftest$ac_exeext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6615 (eval $ac_link) 2>conftest.er1
6616 ac_status=$?
6617 grep -v '^ *+' conftest.er1 >conftest.err
6618 rm -f conftest.er1
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } &&
6622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 (eval $ac_try) 2>&5
6625 ac_status=$?
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); }; } &&
6628 { ac_try='test -s conftest$ac_exeext'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; }; then
6634 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
6635 else
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 ac_cv_lib_xpg4__xpg4_setrunelocale=no
6641 rm -f conftest.err conftest.$ac_objext \
6642 conftest$ac_exeext conftest.$ac_ext
6643 LIBS=$ac_check_lib_save_LIBS
6645 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
6646 echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6647 if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
6648 cat >>confdefs.h <<_ACEOF
6649 #define HAVE_LIBXPG4 1
6650 _ACEOF
6652 LIBS="-lxpg4 $LIBS"
6657 echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6658 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6659 if test "${ac_cv_lib_poll_poll+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662 ac_check_lib_save_LIBS=$LIBS
6663 LIBS="-lpoll $LIBS"
6664 cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6671 /* Override any gcc2 internal prototype to avoid an error. */
6672 #ifdef __cplusplus
6673 extern "C"
6674 #endif
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6677 char poll ();
6679 main ()
6681 poll ();
6683 return 0;
6685 _ACEOF
6686 rm -f conftest.$ac_objext conftest$ac_exeext
6687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6688 (eval $ac_link) 2>conftest.er1
6689 ac_status=$?
6690 grep -v '^ *+' conftest.er1 >conftest.err
6691 rm -f conftest.er1
6692 cat conftest.err >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); } &&
6695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6697 (eval $ac_try) 2>&5
6698 ac_status=$?
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; } &&
6701 { ac_try='test -s conftest$ac_exeext'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; }; then
6707 ac_cv_lib_poll_poll=yes
6708 else
6709 echo "$as_me: failed program was:" >&5
6710 sed 's/^/| /' conftest.$ac_ext >&5
6712 ac_cv_lib_poll_poll=no
6714 rm -f conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
6716 LIBS=$ac_check_lib_save_LIBS
6718 echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6719 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6720 if test $ac_cv_lib_poll_poll = yes; then
6721 cat >>confdefs.h <<_ACEOF
6722 #define HAVE_LIBPOLL 1
6723 _ACEOF
6725 LIBS="-lpoll $LIBS"
6730 echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6731 echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6732 if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 else
6735 ac_check_lib_save_LIBS=$LIBS
6736 LIBS="-lresolv $LIBS"
6737 cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h. */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6744 /* Override any gcc2 internal prototype to avoid an error. */
6745 #ifdef __cplusplus
6746 extern "C"
6747 #endif
6748 /* We use char because int might match the return type of a gcc2
6749 builtin and then its argument prototype would still apply. */
6750 char res_9_init ();
6752 main ()
6754 res_9_init ();
6756 return 0;
6758 _ACEOF
6759 rm -f conftest.$ac_objext conftest$ac_exeext
6760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6761 (eval $ac_link) 2>conftest.er1
6762 ac_status=$?
6763 grep -v '^ *+' conftest.er1 >conftest.err
6764 rm -f conftest.er1
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } &&
6768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 (eval $ac_try) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; } &&
6774 { ac_try='test -s conftest$ac_exeext'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; }; then
6780 ac_cv_lib_resolv_res_9_init=yes
6781 else
6782 echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6785 ac_cv_lib_resolv_res_9_init=no
6787 rm -f conftest.err conftest.$ac_objext \
6788 conftest$ac_exeext conftest.$ac_ext
6789 LIBS=$ac_check_lib_save_LIBS
6791 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6792 echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6793 if test $ac_cv_lib_resolv_res_9_init = yes; then
6794 cat >>confdefs.h <<_ACEOF
6795 #define HAVE_LIBRESOLV 1
6796 _ACEOF
6798 LIBS="-lresolv $LIBS"
6802 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6803 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6804 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 ac_check_lib_save_LIBS=$LIBS
6808 LIBS="-lpthread $LIBS"
6809 cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h. */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h. */
6816 /* Override any gcc2 internal prototype to avoid an error. */
6817 #ifdef __cplusplus
6818 extern "C"
6819 #endif
6820 /* We use char because int might match the return type of a gcc2
6821 builtin and then its argument prototype would still apply. */
6822 char pthread_create ();
6824 main ()
6826 pthread_create ();
6828 return 0;
6830 _ACEOF
6831 rm -f conftest.$ac_objext conftest$ac_exeext
6832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6833 (eval $ac_link) 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } &&
6840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 (eval $ac_try) 2>&5
6843 ac_status=$?
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); }; } &&
6846 { ac_try='test -s conftest$ac_exeext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 (eval $ac_try) 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_cv_lib_pthread_pthread_create=yes
6853 else
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6857 ac_cv_lib_pthread_pthread_create=no
6859 rm -f conftest.err conftest.$ac_objext \
6860 conftest$ac_exeext conftest.$ac_ext
6861 LIBS=$ac_check_lib_save_LIBS
6863 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6864 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6865 if test $ac_cv_lib_pthread_pthread_create = yes; then
6866 LIBPTHREAD="-lpthread"
6871 JPEGLIB=""
6873 echo "$as_me:$LINENO: checking for egrep" >&5
6874 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6875 if test "${ac_cv_prog_egrep+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6879 then ac_cv_prog_egrep='grep -E'
6880 else ac_cv_prog_egrep='egrep'
6883 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6884 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6885 EGREP=$ac_cv_prog_egrep
6888 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6889 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6890 if test "${ac_cv_header_stdc+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893 cat >conftest.$ac_ext <<_ACEOF
6894 /* confdefs.h. */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 #include <stdlib.h>
6900 #include <stdarg.h>
6901 #include <string.h>
6902 #include <float.h>
6905 main ()
6909 return 0;
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914 (eval $ac_compile) 2>conftest.er1
6915 ac_status=$?
6916 grep -v '^ *+' conftest.er1 >conftest.err
6917 rm -f conftest.er1
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 (eval $ac_try) 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; } &&
6927 { ac_try='test -s conftest.$ac_objext'
6928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929 (eval $ac_try) 2>&5
6930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 ac_cv_header_stdc=yes
6934 else
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6938 ac_cv_header_stdc=no
6940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6942 if test $ac_cv_header_stdc = yes; then
6943 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6944 cat >conftest.$ac_ext <<_ACEOF
6945 /* confdefs.h. */
6946 _ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6950 #include <string.h>
6952 _ACEOF
6953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6954 $EGREP "memchr" >/dev/null 2>&1; then
6956 else
6957 ac_cv_header_stdc=no
6959 rm -f conftest*
6963 if test $ac_cv_header_stdc = yes; then
6964 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6965 cat >conftest.$ac_ext <<_ACEOF
6966 /* confdefs.h. */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 #include <stdlib.h>
6973 _ACEOF
6974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6975 $EGREP "free" >/dev/null 2>&1; then
6977 else
6978 ac_cv_header_stdc=no
6980 rm -f conftest*
6984 if test $ac_cv_header_stdc = yes; then
6985 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6986 if test "$cross_compiling" = yes; then
6988 else
6989 cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h. */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 #include <ctype.h>
6996 #if ((' ' & 0x0FF) == 0x020)
6997 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6998 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6999 #else
7000 # define ISLOWER(c) \
7001 (('a' <= (c) && (c) <= 'i') \
7002 || ('j' <= (c) && (c) <= 'r') \
7003 || ('s' <= (c) && (c) <= 'z'))
7004 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7005 #endif
7007 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7009 main ()
7011 int i;
7012 for (i = 0; i < 256; i++)
7013 if (XOR (islower (i), ISLOWER (i))
7014 || toupper (i) != TOUPPER (i))
7015 exit(2);
7016 exit (0);
7018 _ACEOF
7019 rm -f conftest$ac_exeext
7020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7021 (eval $ac_link) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7031 else
7032 echo "$as_me: program exited with status $ac_status" >&5
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7036 ( exit $ac_status )
7037 ac_cv_header_stdc=no
7039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7043 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7044 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7045 if test $ac_cv_header_stdc = yes; then
7047 cat >>confdefs.h <<\_ACEOF
7048 #define STDC_HEADERS 1
7049 _ACEOF
7053 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7063 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7064 inttypes.h stdint.h unistd.h
7066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7067 echo "$as_me:$LINENO: checking for $ac_header" >&5
7068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072 cat >conftest.$ac_ext <<_ACEOF
7073 /* confdefs.h. */
7074 _ACEOF
7075 cat confdefs.h >>conftest.$ac_ext
7076 cat >>conftest.$ac_ext <<_ACEOF
7077 /* end confdefs.h. */
7078 $ac_includes_default
7080 #include <$ac_header>
7081 _ACEOF
7082 rm -f conftest.$ac_objext
7083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7084 (eval $ac_compile) 2>conftest.er1
7085 ac_status=$?
7086 grep -v '^ *+' conftest.er1 >conftest.err
7087 rm -f conftest.er1
7088 cat conftest.err >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } &&
7091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093 (eval $ac_try) 2>&5
7094 ac_status=$?
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); }; } &&
7097 { ac_try='test -s conftest.$ac_objext'
7098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099 (eval $ac_try) 2>&5
7100 ac_status=$?
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 eval "$as_ac_Header=yes"
7104 else
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 eval "$as_ac_Header=no"
7110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7115 cat >>confdefs.h <<_ACEOF
7116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7117 _ACEOF
7121 done
7125 for ac_header in jpeglib.h
7127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7129 echo "$as_me:$LINENO: checking for $ac_header" >&5
7130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7136 else
7137 # Is the header compilable?
7138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h. */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 $ac_includes_default
7147 #include <$ac_header>
7148 _ACEOF
7149 rm -f conftest.$ac_objext
7150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151 (eval $ac_compile) 2>conftest.er1
7152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 (eval $ac_try) 2>&5
7161 ac_status=$?
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; } &&
7164 { ac_try='test -s conftest.$ac_objext'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; }; then
7170 ac_header_compiler=yes
7171 else
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7175 ac_header_compiler=no
7177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7179 echo "${ECHO_T}$ac_header_compiler" >&6
7181 # Is the header present?
7182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h. */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 #include <$ac_header>
7191 _ACEOF
7192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } >/dev/null; then
7200 if test -s conftest.err; then
7201 ac_cpp_err=$ac_c_preproc_warn_flag
7202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7203 else
7204 ac_cpp_err=
7206 else
7207 ac_cpp_err=yes
7209 if test -z "$ac_cpp_err"; then
7210 ac_header_preproc=yes
7211 else
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7215 ac_header_preproc=no
7217 rm -f conftest.err conftest.$ac_ext
7218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7219 echo "${ECHO_T}$ac_header_preproc" >&6
7221 # So? What about this header?
7222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7223 yes:no: )
7224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7228 ac_header_preproc=yes
7230 no:yes:* )
7231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7244 cat <<\_ASBOX
7245 ## ------------------------------------ ##
7246 ## Report this to wine-devel@winehq.org ##
7247 ## ------------------------------------ ##
7248 _ASBOX
7250 sed "s/^/$as_me: WARNING: /" >&2
7252 esac
7253 echo "$as_me:$LINENO: checking for $ac_header" >&5
7254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258 eval "$as_ac_Header=\$ac_header_preproc"
7260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7265 cat >>confdefs.h <<_ACEOF
7266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7267 _ACEOF
7268 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
7269 echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
7270 if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273 ac_check_lib_save_LIBS=$LIBS
7274 LIBS="-ljpeg $LIBS"
7275 cat >conftest.$ac_ext <<_ACEOF
7276 /* confdefs.h. */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7282 /* Override any gcc2 internal prototype to avoid an error. */
7283 #ifdef __cplusplus
7284 extern "C"
7285 #endif
7286 /* We use char because int might match the return type of a gcc2
7287 builtin and then its argument prototype would still apply. */
7288 char jpeg_start_decompress ();
7290 main ()
7292 jpeg_start_decompress ();
7294 return 0;
7296 _ACEOF
7297 rm -f conftest.$ac_objext conftest$ac_exeext
7298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7299 (eval $ac_link) 2>conftest.er1
7300 ac_status=$?
7301 grep -v '^ *+' conftest.er1 >conftest.err
7302 rm -f conftest.er1
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } &&
7306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308 (eval $ac_try) 2>&5
7309 ac_status=$?
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); }; } &&
7312 { ac_try='test -s conftest$ac_exeext'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7318 ac_cv_lib_jpeg_jpeg_start_decompress=yes
7319 else
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7323 ac_cv_lib_jpeg_jpeg_start_decompress=no
7325 rm -f conftest.err conftest.$ac_objext \
7326 conftest$ac_exeext conftest.$ac_ext
7327 LIBS=$ac_check_lib_save_LIBS
7329 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
7330 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
7331 if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
7333 cat >>confdefs.h <<\_ACEOF
7334 #define HAVE_LIBJPEG 1
7335 _ACEOF
7337 JPEGLIB="-ljpeg"
7344 done
7347 GIFLIB=""
7350 for ac_header in gif_lib.h
7352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7354 echo "$as_me:$LINENO: checking for $ac_header" >&5
7355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7361 else
7362 # Is the header compilable?
7363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7365 cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h. */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 $ac_includes_default
7372 #include <$ac_header>
7373 _ACEOF
7374 rm -f conftest.$ac_objext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>conftest.er1
7377 ac_status=$?
7378 grep -v '^ *+' conftest.er1 >conftest.err
7379 rm -f conftest.er1
7380 cat conftest.err >&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
7383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 (eval $ac_try) 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; } &&
7389 { ac_try='test -s conftest.$ac_objext'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 (eval $ac_try) 2>&5
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7395 ac_header_compiler=yes
7396 else
7397 echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7400 ac_header_compiler=no
7402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7404 echo "${ECHO_T}$ac_header_compiler" >&6
7406 # Is the header present?
7407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h. */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 #include <$ac_header>
7416 _ACEOF
7417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7418 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } >/dev/null; then
7425 if test -s conftest.err; then
7426 ac_cpp_err=$ac_c_preproc_warn_flag
7427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7428 else
7429 ac_cpp_err=
7431 else
7432 ac_cpp_err=yes
7434 if test -z "$ac_cpp_err"; then
7435 ac_header_preproc=yes
7436 else
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 ac_header_preproc=no
7442 rm -f conftest.err conftest.$ac_ext
7443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7444 echo "${ECHO_T}$ac_header_preproc" >&6
7446 # So? What about this header?
7447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7448 yes:no: )
7449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7453 ac_header_preproc=yes
7455 no:yes:* )
7456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7469 cat <<\_ASBOX
7470 ## ------------------------------------ ##
7471 ## Report this to wine-devel@winehq.org ##
7472 ## ------------------------------------ ##
7473 _ASBOX
7475 sed "s/^/$as_me: WARNING: /" >&2
7477 esac
7478 echo "$as_me:$LINENO: checking for $ac_header" >&5
7479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482 else
7483 eval "$as_ac_Header=\$ac_header_preproc"
7485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7490 cat >>confdefs.h <<_ACEOF
7491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7492 _ACEOF
7493 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
7494 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
7495 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498 ac_check_lib_save_LIBS=$LIBS
7499 LIBS="-lungif $LIBS"
7500 cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h. */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7507 /* Override any gcc2 internal prototype to avoid an error. */
7508 #ifdef __cplusplus
7509 extern "C"
7510 #endif
7511 /* We use char because int might match the return type of a gcc2
7512 builtin and then its argument prototype would still apply. */
7513 char DGifOpen ();
7515 main ()
7517 DGifOpen ();
7519 return 0;
7521 _ACEOF
7522 rm -f conftest.$ac_objext conftest$ac_exeext
7523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7524 (eval $ac_link) 2>conftest.er1
7525 ac_status=$?
7526 grep -v '^ *+' conftest.er1 >conftest.err
7527 rm -f conftest.er1
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } &&
7531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; } &&
7537 { ac_try='test -s conftest$ac_exeext'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539 (eval $ac_try) 2>&5
7540 ac_status=$?
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 ac_cv_lib_ungif_DGifOpen=yes
7544 else
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7548 ac_cv_lib_ungif_DGifOpen=no
7550 rm -f conftest.err conftest.$ac_objext \
7551 conftest$ac_exeext conftest.$ac_ext
7552 LIBS=$ac_check_lib_save_LIBS
7554 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
7555 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
7556 if test $ac_cv_lib_ungif_DGifOpen = yes; then
7558 cat >>confdefs.h <<\_ACEOF
7559 #define HAVE_LIBGIF 1
7560 _ACEOF
7562 GIFLIB="-lungif"
7563 else
7564 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
7565 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
7566 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568 else
7569 ac_check_lib_save_LIBS=$LIBS
7570 LIBS="-lgif $LIBS"
7571 cat >conftest.$ac_ext <<_ACEOF
7572 /* confdefs.h. */
7573 _ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h. */
7578 /* Override any gcc2 internal prototype to avoid an error. */
7579 #ifdef __cplusplus
7580 extern "C"
7581 #endif
7582 /* We use char because int might match the return type of a gcc2
7583 builtin and then its argument prototype would still apply. */
7584 char DGifOpen ();
7586 main ()
7588 DGifOpen ();
7590 return 0;
7592 _ACEOF
7593 rm -f conftest.$ac_objext conftest$ac_exeext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595 (eval $ac_link) 2>conftest.er1
7596 ac_status=$?
7597 grep -v '^ *+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } &&
7602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 (eval $ac_try) 2>&5
7605 ac_status=$?
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; } &&
7608 { ac_try='test -s conftest$ac_exeext'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 (eval $ac_try) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7614 ac_cv_lib_gif_DGifOpen=yes
7615 else
7616 echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7619 ac_cv_lib_gif_DGifOpen=no
7621 rm -f conftest.err conftest.$ac_objext \
7622 conftest$ac_exeext conftest.$ac_ext
7623 LIBS=$ac_check_lib_save_LIBS
7625 echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
7626 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
7627 if test $ac_cv_lib_gif_DGifOpen = yes; then
7628 cat >>confdefs.h <<\_ACEOF
7629 #define HAVE_LIBGIF 1
7630 _ACEOF
7632 GIFLIB="-lgif"
7639 done
7644 XFILES=""
7646 OPENGLFILES=""
7648 GLU32FILES=""
7650 OPENGL_LIBS=""
7651 if test "$have_x" = "yes"
7652 then
7653 XLIB="-lXext -lX11"
7654 ac_save_CPPFLAGS="$CPPFLAGS"
7655 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7658 for ac_header in X11/Xlib.h
7660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7662 echo "$as_me:$LINENO: checking for $ac_header" >&5
7663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7669 else
7670 # Is the header compilable?
7671 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7672 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7673 cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h. */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 $ac_includes_default
7680 #include <$ac_header>
7681 _ACEOF
7682 rm -f conftest.$ac_objext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684 (eval $ac_compile) 2>conftest.er1
7685 ac_status=$?
7686 grep -v '^ *+' conftest.er1 >conftest.err
7687 rm -f conftest.er1
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
7691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 (eval $ac_try) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; } &&
7697 { ac_try='test -s conftest.$ac_objext'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 ac_header_compiler=yes
7704 else
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7708 ac_header_compiler=no
7710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7712 echo "${ECHO_T}$ac_header_compiler" >&6
7714 # Is the header present?
7715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7717 cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h. */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 #include <$ac_header>
7724 _ACEOF
7725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7727 ac_status=$?
7728 grep -v '^ *+' conftest.er1 >conftest.err
7729 rm -f conftest.er1
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } >/dev/null; then
7733 if test -s conftest.err; then
7734 ac_cpp_err=$ac_c_preproc_warn_flag
7735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7736 else
7737 ac_cpp_err=
7739 else
7740 ac_cpp_err=yes
7742 if test -z "$ac_cpp_err"; then
7743 ac_header_preproc=yes
7744 else
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7748 ac_header_preproc=no
7750 rm -f conftest.err conftest.$ac_ext
7751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7752 echo "${ECHO_T}$ac_header_preproc" >&6
7754 # So? What about this header?
7755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7756 yes:no: )
7757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7761 ac_header_preproc=yes
7763 no:yes:* )
7764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7777 cat <<\_ASBOX
7778 ## ------------------------------------ ##
7779 ## Report this to wine-devel@winehq.org ##
7780 ## ------------------------------------ ##
7781 _ASBOX
7783 sed "s/^/$as_me: WARNING: /" >&2
7785 esac
7786 echo "$as_me:$LINENO: checking for $ac_header" >&5
7787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791 eval "$as_ac_Header=\$ac_header_preproc"
7793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7798 cat >>confdefs.h <<_ACEOF
7799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7800 _ACEOF
7812 for ac_header in X11/XKBlib.h \
7813 X11/Xutil.h \
7814 X11/extensions/shape.h \
7815 X11/extensions/XInput.h \
7816 X11/extensions/XShm.h \
7817 X11/extensions/Xrandr.h \
7818 X11/extensions/Xrender.h \
7819 X11/extensions/Xvlib.h \
7820 X11/extensions/xf86dga.h \
7821 X11/extensions/xf86vmode.h
7823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7824 echo "$as_me:$LINENO: checking for $ac_header" >&5
7825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 #include <X11/Xlib.h>
7836 #ifdef HAVE_X11_XUTIL_H
7837 # include <X11/Xutil.h>
7838 #endif
7840 #include <$ac_header>
7841 _ACEOF
7842 rm -f conftest.$ac_objext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7844 (eval $ac_compile) 2>conftest.er1
7845 ac_status=$?
7846 grep -v '^ *+' conftest.er1 >conftest.err
7847 rm -f conftest.er1
7848 cat conftest.err >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } &&
7851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7853 (eval $ac_try) 2>&5
7854 ac_status=$?
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; } &&
7857 { ac_try='test -s conftest.$ac_objext'
7858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 (eval $ac_try) 2>&5
7860 ac_status=$?
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7863 eval "$as_ac_Header=yes"
7864 else
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7868 eval "$as_ac_Header=no"
7870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7875 cat >>confdefs.h <<_ACEOF
7876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7877 _ACEOF
7881 done
7884 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7885 then
7886 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
7887 echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7888 if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 else
7891 ac_check_lib_save_LIBS=$LIBS
7892 LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7893 cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h. */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7900 /* Override any gcc2 internal prototype to avoid an error. */
7901 #ifdef __cplusplus
7902 extern "C"
7903 #endif
7904 /* We use char because int might match the return type of a gcc2
7905 builtin and then its argument prototype would still apply. */
7906 char XkbQueryExtension ();
7908 main ()
7910 XkbQueryExtension ();
7912 return 0;
7914 _ACEOF
7915 rm -f conftest.$ac_objext conftest$ac_exeext
7916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7917 (eval $ac_link) 2>conftest.er1
7918 ac_status=$?
7919 grep -v '^ *+' conftest.er1 >conftest.err
7920 rm -f conftest.er1
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 (eval $ac_try) 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; } &&
7930 { ac_try='test -s conftest$ac_exeext'
7931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 (eval $ac_try) 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); }; }; then
7936 ac_cv_lib_X11_XkbQueryExtension=yes
7937 else
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7941 ac_cv_lib_X11_XkbQueryExtension=no
7943 rm -f conftest.err conftest.$ac_objext \
7944 conftest$ac_exeext conftest.$ac_ext
7945 LIBS=$ac_check_lib_save_LIBS
7947 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
7948 echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7949 if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7951 cat >>confdefs.h <<\_ACEOF
7952 #define HAVE_XKB 1
7953 _ACEOF
7959 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7960 then
7961 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
7962 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7963 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 else
7966 ac_check_lib_save_LIBS=$LIBS
7967 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7968 cat >conftest.$ac_ext <<_ACEOF
7969 /* confdefs.h. */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7975 /* Override any gcc2 internal prototype to avoid an error. */
7976 #ifdef __cplusplus
7977 extern "C"
7978 #endif
7979 /* We use char because int might match the return type of a gcc2
7980 builtin and then its argument prototype would still apply. */
7981 char XShmQueryExtension ();
7983 main ()
7985 XShmQueryExtension ();
7987 return 0;
7989 _ACEOF
7990 rm -f conftest.$ac_objext conftest$ac_exeext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7992 (eval $ac_link) 2>conftest.er1
7993 ac_status=$?
7994 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -f conftest.er1
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } &&
7999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8001 (eval $ac_try) 2>&5
8002 ac_status=$?
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; } &&
8005 { ac_try='test -s conftest$ac_exeext'
8006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8007 (eval $ac_try) 2>&5
8008 ac_status=$?
8009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8011 ac_cv_lib_Xext_XShmQueryExtension=yes
8012 else
8013 echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8016 ac_cv_lib_Xext_XShmQueryExtension=no
8018 rm -f conftest.err conftest.$ac_objext \
8019 conftest$ac_exeext conftest.$ac_ext
8020 LIBS=$ac_check_lib_save_LIBS
8022 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8023 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
8024 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
8026 cat >>confdefs.h <<\_ACEOF
8027 #define HAVE_LIBXXSHM 1
8028 _ACEOF
8034 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8035 then
8036 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8037 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8038 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041 ac_check_lib_save_LIBS=$LIBS
8042 LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8043 cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h. */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8050 /* Override any gcc2 internal prototype to avoid an error. */
8051 #ifdef __cplusplus
8052 extern "C"
8053 #endif
8054 /* We use char because int might match the return type of a gcc2
8055 builtin and then its argument prototype would still apply. */
8056 char XShapeQueryExtension ();
8058 main ()
8060 XShapeQueryExtension ();
8062 return 0;
8064 _ACEOF
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067 (eval $ac_link) 2>conftest.er1
8068 ac_status=$?
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } &&
8074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 (eval $ac_try) 2>&5
8077 ac_status=$?
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; } &&
8080 { ac_try='test -s conftest$ac_exeext'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 (eval $ac_try) 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 ac_cv_lib_Xext_XShapeQueryExtension=yes
8087 else
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8091 ac_cv_lib_Xext_XShapeQueryExtension=no
8093 rm -f conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
8095 LIBS=$ac_check_lib_save_LIBS
8097 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8098 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8099 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8101 cat >>confdefs.h <<\_ACEOF
8102 #define HAVE_LIBXSHAPE 1
8103 _ACEOF
8109 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8110 then
8111 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8112 echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8113 if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116 ac_check_lib_save_LIBS=$LIBS
8117 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8118 cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h. */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8125 /* Override any gcc2 internal prototype to avoid an error. */
8126 #ifdef __cplusplus
8127 extern "C"
8128 #endif
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8131 char XDGAQueryExtension ();
8133 main ()
8135 XDGAQueryExtension ();
8137 return 0;
8139 _ACEOF
8140 rm -f conftest.$ac_objext conftest$ac_exeext
8141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8142 (eval $ac_link) 2>conftest.er1
8143 ac_status=$?
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; } &&
8155 { ac_try='test -s conftest$ac_exeext'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 (eval $ac_try) 2>&5
8158 ac_status=$?
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; }; then
8161 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
8162 else
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8166 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
8168 rm -f conftest.err conftest.$ac_objext \
8169 conftest$ac_exeext conftest.$ac_ext
8170 LIBS=$ac_check_lib_save_LIBS
8172 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8173 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
8174 if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
8176 cat >>confdefs.h <<\_ACEOF
8177 #define HAVE_LIBXXF86DGA2 1
8178 _ACEOF
8180 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8182 else
8183 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
8184 echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
8185 if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188 ac_check_lib_save_LIBS=$LIBS
8189 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
8190 $LIBS"
8191 cat >conftest.$ac_ext <<_ACEOF
8192 /* confdefs.h. */
8193 _ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h. */
8198 /* Override any gcc2 internal prototype to avoid an error. */
8199 #ifdef __cplusplus
8200 extern "C"
8201 #endif
8202 /* We use char because int might match the return type of a gcc2
8203 builtin and then its argument prototype would still apply. */
8204 char XF86DGAQueryExtension ();
8206 main ()
8208 XF86DGAQueryExtension ();
8210 return 0;
8212 _ACEOF
8213 rm -f conftest.$ac_objext conftest$ac_exeext
8214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8215 (eval $ac_link) 2>conftest.er1
8216 ac_status=$?
8217 grep -v '^ *+' conftest.er1 >conftest.err
8218 rm -f conftest.er1
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } &&
8222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; } &&
8228 { ac_try='test -s conftest$ac_exeext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
8235 else
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
8241 rm -f conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8243 LIBS=$ac_check_lib_save_LIBS
8245 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
8246 echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
8247 if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
8249 cat >>confdefs.h <<\_ACEOF
8250 #define HAVE_LIBXXF86DGA 1
8251 _ACEOF
8253 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
8262 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8263 then
8264 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8265 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
8266 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269 ac_check_lib_save_LIBS=$LIBS
8270 LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h. */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h. */
8278 /* Override any gcc2 internal prototype to avoid an error. */
8279 #ifdef __cplusplus
8280 extern "C"
8281 #endif
8282 /* We use char because int might match the return type of a gcc2
8283 builtin and then its argument prototype would still apply. */
8284 char XF86VidModeQueryExtension ();
8286 main ()
8288 XF86VidModeQueryExtension ();
8290 return 0;
8292 _ACEOF
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295 (eval $ac_link) 2>conftest.er1
8296 ac_status=$?
8297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304 (eval $ac_try) 2>&5
8305 ac_status=$?
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); }; } &&
8308 { ac_try='test -s conftest$ac_exeext'
8309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310 (eval $ac_try) 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
8314 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
8315 else
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8319 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
8321 rm -f conftest.err conftest.$ac_objext \
8322 conftest$ac_exeext conftest.$ac_ext
8323 LIBS=$ac_check_lib_save_LIBS
8325 echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8326 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8327 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
8329 cat >>confdefs.h <<\_ACEOF
8330 #define HAVE_LIBXXF86VM 1
8331 _ACEOF
8333 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
8339 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8340 then
8341 cat >conftest.$ac_ext <<_ACEOF
8342 /* confdefs.h. */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h. */
8347 #include <X11/Xlib.h>
8348 #include <X11/extensions/Xrandr.h>
8350 main ()
8352 static typeof(XRRSetScreenConfigAndRate) * func;
8354 return 0;
8356 _ACEOF
8357 rm -f conftest.$ac_objext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8359 (eval $ac_compile) 2>conftest.er1
8360 ac_status=$?
8361 grep -v '^ *+' conftest.er1 >conftest.err
8362 rm -f conftest.er1
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 (eval $ac_try) 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
8372 { ac_try='test -s conftest.$ac_objext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 (eval $ac_try) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8379 cat >>confdefs.h <<\_ACEOF
8380 #define HAVE_LIBXRANDR 1
8381 _ACEOF
8383 else
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8391 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
8392 then
8393 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
8394 echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
8395 if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 else
8398 ac_check_lib_save_LIBS=$LIBS
8399 LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8400 cat >conftest.$ac_ext <<_ACEOF
8401 /* confdefs.h. */
8402 _ACEOF
8403 cat confdefs.h >>conftest.$ac_ext
8404 cat >>conftest.$ac_ext <<_ACEOF
8405 /* end confdefs.h. */
8407 /* Override any gcc2 internal prototype to avoid an error. */
8408 #ifdef __cplusplus
8409 extern "C"
8410 #endif
8411 /* We use char because int might match the return type of a gcc2
8412 builtin and then its argument prototype would still apply. */
8413 char XvShmCreateImage ();
8415 main ()
8417 XvShmCreateImage ();
8419 return 0;
8421 _ACEOF
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>conftest.er1
8425 ac_status=$?
8426 grep -v '^ *+' conftest.er1 >conftest.err
8427 rm -f conftest.er1
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 (eval $ac_try) 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; } &&
8437 { ac_try='test -s conftest$ac_exeext'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 (eval $ac_try) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_lib_Xv_XvShmCreateImage=yes
8444 else
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8448 ac_cv_lib_Xv_XvShmCreateImage=no
8450 rm -f conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8452 LIBS=$ac_check_lib_save_LIBS
8454 echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
8455 echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
8456 if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
8458 cat >>confdefs.h <<\_ACEOF
8459 #define HAVE_XVIDEO 1
8460 _ACEOF
8462 X_PRE_LIBS="$X_PRE_LIBS -lXv"
8471 done
8473 if test "x$with_opengl" != "xno"
8474 then
8475 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
8476 then
8477 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
8478 This prevents linking to OpenGL. Delete the file and restart configure." >&5
8479 echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8480 This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8481 { (exit 1); exit 1; }; }
8486 for ac_header in GL/gl.h GL/glx.h
8488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8490 echo "$as_me:$LINENO: checking for $ac_header" >&5
8491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8497 else
8498 # Is the header compilable?
8499 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8501 cat >conftest.$ac_ext <<_ACEOF
8502 /* confdefs.h. */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8507 $ac_includes_default
8508 #include <$ac_header>
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8512 (eval $ac_compile) 2>conftest.er1
8513 ac_status=$?
8514 grep -v '^ *+' conftest.er1 >conftest.err
8515 rm -f conftest.er1
8516 cat conftest.err >&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 (eval $ac_try) 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; } &&
8525 { ac_try='test -s conftest.$ac_objext'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
8531 ac_header_compiler=yes
8532 else
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8536 ac_header_compiler=no
8538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8539 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8540 echo "${ECHO_T}$ac_header_compiler" >&6
8542 # Is the header present?
8543 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8545 cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h. */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8551 #include <$ac_header>
8552 _ACEOF
8553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8555 ac_status=$?
8556 grep -v '^ *+' conftest.er1 >conftest.err
8557 rm -f conftest.er1
8558 cat conftest.err >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } >/dev/null; then
8561 if test -s conftest.err; then
8562 ac_cpp_err=$ac_c_preproc_warn_flag
8563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8564 else
8565 ac_cpp_err=
8567 else
8568 ac_cpp_err=yes
8570 if test -z "$ac_cpp_err"; then
8571 ac_header_preproc=yes
8572 else
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8576 ac_header_preproc=no
8578 rm -f conftest.err conftest.$ac_ext
8579 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8580 echo "${ECHO_T}$ac_header_preproc" >&6
8582 # So? What about this header?
8583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8584 yes:no: )
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8589 ac_header_preproc=yes
8591 no:yes:* )
8592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8605 cat <<\_ASBOX
8606 ## ------------------------------------ ##
8607 ## Report this to wine-devel@winehq.org ##
8608 ## ------------------------------------ ##
8609 _ASBOX
8611 sed "s/^/$as_me: WARNING: /" >&2
8613 esac
8614 echo "$as_me:$LINENO: checking for $ac_header" >&5
8615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 else
8619 eval "$as_ac_Header=\$ac_header_preproc"
8621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8626 cat >>confdefs.h <<_ACEOF
8627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8628 _ACEOF
8632 done
8634 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8635 then
8637 for ac_header in GL/glext.h
8639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8640 echo "$as_me:$LINENO: checking for $ac_header" >&5
8641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 else
8645 cat >conftest.$ac_ext <<_ACEOF
8646 /* confdefs.h. */
8647 _ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 #include <GL/glx.h>
8653 #include <$ac_header>
8654 _ACEOF
8655 rm -f conftest.$ac_objext
8656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8657 (eval $ac_compile) 2>conftest.er1
8658 ac_status=$?
8659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } &&
8664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; } &&
8670 { ac_try='test -s conftest.$ac_objext'
8671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8672 (eval $ac_try) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; }; then
8676 eval "$as_ac_Header=yes"
8677 else
8678 echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8681 eval "$as_ac_Header=no"
8683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8688 cat >>confdefs.h <<_ACEOF
8689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8690 _ACEOF
8694 done
8696 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
8697 echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8698 if test "${wine_cv_opengl_version_OK+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 else
8701 cat >conftest.$ac_ext <<_ACEOF
8702 /* confdefs.h. */
8703 _ACEOF
8704 cat confdefs.h >>conftest.$ac_ext
8705 cat >>conftest.$ac_ext <<_ACEOF
8706 /* end confdefs.h. */
8707 #include <GL/gl.h>
8709 main ()
8711 GLenum test = GL_UNSIGNED_SHORT_5_6_5;
8713 return 0;
8715 _ACEOF
8716 rm -f conftest.$ac_objext
8717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8718 (eval $ac_compile) 2>conftest.er1
8719 ac_status=$?
8720 grep -v '^ *+' conftest.er1 >conftest.err
8721 rm -f conftest.er1
8722 cat conftest.err >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); } &&
8725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 (eval $ac_try) 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; } &&
8731 { ac_try='test -s conftest.$ac_objext'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 (eval $ac_try) 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 wine_cv_opengl_version_OK="yes"
8738 else
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 wine_cv_opengl_version_OK="no"
8745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8748 echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
8749 echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8751 if test "$wine_cv_opengl_version_OK" = "yes"
8752 then
8753 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
8754 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8755 if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8756 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758 ac_check_lib_save_LIBS=$LIBS
8759 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8760 cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h. */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8767 /* Override any gcc2 internal prototype to avoid an error. */
8768 #ifdef __cplusplus
8769 extern "C"
8770 #endif
8771 /* We use char because int might match the return type of a gcc2
8772 builtin and then its argument prototype would still apply. */
8773 char glXCreateContext ();
8775 main ()
8777 glXCreateContext ();
8779 return 0;
8781 _ACEOF
8782 rm -f conftest.$ac_objext conftest$ac_exeext
8783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8784 (eval $ac_link) 2>conftest.er1
8785 ac_status=$?
8786 grep -v '^ *+' conftest.er1 >conftest.err
8787 rm -f conftest.er1
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } &&
8791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 (eval $ac_try) 2>&5
8794 ac_status=$?
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); }; } &&
8797 { ac_try='test -s conftest$ac_exeext'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 (eval $ac_try) 2>&5
8800 ac_status=$?
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; }; then
8803 ac_cv_lib_GL_glXCreateContext=yes
8804 else
8805 echo "$as_me: failed program was:" >&5
8806 sed 's/^/| /' conftest.$ac_ext >&5
8808 ac_cv_lib_GL_glXCreateContext=no
8810 rm -f conftest.err conftest.$ac_objext \
8811 conftest$ac_exeext conftest.$ac_ext
8812 LIBS=$ac_check_lib_save_LIBS
8814 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
8815 echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8816 if test $ac_cv_lib_GL_glXCreateContext = yes; then
8817 OPENGL_LIBS="-lGL"
8822 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
8823 then
8824 OPENGLFILES='$(OPENGLFILES)'
8826 cat >>confdefs.h <<\_ACEOF
8827 #define HAVE_OPENGL 1
8828 _ACEOF
8831 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
8832 echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8833 if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835 else
8836 ac_check_lib_save_LIBS=$LIBS
8837 LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
8838 cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h. */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8845 /* Override any gcc2 internal prototype to avoid an error. */
8846 #ifdef __cplusplus
8847 extern "C"
8848 #endif
8849 /* We use char because int might match the return type of a gcc2
8850 builtin and then its argument prototype would still apply. */
8851 char glXGetProcAddressARB ();
8853 main ()
8855 glXGetProcAddressARB ();
8857 return 0;
8859 _ACEOF
8860 rm -f conftest.$ac_objext conftest$ac_exeext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8862 (eval $ac_link) 2>conftest.er1
8863 ac_status=$?
8864 grep -v '^ *+' conftest.er1 >conftest.err
8865 rm -f conftest.er1
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } &&
8869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 (eval $ac_try) 2>&5
8872 ac_status=$?
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); }; } &&
8875 { ac_try='test -s conftest$ac_exeext'
8876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877 (eval $ac_try) 2>&5
8878 ac_status=$?
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_cv_lib_GL_glXGetProcAddressARB=yes
8882 else
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8886 ac_cv_lib_GL_glXGetProcAddressARB=no
8888 rm -f conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8890 LIBS=$ac_check_lib_save_LIBS
8892 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
8893 echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8894 if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
8896 cat >>confdefs.h <<\_ACEOF
8897 #define HAVE_GLX_GETPROCADDRESS 1
8898 _ACEOF
8903 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
8904 then
8905 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
8906 echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8907 if test "${wine_cv_extension_prototypes+set}" = set; then
8908 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910 cat >conftest.$ac_ext <<_ACEOF
8911 /* confdefs.h. */
8912 _ACEOF
8913 cat confdefs.h >>conftest.$ac_ext
8914 cat >>conftest.$ac_ext <<_ACEOF
8915 /* end confdefs.h. */
8916 #include <GL/gl.h>
8917 #ifdef HAVE_GL_GLEXT_H
8918 # include <GL/glext.h>
8919 #endif
8922 main ()
8924 PFNGLCOLORTABLEEXTPROC test_proc;
8926 return 0;
8928 _ACEOF
8929 rm -f conftest.$ac_objext
8930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8931 (eval $ac_compile) 2>conftest.er1
8932 ac_status=$?
8933 grep -v '^ *+' conftest.er1 >conftest.err
8934 rm -f conftest.er1
8935 cat conftest.err >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } &&
8938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 (eval $ac_try) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); }; } &&
8944 { ac_try='test -s conftest.$ac_objext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 (eval $ac_try) 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 wine_cv_extension_prototypes="yes"
8951 else
8952 echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8955 wine_cv_extension_prototypes="no"
8958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8961 echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
8962 echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
8963 if test "$wine_cv_extension_prototypes" = "yes"
8964 then
8966 cat >>confdefs.h <<\_ACEOF
8967 #define HAVE_GLEXT_PROTOTYPES 1
8968 _ACEOF
8974 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
8975 echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8976 if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979 ac_check_lib_save_LIBS=$LIBS
8980 LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
8981 $LIBS"
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h. */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8989 /* Override any gcc2 internal prototype to avoid an error. */
8990 #ifdef __cplusplus
8991 extern "C"
8992 #endif
8993 /* We use char because int might match the return type of a gcc2
8994 builtin and then its argument prototype would still apply. */
8995 char gluLookAt ();
8997 main ()
8999 gluLookAt ();
9001 return 0;
9003 _ACEOF
9004 rm -f conftest.$ac_objext conftest$ac_exeext
9005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9006 (eval $ac_link) 2>conftest.er1
9007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } &&
9013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 (eval $ac_try) 2>&5
9016 ac_status=$?
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; } &&
9019 { ac_try='test -s conftest$ac_exeext'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 (eval $ac_try) 2>&5
9022 ac_status=$?
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; }; then
9025 ac_cv_lib_GLU_gluLookAt=yes
9026 else
9027 echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9030 ac_cv_lib_GLU_gluLookAt=no
9032 rm -f conftest.err conftest.$ac_objext \
9033 conftest$ac_exeext conftest.$ac_ext
9034 LIBS=$ac_check_lib_save_LIBS
9036 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
9037 echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
9038 if test $ac_cv_lib_GLU_gluLookAt = yes; then
9039 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
9040 GLU32FILES='$(GLU32FILES)'
9046 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
9047 echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
9048 if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051 ac_check_lib_save_LIBS=$LIBS
9052 LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h. */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9060 /* Override any gcc2 internal prototype to avoid an error. */
9061 #ifdef __cplusplus
9062 extern "C"
9063 #endif
9064 /* We use char because int might match the return type of a gcc2
9065 builtin and then its argument prototype would still apply. */
9066 char glutMainLoop ();
9068 main ()
9070 glutMainLoop ();
9072 return 0;
9074 _ACEOF
9075 rm -f conftest.$ac_objext conftest$ac_exeext
9076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9077 (eval $ac_link) 2>conftest.er1
9078 ac_status=$?
9079 grep -v '^ *+' conftest.er1 >conftest.err
9080 rm -f conftest.er1
9081 cat conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); } &&
9084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 (eval $ac_try) 2>&5
9087 ac_status=$?
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; } &&
9090 { ac_try='test -s conftest$ac_exeext'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9092 (eval $ac_try) 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096 ac_cv_lib_glut_glutMainLoop=yes
9097 else
9098 echo "$as_me: failed program was:" >&5
9099 sed 's/^/| /' conftest.$ac_ext >&5
9101 ac_cv_lib_glut_glutMainLoop=no
9103 rm -f conftest.err conftest.$ac_objext \
9104 conftest$ac_exeext conftest.$ac_ext
9105 LIBS=$ac_check_lib_save_LIBS
9107 echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9108 echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
9109 if test $ac_cv_lib_glut_glutMainLoop = yes; then
9110 GLUT_LIBS="-lglut -lXmu -lXi"
9112 GLUT32FILES='$(GLUT32FILES)'
9119 NASLIBS=""
9122 for ac_header in audio/audiolib.h
9124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9126 echo "$as_me:$LINENO: checking for $ac_header" >&5
9127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9133 else
9134 # Is the header compilable?
9135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9137 cat >conftest.$ac_ext <<_ACEOF
9138 /* confdefs.h. */
9139 _ACEOF
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9143 $ac_includes_default
9144 #include <$ac_header>
9145 _ACEOF
9146 rm -f conftest.$ac_objext
9147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9148 (eval $ac_compile) 2>conftest.er1
9149 ac_status=$?
9150 grep -v '^ *+' conftest.er1 >conftest.err
9151 rm -f conftest.er1
9152 cat conftest.err >&5
9153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154 (exit $ac_status); } &&
9155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 (eval $ac_try) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; } &&
9161 { ac_try='test -s conftest.$ac_objext'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 (eval $ac_try) 2>&5
9164 ac_status=$?
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; }; then
9167 ac_header_compiler=yes
9168 else
9169 echo "$as_me: failed program was:" >&5
9170 sed 's/^/| /' conftest.$ac_ext >&5
9172 ac_header_compiler=no
9174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9176 echo "${ECHO_T}$ac_header_compiler" >&6
9178 # Is the header present?
9179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9181 cat >conftest.$ac_ext <<_ACEOF
9182 /* confdefs.h. */
9183 _ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h. */
9187 #include <$ac_header>
9188 _ACEOF
9189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } >/dev/null; then
9197 if test -s conftest.err; then
9198 ac_cpp_err=$ac_c_preproc_warn_flag
9199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9200 else
9201 ac_cpp_err=
9203 else
9204 ac_cpp_err=yes
9206 if test -z "$ac_cpp_err"; then
9207 ac_header_preproc=yes
9208 else
9209 echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9212 ac_header_preproc=no
9214 rm -f conftest.err conftest.$ac_ext
9215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9216 echo "${ECHO_T}$ac_header_preproc" >&6
9218 # So? What about this header?
9219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9220 yes:no: )
9221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9225 ac_header_preproc=yes
9227 no:yes:* )
9228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9241 cat <<\_ASBOX
9242 ## ------------------------------------ ##
9243 ## Report this to wine-devel@winehq.org ##
9244 ## ------------------------------------ ##
9245 _ASBOX
9247 sed "s/^/$as_me: WARNING: /" >&2
9249 esac
9250 echo "$as_me:$LINENO: checking for $ac_header" >&5
9251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255 eval "$as_ac_Header=\$ac_header_preproc"
9257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9262 cat >>confdefs.h <<_ACEOF
9263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9264 _ACEOF
9266 for ac_header in audio/soundlib.h
9268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9269 echo "$as_me:$LINENO: checking for $ac_header" >&5
9270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274 cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h. */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9280 #include <audio/audiolib.h>
9282 #include <$ac_header>
9283 _ACEOF
9284 rm -f conftest.$ac_objext
9285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9286 (eval $ac_compile) 2>conftest.er1
9287 ac_status=$?
9288 grep -v '^ *+' conftest.er1 >conftest.err
9289 rm -f conftest.er1
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295 (eval $ac_try) 2>&5
9296 ac_status=$?
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; } &&
9299 { ac_try='test -s conftest.$ac_objext'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301 (eval $ac_try) 2>&5
9302 ac_status=$?
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; }; then
9305 eval "$as_ac_Header=yes"
9306 else
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9310 eval "$as_ac_Header=no"
9312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9317 cat >>confdefs.h <<_ACEOF
9318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9319 _ACEOF
9323 done
9325 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9326 echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
9327 if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 else
9330 ac_check_lib_save_LIBS=$LIBS
9331 LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h. */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9339 /* Override any gcc2 internal prototype to avoid an error. */
9340 #ifdef __cplusplus
9341 extern "C"
9342 #endif
9343 /* We use char because int might match the return type of a gcc2
9344 builtin and then its argument prototype would still apply. */
9345 char AuCreateFlow ();
9347 main ()
9349 AuCreateFlow ();
9351 return 0;
9353 _ACEOF
9354 rm -f conftest.$ac_objext conftest$ac_exeext
9355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>conftest.er1
9357 ac_status=$?
9358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } &&
9363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365 (eval $ac_try) 2>&5
9366 ac_status=$?
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); }; } &&
9369 { ac_try='test -s conftest$ac_exeext'
9370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9371 (eval $ac_try) 2>&5
9372 ac_status=$?
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; }; then
9375 ac_cv_lib_audio_AuCreateFlow=yes
9376 else
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9380 ac_cv_lib_audio_AuCreateFlow=no
9382 rm -f conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext conftest.$ac_ext
9384 LIBS=$ac_check_lib_save_LIBS
9386 echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9387 echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
9388 if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9390 cat >>confdefs.h <<\_ACEOF
9391 #define HAVE_NAS 1
9392 _ACEOF
9394 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9399 done
9402 CPPFLAGS="$ac_save_CPPFLAGS"
9403 XFILES='$(XFILES)'
9404 else
9405 XLIB=""
9406 X_CFLAGS=""
9407 X_LIBS=""
9410 CURSESLIBS=""
9411 if test "x$with_curses" != "xno"
9412 then
9414 for ac_header in ncurses.h
9416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9418 echo "$as_me:$LINENO: checking for $ac_header" >&5
9419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9425 else
9426 # Is the header compilable?
9427 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9428 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9429 cat >conftest.$ac_ext <<_ACEOF
9430 /* confdefs.h. */
9431 _ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h. */
9435 $ac_includes_default
9436 #include <$ac_header>
9437 _ACEOF
9438 rm -f conftest.$ac_objext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9440 (eval $ac_compile) 2>conftest.er1
9441 ac_status=$?
9442 grep -v '^ *+' conftest.er1 >conftest.err
9443 rm -f conftest.er1
9444 cat conftest.err >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449 (eval $ac_try) 2>&5
9450 ac_status=$?
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; } &&
9453 { ac_try='test -s conftest.$ac_objext'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9459 ac_header_compiler=yes
9460 else
9461 echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9464 ac_header_compiler=no
9466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9468 echo "${ECHO_T}$ac_header_compiler" >&6
9470 # Is the header present?
9471 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9472 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9473 cat >conftest.$ac_ext <<_ACEOF
9474 /* confdefs.h. */
9475 _ACEOF
9476 cat confdefs.h >>conftest.$ac_ext
9477 cat >>conftest.$ac_ext <<_ACEOF
9478 /* end confdefs.h. */
9479 #include <$ac_header>
9480 _ACEOF
9481 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9483 ac_status=$?
9484 grep -v '^ *+' conftest.er1 >conftest.err
9485 rm -f conftest.er1
9486 cat conftest.err >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } >/dev/null; then
9489 if test -s conftest.err; then
9490 ac_cpp_err=$ac_c_preproc_warn_flag
9491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9492 else
9493 ac_cpp_err=
9495 else
9496 ac_cpp_err=yes
9498 if test -z "$ac_cpp_err"; then
9499 ac_header_preproc=yes
9500 else
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9504 ac_header_preproc=no
9506 rm -f conftest.err conftest.$ac_ext
9507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9508 echo "${ECHO_T}$ac_header_preproc" >&6
9510 # So? What about this header?
9511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9512 yes:no: )
9513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9517 ac_header_preproc=yes
9519 no:yes:* )
9520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9523 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9527 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9533 cat <<\_ASBOX
9534 ## ------------------------------------ ##
9535 ## Report this to wine-devel@winehq.org ##
9536 ## ------------------------------------ ##
9537 _ASBOX
9539 sed "s/^/$as_me: WARNING: /" >&2
9541 esac
9542 echo "$as_me:$LINENO: checking for $ac_header" >&5
9543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547 eval "$as_ac_Header=\$ac_header_preproc"
9549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9554 cat >>confdefs.h <<_ACEOF
9555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9556 _ACEOF
9557 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
9558 echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9559 if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 else
9562 ac_check_lib_save_LIBS=$LIBS
9563 LIBS="-lncurses $LIBS"
9564 cat >conftest.$ac_ext <<_ACEOF
9565 /* confdefs.h. */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9571 /* Override any gcc2 internal prototype to avoid an error. */
9572 #ifdef __cplusplus
9573 extern "C"
9574 #endif
9575 /* We use char because int might match the return type of a gcc2
9576 builtin and then its argument prototype would still apply. */
9577 char waddch ();
9579 main ()
9581 waddch ();
9583 return 0;
9585 _ACEOF
9586 rm -f conftest.$ac_objext conftest$ac_exeext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9588 (eval $ac_link) 2>conftest.er1
9589 ac_status=$?
9590 grep -v '^ *+' conftest.er1 >conftest.err
9591 rm -f conftest.er1
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } &&
9595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 (eval $ac_try) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; } &&
9601 { ac_try='test -s conftest$ac_exeext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 (eval $ac_try) 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_cv_lib_ncurses_waddch=yes
9608 else
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 ac_cv_lib_ncurses_waddch=no
9614 rm -f conftest.err conftest.$ac_objext \
9615 conftest$ac_exeext conftest.$ac_ext
9616 LIBS=$ac_check_lib_save_LIBS
9618 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
9619 echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9620 if test $ac_cv_lib_ncurses_waddch = yes; then
9622 cat >>confdefs.h <<\_ACEOF
9623 #define HAVE_LIBNCURSES 1
9624 _ACEOF
9626 CURSESLIBS="-lncurses"
9627 else
9629 for ac_header in curses.h
9631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9633 echo "$as_me:$LINENO: checking for $ac_header" >&5
9634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9640 else
9641 # Is the header compilable?
9642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9644 cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h. */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9650 $ac_includes_default
9651 #include <$ac_header>
9652 _ACEOF
9653 rm -f conftest.$ac_objext
9654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9655 (eval $ac_compile) 2>conftest.er1
9656 ac_status=$?
9657 grep -v '^ *+' conftest.er1 >conftest.err
9658 rm -f conftest.er1
9659 cat conftest.err >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest.$ac_objext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 ac_header_compiler=yes
9675 else
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679 ac_header_compiler=no
9681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9683 echo "${ECHO_T}$ac_header_compiler" >&6
9685 # Is the header present?
9686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h. */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 #include <$ac_header>
9695 _ACEOF
9696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9698 ac_status=$?
9699 grep -v '^ *+' conftest.er1 >conftest.err
9700 rm -f conftest.er1
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } >/dev/null; then
9704 if test -s conftest.err; then
9705 ac_cpp_err=$ac_c_preproc_warn_flag
9706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9707 else
9708 ac_cpp_err=
9710 else
9711 ac_cpp_err=yes
9713 if test -z "$ac_cpp_err"; then
9714 ac_header_preproc=yes
9715 else
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9719 ac_header_preproc=no
9721 rm -f conftest.err conftest.$ac_ext
9722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9723 echo "${ECHO_T}$ac_header_preproc" >&6
9725 # So? What about this header?
9726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9727 yes:no: )
9728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9732 ac_header_preproc=yes
9734 no:yes:* )
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9748 cat <<\_ASBOX
9749 ## ------------------------------------ ##
9750 ## Report this to wine-devel@winehq.org ##
9751 ## ------------------------------------ ##
9752 _ASBOX
9754 sed "s/^/$as_me: WARNING: /" >&2
9756 esac
9757 echo "$as_me:$LINENO: checking for $ac_header" >&5
9758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762 eval "$as_ac_Header=\$ac_header_preproc"
9764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9769 cat >>confdefs.h <<_ACEOF
9770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9771 _ACEOF
9772 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
9773 echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9774 if test "${ac_cv_lib_curses_waddch+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9776 else
9777 ac_check_lib_save_LIBS=$LIBS
9778 LIBS="-lcurses $LIBS"
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h. */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9786 /* Override any gcc2 internal prototype to avoid an error. */
9787 #ifdef __cplusplus
9788 extern "C"
9789 #endif
9790 /* We use char because int might match the return type of a gcc2
9791 builtin and then its argument prototype would still apply. */
9792 char waddch ();
9794 main ()
9796 waddch ();
9798 return 0;
9800 _ACEOF
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803 (eval $ac_link) 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 (eval $ac_try) 2>&5
9813 ac_status=$?
9814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815 (exit $ac_status); }; } &&
9816 { ac_try='test -s conftest$ac_exeext'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 (eval $ac_try) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; }; then
9822 ac_cv_lib_curses_waddch=yes
9823 else
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 ac_cv_lib_curses_waddch=no
9829 rm -f conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9831 LIBS=$ac_check_lib_save_LIBS
9833 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
9834 echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9835 if test $ac_cv_lib_curses_waddch = yes; then
9837 cat >>confdefs.h <<\_ACEOF
9838 #define HAVE_LIBCURSES 1
9839 _ACEOF
9841 CURSESLIBS="-lcurses"
9846 done
9852 done
9854 saved_libs="$LIBS"
9855 LIBS="$CURSESLIBS $LIBS"
9858 for ac_func in getbkgd resizeterm
9860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9861 echo "$as_me:$LINENO: checking for $ac_func" >&5
9862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9863 if eval "test \"\${$as_ac_var+set}\" = set"; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 else
9866 cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h. */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9874 #define $ac_func innocuous_$ac_func
9876 /* System header to define __stub macros and hopefully few prototypes,
9877 which can conflict with char $ac_func (); below.
9878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9879 <limits.h> exists even on freestanding compilers. */
9881 #ifdef __STDC__
9882 # include <limits.h>
9883 #else
9884 # include <assert.h>
9885 #endif
9887 #undef $ac_func
9889 /* Override any gcc2 internal prototype to avoid an error. */
9890 #ifdef __cplusplus
9891 extern "C"
9893 #endif
9894 /* We use char because int might match the return type of a gcc2
9895 builtin and then its argument prototype would still apply. */
9896 char $ac_func ();
9897 /* The GNU C library defines this for functions which it implements
9898 to always fail with ENOSYS. Some functions are actually named
9899 something starting with __ and the normal name is an alias. */
9900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9901 choke me
9902 #else
9903 char (*f) () = $ac_func;
9904 #endif
9905 #ifdef __cplusplus
9907 #endif
9910 main ()
9912 return f != $ac_func;
9914 return 0;
9916 _ACEOF
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9919 (eval $ac_link) 2>conftest.er1
9920 ac_status=$?
9921 grep -v '^ *+' conftest.er1 >conftest.err
9922 rm -f conftest.er1
9923 cat conftest.err >&5
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); } &&
9926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9928 (eval $ac_try) 2>&5
9929 ac_status=$?
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); }; } &&
9932 { ac_try='test -s conftest$ac_exeext'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9934 (eval $ac_try) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 eval "$as_ac_var=yes"
9939 else
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 eval "$as_ac_var=no"
9945 rm -f conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9950 if test `eval echo '${'$as_ac_var'}'` = yes; then
9951 cat >>confdefs.h <<_ACEOF
9952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9953 _ACEOF
9956 done
9958 LIBS="$saved_libs"
9962 # Extract the first word of "sane-config", so it can be a program name with args.
9963 set dummy sane-config; ac_word=$2
9964 echo "$as_me:$LINENO: checking for $ac_word" >&5
9965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9966 if test "${ac_cv_prog_sane_devel+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969 if test -n "$sane_devel"; then
9970 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9971 else
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 for as_dir in $PATH
9975 IFS=$as_save_IFS
9976 test -z "$as_dir" && as_dir=.
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979 ac_cv_prog_sane_devel="sane-config"
9980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9981 break 2
9983 done
9984 done
9986 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9989 sane_devel=$ac_cv_prog_sane_devel
9990 if test -n "$sane_devel"; then
9991 echo "$as_me:$LINENO: result: $sane_devel" >&5
9992 echo "${ECHO_T}$sane_devel" >&6
9993 else
9994 echo "$as_me:$LINENO: result: no" >&5
9995 echo "${ECHO_T}no" >&6
9998 if test "$sane_devel" = "no"
9999 then
10000 SANELIBS=""
10001 SANEINCL=""
10002 else
10003 SANELIBS="`$sane_devel --libs`"
10004 SANEINCL="`$sane_devel --cflags`"
10005 ac_save_CPPFLAGS="$CPPFLAGS"
10006 ac_save_LIBS="$LIBS"
10007 CPPFLAGS="$CPPFLAGS $SANEINCL"
10008 LIBS="$LIBS $SANELIBS"
10009 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10010 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10011 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10012 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10016 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10017 else
10018 # Is the header compilable?
10019 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
10020 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027 $ac_includes_default
10028 #include <sane/sane.h>
10029 _ACEOF
10030 rm -f conftest.$ac_objext
10031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10032 (eval $ac_compile) 2>conftest.er1
10033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } &&
10039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10041 (eval $ac_try) 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try='test -s conftest.$ac_objext'
10046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; }; then
10051 ac_header_compiler=yes
10052 else
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 ac_header_compiler=no
10058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10060 echo "${ECHO_T}$ac_header_compiler" >&6
10062 # Is the header present?
10063 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10064 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
10065 cat >conftest.$ac_ext <<_ACEOF
10066 /* confdefs.h. */
10067 _ACEOF
10068 cat confdefs.h >>conftest.$ac_ext
10069 cat >>conftest.$ac_ext <<_ACEOF
10070 /* end confdefs.h. */
10071 #include <sane/sane.h>
10072 _ACEOF
10073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } >/dev/null; then
10081 if test -s conftest.err; then
10082 ac_cpp_err=$ac_c_preproc_warn_flag
10083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10084 else
10085 ac_cpp_err=
10087 else
10088 ac_cpp_err=yes
10090 if test -z "$ac_cpp_err"; then
10091 ac_header_preproc=yes
10092 else
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10096 ac_header_preproc=no
10098 rm -f conftest.err conftest.$ac_ext
10099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10100 echo "${ECHO_T}$ac_header_preproc" >&6
10102 # So? What about this header?
10103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10104 yes:no: )
10105 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10106 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10107 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10108 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10109 ac_header_preproc=yes
10111 no:yes:* )
10112 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10113 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
10114 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10115 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10116 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10117 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10118 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10119 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
10120 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
10121 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
10122 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10123 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
10125 cat <<\_ASBOX
10126 ## ------------------------------------ ##
10127 ## Report this to wine-devel@winehq.org ##
10128 ## ------------------------------------ ##
10129 _ASBOX
10131 sed "s/^/$as_me: WARNING: /" >&2
10133 esac
10134 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10135 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
10136 if test "${ac_cv_header_sane_sane_h+set}" = set; then
10137 echo $ECHO_N "(cached) $ECHO_C" >&6
10138 else
10139 ac_cv_header_sane_sane_h=$ac_header_preproc
10141 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10142 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
10145 if test $ac_cv_header_sane_sane_h = yes; then
10146 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10147 echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
10148 if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151 ac_check_lib_save_LIBS=$LIBS
10152 LIBS="-lsane $LIBS"
10153 cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h. */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10160 /* Override any gcc2 internal prototype to avoid an error. */
10161 #ifdef __cplusplus
10162 extern "C"
10163 #endif
10164 /* We use char because int might match the return type of a gcc2
10165 builtin and then its argument prototype would still apply. */
10166 char sane_open ();
10168 main ()
10170 sane_open ();
10172 return 0;
10174 _ACEOF
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177 (eval $ac_link) 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; } &&
10190 { ac_try='test -s conftest$ac_exeext'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10193 ac_status=$?
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10196 ac_cv_lib_sane_sane_open=yes
10197 else
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10201 ac_cv_lib_sane_sane_open=no
10203 rm -f conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
10205 LIBS=$ac_check_lib_save_LIBS
10207 echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10208 echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
10209 if test $ac_cv_lib_sane_sane_open = yes; then
10211 cat >>confdefs.h <<\_ACEOF
10212 #define HAVE_SANE 1
10213 _ACEOF
10215 else
10216 SANELIBS=""
10217 SANEINCL=""
10220 else
10221 SANELIBS=""
10222 SANEINCL=""
10226 LIBS="$ac_save_LIBS"
10227 CPPFLAGS="$ac_save_CPPFLAGS"
10233 for ac_header in unicode/ubidi.h
10235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10237 echo "$as_me:$LINENO: checking for $ac_header" >&5
10238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10244 else
10245 # Is the header compilable?
10246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10248 cat >conftest.$ac_ext <<_ACEOF
10249 /* confdefs.h. */
10250 _ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h. */
10254 $ac_includes_default
10255 #include <$ac_header>
10256 _ACEOF
10257 rm -f conftest.$ac_objext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>conftest.er1
10260 ac_status=$?
10261 grep -v '^ *+' conftest.er1 >conftest.err
10262 rm -f conftest.er1
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } &&
10266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10268 (eval $ac_try) 2>&5
10269 ac_status=$?
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; } &&
10272 { ac_try='test -s conftest.$ac_objext'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; }; then
10278 ac_header_compiler=yes
10279 else
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 ac_header_compiler=no
10285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10287 echo "${ECHO_T}$ac_header_compiler" >&6
10289 # Is the header present?
10290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10292 cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h. */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298 #include <$ac_header>
10299 _ACEOF
10300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10302 ac_status=$?
10303 grep -v '^ *+' conftest.er1 >conftest.err
10304 rm -f conftest.er1
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } >/dev/null; then
10308 if test -s conftest.err; then
10309 ac_cpp_err=$ac_c_preproc_warn_flag
10310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10311 else
10312 ac_cpp_err=
10314 else
10315 ac_cpp_err=yes
10317 if test -z "$ac_cpp_err"; then
10318 ac_header_preproc=yes
10319 else
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 ac_header_preproc=no
10325 rm -f conftest.err conftest.$ac_ext
10326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10327 echo "${ECHO_T}$ac_header_preproc" >&6
10329 # So? What about this header?
10330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10331 yes:no: )
10332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10336 ac_header_preproc=yes
10338 no:yes:* )
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10352 cat <<\_ASBOX
10353 ## ------------------------------------ ##
10354 ## Report this to wine-devel@winehq.org ##
10355 ## ------------------------------------ ##
10356 _ASBOX
10358 sed "s/^/$as_me: WARNING: /" >&2
10360 esac
10361 echo "$as_me:$LINENO: checking for $ac_header" >&5
10362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366 eval "$as_ac_Header=\$ac_header_preproc"
10368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10373 cat >>confdefs.h <<_ACEOF
10374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10375 _ACEOF
10379 done
10381 if test "$ac_cv_header_unicode_ubidi_h" = "yes"
10382 then
10383 saved_libs="$LIBS"
10384 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
10385 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
10386 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
10387 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
10388 echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
10389 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10390 cat >conftest.$ac_ext <<_ACEOF
10391 /* confdefs.h. */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10396 #include <unicode/ubidi.h>
10398 main ()
10400 ubidi_open()
10402 return 0;
10404 _ACEOF
10405 rm -f conftest.$ac_objext conftest$ac_exeext
10406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10407 (eval $ac_link) 2>conftest.er1
10408 ac_status=$?
10409 grep -v '^ *+' conftest.er1 >conftest.err
10410 rm -f conftest.er1
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
10414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; } &&
10420 { ac_try='test -s conftest$ac_exeext'
10421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422 (eval $ac_try) 2>&5
10423 ac_status=$?
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; }; then
10427 cat >>confdefs.h <<\_ACEOF
10428 #define HAVE_ICU 1
10429 _ACEOF
10431 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
10433 echo "$as_me:$LINENO: result: yes" >&5
10434 echo "${ECHO_T}yes" >&6
10435 else
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 echo "$as_me:$LINENO: result: no" >&5
10440 echo "${ECHO_T}no" >&6
10442 rm -f conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10444 LIBS="$saved_libs"
10447 echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
10448 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10449 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10450 echo $ECHO_N "(cached) $ECHO_C" >&6
10451 else
10452 ac_check_lib_save_LIBS=$LIBS
10453 LIBS="-lfreetype $X_LIBS $LIBS"
10454 cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h. */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10461 /* Override any gcc2 internal prototype to avoid an error. */
10462 #ifdef __cplusplus
10463 extern "C"
10464 #endif
10465 /* We use char because int might match the return type of a gcc2
10466 builtin and then its argument prototype would still apply. */
10467 char FT_Init_FreeType ();
10469 main ()
10471 FT_Init_FreeType ();
10473 return 0;
10475 _ACEOF
10476 rm -f conftest.$ac_objext conftest$ac_exeext
10477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10478 (eval $ac_link) 2>conftest.er1
10479 ac_status=$?
10480 grep -v '^ *+' conftest.er1 >conftest.err
10481 rm -f conftest.er1
10482 cat conftest.err >&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } &&
10485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487 (eval $ac_try) 2>&5
10488 ac_status=$?
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); }; } &&
10491 { ac_try='test -s conftest$ac_exeext'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; }; then
10497 ac_cv_lib_freetype_FT_Init_FreeType=yes
10498 else
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10502 ac_cv_lib_freetype_FT_Init_FreeType=no
10504 rm -f conftest.err conftest.$ac_objext \
10505 conftest$ac_exeext conftest.$ac_ext
10506 LIBS=$ac_check_lib_save_LIBS
10508 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
10509 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10510 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
10511 ft_lib=yes
10512 else
10513 ft_lib=no
10516 if test "$ft_lib" = "no"
10517 then
10518 FREETYPEINCL=""
10519 wine_cv_msg_freetype=no
10520 else
10521 # Extract the first word of "freetype-config", so it can be a program name with args.
10522 set dummy freetype-config; ac_word=$2
10523 echo "$as_me:$LINENO: checking for $ac_word" >&5
10524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10525 if test "${ac_cv_prog_ft_devel+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 else
10528 if test -n "$ft_devel"; then
10529 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10530 else
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10538 ac_cv_prog_ft_devel="freetype-config"
10539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10542 done
10543 done
10545 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10548 ft_devel=$ac_cv_prog_ft_devel
10549 if test -n "$ft_devel"; then
10550 echo "$as_me:$LINENO: result: $ft_devel" >&5
10551 echo "${ECHO_T}$ft_devel" >&6
10552 else
10553 echo "$as_me:$LINENO: result: no" >&5
10554 echo "${ECHO_T}no" >&6
10557 if test "$ft_devel" = "no"
10558 then
10559 # Extract the first word of "freetype2-config", so it can be a program name with args.
10560 set dummy freetype2-config; ac_word=$2
10561 echo "$as_me:$LINENO: checking for $ac_word" >&5
10562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10563 if test "${ac_cv_prog_ft_devel2+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566 if test -n "$ft_devel2"; then
10567 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10568 else
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10572 IFS=$as_save_IFS
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10576 ac_cv_prog_ft_devel2="freetype2-config"
10577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10578 break 2
10580 done
10581 done
10583 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10586 ft_devel2=$ac_cv_prog_ft_devel2
10587 if test -n "$ft_devel2"; then
10588 echo "$as_me:$LINENO: result: $ft_devel2" >&5
10589 echo "${ECHO_T}$ft_devel2" >&6
10590 else
10591 echo "$as_me:$LINENO: result: no" >&5
10592 echo "${ECHO_T}no" >&6
10595 if test "$ft_devel2" = "freetype2-config"
10596 then
10597 ft_devel=$ft_devel2
10600 if test "$ft_devel" = "no"
10601 then
10602 FREETYPEINCL=""
10603 wine_cv_msg_freetype=yes
10604 else
10605 FREETYPEINCL=`$ft_devel --cflags`
10606 ac_save_CPPFLAGS="$CPPFLAGS"
10607 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
10618 for ac_header in ft2build.h \
10619 freetype/freetype.h \
10620 freetype/ftglyph.h \
10621 freetype/tttables.h \
10622 freetype/ftnames.h \
10623 freetype/ftsnames.h \
10624 freetype/ttnameid.h \
10625 freetype/ftoutln.h \
10626 freetype/ftwinfnt.h \
10627 freetype/internal/sfnt.h
10629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10630 echo "$as_me:$LINENO: checking for $ac_header" >&5
10631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10634 else
10635 cat >conftest.$ac_ext <<_ACEOF
10636 /* confdefs.h. */
10637 _ACEOF
10638 cat confdefs.h >>conftest.$ac_ext
10639 cat >>conftest.$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 #if HAVE_FT2BUILD_H
10642 #include <ft2build.h>
10643 #endif
10645 #include <$ac_header>
10646 _ACEOF
10647 rm -f conftest.$ac_objext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10649 (eval $ac_compile) 2>conftest.er1
10650 ac_status=$?
10651 grep -v '^ *+' conftest.er1 >conftest.err
10652 rm -f conftest.er1
10653 cat conftest.err >&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); } &&
10656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; } &&
10662 { ac_try='test -s conftest.$ac_objext'
10663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664 (eval $ac_try) 2>&5
10665 ac_status=$?
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); }; }; then
10668 eval "$as_ac_Header=yes"
10669 else
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10673 eval "$as_ac_Header=no"
10675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10680 cat >>confdefs.h <<_ACEOF
10681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10682 _ACEOF
10686 done
10688 cat >conftest.$ac_ext <<_ACEOF
10689 /* confdefs.h. */
10690 _ACEOF
10691 cat confdefs.h >>conftest.$ac_ext
10692 cat >>conftest.$ac_ext <<_ACEOF
10693 /* end confdefs.h. */
10694 #include <ft2build.h>
10695 #include <freetype/fttrigon.h>
10696 _ACEOF
10697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10699 ac_status=$?
10700 grep -v '^ *+' conftest.er1 >conftest.err
10701 rm -f conftest.er1
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } >/dev/null; then
10705 if test -s conftest.err; then
10706 ac_cpp_err=$ac_c_preproc_warn_flag
10707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10708 else
10709 ac_cpp_err=
10711 else
10712 ac_cpp_err=yes
10714 if test -z "$ac_cpp_err"; then
10716 cat >>confdefs.h <<\_ACEOF
10717 #define HAVE_FREETYPE_FTTRIGON_H 1
10718 _ACEOF
10720 wine_cv_fttrigon=yes
10721 else
10722 echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10725 wine_cv_fttrigon=no
10727 rm -f conftest.err conftest.$ac_ext
10728 CPPFLAGS="$ac_save_CPPFLAGS"
10729 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
10730 then
10732 cat >>confdefs.h <<\_ACEOF
10733 #define HAVE_FREETYPE 1
10734 _ACEOF
10736 wine_cv_msg_freetype=no
10737 else
10738 FREETYPEINCL=""
10739 wine_cv_msg_freetype=yes
10745 echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
10746 echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10747 if test "${ac_cv_c_ppdev+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 else
10750 cat >conftest.$ac_ext <<_ACEOF
10751 /* confdefs.h. */
10752 _ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10756 #include <linux/ppdev.h>
10758 main ()
10760 ioctl (1,PPCLAIM,0)
10762 return 0;
10764 _ACEOF
10765 rm -f conftest.$ac_objext
10766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10767 (eval $ac_compile) 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } &&
10774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; } &&
10780 { ac_try='test -s conftest.$ac_objext'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 ac_cv_c_ppdev="yes"
10787 else
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 ac_cv_c_ppdev="no"
10793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10796 echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
10797 echo "${ECHO_T}$ac_cv_c_ppdev" >&6
10798 if test "$ac_cv_c_ppdev" = "yes"
10799 then
10801 cat >>confdefs.h <<\_ACEOF
10802 #define HAVE_PPDEV 1
10803 _ACEOF
10807 echo "$as_me:$LINENO: checking for va_copy" >&5
10808 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10809 if test "${ac_cv_c_va_copy+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10811 else
10812 cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h. */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h. */
10818 #include <stdarg.h>
10820 main ()
10822 va_list ap1, ap2;
10823 va_copy(ap1,ap2);
10826 return 0;
10828 _ACEOF
10829 rm -f conftest.$ac_objext conftest$ac_exeext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831 (eval $ac_link) 2>conftest.er1
10832 ac_status=$?
10833 grep -v '^ *+' conftest.er1 >conftest.err
10834 rm -f conftest.er1
10835 cat conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } &&
10838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10841 ac_status=$?
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; } &&
10844 { ac_try='test -s conftest$ac_exeext'
10845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10850 ac_cv_c_va_copy="yes"
10851 else
10852 echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10855 ac_cv_c_va_copy="no"
10857 rm -f conftest.err conftest.$ac_objext \
10858 conftest$ac_exeext conftest.$ac_ext
10861 echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10862 echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10863 if test "$ac_cv_c_va_copy" = "yes"
10864 then
10866 cat >>confdefs.h <<\_ACEOF
10867 #define HAVE_VA_COPY 1
10868 _ACEOF
10871 echo "$as_me:$LINENO: checking for __va_copy" >&5
10872 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10873 if test "${ac_cv_c___va_copy+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h. */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <stdarg.h>
10884 main ()
10886 va_list ap1, ap2;
10887 __va_copy(ap1,ap2);
10890 return 0;
10892 _ACEOF
10893 rm -f conftest.$ac_objext conftest$ac_exeext
10894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10895 (eval $ac_link) 2>conftest.er1
10896 ac_status=$?
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
10902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest$ac_exeext'
10909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10910 (eval $ac_try) 2>&5
10911 ac_status=$?
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; }; then
10914 ac_cv_c___va_copy="yes"
10915 else
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.$ac_ext >&5
10919 ac_cv_c___va_copy="no"
10921 rm -f conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
10925 echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10926 echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10927 if test "$ac_cv_c___va_copy" = "yes"
10928 then
10930 cat >>confdefs.h <<\_ACEOF
10931 #define HAVE___VA_COPY 1
10932 _ACEOF
10936 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10937 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10938 if test "${ac_cv_c_sigsetjmp+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941 cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h. */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 #include <setjmp.h>
10949 main ()
10951 sigjmp_buf buf;
10952 sigsetjmp( buf, 1 );
10953 siglongjmp( buf, 1 );
10955 return 0;
10957 _ACEOF
10958 rm -f conftest.$ac_objext conftest$ac_exeext
10959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10960 (eval $ac_link) 2>conftest.er1
10961 ac_status=$?
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } &&
10967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969 (eval $ac_try) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; } &&
10973 { ac_try='test -s conftest$ac_exeext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 ac_cv_c_sigsetjmp="yes"
10980 else
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 ac_cv_c_sigsetjmp="no"
10986 rm -f conftest.err conftest.$ac_objext \
10987 conftest$ac_exeext conftest.$ac_ext
10990 echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10991 echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10992 if test "$ac_cv_c_sigsetjmp" = "yes"
10993 then
10995 cat >>confdefs.h <<\_ACEOF
10996 #define HAVE_SIGSETJMP 1
10997 _ACEOF
11001 echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
11002 echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
11003 if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h. */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 #define _GNU_SOURCE
11013 #include <pthread.h>
11016 main ()
11018 if ((pthread_rwlock_t *) 0)
11019 return 0;
11020 if (sizeof (pthread_rwlock_t))
11021 return 0;
11023 return 0;
11025 _ACEOF
11026 rm -f conftest.$ac_objext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11028 (eval $ac_compile) 2>conftest.er1
11029 ac_status=$?
11030 grep -v '^ *+' conftest.er1 >conftest.err
11031 rm -f conftest.er1
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11037 (eval $ac_try) 2>&5
11038 ac_status=$?
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; } &&
11041 { ac_try='test -s conftest.$ac_objext'
11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11043 (eval $ac_try) 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; }; then
11047 ac_cv_type_pthread_rwlock_t=yes
11048 else
11049 echo "$as_me: failed program was:" >&5
11050 sed 's/^/| /' conftest.$ac_ext >&5
11052 ac_cv_type_pthread_rwlock_t=no
11054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11056 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
11057 echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
11058 if test $ac_cv_type_pthread_rwlock_t = yes; then
11060 cat >>confdefs.h <<_ACEOF
11061 #define HAVE_PTHREAD_RWLOCK_T 1
11062 _ACEOF
11066 echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
11067 echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
11068 if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
11069 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 else
11071 cat >conftest.$ac_ext <<_ACEOF
11072 /* confdefs.h. */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 #define _GNU_SOURCE
11078 #include <pthread.h>
11081 main ()
11083 if ((pthread_rwlockattr_t *) 0)
11084 return 0;
11085 if (sizeof (pthread_rwlockattr_t))
11086 return 0;
11088 return 0;
11090 _ACEOF
11091 rm -f conftest.$ac_objext
11092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11093 (eval $ac_compile) 2>conftest.er1
11094 ac_status=$?
11095 grep -v '^ *+' conftest.er1 >conftest.err
11096 rm -f conftest.er1
11097 cat conftest.err >&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); } &&
11100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102 (eval $ac_try) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; } &&
11106 { ac_try='test -s conftest.$ac_objext'
11107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108 (eval $ac_try) 2>&5
11109 ac_status=$?
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); }; }; then
11112 ac_cv_type_pthread_rwlockattr_t=yes
11113 else
11114 echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11117 ac_cv_type_pthread_rwlockattr_t=no
11119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11121 echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
11122 echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
11123 if test $ac_cv_type_pthread_rwlockattr_t = yes; then
11125 cat >>confdefs.h <<_ACEOF
11126 #define HAVE_PTHREAD_RWLOCKATTR_T 1
11127 _ACEOF
11133 ac_save_LIBS="$LIBS"
11134 LIBS="$LIBS $LIBPTHREAD"
11138 for ac_func in \
11139 pthread_getattr_np \
11140 pthread_get_stackaddr_np \
11141 pthread_get_stacksize_np \
11144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11145 echo "$as_me:$LINENO: checking for $ac_func" >&5
11146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11147 if eval "test \"\${$as_ac_var+set}\" = set"; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 else
11150 cat >conftest.$ac_ext <<_ACEOF
11151 /* confdefs.h. */
11152 _ACEOF
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h. */
11156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11158 #define $ac_func innocuous_$ac_func
11160 /* System header to define __stub macros and hopefully few prototypes,
11161 which can conflict with char $ac_func (); below.
11162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11163 <limits.h> exists even on freestanding compilers. */
11165 #ifdef __STDC__
11166 # include <limits.h>
11167 #else
11168 # include <assert.h>
11169 #endif
11171 #undef $ac_func
11173 /* Override any gcc2 internal prototype to avoid an error. */
11174 #ifdef __cplusplus
11175 extern "C"
11177 #endif
11178 /* We use char because int might match the return type of a gcc2
11179 builtin and then its argument prototype would still apply. */
11180 char $ac_func ();
11181 /* The GNU C library defines this for functions which it implements
11182 to always fail with ENOSYS. Some functions are actually named
11183 something starting with __ and the normal name is an alias. */
11184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11185 choke me
11186 #else
11187 char (*f) () = $ac_func;
11188 #endif
11189 #ifdef __cplusplus
11191 #endif
11194 main ()
11196 return f != $ac_func;
11198 return 0;
11200 _ACEOF
11201 rm -f conftest.$ac_objext conftest$ac_exeext
11202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11203 (eval $ac_link) 2>conftest.er1
11204 ac_status=$?
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11213 ac_status=$?
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; } &&
11216 { ac_try='test -s conftest$ac_exeext'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; }; then
11222 eval "$as_ac_var=yes"
11223 else
11224 echo "$as_me: failed program was:" >&5
11225 sed 's/^/| /' conftest.$ac_ext >&5
11227 eval "$as_ac_var=no"
11229 rm -f conftest.err conftest.$ac_objext \
11230 conftest$ac_exeext conftest.$ac_ext
11232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11234 if test `eval echo '${'$as_ac_var'}'` = yes; then
11235 cat >>confdefs.h <<_ACEOF
11236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11237 _ACEOF
11240 done
11242 LIBS="$ac_save_LIBS"
11247 for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
11249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11251 echo "$as_me:$LINENO: checking for $ac_header" >&5
11252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11258 else
11259 # Is the header compilable?
11260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h. */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 $ac_includes_default
11269 #include <$ac_header>
11270 _ACEOF
11271 rm -f conftest.$ac_objext
11272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11273 (eval $ac_compile) 2>conftest.er1
11274 ac_status=$?
11275 grep -v '^ *+' conftest.er1 >conftest.err
11276 rm -f conftest.er1
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } &&
11280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; } &&
11286 { ac_try='test -s conftest.$ac_objext'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; }; then
11292 ac_header_compiler=yes
11293 else
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11297 ac_header_compiler=no
11299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11301 echo "${ECHO_T}$ac_header_compiler" >&6
11303 # Is the header present?
11304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11306 cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h. */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11312 #include <$ac_header>
11313 _ACEOF
11314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11316 ac_status=$?
11317 grep -v '^ *+' conftest.er1 >conftest.err
11318 rm -f conftest.er1
11319 cat conftest.err >&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); } >/dev/null; then
11322 if test -s conftest.err; then
11323 ac_cpp_err=$ac_c_preproc_warn_flag
11324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11325 else
11326 ac_cpp_err=
11328 else
11329 ac_cpp_err=yes
11331 if test -z "$ac_cpp_err"; then
11332 ac_header_preproc=yes
11333 else
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11337 ac_header_preproc=no
11339 rm -f conftest.err conftest.$ac_ext
11340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11341 echo "${ECHO_T}$ac_header_preproc" >&6
11343 # So? What about this header?
11344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11345 yes:no: )
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11350 ac_header_preproc=yes
11352 no:yes:* )
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11366 cat <<\_ASBOX
11367 ## ------------------------------------ ##
11368 ## Report this to wine-devel@winehq.org ##
11369 ## ------------------------------------ ##
11370 _ASBOX
11372 sed "s/^/$as_me: WARNING: /" >&2
11374 esac
11375 echo "$as_me:$LINENO: checking for $ac_header" >&5
11376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380 eval "$as_ac_Header=\$ac_header_preproc"
11382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11387 cat >>confdefs.h <<_ACEOF
11388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11389 _ACEOF
11390 break
11393 done
11396 echo "$as_me:$LINENO: checking for Open Sound System" >&5
11397 echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11398 if test "${ac_cv_c_opensoundsystem+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401 cat >conftest.$ac_ext <<_ACEOF
11402 /* confdefs.h. */
11403 _ACEOF
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11408 #if defined(HAVE_SYS_SOUNDCARD_H)
11409 #include <sys/soundcard.h>
11410 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11411 #include <machine/soundcard.h>
11412 #elif defined(HAVE_SOUNDCARD_H)
11413 #include <soundcard.h>
11414 #endif
11417 main ()
11421 /* check for one of the Open Sound System specific SNDCTL_ defines */
11422 #if !defined(SNDCTL_DSP_STEREO)
11423 #error No open sound system
11424 #endif
11427 return 0;
11429 _ACEOF
11430 rm -f conftest.$ac_objext
11431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11432 (eval $ac_compile) 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; } &&
11445 { ac_try='test -s conftest.$ac_objext'
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
11451 ac_cv_c_opensoundsystem="yes"
11452 else
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11456 ac_cv_c_opensoundsystem="no"
11458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11460 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
11461 echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
11463 if test "$ac_cv_c_opensoundsystem" = "yes"
11464 then
11466 cat >>confdefs.h <<\_ACEOF
11467 #define HAVE_OSS 1
11468 _ACEOF
11472 echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
11473 echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11474 if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 else
11477 cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h. */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11484 #if defined(HAVE_SYS_SOUNDCARD_H)
11485 #include <sys/soundcard.h>
11486 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11487 #include <machine/soundcard.h>
11488 #elif defined(HAVE_SOUNDCARD_H)
11489 #include <soundcard.h>
11490 #endif
11493 main ()
11497 /* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11498 #if !defined(SNDCTL_SEQ_SYNC)
11499 #error No open sound system MIDI interface
11500 #endif
11503 return 0;
11505 _ACEOF
11506 rm -f conftest.$ac_objext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11508 (eval $ac_compile) 2>conftest.er1
11509 ac_status=$?
11510 grep -v '^ *+' conftest.er1 >conftest.err
11511 rm -f conftest.er1
11512 cat conftest.err >&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } &&
11515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 (eval $ac_try) 2>&5
11518 ac_status=$?
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; } &&
11521 { ac_try='test -s conftest.$ac_objext'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; }; then
11527 ac_cv_c_opensoundsystem_midi="yes"
11528 else
11529 echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11532 ac_cv_c_opensoundsystem_midi="no"
11534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11536 echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
11537 echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
11539 if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11540 then
11542 cat >>confdefs.h <<\_ACEOF
11543 #define HAVE_OSS_MIDI 1
11544 _ACEOF
11548 # Extract the first word of "artsc-config", so it can be a program name with args.
11549 set dummy artsc-config; ac_word=$2
11550 echo "$as_me:$LINENO: checking for $ac_word" >&5
11551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11552 if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555 case $ARTSCCONFIG in
11556 [\\/]* | ?:[\\/]*)
11557 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561 for as_dir in $PATH
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11567 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11569 break 2
11571 done
11572 done
11575 esac
11577 ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11579 if test -n "$ARTSCCONFIG"; then
11580 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
11581 echo "${ECHO_T}$ARTSCCONFIG" >&6
11582 else
11583 echo "$as_me:$LINENO: result: no" >&5
11584 echo "${ECHO_T}no" >&6
11587 if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11588 then
11589 ARTSC_CFLAGS=""
11590 for i in `$ARTSCCONFIG --cflags`
11592 case "$i" in
11593 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11594 esac
11595 done
11596 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11597 save_CFLAGS="$CFLAGS"
11598 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
11599 cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h. */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 #include <artsc.h>
11607 main ()
11609 arts_stream_t stream;
11611 return 0;
11613 _ACEOF
11614 rm -f conftest.$ac_objext
11615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11616 (eval $ac_compile) 2>conftest.er1
11617 ac_status=$?
11618 grep -v '^ *+' conftest.er1 >conftest.err
11619 rm -f conftest.er1
11620 cat conftest.err >&5
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); } &&
11623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; } &&
11629 { ac_try='test -s conftest.$ac_objext'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 ARTSLIBS=$ARTSC_LIBS
11637 ARTSINCL=$ARTSC_CFLAGS
11640 cat >>confdefs.h <<\_ACEOF
11641 #define HAVE_ARTS 1
11642 _ACEOF
11644 else
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11650 CFLAGS="$save_CFLAGS"
11653 ALSALIBS=""
11657 for ac_header in alsa/asoundlib.h sys/asoundlib.h
11659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11661 echo "$as_me:$LINENO: checking for $ac_header" >&5
11662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11668 else
11669 # Is the header compilable?
11670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11672 cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h. */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 $ac_includes_default
11679 #include <$ac_header>
11680 _ACEOF
11681 rm -f conftest.$ac_objext
11682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11683 (eval $ac_compile) 2>conftest.er1
11684 ac_status=$?
11685 grep -v '^ *+' conftest.er1 >conftest.err
11686 rm -f conftest.er1
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } &&
11690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11693 ac_status=$?
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; } &&
11696 { ac_try='test -s conftest.$ac_objext'
11697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11698 (eval $ac_try) 2>&5
11699 ac_status=$?
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }; }; then
11702 ac_header_compiler=yes
11703 else
11704 echo "$as_me: failed program was:" >&5
11705 sed 's/^/| /' conftest.$ac_ext >&5
11707 ac_header_compiler=no
11709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11711 echo "${ECHO_T}$ac_header_compiler" >&6
11713 # Is the header present?
11714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11716 cat >conftest.$ac_ext <<_ACEOF
11717 /* confdefs.h. */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722 #include <$ac_header>
11723 _ACEOF
11724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } >/dev/null; then
11732 if test -s conftest.err; then
11733 ac_cpp_err=$ac_c_preproc_warn_flag
11734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11735 else
11736 ac_cpp_err=
11738 else
11739 ac_cpp_err=yes
11741 if test -z "$ac_cpp_err"; then
11742 ac_header_preproc=yes
11743 else
11744 echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 ac_header_preproc=no
11749 rm -f conftest.err conftest.$ac_ext
11750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11751 echo "${ECHO_T}$ac_header_preproc" >&6
11753 # So? What about this header?
11754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11755 yes:no: )
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11760 ac_header_preproc=yes
11762 no:yes:* )
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11764 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11766 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11768 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11769 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11770 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11774 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11776 cat <<\_ASBOX
11777 ## ------------------------------------ ##
11778 ## Report this to wine-devel@winehq.org ##
11779 ## ------------------------------------ ##
11780 _ASBOX
11782 sed "s/^/$as_me: WARNING: /" >&2
11784 esac
11785 echo "$as_me:$LINENO: checking for $ac_header" >&5
11786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 else
11790 eval "$as_ac_Header=\$ac_header_preproc"
11792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11797 cat >>confdefs.h <<_ACEOF
11798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11799 _ACEOF
11800 break
11803 done
11805 if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
11806 then
11807 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
11808 echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
11809 if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11811 else
11812 ac_check_lib_save_LIBS=$LIBS
11813 LIBS="-lasound $LIBS"
11814 cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h. */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11821 /* Override any gcc2 internal prototype to avoid an error. */
11822 #ifdef __cplusplus
11823 extern "C"
11824 #endif
11825 /* We use char because int might match the return type of a gcc2
11826 builtin and then its argument prototype would still apply. */
11827 char snd_pcm_open ();
11829 main ()
11831 snd_pcm_open ();
11833 return 0;
11835 _ACEOF
11836 rm -f conftest.$ac_objext conftest$ac_exeext
11837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11838 (eval $ac_link) 2>conftest.er1
11839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } &&
11845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847 (eval $ac_try) 2>&5
11848 ac_status=$?
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; } &&
11851 { ac_try='test -s conftest$ac_exeext'
11852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853 (eval $ac_try) 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; }; then
11857 ac_cv_lib_asound_snd_pcm_open=yes
11858 else
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11862 ac_cv_lib_asound_snd_pcm_open=no
11864 rm -f conftest.err conftest.$ac_objext \
11865 conftest$ac_exeext conftest.$ac_ext
11866 LIBS=$ac_check_lib_save_LIBS
11868 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
11869 echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
11870 if test $ac_cv_lib_asound_snd_pcm_open = yes; then
11872 cat >>confdefs.h <<\_ACEOF
11873 #define HAVE_ALSA 1
11874 _ACEOF
11876 ALSALIBS="-lasound"
11882 AUDIOIOLIBS=""
11885 for ac_header in libaudioio.h
11887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11889 echo "$as_me:$LINENO: checking for $ac_header" >&5
11890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11896 else
11897 # Is the header compilable?
11898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h. */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 $ac_includes_default
11907 #include <$ac_header>
11908 _ACEOF
11909 rm -f conftest.$ac_objext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911 (eval $ac_compile) 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest.$ac_objext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 ac_header_compiler=yes
11931 else
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 ac_header_compiler=no
11937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11938 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11939 echo "${ECHO_T}$ac_header_compiler" >&6
11941 # Is the header present?
11942 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11944 cat >conftest.$ac_ext <<_ACEOF
11945 /* confdefs.h. */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 #include <$ac_header>
11951 _ACEOF
11952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11954 ac_status=$?
11955 grep -v '^ *+' conftest.er1 >conftest.err
11956 rm -f conftest.er1
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } >/dev/null; then
11960 if test -s conftest.err; then
11961 ac_cpp_err=$ac_c_preproc_warn_flag
11962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11963 else
11964 ac_cpp_err=
11966 else
11967 ac_cpp_err=yes
11969 if test -z "$ac_cpp_err"; then
11970 ac_header_preproc=yes
11971 else
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11975 ac_header_preproc=no
11977 rm -f conftest.err conftest.$ac_ext
11978 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11979 echo "${ECHO_T}$ac_header_preproc" >&6
11981 # So? What about this header?
11982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11983 yes:no: )
11984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11988 ac_header_preproc=yes
11990 no:yes:* )
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12004 cat <<\_ASBOX
12005 ## ------------------------------------ ##
12006 ## Report this to wine-devel@winehq.org ##
12007 ## ------------------------------------ ##
12008 _ASBOX
12010 sed "s/^/$as_me: WARNING: /" >&2
12012 esac
12013 echo "$as_me:$LINENO: checking for $ac_header" >&5
12014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018 eval "$as_ac_Header=\$ac_header_preproc"
12020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12025 cat >>confdefs.h <<_ACEOF
12026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12027 _ACEOF
12028 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
12029 echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
12030 if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 else
12033 ac_check_lib_save_LIBS=$LIBS
12034 LIBS="-laudioio $LIBS"
12035 cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h. */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12042 /* Override any gcc2 internal prototype to avoid an error. */
12043 #ifdef __cplusplus
12044 extern "C"
12045 #endif
12046 /* We use char because int might match the return type of a gcc2
12047 builtin and then its argument prototype would still apply. */
12048 char AudioIOGetVersion ();
12050 main ()
12052 AudioIOGetVersion ();
12054 return 0;
12056 _ACEOF
12057 rm -f conftest.$ac_objext conftest$ac_exeext
12058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12059 (eval $ac_link) 2>conftest.er1
12060 ac_status=$?
12061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
12066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest$ac_exeext'
12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 ac_cv_lib_audioio_AudioIOGetVersion=yes
12079 else
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12083 ac_cv_lib_audioio_AudioIOGetVersion=no
12085 rm -f conftest.err conftest.$ac_objext \
12086 conftest$ac_exeext conftest.$ac_ext
12087 LIBS=$ac_check_lib_save_LIBS
12089 echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
12090 echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
12091 if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
12092 AUDIOIOLIBS="-laudioio"
12094 cat >>confdefs.h <<\_ACEOF
12095 #define HAVE_LIBAUDIOIO 1
12096 _ACEOF
12102 done
12107 for ac_header in capi20.h
12109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12111 echo "$as_me:$LINENO: checking for $ac_header" >&5
12112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12114 echo $ECHO_N "(cached) $ECHO_C" >&6
12116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12117 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12118 else
12119 # Is the header compilable?
12120 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12122 cat >conftest.$ac_ext <<_ACEOF
12123 /* confdefs.h. */
12124 _ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12128 $ac_includes_default
12129 #include <$ac_header>
12130 _ACEOF
12131 rm -f conftest.$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest.$ac_objext'
12147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148 (eval $ac_try) 2>&5
12149 ac_status=$?
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); }; }; then
12152 ac_header_compiler=yes
12153 else
12154 echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12157 ac_header_compiler=no
12159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12161 echo "${ECHO_T}$ac_header_compiler" >&6
12163 # Is the header present?
12164 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12166 cat >conftest.$ac_ext <<_ACEOF
12167 /* confdefs.h. */
12168 _ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 #include <$ac_header>
12173 _ACEOF
12174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12176 ac_status=$?
12177 grep -v '^ *+' conftest.er1 >conftest.err
12178 rm -f conftest.er1
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } >/dev/null; then
12182 if test -s conftest.err; then
12183 ac_cpp_err=$ac_c_preproc_warn_flag
12184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12185 else
12186 ac_cpp_err=
12188 else
12189 ac_cpp_err=yes
12191 if test -z "$ac_cpp_err"; then
12192 ac_header_preproc=yes
12193 else
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ac_header_preproc=no
12199 rm -f conftest.err conftest.$ac_ext
12200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12201 echo "${ECHO_T}$ac_header_preproc" >&6
12203 # So? What about this header?
12204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12205 yes:no: )
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12210 ac_header_preproc=yes
12212 no:yes:* )
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12226 cat <<\_ASBOX
12227 ## ------------------------------------ ##
12228 ## Report this to wine-devel@winehq.org ##
12229 ## ------------------------------------ ##
12230 _ASBOX
12232 sed "s/^/$as_me: WARNING: /" >&2
12234 esac
12235 echo "$as_me:$LINENO: checking for $ac_header" >&5
12236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12238 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 else
12240 eval "$as_ac_Header=\$ac_header_preproc"
12242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12247 cat >>confdefs.h <<_ACEOF
12248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12249 _ACEOF
12252 for ac_header in linux/capi.h
12254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12256 echo "$as_me:$LINENO: checking for $ac_header" >&5
12257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12263 else
12264 # Is the header compilable?
12265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12267 cat >conftest.$ac_ext <<_ACEOF
12268 /* confdefs.h. */
12269 _ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12273 $ac_includes_default
12274 #include <$ac_header>
12275 _ACEOF
12276 rm -f conftest.$ac_objext
12277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12278 (eval $ac_compile) 2>conftest.er1
12279 ac_status=$?
12280 grep -v '^ *+' conftest.er1 >conftest.err
12281 rm -f conftest.er1
12282 cat conftest.err >&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } &&
12285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest.$ac_objext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 ac_header_compiler=yes
12298 else
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12302 ac_header_compiler=no
12304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12306 echo "${ECHO_T}$ac_header_compiler" >&6
12308 # Is the header present?
12309 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h. */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #include <$ac_header>
12318 _ACEOF
12319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12321 ac_status=$?
12322 grep -v '^ *+' conftest.er1 >conftest.err
12323 rm -f conftest.er1
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } >/dev/null; then
12327 if test -s conftest.err; then
12328 ac_cpp_err=$ac_c_preproc_warn_flag
12329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12330 else
12331 ac_cpp_err=
12333 else
12334 ac_cpp_err=yes
12336 if test -z "$ac_cpp_err"; then
12337 ac_header_preproc=yes
12338 else
12339 echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.$ac_ext >&5
12342 ac_header_preproc=no
12344 rm -f conftest.err conftest.$ac_ext
12345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12346 echo "${ECHO_T}$ac_header_preproc" >&6
12348 # So? What about this header?
12349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12350 yes:no: )
12351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12352 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12355 ac_header_preproc=yes
12357 no:yes:* )
12358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12363 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12365 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12369 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12371 cat <<\_ASBOX
12372 ## ------------------------------------ ##
12373 ## Report this to wine-devel@winehq.org ##
12374 ## ------------------------------------ ##
12375 _ASBOX
12377 sed "s/^/$as_me: WARNING: /" >&2
12379 esac
12380 echo "$as_me:$LINENO: checking for $ac_header" >&5
12381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385 eval "$as_ac_Header=\$ac_header_preproc"
12387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12392 cat >>confdefs.h <<_ACEOF
12393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12394 _ACEOF
12396 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12397 echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12398 if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 else
12401 ac_check_lib_save_LIBS=$LIBS
12402 LIBS="-lcapi20 $LIBS"
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h. */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12410 /* Override any gcc2 internal prototype to avoid an error. */
12411 #ifdef __cplusplus
12412 extern "C"
12413 #endif
12414 /* We use char because int might match the return type of a gcc2
12415 builtin and then its argument prototype would still apply. */
12416 char capi20_register ();
12418 main ()
12420 capi20_register ();
12422 return 0;
12424 _ACEOF
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12427 (eval $ac_link) 2>conftest.er1
12428 ac_status=$?
12429 grep -v '^ *+' conftest.er1 >conftest.err
12430 rm -f conftest.er1
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest$ac_exeext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_cv_lib_capi20_capi20_register=yes
12447 else
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12451 ac_cv_lib_capi20_capi20_register=no
12453 rm -f conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12455 LIBS=$ac_check_lib_save_LIBS
12457 echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12458 echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12459 if test $ac_cv_lib_capi20_capi20_register = yes; then
12462 cat >>confdefs.h <<\_ACEOF
12463 #define HAVE_CAPI4LINUX 1
12464 _ACEOF
12466 CAPI4LINUXLIBS="-lcapi20"
12474 done
12479 done
12483 echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
12484 echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12485 if test "${ac_cv_mmap64_works+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488 if test "$cross_compiling" = yes; then
12489 ac_cv_mmap64_works="no"
12490 else
12491 cat >conftest.$ac_ext <<_ACEOF
12492 /* confdefs.h. */
12493 _ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12498 #define _FILE_OFFSET_BITS 64
12499 #include <stdio.h>
12500 #include <unistd.h>
12501 #include <fcntl.h>
12502 #include <sys/mman.h>
12503 #include <errno.h>
12505 int main(int argc,char **argv) {
12506 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12507 if (fd == -1) exit(1);
12509 unlink("conftest.map");
12511 write(fd,"test",4);
12513 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12514 (errno == EINVAL)
12516 exit(1);
12518 close(fd);
12519 fprintf(stderr,"success!\n");
12520 exit(0);
12524 _ACEOF
12525 rm -f conftest$ac_exeext
12526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12527 (eval $ac_link) 2>&5
12528 ac_status=$?
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532 (eval $ac_try) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }; }; then
12536 ac_cv_mmap64_works="yes"
12537 else
12538 echo "$as_me: program exited with status $ac_status" >&5
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 ( exit $ac_status )
12543 ac_cv_mmap64_works="no"
12545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12548 echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
12549 echo "${ECHO_T}$ac_cv_mmap64_works" >&6
12551 if test "$ac_cv_mmap64_works" = "yes"
12552 then
12554 cat >>confdefs.h <<\_ACEOF
12555 #define _FILE_OFFSET_BITS 64
12556 _ACEOF
12561 EXTRACFLAGS=""
12563 if test "x${GCC}" = "xyes"
12564 then
12565 EXTRACFLAGS="-Wall -pipe"
12567 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
12568 echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12569 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 else
12572 if test "$cross_compiling" = yes; then
12573 ac_cv_c_gcc_strength_bug="yes"
12574 else
12575 cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h. */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12582 int L[4] = {0,1,2,3};
12583 int main(void) {
12584 static int Array[3];
12585 unsigned int B = 3;
12586 int i;
12587 for(i=0; i<B; i++) Array[i] = i - 3;
12588 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12589 L[i] = 4;
12591 exit( Array[1] != -2 || L[2] != 3);
12593 _ACEOF
12594 rm -f conftest$ac_exeext
12595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12596 (eval $ac_link) 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601 (eval $ac_try) 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; }; then
12605 ac_cv_c_gcc_strength_bug="no"
12606 else
12607 echo "$as_me: program exited with status $ac_status" >&5
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ( exit $ac_status )
12612 ac_cv_c_gcc_strength_bug="yes"
12614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12617 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
12618 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
12619 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12620 then
12621 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
12624 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12625 echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12626 if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 else
12629 ac_wine_try_cflags_saved=$CFLAGS
12630 CFLAGS="$CFLAGS -fshort-wchar"
12631 cat >conftest.$ac_ext <<_ACEOF
12632 /* confdefs.h. */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12639 main ()
12643 return 0;
12645 _ACEOF
12646 rm -f conftest.$ac_objext conftest$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648 (eval $ac_link) 2>conftest.er1
12649 ac_status=$?
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try='test -s conftest$ac_exeext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 ac_cv_c_gcc_fshort_wchar="yes"
12668 else
12669 echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12672 ac_cv_c_gcc_fshort_wchar="no"
12674 rm -f conftest.err conftest.$ac_objext \
12675 conftest$ac_exeext conftest.$ac_ext
12676 CFLAGS=$ac_wine_try_cflags_saved
12678 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12679 echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12680 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12681 then
12683 cat >>confdefs.h <<\_ACEOF
12684 #define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12685 _ACEOF
12689 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
12690 echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12691 if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 else
12694 ac_wine_try_cflags_saved=$CFLAGS
12695 CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12696 cat >conftest.$ac_ext <<_ACEOF
12697 /* confdefs.h. */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12704 main ()
12708 return 0;
12710 _ACEOF
12711 rm -f conftest.$ac_objext conftest$ac_exeext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12713 (eval $ac_link) 2>conftest.er1
12714 ac_status=$?
12715 grep -v '^ *+' conftest.er1 >conftest.err
12716 rm -f conftest.er1
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
12720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try='test -s conftest$ac_exeext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ac_cv_c_gcc_stack_boundary="yes"
12733 else
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12737 ac_cv_c_gcc_stack_boundary="no"
12739 rm -f conftest.err conftest.$ac_objext \
12740 conftest$ac_exeext conftest.$ac_ext
12741 CFLAGS=$ac_wine_try_cflags_saved
12743 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
12744 echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
12745 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12746 then
12747 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
12750 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12751 echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12752 if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12753 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 else
12755 ac_wine_try_cflags_saved=$CFLAGS
12756 CFLAGS="$CFLAGS -fno-strict-aliasing"
12757 cat >conftest.$ac_ext <<_ACEOF
12758 /* confdefs.h. */
12759 _ACEOF
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12765 main ()
12769 return 0;
12771 _ACEOF
12772 rm -f conftest.$ac_objext conftest$ac_exeext
12773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12774 (eval $ac_link) 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } &&
12781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; } &&
12787 { ac_try='test -s conftest$ac_exeext'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 ac_cv_c_gcc_no_strict_aliasing="yes"
12794 else
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12798 ac_cv_c_gcc_no_strict_aliasing="no"
12800 rm -f conftest.err conftest.$ac_objext \
12801 conftest$ac_exeext conftest.$ac_ext
12802 CFLAGS=$ac_wine_try_cflags_saved
12804 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12805 echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12806 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12807 then
12808 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12811 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12812 echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12813 if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12815 else
12816 ac_wine_try_cflags_saved=$CFLAGS
12817 CFLAGS="$CFLAGS -gstabs+"
12818 cat >conftest.$ac_ext <<_ACEOF
12819 /* confdefs.h. */
12820 _ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h. */
12826 main ()
12830 return 0;
12832 _ACEOF
12833 rm -f conftest.$ac_objext conftest$ac_exeext
12834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12835 (eval $ac_link) 2>conftest.er1
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; } &&
12848 { ac_try='test -s conftest$ac_exeext'
12849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850 (eval $ac_try) 2>&5
12851 ac_status=$?
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); }; }; then
12854 ac_cv_c_gcc_gstabs="yes"
12855 else
12856 echo "$as_me: failed program was:" >&5
12857 sed 's/^/| /' conftest.$ac_ext >&5
12859 ac_cv_c_gcc_gstabs="no"
12861 rm -f conftest.err conftest.$ac_objext \
12862 conftest$ac_exeext conftest.$ac_ext
12863 CFLAGS=$ac_wine_try_cflags_saved
12865 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12866 echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12867 if test "$ac_cv_c_gcc_gstabs" = "yes"
12868 then
12869 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
12872 saved_CFLAGS="$CFLAGS"
12873 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12874 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12875 echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12876 if test "${ac_cv_c_string_h_warnings+set}" = set; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 else
12879 cat >conftest.$ac_ext <<_ACEOF
12880 /* confdefs.h. */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */
12885 #include <string.h>
12887 main ()
12891 return 0;
12893 _ACEOF
12894 rm -f conftest.$ac_objext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12896 (eval $ac_compile) 2>conftest.er1
12897 ac_status=$?
12898 grep -v '^ *+' conftest.er1 >conftest.err
12899 rm -f conftest.er1
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } &&
12903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; } &&
12909 { ac_try='test -s conftest.$ac_objext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 ac_cv_c_string_h_warnings=no
12916 else
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12920 ac_cv_c_string_h_warnings=yes
12922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12924 echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12925 echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
12926 CFLAGS="$saved_CFLAGS"
12927 if test "$ac_cv_c_string_h_warnings" = "no"
12928 then
12929 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
12934 echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12935 echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12936 if test "${ac_cv_asm_func_def+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939 cat >conftest.$ac_ext <<_ACEOF
12940 /* confdefs.h. */
12941 _ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h. */
12945 void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
12948 main ()
12952 return 0;
12954 _ACEOF
12955 rm -f conftest.$ac_objext conftest$ac_exeext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12957 (eval $ac_link) 2>conftest.er1
12958 ac_status=$?
12959 grep -v '^ *+' conftest.er1 >conftest.err
12960 rm -f conftest.er1
12961 cat conftest.err >&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } &&
12964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; } &&
12970 { ac_try='test -s conftest$ac_exeext'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
12976 ac_cv_asm_func_def=".def"
12977 else
12978 echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12981 cat >conftest.$ac_ext <<_ACEOF
12982 /* confdefs.h. */
12983 _ACEOF
12984 cat confdefs.h >>conftest.$ac_ext
12985 cat >>conftest.$ac_ext <<_ACEOF
12986 /* end confdefs.h. */
12987 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
12990 main ()
12994 return 0;
12996 _ACEOF
12997 rm -f conftest.$ac_objext conftest$ac_exeext
12998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12999 (eval $ac_link) 2>conftest.er1
13000 ac_status=$?
13001 grep -v '^ *+' conftest.er1 >conftest.err
13002 rm -f conftest.er1
13003 cat conftest.err >&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; } &&
13012 { ac_try='test -s conftest$ac_exeext'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
13018 ac_cv_asm_func_def=".type @function"
13019 else
13020 echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13023 cat >conftest.$ac_ext <<_ACEOF
13024 /* confdefs.h. */
13025 _ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13029 void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
13032 main ()
13036 return 0;
13038 _ACEOF
13039 rm -f conftest.$ac_objext conftest$ac_exeext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13041 (eval $ac_link) 2>conftest.er1
13042 ac_status=$?
13043 grep -v '^ *+' conftest.er1 >conftest.err
13044 rm -f conftest.er1
13045 cat conftest.err >&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
13048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13051 ac_status=$?
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; } &&
13054 { ac_try='test -s conftest$ac_exeext'
13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; }; then
13060 ac_cv_asm_func_def=".type 2"
13061 else
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13065 ac_cv_asm_func_def="unknown"
13067 rm -f conftest.err conftest.$ac_objext \
13068 conftest$ac_exeext conftest.$ac_ext
13070 rm -f conftest.err conftest.$ac_objext \
13071 conftest$ac_exeext conftest.$ac_ext
13073 rm -f conftest.err conftest.$ac_objext \
13074 conftest$ac_exeext conftest.$ac_ext
13076 echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13077 echo "${ECHO_T}$ac_cv_asm_func_def" >&6
13081 case "$ac_cv_asm_func_def" in
13082 ".def")
13083 cat >>confdefs.h <<\_ACEOF
13084 #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
13085 _ACEOF
13087 ".type @function")
13088 cat >>confdefs.h <<\_ACEOF
13089 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13090 _ACEOF
13092 ".type 2")
13093 cat >>confdefs.h <<\_ACEOF
13094 #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13095 _ACEOF
13098 cat >>confdefs.h <<\_ACEOF
13099 #define __ASM_FUNC(name) ""
13100 _ACEOF
13102 esac
13105 echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13106 echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
13107 if test "${ac_cv_c_extern_prefix+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13109 else
13110 cat >conftest.$ac_ext <<_ACEOF
13111 /* confdefs.h. */
13112 _ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h. */
13116 void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
13117 extern int ac_test;
13119 main ()
13121 if (ac_test) return 1
13123 return 0;
13125 _ACEOF
13126 rm -f conftest.$ac_objext conftest$ac_exeext
13127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13128 (eval $ac_link) 2>conftest.er1
13129 ac_status=$?
13130 grep -v '^ *+' conftest.er1 >conftest.err
13131 rm -f conftest.er1
13132 cat conftest.err >&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } &&
13135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; } &&
13141 { ac_try='test -s conftest$ac_exeext'
13142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13143 (eval $ac_try) 2>&5
13144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_cv_c_extern_prefix="yes"
13148 else
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13152 ac_cv_c_extern_prefix="no"
13154 rm -f conftest.err conftest.$ac_objext \
13155 conftest$ac_exeext conftest.$ac_ext
13157 echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
13158 echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
13162 if test "$ac_cv_c_extern_prefix" = "yes"
13163 then
13164 cat >>confdefs.h <<\_ACEOF
13165 #define __ASM_NAME(name) "_" name
13166 _ACEOF
13168 else
13169 cat >>confdefs.h <<\_ACEOF
13170 #define __ASM_NAME(name) name
13171 _ACEOF
13176 echo "$as_me:$LINENO: checking for assembler keyword for ASCII strings" >&5
13177 echo $ECHO_N "checking for assembler keyword for ASCII strings... $ECHO_C" >&6
13178 if test "${ac_cv_c_asm_string+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13180 else
13181 cat >conftest.$ac_ext <<_ACEOF
13182 /* confdefs.h. */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13187 void ac_asm(void) { asm(".data\\n\\t.string \\"test\\"\\n\\t.text"); }
13190 main ()
13194 return 0;
13196 _ACEOF
13197 rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13199 (eval $ac_link) 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13209 ac_status=$?
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; } &&
13212 { ac_try='test -s conftest$ac_exeext'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_cv_c_asm_string=".string"
13219 else
13220 echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13223 cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h. */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h. */
13229 void ac_asm(void) { asm(".data\\n\\t.asciz \\"test\\"\\n\\t.text"); }
13232 main ()
13236 return 0;
13238 _ACEOF
13239 rm -f conftest.$ac_objext conftest$ac_exeext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13241 (eval $ac_link) 2>conftest.er1
13242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13251 ac_status=$?
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; } &&
13254 { ac_try='test -s conftest$ac_exeext'
13255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256 (eval $ac_try) 2>&5
13257 ac_status=$?
13258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259 (exit $ac_status); }; }; then
13260 ac_cv_c_asm_string=".asciz"
13261 else
13262 echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13265 cat >conftest.$ac_ext <<_ACEOF
13266 /* confdefs.h. */
13267 _ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13271 void ac_asm(void) { asm(".data\\n\\t.ascii \\"test\\"\\n\\t.text"); }
13274 main ()
13278 return 0;
13280 _ACEOF
13281 rm -f conftest.$ac_objext conftest$ac_exeext
13282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13283 (eval $ac_link) 2>conftest.er1
13284 ac_status=$?
13285 grep -v '^ *+' conftest.er1 >conftest.err
13286 rm -f conftest.er1
13287 cat conftest.err >&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } &&
13290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292 (eval $ac_try) 2>&5
13293 ac_status=$?
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; } &&
13296 { ac_try='test -s conftest$ac_exeext'
13297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13298 (eval $ac_try) 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; }; then
13302 ac_cv_c_asm_string=".ascii"
13303 else
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13307 { { echo "$as_me:$LINENO: error: could not discover how to produce C strings with assembler." >&5
13308 echo "$as_me: error: could not discover how to produce C strings with assembler." >&2;}
13309 { (exit 1); exit 1; }; }
13311 rm -f conftest.err conftest.$ac_objext \
13312 conftest$ac_exeext conftest.$ac_ext
13314 rm -f conftest.err conftest.$ac_objext \
13315 conftest$ac_exeext conftest.$ac_ext
13317 rm -f conftest.err conftest.$ac_objext \
13318 conftest$ac_exeext conftest.$ac_ext
13320 echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
13321 echo "${ECHO_T}$ac_cv_c_asm_string" >&6
13324 cat >>confdefs.h <<_ACEOF
13325 #define __ASM_STRING "$ac_cv_c_asm_string"
13326 _ACEOF
13330 echo "$as_me:$LINENO: checking for assembler keyword for word values" >&5
13331 echo $ECHO_N "checking for assembler keyword for word values... $ECHO_C" >&6
13332 if test "${ac_cv_c_asm_short+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13334 else
13335 cat >conftest.$ac_ext <<_ACEOF
13336 /* confdefs.h. */
13337 _ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13341 void ac_asm(void) { asm(".data\\n\\t.short 1\\n\\t.text"); }
13344 main ()
13348 return 0;
13350 _ACEOF
13351 rm -f conftest.$ac_objext conftest$ac_exeext
13352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13353 (eval $ac_link) 2>conftest.er1
13354 ac_status=$?
13355 grep -v '^ *+' conftest.er1 >conftest.err
13356 rm -f conftest.er1
13357 cat conftest.err >&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } &&
13360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; } &&
13366 { ac_try='test -s conftest$ac_exeext'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13372 ac_cv_c_asm_short=".short"
13373 else
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13377 cat >conftest.$ac_ext <<_ACEOF
13378 /* confdefs.h. */
13379 _ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 void ac_asm(void) { asm(".data\\n\\t.half 1\\n\\t.text"); }
13386 main ()
13390 return 0;
13392 _ACEOF
13393 rm -f conftest.$ac_objext conftest$ac_exeext
13394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13395 (eval $ac_link) 2>conftest.er1
13396 ac_status=$?
13397 grep -v '^ *+' conftest.er1 >conftest.err
13398 rm -f conftest.er1
13399 cat conftest.err >&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } &&
13402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; } &&
13408 { ac_try='test -s conftest$ac_exeext'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13411 ac_status=$?
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; }; then
13414 ac_cv_c_asm_short=".half"
13415 else
13416 echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13419 { { echo "$as_me:$LINENO: error: could not discover how to specify word values with assembler." >&5
13420 echo "$as_me: error: could not discover how to specify word values with assembler." >&2;}
13421 { (exit 1); exit 1; }; }
13423 rm -f conftest.err conftest.$ac_objext \
13424 conftest$ac_exeext conftest.$ac_ext
13426 rm -f conftest.err conftest.$ac_objext \
13427 conftest$ac_exeext conftest.$ac_ext
13429 echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
13430 echo "${ECHO_T}$ac_cv_c_asm_short" >&6
13433 cat >>confdefs.h <<_ACEOF
13434 #define __ASM_SHORT "$ac_cv_c_asm_short"
13435 _ACEOF
13439 echo "$as_me:$LINENO: checking for .size in assembler" >&5
13440 echo $ECHO_N "checking for .size in assembler... $ECHO_C" >&6
13441 if test "${ac_cv_c_asm_size+set}" = set; then
13442 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 else
13444 cat >conftest.$ac_ext <<_ACEOF
13445 /* confdefs.h. */
13446 _ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13450 void ac_asm(void) { asm(".globl _ac_test\n.size _ac_test, . - _ac_test"); }
13453 main ()
13457 return 0;
13459 _ACEOF
13460 rm -f conftest.$ac_objext conftest$ac_exeext
13461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13462 (eval $ac_link) 2>conftest.er1
13463 ac_status=$?
13464 grep -v '^ *+' conftest.er1 >conftest.err
13465 rm -f conftest.er1
13466 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } &&
13469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471 (eval $ac_try) 2>&5
13472 ac_status=$?
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); }; } &&
13475 { ac_try='test -s conftest$ac_exeext'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13478 ac_status=$?
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }; then
13481 ac_cv_c_asm_size="yes"
13482 else
13483 echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13486 ac_cv_c_asm_size="no"
13488 rm -f conftest.err conftest.$ac_objext \
13489 conftest$ac_exeext conftest.$ac_ext
13491 echo "$as_me:$LINENO: result: $ac_cv_c_asm_size" >&5
13492 echo "${ECHO_T}$ac_cv_c_asm_size" >&6
13494 if test "$ac_cv_c_asm_size" = "yes"
13495 then
13497 cat >>confdefs.h <<\_ACEOF
13498 #define HAVE_ASM_DOT_SIZE 1
13499 _ACEOF
13504 DLLEXT=""
13506 DLLFLAGS="-D_REENTRANT"
13508 DLLIBS=""
13510 LDSHARED=""
13512 LDDLLFLAGS=""
13514 LIBEXT="so"
13516 IMPLIBEXT="def"
13519 case $host_os in
13520 cygwin*|mingw32*)
13521 if test -n "$ac_tool_prefix"; then
13522 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13523 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13524 echo "$as_me:$LINENO: checking for $ac_word" >&5
13525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13526 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 else
13529 if test -n "$DLLTOOL"; then
13530 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13531 else
13532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533 for as_dir in $PATH
13535 IFS=$as_save_IFS
13536 test -z "$as_dir" && as_dir=.
13537 for ac_exec_ext in '' $ac_executable_extensions; do
13538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13539 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13541 break 2
13543 done
13544 done
13548 DLLTOOL=$ac_cv_prog_DLLTOOL
13549 if test -n "$DLLTOOL"; then
13550 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13551 echo "${ECHO_T}$DLLTOOL" >&6
13552 else
13553 echo "$as_me:$LINENO: result: no" >&5
13554 echo "${ECHO_T}no" >&6
13558 if test -z "$ac_cv_prog_DLLTOOL"; then
13559 ac_ct_DLLTOOL=$DLLTOOL
13560 # Extract the first word of "dlltool", so it can be a program name with args.
13561 set dummy dlltool; ac_word=$2
13562 echo "$as_me:$LINENO: checking for $ac_word" >&5
13563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13564 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 else
13567 if test -n "$ac_ct_DLLTOOL"; then
13568 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13569 else
13570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $PATH
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13577 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13579 break 2
13581 done
13582 done
13584 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13587 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13588 if test -n "$ac_ct_DLLTOOL"; then
13589 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13590 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13591 else
13592 echo "$as_me:$LINENO: result: no" >&5
13593 echo "${ECHO_T}no" >&6
13596 DLLTOOL=$ac_ct_DLLTOOL
13597 else
13598 DLLTOOL="$ac_cv_prog_DLLTOOL"
13601 if test -n "$ac_tool_prefix"; then
13602 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13603 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
13604 echo "$as_me:$LINENO: checking for $ac_word" >&5
13605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13606 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 else
13609 if test -n "$DLLWRAP"; then
13610 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13611 else
13612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13613 for as_dir in $PATH
13615 IFS=$as_save_IFS
13616 test -z "$as_dir" && as_dir=.
13617 for ac_exec_ext in '' $ac_executable_extensions; do
13618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13619 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
13620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13621 break 2
13623 done
13624 done
13628 DLLWRAP=$ac_cv_prog_DLLWRAP
13629 if test -n "$DLLWRAP"; then
13630 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13631 echo "${ECHO_T}$DLLWRAP" >&6
13632 else
13633 echo "$as_me:$LINENO: result: no" >&5
13634 echo "${ECHO_T}no" >&6
13638 if test -z "$ac_cv_prog_DLLWRAP"; then
13639 ac_ct_DLLWRAP=$DLLWRAP
13640 # Extract the first word of "dllwrap", so it can be a program name with args.
13641 set dummy dllwrap; ac_word=$2
13642 echo "$as_me:$LINENO: checking for $ac_word" >&5
13643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13644 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13645 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 else
13647 if test -n "$ac_ct_DLLWRAP"; then
13648 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13649 else
13650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651 for as_dir in $PATH
13653 IFS=$as_save_IFS
13654 test -z "$as_dir" && as_dir=.
13655 for ac_exec_ext in '' $ac_executable_extensions; do
13656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13657 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13659 break 2
13661 done
13662 done
13664 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13667 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13668 if test -n "$ac_ct_DLLWRAP"; then
13669 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13670 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13671 else
13672 echo "$as_me:$LINENO: result: no" >&5
13673 echo "${ECHO_T}no" >&6
13676 DLLWRAP=$ac_ct_DLLWRAP
13677 else
13678 DLLWRAP="$ac_cv_prog_DLLWRAP"
13681 if test "$DLLWRAP" = "false"; then
13682 LIBEXT="a"
13683 else
13684 LIBEXT="dll"
13686 IMPLIBEXT="a"
13690 for ac_header in dlfcn.h
13692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13694 echo "$as_me:$LINENO: checking for $ac_header" >&5
13695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13701 else
13702 # Is the header compilable?
13703 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13704 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13705 cat >conftest.$ac_ext <<_ACEOF
13706 /* confdefs.h. */
13707 _ACEOF
13708 cat confdefs.h >>conftest.$ac_ext
13709 cat >>conftest.$ac_ext <<_ACEOF
13710 /* end confdefs.h. */
13711 $ac_includes_default
13712 #include <$ac_header>
13713 _ACEOF
13714 rm -f conftest.$ac_objext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13716 (eval $ac_compile) 2>conftest.er1
13717 ac_status=$?
13718 grep -v '^ *+' conftest.er1 >conftest.err
13719 rm -f conftest.er1
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; } &&
13729 { ac_try='test -s conftest.$ac_objext'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13735 ac_header_compiler=yes
13736 else
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13740 ac_header_compiler=no
13742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13744 echo "${ECHO_T}$ac_header_compiler" >&6
13746 # Is the header present?
13747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13749 cat >conftest.$ac_ext <<_ACEOF
13750 /* confdefs.h. */
13751 _ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h. */
13755 #include <$ac_header>
13756 _ACEOF
13757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13759 ac_status=$?
13760 grep -v '^ *+' conftest.er1 >conftest.err
13761 rm -f conftest.er1
13762 cat conftest.err >&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } >/dev/null; then
13765 if test -s conftest.err; then
13766 ac_cpp_err=$ac_c_preproc_warn_flag
13767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13768 else
13769 ac_cpp_err=
13771 else
13772 ac_cpp_err=yes
13774 if test -z "$ac_cpp_err"; then
13775 ac_header_preproc=yes
13776 else
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13780 ac_header_preproc=no
13782 rm -f conftest.err conftest.$ac_ext
13783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13784 echo "${ECHO_T}$ac_header_preproc" >&6
13786 # So? What about this header?
13787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13788 yes:no: )
13789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13793 ac_header_preproc=yes
13795 no:yes:* )
13796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13809 cat <<\_ASBOX
13810 ## ------------------------------------ ##
13811 ## Report this to wine-devel@winehq.org ##
13812 ## ------------------------------------ ##
13813 _ASBOX
13815 sed "s/^/$as_me: WARNING: /" >&2
13817 esac
13818 echo "$as_me:$LINENO: checking for $ac_header" >&5
13819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13822 else
13823 eval "$as_ac_Header=\$ac_header_preproc"
13825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13830 cat >>confdefs.h <<_ACEOF
13831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13832 _ACEOF
13834 for ac_func in dlopen
13836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13837 echo "$as_me:$LINENO: checking for $ac_func" >&5
13838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13839 if eval "test \"\${$as_ac_var+set}\" = set"; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 else
13842 cat >conftest.$ac_ext <<_ACEOF
13843 /* confdefs.h. */
13844 _ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h. */
13848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13850 #define $ac_func innocuous_$ac_func
13852 /* System header to define __stub macros and hopefully few prototypes,
13853 which can conflict with char $ac_func (); below.
13854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13855 <limits.h> exists even on freestanding compilers. */
13857 #ifdef __STDC__
13858 # include <limits.h>
13859 #else
13860 # include <assert.h>
13861 #endif
13863 #undef $ac_func
13865 /* Override any gcc2 internal prototype to avoid an error. */
13866 #ifdef __cplusplus
13867 extern "C"
13869 #endif
13870 /* We use char because int might match the return type of a gcc2
13871 builtin and then its argument prototype would still apply. */
13872 char $ac_func ();
13873 /* The GNU C library defines this for functions which it implements
13874 to always fail with ENOSYS. Some functions are actually named
13875 something starting with __ and the normal name is an alias. */
13876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13877 choke me
13878 #else
13879 char (*f) () = $ac_func;
13880 #endif
13881 #ifdef __cplusplus
13883 #endif
13886 main ()
13888 return f != $ac_func;
13890 return 0;
13892 _ACEOF
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13895 (eval $ac_link) 2>conftest.er1
13896 ac_status=$?
13897 grep -v '^ *+' conftest.er1 >conftest.err
13898 rm -f conftest.er1
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try='test -s conftest$ac_exeext'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 eval "$as_ac_var=yes"
13915 else
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13919 eval "$as_ac_var=no"
13921 rm -f conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13926 if test `eval echo '${'$as_ac_var'}'` = yes; then
13927 cat >>confdefs.h <<_ACEOF
13928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13929 _ACEOF
13931 else
13932 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13933 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13934 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937 ac_check_lib_save_LIBS=$LIBS
13938 LIBS="-ldl $LIBS"
13939 cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h. */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13946 /* Override any gcc2 internal prototype to avoid an error. */
13947 #ifdef __cplusplus
13948 extern "C"
13949 #endif
13950 /* We use char because int might match the return type of a gcc2
13951 builtin and then its argument prototype would still apply. */
13952 char dlopen ();
13954 main ()
13956 dlopen ();
13958 return 0;
13960 _ACEOF
13961 rm -f conftest.$ac_objext conftest$ac_exeext
13962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13963 (eval $ac_link) 2>conftest.er1
13964 ac_status=$?
13965 grep -v '^ *+' conftest.er1 >conftest.err
13966 rm -f conftest.er1
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } &&
13970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; } &&
13976 { ac_try='test -s conftest$ac_exeext'
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; }; then
13982 ac_cv_lib_dl_dlopen=yes
13983 else
13984 echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.$ac_ext >&5
13987 ac_cv_lib_dl_dlopen=no
13989 rm -f conftest.err conftest.$ac_objext \
13990 conftest$ac_exeext conftest.$ac_ext
13991 LIBS=$ac_check_lib_save_LIBS
13993 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13994 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13995 if test $ac_cv_lib_dl_dlopen = yes; then
13997 cat >>confdefs.h <<\_ACEOF
13998 #define HAVE_DLOPEN 1
13999 _ACEOF
14001 DLLIBS="-ldl"
14002 else
14003 LIBEXT="a"
14007 done
14009 else
14010 LIBEXT="a"
14013 done
14016 if test "$LIBEXT" = "so"
14017 then
14018 DLLFLAGS="$DLLFLAGS -fPIC"
14019 DLLEXT=".so"
14020 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
14021 echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
14022 if test "${ac_cv_c_dll_gnuelf+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025 ac_wine_try_cflags_saved=$CFLAGS
14026 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
14027 cat >conftest.$ac_ext <<_ACEOF
14028 /* confdefs.h. */
14029 _ACEOF
14030 cat confdefs.h >>conftest.$ac_ext
14031 cat >>conftest.$ac_ext <<_ACEOF
14032 /* end confdefs.h. */
14035 main ()
14039 return 0;
14041 _ACEOF
14042 rm -f conftest.$ac_objext conftest$ac_exeext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14044 (eval $ac_link) 2>conftest.er1
14045 ac_status=$?
14046 grep -v '^ *+' conftest.er1 >conftest.err
14047 rm -f conftest.er1
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest$ac_exeext'
14058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14059 (eval $ac_try) 2>&5
14060 ac_status=$?
14061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062 (exit $ac_status); }; }; then
14063 ac_cv_c_dll_gnuelf="yes"
14064 else
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14068 ac_cv_c_dll_gnuelf="no"
14070 rm -f conftest.err conftest.$ac_objext \
14071 conftest$ac_exeext conftest.$ac_ext
14072 CFLAGS=$ac_wine_try_cflags_saved
14074 echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
14075 echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
14076 if test "$ac_cv_c_dll_gnuelf" = "yes"
14077 then
14078 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
14079 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
14080 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
14081 echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
14082 if test "${ac_cv_c_dll_zdefs+set}" = set; then
14083 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 else
14085 ac_wine_try_cflags_saved=$CFLAGS
14086 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
14087 cat >conftest.$ac_ext <<_ACEOF
14088 /* confdefs.h. */
14089 _ACEOF
14090 cat confdefs.h >>conftest.$ac_ext
14091 cat >>conftest.$ac_ext <<_ACEOF
14092 /* end confdefs.h. */
14095 main ()
14099 return 0;
14101 _ACEOF
14102 rm -f conftest.$ac_objext conftest$ac_exeext
14103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14104 (eval $ac_link) 2>conftest.er1
14105 ac_status=$?
14106 grep -v '^ *+' conftest.er1 >conftest.err
14107 rm -f conftest.er1
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); } &&
14111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14113 (eval $ac_try) 2>&5
14114 ac_status=$?
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); }; } &&
14117 { ac_try='test -s conftest$ac_exeext'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14120 ac_status=$?
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 ac_cv_c_dll_zdefs="yes"
14124 else
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ac_cv_c_dll_zdefs="no"
14130 rm -f conftest.err conftest.$ac_objext \
14131 conftest$ac_exeext conftest.$ac_ext
14132 CFLAGS=$ac_wine_try_cflags_saved
14134 echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
14135 echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
14136 if test "$ac_cv_c_dll_zdefs" = "yes"
14137 then
14138 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
14141 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
14142 echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
14143 if test "${ac_cv_c_dll_init_fini+set}" = set; then
14144 echo $ECHO_N "(cached) $ECHO_C" >&6
14145 else
14146 ac_wine_try_cflags_saved=$CFLAGS
14147 CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
14148 cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h. */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14156 main ()
14160 return 0;
14162 _ACEOF
14163 rm -f conftest.$ac_objext conftest$ac_exeext
14164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14165 (eval $ac_link) 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } &&
14172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; } &&
14178 { ac_try='test -s conftest$ac_exeext'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; }; then
14184 ac_cv_c_dll_init_fini="yes"
14185 else
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14189 ac_cv_c_dll_init_fini="no"
14191 rm -f conftest.err conftest.$ac_objext \
14192 conftest$ac_exeext conftest.$ac_ext
14193 CFLAGS=$ac_wine_try_cflags_saved
14195 echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
14196 echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
14197 if test "$ac_cv_c_dll_init_fini" = "yes"
14198 then
14199 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
14202 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
14203 echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
14204 if test "${ac_cv_c_ld_version_scripts+set}" = set; then
14205 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 else
14207 echo '{ global: *; };' >conftest.map
14208 ac_wine_try_cflags_saved=$CFLAGS
14209 CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
14210 cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h. */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14218 main ()
14222 return 0;
14224 _ACEOF
14225 rm -f conftest.$ac_objext conftest$ac_exeext
14226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14227 (eval $ac_link) 2>conftest.er1
14228 ac_status=$?
14229 grep -v '^ *+' conftest.er1 >conftest.err
14230 rm -f conftest.er1
14231 cat conftest.err >&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest$ac_exeext'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_cv_c_ld_version_scripts="yes"
14247 else
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 ac_cv_c_ld_version_scripts="no"
14253 rm -f conftest.err conftest.$ac_objext \
14254 conftest$ac_exeext conftest.$ac_ext
14255 CFLAGS=$ac_wine_try_cflags_saved
14256 rm -f conftest.map
14258 echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
14259 echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
14260 if test "$ac_cv_c_ld_version_scripts" = "yes"
14261 then
14262 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14265 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14266 echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
14267 if test "${ac_cv_c_export_dynamic+set}" = set; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270 ac_wine_try_cflags_saved=$CFLAGS
14271 CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14272 cat >conftest.$ac_ext <<_ACEOF
14273 /* confdefs.h. */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14280 main ()
14284 return 0;
14286 _ACEOF
14287 rm -f conftest.$ac_objext conftest$ac_exeext
14288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14289 (eval $ac_link) 2>conftest.er1
14290 ac_status=$?
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14299 ac_status=$?
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; } &&
14302 { ac_try='test -s conftest$ac_exeext'
14303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14305 ac_status=$?
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; }; then
14308 ac_cv_c_export_dynamic="yes"
14309 else
14310 echo "$as_me: failed program was:" >&5
14311 sed 's/^/| /' conftest.$ac_ext >&5
14313 ac_cv_c_export_dynamic="no"
14315 rm -f conftest.err conftest.$ac_objext \
14316 conftest$ac_exeext conftest.$ac_ext
14317 CFLAGS=$ac_wine_try_cflags_saved
14319 echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14320 echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
14321 if test "$ac_cv_c_export_dynamic" = "yes"
14322 then
14323 LDEXECFLAGS="-Wl,--export-dynamic"
14327 case $host_cpu in
14328 *i[3456789]86*)
14329 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x77f00000" >&5
14330 echo $ECHO_N "checking whether we can relocate the executable to 0x77f00000... $ECHO_C" >&6
14331 if test "${ac_cv_ld_reloc_exec+set}" = set; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14333 else
14334 ac_wine_try_cflags_saved=$CFLAGS
14335 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x77f00400"
14336 cat >conftest.$ac_ext <<_ACEOF
14337 /* confdefs.h. */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h. */
14344 main ()
14348 return 0;
14350 _ACEOF
14351 rm -f conftest.$ac_objext conftest$ac_exeext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14353 (eval $ac_link) 2>conftest.er1
14354 ac_status=$?
14355 grep -v '^ *+' conftest.er1 >conftest.err
14356 rm -f conftest.er1
14357 cat conftest.err >&5
14358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359 (exit $ac_status); } &&
14360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362 (eval $ac_try) 2>&5
14363 ac_status=$?
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; } &&
14366 { ac_try='test -s conftest$ac_exeext'
14367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14368 (eval $ac_try) 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; }; then
14372 ac_cv_ld_reloc_exec="yes"
14373 else
14374 echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.$ac_ext >&5
14377 ac_cv_ld_reloc_exec="no"
14379 rm -f conftest.err conftest.$ac_objext \
14380 conftest$ac_exeext conftest.$ac_ext
14381 CFLAGS=$ac_wine_try_cflags_saved
14383 echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14384 echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
14385 if test "$ac_cv_ld_reloc_exec" = "yes"
14386 then
14387 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x77f00400"
14390 esac
14392 else
14393 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14394 echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
14395 if test "${ac_cv_c_dll_unixware+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14397 else
14398 ac_wine_try_cflags_saved=$CFLAGS
14399 CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14400 cat >conftest.$ac_ext <<_ACEOF
14401 /* confdefs.h. */
14402 _ACEOF
14403 cat confdefs.h >>conftest.$ac_ext
14404 cat >>conftest.$ac_ext <<_ACEOF
14405 /* end confdefs.h. */
14408 main ()
14412 return 0;
14414 _ACEOF
14415 rm -f conftest.$ac_objext conftest$ac_exeext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14417 (eval $ac_link) 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; } &&
14430 { ac_try='test -s conftest$ac_exeext'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
14436 ac_cv_c_dll_unixware="yes"
14437 else
14438 echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14441 ac_cv_c_dll_unixware="no"
14443 rm -f conftest.err conftest.$ac_objext \
14444 conftest$ac_exeext conftest.$ac_ext
14445 CFLAGS=$ac_wine_try_cflags_saved
14447 echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
14448 echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
14449 if test "$ac_cv_c_dll_unixware" = "yes"
14450 then
14451 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
14452 LDDLLFLAGS="-Wl,-G,-B,symbolic"
14454 else
14455 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
14456 echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
14457 if test "${ac_cv_c_dll_macho+set}" = set; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 else
14460 ac_wine_try_cflags_saved=$CFLAGS
14461 CFLAGS="$CFLAGS -bundle"
14462 cat >conftest.$ac_ext <<_ACEOF
14463 /* confdefs.h. */
14464 _ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h. */
14470 main ()
14474 return 0;
14476 _ACEOF
14477 rm -f conftest.$ac_objext conftest$ac_exeext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14479 (eval $ac_link) 2>conftest.er1
14480 ac_status=$?
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
14486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14489 ac_status=$?
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; } &&
14492 { ac_try='test -s conftest$ac_exeext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_cv_c_dll_macho="yes"
14499 else
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 ac_cv_c_dll_macho="no"
14505 rm -f conftest.err conftest.$ac_objext \
14506 conftest$ac_exeext conftest.$ac_ext
14507 CFLAGS=$ac_wine_try_cflags_saved
14509 echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
14510 echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
14511 if test "$ac_cv_c_dll_macho" = "yes"
14512 then
14513 LIBEXT="dylib"
14514 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress"
14515 LDSHARED="\$(CC) -dynamiclib"
14516 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
14517 STRIP="$STRIP -u -r"
14518 LDEXECFLAGS="-seg1addr 0x120000"
14520 LDLIBWINEFLAGS="-seg1addr 0x140000"
14527 CROSSTEST=""
14529 if test "$cross_compiling" = "no"
14530 then
14531 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
14533 # Extract the first word of "$ac_prog", so it can be a program name with args.
14534 set dummy $ac_prog; ac_word=$2
14535 echo "$as_me:$LINENO: checking for $ac_word" >&5
14536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14537 if test "${ac_cv_prog_CROSSCC+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540 if test -n "$CROSSCC"; then
14541 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14542 else
14543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14544 for as_dir in $PATH
14546 IFS=$as_save_IFS
14547 test -z "$as_dir" && as_dir=.
14548 for ac_exec_ext in '' $ac_executable_extensions; do
14549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14550 ac_cv_prog_CROSSCC="$ac_prog"
14551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14552 break 2
14554 done
14555 done
14559 CROSSCC=$ac_cv_prog_CROSSCC
14560 if test -n "$CROSSCC"; then
14561 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14562 echo "${ECHO_T}$CROSSCC" >&6
14563 else
14564 echo "$as_me:$LINENO: result: no" >&5
14565 echo "${ECHO_T}no" >&6
14568 test -n "$CROSSCC" && break
14569 done
14570 test -n "$CROSSCC" || CROSSCC="false"
14572 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
14574 # Extract the first word of "$ac_prog", so it can be a program name with args.
14575 set dummy $ac_prog; ac_word=$2
14576 echo "$as_me:$LINENO: checking for $ac_word" >&5
14577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14578 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581 if test -n "$DLLTOOL"; then
14582 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14583 else
14584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14585 for as_dir in $PATH
14587 IFS=$as_save_IFS
14588 test -z "$as_dir" && as_dir=.
14589 for ac_exec_ext in '' $ac_executable_extensions; do
14590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14591 ac_cv_prog_DLLTOOL="$ac_prog"
14592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14593 break 2
14595 done
14596 done
14600 DLLTOOL=$ac_cv_prog_DLLTOOL
14601 if test -n "$DLLTOOL"; then
14602 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14603 echo "${ECHO_T}$DLLTOOL" >&6
14604 else
14605 echo "$as_me:$LINENO: result: no" >&5
14606 echo "${ECHO_T}no" >&6
14609 test -n "$DLLTOOL" && break
14610 done
14611 test -n "$DLLTOOL" || DLLTOOL="false"
14613 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
14615 # Extract the first word of "$ac_prog", so it can be a program name with args.
14616 set dummy $ac_prog; ac_word=$2
14617 echo "$as_me:$LINENO: checking for $ac_word" >&5
14618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14619 if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14620 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 else
14622 if test -n "$CROSSWINDRES"; then
14623 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14624 else
14625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14626 for as_dir in $PATH
14628 IFS=$as_save_IFS
14629 test -z "$as_dir" && as_dir=.
14630 for ac_exec_ext in '' $ac_executable_extensions; do
14631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14632 ac_cv_prog_CROSSWINDRES="$ac_prog"
14633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14634 break 2
14636 done
14637 done
14641 CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14642 if test -n "$CROSSWINDRES"; then
14643 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14644 echo "${ECHO_T}$CROSSWINDRES" >&6
14645 else
14646 echo "$as_me:$LINENO: result: no" >&5
14647 echo "${ECHO_T}no" >&6
14650 test -n "$CROSSWINDRES" && break
14651 done
14652 test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14654 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14657 esac
14659 if test "$LIBEXT" = "a"; then
14660 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
14661 It is currently not possible to build Wine without shared library
14662 (.so) support to allow transparent switch between .so and .dll files.
14663 If you are using Linux, you will need a newer binutils.
14664 " >&5
14665 echo "$as_me: error: could not find a way to build shared libraries.
14666 It is currently not possible to build Wine without shared library
14667 (.so) support to allow transparent switch between .so and .dll files.
14668 If you are using Linux, you will need a newer binutils.
14669 " >&2;}
14670 { (exit 1); exit 1; }; }
14673 case $build_os in
14674 cygwin*|mingw32*)
14675 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
14677 darwin*|macosx*)
14678 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14681 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
14683 esac
14685 case $host_os in
14686 mingw32*)
14687 CRTLIBS="-lmsvcrt"
14689 esac
14691 case $host_os in
14692 linux*)
14693 WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14695 MAIN_BINARY="wine-glibc"
14698 darwin*)
14699 WINE_BINARIES="wine-pthread"
14701 MAIN_BINARY="wine-pthread"
14705 WINE_BINARIES="wine-kthread"
14707 MAIN_BINARY="wine-kthread"
14710 esac
14713 if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
14714 then
14715 # Extract the first word of "ldd", so it can be a program name with args.
14716 set dummy ldd; ac_word=$2
14717 echo "$as_me:$LINENO: checking for $ac_word" >&5
14718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14719 if test "${ac_cv_path_LDD+set}" = set; then
14720 echo $ECHO_N "(cached) $ECHO_C" >&6
14721 else
14722 case $LDD in
14723 [\\/]* | ?:[\\/]*)
14724 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14728 as_dummy="/sbin:/usr/sbin:$PATH"
14729 for as_dir in $as_dummy
14731 IFS=$as_save_IFS
14732 test -z "$as_dir" && as_dir=.
14733 for ac_exec_ext in '' $ac_executable_extensions; do
14734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14735 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14737 break 2
14739 done
14740 done
14742 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14744 esac
14746 LDD=$ac_cv_path_LDD
14748 if test -n "$LDD"; then
14749 echo "$as_me:$LINENO: result: $LDD" >&5
14750 echo "${ECHO_T}$LDD" >&6
14751 else
14752 echo "$as_me:$LINENO: result: no" >&5
14753 echo "${ECHO_T}no" >&6
14757 echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14758 echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14759 if test "${ac_cv_lib_soname_X11+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 else
14762 ac_get_soname_save_LIBS=$LIBS
14763 LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14764 cat >conftest.$ac_ext <<_ACEOF
14765 /* confdefs.h. */
14766 _ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14771 /* Override any gcc2 internal prototype to avoid an error. */
14772 #ifdef __cplusplus
14773 extern "C"
14774 #endif
14775 /* We use char because int might match the return type of a gcc2
14776 builtin and then its argument prototype would still apply. */
14777 char XCreateWindow ();
14779 main ()
14781 XCreateWindow ();
14783 return 0;
14785 _ACEOF
14786 rm -f conftest.$ac_objext conftest$ac_exeext
14787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14788 (eval $ac_link) 2>conftest.er1
14789 ac_status=$?
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } &&
14801 { ac_try='test -s conftest$ac_exeext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"`
14808 if test "x$ac_cv_lib_soname_X11" = "x"
14809 then
14810 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14812 else
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_cv_lib_soname_X11="libX11.$LIBEXT"
14818 rm -f conftest.err conftest.$ac_objext \
14819 conftest$ac_exeext conftest.$ac_ext
14820 LIBS=$ac_get_soname_save_LIBS
14822 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14823 echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14824 if test "x$ac_cv_lib_soname_X11" != xNONE
14825 then
14826 cat >>confdefs.h <<_ACEOF
14827 #define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14828 _ACEOF
14831 echo "$as_me:$LINENO: checking for -lXext soname" >&5
14832 echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14833 if test "${ac_cv_lib_soname_Xext+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 else
14836 ac_get_soname_save_LIBS=$LIBS
14837 LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14838 cat >conftest.$ac_ext <<_ACEOF
14839 /* confdefs.h. */
14840 _ACEOF
14841 cat confdefs.h >>conftest.$ac_ext
14842 cat >>conftest.$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14845 /* Override any gcc2 internal prototype to avoid an error. */
14846 #ifdef __cplusplus
14847 extern "C"
14848 #endif
14849 /* We use char because int might match the return type of a gcc2
14850 builtin and then its argument prototype would still apply. */
14851 char XextCreateExtension ();
14853 main ()
14855 XextCreateExtension ();
14857 return 0;
14859 _ACEOF
14860 rm -f conftest.$ac_objext conftest$ac_exeext
14861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14862 (eval $ac_link) 2>conftest.er1
14863 ac_status=$?
14864 grep -v '^ *+' conftest.er1 >conftest.err
14865 rm -f conftest.er1
14866 cat conftest.err >&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); } &&
14869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 (eval $ac_try) 2>&5
14872 ac_status=$?
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); }; } &&
14875 { ac_try='test -s conftest$ac_exeext'
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; }; then
14881 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"`
14882 if test "x$ac_cv_lib_soname_Xext" = "x"
14883 then
14884 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14886 else
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
14892 rm -f conftest.err conftest.$ac_objext \
14893 conftest$ac_exeext conftest.$ac_ext
14894 LIBS=$ac_get_soname_save_LIBS
14896 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14897 echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14898 if test "x$ac_cv_lib_soname_Xext" != xNONE
14899 then
14900 cat >>confdefs.h <<_ACEOF
14901 #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14902 _ACEOF
14905 echo "$as_me:$LINENO: checking for -lXi soname" >&5
14906 echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14907 if test "${ac_cv_lib_soname_Xi+set}" = set; then
14908 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 else
14910 ac_get_soname_save_LIBS=$LIBS
14911 LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14912 cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h. */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14919 /* Override any gcc2 internal prototype to avoid an error. */
14920 #ifdef __cplusplus
14921 extern "C"
14922 #endif
14923 /* We use char because int might match the return type of a gcc2
14924 builtin and then its argument prototype would still apply. */
14925 char XOpenDevice ();
14927 main ()
14929 XOpenDevice ();
14931 return 0;
14933 _ACEOF
14934 rm -f conftest.$ac_objext conftest$ac_exeext
14935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14936 (eval $ac_link) 2>conftest.er1
14937 ac_status=$?
14938 grep -v '^ *+' conftest.er1 >conftest.err
14939 rm -f conftest.er1
14940 cat conftest.err >&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
14943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; } &&
14949 { ac_try='test -s conftest$ac_exeext'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14952 ac_status=$?
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14955 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"`
14956 if test "x$ac_cv_lib_soname_Xi" = "x"
14957 then
14958 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14960 else
14961 echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14964 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
14966 rm -f conftest.err conftest.$ac_objext \
14967 conftest$ac_exeext conftest.$ac_ext
14968 LIBS=$ac_get_soname_save_LIBS
14970 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14971 echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14972 if test "x$ac_cv_lib_soname_Xi" != xNONE
14973 then
14974 cat >>confdefs.h <<_ACEOF
14975 #define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14976 _ACEOF
14979 echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14980 echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14981 if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984 ac_get_soname_save_LIBS=$LIBS
14985 LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14986 cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h. */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14993 /* Override any gcc2 internal prototype to avoid an error. */
14994 #ifdef __cplusplus
14995 extern "C"
14996 #endif
14997 /* We use char because int might match the return type of a gcc2
14998 builtin and then its argument prototype would still apply. */
14999 char XRenderQueryExtension ();
15001 main ()
15003 XRenderQueryExtension ();
15005 return 0;
15007 _ACEOF
15008 rm -f conftest.$ac_objext conftest$ac_exeext
15009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15010 (eval $ac_link) 2>conftest.er1
15011 ac_status=$?
15012 grep -v '^ *+' conftest.er1 >conftest.err
15013 rm -f conftest.er1
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15020 ac_status=$?
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; } &&
15023 { ac_try='test -s conftest$ac_exeext'
15024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15025 (eval $ac_try) 2>&5
15026 ac_status=$?
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); }; }; then
15029 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"`
15030 if test "x$ac_cv_lib_soname_Xrender" = "x"
15031 then
15032 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
15034 else
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15038 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
15040 rm -f conftest.err conftest.$ac_objext \
15041 conftest$ac_exeext conftest.$ac_ext
15042 LIBS=$ac_get_soname_save_LIBS
15044 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
15045 echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
15046 if test "x$ac_cv_lib_soname_Xrender" != xNONE
15047 then
15048 cat >>confdefs.h <<_ACEOF
15049 #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
15050 _ACEOF
15053 echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
15054 echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
15055 if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
15056 echo $ECHO_N "(cached) $ECHO_C" >&6
15057 else
15058 ac_get_soname_save_LIBS=$LIBS
15059 LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15060 cat >conftest.$ac_ext <<_ACEOF
15061 /* confdefs.h. */
15062 _ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h. */
15067 /* Override any gcc2 internal prototype to avoid an error. */
15068 #ifdef __cplusplus
15069 extern "C"
15070 #endif
15071 /* We use char because int might match the return type of a gcc2
15072 builtin and then its argument prototype would still apply. */
15073 char XRRQueryExtension ();
15075 main ()
15077 XRRQueryExtension ();
15079 return 0;
15081 _ACEOF
15082 rm -f conftest.$ac_objext conftest$ac_exeext
15083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15084 (eval $ac_link) 2>conftest.er1
15085 ac_status=$?
15086 grep -v '^ *+' conftest.er1 >conftest.err
15087 rm -f conftest.er1
15088 cat conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } &&
15091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; } &&
15097 { ac_try='test -s conftest$ac_exeext'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15100 ac_status=$?
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15103 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"`
15104 if test "x$ac_cv_lib_soname_Xrandr" = "x"
15105 then
15106 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
15108 else
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
15114 rm -f conftest.err conftest.$ac_objext \
15115 conftest$ac_exeext conftest.$ac_ext
15116 LIBS=$ac_get_soname_save_LIBS
15118 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
15119 echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
15120 if test "x$ac_cv_lib_soname_Xrandr" != xNONE
15121 then
15122 cat >>confdefs.h <<_ACEOF
15123 #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
15124 _ACEOF
15127 echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
15128 echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
15129 if test "${ac_cv_lib_soname_freetype+set}" = set; then
15130 echo $ECHO_N "(cached) $ECHO_C" >&6
15131 else
15132 ac_get_soname_save_LIBS=$LIBS
15133 LIBS="-lfreetype $X_LIBS $LIBS"
15134 cat >conftest.$ac_ext <<_ACEOF
15135 /* confdefs.h. */
15136 _ACEOF
15137 cat confdefs.h >>conftest.$ac_ext
15138 cat >>conftest.$ac_ext <<_ACEOF
15139 /* end confdefs.h. */
15141 /* Override any gcc2 internal prototype to avoid an error. */
15142 #ifdef __cplusplus
15143 extern "C"
15144 #endif
15145 /* We use char because int might match the return type of a gcc2
15146 builtin and then its argument prototype would still apply. */
15147 char FT_Init_FreeType ();
15149 main ()
15151 FT_Init_FreeType ();
15153 return 0;
15155 _ACEOF
15156 rm -f conftest.$ac_objext conftest$ac_exeext
15157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15158 (eval $ac_link) 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } &&
15165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15168 ac_status=$?
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; } &&
15171 { ac_try='test -s conftest$ac_exeext'
15172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15174 ac_status=$?
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"`
15178 if test "x$ac_cv_lib_soname_freetype" = "x"
15179 then
15180 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
15182 else
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15186 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
15188 rm -f conftest.err conftest.$ac_objext \
15189 conftest$ac_exeext conftest.$ac_ext
15190 LIBS=$ac_get_soname_save_LIBS
15192 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
15193 echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
15194 if test "x$ac_cv_lib_soname_freetype" != xNONE
15195 then
15196 cat >>confdefs.h <<_ACEOF
15197 #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
15198 _ACEOF
15201 echo "$as_me:$LINENO: checking for -lGL soname" >&5
15202 echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
15203 if test "${ac_cv_lib_soname_GL+set}" = set; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15205 else
15206 ac_get_soname_save_LIBS=$LIBS
15207 LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
15208 cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h. */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15215 /* Override any gcc2 internal prototype to avoid an error. */
15216 #ifdef __cplusplus
15217 extern "C"
15218 #endif
15219 /* We use char because int might match the return type of a gcc2
15220 builtin and then its argument prototype would still apply. */
15221 char glXQueryExtension ();
15223 main ()
15225 glXQueryExtension ();
15227 return 0;
15229 _ACEOF
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15232 (eval $ac_link) 2>conftest.er1
15233 ac_status=$?
15234 grep -v '^ *+' conftest.er1 >conftest.err
15235 rm -f conftest.er1
15236 cat conftest.err >&5
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; } &&
15245 { ac_try='test -s conftest$ac_exeext'
15246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15247 (eval $ac_try) 2>&5
15248 ac_status=$?
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; }; then
15251 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"`
15252 if test "x$ac_cv_lib_soname_GL" = "x"
15253 then
15254 ac_cv_lib_soname_GL="libGL.$LIBEXT"
15256 else
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 ac_cv_lib_soname_GL="libGL.$LIBEXT"
15262 rm -f conftest.err conftest.$ac_objext \
15263 conftest$ac_exeext conftest.$ac_ext
15264 LIBS=$ac_get_soname_save_LIBS
15266 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15267 echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
15268 if test "x$ac_cv_lib_soname_GL" != xNONE
15269 then
15270 cat >>confdefs.h <<_ACEOF
15271 #define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15272 _ACEOF
15275 echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
15276 echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
15277 if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279 else
15280 ac_get_soname_save_LIBS=$LIBS
15281 LIBS="-ltxc_dxtn $LIBS"
15282 cat >conftest.$ac_ext <<_ACEOF
15283 /* confdefs.h. */
15284 _ACEOF
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15289 /* Override any gcc2 internal prototype to avoid an error. */
15290 #ifdef __cplusplus
15291 extern "C"
15292 #endif
15293 /* We use char because int might match the return type of a gcc2
15294 builtin and then its argument prototype would still apply. */
15295 char fetch_2d_texel_rgba_dxt1 ();
15297 main ()
15299 fetch_2d_texel_rgba_dxt1 ();
15301 return 0;
15303 _ACEOF
15304 rm -f conftest.$ac_objext conftest$ac_exeext
15305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15306 (eval $ac_link) 2>conftest.er1
15307 ac_status=$?
15308 grep -v '^ *+' conftest.er1 >conftest.err
15309 rm -f conftest.er1
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
15313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15316 ac_status=$?
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); }; } &&
15319 { ac_try='test -s conftest$ac_exeext'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; }; then
15325 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"`
15326 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
15327 then
15328 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15330 else
15331 echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
15336 rm -f conftest.err conftest.$ac_objext \
15337 conftest$ac_exeext conftest.$ac_ext
15338 LIBS=$ac_get_soname_save_LIBS
15340 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
15341 echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
15342 if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
15343 then
15344 cat >>confdefs.h <<_ACEOF
15345 #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
15346 _ACEOF
15349 echo "$as_me:$LINENO: checking for -lcups soname" >&5
15350 echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
15351 if test "${ac_cv_lib_soname_cups+set}" = set; then
15352 echo $ECHO_N "(cached) $ECHO_C" >&6
15353 else
15354 ac_get_soname_save_LIBS=$LIBS
15355 LIBS="-lcups $LIBS"
15356 cat >conftest.$ac_ext <<_ACEOF
15357 /* confdefs.h. */
15358 _ACEOF
15359 cat confdefs.h >>conftest.$ac_ext
15360 cat >>conftest.$ac_ext <<_ACEOF
15361 /* end confdefs.h. */
15363 /* Override any gcc2 internal prototype to avoid an error. */
15364 #ifdef __cplusplus
15365 extern "C"
15366 #endif
15367 /* We use char because int might match the return type of a gcc2
15368 builtin and then its argument prototype would still apply. */
15369 char cupsGetDefault ();
15371 main ()
15373 cupsGetDefault ();
15375 return 0;
15377 _ACEOF
15378 rm -f conftest.$ac_objext conftest$ac_exeext
15379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15380 (eval $ac_link) 2>conftest.er1
15381 ac_status=$?
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
15387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389 (eval $ac_try) 2>&5
15390 ac_status=$?
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); }; } &&
15393 { ac_try='test -s conftest$ac_exeext'
15394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395 (eval $ac_try) 2>&5
15396 ac_status=$?
15397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); }; }; then
15399 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"`
15400 if test "x$ac_cv_lib_soname_cups" = "x"
15401 then
15402 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15404 else
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15408 ac_cv_lib_soname_cups="libcups.$LIBEXT"
15410 rm -f conftest.err conftest.$ac_objext \
15411 conftest$ac_exeext conftest.$ac_ext
15412 LIBS=$ac_get_soname_save_LIBS
15414 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
15415 echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
15416 if test "x$ac_cv_lib_soname_cups" != xNONE
15417 then
15418 cat >>confdefs.h <<_ACEOF
15419 #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
15420 _ACEOF
15423 echo "$as_me:$LINENO: checking for -ljack soname" >&5
15424 echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
15425 if test "${ac_cv_lib_soname_jack+set}" = set; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 else
15428 ac_get_soname_save_LIBS=$LIBS
15429 LIBS="-ljack $LIBS"
15430 cat >conftest.$ac_ext <<_ACEOF
15431 /* confdefs.h. */
15432 _ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h. */
15437 /* Override any gcc2 internal prototype to avoid an error. */
15438 #ifdef __cplusplus
15439 extern "C"
15440 #endif
15441 /* We use char because int might match the return type of a gcc2
15442 builtin and then its argument prototype would still apply. */
15443 char jack_client_new ();
15445 main ()
15447 jack_client_new ();
15449 return 0;
15451 _ACEOF
15452 rm -f conftest.$ac_objext conftest$ac_exeext
15453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15454 (eval $ac_link) 2>conftest.er1
15455 ac_status=$?
15456 grep -v '^ *+' conftest.er1 >conftest.err
15457 rm -f conftest.er1
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } &&
15461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463 (eval $ac_try) 2>&5
15464 ac_status=$?
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); }; } &&
15467 { ac_try='test -s conftest$ac_exeext'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15470 ac_status=$?
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"`
15474 if test "x$ac_cv_lib_soname_jack" = "x"
15475 then
15476 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15478 else
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_cv_lib_soname_jack="libjack.$LIBEXT"
15484 rm -f conftest.err conftest.$ac_objext \
15485 conftest$ac_exeext conftest.$ac_ext
15486 LIBS=$ac_get_soname_save_LIBS
15488 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
15489 echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
15490 if test "x$ac_cv_lib_soname_jack" != xNONE
15491 then
15492 cat >>confdefs.h <<_ACEOF
15493 #define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
15494 _ACEOF
15497 echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
15498 echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
15499 if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15501 else
15502 ac_get_soname_save_LIBS=$LIBS
15503 LIBS="-lfontconfig $LIBS"
15504 cat >conftest.$ac_ext <<_ACEOF
15505 /* confdefs.h. */
15506 _ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15511 /* Override any gcc2 internal prototype to avoid an error. */
15512 #ifdef __cplusplus
15513 extern "C"
15514 #endif
15515 /* We use char because int might match the return type of a gcc2
15516 builtin and then its argument prototype would still apply. */
15517 char FcInit ();
15519 main ()
15521 FcInit ();
15523 return 0;
15525 _ACEOF
15526 rm -f conftest.$ac_objext conftest$ac_exeext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15528 (eval $ac_link) 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; } &&
15541 { ac_try='test -s conftest$ac_exeext'
15542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543 (eval $ac_try) 2>&5
15544 ac_status=$?
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); }; }; then
15547 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"`
15548 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15549 then
15550 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15552 else
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15556 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
15558 rm -f conftest.err conftest.$ac_objext \
15559 conftest$ac_exeext conftest.$ac_ext
15560 LIBS=$ac_get_soname_save_LIBS
15562 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15563 echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15564 if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15565 then
15566 cat >>confdefs.h <<_ACEOF
15567 #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15568 _ACEOF
15571 echo "$as_me:$LINENO: checking for -lssl soname" >&5
15572 echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15573 if test "${ac_cv_lib_soname_ssl+set}" = set; then
15574 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 else
15576 ac_get_soname_save_LIBS=$LIBS
15577 LIBS="-lssl $LIBS"
15578 cat >conftest.$ac_ext <<_ACEOF
15579 /* confdefs.h. */
15580 _ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15585 /* Override any gcc2 internal prototype to avoid an error. */
15586 #ifdef __cplusplus
15587 extern "C"
15588 #endif
15589 /* We use char because int might match the return type of a gcc2
15590 builtin and then its argument prototype would still apply. */
15591 char SSL_library_init ();
15593 main ()
15595 SSL_library_init ();
15597 return 0;
15599 _ACEOF
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15602 (eval $ac_link) 2>conftest.er1
15603 ac_status=$?
15604 grep -v '^ *+' conftest.er1 >conftest.err
15605 rm -f conftest.er1
15606 cat conftest.err >&5
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); } &&
15609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611 (eval $ac_try) 2>&5
15612 ac_status=$?
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; } &&
15615 { ac_try='test -s conftest$ac_exeext'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15618 ac_status=$?
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; }; then
15621 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"`
15622 if test "x$ac_cv_lib_soname_ssl" = "x"
15623 then
15624 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15626 else
15627 echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15630 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
15632 rm -f conftest.err conftest.$ac_objext \
15633 conftest$ac_exeext conftest.$ac_ext
15634 LIBS=$ac_get_soname_save_LIBS
15636 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15637 echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15638 if test "x$ac_cv_lib_soname_ssl" != xNONE
15639 then
15640 cat >>confdefs.h <<_ACEOF
15641 #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15642 _ACEOF
15645 echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15646 echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15647 if test "${ac_cv_lib_soname_crypto+set}" = set; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 else
15650 ac_get_soname_save_LIBS=$LIBS
15651 LIBS="-lcrypto $LIBS"
15652 cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h. */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15659 /* Override any gcc2 internal prototype to avoid an error. */
15660 #ifdef __cplusplus
15661 extern "C"
15662 #endif
15663 /* We use char because int might match the return type of a gcc2
15664 builtin and then its argument prototype would still apply. */
15665 char BIO_new_socket ();
15667 main ()
15669 BIO_new_socket ();
15671 return 0;
15673 _ACEOF
15674 rm -f conftest.$ac_objext conftest$ac_exeext
15675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15676 (eval $ac_link) 2>conftest.er1
15677 ac_status=$?
15678 grep -v '^ *+' conftest.er1 >conftest.err
15679 rm -f conftest.er1
15680 cat conftest.err >&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); } &&
15683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685 (eval $ac_try) 2>&5
15686 ac_status=$?
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; } &&
15689 { ac_try='test -s conftest$ac_exeext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"`
15696 if test "x$ac_cv_lib_soname_crypto" = "x"
15697 then
15698 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15700 else
15701 echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15704 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
15706 rm -f conftest.err conftest.$ac_objext \
15707 conftest$ac_exeext conftest.$ac_ext
15708 LIBS=$ac_get_soname_save_LIBS
15710 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15711 echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15712 if test "x$ac_cv_lib_soname_crypto" != xNONE
15713 then
15714 cat >>confdefs.h <<_ACEOF
15715 #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15716 _ACEOF
15719 echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15720 echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15721 if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15722 echo $ECHO_N "(cached) $ECHO_C" >&6
15723 else
15724 ac_get_soname_save_LIBS=$LIBS
15725 LIBS="-lncurses $LIBS"
15726 cat >conftest.$ac_ext <<_ACEOF
15727 /* confdefs.h. */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15733 /* Override any gcc2 internal prototype to avoid an error. */
15734 #ifdef __cplusplus
15735 extern "C"
15736 #endif
15737 /* We use char because int might match the return type of a gcc2
15738 builtin and then its argument prototype would still apply. */
15739 char waddch ();
15741 main ()
15743 waddch ();
15745 return 0;
15747 _ACEOF
15748 rm -f conftest.$ac_objext conftest$ac_exeext
15749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15750 (eval $ac_link) 2>conftest.er1
15751 ac_status=$?
15752 grep -v '^ *+' conftest.er1 >conftest.err
15753 rm -f conftest.er1
15754 cat conftest.err >&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } &&
15757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15759 (eval $ac_try) 2>&5
15760 ac_status=$?
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); }; } &&
15763 { ac_try='test -s conftest$ac_exeext'
15764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15765 (eval $ac_try) 2>&5
15766 ac_status=$?
15767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15768 (exit $ac_status); }; }; then
15769 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"`
15770 if test "x$ac_cv_lib_soname_ncurses" = "x"
15771 then
15772 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15774 else
15775 echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15778 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
15780 rm -f conftest.err conftest.$ac_objext \
15781 conftest$ac_exeext conftest.$ac_ext
15782 LIBS=$ac_get_soname_save_LIBS
15784 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15785 echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15786 if test "x$ac_cv_lib_soname_ncurses" != xNONE
15787 then
15788 cat >>confdefs.h <<_ACEOF
15789 #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15790 _ACEOF
15793 echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15794 echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15795 if test "${ac_cv_lib_soname_curses+set}" = set; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15797 else
15798 ac_get_soname_save_LIBS=$LIBS
15799 LIBS="-lcurses $LIBS"
15800 cat >conftest.$ac_ext <<_ACEOF
15801 /* confdefs.h. */
15802 _ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15807 /* Override any gcc2 internal prototype to avoid an error. */
15808 #ifdef __cplusplus
15809 extern "C"
15810 #endif
15811 /* We use char because int might match the return type of a gcc2
15812 builtin and then its argument prototype would still apply. */
15813 char waddch ();
15815 main ()
15817 waddch ();
15819 return 0;
15821 _ACEOF
15822 rm -f conftest.$ac_objext conftest$ac_exeext
15823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15824 (eval $ac_link) 2>conftest.er1
15825 ac_status=$?
15826 grep -v '^ *+' conftest.er1 >conftest.err
15827 rm -f conftest.er1
15828 cat conftest.err >&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); } &&
15831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; } &&
15837 { ac_try='test -s conftest$ac_exeext'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; }; then
15843 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"`
15844 if test "x$ac_cv_lib_soname_curses" = "x"
15845 then
15846 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15848 else
15849 echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
15854 rm -f conftest.err conftest.$ac_objext \
15855 conftest$ac_exeext conftest.$ac_ext
15856 LIBS=$ac_get_soname_save_LIBS
15858 echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15859 echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15860 if test "x$ac_cv_lib_soname_curses" != xNONE
15861 then
15862 cat >>confdefs.h <<_ACEOF
15863 #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15864 _ACEOF
15870 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15871 # for constant arguments. Useless!
15872 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15873 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15874 if test "${ac_cv_working_alloca_h+set}" = set; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15876 else
15877 cat >conftest.$ac_ext <<_ACEOF
15878 /* confdefs.h. */
15879 _ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15883 #include <alloca.h>
15885 main ()
15887 char *p = (char *) alloca (2 * sizeof (int));
15889 return 0;
15891 _ACEOF
15892 rm -f conftest.$ac_objext conftest$ac_exeext
15893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15894 (eval $ac_link) 2>conftest.er1
15895 ac_status=$?
15896 grep -v '^ *+' conftest.er1 >conftest.err
15897 rm -f conftest.er1
15898 cat conftest.err >&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } &&
15901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15904 ac_status=$?
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; } &&
15907 { ac_try='test -s conftest$ac_exeext'
15908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15910 ac_status=$?
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; }; then
15913 ac_cv_working_alloca_h=yes
15914 else
15915 echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15918 ac_cv_working_alloca_h=no
15920 rm -f conftest.err conftest.$ac_objext \
15921 conftest$ac_exeext conftest.$ac_ext
15923 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15924 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15925 if test $ac_cv_working_alloca_h = yes; then
15927 cat >>confdefs.h <<\_ACEOF
15928 #define HAVE_ALLOCA_H 1
15929 _ACEOF
15933 echo "$as_me:$LINENO: checking for alloca" >&5
15934 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15935 if test "${ac_cv_func_alloca_works+set}" = set; then
15936 echo $ECHO_N "(cached) $ECHO_C" >&6
15937 else
15938 cat >conftest.$ac_ext <<_ACEOF
15939 /* confdefs.h. */
15940 _ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15944 #ifdef __GNUC__
15945 # define alloca __builtin_alloca
15946 #else
15947 # ifdef _MSC_VER
15948 # include <malloc.h>
15949 # define alloca _alloca
15950 # else
15951 # if HAVE_ALLOCA_H
15952 # include <alloca.h>
15953 # else
15954 # ifdef _AIX
15955 #pragma alloca
15956 # else
15957 # ifndef alloca /* predefined by HP cc +Olibcalls */
15958 char *alloca ();
15959 # endif
15960 # endif
15961 # endif
15962 # endif
15963 #endif
15966 main ()
15968 char *p = (char *) alloca (1);
15970 return 0;
15972 _ACEOF
15973 rm -f conftest.$ac_objext conftest$ac_exeext
15974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15975 (eval $ac_link) 2>conftest.er1
15976 ac_status=$?
15977 grep -v '^ *+' conftest.er1 >conftest.err
15978 rm -f conftest.er1
15979 cat conftest.err >&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } &&
15982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15984 (eval $ac_try) 2>&5
15985 ac_status=$?
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); }; } &&
15988 { ac_try='test -s conftest$ac_exeext'
15989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15990 (eval $ac_try) 2>&5
15991 ac_status=$?
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); }; }; then
15994 ac_cv_func_alloca_works=yes
15995 else
15996 echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15999 ac_cv_func_alloca_works=no
16001 rm -f conftest.err conftest.$ac_objext \
16002 conftest$ac_exeext conftest.$ac_ext
16004 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16005 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16007 if test $ac_cv_func_alloca_works = yes; then
16009 cat >>confdefs.h <<\_ACEOF
16010 #define HAVE_ALLOCA 1
16011 _ACEOF
16013 else
16014 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16015 # that cause trouble. Some versions do not even contain alloca or
16016 # contain a buggy version. If you still want to use their alloca,
16017 # use ar to extract alloca.o from them instead of compiling alloca.c.
16019 ALLOCA=alloca.$ac_objext
16021 cat >>confdefs.h <<\_ACEOF
16022 #define C_ALLOCA 1
16023 _ACEOF
16026 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16027 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16028 if test "${ac_cv_os_cray+set}" = set; then
16029 echo $ECHO_N "(cached) $ECHO_C" >&6
16030 else
16031 cat >conftest.$ac_ext <<_ACEOF
16032 /* confdefs.h. */
16033 _ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037 #if defined(CRAY) && ! defined(CRAY2)
16038 webecray
16039 #else
16040 wenotbecray
16041 #endif
16043 _ACEOF
16044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16045 $EGREP "webecray" >/dev/null 2>&1; then
16046 ac_cv_os_cray=yes
16047 else
16048 ac_cv_os_cray=no
16050 rm -f conftest*
16053 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16054 echo "${ECHO_T}$ac_cv_os_cray" >&6
16055 if test $ac_cv_os_cray = yes; then
16056 for ac_func in _getb67 GETB67 getb67; do
16057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16058 echo "$as_me:$LINENO: checking for $ac_func" >&5
16059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16060 if eval "test \"\${$as_ac_var+set}\" = set"; then
16061 echo $ECHO_N "(cached) $ECHO_C" >&6
16062 else
16063 cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h. */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16071 #define $ac_func innocuous_$ac_func
16073 /* System header to define __stub macros and hopefully few prototypes,
16074 which can conflict with char $ac_func (); below.
16075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16076 <limits.h> exists even on freestanding compilers. */
16078 #ifdef __STDC__
16079 # include <limits.h>
16080 #else
16081 # include <assert.h>
16082 #endif
16084 #undef $ac_func
16086 /* Override any gcc2 internal prototype to avoid an error. */
16087 #ifdef __cplusplus
16088 extern "C"
16090 #endif
16091 /* We use char because int might match the return type of a gcc2
16092 builtin and then its argument prototype would still apply. */
16093 char $ac_func ();
16094 /* The GNU C library defines this for functions which it implements
16095 to always fail with ENOSYS. Some functions are actually named
16096 something starting with __ and the normal name is an alias. */
16097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16098 choke me
16099 #else
16100 char (*f) () = $ac_func;
16101 #endif
16102 #ifdef __cplusplus
16104 #endif
16107 main ()
16109 return f != $ac_func;
16111 return 0;
16113 _ACEOF
16114 rm -f conftest.$ac_objext conftest$ac_exeext
16115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16116 (eval $ac_link) 2>conftest.er1
16117 ac_status=$?
16118 grep -v '^ *+' conftest.er1 >conftest.err
16119 rm -f conftest.er1
16120 cat conftest.err >&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } &&
16123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16126 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; } &&
16129 { ac_try='test -s conftest$ac_exeext'
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16132 ac_status=$?
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; }; then
16135 eval "$as_ac_var=yes"
16136 else
16137 echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16140 eval "$as_ac_var=no"
16142 rm -f conftest.err conftest.$ac_objext \
16143 conftest$ac_exeext conftest.$ac_ext
16145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16147 if test `eval echo '${'$as_ac_var'}'` = yes; then
16149 cat >>confdefs.h <<_ACEOF
16150 #define CRAY_STACKSEG_END $ac_func
16151 _ACEOF
16153 break
16156 done
16159 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16160 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16161 if test "${ac_cv_c_stack_direction+set}" = set; then
16162 echo $ECHO_N "(cached) $ECHO_C" >&6
16163 else
16164 if test "$cross_compiling" = yes; then
16165 ac_cv_c_stack_direction=0
16166 else
16167 cat >conftest.$ac_ext <<_ACEOF
16168 /* confdefs.h. */
16169 _ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h. */
16174 find_stack_direction ()
16176 static char *addr = 0;
16177 auto char dummy;
16178 if (addr == 0)
16180 addr = &dummy;
16181 return find_stack_direction ();
16183 else
16184 return (&dummy > addr) ? 1 : -1;
16188 main ()
16190 exit (find_stack_direction () < 0);
16192 _ACEOF
16193 rm -f conftest$ac_exeext
16194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16195 (eval $ac_link) 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16201 ac_status=$?
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); }; }; then
16204 ac_cv_c_stack_direction=1
16205 else
16206 echo "$as_me: program exited with status $ac_status" >&5
16207 echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16210 ( exit $ac_status )
16211 ac_cv_c_stack_direction=-1
16213 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16216 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16217 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16219 cat >>confdefs.h <<_ACEOF
16220 #define STACK_DIRECTION $ac_cv_c_stack_direction
16221 _ACEOF
16283 for ac_func in \
16284 _lwp_create \
16285 _lwp_self \
16286 _pclose \
16287 _popen \
16288 _snprintf \
16289 _spawnvp \
16290 _stricmp \
16291 _strnicmp \
16292 _vsnprintf \
16293 chsize \
16294 clone \
16295 finite \
16296 fpclass \
16297 fstatfs \
16298 fstatvfs \
16299 ftruncate \
16300 ftruncate64 \
16301 futimes \
16302 getnetbyaddr \
16303 getnetbyname \
16304 getopt_long \
16305 getpagesize \
16306 getprotobyname \
16307 getprotobynumber \
16308 getpwuid \
16309 getservbyport \
16310 gettid \
16311 gettimeofday \
16312 inet_network \
16313 lseek64 \
16314 lstat \
16315 memmove \
16316 mmap \
16317 pclose \
16318 popen \
16319 pread \
16320 pwrite \
16321 readlink \
16322 rfork \
16323 select \
16324 sendmsg \
16325 settimeofday \
16326 sigaltstack \
16327 snprintf \
16328 spawnvp \
16329 statfs \
16330 statvfs \
16331 strcasecmp \
16332 strerror \
16333 strncasecmp \
16334 tcgetattr \
16335 timegm \
16336 usleep \
16337 vfscanf \
16338 vsnprintf \
16339 wait4 \
16340 waitpid \
16343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16344 echo "$as_me:$LINENO: checking for $ac_func" >&5
16345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16346 if eval "test \"\${$as_ac_var+set}\" = set"; then
16347 echo $ECHO_N "(cached) $ECHO_C" >&6
16348 else
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h. */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16357 #define $ac_func innocuous_$ac_func
16359 /* System header to define __stub macros and hopefully few prototypes,
16360 which can conflict with char $ac_func (); below.
16361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16362 <limits.h> exists even on freestanding compilers. */
16364 #ifdef __STDC__
16365 # include <limits.h>
16366 #else
16367 # include <assert.h>
16368 #endif
16370 #undef $ac_func
16372 /* Override any gcc2 internal prototype to avoid an error. */
16373 #ifdef __cplusplus
16374 extern "C"
16376 #endif
16377 /* We use char because int might match the return type of a gcc2
16378 builtin and then its argument prototype would still apply. */
16379 char $ac_func ();
16380 /* The GNU C library defines this for functions which it implements
16381 to always fail with ENOSYS. Some functions are actually named
16382 something starting with __ and the normal name is an alias. */
16383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16384 choke me
16385 #else
16386 char (*f) () = $ac_func;
16387 #endif
16388 #ifdef __cplusplus
16390 #endif
16393 main ()
16395 return f != $ac_func;
16397 return 0;
16399 _ACEOF
16400 rm -f conftest.$ac_objext conftest$ac_exeext
16401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16402 (eval $ac_link) 2>conftest.er1
16403 ac_status=$?
16404 grep -v '^ *+' conftest.er1 >conftest.err
16405 rm -f conftest.er1
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); } &&
16409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411 (eval $ac_try) 2>&5
16412 ac_status=$?
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest$ac_exeext'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16418 ac_status=$?
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 eval "$as_ac_var=yes"
16422 else
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 eval "$as_ac_var=no"
16428 rm -f conftest.err conftest.$ac_objext \
16429 conftest$ac_exeext conftest.$ac_ext
16431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16433 if test `eval echo '${'$as_ac_var'}'` = yes; then
16434 cat >>confdefs.h <<_ACEOF
16435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16436 _ACEOF
16439 done
16528 for ac_header in \
16529 arpa/inet.h \
16530 arpa/nameser.h \
16531 cups/cups.h \
16532 direct.h \
16533 elf.h \
16534 float.h \
16535 fontconfig/fontconfig.h \
16536 getopt.h \
16537 ieeefp.h \
16538 io.h \
16539 jack/jack.h \
16540 libio.h \
16541 libutil.h \
16542 link.h \
16543 linux/cdrom.h \
16544 linux/hdreg.h \
16545 linux/input.h \
16546 linux/ioctl.h \
16547 linux/joystick.h \
16548 linux/major.h \
16549 linux/param.h \
16550 linux/serial.h \
16551 linux/ucdrom.h \
16552 machine/cpu.h \
16553 mntent.h \
16554 netdb.h \
16555 netinet/in.h \
16556 netinet/in_systm.h \
16557 netinet/tcp.h \
16558 netinet/tcp_fsm.h \
16559 openssl/ssl.h \
16560 process.h \
16561 pthread.h \
16562 pty.h \
16563 pwd.h \
16564 regex.h \
16565 sched.h \
16566 scsi/sg.h \
16567 scsi/scsi.h \
16568 scsi/scsi_ioctl.h \
16569 socket.h \
16570 stdint.h \
16571 strings.h \
16572 sys/cdio.h \
16573 sys/elf32.h \
16574 sys/errno.h \
16575 sys/exec_elf.h \
16576 sys/file.h \
16577 sys/filio.h \
16578 sys/inttypes.h \
16579 sys/ioctl.h \
16580 sys/ipc.h \
16581 sys/link.h \
16582 sys/lwp.h \
16583 sys/mman.h \
16584 sys/modem.h \
16585 sys/msg.h \
16586 sys/param.h \
16587 sys/poll.h \
16588 sys/ptrace.h \
16589 sys/reg.h \
16590 sys/scsiio.h \
16591 sys/shm.h \
16592 sys/signal.h \
16593 sys/socket.h \
16594 sys/sockio.h \
16595 sys/statfs.h \
16596 sys/statvfs.h \
16597 sys/strtio.h \
16598 sys/syscall.h \
16599 sys/sysctl.h \
16600 sys/time.h \
16601 sys/times.h \
16602 sys/uio.h \
16603 sys/un.h \
16604 sys/v86.h \
16605 sys/v86intr.h \
16606 sys/vfs.h \
16607 sys/vm86.h \
16608 sys/wait.h \
16609 syscall.h \
16610 termios.h \
16611 unistd.h \
16612 utime.h \
16613 valgrind/memcheck.h
16616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16618 echo "$as_me:$LINENO: checking for $ac_header" >&5
16619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16625 else
16626 # Is the header compilable?
16627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16629 cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h. */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 $ac_includes_default
16636 #include <$ac_header>
16637 _ACEOF
16638 rm -f conftest.$ac_objext
16639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16640 (eval $ac_compile) 2>conftest.er1
16641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try='test -s conftest.$ac_objext'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16656 ac_status=$?
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; }; then
16659 ac_header_compiler=yes
16660 else
16661 echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16664 ac_header_compiler=no
16666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16668 echo "${ECHO_T}$ac_header_compiler" >&6
16670 # Is the header present?
16671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16673 cat >conftest.$ac_ext <<_ACEOF
16674 /* confdefs.h. */
16675 _ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16679 #include <$ac_header>
16680 _ACEOF
16681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16683 ac_status=$?
16684 grep -v '^ *+' conftest.er1 >conftest.err
16685 rm -f conftest.er1
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } >/dev/null; then
16689 if test -s conftest.err; then
16690 ac_cpp_err=$ac_c_preproc_warn_flag
16691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16692 else
16693 ac_cpp_err=
16695 else
16696 ac_cpp_err=yes
16698 if test -z "$ac_cpp_err"; then
16699 ac_header_preproc=yes
16700 else
16701 echo "$as_me: failed program was:" >&5
16702 sed 's/^/| /' conftest.$ac_ext >&5
16704 ac_header_preproc=no
16706 rm -f conftest.err conftest.$ac_ext
16707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16708 echo "${ECHO_T}$ac_header_preproc" >&6
16710 # So? What about this header?
16711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16712 yes:no: )
16713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16717 ac_header_preproc=yes
16719 no:yes:* )
16720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16733 cat <<\_ASBOX
16734 ## ------------------------------------ ##
16735 ## Report this to wine-devel@winehq.org ##
16736 ## ------------------------------------ ##
16737 _ASBOX
16739 sed "s/^/$as_me: WARNING: /" >&2
16741 esac
16742 echo "$as_me:$LINENO: checking for $ac_header" >&5
16743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16746 else
16747 eval "$as_ac_Header=\$ac_header_preproc"
16749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16754 cat >>confdefs.h <<_ACEOF
16755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16756 _ACEOF
16760 done
16762 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16763 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
16764 if test "${ac_cv_header_stat_broken+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16767 cat >conftest.$ac_ext <<_ACEOF
16768 /* confdefs.h. */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16773 #include <sys/types.h>
16774 #include <sys/stat.h>
16776 #if defined(S_ISBLK) && defined(S_IFDIR)
16777 # if S_ISBLK (S_IFDIR)
16778 You lose.
16779 # endif
16780 #endif
16782 #if defined(S_ISBLK) && defined(S_IFCHR)
16783 # if S_ISBLK (S_IFCHR)
16784 You lose.
16785 # endif
16786 #endif
16788 #if defined(S_ISLNK) && defined(S_IFREG)
16789 # if S_ISLNK (S_IFREG)
16790 You lose.
16791 # endif
16792 #endif
16794 #if defined(S_ISSOCK) && defined(S_IFREG)
16795 # if S_ISSOCK (S_IFREG)
16796 You lose.
16797 # endif
16798 #endif
16800 _ACEOF
16801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16802 $EGREP "You lose" >/dev/null 2>&1; then
16803 ac_cv_header_stat_broken=yes
16804 else
16805 ac_cv_header_stat_broken=no
16807 rm -f conftest*
16810 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16811 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
16812 if test $ac_cv_header_stat_broken = yes; then
16814 cat >>confdefs.h <<\_ACEOF
16815 #define STAT_MACROS_BROKEN 1
16816 _ACEOF
16824 for ac_header in sys/mount.h sys/user.h
16826 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16827 echo "$as_me:$LINENO: checking for $ac_header" >&5
16828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16830 echo $ECHO_N "(cached) $ECHO_C" >&6
16831 else
16832 cat >conftest.$ac_ext <<_ACEOF
16833 /* confdefs.h. */
16834 _ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16838 #include <sys/types.h>
16839 #if HAVE_SYS_PARAM_H
16840 # include <sys/param.h>
16841 #endif
16843 #include <$ac_header>
16844 _ACEOF
16845 rm -f conftest.$ac_objext
16846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16847 (eval $ac_compile) 2>conftest.er1
16848 ac_status=$?
16849 grep -v '^ *+' conftest.er1 >conftest.err
16850 rm -f conftest.er1
16851 cat conftest.err >&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
16854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest.$ac_objext'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 eval "$as_ac_Header=yes"
16867 else
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 eval "$as_ac_Header=no"
16873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16878 cat >>confdefs.h <<_ACEOF
16879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16880 _ACEOF
16884 done
16892 for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
16894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16895 echo "$as_me:$LINENO: checking for $ac_header" >&5
16896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 else
16900 cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h. */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 #include <sys/types.h>
16907 #if HAVE_SYS_SOCKET_H
16908 # include <sys/socket.h>
16909 #endif
16911 #include <$ac_header>
16912 _ACEOF
16913 rm -f conftest.$ac_objext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16915 (eval $ac_compile) 2>conftest.er1
16916 ac_status=$?
16917 grep -v '^ *+' conftest.er1 >conftest.err
16918 rm -f conftest.er1
16919 cat conftest.err >&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
16922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924 (eval $ac_try) 2>&5
16925 ac_status=$?
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; } &&
16928 { ac_try='test -s conftest.$ac_objext'
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 eval "$as_ac_Header=yes"
16935 else
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16939 eval "$as_ac_Header=no"
16941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16946 cat >>confdefs.h <<_ACEOF
16947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16948 _ACEOF
16952 done
16956 for ac_header in resolv.h
16958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16959 echo "$as_me:$LINENO: checking for $ac_header" >&5
16960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 else
16964 cat >conftest.$ac_ext <<_ACEOF
16965 /* confdefs.h. */
16966 _ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h. */
16970 #include <sys/types.h>
16971 #if HAVE_SYS_SOCKET_H
16972 # include <sys/socket.h>
16973 #endif
16974 #if HAVE_NETINET_IN_H
16975 # include <netinet/in.h>
16976 #endif
16977 #if HAVE_ARPA_NAMESER_H
16978 # include <arpa/nameser.h>
16979 #endif
16981 #include <$ac_header>
16982 _ACEOF
16983 rm -f conftest.$ac_objext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16985 (eval $ac_compile) 2>conftest.er1
16986 ac_status=$?
16987 grep -v '^ *+' conftest.er1 >conftest.err
16988 rm -f conftest.er1
16989 cat conftest.err >&5
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } &&
16992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994 (eval $ac_try) 2>&5
16995 ac_status=$?
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; } &&
16998 { ac_try='test -s conftest.$ac_objext'
16999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000 (eval $ac_try) 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; }; then
17004 eval "$as_ac_Header=yes"
17005 else
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 eval "$as_ac_Header=no"
17011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17016 cat >>confdefs.h <<_ACEOF
17017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17018 _ACEOF
17022 done
17026 for ac_header in netinet/ip.h
17028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17029 echo "$as_me:$LINENO: checking for $ac_header" >&5
17030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 else
17034 cat >conftest.$ac_ext <<_ACEOF
17035 /* confdefs.h. */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17040 #include <sys/types.h>
17041 #if HAVE_SYS_SOCKET_H
17042 # include <sys/socket.h>
17043 #endif
17044 #if HAVE_NETINET_IN_SYSTM_H
17045 # include <netinet/in_systm.h>
17046 #endif
17048 #include <$ac_header>
17049 _ACEOF
17050 rm -f conftest.$ac_objext
17051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17052 (eval $ac_compile) 2>conftest.er1
17053 ac_status=$?
17054 grep -v '^ *+' conftest.er1 >conftest.err
17055 rm -f conftest.er1
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; } &&
17065 { ac_try='test -s conftest.$ac_objext'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 eval "$as_ac_Header=yes"
17072 else
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 eval "$as_ac_Header=no"
17078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17083 cat >>confdefs.h <<_ACEOF
17084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17085 _ACEOF
17089 done
17093 for ac_header in ucontext.h
17095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17096 echo "$as_me:$LINENO: checking for $ac_header" >&5
17097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17099 echo $ECHO_N "(cached) $ECHO_C" >&6
17100 else
17101 cat >conftest.$ac_ext <<_ACEOF
17102 /* confdefs.h. */
17103 _ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h. */
17107 #include <signal.h>
17109 #include <$ac_header>
17110 _ACEOF
17111 rm -f conftest.$ac_objext
17112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17113 (eval $ac_compile) 2>conftest.er1
17114 ac_status=$?
17115 grep -v '^ *+' conftest.er1 >conftest.err
17116 rm -f conftest.er1
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
17120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; } &&
17126 { ac_try='test -s conftest.$ac_objext'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 eval "$as_ac_Header=yes"
17133 else
17134 echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17137 eval "$as_ac_Header=no"
17139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17142 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17144 cat >>confdefs.h <<_ACEOF
17145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17146 _ACEOF
17150 done
17154 echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
17155 echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
17156 if test "${ac_cv_c_ipx_gnu+set}" = set; then
17157 echo $ECHO_N "(cached) $ECHO_C" >&6
17158 else
17159 cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h. */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17165 #include <sys/types.h>
17166 #ifdef HAVE_SYS_SOCKET_H
17167 # include <sys/socket.h>
17168 #endif
17169 #include <netipx/ipx.h>
17171 main ()
17173 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17175 return 0;
17177 _ACEOF
17178 rm -f conftest.$ac_objext
17179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17180 (eval $ac_compile) 2>conftest.er1
17181 ac_status=$?
17182 grep -v '^ *+' conftest.er1 >conftest.err
17183 rm -f conftest.er1
17184 cat conftest.err >&5
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } &&
17187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; } &&
17193 { ac_try='test -s conftest.$ac_objext'
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 ac_cv_c_ipx_gnu="yes"
17200 else
17201 echo "$as_me: failed program was:" >&5
17202 sed 's/^/| /' conftest.$ac_ext >&5
17204 ac_cv_c_ipx_gnu="no"
17206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17209 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
17210 echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
17211 if test "$ac_cv_c_ipx_gnu" = "yes"
17212 then
17214 cat >>confdefs.h <<\_ACEOF
17215 #define HAVE_IPX_GNU 1
17216 _ACEOF
17220 if test "$ac_cv_c_ipx_gnu" = "no"
17221 then
17222 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
17223 echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
17224 if test "${ac_cv_c_ipx_linux+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227 cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h. */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h. */
17233 #include <sys/types.h>
17234 #ifdef HAVE_SYS_SOCKET_H
17235 # include <sys/socket.h>
17236 #endif
17237 #include <asm/types.h>
17238 #include <linux/ipx.h>
17240 main ()
17242 ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
17244 return 0;
17246 _ACEOF
17247 rm -f conftest.$ac_objext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17249 (eval $ac_compile) 2>conftest.er1
17250 ac_status=$?
17251 grep -v '^ *+' conftest.er1 >conftest.err
17252 rm -f conftest.er1
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } &&
17256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } &&
17262 { ac_try='test -s conftest.$ac_objext'
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 ac_cv_c_ipx_linux="yes"
17269 else
17270 echo "$as_me: failed program was:" >&5
17271 sed 's/^/| /' conftest.$ac_ext >&5
17273 ac_cv_c_ipx_linux="no"
17275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17278 echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
17279 echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
17280 if test "$ac_cv_c_ipx_linux" = "yes"
17281 then
17283 cat >>confdefs.h <<\_ACEOF
17284 #define HAVE_IPX_LINUX 1
17285 _ACEOF
17291 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17292 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17293 if test "${ac_cv_c_const+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296 cat >conftest.$ac_ext <<_ACEOF
17297 /* confdefs.h. */
17298 _ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h. */
17304 main ()
17306 /* FIXME: Include the comments suggested by Paul. */
17307 #ifndef __cplusplus
17308 /* Ultrix mips cc rejects this. */
17309 typedef int charset[2];
17310 const charset x;
17311 /* SunOS 4.1.1 cc rejects this. */
17312 char const *const *ccp;
17313 char **p;
17314 /* NEC SVR4.0.2 mips cc rejects this. */
17315 struct point {int x, y;};
17316 static struct point const zero = {0,0};
17317 /* AIX XL C 1.02.0.0 rejects this.
17318 It does not let you subtract one const X* pointer from another in
17319 an arm of an if-expression whose if-part is not a constant
17320 expression */
17321 const char *g = "string";
17322 ccp = &g + (g ? g-g : 0);
17323 /* HPUX 7.0 cc rejects these. */
17324 ++ccp;
17325 p = (char**) ccp;
17326 ccp = (char const *const *) p;
17327 { /* SCO 3.2v4 cc rejects this. */
17328 char *t;
17329 char const *s = 0 ? (char *) 0 : (char const *) 0;
17331 *t++ = 0;
17333 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17334 int x[] = {25, 17};
17335 const int *foo = &x[0];
17336 ++foo;
17338 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17339 typedef const int *iptr;
17340 iptr p = 0;
17341 ++p;
17343 { /* AIX XL C 1.02.0.0 rejects this saying
17344 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17345 struct s { int j; const int *ap[3]; };
17346 struct s *b; b->j = 5;
17348 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17349 const int foo = 10;
17351 #endif
17354 return 0;
17356 _ACEOF
17357 rm -f conftest.$ac_objext
17358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17359 (eval $ac_compile) 2>conftest.er1
17360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
17366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; } &&
17372 { ac_try='test -s conftest.$ac_objext'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17378 ac_cv_c_const=yes
17379 else
17380 echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17383 ac_cv_c_const=no
17385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17387 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17388 echo "${ECHO_T}$ac_cv_c_const" >&6
17389 if test $ac_cv_c_const = no; then
17391 cat >>confdefs.h <<\_ACEOF
17392 #define const
17393 _ACEOF
17397 echo "$as_me:$LINENO: checking for inline" >&5
17398 echo $ECHO_N "checking for inline... $ECHO_C" >&6
17399 if test "${ac_cv_c_inline+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17401 else
17402 ac_cv_c_inline=no
17403 for ac_kw in inline __inline__ __inline; do
17404 cat >conftest.$ac_ext <<_ACEOF
17405 /* confdefs.h. */
17406 _ACEOF
17407 cat confdefs.h >>conftest.$ac_ext
17408 cat >>conftest.$ac_ext <<_ACEOF
17409 /* end confdefs.h. */
17410 #ifndef __cplusplus
17411 typedef int foo_t;
17412 static $ac_kw foo_t static_foo () {return 0; }
17413 $ac_kw foo_t foo () {return 0; }
17414 #endif
17416 _ACEOF
17417 rm -f conftest.$ac_objext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17419 (eval $ac_compile) 2>conftest.er1
17420 ac_status=$?
17421 grep -v '^ *+' conftest.er1 >conftest.err
17422 rm -f conftest.er1
17423 cat conftest.err >&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } &&
17426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; } &&
17432 { ac_try='test -s conftest.$ac_objext'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 ac_cv_c_inline=$ac_kw; break
17439 else
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17445 done
17448 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17449 echo "${ECHO_T}$ac_cv_c_inline" >&6
17452 case $ac_cv_c_inline in
17453 inline | yes) ;;
17455 case $ac_cv_c_inline in
17456 no) ac_val=;;
17457 *) ac_val=$ac_cv_c_inline;;
17458 esac
17459 cat >>confdefs.h <<_ACEOF
17460 #ifndef __cplusplus
17461 #define inline $ac_val
17462 #endif
17463 _ACEOF
17465 esac
17467 echo "$as_me:$LINENO: checking for mode_t" >&5
17468 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17469 if test "${ac_cv_type_mode_t+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472 cat >conftest.$ac_ext <<_ACEOF
17473 /* confdefs.h. */
17474 _ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h. */
17478 $ac_includes_default
17480 main ()
17482 if ((mode_t *) 0)
17483 return 0;
17484 if (sizeof (mode_t))
17485 return 0;
17487 return 0;
17489 _ACEOF
17490 rm -f conftest.$ac_objext
17491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17492 (eval $ac_compile) 2>conftest.er1
17493 ac_status=$?
17494 grep -v '^ *+' conftest.er1 >conftest.err
17495 rm -f conftest.er1
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } &&
17499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17501 (eval $ac_try) 2>&5
17502 ac_status=$?
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; } &&
17505 { ac_try='test -s conftest.$ac_objext'
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511 ac_cv_type_mode_t=yes
17512 else
17513 echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17516 ac_cv_type_mode_t=no
17518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17520 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17521 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17522 if test $ac_cv_type_mode_t = yes; then
17524 cat >>confdefs.h <<_ACEOF
17525 #define HAVE_MODE_T 1
17526 _ACEOF
17530 echo "$as_me:$LINENO: checking for off_t" >&5
17531 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17532 if test "${ac_cv_type_off_t+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535 cat >conftest.$ac_ext <<_ACEOF
17536 /* confdefs.h. */
17537 _ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17541 $ac_includes_default
17543 main ()
17545 if ((off_t *) 0)
17546 return 0;
17547 if (sizeof (off_t))
17548 return 0;
17550 return 0;
17552 _ACEOF
17553 rm -f conftest.$ac_objext
17554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17555 (eval $ac_compile) 2>conftest.er1
17556 ac_status=$?
17557 grep -v '^ *+' conftest.er1 >conftest.err
17558 rm -f conftest.er1
17559 cat conftest.err >&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } &&
17562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; } &&
17568 { ac_try='test -s conftest.$ac_objext'
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17571 ac_status=$?
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
17574 ac_cv_type_off_t=yes
17575 else
17576 echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17579 ac_cv_type_off_t=no
17581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17583 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17584 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17585 if test $ac_cv_type_off_t = yes; then
17587 cat >>confdefs.h <<_ACEOF
17588 #define HAVE_OFF_T 1
17589 _ACEOF
17593 echo "$as_me:$LINENO: checking for pid_t" >&5
17594 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17595 if test "${ac_cv_type_pid_t+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17597 else
17598 cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h. */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 $ac_includes_default
17606 main ()
17608 if ((pid_t *) 0)
17609 return 0;
17610 if (sizeof (pid_t))
17611 return 0;
17613 return 0;
17615 _ACEOF
17616 rm -f conftest.$ac_objext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17618 (eval $ac_compile) 2>conftest.er1
17619 ac_status=$?
17620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
17625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627 (eval $ac_try) 2>&5
17628 ac_status=$?
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); }; } &&
17631 { ac_try='test -s conftest.$ac_objext'
17632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633 (eval $ac_try) 2>&5
17634 ac_status=$?
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); }; }; then
17637 ac_cv_type_pid_t=yes
17638 else
17639 echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17642 ac_cv_type_pid_t=no
17644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17646 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17647 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17648 if test $ac_cv_type_pid_t = yes; then
17650 cat >>confdefs.h <<_ACEOF
17651 #define HAVE_PID_T 1
17652 _ACEOF
17656 echo "$as_me:$LINENO: checking for size_t" >&5
17657 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17658 if test "${ac_cv_type_size_t+set}" = set; then
17659 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 else
17661 cat >conftest.$ac_ext <<_ACEOF
17662 /* confdefs.h. */
17663 _ACEOF
17664 cat confdefs.h >>conftest.$ac_ext
17665 cat >>conftest.$ac_ext <<_ACEOF
17666 /* end confdefs.h. */
17667 $ac_includes_default
17669 main ()
17671 if ((size_t *) 0)
17672 return 0;
17673 if (sizeof (size_t))
17674 return 0;
17676 return 0;
17678 _ACEOF
17679 rm -f conftest.$ac_objext
17680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17681 (eval $ac_compile) 2>conftest.er1
17682 ac_status=$?
17683 grep -v '^ *+' conftest.er1 >conftest.err
17684 rm -f conftest.er1
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } &&
17688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17691 ac_status=$?
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; } &&
17694 { ac_try='test -s conftest.$ac_objext'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 ac_cv_type_size_t=yes
17701 else
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17705 ac_cv_type_size_t=no
17707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17709 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17710 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17711 if test $ac_cv_type_size_t = yes; then
17713 cat >>confdefs.h <<_ACEOF
17714 #define HAVE_SIZE_T 1
17715 _ACEOF
17719 echo "$as_me:$LINENO: checking for ssize_t" >&5
17720 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17721 if test "${ac_cv_type_ssize_t+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 else
17724 cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h. */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730 $ac_includes_default
17732 main ()
17734 if ((ssize_t *) 0)
17735 return 0;
17736 if (sizeof (ssize_t))
17737 return 0;
17739 return 0;
17741 _ACEOF
17742 rm -f conftest.$ac_objext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17744 (eval $ac_compile) 2>conftest.er1
17745 ac_status=$?
17746 grep -v '^ *+' conftest.er1 >conftest.err
17747 rm -f conftest.er1
17748 cat conftest.err >&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; } &&
17757 { ac_try='test -s conftest.$ac_objext'
17758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; }; then
17763 ac_cv_type_ssize_t=yes
17764 else
17765 echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17768 ac_cv_type_ssize_t=no
17770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17772 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17773 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17774 if test $ac_cv_type_ssize_t = yes; then
17776 cat >>confdefs.h <<_ACEOF
17777 #define HAVE_SSIZE_T 1
17778 _ACEOF
17782 echo "$as_me:$LINENO: checking for long long" >&5
17783 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17784 if test "${ac_cv_type_long_long+set}" = set; then
17785 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 else
17787 cat >conftest.$ac_ext <<_ACEOF
17788 /* confdefs.h. */
17789 _ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 $ac_includes_default
17795 main ()
17797 if ((long long *) 0)
17798 return 0;
17799 if (sizeof (long long))
17800 return 0;
17802 return 0;
17804 _ACEOF
17805 rm -f conftest.$ac_objext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17807 (eval $ac_compile) 2>conftest.er1
17808 ac_status=$?
17809 grep -v '^ *+' conftest.er1 >conftest.err
17810 rm -f conftest.er1
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; } &&
17820 { ac_try='test -s conftest.$ac_objext'
17821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; }; then
17826 ac_cv_type_long_long=yes
17827 else
17828 echo "$as_me: failed program was:" >&5
17829 sed 's/^/| /' conftest.$ac_ext >&5
17831 ac_cv_type_long_long=no
17833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17835 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17836 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17837 if test $ac_cv_type_long_long = yes; then
17839 cat >>confdefs.h <<_ACEOF
17840 #define HAVE_LONG_LONG 1
17841 _ACEOF
17845 echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17846 echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17847 if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17849 else
17850 cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h. */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 $ac_includes_default
17858 main ()
17860 if ((fsblkcnt_t *) 0)
17861 return 0;
17862 if (sizeof (fsblkcnt_t))
17863 return 0;
17865 return 0;
17867 _ACEOF
17868 rm -f conftest.$ac_objext
17869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17870 (eval $ac_compile) 2>conftest.er1
17871 ac_status=$?
17872 grep -v '^ *+' conftest.er1 >conftest.err
17873 rm -f conftest.er1
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879 (eval $ac_try) 2>&5
17880 ac_status=$?
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); }; } &&
17883 { ac_try='test -s conftest.$ac_objext'
17884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17885 (eval $ac_try) 2>&5
17886 ac_status=$?
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); }; }; then
17889 ac_cv_type_fsblkcnt_t=yes
17890 else
17891 echo "$as_me: failed program was:" >&5
17892 sed 's/^/| /' conftest.$ac_ext >&5
17894 ac_cv_type_fsblkcnt_t=no
17896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17898 echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17899 echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17900 if test $ac_cv_type_fsblkcnt_t = yes; then
17902 cat >>confdefs.h <<_ACEOF
17903 #define HAVE_FSBLKCNT_T 1
17904 _ACEOF
17908 echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17909 echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17910 if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17911 echo $ECHO_N "(cached) $ECHO_C" >&6
17912 else
17913 cat >conftest.$ac_ext <<_ACEOF
17914 /* confdefs.h. */
17915 _ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h. */
17919 $ac_includes_default
17921 main ()
17923 if ((fsfilcnt_t *) 0)
17924 return 0;
17925 if (sizeof (fsfilcnt_t))
17926 return 0;
17928 return 0;
17930 _ACEOF
17931 rm -f conftest.$ac_objext
17932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17933 (eval $ac_compile) 2>conftest.er1
17934 ac_status=$?
17935 grep -v '^ *+' conftest.er1 >conftest.err
17936 rm -f conftest.er1
17937 cat conftest.err >&5
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); } &&
17940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17942 (eval $ac_try) 2>&5
17943 ac_status=$?
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; } &&
17946 { ac_try='test -s conftest.$ac_objext'
17947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17949 ac_status=$?
17950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951 (exit $ac_status); }; }; then
17952 ac_cv_type_fsfilcnt_t=yes
17953 else
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 ac_cv_type_fsfilcnt_t=no
17959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17961 echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17962 echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17963 if test $ac_cv_type_fsfilcnt_t = yes; then
17965 cat >>confdefs.h <<_ACEOF
17966 #define HAVE_FSFILCNT_T 1
17967 _ACEOF
17973 echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
17974 echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17975 if test "${wine_cv_linux_input_h+set}" = set; then
17976 echo $ECHO_N "(cached) $ECHO_C" >&6
17977 else
17978 cat >conftest.$ac_ext <<_ACEOF
17979 /* confdefs.h. */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17985 #include <linux/input.h>
17988 main ()
17991 int foo = EVIOCGBIT(EV_ABS,42);
17992 int bar = BTN_PINKIE;
17993 int fortytwo = 42;
17996 return 0;
17998 _ACEOF
17999 rm -f conftest.$ac_objext
18000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18001 (eval $ac_compile) 2>conftest.er1
18002 ac_status=$?
18003 grep -v '^ *+' conftest.er1 >conftest.err
18004 rm -f conftest.er1
18005 cat conftest.err >&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); } &&
18008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010 (eval $ac_try) 2>&5
18011 ac_status=$?
18012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); }; } &&
18014 { ac_try='test -s conftest.$ac_objext'
18015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18016 (eval $ac_try) 2>&5
18017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; }; then
18020 wine_cv_linux_input_h=yes
18021 else
18022 echo "$as_me: failed program was:" >&5
18023 sed 's/^/| /' conftest.$ac_ext >&5
18025 wine_cv_linux_input_h=no
18027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18030 echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
18031 echo "${ECHO_T}$wine_cv_linux_input_h" >&6
18032 if test "$wine_cv_linux_input_h" = "yes"
18033 then
18035 cat >>confdefs.h <<\_ACEOF
18036 #define HAVE_CORRECT_LINUXINPUT_H 1
18037 _ACEOF
18042 echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
18043 echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
18044 if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18046 else
18047 cat >conftest.$ac_ext <<_ACEOF
18048 /* confdefs.h. */
18049 _ACEOF
18050 cat confdefs.h >>conftest.$ac_ext
18051 cat >>conftest.$ac_ext <<_ACEOF
18052 /* end confdefs.h. */
18054 #include <netdb.h>
18057 main ()
18060 char *name=NULL;
18061 struct hostent he;
18062 struct hostent *result;
18063 char *buf=NULL;
18064 int bufsize=0;
18065 int res,errnr;
18066 char *addr=NULL;
18067 int addrlen=0;
18068 int addrtype=0;
18069 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
18070 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
18073 return 0;
18075 _ACEOF
18076 rm -f conftest.$ac_objext conftest$ac_exeext
18077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18078 (eval $ac_link) 2>conftest.er1
18079 ac_status=$?
18080 grep -v '^ *+' conftest.er1 >conftest.err
18081 rm -f conftest.er1
18082 cat conftest.err >&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } &&
18085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; } &&
18091 { ac_try='test -s conftest$ac_exeext'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
18097 wine_cv_linux_gethostbyname_r_6=yes
18098 else
18099 echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18102 wine_cv_linux_gethostbyname_r_6=no
18105 rm -f conftest.err conftest.$ac_objext \
18106 conftest$ac_exeext conftest.$ac_ext
18109 echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
18110 echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
18111 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
18112 then
18114 cat >>confdefs.h <<\_ACEOF
18115 #define HAVE_LINUX_GETHOSTBYNAME_R_6 1
18116 _ACEOF
18120 if test "$ac_cv_header_linux_joystick_h" = "yes"
18121 then
18122 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
18123 echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
18124 if test "${wine_cv_linux_joystick_22_api+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18127 cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h. */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18134 #include <sys/ioctl.h>
18135 #include <linux/joystick.h>
18137 struct js_event blub;
18138 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
18139 #error "no 2.2 header"
18140 #endif
18143 main ()
18145 /*empty*/
18147 return 0;
18149 _ACEOF
18150 rm -f conftest.$ac_objext
18151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18152 (eval $ac_compile) 2>conftest.er1
18153 ac_status=$?
18154 grep -v '^ *+' conftest.er1 >conftest.err
18155 rm -f conftest.er1
18156 cat conftest.err >&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } &&
18159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; } &&
18165 { ac_try='test -s conftest.$ac_objext'
18166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18167 (eval $ac_try) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); }; }; then
18171 wine_cv_linux_joystick_22_api=yes
18172 else
18173 echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18176 wine_cv_linux_joystick_22_api=no
18178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18181 echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
18182 echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
18183 if test "$wine_cv_linux_joystick_22_api" = "yes"
18184 then
18186 cat >>confdefs.h <<\_ACEOF
18187 #define HAVE_LINUX_22_JOYSTICK_API 1
18188 _ACEOF
18194 if test "$ac_cv_header_sys_vfs_h" = "yes"
18195 then
18196 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
18197 echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
18198 if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
18199 echo $ECHO_N "(cached) $ECHO_C" >&6
18200 else
18201 cat >conftest.$ac_ext <<_ACEOF
18202 /* confdefs.h. */
18203 _ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h. */
18208 #include <sys/types.h>
18209 #ifdef HAVE_SYS_PARAM_H
18210 # include <sys/param.h>
18211 #endif
18212 #include <sys/vfs.h>
18215 main ()
18218 struct statfs stfs;
18220 memset(&stfs,0,sizeof(stfs));
18223 return 0;
18225 _ACEOF
18226 rm -f conftest.$ac_objext
18227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18228 (eval $ac_compile) 2>conftest.er1
18229 ac_status=$?
18230 grep -v '^ *+' conftest.er1 >conftest.err
18231 rm -f conftest.er1
18232 cat conftest.err >&5
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); } &&
18235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest.$ac_objext'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18244 ac_status=$?
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
18247 wine_cv_sys_vfs_has_statfs=yes
18248 else
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 wine_cv_sys_vfs_has_statfs=no
18255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18258 echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
18259 echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
18260 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
18261 then
18263 cat >>confdefs.h <<\_ACEOF
18264 #define STATFS_DEFINED_BY_SYS_VFS 1
18265 _ACEOF
18270 if test "$ac_cv_header_sys_statfs_h" = "yes"
18271 then
18272 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
18273 echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
18274 if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277 cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h. */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18284 #include <sys/types.h>
18285 #ifdef HAVE_SYS_PARAM_H
18286 # include <sys/param.h>
18287 #endif
18288 #include <sys/statfs.h>
18291 main ()
18294 struct statfs stfs;
18297 return 0;
18299 _ACEOF
18300 rm -f conftest.$ac_objext
18301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18302 (eval $ac_compile) 2>conftest.er1
18303 ac_status=$?
18304 grep -v '^ *+' conftest.er1 >conftest.err
18305 rm -f conftest.er1
18306 cat conftest.err >&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } &&
18309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; } &&
18315 { ac_try='test -s conftest.$ac_objext'
18316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18317 (eval $ac_try) 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); }; }; then
18321 wine_cv_sys_statfs_has_statfs=yes
18322 else
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18326 wine_cv_sys_statfs_has_statfs=no
18329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18332 echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
18333 echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
18334 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
18335 then
18337 cat >>confdefs.h <<\_ACEOF
18338 #define STATFS_DEFINED_BY_SYS_STATFS 1
18339 _ACEOF
18344 if test "$ac_cv_header_sys_mount_h" = "yes"
18345 then
18346 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
18347 echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
18348 if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18350 else
18351 cat >conftest.$ac_ext <<_ACEOF
18352 /* confdefs.h. */
18353 _ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18358 #include <sys/types.h>
18359 #ifdef HAVE_SYS_PARAM_H
18360 # include <sys/param.h>
18361 #endif
18362 #include <sys/mount.h>
18365 main ()
18368 struct statfs stfs;
18371 return 0;
18373 _ACEOF
18374 rm -f conftest.$ac_objext
18375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18376 (eval $ac_compile) 2>conftest.er1
18377 ac_status=$?
18378 grep -v '^ *+' conftest.er1 >conftest.err
18379 rm -f conftest.er1
18380 cat conftest.err >&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } &&
18383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; } &&
18389 { ac_try='test -s conftest.$ac_objext'
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 wine_cv_sys_mount_has_statfs=yes
18396 else
18397 echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18400 wine_cv_sys_mount_has_statfs=no
18403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18406 echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
18407 echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
18408 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18409 then
18411 cat >>confdefs.h <<\_ACEOF
18412 #define STATFS_DEFINED_BY_SYS_MOUNT 1
18413 _ACEOF
18419 echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18420 echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18421 if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
18422 echo $ECHO_N "(cached) $ECHO_C" >&6
18423 else
18424 cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h. */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18430 #include <sys/types.h>
18431 #ifdef HAVE_SYS_PARAM_H
18432 # include <sys/param.h>
18433 #endif
18434 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18435 # include <sys/mount.h>
18436 #else
18437 # ifdef STATFS_DEFINED_BY_SYS_VFS
18438 # include <sys/vfs.h>
18439 # else
18440 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18441 # include <sys/statfs.h>
18442 # endif
18443 # endif
18444 #endif
18447 main ()
18449 static struct statfs ac_aggr;
18450 if (ac_aggr.f_bfree)
18451 return 0;
18453 return 0;
18455 _ACEOF
18456 rm -f conftest.$ac_objext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18458 (eval $ac_compile) 2>conftest.er1
18459 ac_status=$?
18460 grep -v '^ *+' conftest.er1 >conftest.err
18461 rm -f conftest.er1
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } &&
18465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467 (eval $ac_try) 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; } &&
18471 { ac_try='test -s conftest.$ac_objext'
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
18477 ac_cv_member_struct_statfs_f_bfree=yes
18478 else
18479 echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18482 cat >conftest.$ac_ext <<_ACEOF
18483 /* confdefs.h. */
18484 _ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h. */
18488 #include <sys/types.h>
18489 #ifdef HAVE_SYS_PARAM_H
18490 # include <sys/param.h>
18491 #endif
18492 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18493 # include <sys/mount.h>
18494 #else
18495 # ifdef STATFS_DEFINED_BY_SYS_VFS
18496 # include <sys/vfs.h>
18497 # else
18498 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18499 # include <sys/statfs.h>
18500 # endif
18501 # endif
18502 #endif
18505 main ()
18507 static struct statfs ac_aggr;
18508 if (sizeof ac_aggr.f_bfree)
18509 return 0;
18511 return 0;
18513 _ACEOF
18514 rm -f conftest.$ac_objext
18515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18516 (eval $ac_compile) 2>conftest.er1
18517 ac_status=$?
18518 grep -v '^ *+' conftest.er1 >conftest.err
18519 rm -f conftest.er1
18520 cat conftest.err >&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); } &&
18523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525 (eval $ac_try) 2>&5
18526 ac_status=$?
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; } &&
18529 { ac_try='test -s conftest.$ac_objext'
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; }; then
18535 ac_cv_member_struct_statfs_f_bfree=yes
18536 else
18537 echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18540 ac_cv_member_struct_statfs_f_bfree=no
18542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18546 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18547 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18548 if test $ac_cv_member_struct_statfs_f_bfree = yes; then
18550 cat >>confdefs.h <<_ACEOF
18551 #define HAVE_STRUCT_STATFS_F_BFREE 1
18552 _ACEOF
18556 echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18557 echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18558 if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h. */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 #include <sys/types.h>
18568 #ifdef HAVE_SYS_PARAM_H
18569 # include <sys/param.h>
18570 #endif
18571 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18572 # include <sys/mount.h>
18573 #else
18574 # ifdef STATFS_DEFINED_BY_SYS_VFS
18575 # include <sys/vfs.h>
18576 # else
18577 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18578 # include <sys/statfs.h>
18579 # endif
18580 # endif
18581 #endif
18584 main ()
18586 static struct statfs ac_aggr;
18587 if (ac_aggr.f_bavail)
18588 return 0;
18590 return 0;
18592 _ACEOF
18593 rm -f conftest.$ac_objext
18594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18595 (eval $ac_compile) 2>conftest.er1
18596 ac_status=$?
18597 grep -v '^ *+' conftest.er1 >conftest.err
18598 rm -f conftest.er1
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } &&
18602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18604 (eval $ac_try) 2>&5
18605 ac_status=$?
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; } &&
18608 { ac_try='test -s conftest.$ac_objext'
18609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610 (eval $ac_try) 2>&5
18611 ac_status=$?
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; }; then
18614 ac_cv_member_struct_statfs_f_bavail=yes
18615 else
18616 echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 cat >conftest.$ac_ext <<_ACEOF
18620 /* confdefs.h. */
18621 _ACEOF
18622 cat confdefs.h >>conftest.$ac_ext
18623 cat >>conftest.$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18625 #include <sys/types.h>
18626 #ifdef HAVE_SYS_PARAM_H
18627 # include <sys/param.h>
18628 #endif
18629 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18630 # include <sys/mount.h>
18631 #else
18632 # ifdef STATFS_DEFINED_BY_SYS_VFS
18633 # include <sys/vfs.h>
18634 # else
18635 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18636 # include <sys/statfs.h>
18637 # endif
18638 # endif
18639 #endif
18642 main ()
18644 static struct statfs ac_aggr;
18645 if (sizeof ac_aggr.f_bavail)
18646 return 0;
18648 return 0;
18650 _ACEOF
18651 rm -f conftest.$ac_objext
18652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18653 (eval $ac_compile) 2>conftest.er1
18654 ac_status=$?
18655 grep -v '^ *+' conftest.er1 >conftest.err
18656 rm -f conftest.er1
18657 cat conftest.err >&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } &&
18660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18662 (eval $ac_try) 2>&5
18663 ac_status=$?
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); }; } &&
18666 { ac_try='test -s conftest.$ac_objext'
18667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18668 (eval $ac_try) 2>&5
18669 ac_status=$?
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); }; }; then
18672 ac_cv_member_struct_statfs_f_bavail=yes
18673 else
18674 echo "$as_me: failed program was:" >&5
18675 sed 's/^/| /' conftest.$ac_ext >&5
18677 ac_cv_member_struct_statfs_f_bavail=no
18679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18683 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18684 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18685 if test $ac_cv_member_struct_statfs_f_bavail = yes; then
18687 cat >>confdefs.h <<_ACEOF
18688 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
18689 _ACEOF
18693 echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18694 echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18695 if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18697 else
18698 cat >conftest.$ac_ext <<_ACEOF
18699 /* confdefs.h. */
18700 _ACEOF
18701 cat confdefs.h >>conftest.$ac_ext
18702 cat >>conftest.$ac_ext <<_ACEOF
18703 /* end confdefs.h. */
18704 #include <sys/types.h>
18705 #ifdef HAVE_SYS_PARAM_H
18706 # include <sys/param.h>
18707 #endif
18708 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18709 # include <sys/mount.h>
18710 #else
18711 # ifdef STATFS_DEFINED_BY_SYS_VFS
18712 # include <sys/vfs.h>
18713 # else
18714 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18715 # include <sys/statfs.h>
18716 # endif
18717 # endif
18718 #endif
18721 main ()
18723 static struct statfs ac_aggr;
18724 if (ac_aggr.f_frsize)
18725 return 0;
18727 return 0;
18729 _ACEOF
18730 rm -f conftest.$ac_objext
18731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18732 (eval $ac_compile) 2>conftest.er1
18733 ac_status=$?
18734 grep -v '^ *+' conftest.er1 >conftest.err
18735 rm -f conftest.er1
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
18739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741 (eval $ac_try) 2>&5
18742 ac_status=$?
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; } &&
18745 { ac_try='test -s conftest.$ac_objext'
18746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18747 (eval $ac_try) 2>&5
18748 ac_status=$?
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; }; then
18751 ac_cv_member_struct_statfs_f_frsize=yes
18752 else
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18756 cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h. */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h. */
18762 #include <sys/types.h>
18763 #ifdef HAVE_SYS_PARAM_H
18764 # include <sys/param.h>
18765 #endif
18766 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18767 # include <sys/mount.h>
18768 #else
18769 # ifdef STATFS_DEFINED_BY_SYS_VFS
18770 # include <sys/vfs.h>
18771 # else
18772 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18773 # include <sys/statfs.h>
18774 # endif
18775 # endif
18776 #endif
18779 main ()
18781 static struct statfs ac_aggr;
18782 if (sizeof ac_aggr.f_frsize)
18783 return 0;
18785 return 0;
18787 _ACEOF
18788 rm -f conftest.$ac_objext
18789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18790 (eval $ac_compile) 2>conftest.er1
18791 ac_status=$?
18792 grep -v '^ *+' conftest.er1 >conftest.err
18793 rm -f conftest.er1
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); } &&
18797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest.$ac_objext'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 ac_cv_member_struct_statfs_f_frsize=yes
18810 else
18811 echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18814 ac_cv_member_struct_statfs_f_frsize=no
18816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18820 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18821 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18822 if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18824 cat >>confdefs.h <<_ACEOF
18825 #define HAVE_STRUCT_STATFS_F_FRSIZE 1
18826 _ACEOF
18830 echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18831 echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18832 if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18833 echo $ECHO_N "(cached) $ECHO_C" >&6
18834 else
18835 cat >conftest.$ac_ext <<_ACEOF
18836 /* confdefs.h. */
18837 _ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18841 #include <sys/types.h>
18842 #ifdef HAVE_SYS_PARAM_H
18843 # include <sys/param.h>
18844 #endif
18845 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18846 # include <sys/mount.h>
18847 #else
18848 # ifdef STATFS_DEFINED_BY_SYS_VFS
18849 # include <sys/vfs.h>
18850 # else
18851 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18852 # include <sys/statfs.h>
18853 # endif
18854 # endif
18855 #endif
18858 main ()
18860 static struct statfs ac_aggr;
18861 if (ac_aggr.f_ffree)
18862 return 0;
18864 return 0;
18866 _ACEOF
18867 rm -f conftest.$ac_objext
18868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18869 (eval $ac_compile) 2>conftest.er1
18870 ac_status=$?
18871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18878 (eval $ac_try) 2>&5
18879 ac_status=$?
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; } &&
18882 { ac_try='test -s conftest.$ac_objext'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_cv_member_struct_statfs_f_ffree=yes
18889 else
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18893 cat >conftest.$ac_ext <<_ACEOF
18894 /* confdefs.h. */
18895 _ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18899 #include <sys/types.h>
18900 #ifdef HAVE_SYS_PARAM_H
18901 # include <sys/param.h>
18902 #endif
18903 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18904 # include <sys/mount.h>
18905 #else
18906 # ifdef STATFS_DEFINED_BY_SYS_VFS
18907 # include <sys/vfs.h>
18908 # else
18909 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18910 # include <sys/statfs.h>
18911 # endif
18912 # endif
18913 #endif
18916 main ()
18918 static struct statfs ac_aggr;
18919 if (sizeof ac_aggr.f_ffree)
18920 return 0;
18922 return 0;
18924 _ACEOF
18925 rm -f conftest.$ac_objext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18927 (eval $ac_compile) 2>conftest.er1
18928 ac_status=$?
18929 grep -v '^ *+' conftest.er1 >conftest.err
18930 rm -f conftest.er1
18931 cat conftest.err >&5
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); } &&
18934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; } &&
18940 { ac_try='test -s conftest.$ac_objext'
18941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942 (eval $ac_try) 2>&5
18943 ac_status=$?
18944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945 (exit $ac_status); }; }; then
18946 ac_cv_member_struct_statfs_f_ffree=yes
18947 else
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18951 ac_cv_member_struct_statfs_f_ffree=no
18953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18957 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18958 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18959 if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18961 cat >>confdefs.h <<_ACEOF
18962 #define HAVE_STRUCT_STATFS_F_FFREE 1
18963 _ACEOF
18967 echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18968 echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18969 if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18971 else
18972 cat >conftest.$ac_ext <<_ACEOF
18973 /* confdefs.h. */
18974 _ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18978 #include <sys/types.h>
18979 #ifdef HAVE_SYS_PARAM_H
18980 # include <sys/param.h>
18981 #endif
18982 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
18983 # include <sys/mount.h>
18984 #else
18985 # ifdef STATFS_DEFINED_BY_SYS_VFS
18986 # include <sys/vfs.h>
18987 # else
18988 # ifdef STATFS_DEFINED_BY_SYS_STATFS
18989 # include <sys/statfs.h>
18990 # endif
18991 # endif
18992 #endif
18995 main ()
18997 static struct statfs ac_aggr;
18998 if (ac_aggr.f_favail)
18999 return 0;
19001 return 0;
19003 _ACEOF
19004 rm -f conftest.$ac_objext
19005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19006 (eval $ac_compile) 2>conftest.er1
19007 ac_status=$?
19008 grep -v '^ *+' conftest.er1 >conftest.err
19009 rm -f conftest.er1
19010 cat conftest.err >&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); } &&
19013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19016 ac_status=$?
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; } &&
19019 { ac_try='test -s conftest.$ac_objext'
19020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19021 (eval $ac_try) 2>&5
19022 ac_status=$?
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; }; then
19025 ac_cv_member_struct_statfs_f_favail=yes
19026 else
19027 echo "$as_me: failed program was:" >&5
19028 sed 's/^/| /' conftest.$ac_ext >&5
19030 cat >conftest.$ac_ext <<_ACEOF
19031 /* confdefs.h. */
19032 _ACEOF
19033 cat confdefs.h >>conftest.$ac_ext
19034 cat >>conftest.$ac_ext <<_ACEOF
19035 /* end confdefs.h. */
19036 #include <sys/types.h>
19037 #ifdef HAVE_SYS_PARAM_H
19038 # include <sys/param.h>
19039 #endif
19040 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19041 # include <sys/mount.h>
19042 #else
19043 # ifdef STATFS_DEFINED_BY_SYS_VFS
19044 # include <sys/vfs.h>
19045 # else
19046 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19047 # include <sys/statfs.h>
19048 # endif
19049 # endif
19050 #endif
19053 main ()
19055 static struct statfs ac_aggr;
19056 if (sizeof ac_aggr.f_favail)
19057 return 0;
19059 return 0;
19061 _ACEOF
19062 rm -f conftest.$ac_objext
19063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19064 (eval $ac_compile) 2>conftest.er1
19065 ac_status=$?
19066 grep -v '^ *+' conftest.er1 >conftest.err
19067 rm -f conftest.er1
19068 cat conftest.err >&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } &&
19071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; } &&
19077 { ac_try='test -s conftest.$ac_objext'
19078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19079 (eval $ac_try) 2>&5
19080 ac_status=$?
19081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19082 (exit $ac_status); }; }; then
19083 ac_cv_member_struct_statfs_f_favail=yes
19084 else
19085 echo "$as_me: failed program was:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19088 ac_cv_member_struct_statfs_f_favail=no
19090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19094 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
19095 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
19096 if test $ac_cv_member_struct_statfs_f_favail = yes; then
19098 cat >>confdefs.h <<_ACEOF
19099 #define HAVE_STRUCT_STATFS_F_FAVAIL 1
19100 _ACEOF
19104 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
19105 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
19106 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
19107 echo $ECHO_N "(cached) $ECHO_C" >&6
19108 else
19109 cat >conftest.$ac_ext <<_ACEOF
19110 /* confdefs.h. */
19111 _ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19115 #include <sys/types.h>
19116 #ifdef HAVE_SYS_PARAM_H
19117 # include <sys/param.h>
19118 #endif
19119 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19120 # include <sys/mount.h>
19121 #else
19122 # ifdef STATFS_DEFINED_BY_SYS_VFS
19123 # include <sys/vfs.h>
19124 # else
19125 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19126 # include <sys/statfs.h>
19127 # endif
19128 # endif
19129 #endif
19132 main ()
19134 static struct statfs ac_aggr;
19135 if (ac_aggr.f_namelen)
19136 return 0;
19138 return 0;
19140 _ACEOF
19141 rm -f conftest.$ac_objext
19142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19143 (eval $ac_compile) 2>conftest.er1
19144 ac_status=$?
19145 grep -v '^ *+' conftest.er1 >conftest.err
19146 rm -f conftest.er1
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); } &&
19150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; } &&
19156 { ac_try='test -s conftest.$ac_objext'
19157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19158 (eval $ac_try) 2>&5
19159 ac_status=$?
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; }; then
19162 ac_cv_member_struct_statfs_f_namelen=yes
19163 else
19164 echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19167 cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h. */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h. */
19173 #include <sys/types.h>
19174 #ifdef HAVE_SYS_PARAM_H
19175 # include <sys/param.h>
19176 #endif
19177 #ifdef STATFS_DEFINED_BY_SYS_MOUNT
19178 # include <sys/mount.h>
19179 #else
19180 # ifdef STATFS_DEFINED_BY_SYS_VFS
19181 # include <sys/vfs.h>
19182 # else
19183 # ifdef STATFS_DEFINED_BY_SYS_STATFS
19184 # include <sys/statfs.h>
19185 # endif
19186 # endif
19187 #endif
19190 main ()
19192 static struct statfs ac_aggr;
19193 if (sizeof ac_aggr.f_namelen)
19194 return 0;
19196 return 0;
19198 _ACEOF
19199 rm -f conftest.$ac_objext
19200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19201 (eval $ac_compile) 2>conftest.er1
19202 ac_status=$?
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } &&
19208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19210 (eval $ac_try) 2>&5
19211 ac_status=$?
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); }; } &&
19214 { ac_try='test -s conftest.$ac_objext'
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19217 ac_status=$?
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; }; then
19220 ac_cv_member_struct_statfs_f_namelen=yes
19221 else
19222 echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19225 ac_cv_member_struct_statfs_f_namelen=no
19227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19231 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19232 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
19233 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19235 cat >>confdefs.h <<_ACEOF
19236 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
19237 _ACEOF
19243 echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19244 echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
19245 if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19246 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 else
19248 cat >conftest.$ac_ext <<_ACEOF
19249 /* confdefs.h. */
19250 _ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19254 #ifdef HAVE_SYS_STATVFS_H
19255 #include <sys/statvfs.h>
19256 #endif
19259 main ()
19261 static struct statvfs ac_aggr;
19262 if (ac_aggr.f_blocks)
19263 return 0;
19265 return 0;
19267 _ACEOF
19268 rm -f conftest.$ac_objext
19269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19270 (eval $ac_compile) 2>conftest.er1
19271 ac_status=$?
19272 grep -v '^ *+' conftest.er1 >conftest.err
19273 rm -f conftest.er1
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } &&
19277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; } &&
19283 { ac_try='test -s conftest.$ac_objext'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19289 ac_cv_member_struct_statvfs_f_blocks=yes
19290 else
19291 echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19294 cat >conftest.$ac_ext <<_ACEOF
19295 /* confdefs.h. */
19296 _ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 #ifdef HAVE_SYS_STATVFS_H
19301 #include <sys/statvfs.h>
19302 #endif
19305 main ()
19307 static struct statvfs ac_aggr;
19308 if (sizeof ac_aggr.f_blocks)
19309 return 0;
19311 return 0;
19313 _ACEOF
19314 rm -f conftest.$ac_objext
19315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19316 (eval $ac_compile) 2>conftest.er1
19317 ac_status=$?
19318 grep -v '^ *+' conftest.er1 >conftest.err
19319 rm -f conftest.er1
19320 cat conftest.err >&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); } &&
19323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325 (eval $ac_try) 2>&5
19326 ac_status=$?
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); }; } &&
19329 { ac_try='test -s conftest.$ac_objext'
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 ac_cv_member_struct_statvfs_f_blocks=yes
19336 else
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 ac_cv_member_struct_statvfs_f_blocks=no
19342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19346 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19347 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
19348 if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19350 cat >>confdefs.h <<_ACEOF
19351 #define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19352 _ACEOF
19358 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19359 echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
19360 if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
19361 echo $ECHO_N "(cached) $ECHO_C" >&6
19362 else
19363 cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h. */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19369 #include <sys/types.h>
19370 #ifdef HAVE_SYS_SOCKET_H
19371 # include <sys/socket.h>
19372 #endif
19373 #ifdef HAVE_SYS_UN_H
19374 # include <sys/un.h>
19375 #endif
19378 main ()
19380 static struct msghdr ac_aggr;
19381 if (ac_aggr.msg_accrights)
19382 return 0;
19384 return 0;
19386 _ACEOF
19387 rm -f conftest.$ac_objext
19388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19389 (eval $ac_compile) 2>conftest.er1
19390 ac_status=$?
19391 grep -v '^ *+' conftest.er1 >conftest.err
19392 rm -f conftest.er1
19393 cat conftest.err >&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
19396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; } &&
19402 { ac_try='test -s conftest.$ac_objext'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; }; then
19408 ac_cv_member_struct_msghdr_msg_accrights=yes
19409 else
19410 echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19413 cat >conftest.$ac_ext <<_ACEOF
19414 /* confdefs.h. */
19415 _ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h. */
19419 #include <sys/types.h>
19420 #ifdef HAVE_SYS_SOCKET_H
19421 # include <sys/socket.h>
19422 #endif
19423 #ifdef HAVE_SYS_UN_H
19424 # include <sys/un.h>
19425 #endif
19428 main ()
19430 static struct msghdr ac_aggr;
19431 if (sizeof ac_aggr.msg_accrights)
19432 return 0;
19434 return 0;
19436 _ACEOF
19437 rm -f conftest.$ac_objext
19438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19439 (eval $ac_compile) 2>conftest.er1
19440 ac_status=$?
19441 grep -v '^ *+' conftest.er1 >conftest.err
19442 rm -f conftest.er1
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } &&
19446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest.$ac_objext'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458 ac_cv_member_struct_msghdr_msg_accrights=yes
19459 else
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19463 ac_cv_member_struct_msghdr_msg_accrights=no
19465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19469 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19470 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19471 if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
19473 cat >>confdefs.h <<_ACEOF
19474 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
19475 _ACEOF
19479 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19480 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19481 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19483 else
19484 cat >conftest.$ac_ext <<_ACEOF
19485 /* confdefs.h. */
19486 _ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19490 #include <sys/types.h>
19491 #ifdef HAVE_SYS_SOCKET_H
19492 # include <sys/socket.h>
19493 #endif
19494 #ifdef HAVE_SYS_UN_H
19495 # include <sys/un.h>
19496 #endif
19499 main ()
19501 static struct sockaddr ac_aggr;
19502 if (ac_aggr.sa_len)
19503 return 0;
19505 return 0;
19507 _ACEOF
19508 rm -f conftest.$ac_objext
19509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19510 (eval $ac_compile) 2>conftest.er1
19511 ac_status=$?
19512 grep -v '^ *+' conftest.er1 >conftest.err
19513 rm -f conftest.er1
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } &&
19517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; } &&
19523 { ac_try='test -s conftest.$ac_objext'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; }; then
19529 ac_cv_member_struct_sockaddr_sa_len=yes
19530 else
19531 echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19534 cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h. */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19540 #include <sys/types.h>
19541 #ifdef HAVE_SYS_SOCKET_H
19542 # include <sys/socket.h>
19543 #endif
19544 #ifdef HAVE_SYS_UN_H
19545 # include <sys/un.h>
19546 #endif
19549 main ()
19551 static struct sockaddr ac_aggr;
19552 if (sizeof ac_aggr.sa_len)
19553 return 0;
19555 return 0;
19557 _ACEOF
19558 rm -f conftest.$ac_objext
19559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19560 (eval $ac_compile) 2>conftest.er1
19561 ac_status=$?
19562 grep -v '^ *+' conftest.er1 >conftest.err
19563 rm -f conftest.er1
19564 cat conftest.err >&5
19565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566 (exit $ac_status); } &&
19567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569 (eval $ac_try) 2>&5
19570 ac_status=$?
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); }; } &&
19573 { ac_try='test -s conftest.$ac_objext'
19574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575 (eval $ac_try) 2>&5
19576 ac_status=$?
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; }; then
19579 ac_cv_member_struct_sockaddr_sa_len=yes
19580 else
19581 echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19584 ac_cv_member_struct_sockaddr_sa_len=no
19586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19590 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19591 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19592 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19594 cat >>confdefs.h <<_ACEOF
19595 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19596 _ACEOF
19600 echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19601 echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19602 if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605 cat >conftest.$ac_ext <<_ACEOF
19606 /* confdefs.h. */
19607 _ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611 #include <sys/types.h>
19612 #ifdef HAVE_SYS_SOCKET_H
19613 # include <sys/socket.h>
19614 #endif
19615 #ifdef HAVE_SYS_UN_H
19616 # include <sys/un.h>
19617 #endif
19620 main ()
19622 static struct sockaddr_un ac_aggr;
19623 if (ac_aggr.sun_len)
19624 return 0;
19626 return 0;
19628 _ACEOF
19629 rm -f conftest.$ac_objext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19631 (eval $ac_compile) 2>conftest.er1
19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; } &&
19644 { ac_try='test -s conftest.$ac_objext'
19645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646 (eval $ac_try) 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; }; then
19650 ac_cv_member_struct_sockaddr_un_sun_len=yes
19651 else
19652 echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19655 cat >conftest.$ac_ext <<_ACEOF
19656 /* confdefs.h. */
19657 _ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19661 #include <sys/types.h>
19662 #ifdef HAVE_SYS_SOCKET_H
19663 # include <sys/socket.h>
19664 #endif
19665 #ifdef HAVE_SYS_UN_H
19666 # include <sys/un.h>
19667 #endif
19670 main ()
19672 static struct sockaddr_un ac_aggr;
19673 if (sizeof ac_aggr.sun_len)
19674 return 0;
19676 return 0;
19678 _ACEOF
19679 rm -f conftest.$ac_objext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19681 (eval $ac_compile) 2>conftest.er1
19682 ac_status=$?
19683 grep -v '^ *+' conftest.er1 >conftest.err
19684 rm -f conftest.er1
19685 cat conftest.err >&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
19688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19690 (eval $ac_try) 2>&5
19691 ac_status=$?
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; } &&
19694 { ac_try='test -s conftest.$ac_objext'
19695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; }; then
19700 ac_cv_member_struct_sockaddr_un_sun_len=yes
19701 else
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19705 ac_cv_member_struct_sockaddr_un_sun_len=no
19707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19711 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19712 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19713 if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19715 cat >>confdefs.h <<_ACEOF
19716 #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19717 _ACEOF
19723 echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19724 echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19725 if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19727 else
19728 cat >conftest.$ac_ext <<_ACEOF
19729 /* confdefs.h. */
19730 _ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h. */
19734 #include <signal.h>
19737 main ()
19739 static siginfo_t ac_aggr;
19740 if (ac_aggr.si_fd)
19741 return 0;
19743 return 0;
19745 _ACEOF
19746 rm -f conftest.$ac_objext
19747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19748 (eval $ac_compile) 2>conftest.er1
19749 ac_status=$?
19750 grep -v '^ *+' conftest.er1 >conftest.err
19751 rm -f conftest.er1
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } &&
19755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757 (eval $ac_try) 2>&5
19758 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; } &&
19761 { ac_try='test -s conftest.$ac_objext'
19762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19763 (eval $ac_try) 2>&5
19764 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then
19767 ac_cv_member_siginfo_t_si_fd=yes
19768 else
19769 echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19772 cat >conftest.$ac_ext <<_ACEOF
19773 /* confdefs.h. */
19774 _ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19778 #include <signal.h>
19781 main ()
19783 static siginfo_t ac_aggr;
19784 if (sizeof ac_aggr.si_fd)
19785 return 0;
19787 return 0;
19789 _ACEOF
19790 rm -f conftest.$ac_objext
19791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19792 (eval $ac_compile) 2>conftest.er1
19793 ac_status=$?
19794 grep -v '^ *+' conftest.er1 >conftest.err
19795 rm -f conftest.er1
19796 cat conftest.err >&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); } &&
19799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; } &&
19805 { ac_try='test -s conftest.$ac_objext'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811 ac_cv_member_siginfo_t_si_fd=yes
19812 else
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19816 ac_cv_member_siginfo_t_si_fd=no
19818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19822 echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19823 echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19824 if test $ac_cv_member_siginfo_t_si_fd = yes; then
19826 cat >>confdefs.h <<_ACEOF
19827 #define HAVE_SIGINFO_T_SI_FD 1
19828 _ACEOF
19834 echo "$as_me:$LINENO: checking for struct option.name" >&5
19835 echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19836 if test "${ac_cv_member_struct_option_name+set}" = set; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19838 else
19839 cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h. */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845 #ifdef HAVE_GETOPT_H
19846 #include <getopt.h>
19847 #endif
19850 main ()
19852 static struct option ac_aggr;
19853 if (ac_aggr.name)
19854 return 0;
19856 return 0;
19858 _ACEOF
19859 rm -f conftest.$ac_objext
19860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19861 (eval $ac_compile) 2>conftest.er1
19862 ac_status=$?
19863 grep -v '^ *+' conftest.er1 >conftest.err
19864 rm -f conftest.er1
19865 cat conftest.err >&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } &&
19868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19871 ac_status=$?
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest.$ac_objext'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19880 ac_cv_member_struct_option_name=yes
19881 else
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19885 cat >conftest.$ac_ext <<_ACEOF
19886 /* confdefs.h. */
19887 _ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19891 #ifdef HAVE_GETOPT_H
19892 #include <getopt.h>
19893 #endif
19896 main ()
19898 static struct option ac_aggr;
19899 if (sizeof ac_aggr.name)
19900 return 0;
19902 return 0;
19904 _ACEOF
19905 rm -f conftest.$ac_objext
19906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19907 (eval $ac_compile) 2>conftest.er1
19908 ac_status=$?
19909 grep -v '^ *+' conftest.er1 >conftest.err
19910 rm -f conftest.er1
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } &&
19914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; } &&
19920 { ac_try='test -s conftest.$ac_objext'
19921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922 (eval $ac_try) 2>&5
19923 ac_status=$?
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); }; }; then
19926 ac_cv_member_struct_option_name=yes
19927 else
19928 echo "$as_me: failed program was:" >&5
19929 sed 's/^/| /' conftest.$ac_ext >&5
19931 ac_cv_member_struct_option_name=no
19933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19937 echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19938 echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19939 if test $ac_cv_member_struct_option_name = yes; then
19941 cat >>confdefs.h <<_ACEOF
19942 #define HAVE_STRUCT_OPTION_NAME 1
19943 _ACEOF
19949 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19950 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19951 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19953 else
19954 cat >conftest.$ac_ext <<_ACEOF
19955 /* confdefs.h. */
19956 _ACEOF
19957 cat confdefs.h >>conftest.$ac_ext
19958 cat >>conftest.$ac_ext <<_ACEOF
19959 /* end confdefs.h. */
19960 $ac_includes_default
19962 main ()
19964 static struct stat ac_aggr;
19965 if (ac_aggr.st_blocks)
19966 return 0;
19968 return 0;
19970 _ACEOF
19971 rm -f conftest.$ac_objext
19972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19973 (eval $ac_compile) 2>conftest.er1
19974 ac_status=$?
19975 grep -v '^ *+' conftest.er1 >conftest.err
19976 rm -f conftest.er1
19977 cat conftest.err >&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); } &&
19980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; } &&
19986 { ac_try='test -s conftest.$ac_objext'
19987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988 (eval $ac_try) 2>&5
19989 ac_status=$?
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); }; }; then
19992 ac_cv_member_struct_stat_st_blocks=yes
19993 else
19994 echo "$as_me: failed program was:" >&5
19995 sed 's/^/| /' conftest.$ac_ext >&5
19997 cat >conftest.$ac_ext <<_ACEOF
19998 /* confdefs.h. */
19999 _ACEOF
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h. */
20003 $ac_includes_default
20005 main ()
20007 static struct stat ac_aggr;
20008 if (sizeof ac_aggr.st_blocks)
20009 return 0;
20011 return 0;
20013 _ACEOF
20014 rm -f conftest.$ac_objext
20015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20016 (eval $ac_compile) 2>conftest.er1
20017 ac_status=$?
20018 grep -v '^ *+' conftest.er1 >conftest.err
20019 rm -f conftest.er1
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022 (exit $ac_status); } &&
20023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025 (eval $ac_try) 2>&5
20026 ac_status=$?
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; } &&
20029 { ac_try='test -s conftest.$ac_objext'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20032 ac_status=$?
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; }; then
20035 ac_cv_member_struct_stat_st_blocks=yes
20036 else
20037 echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_cv_member_struct_stat_st_blocks=no
20042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20046 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20047 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20048 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20050 cat >>confdefs.h <<_ACEOF
20051 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20052 _ACEOF
20059 case $host_cpu in
20060 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20061 echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
20062 if test "${ac_cv_cpp_def___i386__+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 else
20065 cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h. */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20071 #ifndef __i386__
20073 #endif
20074 _ACEOF
20075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20076 $EGREP "yes" >/dev/null 2>&1; then
20077 ac_cv_cpp_def___i386__=yes
20078 else
20079 ac_cv_cpp_def___i386__=no
20081 rm -f conftest*
20084 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20085 echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
20086 if test $ac_cv_cpp_def___i386__ = yes; then
20087 CFLAGS="$CFLAGS -D__i386__"
20088 LINTFLAGS="$LINTFLAGS -D__i386__"
20091 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20092 echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
20093 if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 else
20096 cat >conftest.$ac_ext <<_ACEOF
20097 /* confdefs.h. */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20102 #ifndef __ALPHA__
20104 #endif
20105 _ACEOF
20106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20107 $EGREP "yes" >/dev/null 2>&1; then
20108 ac_cv_cpp_def___ALPHA__=yes
20109 else
20110 ac_cv_cpp_def___ALPHA__=no
20112 rm -f conftest*
20115 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20116 echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
20117 if test $ac_cv_cpp_def___ALPHA__ = yes; then
20118 CFLAGS="$CFLAGS -D__ALPHA__"
20119 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
20122 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20123 echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
20124 if test "${ac_cv_cpp_def___sparc__+set}" = set; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20126 else
20127 cat >conftest.$ac_ext <<_ACEOF
20128 /* confdefs.h. */
20129 _ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h. */
20133 #ifndef __sparc__
20135 #endif
20136 _ACEOF
20137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20138 $EGREP "yes" >/dev/null 2>&1; then
20139 ac_cv_cpp_def___sparc__=yes
20140 else
20141 ac_cv_cpp_def___sparc__=no
20143 rm -f conftest*
20146 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20147 echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
20148 if test $ac_cv_cpp_def___sparc__ = yes; then
20149 CFLAGS="$CFLAGS -D__sparc__"
20150 LINTFLAGS="$LINTFLAGS -D__sparc__"
20153 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20154 echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
20155 if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20156 echo $ECHO_N "(cached) $ECHO_C" >&6
20157 else
20158 cat >conftest.$ac_ext <<_ACEOF
20159 /* confdefs.h. */
20160 _ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20164 #ifndef __powerpc__
20166 #endif
20167 _ACEOF
20168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20169 $EGREP "yes" >/dev/null 2>&1; then
20170 ac_cv_cpp_def___powerpc__=yes
20171 else
20172 ac_cv_cpp_def___powerpc__=no
20174 rm -f conftest*
20177 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20178 echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
20179 if test $ac_cv_cpp_def___powerpc__ = yes; then
20180 CFLAGS="$CFLAGS -D__powerpc__"
20181 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20184 esac
20186 case $host_vendor in
20187 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20188 echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
20189 if test "${ac_cv_cpp_def___sun__+set}" = set; then
20190 echo $ECHO_N "(cached) $ECHO_C" >&6
20191 else
20192 cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h. */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20198 #ifndef __sun__
20200 #endif
20201 _ACEOF
20202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20203 $EGREP "yes" >/dev/null 2>&1; then
20204 ac_cv_cpp_def___sun__=yes
20205 else
20206 ac_cv_cpp_def___sun__=no
20208 rm -f conftest*
20211 echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20212 echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20213 if test $ac_cv_cpp_def___sun__ = yes; then
20214 CFLAGS="$CFLAGS -D__sun__"
20215 LINTFLAGS="$LINTFLAGS -D__sun__"
20218 esac
20224 ac_config_commands="$ac_config_commands controls"
20226 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
20228 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
20230 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
20232 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
20234 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
20236 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
20238 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
20240 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
20242 ac_config_commands="$ac_config_commands dlls/kernel/messages"
20244 ac_config_commands="$ac_config_commands dlls/user/dde"
20246 ac_config_commands="$ac_config_commands dlls/user/resources"
20248 ac_config_commands="$ac_config_commands dlls/wineps/data"
20250 ac_config_commands="$ac_config_commands include/wine"
20252 ac_config_commands="$ac_config_commands misc"
20254 ac_config_commands="$ac_config_commands programs/regedit/tests"
20256 ac_config_commands="$ac_config_commands windows"
20259 MAKE_RULES=Make.rules
20262 MAKE_DLL_RULES=dlls/Makedll.rules
20265 MAKE_TEST_RULES=dlls/Maketest.rules
20268 MAKE_LIB_RULES=libs/Makelib.rules
20271 MAKE_PROG_RULES=programs/Makeprog.rules
20274 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/secur32/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
20277 cat >confcache <<\_ACEOF
20278 # This file is a shell script that caches the results of configure
20279 # tests run on this system so they can be shared between configure
20280 # scripts and configure runs, see configure's option --config-cache.
20281 # It is not useful on other systems. If it contains results you don't
20282 # want to keep, you may remove or edit it.
20284 # config.status only pays attention to the cache file if you give it
20285 # the --recheck option to rerun configure.
20287 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20288 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20289 # following values.
20291 _ACEOF
20293 # The following way of writing the cache mishandles newlines in values,
20294 # but we know of no workaround that is simple, portable, and efficient.
20295 # So, don't put newlines in cache variables' values.
20296 # Ultrix sh set writes to stderr and can't be redirected directly,
20297 # and sets the high bit in the cache file unless we assign to the vars.
20299 (set) 2>&1 |
20300 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20301 *ac_space=\ *)
20302 # `set' does not quote correctly, so add quotes (double-quote
20303 # substitution turns \\\\ into \\, and sed turns \\ into \).
20304 sed -n \
20305 "s/'/'\\\\''/g;
20306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20309 # `set' quotes correctly as required by POSIX, so do not add quotes.
20310 sed -n \
20311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20313 esac;
20315 sed '
20316 t clear
20317 : clear
20318 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20319 t end
20320 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20321 : end' >>confcache
20322 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20323 if test -w $cache_file; then
20324 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20325 cat confcache >$cache_file
20326 else
20327 echo "not updating unwritable cache $cache_file"
20330 rm -f confcache
20332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20333 # Let make expand exec_prefix.
20334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20336 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20337 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20338 # trailing colons and then remove the whole line if VPATH becomes empty
20339 # (actually we leave an empty line to preserve line numbers).
20340 if test "x$srcdir" = x.; then
20341 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20342 s/:*\$(srcdir):*/:/;
20343 s/:*\${srcdir}:*/:/;
20344 s/:*@srcdir@:*/:/;
20345 s/^\([^=]*=[ ]*\):*/\1/;
20346 s/:*$//;
20347 s/^[^=]*=[ ]*$//;
20351 DEFS=-DHAVE_CONFIG_H
20353 ac_libobjs=
20354 ac_ltlibobjs=
20355 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20356 # 1. Remove the extension, and $U if already installed.
20357 ac_i=`echo "$ac_i" |
20358 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20359 # 2. Add them.
20360 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20361 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20362 done
20363 LIBOBJS=$ac_libobjs
20365 LTLIBOBJS=$ac_ltlibobjs
20369 : ${CONFIG_STATUS=./config.status}
20370 ac_clean_files_save=$ac_clean_files
20371 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20372 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20373 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20374 cat >$CONFIG_STATUS <<_ACEOF
20375 #! $SHELL
20376 # Generated by $as_me.
20377 # Run this file to recreate the current configuration.
20378 # Compiler output produced by configure, useful for debugging
20379 # configure, is in config.log if it exists.
20381 debug=false
20382 ac_cs_recheck=false
20383 ac_cs_silent=false
20384 SHELL=\${CONFIG_SHELL-$SHELL}
20385 _ACEOF
20387 cat >>$CONFIG_STATUS <<\_ACEOF
20388 ## --------------------- ##
20389 ## M4sh Initialization. ##
20390 ## --------------------- ##
20392 # Be Bourne compatible
20393 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20394 emulate sh
20395 NULLCMD=:
20396 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20397 # is contrary to our usage. Disable this feature.
20398 alias -g '${1+"$@"}'='"$@"'
20399 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20400 set -o posix
20402 DUALCASE=1; export DUALCASE # for MKS sh
20404 # Support unset when possible.
20405 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20406 as_unset=unset
20407 else
20408 as_unset=false
20412 # Work around bugs in pre-3.0 UWIN ksh.
20413 $as_unset ENV MAIL MAILPATH
20414 PS1='$ '
20415 PS2='> '
20416 PS4='+ '
20418 # NLS nuisances.
20419 for as_var in \
20420 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20421 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20422 LC_TELEPHONE LC_TIME
20424 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20425 eval $as_var=C; export $as_var
20426 else
20427 $as_unset $as_var
20429 done
20431 # Required to use basename.
20432 if expr a : '\(a\)' >/dev/null 2>&1; then
20433 as_expr=expr
20434 else
20435 as_expr=false
20438 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20439 as_basename=basename
20440 else
20441 as_basename=false
20445 # Name of the executable.
20446 as_me=`$as_basename "$0" ||
20447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20448 X"$0" : 'X\(//\)$' \| \
20449 X"$0" : 'X\(/\)$' \| \
20450 . : '\(.\)' 2>/dev/null ||
20451 echo X/"$0" |
20452 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20453 /^X\/\(\/\/\)$/{ s//\1/; q; }
20454 /^X\/\(\/\).*/{ s//\1/; q; }
20455 s/.*/./; q'`
20458 # PATH needs CR, and LINENO needs CR and PATH.
20459 # Avoid depending upon Character Ranges.
20460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20463 as_cr_digits='0123456789'
20464 as_cr_alnum=$as_cr_Letters$as_cr_digits
20466 # The user is always right.
20467 if test "${PATH_SEPARATOR+set}" != set; then
20468 echo "#! /bin/sh" >conf$$.sh
20469 echo "exit 0" >>conf$$.sh
20470 chmod +x conf$$.sh
20471 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20472 PATH_SEPARATOR=';'
20473 else
20474 PATH_SEPARATOR=:
20476 rm -f conf$$.sh
20480 as_lineno_1=$LINENO
20481 as_lineno_2=$LINENO
20482 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20483 test "x$as_lineno_1" != "x$as_lineno_2" &&
20484 test "x$as_lineno_3" = "x$as_lineno_2" || {
20485 # Find who we are. Look in the path if we contain no path at all
20486 # relative or not.
20487 case $0 in
20488 *[\\/]* ) as_myself=$0 ;;
20489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20490 for as_dir in $PATH
20492 IFS=$as_save_IFS
20493 test -z "$as_dir" && as_dir=.
20494 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20495 done
20498 esac
20499 # We did not find ourselves, most probably we were run as `sh COMMAND'
20500 # in which case we are not to be found in the path.
20501 if test "x$as_myself" = x; then
20502 as_myself=$0
20504 if test ! -f "$as_myself"; then
20505 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20506 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20507 { (exit 1); exit 1; }; }
20509 case $CONFIG_SHELL in
20511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20512 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20514 IFS=$as_save_IFS
20515 test -z "$as_dir" && as_dir=.
20516 for as_base in sh bash ksh sh5; do
20517 case $as_dir in
20519 if ("$as_dir/$as_base" -c '
20520 as_lineno_1=$LINENO
20521 as_lineno_2=$LINENO
20522 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20523 test "x$as_lineno_1" != "x$as_lineno_2" &&
20524 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20525 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20526 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20527 CONFIG_SHELL=$as_dir/$as_base
20528 export CONFIG_SHELL
20529 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20530 fi;;
20531 esac
20532 done
20533 done
20535 esac
20537 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20538 # uniformly replaced by the line number. The first 'sed' inserts a
20539 # line-number line before each line; the second 'sed' does the real
20540 # work. The second script uses 'N' to pair each line-number line
20541 # with the numbered line, and appends trailing '-' during
20542 # substitution so that $LINENO is not a special case at line end.
20543 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20544 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20545 sed '=' <$as_myself |
20546 sed '
20548 s,$,-,
20549 : loop
20550 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20551 t loop
20552 s,-$,,
20553 s,^['$as_cr_digits']*\n,,
20554 ' >$as_me.lineno &&
20555 chmod +x $as_me.lineno ||
20556 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20557 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20558 { (exit 1); exit 1; }; }
20560 # Don't try to exec as it changes $[0], causing all sort of problems
20561 # (the dirname of $[0] is not the place where we might find the
20562 # original and so on. Autoconf is especially sensible to this).
20563 . ./$as_me.lineno
20564 # Exit status is that of the last command.
20565 exit
20569 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20570 *c*,-n*) ECHO_N= ECHO_C='
20571 ' ECHO_T=' ' ;;
20572 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20573 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20574 esac
20576 if expr a : '\(a\)' >/dev/null 2>&1; then
20577 as_expr=expr
20578 else
20579 as_expr=false
20582 rm -f conf$$ conf$$.exe conf$$.file
20583 echo >conf$$.file
20584 if ln -s conf$$.file conf$$ 2>/dev/null; then
20585 # We could just check for DJGPP; but this test a) works b) is more generic
20586 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20587 if test -f conf$$.exe; then
20588 # Don't use ln at all; we don't have any links
20589 as_ln_s='cp -p'
20590 else
20591 as_ln_s='ln -s'
20593 elif ln conf$$.file conf$$ 2>/dev/null; then
20594 as_ln_s=ln
20595 else
20596 as_ln_s='cp -p'
20598 rm -f conf$$ conf$$.exe conf$$.file
20600 if mkdir -p . 2>/dev/null; then
20601 as_mkdir_p=:
20602 else
20603 test -d ./-p && rmdir ./-p
20604 as_mkdir_p=false
20607 as_executable_p="test -f"
20609 # Sed expression to map a string onto a valid CPP name.
20610 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20612 # Sed expression to map a string onto a valid variable name.
20613 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20616 # IFS
20617 # We need space, tab and new line, in precisely that order.
20618 as_nl='
20620 IFS=" $as_nl"
20622 # CDPATH.
20623 $as_unset CDPATH
20625 exec 6>&1
20627 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20628 # report actual input values of CONFIG_FILES etc. instead of their
20629 # values after options handling. Logging --version etc. is OK.
20630 exec 5>>config.log
20632 echo
20633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20634 ## Running $as_me. ##
20635 _ASBOX
20636 } >&5
20637 cat >&5 <<_CSEOF
20639 This file was extended by Wine $as_me 20040716, which was
20640 generated by GNU Autoconf 2.59. Invocation command line was
20642 CONFIG_FILES = $CONFIG_FILES
20643 CONFIG_HEADERS = $CONFIG_HEADERS
20644 CONFIG_LINKS = $CONFIG_LINKS
20645 CONFIG_COMMANDS = $CONFIG_COMMANDS
20646 $ $0 $@
20648 _CSEOF
20649 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20650 echo >&5
20651 _ACEOF
20653 # Files that config.status was made for.
20654 if test -n "$ac_config_files"; then
20655 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20658 if test -n "$ac_config_headers"; then
20659 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20662 if test -n "$ac_config_links"; then
20663 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20666 if test -n "$ac_config_commands"; then
20667 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20670 cat >>$CONFIG_STATUS <<\_ACEOF
20672 ac_cs_usage="\
20673 \`$as_me' instantiates files from templates according to the
20674 current configuration.
20676 Usage: $0 [OPTIONS] [FILE]...
20678 -h, --help print this help, then exit
20679 -V, --version print version number, then exit
20680 -q, --quiet do not print progress messages
20681 -d, --debug don't remove temporary files
20682 --recheck update $as_me by reconfiguring in the same conditions
20683 --file=FILE[:TEMPLATE]
20684 instantiate the configuration file FILE
20685 --header=FILE[:TEMPLATE]
20686 instantiate the configuration header FILE
20688 Configuration files:
20689 $config_files
20691 Configuration headers:
20692 $config_headers
20694 Configuration commands:
20695 $config_commands
20697 Report bugs to <bug-autoconf@gnu.org>."
20698 _ACEOF
20700 cat >>$CONFIG_STATUS <<_ACEOF
20701 ac_cs_version="\\
20702 Wine config.status 20040716
20703 configured by $0, generated by GNU Autoconf 2.59,
20704 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20706 Copyright (C) 2003 Free Software Foundation, Inc.
20707 This config.status script is free software; the Free Software Foundation
20708 gives unlimited permission to copy, distribute and modify it."
20709 srcdir=$srcdir
20710 INSTALL="$INSTALL"
20711 _ACEOF
20713 cat >>$CONFIG_STATUS <<\_ACEOF
20714 # If no file are specified by the user, then we need to provide default
20715 # value. By we need to know if files were specified by the user.
20716 ac_need_defaults=:
20717 while test $# != 0
20719 case $1 in
20720 --*=*)
20721 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20722 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20723 ac_shift=:
20726 ac_option=$1
20727 ac_optarg=$2
20728 ac_shift=shift
20730 *) # This is not an option, so the user has probably given explicit
20731 # arguments.
20732 ac_option=$1
20733 ac_need_defaults=false;;
20734 esac
20736 case $ac_option in
20737 # Handling of the options.
20738 _ACEOF
20739 cat >>$CONFIG_STATUS <<\_ACEOF
20740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20741 ac_cs_recheck=: ;;
20742 --version | --vers* | -V )
20743 echo "$ac_cs_version"; exit 0 ;;
20744 --he | --h)
20745 # Conflict between --help and --header
20746 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20747 Try \`$0 --help' for more information." >&5
20748 echo "$as_me: error: ambiguous option: $1
20749 Try \`$0 --help' for more information." >&2;}
20750 { (exit 1); exit 1; }; };;
20751 --help | --hel | -h )
20752 echo "$ac_cs_usage"; exit 0 ;;
20753 --debug | --d* | -d )
20754 debug=: ;;
20755 --file | --fil | --fi | --f )
20756 $ac_shift
20757 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20758 ac_need_defaults=false;;
20759 --header | --heade | --head | --hea )
20760 $ac_shift
20761 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20762 ac_need_defaults=false;;
20763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20764 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20765 ac_cs_silent=: ;;
20767 # This is an error.
20768 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20769 Try \`$0 --help' for more information." >&5
20770 echo "$as_me: error: unrecognized option: $1
20771 Try \`$0 --help' for more information." >&2;}
20772 { (exit 1); exit 1; }; } ;;
20774 *) ac_config_targets="$ac_config_targets $1" ;;
20776 esac
20777 shift
20778 done
20780 ac_configure_extra_args=
20782 if $ac_cs_silent; then
20783 exec 6>/dev/null
20784 ac_configure_extra_args="$ac_configure_extra_args --silent"
20787 _ACEOF
20788 cat >>$CONFIG_STATUS <<_ACEOF
20789 if \$ac_cs_recheck; then
20790 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20791 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20794 _ACEOF
20800 cat >>$CONFIG_STATUS <<\_ACEOF
20801 for ac_config_target in $ac_config_targets
20803 case "$ac_config_target" in
20804 # Handling of arguments.
20805 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20806 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
20807 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
20808 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
20809 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20810 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20811 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
20812 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
20813 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
20814 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
20815 "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
20816 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20817 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
20818 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
20819 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
20820 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
20821 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
20822 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
20823 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
20824 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
20825 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20826 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20827 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
20828 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
20829 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
20830 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
20831 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
20832 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
20833 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
20834 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
20835 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
20836 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20837 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
20838 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
20839 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20840 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
20841 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
20842 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20843 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20844 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20845 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20846 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20847 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20848 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
20849 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
20850 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
20851 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20852 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
20853 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
20854 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
20855 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
20856 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
20857 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
20858 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
20859 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20860 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
20861 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
20862 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
20863 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
20864 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
20865 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
20866 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
20867 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
20868 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
20869 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
20870 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20871 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
20872 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
20873 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
20874 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
20875 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
20876 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
20877 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
20878 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
20879 "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20880 "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
20881 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20882 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
20883 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20884 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
20885 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
20886 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
20887 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
20888 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
20889 "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
20890 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
20891 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
20892 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
20893 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
20894 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
20895 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
20896 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
20897 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
20898 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
20899 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
20900 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
20901 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
20902 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
20903 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
20904 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
20905 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
20906 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
20907 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
20908 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
20909 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
20910 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
20911 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
20912 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
20913 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
20914 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
20915 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
20916 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20917 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20918 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20919 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20920 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
20921 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
20922 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
20923 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20924 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
20925 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
20926 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20927 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
20928 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
20929 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
20930 "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
20931 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
20932 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20933 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20934 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20935 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
20936 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
20937 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20938 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
20939 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
20940 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
20941 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
20942 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20943 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
20944 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
20945 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
20946 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20947 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
20948 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
20949 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
20950 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
20951 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
20952 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
20953 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
20954 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
20955 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
20956 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
20957 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
20958 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
20959 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20960 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20961 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
20962 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20963 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
20964 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
20965 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20966 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20967 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
20968 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
20969 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20970 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20971 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20972 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20973 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20974 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20975 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20976 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
20977 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
20978 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
20979 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
20980 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
20981 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
20982 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
20983 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
20984 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20985 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20986 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
20987 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
20988 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
20989 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
20990 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
20991 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
20992 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20993 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
20994 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20995 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
20996 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20997 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20998 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
20999 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
21000 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
21001 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
21002 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
21003 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
21004 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
21005 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
21006 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
21007 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
21008 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
21009 "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
21010 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
21011 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
21012 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
21013 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
21014 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
21015 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
21016 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
21017 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
21018 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
21019 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
21020 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
21021 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
21022 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
21023 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
21024 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
21025 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
21026 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
21027 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
21028 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
21029 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
21030 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
21031 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
21032 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21033 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
21034 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21035 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21036 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
21037 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
21038 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21039 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21040 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21041 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21042 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21043 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
21044 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
21045 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
21046 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
21047 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
21048 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
21049 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
21050 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
21051 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
21052 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
21053 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
21054 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
21055 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
21056 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
21057 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
21058 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
21059 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
21060 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21061 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21062 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21063 { (exit 1); exit 1; }; };;
21064 esac
21065 done
21067 # If the user did not use the arguments to specify the items to instantiate,
21068 # then the envvar interface is used. Set only those that are not.
21069 # We use the long form for the default assignment because of an extremely
21070 # bizarre bug on SunOS 4.1.3.
21071 if $ac_need_defaults; then
21072 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21073 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21074 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21077 # Have a temporary directory for convenience. Make it in the build tree
21078 # simply because there is no reason to put it here, and in addition,
21079 # creating and moving files from /tmp can sometimes cause problems.
21080 # Create a temporary directory, and hook for its removal unless debugging.
21081 $debug ||
21083 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21084 trap '{ (exit 1); exit 1; }' 1 2 13 15
21087 # Create a (secure) tmp directory for tmp files.
21090 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21091 test -n "$tmp" && test -d "$tmp"
21092 } ||
21094 tmp=./confstat$$-$RANDOM
21095 (umask 077 && mkdir $tmp)
21096 } ||
21098 echo "$me: cannot create a temporary directory in ." >&2
21099 { (exit 1); exit 1; }
21102 _ACEOF
21104 cat >>$CONFIG_STATUS <<_ACEOF
21107 # CONFIG_FILES section.
21110 # No need to generate the scripts if there are no CONFIG_FILES.
21111 # This happens for instance when ./config.status config.h
21112 if test -n "\$CONFIG_FILES"; then
21113 # Protect against being on the right side of a sed subst in config.status.
21114 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21115 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21116 s,@SHELL@,$SHELL,;t t
21117 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21118 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21119 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21120 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21121 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21122 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21123 s,@exec_prefix@,$exec_prefix,;t t
21124 s,@prefix@,$prefix,;t t
21125 s,@program_transform_name@,$program_transform_name,;t t
21126 s,@bindir@,$bindir,;t t
21127 s,@sbindir@,$sbindir,;t t
21128 s,@libexecdir@,$libexecdir,;t t
21129 s,@datadir@,$datadir,;t t
21130 s,@sysconfdir@,$sysconfdir,;t t
21131 s,@sharedstatedir@,$sharedstatedir,;t t
21132 s,@localstatedir@,$localstatedir,;t t
21133 s,@libdir@,$libdir,;t t
21134 s,@includedir@,$includedir,;t t
21135 s,@oldincludedir@,$oldincludedir,;t t
21136 s,@infodir@,$infodir,;t t
21137 s,@mandir@,$mandir,;t t
21138 s,@build_alias@,$build_alias,;t t
21139 s,@host_alias@,$host_alias,;t t
21140 s,@target_alias@,$target_alias,;t t
21141 s,@DEFS@,$DEFS,;t t
21142 s,@ECHO_C@,$ECHO_C,;t t
21143 s,@ECHO_N@,$ECHO_N,;t t
21144 s,@ECHO_T@,$ECHO_T,;t t
21145 s,@LIBS@,$LIBS,;t t
21146 s,@WIN16_FILES@,$WIN16_FILES,;t t
21147 s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
21148 s,@build@,$build,;t t
21149 s,@build_cpu@,$build_cpu,;t t
21150 s,@build_vendor@,$build_vendor,;t t
21151 s,@build_os@,$build_os,;t t
21152 s,@host@,$host,;t t
21153 s,@host_cpu@,$host_cpu,;t t
21154 s,@host_vendor@,$host_vendor,;t t
21155 s,@host_os@,$host_os,;t t
21156 s,@SET_MAKE@,$SET_MAKE,;t t
21157 s,@CC@,$CC,;t t
21158 s,@CFLAGS@,$CFLAGS,;t t
21159 s,@LDFLAGS@,$LDFLAGS,;t t
21160 s,@CPPFLAGS@,$CPPFLAGS,;t t
21161 s,@ac_ct_CC@,$ac_ct_CC,;t t
21162 s,@EXEEXT@,$EXEEXT,;t t
21163 s,@OBJEXT@,$OBJEXT,;t t
21164 s,@CXX@,$CXX,;t t
21165 s,@CXXFLAGS@,$CXXFLAGS,;t t
21166 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21167 s,@CPPBIN@,$CPPBIN,;t t
21168 s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
21169 s,@TOOLSDIR@,$TOOLSDIR,;t t
21170 s,@CPP@,$CPP,;t t
21171 s,@X_CFLAGS@,$X_CFLAGS,;t t
21172 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21173 s,@X_LIBS@,$X_LIBS,;t t
21174 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21175 s,@LEX@,$LEX,;t t
21176 s,@LEXLIB@,$LEXLIB,;t t
21177 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
21178 s,@XLEX@,$XLEX,;t t
21179 s,@BISON@,$BISON,;t t
21180 s,@AS@,$AS,;t t
21181 s,@ac_ct_AS@,$ac_ct_AS,;t t
21182 s,@LD@,$LD,;t t
21183 s,@ac_ct_LD@,$ac_ct_LD,;t t
21184 s,@AR@,$AR,;t t
21185 s,@ac_ct_AR@,$ac_ct_AR,;t t
21186 s,@RANLIB@,$RANLIB,;t t
21187 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21188 s,@STRIP@,$STRIP,;t t
21189 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21190 s,@WINDRES@,$WINDRES,;t t
21191 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
21192 s,@LN_S@,$LN_S,;t t
21193 s,@LN@,$LN,;t t
21194 s,@LDCONFIG@,$LDCONFIG,;t t
21195 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21196 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21197 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21198 s,@LINT@,$LINT,;t t
21199 s,@LINTFLAGS@,$LINTFLAGS,;t t
21200 s,@DB2HTML@,$DB2HTML,;t t
21201 s,@DB2PDF@,$DB2PDF,;t t
21202 s,@DB2PS@,$DB2PS,;t t
21203 s,@DB2TXT@,$DB2TXT,;t t
21204 s,@LIBPTHREAD@,$LIBPTHREAD,;t t
21205 s,@JPEGLIB@,$JPEGLIB,;t t
21206 s,@EGREP@,$EGREP,;t t
21207 s,@GIFLIB@,$GIFLIB,;t t
21208 s,@XLIB@,$XLIB,;t t
21209 s,@XFILES@,$XFILES,;t t
21210 s,@OPENGLFILES@,$OPENGLFILES,;t t
21211 s,@GLU32FILES@,$GLU32FILES,;t t
21212 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
21213 s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21214 s,@GLUT32FILES@,$GLUT32FILES,;t t
21215 s,@NASLIBS@,$NASLIBS,;t t
21216 s,@CURSESLIBS@,$CURSESLIBS,;t t
21217 s,@sane_devel@,$sane_devel,;t t
21218 s,@SANELIBS@,$SANELIBS,;t t
21219 s,@SANEINCL@,$SANEINCL,;t t
21220 s,@ICULIBS@,$ICULIBS,;t t
21221 s,@ft_devel@,$ft_devel,;t t
21222 s,@ft_devel2@,$ft_devel2,;t t
21223 s,@FREETYPEINCL@,$FREETYPEINCL,;t t
21224 s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21225 s,@ARTSLIBS@,$ARTSLIBS,;t t
21226 s,@ARTSINCL@,$ARTSINCL,;t t
21227 s,@ALSALIBS@,$ALSALIBS,;t t
21228 s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
21229 s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
21230 s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
21231 s,@DLLEXT@,$DLLEXT,;t t
21232 s,@DLLFLAGS@,$DLLFLAGS,;t t
21233 s,@DLLIBS@,$DLLIBS,;t t
21234 s,@LDSHARED@,$LDSHARED,;t t
21235 s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
21236 s,@LIBEXT@,$LIBEXT,;t t
21237 s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21238 s,@DLLTOOL@,$DLLTOOL,;t t
21239 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21240 s,@DLLWRAP@,$DLLWRAP,;t t
21241 s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
21242 s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
21243 s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
21244 s,@CROSSTEST@,$CROSSTEST,;t t
21245 s,@CROSSCC@,$CROSSCC,;t t
21246 s,@CROSSWINDRES@,$CROSSWINDRES,;t t
21247 s,@LDPATH@,$LDPATH,;t t
21248 s,@CRTLIBS@,$CRTLIBS,;t t
21249 s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21250 s,@MAIN_BINARY@,$MAIN_BINARY,;t t
21251 s,@LDD@,$LDD,;t t
21252 s,@ALLOCA@,$ALLOCA,;t t
21253 s,@LIBOBJS@,$LIBOBJS,;t t
21254 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21255 /@MAKE_RULES@/r $MAKE_RULES
21256 s,@MAKE_RULES@,,;t t
21257 /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21258 s,@MAKE_DLL_RULES@,,;t t
21259 /@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21260 s,@MAKE_TEST_RULES@,,;t t
21261 /@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21262 s,@MAKE_LIB_RULES@,,;t t
21263 /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21264 s,@MAKE_PROG_RULES@,,;t t
21265 CEOF
21267 _ACEOF
21269 cat >>$CONFIG_STATUS <<\_ACEOF
21270 # Split the substitutions into bite-sized pieces for seds with
21271 # small command number limits, like on Digital OSF/1 and HP-UX.
21272 ac_max_sed_lines=48
21273 ac_sed_frag=1 # Number of current file.
21274 ac_beg=1 # First line for current file.
21275 ac_end=$ac_max_sed_lines # Line after last line for current file.
21276 ac_more_lines=:
21277 ac_sed_cmds=
21278 while $ac_more_lines; do
21279 if test $ac_beg -gt 1; then
21280 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21281 else
21282 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21284 if test ! -s $tmp/subs.frag; then
21285 ac_more_lines=false
21286 else
21287 # The purpose of the label and of the branching condition is to
21288 # speed up the sed processing (if there are no `@' at all, there
21289 # is no need to browse any of the substitutions).
21290 # These are the two extra sed commands mentioned above.
21291 (echo ':t
21292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21293 if test -z "$ac_sed_cmds"; then
21294 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21295 else
21296 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21298 ac_sed_frag=`expr $ac_sed_frag + 1`
21299 ac_beg=$ac_end
21300 ac_end=`expr $ac_end + $ac_max_sed_lines`
21302 done
21303 if test -z "$ac_sed_cmds"; then
21304 ac_sed_cmds=cat
21306 fi # test -n "$CONFIG_FILES"
21308 _ACEOF
21309 cat >>$CONFIG_STATUS <<\_ACEOF
21310 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21311 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21312 case $ac_file in
21313 - | *:- | *:-:* ) # input from stdin
21314 cat >$tmp/stdin
21315 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21316 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21317 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21318 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21319 * ) ac_file_in=$ac_file.in ;;
21320 esac
21322 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21323 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21324 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21325 X"$ac_file" : 'X\(//\)[^/]' \| \
21326 X"$ac_file" : 'X\(//\)$' \| \
21327 X"$ac_file" : 'X\(/\)' \| \
21328 . : '\(.\)' 2>/dev/null ||
21329 echo X"$ac_file" |
21330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21332 /^X\(\/\/\)$/{ s//\1/; q; }
21333 /^X\(\/\).*/{ s//\1/; q; }
21334 s/.*/./; q'`
21335 { if $as_mkdir_p; then
21336 mkdir -p "$ac_dir"
21337 else
21338 as_dir="$ac_dir"
21339 as_dirs=
21340 while test ! -d "$as_dir"; do
21341 as_dirs="$as_dir $as_dirs"
21342 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21344 X"$as_dir" : 'X\(//\)[^/]' \| \
21345 X"$as_dir" : 'X\(//\)$' \| \
21346 X"$as_dir" : 'X\(/\)' \| \
21347 . : '\(.\)' 2>/dev/null ||
21348 echo X"$as_dir" |
21349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21351 /^X\(\/\/\)$/{ s//\1/; q; }
21352 /^X\(\/\).*/{ s//\1/; q; }
21353 s/.*/./; q'`
21354 done
21355 test ! -n "$as_dirs" || mkdir $as_dirs
21356 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21357 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21358 { (exit 1); exit 1; }; }; }
21360 ac_builddir=.
21362 if test "$ac_dir" != .; then
21363 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21364 # A "../" for each directory in $ac_dir_suffix.
21365 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21366 else
21367 ac_dir_suffix= ac_top_builddir=
21370 case $srcdir in
21371 .) # No --srcdir option. We are building in place.
21372 ac_srcdir=.
21373 if test -z "$ac_top_builddir"; then
21374 ac_top_srcdir=.
21375 else
21376 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21377 fi ;;
21378 [\\/]* | ?:[\\/]* ) # Absolute path.
21379 ac_srcdir=$srcdir$ac_dir_suffix;
21380 ac_top_srcdir=$srcdir ;;
21381 *) # Relative path.
21382 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21383 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21384 esac
21386 # Do not use `cd foo && pwd` to compute absolute paths, because
21387 # the directories may not exist.
21388 case `pwd` in
21389 .) ac_abs_builddir="$ac_dir";;
21391 case "$ac_dir" in
21392 .) ac_abs_builddir=`pwd`;;
21393 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21394 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21395 esac;;
21396 esac
21397 case $ac_abs_builddir in
21398 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21400 case ${ac_top_builddir}. in
21401 .) ac_abs_top_builddir=$ac_abs_builddir;;
21402 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21403 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21404 esac;;
21405 esac
21406 case $ac_abs_builddir in
21407 .) ac_abs_srcdir=$ac_srcdir;;
21409 case $ac_srcdir in
21410 .) ac_abs_srcdir=$ac_abs_builddir;;
21411 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21412 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21413 esac;;
21414 esac
21415 case $ac_abs_builddir in
21416 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21418 case $ac_top_srcdir in
21419 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21420 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21421 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21422 esac;;
21423 esac
21426 case $INSTALL in
21427 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21428 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21429 esac
21431 # Let's still pretend it is `configure' which instantiates (i.e., don't
21432 # use $as_me), people would be surprised to read:
21433 # /* config.h. Generated by config.status. */
21434 if test x"$ac_file" = x-; then
21435 configure_input=
21436 else
21437 configure_input="$ac_file. "
21439 configure_input=$configure_input"Generated from `echo $ac_file_in |
21440 sed 's,.*/,,'` by configure."
21442 # First look for the input files in the build tree, otherwise in the
21443 # src tree.
21444 ac_file_inputs=`IFS=:
21445 for f in $ac_file_in; do
21446 case $f in
21447 -) echo $tmp/stdin ;;
21448 [\\/$]*)
21449 # Absolute (can't be DOS-style, as IFS=:)
21450 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21451 echo "$as_me: error: cannot find input file: $f" >&2;}
21452 { (exit 1); exit 1; }; }
21453 echo "$f";;
21454 *) # Relative
21455 if test -f "$f"; then
21456 # Build tree
21457 echo "$f"
21458 elif test -f "$srcdir/$f"; then
21459 # Source tree
21460 echo "$srcdir/$f"
21461 else
21462 # /dev/null tree
21463 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21464 echo "$as_me: error: cannot find input file: $f" >&2;}
21465 { (exit 1); exit 1; }; }
21466 fi;;
21467 esac
21468 done` || { (exit 1); exit 1; }
21470 if test x"$ac_file" != x-; then
21471 { echo "$as_me:$LINENO: creating $ac_file" >&5
21472 echo "$as_me: creating $ac_file" >&6;}
21473 rm -f "$ac_file"
21475 _ACEOF
21476 cat >>$CONFIG_STATUS <<_ACEOF
21477 sed "$ac_vpsub
21478 $extrasub
21479 _ACEOF
21480 cat >>$CONFIG_STATUS <<\_ACEOF
21482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21483 s,@configure_input@,$configure_input,;t t
21484 s,@srcdir@,$ac_srcdir,;t t
21485 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21486 s,@top_srcdir@,$ac_top_srcdir,;t t
21487 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21488 s,@builddir@,$ac_builddir,;t t
21489 s,@abs_builddir@,$ac_abs_builddir,;t t
21490 s,@top_builddir@,$ac_top_builddir,;t t
21491 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21492 s,@INSTALL@,$ac_INSTALL,;t t
21493 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21494 rm -f $tmp/stdin
21495 if test x"$ac_file" != x-; then
21496 mv $tmp/out $ac_file
21497 else
21498 cat $tmp/out
21499 rm -f $tmp/out
21502 done
21503 _ACEOF
21504 cat >>$CONFIG_STATUS <<\_ACEOF
21507 # CONFIG_HEADER section.
21510 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21511 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21513 # ac_d sets the value in "#define NAME VALUE" lines.
21514 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21515 ac_dB='[ ].*$,\1#\2'
21516 ac_dC=' '
21517 ac_dD=',;t'
21518 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21519 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21520 ac_uB='$,\1#\2define\3'
21521 ac_uC=' '
21522 ac_uD=',;t'
21524 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21525 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21526 case $ac_file in
21527 - | *:- | *:-:* ) # input from stdin
21528 cat >$tmp/stdin
21529 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21530 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21531 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21532 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21533 * ) ac_file_in=$ac_file.in ;;
21534 esac
21536 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21537 echo "$as_me: creating $ac_file" >&6;}
21539 # First look for the input files in the build tree, otherwise in the
21540 # src tree.
21541 ac_file_inputs=`IFS=:
21542 for f in $ac_file_in; do
21543 case $f in
21544 -) echo $tmp/stdin ;;
21545 [\\/$]*)
21546 # Absolute (can't be DOS-style, as IFS=:)
21547 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21548 echo "$as_me: error: cannot find input file: $f" >&2;}
21549 { (exit 1); exit 1; }; }
21550 # Do quote $f, to prevent DOS paths from being IFS'd.
21551 echo "$f";;
21552 *) # Relative
21553 if test -f "$f"; then
21554 # Build tree
21555 echo "$f"
21556 elif test -f "$srcdir/$f"; then
21557 # Source tree
21558 echo "$srcdir/$f"
21559 else
21560 # /dev/null tree
21561 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21562 echo "$as_me: error: cannot find input file: $f" >&2;}
21563 { (exit 1); exit 1; }; }
21564 fi;;
21565 esac
21566 done` || { (exit 1); exit 1; }
21567 # Remove the trailing spaces.
21568 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
21570 _ACEOF
21572 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21573 # `conftest.undefs', that substitutes the proper values into
21574 # config.h.in to produce config.h. The first handles `#define'
21575 # templates, and the second `#undef' templates.
21576 # And first: Protect against being on the right side of a sed subst in
21577 # config.status. Protect against being in an unquoted here document
21578 # in config.status.
21579 rm -f conftest.defines conftest.undefs
21580 # Using a here document instead of a string reduces the quoting nightmare.
21581 # Putting comments in sed scripts is not portable.
21583 # `end' is used to avoid that the second main sed command (meant for
21584 # 0-ary CPP macros) applies to n-ary macro definitions.
21585 # See the Autoconf documentation for `clear'.
21586 cat >confdef2sed.sed <<\_ACEOF
21587 s/[\\&,]/\\&/g
21588 s,[\\$`],\\&,g
21589 t clear
21590 : clear
21591 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21592 t end
21593 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21594 : end
21595 _ACEOF
21596 # If some macros were called several times there might be several times
21597 # the same #defines, which is useless. Nevertheless, we may not want to
21598 # sort them, since we want the *last* AC-DEFINE to be honored.
21599 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21600 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21601 rm -f confdef2sed.sed
21603 # This sed command replaces #undef with comments. This is necessary, for
21604 # example, in the case of _POSIX_SOURCE, which is predefined and required
21605 # on some systems where configure will not decide to define it.
21606 cat >>conftest.undefs <<\_ACEOF
21607 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21608 _ACEOF
21610 # Break up conftest.defines because some shells have a limit on the size
21611 # of here documents, and old seds have small limits too (100 cmds).
21612 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21613 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21614 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21615 echo ' :' >>$CONFIG_STATUS
21616 rm -f conftest.tail
21617 while grep . conftest.defines >/dev/null
21619 # Write a limited-size here document to $tmp/defines.sed.
21620 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21621 # Speed up: don't consider the non `#define' lines.
21622 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
21623 # Work around the forget-to-reset-the-flag bug.
21624 echo 't clr' >>$CONFIG_STATUS
21625 echo ': clr' >>$CONFIG_STATUS
21626 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21627 echo 'CEOF
21628 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21629 rm -f $tmp/in
21630 mv $tmp/out $tmp/in
21631 ' >>$CONFIG_STATUS
21632 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21633 rm -f conftest.defines
21634 mv conftest.tail conftest.defines
21635 done
21636 rm -f conftest.defines
21637 echo ' fi # grep' >>$CONFIG_STATUS
21638 echo >>$CONFIG_STATUS
21640 # Break up conftest.undefs because some shells have a limit on the size
21641 # of here documents, and old seds have small limits too (100 cmds).
21642 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21643 rm -f conftest.tail
21644 while grep . conftest.undefs >/dev/null
21646 # Write a limited-size here document to $tmp/undefs.sed.
21647 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21648 # Speed up: don't consider the non `#undef'
21649 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
21650 # Work around the forget-to-reset-the-flag bug.
21651 echo 't clr' >>$CONFIG_STATUS
21652 echo ': clr' >>$CONFIG_STATUS
21653 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21654 echo 'CEOF
21655 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21656 rm -f $tmp/in
21657 mv $tmp/out $tmp/in
21658 ' >>$CONFIG_STATUS
21659 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21660 rm -f conftest.undefs
21661 mv conftest.tail conftest.undefs
21662 done
21663 rm -f conftest.undefs
21665 cat >>$CONFIG_STATUS <<\_ACEOF
21666 # Let's still pretend it is `configure' which instantiates (i.e., don't
21667 # use $as_me), people would be surprised to read:
21668 # /* config.h. Generated by config.status. */
21669 if test x"$ac_file" = x-; then
21670 echo "/* Generated by configure. */" >$tmp/config.h
21671 else
21672 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
21674 cat $tmp/in >>$tmp/config.h
21675 rm -f $tmp/in
21676 if test x"$ac_file" != x-; then
21677 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21678 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21679 echo "$as_me: $ac_file is unchanged" >&6;}
21680 else
21681 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21682 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21683 X"$ac_file" : 'X\(//\)[^/]' \| \
21684 X"$ac_file" : 'X\(//\)$' \| \
21685 X"$ac_file" : 'X\(/\)' \| \
21686 . : '\(.\)' 2>/dev/null ||
21687 echo X"$ac_file" |
21688 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21689 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21690 /^X\(\/\/\)$/{ s//\1/; q; }
21691 /^X\(\/\).*/{ s//\1/; q; }
21692 s/.*/./; q'`
21693 { if $as_mkdir_p; then
21694 mkdir -p "$ac_dir"
21695 else
21696 as_dir="$ac_dir"
21697 as_dirs=
21698 while test ! -d "$as_dir"; do
21699 as_dirs="$as_dir $as_dirs"
21700 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21701 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21702 X"$as_dir" : 'X\(//\)[^/]' \| \
21703 X"$as_dir" : 'X\(//\)$' \| \
21704 X"$as_dir" : 'X\(/\)' \| \
21705 . : '\(.\)' 2>/dev/null ||
21706 echo X"$as_dir" |
21707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21708 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21709 /^X\(\/\/\)$/{ s//\1/; q; }
21710 /^X\(\/\).*/{ s//\1/; q; }
21711 s/.*/./; q'`
21712 done
21713 test ! -n "$as_dirs" || mkdir $as_dirs
21714 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21715 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21716 { (exit 1); exit 1; }; }; }
21718 rm -f $ac_file
21719 mv $tmp/config.h $ac_file
21721 else
21722 cat $tmp/config.h
21723 rm -f $tmp/config.h
21725 done
21726 _ACEOF
21727 cat >>$CONFIG_STATUS <<\_ACEOF
21730 # CONFIG_COMMANDS section.
21732 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21733 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21734 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21735 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21736 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21737 X"$ac_dest" : 'X\(//\)[^/]' \| \
21738 X"$ac_dest" : 'X\(//\)$' \| \
21739 X"$ac_dest" : 'X\(/\)' \| \
21740 . : '\(.\)' 2>/dev/null ||
21741 echo X"$ac_dest" |
21742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21743 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21744 /^X\(\/\/\)$/{ s//\1/; q; }
21745 /^X\(\/\).*/{ s//\1/; q; }
21746 s/.*/./; q'`
21747 { if $as_mkdir_p; then
21748 mkdir -p "$ac_dir"
21749 else
21750 as_dir="$ac_dir"
21751 as_dirs=
21752 while test ! -d "$as_dir"; do
21753 as_dirs="$as_dir $as_dirs"
21754 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21755 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21756 X"$as_dir" : 'X\(//\)[^/]' \| \
21757 X"$as_dir" : 'X\(//\)$' \| \
21758 X"$as_dir" : 'X\(/\)' \| \
21759 . : '\(.\)' 2>/dev/null ||
21760 echo X"$as_dir" |
21761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21763 /^X\(\/\/\)$/{ s//\1/; q; }
21764 /^X\(\/\).*/{ s//\1/; q; }
21765 s/.*/./; q'`
21766 done
21767 test ! -n "$as_dirs" || mkdir $as_dirs
21768 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21769 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21770 { (exit 1); exit 1; }; }; }
21772 ac_builddir=.
21774 if test "$ac_dir" != .; then
21775 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21776 # A "../" for each directory in $ac_dir_suffix.
21777 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21778 else
21779 ac_dir_suffix= ac_top_builddir=
21782 case $srcdir in
21783 .) # No --srcdir option. We are building in place.
21784 ac_srcdir=.
21785 if test -z "$ac_top_builddir"; then
21786 ac_top_srcdir=.
21787 else
21788 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21789 fi ;;
21790 [\\/]* | ?:[\\/]* ) # Absolute path.
21791 ac_srcdir=$srcdir$ac_dir_suffix;
21792 ac_top_srcdir=$srcdir ;;
21793 *) # Relative path.
21794 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21795 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21796 esac
21798 # Do not use `cd foo && pwd` to compute absolute paths, because
21799 # the directories may not exist.
21800 case `pwd` in
21801 .) ac_abs_builddir="$ac_dir";;
21803 case "$ac_dir" in
21804 .) ac_abs_builddir=`pwd`;;
21805 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21806 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21807 esac;;
21808 esac
21809 case $ac_abs_builddir in
21810 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21812 case ${ac_top_builddir}. in
21813 .) ac_abs_top_builddir=$ac_abs_builddir;;
21814 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21815 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21816 esac;;
21817 esac
21818 case $ac_abs_builddir in
21819 .) ac_abs_srcdir=$ac_srcdir;;
21821 case $ac_srcdir in
21822 .) ac_abs_srcdir=$ac_abs_builddir;;
21823 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21824 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21825 esac;;
21826 esac
21827 case $ac_abs_builddir in
21828 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21830 case $ac_top_srcdir in
21831 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21832 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21833 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21834 esac;;
21835 esac
21838 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21839 echo "$as_me: executing $ac_dest commands" >&6;}
21840 case $ac_dest in
21841 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
21842 echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
21843 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
21844 echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
21845 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
21846 echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
21847 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
21848 echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
21849 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
21850 echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
21851 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
21852 echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
21853 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
21854 echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
21855 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21856 echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21857 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21858 echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
21859 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21860 echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
21861 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
21862 echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
21863 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21864 echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
21865 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21866 echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21867 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21868 echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
21869 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
21870 echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
21871 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21872 echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
21873 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
21874 echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
21875 esac
21876 done
21877 _ACEOF
21879 cat >>$CONFIG_STATUS <<\_ACEOF
21881 { (exit 0); exit 0; }
21882 _ACEOF
21883 chmod +x $CONFIG_STATUS
21884 ac_clean_files=$ac_clean_files_save
21887 # configure is writing to config.log, and then calls config.status.
21888 # config.status does its own redirection, appending to config.log.
21889 # Unfortunately, on DOS this fails, as config.log is still kept open
21890 # by configure, so config.status won't be able to write to it; its
21891 # output is simply discarded. So we exec the FD to /dev/null,
21892 # effectively closing config.log, so it can be properly (re)opened and
21893 # appended to by config.status. When coming back to configure, we
21894 # need to make the FD available again.
21895 if test "$no_create" != yes; then
21896 ac_cs_success=:
21897 ac_config_status_args=
21898 test "$silent" = yes &&
21899 ac_config_status_args="$ac_config_status_args --quiet"
21900 exec 5>/dev/null
21901 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21902 exec 5>>config.log
21903 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21904 # would make configure fail if this is the last instruction.
21905 $ac_cs_success || { (exit 1); exit 1; }
21909 if test "$have_x" = "no"
21910 then
21911 echo
21912 echo "*** Warning: X development files not found. Wine will be built without"
21913 echo "*** X support, which currently does not work, and would probably not be"
21914 echo "*** what you want anyway. You will need to install devel packages of"
21915 echo "*** Xlib/Xfree86 at the very least."
21918 if test "$wine_cv_opengl_version_OK" = "no"
21919 then
21920 echo
21921 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
21922 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21925 if test "$wine_cv_msg_freetype" = "yes"
21926 then
21927 echo
21928 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
21929 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21930 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21931 echo "*** enable Wine to use TrueType fonts."
21934 echo
21935 echo "Configure finished. Do 'make depend && make' to compile Wine."
21936 echo